Skip to content

x86: decode reserved x87 register aliases - #3141

Merged
Rot127 merged 3 commits into
capstone-engine:nextfrom
raaller:fix/x86-x87-reserved-aliases-3117
Nov 4, 2026
Merged

Rot127 merged 3 commits into
capstone-engine:nextfrom
raaller:fix/x86-x87-reserved-aliases-3117

Conversation

@raaller

@raaller raaller commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Your checklist for this pull request

  • I've documented or updated the documentation of every API function and struct this PR changes.
  • I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

Decode reserved x87 register aliases for fcom, fcomp and fxch using the existing instruction tables. Preserve the original opcode and ModRM.

Test plan

Added five regression cases covering 16/32/64 bit modes, prefixes, att syntax, encoding details and invalid neighboring encodings.

Closing issues

Closes #3117

@github-actions github-actions Bot added the X86 Arch label Oct 25, 2026
@codecov

codecov Bot commented Oct 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (next@8b95af3). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #3141   +/-   ##
=======================================
  Coverage        ?   61.45%           
=======================================
  Files           ?      243           
  Lines           ?    56825           
  Branches        ?    10081           
=======================================
  Hits            ?    34921           
  Misses          ?    16708           
  Partials        ?     5196           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread tests/issues/issues.yaml Resolved
Comment thread tests/issues/issues.yaml

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Correct me if mistake, but the tests seem to have a lot of duplicates in it.
Please minimize them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yeah, i copied them, don't even know why:) changed

@Rot127

Rot127 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Redness unrelated.

@Rot127
Rot127 merged commit 04fd70b into capstone-engine:next Nov 4, 2026
72 of 78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

X86 Arch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

x86: Capstone does not decode reserved x87 encodings (DC D0–DF, DD C8–CF, DE D0–DF, DF C8–CF)

2 participants