-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Update read/written registers for x87 comparison instructions #2784
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
Conversation
This should have been part of capstone-engine#2680
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not very much into x86. But checking the ISA it seems to not match?
Do I mis-understand something?
There is now one test case for each operand input for each opcode (e.g., DE/2 and DE/3).
a8deea7
to
a5a2783
Compare
@Rot127 Sorry about the late changes. I try not to do updates after a PR has been approved, but I discovered today that Chapter 5 of the SDM has a nice listing of all of the instructions broken down by category where I found |
0xd9, 0xe4, # ftest | ||
0xd9, 0xe5 # fxam |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just as advice. It is usually a little easier if the instructions are in a separated test case.
The cstest output currently doesn't report which instruction failed.
So if the instructions don't depend on each other, having them separated is simpler to debug..
This should have been part of #2680
Your checklist for this pull request
Detailed description
These are updates to the x87 comparison instructions that includes more detail on segment registers and FPU flags. It also fixes bugs introduced in #2680 that incorrectly removed FPU flag modifications from the
fcomi
family of instructions. Testing is substantially expanded....
Test plan
Tests are included.