aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 18:59:06 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-08-25 18:59:06 +0300
commit296cf9bebc4ea98087e1040bde5f0edd90cf18c2 (patch)
tree05565daf1a18bd514e57ce1c34b32adab2347133 /travis/test
parent6691653710828d98d715d0333f6f88aa6f7ca74d (diff)
downloadnasm-296cf9bebc4ea98087e1040bde5f0edd90cf18c2.tar.gz
nasm-296cf9bebc4ea98087e1040bde5f0edd90cf18c2.tar.xz
nasm-296cf9bebc4ea98087e1040bde5f0edd90cf18c2.zip
travis: add br3392392
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/test')
-rw-r--r--travis/test/br3392392.asm15
-rw-r--r--travis/test/br3392392.bin.tbin0 -> 48 bytes
-rw-r--r--travis/test/br3392392.json21
-rw-r--r--travis/test/br3392392.stderr1
4 files changed, 37 insertions, 0 deletions
diff --git a/travis/test/br3392392.asm b/travis/test/br3392392.asm
new file mode 100644
index 00000000..8a52da67
--- /dev/null
+++ b/travis/test/br3392392.asm
@@ -0,0 +1,15 @@
+ bits 64
+ vpaddd zmm0, zmm0, [rax]{1to16}
+ vpaddd zmm2{k3}, zmm0, zmm1
+ vpaddd zmm2 {k3}, zmm0, zmm1
+ vpaddd zmm0{k1}, zmm0, [rax]{1to16}
+ vmovdqa32 [rsi]{k1}, zmm1
+ vmovdqa32 [rsi]{z}, zmm1
+ vmovdqa32 [rsi]{k1}{z}, zmm1
+ vmovdqa32 [rsi]{z}{k1}, zmm1
+%ifdef ERROR
+ vmovdqa32 [rsi]{z}{1to16}, zmm1
+ vmovdqa32 [rsi]{z}{k1}{1to16}, zmm1
+ vpaddd zmm0, zmm0, [rax]{k1}
+ vpaddd zmm0, zmm1, zmm2{1to16}
+%endif
diff --git a/travis/test/br3392392.bin.t b/travis/test/br3392392.bin.t
new file mode 100644
index 00000000..f0b476db
--- /dev/null
+++ b/travis/test/br3392392.bin.t
Binary files differ
diff --git a/travis/test/br3392392.json b/travis/test/br3392392.json
new file mode 100644
index 00000000..42fa96ec
--- /dev/null
+++ b/travis/test/br3392392.json
@@ -0,0 +1,21 @@
+[
+ {
+ "description": "Test br3392392",
+ "id": "br3392392",
+ "format": "bin",
+ "source": "br3392392.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "br3392392.bin" }
+ ]
+ },
+ {
+ "description": "Test br3392392 (error)",
+ "ref": "br3392392",
+ "option": "-DERROR -o br3392392.bin",
+ "target": [
+ { "stderr": "br3392392.stderr" }
+ ],
+ "error": "expected"
+ }
+]
diff --git a/travis/test/br3392392.stderr b/travis/test/br3392392.stderr
new file mode 100644
index 00000000..a40a0d48
--- /dev/null
+++ b/travis/test/br3392392.stderr
@@ -0,0 +1 @@
+./travis/test/br3392392.asm:14: error: broadcast not allowed with register operand \ No newline at end of file