mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-25 18:10:23 +08:00
test: nasm-t -- Add riprel2
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
9b50d362e5
commit
824d0f00ad
8
travis/test/riprel2.asm
Normal file
8
travis/test/riprel2.asm
Normal file
@ -0,0 +1,8 @@
|
||||
bits 64
|
||||
|
||||
default rel
|
||||
mov dword [foo],12345678h
|
||||
mov qword [foo],12345678h
|
||||
mov [foo],rax
|
||||
mov dword [foo],12345678h
|
||||
foo:
|
BIN
travis/test/riprel2.bin.t
Normal file
BIN
travis/test/riprel2.bin.t
Normal file
Binary file not shown.
18
travis/test/riprel2.json
Normal file
18
travis/test/riprel2.json
Normal file
@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"description": "Test rip relative addressing (-Ox)",
|
||||
"id": "riprel2",
|
||||
"format": "bin",
|
||||
"source": "riprel2.asm",
|
||||
"option": "-Ox",
|
||||
"target": [
|
||||
{ "output": "riprel2.bin" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Test rip relative addressing (-O0)",
|
||||
"ref": "riprel2",
|
||||
"option": "-O0",
|
||||
"update": "false"
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user