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

x64: Fix encoding of adc/sbb with memory operands #9146

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

alexcrichton
Copy link
Member

This commit is similar to #8976 where it's fixing some typos in the encoding of the adc and sbb instructions used in Cranelift. These appear to have copy/paste typos where the non-register-based opcodes weren't updated from the add and sub opcodes. This problem was exposed from a fuzz test case after #9136 landed. The fuzz test case is minimized and included here as a new runtest and new emit tests are additionally added.

This commit is similar to bytecodealliance#8976 where it's fixing some typos in the
encoding of the `adc` and `sbb` instructions used in Cranelift. These
appear to have copy/paste typos where the non-register-based opcodes
weren't updated from the `add` and `sub` opcodes. This problem was
exposed from a fuzz test case after bytecodealliance#9136 landed. The fuzz test case is
minimized and included here as a new runtest and new emit tests are
additionally added.
@alexcrichton alexcrichton requested a review from a team as a code owner August 19, 2024 22:14
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team August 19, 2024 22:14
@fitzgen fitzgen enabled auto-merge August 19, 2024 22:23
@fitzgen fitzgen added this pull request to the merge queue Aug 19, 2024
Merged via the queue into bytecodealliance:main with commit a2f0f2f Aug 19, 2024
67 checks passed
@alexcrichton alexcrichton deleted the fix-adc-sbb-encoding branch August 19, 2024 23:24
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