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>
This commit is contained in:
H. Peter Anvin 2013-11-26 18:24:22 -08:00
parent 89a2ac0d0a
commit 186b533425

13
test/relocs.asm Normal file
View File

@ -0,0 +1,13 @@
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