Skip to content

[ARM64] Fix lifting of mrs xzr, ... to not reference the xzr register#7220

Merged
bdash merged 1 commit into
devfrom
arm64-mrs-xzr
Aug 5, 2025
Merged

[ARM64] Fix lifting of mrs xzr, ... to not reference the xzr register#7220
bdash merged 1 commit into
devfrom
arm64-mrs-xzr

Conversation

@bdash

@bdash bdash commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

ARM64 lifting replaces references to the zero register with constant zeroes. The zero register is not intended to appear in any lifted IL.

In the case of the mrs instruction, the destination being a zero register means the system register is accessed only for a side-effect, and is not stored anywhere. The lifting is updated to specify no output registers for the intrinsic in that case.

@plafosse plafosse self-assigned this Aug 5, 2025
ARM64 lifting replaces references to the zero register with constant
zeroes. The zero register is not intended to appear in any lifted IL.

In the case of the `mrs` instruction, the destination being a zero
register means the system register is accessed only for a side-effect,
and is not stored anywhere. The lifting is updated to specify no output
registers for the intrinsic in that case.
@bdash bdash merged commit 8becb1b into dev Aug 5, 2025
5 checks passed
@bdash bdash deleted the arm64-mrs-xzr branch August 5, 2025 18:52
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.

2 participants