Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit f692ef0

Browse files
authored
Merge pull request #204 from Honry/fix-mul-table-error
Fixed multiple tables error in simd_const.wast
2 parents a9ef3c9 + d4c09c3 commit f692ef0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/core/simd/simd_const.wast

+11-11
Original file line numberDiff line numberDiff line change
@@ -909,13 +909,6 @@
909909
(func (export "as-call-param") (result v128)
910910
(call $f (v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3))
911911
)
912-
(type $sig (func (param v128 v128 v128) (result v128)))
913-
(table funcref (elem $f))
914-
(func (export "as-call_indirect-param") (result v128)
915-
(call_indirect (type $sig)
916-
(v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3) (i32.const 0)
917-
)
918-
)
919912
(func (export "as-block-retval") (result v128)
920913
(block (result v128) (v128.const i32x4 0 1 2 3))
921914
)
@@ -951,11 +944,17 @@
951944
(func (export "as-call-param2") (result v128)
952945
(call $f2 (v128.const i64x2 0 1) (v128.const i64x2 0 1) (v128.const i64x2 0 1))
953946
)
954-
(type $sig2 (func (param v128 v128 v128) (result v128)))
955-
(table funcref (elem $f2))
947+
948+
(type $sig (func (param v128 v128 v128) (result v128)))
949+
(table funcref (elem $f $f2))
950+
(func (export "as-call_indirect-param") (result v128)
951+
(call_indirect (type $sig)
952+
(v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3) (i32.const 0)
953+
)
954+
)
956955
(func (export "as-call_indirect-param2") (result v128)
957-
(call_indirect (type $sig2)
958-
(v128.const i64x2 0 1) (v128.const i64x2 0 1) (v128.const i64x2 0 1) (i32.const 0)
956+
(call_indirect (type $sig)
957+
(v128.const i64x2 0 1) (v128.const i64x2 0 1) (v128.const i64x2 0 1) (i32.const 1)
959958
)
960959
)
961960
(func (export "as-block-retval2") (result v128)
@@ -986,6 +985,7 @@
986985
(assert_return (invoke "as-if-then-retval2") (v128.const i64x2 0 1))
987986
(assert_return (invoke "as-if-else-retval2") (v128.const i64x2 1 0))
988987
(assert_return (invoke "as-call-param2") (v128.const i64x2 0 1))
988+
(assert_return (invoke "as-call_indirect-param2") (v128.const i64x2 0 1))
989989
(assert_return (invoke "as-block-retval2") (v128.const i64x2 0 1))
990990
(assert_return (invoke "as-loop-retval2") (v128.const i64x2 0 1))
991991
(assert_return (invoke "as-drop-operand2"))

0 commit comments

Comments
 (0)