summaryrefslogtreecommitdiff
path: root/test/imm64.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-03-19 14:52:27 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-03-19 14:52:27 -0700
commitaccf94ea24b9c135f298e88bf5682da6639ba49c (patch)
tree64cd3201d28a407806b3cd1c05a51160b33f5916 /test/imm64.asm
parent65e823978b27ab23f09892f81f84a4b88609dc0a (diff)
downloadnasm-accf94ea24b9c135f298e88bf5682da6639ba49c.tar.gz
nasm-accf94ea24b9c135f298e88bf5682da6639ba49c.tar.bz2
nasm-accf94ea24b9c135f298e88bf5682da6639ba49c.zip
Better handling of 32-bit imms in 64-bit moves
A much better way to handle the 32-bit immediates in 64-bit moves. Add a test file.
Diffstat (limited to 'test/imm64.asm')
-rw-r--r--test/imm64.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/imm64.asm b/test/imm64.asm
new file mode 100644
index 0000000..ac50c62
--- /dev/null
+++ b/test/imm64.asm
@@ -0,0 +1,7 @@
+ bits 64
+ mov rax,11223344h
+ mov rax,dword 11223344h
+ mov eax,11223344h
+ mov [rax],dword 11223344h ; 32-bit operation
+ mov qword [rax],11223344h
+ mov qword [rax],dword 11223344h