mirror of
https://github.com/RPCS3/asmjit.git
synced 2026-01-31 01:35:21 +01:00
[BUG] Fixed REX.W prefix in short form of arithmetic instruction (REX.W was deleted by opcode = ...)
This commit is contained in:
@@ -1192,7 +1192,8 @@ _Prepare:
|
||||
|
||||
// Alternate Form - AL, AX, EAX, RAX.
|
||||
if (rmReg == 0 && (o0->getSize() == 1 || imLen != 1)) {
|
||||
opCode = ((opReg << 3) | (0x04 + (o0->getSize() != 1)));
|
||||
opCode &= kX86InstOpCode_PP_66 | kX86InstOpCode_W;
|
||||
opCode |= ((opReg << 3) | (0x04 + (o0->getSize() != 1)));
|
||||
imLen = IntUtil::iMin<uint32_t>(o0->getSize(), 4);
|
||||
goto _EmitX86Op;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user