From c58642fbbaa88ccf5316dbe393dc87275da21b51 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 25 Sep 2007 15:40:36 -0700 Subject: [PATCH] Correct the handling of "MOV" with immediate in 64-bit mode Correct the handling of "MOV" with immediate in 64-bit mode. With these changes, movimm.asm produces the desired results. --- insns.dat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/insns.dat b/insns.dat index b4e38d3e..f4c1e111 100644 --- a/insns.dat +++ b/insns.dat @@ -722,15 +722,15 @@ MOV reg16,reg16 \320\1\x8B\110 8086 MOV reg32,mem \321\1\x8B\110 386,SM MOV reg32,reg32 \321\1\x8B\110 386 MOV reg64,mem \324\1\x8B\110 X64,SM -MOV reg64,reg64 \324\1\x8B\110 X64 +MOV reg64,reg64 \324\1\x8B\110 X64,SM 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,imm \324\10\xB8\55 X64,SQ 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 -MOV rm64,imm \324\1\xC7\200\41 X64,SM +MOV rm64,imm \324\1\xC7\200\41 X64,SD MOV mem,imm8 \1\xC6\200\21 8086,SM MOV mem,imm16 \320\1\xC7\200\31 8086,SM MOV mem,imm32 \321\1\xC7\200\41 386,SM