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

ROUNDSD use wrong operand types #36

Closed
Kashio opened this issue Jan 14, 2023 · 2 comments
Closed

ROUNDSD use wrong operand types #36

Kashio opened this issue Jan 14, 2023 · 2 comments

Comments

@Kashio
Copy link

Kashio commented Jan 14, 2023

Right now ROUNDSD encoded with opcode 66 0F 3A 0B use operand type sd for its operand of addressing W which is defined as:

Scalar element of a 128-bit packed single-precision floating data.

According to the intel docs:

Round the DP FP value in the lower qword of the source operand (second operand) using the rounding mode specified in the immediate operand (third operand) and place the result in the destination operand (first operand).

Since it's only copying the lower 64 bits of the register and the memory variant is also referencing 64 bit memory the operand type should be of type q which is defined as:

Quadword, regardless of operand-size attribute (for example, CALL (FF /2)).

Kashio added a commit to Kashio/x86reference that referenced this issue Jan 14, 2023
@BarebitOpenSource
Copy link
Contributor

This one looks right. Refer to #22.

@BarebitOpenSource
Copy link
Contributor

Feel free to reopen this issue if you still think the operand type is wrong.

@BarebitOpenSource BarebitOpenSource closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2024
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

No branches or pull requests

2 participants