ELF64: once again, fix generation of "naked" OUT_REL*ADR
[nasm/avx512.git] / test / addr64x.asm
blob5aa63879ff2e651d5fef59601edc0607eec77f9b
1 ;Testname=O0; Arguments=-O0 -fbin -oaddr64.bin; Files=stdout stderr addr64.bin
2 ;Testname=O1; Arguments=-O1 -fbin -oaddr64.bin; Files=stdout stderr addr64.bin
3 ;Testname=O2; Arguments=-O2 -fbin -oaddr64.bin; Files=stdout stderr addr64.bin
4 ;Testname=O3; Arguments=-O3 -fbin -oaddr64.bin; Files=stdout stderr addr64.bin
5 ;Testname=O4; Arguments=-O4 -fbin -oaddr64.bin; Files=stdout stderr addr64.bin
6 ;Testname=O5; Arguments=-O5 -fbin -oaddr64.bin; Files=stdout stderr addr64.bin
7 ;Testname=Ox; Arguments=-Ox -fbin -oaddr64.bin; Files=stdout stderr addr64.bin
8 bits 64
9 mov rdx,[rax]
10 mov eax,[byte rsp+0x01]
11 mov eax,[byte rsp-0x01]
12 mov eax,[byte rsp+0xFF]
13 mov eax,[byte rsp-0xFF]
14 mov eax,[rsp+0x08]
15 mov eax,[rsp-0x01]
16 mov eax,[rsp+0xFF]
17 mov eax,[rsp-0xFF]
18 mov rax,[rsp+56]
19 mov [rsi],dl
20 mov byte [rsi],'-'
21 mov [rsi],al
22 mov byte [rsi],' '