x86reference icon indicating copy to clipboard operation
x86reference copied to clipboard

MOVSLDUP use wrong operand types

Open Kashio opened this issue 3 years ago • 1 comments

Right now MOVSLDUP encoded with opcode F3 0F 12 use operand type q for both its operands which is defined as:

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

According to the intel docs:

Duplicates even-indexed single-precision floating-point values from the source operand (the second operand). See Figure 4-4. The source operand is an XMM, YMM or ZMM register or 128, 256 or 512-bit memory location and the destination operand is an XMM, YMM or ZMM register.

Putting aside VEX/EVEX, the instruction is dealing with 128 bit single precision fp values for both its operands, the operand type should be of type ps which is defined as:

128-bit packed single-precision floating-point data.

Kashio avatar Dec 24 '22 20:12 Kashio

Good point. I need to figure out why Intel uses this operand type in the manual.

BarebitOpenSource avatar Dec 21 '23 14:12 BarebitOpenSource

Won't fix, see #27.

BarebitOpenSource avatar May 13 '24 17:05 BarebitOpenSource