Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AArch64: fix sbcs/ngcs flags when destination is xzr #6446

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sleigh-InSPECtor
Copy link

As part of a research project testing the accuracy of the sleigh specifications compared to real hardware, we observed an unexpected behaviour in the sbcs and ngcs instructions for AARCH64. According to Section C6.2.266 and C6.2.237, the expected behaviour is to update the status flags based on the result of the subtract/negate. While the current behaviour instead updates the flags based on the value in the destination register. When the destination register is xzr, the result is discarded, and zero is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants