BR 2028995: Missing MOVNTI m64, r64
authorH. Peter Anvin <hpa@zytor.com>
Fri, 29 Aug 2008 00:54:55 +0000 (17:54 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 29 Aug 2008 00:54:55 +0000 (17:54 -0700)
Fix MOVNTI with a 64-bit argument.

insns.dat
test/movnti.asm [new file with mode: 0644]

index 7de6372..eba621d 100644 (file)
--- a/insns.dat
+++ b/insns.dat
@@ -1524,7 +1524,8 @@ MASKMOVDQU        xmmreg,xmmreg                   \361\2\x0F\xF7\110                              WILLAMETTE,SSE2
 ; CLFLUSH needs its own feature flag implemented one day
 CLFLUSH                mem                             \2\x0F\xAE\207                                  WILLAMETTE,SSE2
 MOVNTDQ                mem,xmmreg                      \361\2\x0F\xE7\101                              WILLAMETTE,SSE2,SO
-MOVNTI         mem,reg32                       \360\2\x0F\xC3\101                              WILLAMETTE,SSE2,SD
+MOVNTI         mem,reg32                       \360\2\x0F\xC3\101                              WILLAMETTE,SD
+MOVNTI         mem,reg64                       \324\360\2\x0F\xC3\101                          X64,SQ
 MOVNTPD                mem,xmmreg                      \361\2\x0F\x2B\101                              WILLAMETTE,SSE2,SO
 LFENCE         void                            \3\x0F\xAE\xE8                                  WILLAMETTE,SSE2
 MFENCE         void                            \3\x0F\xAE\xF0                                  WILLAMETTE,SSE2
diff --git a/test/movnti.asm b/test/movnti.asm
new file mode 100644 (file)
index 0000000..d20d3c1
--- /dev/null
@@ -0,0 +1,10 @@
+;Testname=test; Arguments=-fbin -omovnti.bin; Files=.stdout .stderr movnti.bin
+; BR 2028995
+
+       bits 16
+       movnti [si],eax
+       bits 32
+       movnti [esi],eax
+       bits 64
+       movnti [rsi],eax
+       movnti [rsi],rax