summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/dot_s/alias.wast2
-rw-r--r--test/dot_s/basics.wast2
-rw-r--r--test/dot_s/bcp-1.wast2
-rw-r--r--test/dot_s/dyncall.wast2
-rw-r--r--test/dot_s/indidx.wast2
-rw-r--r--test/dot_s/indirect-import.wast2
-rw-r--r--test/dot_s/invoke_wrapper.wast2
-rw-r--r--test/emcc_O2_hello_world.fromasm2
-rw-r--r--test/emcc_O2_hello_world.fromasm.imprecise2
-rw-r--r--test/emcc_O2_hello_world.fromasm.imprecise.no-opts2
-rw-r--r--test/emcc_O2_hello_world.fromasm.no-opts2
-rw-r--r--test/emcc_hello_world.fromasm2
-rw-r--r--test/emcc_hello_world.fromasm.imprecise2
-rw-r--r--test/emcc_hello_world.fromasm.imprecise.no-opts2
-rw-r--r--test/emcc_hello_world.fromasm.no-opts2
-rw-r--r--test/example/c-api-kitchen-sink.txt4
-rw-r--r--test/example/c-api-kitchen-sink.txt.txt2
-rw-r--r--test/memorygrowth.fromasm2
-rw-r--r--test/memorygrowth.fromasm.imprecise2
-rw-r--r--test/memorygrowth.fromasm.imprecise.no-opts2
-rw-r--r--test/memorygrowth.fromasm.no-opts2
-rw-r--r--test/passes/dce.txt2
-rw-r--r--test/passes/duplicate-function-elimination.txt8
-rw-r--r--test/passes/remove-unused-functions.txt2
-rw-r--r--test/passes/remove-unused-names_merge-blocks.txt2
-rw-r--r--test/unit.fromasm2
-rw-r--r--test/unit.fromasm.imprecise2
-rw-r--r--test/unit.fromasm.imprecise.no-opts2
-rw-r--r--test/unit.fromasm.no-opts2
-rw-r--r--test/unit.wast2
-rw-r--r--test/unit.wast.fromBinary4
31 files changed, 36 insertions, 36 deletions
diff --git a/test/dot_s/alias.wast b/test/dot_s/alias.wast
index ab52137a1..8ba469564 100644
--- a/test/dot_s/alias.wast
+++ b/test/dot_s/alias.wast
@@ -7,7 +7,7 @@
(export "__needs_exit" $__needs_exit)
(export "dynCall_v" $dynCall_v)
(table 2 2 anyfunc)
- (elem $__wasm_nullptr $__exit)
+ (elem (i32.const 0) $__wasm_nullptr $__exit)
(func $__exit (type $FUNCSIG$v)
(return
(i32.add
diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast
index e4cd73251..3562140fb 100644
--- a/test/dot_s/basics.wast
+++ b/test/dot_s/basics.wast
@@ -11,7 +11,7 @@
(export "main" $main)
(export "dynCall_iii" $dynCall_iii)
(table 2 2 anyfunc)
- (elem $__wasm_nullptr $main)
+ (elem (i32.const 0) $__wasm_nullptr $main)
(func $main (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(call_import $puts
(i32.const 16)
diff --git a/test/dot_s/bcp-1.wast b/test/dot_s/bcp-1.wast
index a5a63d750..1b76a98af 100644
--- a/test/dot_s/bcp-1.wast
+++ b/test/dot_s/bcp-1.wast
@@ -35,7 +35,7 @@
(export "dynCall_i" $dynCall_i)
(export "dynCall_ii" $dynCall_ii)
(table 18 18 anyfunc)
- (elem $__wasm_nullptr $bad0 $bad1 $bad5 $bad7 $bad8 $bad10 $bad2 $bad3 $bad6 $bad4 $bad9 $good0 $good1 $good2 $opt0 $opt1 $opt2)
+ (elem (i32.const 0) $__wasm_nullptr $bad0 $bad1 $bad5 $bad7 $bad8 $bad10 $bad2 $bad3 $bad6 $bad4 $bad9 $good0 $good1 $good2 $opt0 $opt1 $opt2)
(func $bad0 (type $FUNCSIG$i) (result i32)
(return
(i32.const 0)
diff --git a/test/dot_s/dyncall.wast b/test/dot_s/dyncall.wast
index f349bce7f..c6dae687a 100644
--- a/test/dot_s/dyncall.wast
+++ b/test/dot_s/dyncall.wast
@@ -16,7 +16,7 @@
(export "dynCall_if" $dynCall_if)
(export "dynCall_vd" $dynCall_vd)
(table 6 6 anyfunc)
- (elem $__wasm_nullptr $i $i_f $vd $ffjjdi $vd2)
+ (elem (i32.const 0) $__wasm_nullptr $i $i_f $vd $ffjjdi $vd2)
(func $i (type $FUNCSIG$i) (result i32)
(i32.const 0)
)
diff --git a/test/dot_s/indidx.wast b/test/dot_s/indidx.wast
index 797183b04..6cdb6c4ce 100644
--- a/test/dot_s/indidx.wast
+++ b/test/dot_s/indidx.wast
@@ -8,7 +8,7 @@
(export "main" $main)
(export "dynCall_i" $dynCall_i)
(table 5 5 anyfunc)
- (elem $__wasm_nullptr $c $b $d $a)
+ (elem (i32.const 0) $__wasm_nullptr $c $b $d $a)
(func $a (type $FUNCSIG$i) (result i32)
(i32.const 0)
)
diff --git a/test/dot_s/indirect-import.wast b/test/dot_s/indirect-import.wast
index 8c8c3e01c..86c8ded00 100644
--- a/test/dot_s/indirect-import.wast
+++ b/test/dot_s/indirect-import.wast
@@ -18,7 +18,7 @@
(export "dynCall_v" $dynCall_v)
(export "dynCall_vi" $dynCall_vi)
(table 7 7 anyfunc)
- (elem $__wasm_nullptr $__importThunk_extern_fd $__importThunk_extern_vj $__importThunk_extern_v $__importThunk_extern_ijidf $__importThunk_extern_struct $__importThunk_extern_sret)
+ (elem (i32.const 0) $__wasm_nullptr $__importThunk_extern_fd $__importThunk_extern_vj $__importThunk_extern_v $__importThunk_extern_ijidf $__importThunk_extern_struct $__importThunk_extern_sret)
(func $bar (result i32)
(local $0 i32)
(local $1 i32)
diff --git a/test/dot_s/invoke_wrapper.wast b/test/dot_s/invoke_wrapper.wast
index c4a6d5931..d54e94d03 100644
--- a/test/dot_s/invoke_wrapper.wast
+++ b/test/dot_s/invoke_wrapper.wast
@@ -18,7 +18,7 @@
(export "dynCall_ffd" $dynCall_ffd)
(export "dynCall_iii" $dynCall_iii)
(table 5 5 anyfunc)
- (elem $__wasm_nullptr $_Z5func1v $_Z5func2iii $_Z5func3fd $_Z5func4P8mystructS_)
+ (elem (i32.const 0) $__wasm_nullptr $_Z5func1v $_Z5func2iii $_Z5func3fd $_Z5func4P8mystructS_)
(func $_Z5func1v (type $FUNCSIG$v)
)
(func $_Z5func2iii (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
diff --git a/test/emcc_O2_hello_world.fromasm b/test/emcc_O2_hello_world.fromasm
index a324f42ba..49d63fa8c 100644
--- a/test/emcc_O2_hello_world.fromasm
+++ b/test/emcc_O2_hello_world.fromasm
@@ -43,7 +43,7 @@
(export "dynCall_iiii" $dynCall_iiii)
(export "dynCall_vi" $dynCall_vi)
(table 18 18 anyfunc)
- (elem $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $b1 $___stdio_write $b1 $b1 $b2 $b2 $b2 $b2 $_cleanup_418 $b2 $b2 $b2)
+ (elem (i32.const 0) $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $b1 $___stdio_write $b1 $b1 $b2 $b2 $b2 $b2 $_cleanup_418 $b2 $b2 $b2)
(func $_malloc (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
diff --git a/test/emcc_O2_hello_world.fromasm.imprecise b/test/emcc_O2_hello_world.fromasm.imprecise
index 127b7f77f..4f0513d28 100644
--- a/test/emcc_O2_hello_world.fromasm.imprecise
+++ b/test/emcc_O2_hello_world.fromasm.imprecise
@@ -42,7 +42,7 @@
(export "dynCall_iiii" $dynCall_iiii)
(export "dynCall_vi" $dynCall_vi)
(table 18 18 anyfunc)
- (elem $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $b1 $___stdio_write $b1 $b1 $b2 $b2 $b2 $b2 $_cleanup_418 $b2 $b2 $b2)
+ (elem (i32.const 0) $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $b1 $___stdio_write $b1 $b1 $b2 $b2 $b2 $b2 $_cleanup_418 $b2 $b2 $b2)
(func $_malloc (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
diff --git a/test/emcc_O2_hello_world.fromasm.imprecise.no-opts b/test/emcc_O2_hello_world.fromasm.imprecise.no-opts
index 6822928b3..494915489 100644
--- a/test/emcc_O2_hello_world.fromasm.imprecise.no-opts
+++ b/test/emcc_O2_hello_world.fromasm.imprecise.no-opts
@@ -42,7 +42,7 @@
(export "dynCall_iiii" $dynCall_iiii)
(export "dynCall_vi" $dynCall_vi)
(table 18 18 anyfunc)
- (elem $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $b1 $___stdio_write $b1 $b1 $b2 $b2 $b2 $b2 $_cleanup_418 $b2 $b2 $b2)
+ (elem (i32.const 0) $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $b1 $___stdio_write $b1 $b1 $b2 $b2 $b2 $b2 $_cleanup_418 $b2 $b2 $b2)
(func $_malloc (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
diff --git a/test/emcc_O2_hello_world.fromasm.no-opts b/test/emcc_O2_hello_world.fromasm.no-opts
index 6c6ad73c7..e75c5e4b2 100644
--- a/test/emcc_O2_hello_world.fromasm.no-opts
+++ b/test/emcc_O2_hello_world.fromasm.no-opts
@@ -43,7 +43,7 @@
(export "dynCall_iiii" $dynCall_iiii)
(export "dynCall_vi" $dynCall_vi)
(table 18 18 anyfunc)
- (elem $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $b1 $___stdio_write $b1 $b1 $b2 $b2 $b2 $b2 $_cleanup_418 $b2 $b2 $b2)
+ (elem (i32.const 0) $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $b1 $___stdio_write $b1 $b1 $b2 $b2 $b2 $b2 $_cleanup_418 $b2 $b2 $b2)
(func $_malloc (param $i1 i32) (result i32)
(local $i2 i32)
(local $i3 i32)
diff --git a/test/emcc_hello_world.fromasm b/test/emcc_hello_world.fromasm
index 9d4993ec3..1ef3b9017 100644
--- a/test/emcc_hello_world.fromasm
+++ b/test/emcc_hello_world.fromasm
@@ -56,7 +56,7 @@
(export "dynCall_vi" $dynCall_vi)
(export "___udivmoddi4" $___udivmoddi4)
(table 18 18 anyfunc)
- (elem $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $___stdio_write $b1 $b1 $b1 $b2 $b2 $b2 $b2 $b2 $_cleanup $b2 $b2)
+ (elem (i32.const 0) $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $___stdio_write $b1 $b1 $b1 $b2 $b2 $b2 $b2 $b2 $_cleanup $b2 $b2)
(func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise
index 6c9047895..13c8baec6 100644
--- a/test/emcc_hello_world.fromasm.imprecise
+++ b/test/emcc_hello_world.fromasm.imprecise
@@ -50,7 +50,7 @@
(export "dynCall_vi" $dynCall_vi)
(export "___udivmoddi4" $___udivmoddi4)
(table 18 18 anyfunc)
- (elem $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $___stdio_write $b1 $b1 $b1 $b2 $b2 $b2 $b2 $b2 $_cleanup $b2 $b2)
+ (elem (i32.const 0) $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $___stdio_write $b1 $b1 $b1 $b2 $b2 $b2 $b2 $b2 $_cleanup $b2 $b2)
(func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
diff --git a/test/emcc_hello_world.fromasm.imprecise.no-opts b/test/emcc_hello_world.fromasm.imprecise.no-opts
index 35e23d120..d8b887891 100644
--- a/test/emcc_hello_world.fromasm.imprecise.no-opts
+++ b/test/emcc_hello_world.fromasm.imprecise.no-opts
@@ -50,7 +50,7 @@
(export "dynCall_vi" $dynCall_vi)
(export "___udivmoddi4" $___udivmoddi4)
(table 18 18 anyfunc)
- (elem $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $___stdio_write $b1 $b1 $b1 $b2 $b2 $b2 $b2 $b2 $_cleanup $b2 $b2)
+ (elem (i32.const 0) $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $___stdio_write $b1 $b1 $b1 $b2 $b2 $b2 $b2 $b2 $_cleanup $b2 $b2)
(func $stackAlloc (param $size i32) (result i32)
(local $ret i32)
(set_local $ret
diff --git a/test/emcc_hello_world.fromasm.no-opts b/test/emcc_hello_world.fromasm.no-opts
index 27409fe49..efa2de849 100644
--- a/test/emcc_hello_world.fromasm.no-opts
+++ b/test/emcc_hello_world.fromasm.no-opts
@@ -56,7 +56,7 @@
(export "dynCall_vi" $dynCall_vi)
(export "___udivmoddi4" $___udivmoddi4)
(table 18 18 anyfunc)
- (elem $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $___stdio_write $b1 $b1 $b1 $b2 $b2 $b2 $b2 $b2 $_cleanup $b2 $b2)
+ (elem (i32.const 0) $b0 $___stdio_close $b1 $b1 $___stdout_write $___stdio_seek $___stdio_write $b1 $b1 $b1 $b2 $b2 $b2 $b2 $b2 $_cleanup $b2 $b2)
(func $stackAlloc (param $size i32) (result i32)
(local $ret i32)
(set_local $ret
diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt
index 6b766f173..42a5bfee1 100644
--- a/test/example/c-api-kitchen-sink.txt
+++ b/test/example/c-api-kitchen-sink.txt
@@ -18,7 +18,7 @@ BinaryenFloat64: 4
(import $an-imported "module" "base" (param i32 f64) (result f32))
(export "kitchen_sinker" "$kitchen()sinker")
(table 1 1 anyfunc)
- (elem "$kitchen()sinker")
+ (elem (i32.const 0) "$kitchen()sinker")
(func "$kitchen()sinker" (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
(local $4 i32)
(block $the-body
@@ -1411,7 +1411,7 @@ int main() {
(import $an-imported "module" "base" (param i32 f64) (result f32))
(export "kitchen_sinker" "$kitchen()sinker")
(table 1 1 anyfunc)
- (elem "$kitchen()sinker")
+ (elem (i32.const 0) "$kitchen()sinker")
(func "$kitchen()sinker" (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
(local $4 i32)
(block $the-body
diff --git a/test/example/c-api-kitchen-sink.txt.txt b/test/example/c-api-kitchen-sink.txt.txt
index feae7152c..7e32ba431 100644
--- a/test/example/c-api-kitchen-sink.txt.txt
+++ b/test/example/c-api-kitchen-sink.txt.txt
@@ -13,7 +13,7 @@
(import $an-imported "module" "base" (param i32 f64) (result f32))
(export "kitchen_sinker" "$kitchen()sinker")
(table 1 1 anyfunc)
- (elem "$kitchen()sinker")
+ (elem (i32.const 0) "$kitchen()sinker")
(func "$kitchen()sinker" (type $iiIfF) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32)
(local $4 i32)
(block $the-body
diff --git a/test/memorygrowth.fromasm b/test/memorygrowth.fromasm
index ee6b3ae68..c07cc247e 100644
--- a/test/memorygrowth.fromasm
+++ b/test/memorygrowth.fromasm
@@ -41,7 +41,7 @@
(export "dynCall_vi" $mb)
(export "__growWasmMemory" $__growWasmMemory)
(table 8 8 anyfunc)
- (elem $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
+ (elem (i32.const 0) $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
(func $eb (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
diff --git a/test/memorygrowth.fromasm.imprecise b/test/memorygrowth.fromasm.imprecise
index 458ab8f8f..5482b08f6 100644
--- a/test/memorygrowth.fromasm.imprecise
+++ b/test/memorygrowth.fromasm.imprecise
@@ -40,7 +40,7 @@
(export "dynCall_vi" $mb)
(export "__growWasmMemory" $__growWasmMemory)
(table 8 8 anyfunc)
- (elem $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
+ (elem (i32.const 0) $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
(func $eb (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
diff --git a/test/memorygrowth.fromasm.imprecise.no-opts b/test/memorygrowth.fromasm.imprecise.no-opts
index c30a5933b..ddd73a5f8 100644
--- a/test/memorygrowth.fromasm.imprecise.no-opts
+++ b/test/memorygrowth.fromasm.imprecise.no-opts
@@ -40,7 +40,7 @@
(export "dynCall_vi" $mb)
(export "__growWasmMemory" $__growWasmMemory)
(table 8 8 anyfunc)
- (elem $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
+ (elem (i32.const 0) $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
(func $eb (param $a i32) (result i32)
(local $b i32)
(local $c i32)
diff --git a/test/memorygrowth.fromasm.no-opts b/test/memorygrowth.fromasm.no-opts
index 3abed2662..c0a7307c5 100644
--- a/test/memorygrowth.fromasm.no-opts
+++ b/test/memorygrowth.fromasm.no-opts
@@ -41,7 +41,7 @@
(export "dynCall_vi" $mb)
(export "__growWasmMemory" $__growWasmMemory)
(table 8 8 anyfunc)
- (elem $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
+ (elem (i32.const 0) $nb $Oa $ob $Va $Ua $Ra $pb $Sa)
(func $eb (param $a i32) (result i32)
(local $b i32)
(local $c i32)
diff --git a/test/passes/dce.txt b/test/passes/dce.txt
index 9c2836123..9ae5977b6 100644
--- a/test/passes/dce.txt
+++ b/test/passes/dce.txt
@@ -3,7 +3,7 @@
(type $ii (func (param i32 i32)))
(type $1 (func))
(table 1 1 anyfunc)
- (elem $call-me)
+ (elem (i32.const 0) $call-me)
(func $call-me (type $ii) (param $0 i32) (param $1 i32)
(nop)
)
diff --git a/test/passes/duplicate-function-elimination.txt b/test/passes/duplicate-function-elimination.txt
index 6c64b081c..a7511fc5c 100644
--- a/test/passes/duplicate-function-elimination.txt
+++ b/test/passes/duplicate-function-elimination.txt
@@ -39,7 +39,7 @@
(export "keep2" $keep2)
(export "other" $keep2)
(table 3 3 anyfunc)
- (elem $keep2 $keep2 $caller)
+ (elem (i32.const 0) $keep2 $keep2 $caller)
(func $keep2 (type $0)
(nop)
)
@@ -365,7 +365,7 @@
(memory 0)
(type $T (func))
(table 2 2 anyfunc)
- (elem $erase $erase)
+ (elem (i32.const 0) $erase $erase)
(func $erase (type $T)
(call_indirect $T
(i32.const 0)
@@ -376,7 +376,7 @@
(memory 0)
(type $T (func))
(table 2 2 anyfunc)
- (elem $keep2 $other)
+ (elem (i32.const 0) $keep2 $other)
(func $keep2 (type $T)
(call_indirect $T
(i32.const 0)
@@ -393,7 +393,7 @@
(type $T (func))
(type $S (func))
(table 2 2 anyfunc)
- (elem $keep2 $other)
+ (elem (i32.const 0) $keep2 $other)
(func $keep2 (type $T)
(call_indirect $T
(i32.const 0)
diff --git a/test/passes/remove-unused-functions.txt b/test/passes/remove-unused-functions.txt
index 6aa8e3265..cd819d347 100644
--- a/test/passes/remove-unused-functions.txt
+++ b/test/passes/remove-unused-functions.txt
@@ -4,7 +4,7 @@
(type $0 (func))
(export "exported" $exported)
(table 1 1 anyfunc)
- (elem $called_indirect)
+ (elem (i32.const 0) $called_indirect)
(func $start (type $0)
(call $called0)
)
diff --git a/test/passes/remove-unused-names_merge-blocks.txt b/test/passes/remove-unused-names_merge-blocks.txt
index ead2c99ca..88d284a5a 100644
--- a/test/passes/remove-unused-names_merge-blocks.txt
+++ b/test/passes/remove-unused-names_merge-blocks.txt
@@ -5,7 +5,7 @@
(type $iii (func (param i32 i32 i32)))
(type $3 (func))
(table 1 1 anyfunc)
- (elem $call-i)
+ (elem (i32.const 0) $call-i)
(func $call-i (type $i) (param $0 i32)
(nop)
)
diff --git a/test/unit.fromasm b/test/unit.fromasm
index e292f47ae..49189df43 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -16,7 +16,7 @@
(export "big_negative" $big_negative)
(export "pick" $big_negative)
(table 10 10 anyfunc)
- (elem $big_negative $big_negative $big_negative $big_negative $big_negative $big_negative $importedDoubles $big_negative $big_negative $cneg)
+ (elem (i32.const 0) $big_negative $big_negative $big_negative $big_negative $big_negative $big_negative $importedDoubles $big_negative $big_negative $cneg)
(func $big_negative
(nop)
)
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise
index ef3c09ff0..d2c10b549 100644
--- a/test/unit.fromasm.imprecise
+++ b/test/unit.fromasm.imprecise
@@ -12,7 +12,7 @@
(export "big_negative" $big_negative)
(export "pick" $big_negative)
(table 10 10 anyfunc)
- (elem $big_negative $big_negative $big_negative $big_negative $big_negative $big_negative $importedDoubles $big_negative $big_negative $cneg)
+ (elem (i32.const 0) $big_negative $big_negative $big_negative $big_negative $big_negative $big_negative $importedDoubles $big_negative $big_negative $cneg)
(func $big_negative
(nop)
)
diff --git a/test/unit.fromasm.imprecise.no-opts b/test/unit.fromasm.imprecise.no-opts
index cde7eb176..7037a6c1c 100644
--- a/test/unit.fromasm.imprecise.no-opts
+++ b/test/unit.fromasm.imprecise.no-opts
@@ -12,7 +12,7 @@
(export "big_negative" $big_negative)
(export "pick" $exportMe)
(table 10 10 anyfunc)
- (elem $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
+ (elem (i32.const 0) $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
(func $big_negative
(local $temp f64)
(set_local $temp
diff --git a/test/unit.fromasm.no-opts b/test/unit.fromasm.no-opts
index c0650ebd5..51ae345b9 100644
--- a/test/unit.fromasm.no-opts
+++ b/test/unit.fromasm.no-opts
@@ -16,7 +16,7 @@
(export "big_negative" $big_negative)
(export "pick" $exportMe)
(table 10 10 anyfunc)
- (elem $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
+ (elem (i32.const 0) $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
(func $big_negative
(local $temp f64)
(set_local $temp
diff --git a/test/unit.wast b/test/unit.wast
index 30d16d1a2..2e21d44dd 100644
--- a/test/unit.wast
+++ b/test/unit.wast
@@ -14,7 +14,7 @@
(import $f64-rem "asm2wasm" "f64-rem" (param f64 f64) (result f64))
(export "big_negative" $big_negative)
(table 10 anyfunc)
- (elem $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
+ (elem (i32.const 0) $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
(func $big_negative (type $FUNCSIG$v)
(local $temp f64)
(block $block0
diff --git a/test/unit.wast.fromBinary b/test/unit.wast.fromBinary
index 4348394af..29d53598a 100644
--- a/test/unit.wast.fromBinary
+++ b/test/unit.wast.fromBinary
@@ -13,8 +13,8 @@
(import $import$1 "asm2wasm" "f64-to-int" (param f64) (result i32))
(import $import$2 "asm2wasm" "f64-rem" (param f64 f64) (result f64))
(export "big_negative" $big_negative)
- (table 10 10 anyfunc)
- (elem $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
+ (table 10 anyfunc)
+ (elem (i32.const 0) $z $big_negative $z $z $w $w $importedDoubles $w $z $cneg)
(func $big_negative (type $1)
(local $var$0 f64)
(block $label$0