mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
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:
parent
89a2ac0d0a
commit
186b533425
13
test/relocs.asm
Normal file
13
test/relocs.asm
Normal 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
|
Loading…
Reference in New Issue
Block a user