mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 04:24:37 +03:00
[Bug] Fixed encoding of special case 'test al, XXX' being wrongly used with 'ah' operand
This commit is contained in:
@@ -2071,7 +2071,7 @@ CaseX86PushPop_Gp:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Short form - AL, AX, EAX, RAX.
|
// Short form - AL, AX, EAX, RAX.
|
||||||
if (o0.id() == 0 && !(options & Inst::kOptionLongForm)) {
|
if (rbReg == 0 && !(options & Inst::kOptionLongForm)) {
|
||||||
opcode &= Opcode::kPP_66 | Opcode::kW;
|
opcode &= Opcode::kPP_66 | Opcode::kW;
|
||||||
opcode |= 0xA8 + (o0.size() != 1);
|
opcode |= 0xA8 + (o0.size() != 1);
|
||||||
goto EmitX86Op;
|
goto EmitX86Op;
|
||||||
|
|||||||
Reference in New Issue
Block a user