From bd93dc6923a9fe202401666a1f2749fbdced9971 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Wed, 11 May 2016 18:54:24 +0200 Subject: x86: Improve cmov handling cmov can accept multi sizes, but is also a OPC_TEST opcode, deal with this. --- i386-asm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i386-asm.h') diff --git a/i386-asm.h b/i386-asm.h index 6b03f4a..8c8273c 100644 --- a/i386-asm.h +++ b/i386-asm.h @@ -382,7 +382,7 @@ ALT(DEF_ASM_OP2(cmpxchgb, 0x0fb0, 0, OPC_MODRM | OPC_BWL, OPT_REG, OPT_REG | OPT DEF_ASM_OP1(cmpxchg8b, 0x0fc7, 1, OPC_MODRM, OPT_EA ) /* pentium pro */ - ALT(DEF_ASM_OP2(cmovo, 0x0f40, 0, OPC_MODRM | OPC_TEST, OPT_REG32 | OPT_EA, OPT_REG32)) + ALT(DEF_ASM_OP2(cmovo, 0x0f40, 0, OPC_MODRM | OPC_TEST | OPC_WL, OPT_REGW | OPT_EA, OPT_REGW)) #ifdef I386_ASM_16 ALT(DEF_ASM_OP2(cmovno, 0x0f41, 0, OPC_MODRM | OPC_TEST, OPT_REG32 | OPT_EA, OPT_REG32)) ALT(DEF_ASM_OP2(cmovc, 0x0f42, 0, OPC_MODRM | OPC_TEST, OPT_REG32 | OPT_EA, OPT_REG32)) -- cgit v1.3.1