summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-25 15:44:40 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-25 15:44:40 -0700
commitb0aff179086a17e396a421d6e9942239e254709b (patch)
treef43bcd94094cd6a0c702186bd04e43eb9efdebab /test
parent457afd4dad2274c866ab38eabd8508f2d56bd2ee (diff)
downloadnasm-b0aff179086a17e396a421d6e9942239e254709b.tar.gz
nasm-b0aff179086a17e396a421d6e9942239e254709b.tar.bz2
nasm-b0aff179086a17e396a421d6e9942239e254709b.zip
test/movimm.asm: add optimizable forms
Add optimizable forms that probably should be shrunk by the optimizer.
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
index bda7a60..b5a7a27 100644
--- a/test/movimm.asm
+++ b/test/movimm.asm
@@ -11,3 +11,16 @@
; mov qword [rsi],qword 1234567890abcdefh ; Error
; mov [rsi],qword 1234567890abcdefh ; Error
mov [rsi],dword 1234567890abcdefh
+
+ ; The optimizer probably should compact these forms, doesn't yet?
+ mov rax,12345678h
+ mov eax,12345678h
+ mov rax,dword 12345678h
+ mov rax,qword 12345678h
+ mov dword [rsi],12345678h
+ mov qword [rsi],12345678h
+ mov dword [rsi],dword 12345678h
+ mov qword [rsi],dword 12345678h
+; mov qword [rsi],qword 12345678h ; Error
+; mov [rsi],qword 12345678h ; Error
+ mov [rsi],dword 12345678h