From 65e823978b27ab23f09892f81f84a4b88609dc0a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 19 Mar 2008 14:42:20 -0700 Subject: [PATCH] insns.dat: add "MOV reg64,imm32" as a special rule Add "MOV reg64,imm32" as a special rule, to handle the case of "mov rax,dword ", where is sign-extended; this is a 7-byte form, as opposed to "mov eax," (5 bytes) and "mov rax," (10 bytes). At some point, the optimizer needs to be able to handle these. --- insns.dat | 1 + 1 file changed, 1 insertion(+) diff --git a/insns.dat b/insns.dat index 4f30a923..77f77390 100644 --- a/insns.dat +++ b/insns.dat @@ -775,6 +775,7 @@ MOV reg8,imm \10\xB0\21 8086,SM MOV reg16,imm \320\10\xB8\31 8086,SM MOV reg32,imm \321\10\xB8\41 386,SM MOV reg64,imm \324\10\xB8\55 X64,SM +MOV reg64,imm32 \324\1\xC7\200\41 X64 MOV rm8,imm \1\xC6\200\21 8086,SM MOV rm16,imm \320\1\xC7\200\31 8086,SM MOV rm32,imm \321\1\xC7\200\41 386,SM