diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/dot_s/asm_const.wast | 1 | ||||
-rw-r--r-- | test/dot_s/basics.wast | 1 | ||||
-rw-r--r-- | test/dot_s/exit.wast | 1 | ||||
-rw-r--r-- | test/dot_s/memops.wast | 1 | ||||
-rw-r--r-- | test/emcc_O2_hello_world.fromasm | 4 | ||||
-rw-r--r-- | test/emcc_O2_hello_world.wast | 4 | ||||
-rw-r--r-- | test/emcc_hello_world.fromasm | 5 | ||||
-rw-r--r-- | test/emcc_hello_world.wast | 5 | ||||
-rw-r--r-- | test/llvm_autogenerated/call.wast | 7 | ||||
-rw-r--r-- | test/llvm_autogenerated/cfg-stackify.wast | 2 | ||||
-rw-r--r-- | test/llvm_autogenerated/f32.wast | 1 | ||||
-rw-r--r-- | test/llvm_autogenerated/f64.wast | 1 | ||||
-rw-r--r-- | test/llvm_autogenerated/frem.wast | 2 | ||||
-rw-r--r-- | test/llvm_autogenerated/global.wast | 1 | ||||
-rw-r--r-- | test/llvm_autogenerated/legalize.wast | 1 | ||||
-rw-r--r-- | test/llvm_autogenerated/switch.wast | 1 | ||||
-rw-r--r-- | test/llvm_autogenerated/unreachable.wast | 1 | ||||
-rw-r--r-- | test/llvm_autogenerated/unused-argument.wast | 1 | ||||
-rw-r--r-- | test/llvm_autogenerated/varargs.wast | 1 | ||||
-rw-r--r-- | test/passes/O.txt | 5 | ||||
-rw-r--r-- | test/passes/remove-imports.txt | 3 | ||||
-rw-r--r-- | test/two_sides.fromasm | 1 | ||||
-rw-r--r-- | test/unit.fromasm | 2 | ||||
-rw-r--r-- | test/unit.wast | 3 |
24 files changed, 55 insertions, 0 deletions
diff --git a/test/dot_s/asm_const.wast b/test/dot_s/asm_const.wast index 56d4ba58d..750fd0989 100644 --- a/test/dot_s/asm_const.wast +++ b/test/dot_s/asm_const.wast @@ -1,5 +1,6 @@ (module (memory 51 4294967295 (segment 16 "{ Module.print(\"hello, world!\"); }\00")) + (type $FUNCSIG$vi (func (param i32))) (import $_emscripten_asm_const_vi "env" "_emscripten_asm_const_vi" (param i32)) (export "main" $main) (func $main (result i32) diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast index a3ce77ec2..b73f6c456 100644 --- a/test/dot_s/basics.wast +++ b/test/dot_s/basics.wast @@ -1,5 +1,6 @@ (module (memory 52 4294967295 (segment 16 "hello, world!\n\00") (segment 32 "vcq") (segment 48 "\16\00\00\00")) + (type $FUNCSIG$vi (func (param i32))) (import $puts "env" "puts" (param i32)) (export "main" $main) (table $main) diff --git a/test/dot_s/exit.wast b/test/dot_s/exit.wast index 7ac114749..cb54d686b 100644 --- a/test/dot_s/exit.wast +++ b/test/dot_s/exit.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (type $FUNCSIG$vi (func (param i32))) (import $exit "env" "exit" (param i32)) (export "main" $main) (func $main (result i32) diff --git a/test/dot_s/memops.wast b/test/dot_s/memops.wast index 784958275..e8ea14590 100644 --- a/test/dot_s/memops.wast +++ b/test/dot_s/memops.wast @@ -1,5 +1,6 @@ (module (memory 67 4294967295 (segment 16 "{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }\00")) + (type $FUNCSIG$vi (func (param i32))) (import $_emscripten_asm_const_vi "env" "_emscripten_asm_const_vi" (param i32)) (export "_Z6reporti" $_Z6reporti) (export "main" $main) diff --git a/test/emcc_O2_hello_world.fromasm b/test/emcc_O2_hello_world.fromasm index ac4c031cc..d1495f7a4 100644 --- a/test/emcc_O2_hello_world.fromasm +++ b/test/emcc_O2_hello_world.fromasm @@ -3,6 +3,10 @@ (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) (type $FUNCSIG$ii (func (param i32) (result i32))) (type $FUNCSIG$vi (func (param i32))) + (type $FUNCSIG$iii (func (param i32 i32) (result i32))) + (type $FUNCSIG$v (func)) + (type $FUNCSIG$vii (func (param i32 i32))) + (type $FUNCSIG$i (func (result i32))) (import $abort "env" "abort" (param i32)) (import $_pthread_cleanup_pop "env" "_pthread_cleanup_pop" (param i32)) (import $_pthread_self "env" "_pthread_self" (result i32)) diff --git a/test/emcc_O2_hello_world.wast b/test/emcc_O2_hello_world.wast index 95a130b13..c334e1955 100644 --- a/test/emcc_O2_hello_world.wast +++ b/test/emcc_O2_hello_world.wast @@ -3,6 +3,10 @@ (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) (type $FUNCSIG$ii (func (param i32) (result i32))) (type $FUNCSIG$vi (func (param i32))) + (type $FUNCSIG$i (func (result i32))) + (type $FUNCSIG$iii (func (param i32 i32) (result i32))) + (type $FUNCSIG$v (func)) + (type $FUNCSIG$vii (func (param i32 i32))) (import $abort "env" "abort" (param i32)) (import $_pthread_cleanup_pop "env" "_pthread_cleanup_pop" (param i32)) (import $_pthread_self "env" "_pthread_self" (result i32)) diff --git a/test/emcc_hello_world.fromasm b/test/emcc_hello_world.fromasm index 9dbe000df..350dfce87 100644 --- a/test/emcc_hello_world.fromasm +++ b/test/emcc_hello_world.fromasm @@ -1,8 +1,13 @@ (module (memory 16777216 16777216) (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) + (type $FUNCSIG$id (func (param f64) (result i32))) (type $FUNCSIG$ii (func (param i32) (result i32))) (type $FUNCSIG$vi (func (param i32))) + (type $FUNCSIG$iii (func (param i32 i32) (result i32))) + (type $FUNCSIG$v (func)) + (type $FUNCSIG$vii (func (param i32 i32))) + (type $FUNCSIG$i (func (result i32))) (import $abort "env" "abort") (import $nullFunc_ii "env" "nullFunc_ii" (param i32)) (import $nullFunc_iiii "env" "nullFunc_iiii" (param i32)) diff --git a/test/emcc_hello_world.wast b/test/emcc_hello_world.wast index 01cd2f4c1..8a2345cf1 100644 --- a/test/emcc_hello_world.wast +++ b/test/emcc_hello_world.wast @@ -3,6 +3,11 @@ (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) (type $FUNCSIG$ii (func (param i32) (result i32))) (type $FUNCSIG$vi (func (param i32))) + (type $FUNCSIG$v (func)) + (type $FUNCSIG$i (func (result i32))) + (type $FUNCSIG$iii (func (param i32 i32) (result i32))) + (type $FUNCSIG$vii (func (param i32 i32))) + (type $FUNCSIG$id (func (param f64) (result i32))) (import $abort "env" "abort") (import $nullFunc_ii "env" "nullFunc_ii" (param i32)) (import $nullFunc_iiii "env" "nullFunc_iiii" (param i32)) diff --git a/test/llvm_autogenerated/call.wast b/test/llvm_autogenerated/call.wast index 86a81ca96..7aa3fa71b 100644 --- a/test/llvm_autogenerated/call.wast +++ b/test/llvm_autogenerated/call.wast @@ -1,5 +1,12 @@ (module (memory 0 4294967295) + (type $FUNCSIG$i (func (result i32))) + (type $FUNCSIG$j (func (result i64))) + (type $FUNCSIG$f (func (result f32))) + (type $FUNCSIG$d (func (result f64))) + (type $FUNCSIG$v (func)) + (type $FUNCSIG$ii (func (param i32) (result i32))) + (type $FUNCSIG$iii (func (param i32 i32) (result i32))) (type $FUNCSIG_v (func)) (type $FUNCSIG_i (func (result i32))) (import $i32_nullary "env" "i32_nullary" (result i32)) diff --git a/test/llvm_autogenerated/cfg-stackify.wast b/test/llvm_autogenerated/cfg-stackify.wast index 984eecc4c..3ee288461 100644 --- a/test/llvm_autogenerated/cfg-stackify.wast +++ b/test/llvm_autogenerated/cfg-stackify.wast @@ -1,5 +1,7 @@ (module (memory 0 4294967295) + (type $FUNCSIG$v (func)) + (type $FUNCSIG$i (func (result i32))) (import $something "env" "something") (import $bar "env" "bar") (import $a "env" "a" (result i32)) diff --git a/test/llvm_autogenerated/f32.wast b/test/llvm_autogenerated/f32.wast index e5b735328..a6ca50b42 100644 --- a/test/llvm_autogenerated/f32.wast +++ b/test/llvm_autogenerated/f32.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (type $FUNCSIG$ffff (func (param f32 f32 f32) (result f32))) (import $fmaf "env" "fmaf" (param f32 f32 f32) (result f32)) (export "fadd32" $fadd32) (export "fsub32" $fsub32) diff --git a/test/llvm_autogenerated/f64.wast b/test/llvm_autogenerated/f64.wast index 5dd5552c4..665e02c76 100644 --- a/test/llvm_autogenerated/f64.wast +++ b/test/llvm_autogenerated/f64.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (type $FUNCSIG$dddd (func (param f64 f64 f64) (result f64))) (import $fma "env" "fma" (param f64 f64 f64) (result f64)) (export "fadd64" $fadd64) (export "fsub64" $fsub64) diff --git a/test/llvm_autogenerated/frem.wast b/test/llvm_autogenerated/frem.wast index cd4369504..6e300a646 100644 --- a/test/llvm_autogenerated/frem.wast +++ b/test/llvm_autogenerated/frem.wast @@ -1,5 +1,7 @@ (module (memory 0 4294967295) + (type $FUNCSIG$fff (func (param f32 f32) (result f32))) + (type $FUNCSIG$ddd (func (param f64 f64) (result f64))) (import $fmodf "env" "fmodf" (param f32 f32) (result f32)) (import $fmod "env" "fmod" (param f64 f64) (result f64)) (export "frem32" $frem32) diff --git a/test/llvm_autogenerated/global.wast b/test/llvm_autogenerated/global.wast index cc453456c..075f6b4f9 100644 --- a/test/llvm_autogenerated/global.wast +++ b/test/llvm_autogenerated/global.wast @@ -1,5 +1,6 @@ (module (memory 1184 4294967295 (segment 4 "9\05\00\00") (segment 20 "\01\00\00\00") (segment 24 "*\00\00\00") (segment 28 "\ff\ff\ff\ff") (segment 56 "\00\00\00\00\01\00\00\00") (segment 64 "\ff\ff\ff\ff\ff\ff\ff\ff") (segment 84 "\00\00\00\80") (segment 88 "\00\00\00@") (segment 120 "\00\00\00\00\00\00\00\80") (segment 128 "\00\00\00\00\00\00\00@") (segment 656 "\e0\00\00\00")) + (type $FUNCSIG$viii (func (param i32 i32 i32))) (import $memcpy "env" "memcpy" (param i32 i32 i32)) (export "foo" $foo) (export "call_memcpy" $call_memcpy) diff --git a/test/llvm_autogenerated/legalize.wast b/test/llvm_autogenerated/legalize.wast index 2127f8e99..c05d5bf1f 100644 --- a/test/llvm_autogenerated/legalize.wast +++ b/test/llvm_autogenerated/legalize.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (type $FUNCSIG$vijjj (func (param i32 i64 i64 i64))) (import $__lshrti3 "env" "__lshrti3" (param i32 i64 i64 i64)) (import $__ashlti3 "env" "__ashlti3" (param i32 i64 i64 i64)) (export "shl_i3" $shl_i3) diff --git a/test/llvm_autogenerated/switch.wast b/test/llvm_autogenerated/switch.wast index 69d6db9f1..75e1be4ce 100644 --- a/test/llvm_autogenerated/switch.wast +++ b/test/llvm_autogenerated/switch.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (type $FUNCSIG$v (func)) (import $foo0 "env" "foo0") (import $foo1 "env" "foo1") (import $foo2 "env" "foo2") diff --git a/test/llvm_autogenerated/unreachable.wast b/test/llvm_autogenerated/unreachable.wast index 1d3be1405..592132990 100644 --- a/test/llvm_autogenerated/unreachable.wast +++ b/test/llvm_autogenerated/unreachable.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (type $FUNCSIG$v (func)) (import $abort "env" "abort") (export "f1" $f1) (export "f2" $f2) diff --git a/test/llvm_autogenerated/unused-argument.wast b/test/llvm_autogenerated/unused-argument.wast index 96c880442..226ff8ef5 100644 --- a/test/llvm_autogenerated/unused-argument.wast +++ b/test/llvm_autogenerated/unused-argument.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (type $FUNCSIG$i (func (result i32))) (import $return_something "env" "return_something" (result i32)) (export "unused_first" $unused_first) (export "unused_second" $unused_second) diff --git a/test/llvm_autogenerated/varargs.wast b/test/llvm_autogenerated/varargs.wast index 7f5e0cb7e..01a9a49ea 100644 --- a/test/llvm_autogenerated/varargs.wast +++ b/test/llvm_autogenerated/varargs.wast @@ -1,5 +1,6 @@ (module (memory 0 4294967295) + (type $FUNCSIG$v (func)) (import $callee "env" "callee") (export "end" $end) (export "copy" $copy) diff --git a/test/passes/O.txt b/test/passes/O.txt index 23b39e920..0e6f94bf2 100644 --- a/test/passes/O.txt +++ b/test/passes/O.txt @@ -3,6 +3,11 @@ (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) (type $FUNCSIG$ii (func (param i32) (result i32))) (type $FUNCSIG$vi (func (param i32))) + (type $FUNCSIG$i (func (result i32))) + (type $FUNCSIG$v (func)) + (type $FUNCSIG$iii (func (param i32 i32) (result i32))) + (type $FUNCSIG$vii (func (param i32 i32))) + (type $FUNCSIG$id (func (param f64) (result i32))) (import $abort "env" "abort" (param i32)) (import $_pthread_cleanup_pop "env" "_pthread_cleanup_pop" (param i32)) (import $___lock "env" "___lock" (param i32)) diff --git a/test/passes/remove-imports.txt b/test/passes/remove-imports.txt index 964486c92..f4d1d5b99 100644 --- a/test/passes/remove-imports.txt +++ b/test/passes/remove-imports.txt @@ -1,5 +1,8 @@ (module (memory 1024 1024) + (type $FUNCSIG$v (func)) + (type $FUNCSIG$i (func (result i32))) + (type $FUNCSIG$d (func (result f64))) (func $nada (nop) (i32.const 0) diff --git a/test/two_sides.fromasm b/test/two_sides.fromasm index a9b154e61..4b8860948 100644 --- a/test/two_sides.fromasm +++ b/test/two_sides.fromasm @@ -1,5 +1,6 @@ (module (memory 16777216 16777216) + (type $FUNCSIG$id (func (param f64) (result i32))) (import $f64-to-int "asm2wasm" "f64-to-int" (param f64) (result i32)) (export "_test" $_test) (func $_test (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32) diff --git a/test/unit.fromasm b/test/unit.fromasm index 98978436c..e8d47715f 100644 --- a/test/unit.fromasm +++ b/test/unit.fromasm @@ -1,5 +1,7 @@ (module (memory 16777216 16777216) + (type $FUNCSIG$id (func (param f64) (result i32))) + (type $FUNCSIG$ddd (func (param f64 f64) (result f64))) (type $FUNCSIG$vf (func (param f32))) (type $FUNCSIG$vi (func (param i32))) (import $f64-to-int "asm2wasm" "f64-to-int" (param f64) (result i32)) diff --git a/test/unit.wast b/test/unit.wast index 55c9e9fa1..74be1387f 100644 --- a/test/unit.wast +++ b/test/unit.wast @@ -1,6 +1,9 @@ (module (memory 4096 4096 (segment 1026 "\14\00")) (type $FUNCSIG$vf (func (param f32))) + (type $FUNCSIG$v (func)) + (type $FUNCSIG$id (func (param f64) (result i32))) + (type $FUNCSIG$ddd (func (param f64 f64) (result f64))) (import $_emscripten_asm_const_vi "env" "_emscripten_asm_const_vi") (import $f64-to-int "asm2wasm" "f64-to-int" (param f64) (result i32)) (import $f64-rem "asm2wasm" "f64-rem" (param f64 f64) (result f64)) |