summaryrefslogtreecommitdiff
path: root/test/addr64x.asm
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-05-15 22:27:48 +0100
committerAnas Nashif <anas.nashif@intel.com>2012-05-15 22:27:48 +0100
commitb9fad1ab2ad3bd87bff05c4688c978d582ada438 (patch)
tree4a373f8dd867d20e67510de7cfe447a4b58c1a70 /test/addr64x.asm
parent65c26d26fb72cec0d43d199c72ed27513d17f4c9 (diff)
downloadnasm-b9fad1ab2ad3bd87bff05c4688c978d582ada438.tar.gz
nasm-b9fad1ab2ad3bd87bff05c4688c978d582ada438.tar.bz2
nasm-b9fad1ab2ad3bd87bff05c4688c978d582ada438.zip
Upstream version 2.08rc7
Diffstat (limited to 'test/addr64x.asm')
-rw-r--r--test/addr64x.asm18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/addr64x.asm b/test/addr64x.asm
new file mode 100644
index 0000000..c7a64f5
--- /dev/null
+++ b/test/addr64x.asm
@@ -0,0 +1,18 @@
+;Testname=O0; Arguments=-O0 -fbin -oaddr64.bin; Files=stdout stderr addr64.bin
+;Testname=O1; Arguments=-O1 -fbin -oaddr64.bin; Files=stdout stderr addr64.bin
+;Testname=Ox; Arguments=-Ox -fbin -oaddr64.bin; Files=stdout stderr addr64.bin
+ bits 64
+ mov rdx,[rax]
+ mov eax,[byte rsp+0x01]
+ mov eax,[byte rsp-0x01]
+ mov eax,[byte rsp+0xFF]
+ mov eax,[byte rsp-0xFF]
+ mov eax,[rsp+0x08]
+ mov eax,[rsp-0x01]
+ mov eax,[rsp+0xFF]
+ mov eax,[rsp-0xFF]
+ mov rax,[rsp+56]
+ mov [rsi],dl
+ mov byte [rsi],'-'
+ mov [rsi],al
+ mov byte [rsi],' '