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

x86: fix semantics of SHR, RCL, and RCR #451

Merged
merged 2 commits into from
May 23, 2023
Merged

x86: fix semantics of SHR, RCL, and RCR #451

merged 2 commits into from
May 23, 2023

Conversation

vbgl
Copy link
Member

@vbgl vbgl commented May 17, 2023

The manual reads: “For the SHR instruction, the OF flag is set to the most-significant bit of the original operand.”

I know that RCL and RCR do not compute the CF flag correctly, but I still do not understand the details of the issue…

The manual reads: “For the SHR instruction, the OF flag is set to the
most-significant bit of the *original* operand.”
@vbgl vbgl changed the title x86: fix semantics of SHR x86: fix semantics of SHR, RCL, and RCR May 18, 2023
@vbgl vbgl added the EasyCrypt extraction and model label May 18, 2023
@vbgl vbgl marked this pull request as ready for review May 18, 2023 13:41
@vbgl
Copy link
Member Author

vbgl commented May 18, 2023

The rotation operators have now been reworked, also in EasyCrypt.

@bgregoir bgregoir merged commit a8f1a2f into main May 23, 2023
1 check passed
@bgregoir bgregoir deleted the x86-rotflags branch May 23, 2023 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug EasyCrypt extraction and model semantics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants