summaryrefslogtreecommitdiff
path: root/test/parse/expr/bad-simd-shuffle-lane-index-overflow2.txt
blob: 47717ff0bd09c6bfa3886fd7051c2718287fd28c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
;;; TOOL: wat2wasm
;;; ARGS: --enable-simd
;;; ERROR: 1
(module
  (func
    v128.const i32x4 0xff00ff01 0xff00ff0f 0xff00ffff 0xff00ff7f
    v128.const i32x4 0x00550055 0x00550055 0x00550055 0x00550155
    v8x16.shuffle 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 33
    drop
    ))

(;; STDERR ;;;
out/test/parse/expr/bad-simd-shuffle-lane-index-overflow2.txt:8:5: error: lane index must be less than 32 (got 33)
    v8x16.shuffle 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 33
    ^^^^^^^^^^^^^
;;; STDERR ;;)