Repository navigation
x86: fix hint NOP and CMOV operand sizes - #3185
Open
ricardojrdez wants to merge 1 commit into
Open
ricardojrdez wants to merge 1 commit into
ricardojrdez wants to merge 1 commit into
Conversation
Contributor
Author
|
Note that #3184 also modifies the same condition in |
This was referenced Nov 22, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #3185 +/- ##
=======================================
Coverage ? 61.87%
=======================================
Files ? 243
Lines ? 56938
Branches ? 10133
=======================================
Hits ? 35231
Misses ? 16503
Partials ? 5204 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ricardojrdez
force-pushed
the
x86-hint-nop-cmov
branch
from
November 25, 2026 14:58
e2b7de5 to
de18ceb
Compare
Rot127
requested changes
Nov 25, 2026
| type: X86_OP_MEM | ||
| mem_base: eax | ||
| size: 4 | ||
| - |
Collaborator
There was a problem hiding this comment.
Check the operands for the ones below please.
Contributor
Author
There was a problem hiding this comment.
All test cases with instructions now verify the operands, except for emms which takes no operands (passing an empty operand list makes cstest skip the operand check anyway).
- 0f 1c 08 (32): 0F 1C /1 is a reserved hint NOP and now decodes as nop dword ptr [eax] instead of being rejected. - 66 0f 1c 00 (16): CLDEMOTE takes no 66 prefix, and in 16-bit mode the 66 prefix selects a 32-bit operand, so the hint NOP operand is now dword instead of word. - f3 0f 40 00 (16): the F3 prefix no longer changes the operand size of CMOVO, which is word again, the 16-bit default.
ricardojrdez
force-pushed
the
x86-hint-nop-cmov
branch
from
November 25, 2026 21:43
de18ceb to
7b2ec3c
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
dword ptr [eax] instead of being rejected.
66 prefix selects a 32-bit operand, so the hint NOP operand is now
dword instead of word.
CMOVO, which is word again, the 16-bit default.
Test plan
Added 8 regression tests in
tests/issues/x86-mandatory-prefixes.yamlto cover the fix. 7 of them fail before the change.