aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 18:12:09 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 18:12:09 +0300
commit6691653710828d98d715d0333f6f88aa6f7ca74d (patch)
tree4acd41309261522d5aef714812129be84930562d /travis/test
parent40650a357a92d9edd858a72aabce06d491799df8 (diff)
downloadnasm-6691653710828d98d715d0333f6f88aa6f7ca74d.tar.gz
nasm-6691653710828d98d715d0333f6f88aa6f7ca74d.tar.xz
nasm-6691653710828d98d715d0333f6f88aa6f7ca74d.zip
travis: add v4
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/test')
-rw-r--r--travis/test/v4.asm16
-rw-r--r--travis/test/v4.bin.tbin0 -> 42 bytes
-rw-r--r--travis/test/v4.json21
-rw-r--r--travis/test/v4.stderr3
4 files changed, 40 insertions, 0 deletions
diff --git a/travis/test/v4.asm b/travis/test/v4.asm
new file mode 100644
index 00000000..bf88fd86
--- /dev/null
+++ b/travis/test/v4.asm
@@ -0,0 +1,16 @@
+ bits 64
+
+ v4fmaddps zmm0,zmm1+3,[rax]
+ v4fnmaddps zmm2,zmm3,[rax]
+ v4fmaddss zmm4,zmm5+3,[rax]
+ v4fnmaddss zmm6,zmm7+3,[rax]
+
+ v4dpwssds zmm8,zmm9,[rax]
+ v4dpwssd zmm10,zmm11+3,[rax]
+ v4dpwssd zmm10+0,zmm11+3,[rax]
+
+%ifdef ERROR
+ v4dpwssd zmm10+1,zmm11+3,[rax]
+ v4dpwssd zmm10,zmm11+4,[rax]
+ v4dpwssd zmm10,zmm11+7,[rax]
+%endif
diff --git a/travis/test/v4.bin.t b/travis/test/v4.bin.t
new file mode 100644
index 00000000..fc94d407
--- /dev/null
+++ b/travis/test/v4.bin.t
Binary files differ
diff --git a/travis/test/v4.json b/travis/test/v4.json
new file mode 100644
index 00000000..99887cab
--- /dev/null
+++ b/travis/test/v4.json
@@ -0,0 +1,21 @@
+[
+ {
+ "description": "Test v4 instructions",
+ "id": "v4",
+ "format": "bin",
+ "source": "v4.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "v4.bin" }
+ ]
+ },
+ {
+ "description": "Test v4 instructions (error)",
+ "ref": "v4",
+ "option": "-DERROR -o v4.bin",
+ "target": [
+ { "stderr": "v4.stderr" }
+ ],
+ "error": "expected"
+ }
+]
diff --git a/travis/test/v4.stderr b/travis/test/v4.stderr
new file mode 100644
index 00000000..ea92399d
--- /dev/null
+++ b/travis/test/v4.stderr
@@ -0,0 +1,3 @@
+./travis/test/v4.asm:13: error: register set not valid for operand
+./travis/test/v4.asm:14: error: invalid register set size
+./travis/test/v4.asm:15: error: invalid register set size \ No newline at end of file