aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-10-15 00:47:03 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-10-15 00:54:10 +0300
commit32efe62b813cf33236a5c49b547a5fe18abbadab (patch)
tree1f57db17299c1b0b1132af7b2ee141b94051ab91
parent013702791127f2c889aae79a5af324bbed805375 (diff)
downloadnasm-32efe62b813cf33236a5c49b547a5fe18abbadab.tar.gz
nasm-32efe62b813cf33236a5c49b547a5fe18abbadab.tar.xz
nasm-32efe62b813cf33236a5c49b547a5fe18abbadab.zip
travis: add gather
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--travis/test/gather.asm11
-rw-r--r--travis/test/gather.bin.t1
-rw-r--r--travis/test/gather.json12
3 files changed, 24 insertions, 0 deletions
diff --git a/travis/test/gather.asm b/travis/test/gather.asm
new file mode 100644
index 00000000..a7bb0ffd
--- /dev/null
+++ b/travis/test/gather.asm
@@ -0,0 +1,11 @@
+ bits 64
+
+ VGATHERQPS xmm1, [xmm0 + rsi], xmm2 ; OK
+ VGATHERQPS xmm1, [ymm0 + rsi], xmm2 ; wrong fail: error: invalid effective address
+ VGATHERDPD ymm1, [xmm0 + rsi], ymm2 ; OK
+ VGATHERDPD xmm1, [xmm0 + rsi], xmm2 ; OK
+ VGATHERQPD xmm1, [xmm0 + rsi], xmm2 ; OK
+ VGATHERQPD ymm1, [ymm0 + rsi], ymm2 ; OK
+ VPGATHERQD xmm1, [xmm0 + rsi], xmm2 ; OK
+ VPGATHERQD xmm1, [ymm0 + rsi], xmm2 ; wrong fail: error: invalid effective address
+ VPGATHERDQ ymm1, [xmm0 + rsi], ymm2 ; OK
diff --git a/travis/test/gather.bin.t b/travis/test/gather.bin.t
new file mode 100644
index 00000000..52b7c3b1
--- /dev/null
+++ b/travis/test/gather.bin.t
@@ -0,0 +1 @@
+i m     i m   \ No newline at end of file
diff --git a/travis/test/gather.json b/travis/test/gather.json
new file mode 100644
index 00000000..79c5714f
--- /dev/null
+++ b/travis/test/gather.json
@@ -0,0 +1,12 @@
+[
+ {
+ "description": "Test VGATHER",
+ "id": "gather",
+ "format": "bin",
+ "source": "gather.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "gather.bin" }
+ ]
+ }
+]