nasm/test/relocs.asm
H. Peter Anvin 186b533425 test: Add a test for various 32- and 64-bit relocations
Test signedness in a couple of different contexts.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2013-11-26 18:24:22 -08:00

14 lines
142 B
NASM

bits 64
extern foo
mov eax,[foo]
mov rax,[foo]
mov rax,[qword foo]
mov eax,foo
mov rax,dword foo
mov rax,qword foo
dd foo
dq foo