summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-25 15:39:42 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-25 15:39:42 -0700
commit0bd2565dd7884fc3526b814d19185625b0adf82b (patch)
treea08f302f23914639b5ea2a0657c21d351e8a36fd /test
parentcfdf646e9a818067887cdc9c01ade5b79f699190 (diff)
downloadnasm-0bd2565dd7884fc3526b814d19185625b0adf82b.tar.gz
nasm-0bd2565dd7884fc3526b814d19185625b0adf82b.tar.bz2
nasm-0bd2565dd7884fc3526b814d19185625b0adf82b.zip
Test of immediate handling on 64-bit mode
Diffstat (limited to 'test')
-rw-r--r--test/movimm.asm13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/movimm.asm b/test/movimm.asm
new file mode 100644
index 0000000..bda7a60
--- /dev/null
+++ b/test/movimm.asm
@@ -0,0 +1,13 @@
+ bits 64
+
+ mov rax,1234567890abcdefh
+ mov eax,1234567890abcdefh
+ mov rax,dword 1234567890abcdefh
+ mov rax,qword 1234567890abcdefh
+ mov dword [rsi],1234567890abcdefh
+ mov qword [rsi],1234567890abcdefh
+ mov dword [rsi],dword 1234567890abcdefh
+ mov qword [rsi],dword 1234567890abcdefh
+; mov qword [rsi],qword 1234567890abcdefh ; Error
+; mov [rsi],qword 1234567890abcdefh ; Error
+ mov [rsi],dword 1234567890abcdefh