Repository navigation
x86: fix PUSH and ENTER immediate sizes - #3181
Open
ricardojrdez wants to merge 1 commit into
Open
ricardojrdez wants to merge 1 commit into
ricardojrdez wants to merge 1 commit into
Conversation
1 of 2 tasks
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #3181 +/- ##
=======================================
Coverage ? 61.89%
=======================================
Files ? 243
Lines ? 56933
Branches ? 10128
=======================================
Hits ? 35236
Misses ? 16492
Partials ? 5205 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ricardojrdez
force-pushed
the
x86-push-enter-imm
branch
from
November 25, 2026 14:58
91eb60e to
42960c9
Compare
Rot127
requested changes
Nov 25, 2026
| expected: | ||
| insns: | ||
| - | ||
| asm_text: "push 0ffffffffh" |
Contributor
Author
There was a problem hiding this comment.
Just a note on the MASM test case: it now checks the operand (imm -0x1, size 4).
- 6a ff (32, unsigned): the sign-extended imm8 of PUSH is now masked to the 32-bit operand size when printed, giving 0xffffffff instead of 0xffffffffffffffff. - c8 fe fe fe (32): ENTER immediates are no longer sign-extended; they now print as 0xfefe and 0xfe, with sizes 2 and 1 instead of 4 and 4.
ricardojrdez
force-pushed
the
x86-push-enter-imm
branch
from
November 25, 2026 21:43
42960c9 to
00b2bc6
Compare
2 of 3 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Your checklist for this pull request
Detailed description
the 32-bit operand size when printed, giving 0xffffffff instead of
0xffffffffffffffff.
now print as 0xfefe and 0xfe, with sizes 2 and 1 instead of 4 and 4.
Test plan
Added 5 regression tests in
tests/details/x86.yamlto cover the fix. They fail before the change.