Skip to content

Commit fffc6e1

Browse files
authored
[simd] Add additional test input for i32x4.dot_i16x8_s (#1955)
1 parent 1041527 commit fffc6e1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/core/simd/simd_i32x4_dot_i16x8.wast

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@
8686
(v128.const i16x8 65535 65535 65535 65535 65535 65535 65535 65535))
8787
(v128.const i32x4 2 2 2 2))
8888

89+
(assert_return (invoke "i32x4.dot_i16x8_s" (v128.const i16x8 -32768 65535 -32768 65535 -32768 65535 -32768 65535)
90+
(v128.const i16x8 -32767 0 -32767 0 -32767 0 -32767 0))
91+
(v128.const i32x4 1073709056 1073709056 1073709056 1073709056))
92+
93+
(assert_return (invoke "i32x4.dot_i16x8_s" (v128.const i16x8 111 222 333 444 555 666 777 888)
94+
(v128.const i16x8 1111 2222 3333 4444 5555 6666 7777 8888))
95+
(v128.const i32x4 616605 3083025 7522581 13935273))
96+
97+
8998
;; type check
9099
(assert_invalid (module (func (result v128) (i32x4.dot_i16x8_s (i32.const 0) (f32.const 0.0)))) "type mismatch")
91100

@@ -107,4 +116,3 @@
107116
)
108117
"type mismatch"
109118
)
110-

0 commit comments

Comments
 (0)