aboutsummaryrefslogtreecommitdiffstats
path: root/travis
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-08-24 18:03:32 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-08-24 18:03:32 +0300
commitd2e3bd850f59603b8402074fcd578312e308f1af (patch)
tree49c7eeff4b17662dc822bf0e593cf9728972febb /travis
parentb2fb88596e502dcd015c2f1479d35d814abdf66d (diff)
downloadnasm-d2e3bd850f59603b8402074fcd578312e308f1af.tar.gz
nasm-d2e3bd850f59603b8402074fcd578312e308f1af.tar.xz
nasm-d2e3bd850f59603b8402074fcd578312e308f1af.zip
travis: add xpaste test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis')
-rw-r--r--travis/test/xpaste.asm6
-rw-r--r--travis/test/xpaste.bin.t1
-rw-r--r--travis/test/xpaste.json11
3 files changed, 18 insertions, 0 deletions
diff --git a/travis/test/xpaste.asm b/travis/test/xpaste.asm
new file mode 100644
index 00000000..cb994588
--- /dev/null
+++ b/travis/test/xpaste.asm
@@ -0,0 +1,6 @@
+%iassign OWORD_size 16 ; octo-word
+%idefine sizeof(_x_) _x_%+_size
+
+%define ptr eax+sizeof(oword)
+
+movdqa [ptr], xmm1
diff --git a/travis/test/xpaste.bin.t b/travis/test/xpaste.bin.t
new file mode 100644
index 00000000..59bb2f04
--- /dev/null
+++ b/travis/test/xpaste.bin.t
@@ -0,0 +1 @@
+gfH \ No newline at end of file
diff --git a/travis/test/xpaste.json b/travis/test/xpaste.json
new file mode 100644
index 00000000..31721c15
--- /dev/null
+++ b/travis/test/xpaste.json
@@ -0,0 +1,11 @@
+[
+ {
+ "description": "Test preproc xdefine",
+ "id": "xpaste",
+ "source": "xpaste.asm",
+ "option": "-f bin -Ox",
+ "target": [
+ { "output": "xpaste.bin" }
+ ]
+ }
+]