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 immediate operands #8976

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

alexcrichton
Copy link
Member

This isn't reachable from Cranelift today but in some various testing this is one of the issues I encountered. This fixes apparent copy/paste bugs with the Adc and Sbb instructions with immediate operands.

This isn't reachable from Cranelift today but in some various testing
this is one of the issues I encountered. This fixes apparent copy/paste
bugs with the `Adc` and `Sbb` instructions with immediate operands.
@alexcrichton alexcrichton requested a review from a team as a code owner July 19, 2024 16:27
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team July 19, 2024 16:27
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Nice find!

@fitzgen fitzgen added this pull request to the merge queue Jul 19, 2024
Merged via the queue into bytecodealliance:main with commit 3d7a1c8 Jul 19, 2024
49 checks passed
@alexcrichton alexcrichton deleted the fix-adc-sbb branch August 19, 2024 22:01
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Aug 19, 2024
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.
github-merge-queue bot pushed a commit that referenced this pull request Aug 19, 2024
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.
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