summaryrefslogtreecommitdiff
path: root/test/parse/expr/bad-simd-shuffle-lane-index-overflow2.txt
diff options
context:
space:
mode:
authorgnzlbg <gnzlbg@users.noreply.github.com>2019-03-07 11:47:04 +0100
committerBen Smith <binjimin@gmail.com>2019-03-07 02:47:04 -0800
commita44ee1228e2a1408ae773dfeb2dfc0463b371ea2 (patch)
treea027807c209dac69d2f8a02e7e05f227467913ed /test/parse/expr/bad-simd-shuffle-lane-index-overflow2.txt
parent2d1f2c9d5a544181f5a7bc5598831323ffa223c7 (diff)
downloadwabt-a44ee1228e2a1408ae773dfeb2dfc0463b371ea2.tar.gz
wabt-a44ee1228e2a1408ae773dfeb2dfc0463b371ea2.tar.bz2
wabt-a44ee1228e2a1408ae773dfeb2dfc0463b371ea2.zip
Update textual encoding of SIMD vector shuffle to conform to the latest SIMD draft (#1034)
Diffstat (limited to 'test/parse/expr/bad-simd-shuffle-lane-index-overflow2.txt')
-rw-r--r--test/parse/expr/bad-simd-shuffle-lane-index-overflow2.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/parse/expr/bad-simd-shuffle-lane-index-overflow2.txt b/test/parse/expr/bad-simd-shuffle-lane-index-overflow2.txt
new file mode 100644
index 00000000..8201821c
--- /dev/null
+++ b/test/parse/expr/bad-simd-shuffle-lane-index-overflow2.txt
@@ -0,0 +1,15 @@
+;;; TOOL: wat2wasm
+;;; ARGS: --enable-simd
+;;; ERROR: 1
+(module
+ (func
+ v128.const i32 0xff00ff01 0xff00ff0f 0xff00ffff 0xff00ff7f
+ v128.const i32 0x00550055 0x00550055 0x00550055 0x00550155
+ v8x16.shuffle 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 33
+ ))
+
+(;; STDERR ;;;
+out/test/parse/expr/bad-simd-shuffle-lane-index-overflow2.txt:8:55: error: shuffle index "33" out-of-range [0, 32)
+ v8x16.shuffle 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 33
+ ^^
+;;; STDERR ;;)