Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions test/core/simd/simd_const.wast
Original file line number Diff line number Diff line change
Expand Up @@ -909,13 +909,6 @@
(func (export "as-call-param") (result v128)
(call $f (v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3))
)
(type $sig (func (param v128 v128 v128) (result v128)))
(table funcref (elem $f))
(func (export "as-call_indirect-param") (result v128)
(call_indirect (type $sig)
(v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3) (i32.const 0)
)
)
(func (export "as-block-retval") (result v128)
(block (result v128) (v128.const i32x4 0 1 2 3))
)
Expand Down Expand Up @@ -951,11 +944,17 @@
(func (export "as-call-param2") (result v128)
(call $f2 (v128.const i64x2 0 1) (v128.const i64x2 0 1) (v128.const i64x2 0 1))
)
(type $sig2 (func (param v128 v128 v128) (result v128)))
(table funcref (elem $f2))

(type $sig (func (param v128 v128 v128) (result v128)))
(table funcref (elem $f $f2))
(func (export "as-call_indirect-param") (result v128)
(call_indirect (type $sig)
(v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3) (v128.const i32x4 0 1 2 3) (i32.const 0)
)
)
(func (export "as-call_indirect-param2") (result v128)
(call_indirect (type $sig2)
(v128.const i64x2 0 1) (v128.const i64x2 0 1) (v128.const i64x2 0 1) (i32.const 0)
(call_indirect (type $sig)
(v128.const i64x2 0 1) (v128.const i64x2 0 1) (v128.const i64x2 0 1) (i32.const 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I forgot about changing the index too. Thanks for checking!

)
)
(func (export "as-block-retval2") (result v128)
Expand Down Expand Up @@ -986,6 +985,7 @@
(assert_return (invoke "as-if-then-retval2") (v128.const i64x2 0 1))
(assert_return (invoke "as-if-else-retval2") (v128.const i64x2 1 0))
(assert_return (invoke "as-call-param2") (v128.const i64x2 0 1))
(assert_return (invoke "as-call_indirect-param2") (v128.const i64x2 0 1))
(assert_return (invoke "as-block-retval2") (v128.const i64x2 0 1))
(assert_return (invoke "as-loop-retval2") (v128.const i64x2 0 1))
(assert_return (invoke "as-drop-operand2"))
Expand Down