MPX: Add test cases for MPX
[nasm/avx512.git] / test / gotoff64.asm
blob05f5882b18dbd43e9211695a49f24621e16aa4c1
1 ;Testname=noerr; Arguments=-felf64 -ogotoff64.o; Files=stdout stderr gotoff64.o
2 ;Testname=err; Arguments=-DERROR -felf64 -ogotoff64.o; Files=stdout stderr gotoff64.o
4 bits 64
5 default rel
7 extern foo
9 mov r15,[foo wrt ..got]
10 lea r12,[foo wrt ..got]
11 %ifdef ERROR
12 lea rax,[foo wrt ..gotoff]
13 mov rax,[foo wrt ..gotoff]
14 %endif
16 default abs
18 mov r15,[foo wrt ..got]
19 lea r12,[foo wrt ..got]
20 mov rax,[qword foo wrt ..got]
21 %ifdef ERROR
22 lea rax,[foo wrt ..gotoff]
23 mov rax,[foo wrt ..gotoff]
24 %endif
25 mov rax,[qword foo wrt ..gotoff]