test: nasm-t -- Add riprel2

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-05 12:06:45 +03:00
parent 9b50d362e5
commit 824d0f00ad
3 changed files with 26 additions and 0 deletions

8
travis/test/riprel2.asm Normal file
View 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

Binary file not shown.

18
travis/test/riprel2.json Normal file
View 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"
}
]