diff options
author | Anas Nashif <anashif@tizendev.org> | 2012-05-23 08:22:02 +0900 |
---|---|---|
committer | Gerrit Code Review <gerrit2@localhost> | 2012-05-23 08:22:02 +0900 |
commit | b9fae45f49f97914a89b763028f5dbf8b70a9cbc (patch) | |
tree | a76f72f9a6d751f31456309e3cfdf3022b6c5546 /test/gotoff64.asm | |
parent | ecc629773ccf1eaae669dce3d2b017ed476ce911 (diff) | |
parent | b9fad1ab2ad3bd87bff05c4688c978d582ada438 (diff) | |
download | nasm-b9fae45f49f97914a89b763028f5dbf8b70a9cbc.tar.gz nasm-b9fae45f49f97914a89b763028f5dbf8b70a9cbc.tar.bz2 nasm-b9fae45f49f97914a89b763028f5dbf8b70a9cbc.zip |
Merge " Upstream version 2.08rc7"
Diffstat (limited to 'test/gotoff64.asm')
-rw-r--r-- | test/gotoff64.asm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/gotoff64.asm b/test/gotoff64.asm new file mode 100644 index 0000000..05f5882 --- /dev/null +++ b/test/gotoff64.asm @@ -0,0 +1,25 @@ +;Testname=noerr; Arguments=-felf64 -ogotoff64.o; Files=stdout stderr gotoff64.o +;Testname=err; Arguments=-DERROR -felf64 -ogotoff64.o; Files=stdout stderr gotoff64.o + + bits 64 + default rel + + extern foo + + mov r15,[foo wrt ..got] + lea r12,[foo wrt ..got] +%ifdef ERROR + lea rax,[foo wrt ..gotoff] + mov rax,[foo wrt ..gotoff] +%endif + + default abs + + mov r15,[foo wrt ..got] + lea r12,[foo wrt ..got] + mov rax,[qword foo wrt ..got] +%ifdef ERROR + lea rax,[foo wrt ..gotoff] + mov rax,[foo wrt ..gotoff] +%endif + mov rax,[qword foo wrt ..gotoff] |