From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:01:21
|
Commit-ID: 824d0f00ad82ed6b42dbb30521ac1ec232695013 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=824d0f00ad82ed6b42dbb30521ac1ec232695013 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Mon, 5 Nov 2018 12:06:45 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:46 +0300 test: nasm-t -- Add riprel2 Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- travis/test/riprel2.asm | 8 ++++++++ travis/test/riprel2.bin.t | Bin 0 -> 38 bytes travis/test/riprel2.json | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/travis/test/riprel2.asm b/travis/test/riprel2.asm new file mode 100644 index 0000000..fe7077d --- /dev/null +++ b/travis/test/riprel2.asm @@ -0,0 +1,8 @@ + bits 64 + + default rel + mov dword [foo],12345678h + mov qword [foo],12345678h + mov [foo],rax + mov dword [foo],12345678h +foo: diff --git a/travis/test/riprel2.bin.t b/travis/test/riprel2.bin.t new file mode 100644 index 0000000..a521782 Binary files /dev/null and b/travis/test/riprel2.bin.t differ diff --git a/travis/test/riprel2.json b/travis/test/riprel2.json new file mode 100644 index 0000000..fb74724 --- /dev/null +++ b/travis/test/riprel2.json @@ -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" + } +] |