summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-08-28 17:54:55 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-08-28 17:54:55 -0700
commitdd1de39ece79b990a77a9175570bc82d54f9e692 (patch)
tree25e1ad8e4c6adb7bd2b291c61c637602681d8e46
parent3ba3af3290cfb3abb029bb3fc71590ebd090f459 (diff)
downloadnasm-dd1de39ece79b990a77a9175570bc82d54f9e692.tar.gz
BR 2028995: Missing MOVNTI m64, r64
Fix MOVNTI with a 64-bit argument.
-rw-r--r--insns.dat3
-rw-r--r--test/movnti.asm10
2 files changed, 12 insertions, 1 deletions
diff --git a/insns.dat b/insns.dat
index 7de63726..eba621d3 100644
--- 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
index 00000000..d20d3c13
--- /dev/null
+++ b/test/movnti.asm
@@ -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