aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 16:32:25 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 16:36:10 +0300
commit852e80b01153a1a56b7408b7808d04307388b535 (patch)
tree96a64b749f027aeabbdc3762c85b5c94a2f6c95f /travis/test
parent70eb4a0885da2db265c6505517873a2d5dba694a (diff)
downloadnasm-852e80b01153a1a56b7408b7808d04307388b535.tar.gz
nasm-852e80b01153a1a56b7408b7808d04307388b535.tar.xz
nasm-852e80b01153a1a56b7408b7808d04307388b535.zip
travis: add vex
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/test')
-rw-r--r--travis/test/vex.asm9
-rw-r--r--travis/test/vex.bin.t1
-rw-r--r--travis/test/vex.json21
-rw-r--r--travis/test/vex.stderr1
4 files changed, 32 insertions, 0 deletions
diff --git a/travis/test/vex.asm b/travis/test/vex.asm
new file mode 100644
index 00000000..6772c7ce
--- /dev/null
+++ b/travis/test/vex.asm
@@ -0,0 +1,9 @@
+ bits 64
+ vcomisd xmm0,xmm31
+ vcomisd xmm0,xmm1
+ {vex2} vcomisd xmm0,xmm1
+ {vex3} vcomisd xmm0,xmm1
+ {evex} vcomisd xmm0,xmm1
+%ifdef ERROR
+ {vex3} add eax,edx
+%endif
diff --git a/travis/test/vex.bin.t b/travis/test/vex.bin.t
new file mode 100644
index 00000000..2145d4cf
--- /dev/null
+++ b/travis/test/vex.bin.t
@@ -0,0 +1 @@
+b///y/b/ \ No newline at end of file
diff --git a/travis/test/vex.json b/travis/test/vex.json
new file mode 100644
index 00000000..e1db1923
--- /dev/null
+++ b/travis/test/vex.json
@@ -0,0 +1,21 @@
+[
+ {
+ "description": "Test VEX2/VEX3/EVEX prefix",
+ "id": "vex",
+ "format": "bin",
+ "source": "vex.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "vex.bin" }
+ ]
+ },
+ {
+ "description": "Test VEX3 prefix error",
+ "ref": "vex",
+ "option": "-Ox -DERROR -o vex.bin.err",
+ "target": [
+ { "stderr": "vex.stderr" }
+ ],
+ "error": "expected"
+ }
+]
diff --git a/travis/test/vex.stderr b/travis/test/vex.stderr
new file mode 100644
index 00000000..2d8858bc
--- /dev/null
+++ b/travis/test/vex.stderr
@@ -0,0 +1 @@
+./travis/test/vex.asm:8: error: specific encoding scheme not available \ No newline at end of file