aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-05 12:06:45 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 21:43:46 +0300
commit824d0f00ad82ed6b42dbb30521ac1ec232695013 (patch)
treefa12fa64556cc9178598c9dd4980866ff2fa528f /travis/test
parent9b50d362e50216208c3e1840646e5aea0f98592e (diff)
downloadnasm-824d0f00ad82ed6b42dbb30521ac1ec232695013.tar.gz
nasm-824d0f00ad82ed6b42dbb30521ac1ec232695013.tar.xz
nasm-824d0f00ad82ed6b42dbb30521ac1ec232695013.zip
test: nasm-t -- Add riprel2
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/test')
-rw-r--r--travis/test/riprel2.asm8
-rw-r--r--travis/test/riprel2.bin.tbin0 -> 38 bytes
-rw-r--r--travis/test/riprel2.json18
3 files changed, 26 insertions, 0 deletions
diff --git a/travis/test/riprel2.asm b/travis/test/riprel2.asm
new file mode 100644
index 00000000..fe7077da
--- /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 00000000..a521782e
--- /dev/null
+++ b/travis/test/riprel2.bin.t
Binary files differ
diff --git a/travis/test/riprel2.json b/travis/test/riprel2.json
new file mode 100644
index 00000000..fb74724d
--- /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"
+ }
+]