Skip to content

[herd] Introduce control dependency between MTE check and CAS instr#1771

Open
diaolo01 wants to merge 1 commit intoherd:masterfrom
diaolo01:mte-cas-fix
Open

[herd] Introduce control dependency between MTE check and CAS instr#1771
diaolo01 wants to merge 1 commit intoherd:masterfrom
diaolo01:mte-cas-fix

Conversation

@diaolo01
Copy link
Copy Markdown
Contributor

@diaolo01 diaolo01 commented Apr 1, 2026

This PR introduces iico_ctrl edges between MTE tag check effects and CAS instructions.

Copy link
Copy Markdown
Member

@relokin relokin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this Diana

@ShaleXIONG
Copy link
Copy Markdown
Collaborator

I can confirm the generated tests with Amo.Cas for memtag are now all forbidden, which I expect.

@artkhyzha
Copy link
Copy Markdown
Collaborator

Thank you, @diaolo01.

A question to everybody (@relokin and @ShaleXIONG): this change is relevant/needed for successful CASes only, isn't it?

@relokin
Copy link
Copy Markdown
Member

relokin commented Apr 1, 2026

A question to everybody (@relokin and @ShaleXIONG): this change is relevant/needed for successful CASes only, isn't it?

Good point! I think this change is relevant for a failing CAS too. Ideally, we would add a test for that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants