diff options
author | Sam Clegg <sbc@chromium.org> | 2018-12-07 12:54:22 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-07 12:54:22 -0800 |
commit | 1cf103efdd4f11c29263cde5d379f5b1ddb2ed36 (patch) | |
tree | fa56a3b2845ad54eb3ff4ffde012eb31924098dc | |
parent | c26a403c3049e2a861cccdfdb126a9ac693205c8 (diff) | |
download | binaryen-1cf103efdd4f11c29263cde5d379f5b1ddb2ed36.tar.gz binaryen-1cf103efdd4f11c29263cde5d379f5b1ddb2ed36.tar.bz2 binaryen-1cf103efdd4f11c29263cde5d379f5b1ddb2ed36.zip |
Remove unused tests from test/dot_s (#1814)
We have a bug open (#1813) to verify that we don't loose coverage
but there is no point in keeping these unused files for now.
40 files changed, 0 insertions, 3383 deletions
diff --git a/test/dot_s/alias.wast b/test/dot_s/alias.wast deleted file mode 100644 index 542be996a..000000000 --- a/test/dot_s/alias.wast +++ /dev/null @@ -1,69 +0,0 @@ -(module - (type $FUNCSIG$v (func)) - (import "env" "memory" (memory $0 1)) - (table 2 2 anyfunc) - (elem (i32.const 0) $__wasm_nullptr $__exit) - (data (i32.const 16) "\d2\04\00\00\00\00\00\00)\t\00\00") - (export "__exit" (func $__exit)) - (export "__needs_exit" (func $__needs_exit)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (export "dynCall_v" (func $dynCall_v)) - (func $__exit (; 0 ;) (type $FUNCSIG$v) - (drop - (i32.add - (i32.load - (i32.const 16) - ) - (i32.load - (i32.const 24) - ) - ) - ) - ) - (func $__needs_exit (; 1 ;) (result i32) - (call $__exit) - (return - (i32.const 1) - ) - ) - (func $__wasm_nullptr (; 2 ;) (type $FUNCSIG$v) - (unreachable) - ) - (func $stackSave (; 3 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 5 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) - (func $dynCall_v (; 6 ;) (param $fptr i32) - (call_indirect (type $FUNCSIG$v) - (get_local $fptr) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 28, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["___exit","___needs_exit","_stackSave","_stackAlloc","_stackRestore","_dynCall_v"], "exports": ["__exit","__needs_exit","stackSave","stackAlloc","stackRestore","dynCall_v"], "invokeFuncs": [] } diff --git a/test/dot_s/alternate-lcomm.wast b/test/dot_s/alternate-lcomm.wast deleted file mode 100644 index 6c0b0001c..000000000 --- a/test/dot_s/alternate-lcomm.wast +++ /dev/null @@ -1,37 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $stackSave (; 0 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 1 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 2 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 16, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_stackSave","_stackAlloc","_stackRestore"], "exports": ["stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/asm_const.wast b/test/dot_s/asm_const.wast deleted file mode 100644 index 0fe9271fc..000000000 --- a/test/dot_s/asm_const.wast +++ /dev/null @@ -1,49 +0,0 @@ -(module - (type $FUNCSIG$vi (func (param i32))) - (import "env" "memory" (memory $0 1)) - (import "env" "emscripten_asm_const_v" (func $emscripten_asm_const_v (param i32))) - (table 0 anyfunc) - (data (i32.const 16) "{ Module.print(\"hello, world!\"); }\00") - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $main (; 1 ;) (result i32) - (call $emscripten_asm_const_v - (i32.const 0) - ) - (return - (i32.const 0) - ) - ) - (func $stackSave (; 2 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 4 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {"0": ["{ Module.print(\"hello, world!\"); }", ["v"]]},"staticBump": 51, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast deleted file mode 100644 index 5a602368d..000000000 --- a/test/dot_s/basics.wast +++ /dev/null @@ -1,140 +0,0 @@ -(module - (type $FUNCSIG$vi (func (param i32))) - (type $FUNCSIG$v (func)) - (type $FUNCSIG$iii (func (param i32 i32) (result i32))) - (import "env" "puts" (func $puts (param i32))) - (import "env" "memory" (memory $0 1)) - (table 2 2 anyfunc) - (elem (i32.const 0) $__wasm_nullptr $main) - (data (i32.const 16) "hello, world!\n\00") - (data (i32.const 32) "vcq") - (data (i32.const 48) "\16\00\00\00") - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (export "dynCall_iii" (func $dynCall_iii)) - (func $main (; 1 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) - (call $puts - (i32.const 16) - ) - (block $label$0 - (block $label$1 - (br_if $label$1 - (i32.ne - (i32.sub - (get_local $0) - (i32.and - (i32.add - (get_local $0) - (i32.shr_u - (i32.shr_s - (get_local $0) - (i32.const 31) - ) - (i32.const 30) - ) - ) - (i32.const -4) - ) - ) - (i32.const 1) - ) - ) - (block $label$2 - (loop $label$3 - (set_local $0 - (i32.add - (i32.gt_s - (get_local $0) - (i32.const 10) - ) - (get_local $0) - ) - ) - (block $label$4 - (br_if $label$4 - (i32.ne - (i32.rem_s - (get_local $0) - (i32.const 5) - ) - (i32.const 3) - ) - ) - (set_local $0 - (i32.add - (i32.rem_s - (get_local $0) - (i32.const 111) - ) - (get_local $0) - ) - ) - ) - (br_if $label$1 - (i32.eq - (i32.rem_s - (get_local $0) - (i32.const 7) - ) - (i32.const 0) - ) - ) - (br $label$3) - ) - ) - ) - (set_local $0 - (i32.add - (get_local $0) - (i32.const -12) - ) - ) - (drop - (i32.const 1) - ) - ) - (get_local $0) - ) - (func $__wasm_nullptr (; 2 ;) (type $FUNCSIG$v) - (unreachable) - ) - (func $stackSave (; 3 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 5 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) - (func $dynCall_iii (; 6 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (result i32) - (call_indirect (type $FUNCSIG$iii) - (get_local $0) - (get_local $1) - (get_local $fptr) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 52, "initializers": [], "declares": ["puts"], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore","_dynCall_iii"], "exports": ["main","stackSave","stackAlloc","stackRestore","dynCall_iii"], "invokeFuncs": [] } diff --git a/test/dot_s/bcp-1.wast b/test/dot_s/bcp-1.wast deleted file mode 100644 index 6881bae87..000000000 --- a/test/dot_s/bcp-1.wast +++ /dev/null @@ -1,356 +0,0 @@ -(module - (type $FUNCSIG$i (func (result i32))) - (type $FUNCSIG$ii (func (param i32) (result i32))) - (type $FUNCSIG$v (func)) - (type $FUNCSIG$vi (func (param i32))) - (import "env" "abort" (func $abort)) - (import "env" "exit" (func $exit (param i32))) - (import "env" "memory" (memory $0 1)) - (table 18 18 anyfunc) - (elem (i32.const 0) $__wasm_nullptr $bad0 $bad1 $bad5 $bad7 $bad8 $bad10 $bad2 $bad3 $bad6 $bad4 $bad9 $good0 $good1 $good2 $opt0 $opt1 $opt2) - (data (i32.const 16) "\01\00\00\00\02\00\00\00\03\00\00\00\04\00\00\00\05\00\00\00\06\00\00\00") - (data (i32.const 40) "\07\00\00\00\08\00\00\00\t\00\00\00") - (data (i32.const 52) "\n\00\00\00\0b\00\00\00") - (data (i32.const 60) "\0c\00\00\00\0d\00\00\00\0e\00\00\00") - (data (i32.const 72) "\0f\00\00\00\10\00\00\00\11\00\00\00") - (data (i32.const 96) "hi\00") - (data (i32.const 100) "\00\00\00\00") - (export "bad0" (func $bad0)) - (export "bad1" (func $bad1)) - (export "bad2" (func $bad2)) - (export "bad3" (func $bad3)) - (export "bad4" (func $bad4)) - (export "bad5" (func $bad5)) - (export "bad6" (func $bad6)) - (export "bad7" (func $bad7)) - (export "bad8" (func $bad8)) - (export "bad9" (func $bad9)) - (export "bad10" (func $bad10)) - (export "good0" (func $good0)) - (export "good1" (func $good1)) - (export "good2" (func $good2)) - (export "opt0" (func $opt0)) - (export "opt1" (func $opt1)) - (export "opt2" (func $opt2)) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (export "dynCall_i" (func $dynCall_i)) - (export "dynCall_ii" (func $dynCall_ii)) - (func $bad0 (; 2 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 0) - ) - ) - (func $bad1 (; 3 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 0) - ) - ) - (func $bad2 (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) - (return - (i32.const 0) - ) - ) - (func $bad3 (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) - (return - (i32.const 0) - ) - ) - (func $bad4 (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) - (return - (i32.const 0) - ) - ) - (func $bad5 (; 7 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 0) - ) - ) - (func $bad6 (; 8 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) - (return - (i32.const 0) - ) - ) - (func $bad7 (; 9 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 0) - ) - ) - (func $bad8 (; 10 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 0) - ) - ) - (func $bad9 (; 11 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32) - (return - (i32.const 0) - ) - ) - (func $bad10 (; 12 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 0) - ) - ) - (func $good0 (; 13 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 1) - ) - ) - (func $good1 (; 14 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 1) - ) - ) - (func $good2 (; 15 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 1) - ) - ) - (func $opt0 (; 16 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 0) - ) - ) - (func $opt1 (; 17 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 0) - ) - ) - (func $opt2 (; 18 ;) (type $FUNCSIG$i) (result i32) - (return - (i32.const 1) - ) - ) - (func $main (; 19 ;) (result i32) - (local $0 i32) - (local $1 i32) - (local $2 i32) - (set_local $0 - (i32.const 0) - ) - (block $label$0 - (br_if $label$0 - (call_indirect (type $FUNCSIG$i) - (i32.load offset=16 - (get_local $0) - ) - ) - ) - (br_if $label$0 - (call_indirect (type $FUNCSIG$i) - (i32.load offset=20 - (get_local $0) - ) - ) - ) - (br_if $label$0 - (call_indirect (type $FUNCSIG$i) - (i32.load offset=24 - (get_local $0) - ) - ) - ) - (br_if $label$0 - (call_indirect (type $FUNCSIG$i) - (i32.load offset=28 - (get_local $0) - ) - ) - ) - (br_if $label$0 - (call_indirect (type $FUNCSIG$i) - (i32.load offset=32 - (get_local $0) - ) - ) - ) - (br_if $label$0 - (call_indirect (type $FUNCSIG$i) - (i32.load offset=36 - (get_local $0) - ) - ) - ) - (set_local $1 - (i32.load offset=40 - (get_local $0) - ) - ) - (set_local $2 - (i32.const 1) - ) - (block $label$1 - (br_if $label$1 - (call_indirect (type $FUNCSIG$ii) - (get_local $2) - (get_local $1) - ) - ) - (br_if $label$1 - (call_indirect (type $FUNCSIG$ii) - (get_local $2) - (i32.load offset=44 - (get_local $0) - ) - ) - ) - (br_if $label$1 - (call_indirect (type $FUNCSIG$ii) - (get_local $2) - (i32.load offset=48 - (get_local $0) - ) - ) - ) - (set_local $1 - (i32.load offset=52 - (get_local $0) - ) - ) - (set_local $2 - (i32.const 96) - ) - (block $label$2 - (br_if $label$2 - (call_indirect (type $FUNCSIG$ii) - (get_local $2) - (get_local $1) - ) - ) - (br_if $label$2 - (call_indirect (type $FUNCSIG$ii) - (get_local $2) - (i32.load offset=56 - (get_local $0) - ) - ) - ) - (block $label$3 - (br_if $label$3 - (i32.eq - (call_indirect (type $FUNCSIG$i) - (i32.load offset=60 - (get_local $0) - ) - ) - (i32.const 0) - ) - ) - (br_if $label$3 - (i32.eq - (call_indirect (type $FUNCSIG$i) - (i32.load offset=64 - (get_local $0) - ) - ) - (i32.const 0) - ) - ) - (br_if $label$3 - (i32.eq - (call_indirect (type $FUNCSIG$i) - (i32.load offset=68 - (get_local $0) - ) - ) - (i32.const 0) - ) - ) - (block $label$4 - (br_if $label$4 - (i32.eq - (call_indirect (type $FUNCSIG$i) - (i32.load offset=72 - (get_local $0) - ) - ) - (i32.const 0) - ) - ) - (br_if $label$4 - (i32.eq - (call_indirect (type $FUNCSIG$i) - (i32.load offset=76 - (get_local $0) - ) - ) - (i32.const 0) - ) - ) - (br_if $label$4 - (i32.eq - (call_indirect (type $FUNCSIG$i) - (i32.load offset=80 - (get_local $0) - ) - ) - (i32.const 0) - ) - ) - (call $exit - (get_local $0) - ) - (unreachable) - ) - (call $abort) - (unreachable) - ) - (call $abort) - (unreachable) - ) - (call $abort) - (unreachable) - ) - (call $abort) - (unreachable) - ) - (call $abort) - (unreachable) - ) - (func $__wasm_nullptr (; 20 ;) (type $FUNCSIG$v) - (unreachable) - ) - (func $stackSave (; 21 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 22 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 23 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) - (func $dynCall_i (; 24 ;) (param $fptr i32) (result i32) - (call_indirect (type $FUNCSIG$i) - (get_local $fptr) - ) - ) - (func $dynCall_ii (; 25 ;) (param $fptr i32) (param $0 i32) (result i32) - (call_indirect (type $FUNCSIG$ii) - (get_local $0) - (get_local $fptr) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 104, "initializers": [], "declares": ["abort","exit"], "externs": [], "implementedFunctions": ["_bad0","_bad1","_bad2","_bad3","_bad4","_bad5","_bad6","_bad7","_bad8","_bad9","_bad10","_good0","_good1","_good2","_opt0","_opt1","_opt2","_main","_stackSave","_stackAlloc","_stackRestore","_dynCall_i","_dynCall_ii"], "exports": ["bad0","bad1","bad2","bad3","bad4","bad5","bad6","bad7","bad8","bad9","bad10","good0","good1","good2","opt0","opt1","opt2","main","stackSave","stackAlloc","stackRestore","dynCall_i","dynCall_ii"], "invokeFuncs": [] } diff --git a/test/dot_s/data-offset-folding.wast b/test/dot_s/data-offset-folding.wast deleted file mode 100644 index 2dd4ce04c..000000000 --- a/test/dot_s/data-offset-folding.wast +++ /dev/null @@ -1,39 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (data (i32.const 12) "\00\00\00\00") - (data (i32.const 416) "`\00\00\00") - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $stackSave (; 0 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 1 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 2 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 420, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_stackSave","_stackAlloc","_stackRestore"], "exports": ["stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/debug.wast b/test/dot_s/debug.wast deleted file mode 100644 index d933ce3e3..000000000 --- a/test/dot_s/debug.wast +++ /dev/null @@ -1,90 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "fib" (func $fib)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $fib (; 0 ;) (param $0 i32) (result i32) - (local $1 i32) - (local $2 i32) - (local $3 i32) - (local $4 i32) - ;;@ fib.c:1:0 - (set_local $3 - (i32.const 0) - ) - (set_local $2 - (i32.const -1) - ) - (set_local $4 - (i32.const 1) - ) - (block $label$0 - (loop $label$1 - ;;@ fib.c:3:17 - (set_local $2 - (i32.add - (get_local $2) - (i32.const 1) - ) - ) - ;;@ fib.c:3:3 - (br_if $label$0 - (i32.ge_s - (get_local $2) - (get_local $0) - ) - ) - ;;@ fib.c:4:11 - (set_local $1 - (i32.add - (get_local $4) - (get_local $3) - ) - ) - (set_local $3 - (get_local $4) - ) - (set_local $4 - (get_local $1) - ) - (br $label$1) - ) - ) - ;;@ fib.c:6:3 - (return - (get_local $4) - ) - ) - (func $stackSave (; 1 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 3 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_fib","_stackSave","_stackAlloc","_stackRestore"], "exports": ["fib","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/dso_handle.wast b/test/dot_s/dso_handle.wast deleted file mode 100644 index e5c225997..000000000 --- a/test/dot_s/dso_handle.wast +++ /dev/null @@ -1,43 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $main (; 0 ;) (result i32) - (return - (i32.const 8) - ) - ) - (func $stackSave (; 1 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 3 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/dyncall.c b/test/dot_s/dyncall.c deleted file mode 100644 index 791c5d67a..000000000 --- a/test/dot_s/dyncall.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <stdint.h> - -/* Used to generate dyncall.s */ - -uint32_t i() { - return 0; -} -uint32_t i_f(float f) { - return 0; -} -void vd(double d) { - return; -} -float ffjjdi(float f, uint64_t j, uint64_t j2, double d, uint32_t i) { - return 0.0; -} - -/* Duplicates sig vd */ -void vd2(double d) { - return; -} - -int main() { - asm(" i32.const $drop=, i@FUNCTION"); - asm(" i32.const $drop=, i_f@FUNCTION"); - asm(" i32.const $drop=, vd@FUNCTION"); - asm(" i32.const $drop=, ffjjdi@FUNCTION"); - asm(" i32.const $drop=, vd2@FUNCTION"); - return 0; -} diff --git a/test/dot_s/dyncall.wast b/test/dot_s/dyncall.wast deleted file mode 100644 index 4bbd9a204..000000000 --- a/test/dot_s/dyncall.wast +++ /dev/null @@ -1,103 +0,0 @@ -(module - (type $FUNCSIG$v (func)) - (type $FUNCSIG$i (func (result i32))) - (type $FUNCSIG$if (func (param f32) (result i32))) - (type $FUNCSIG$vd (func (param f64))) - (type $FUNCSIG$ffjjdi (func (param f32 i64 i64 f64 i32) (result f32))) - (import "env" "memory" (memory $0 1)) - (table 6 6 anyfunc) - (elem (i32.const 0) $__wasm_nullptr $i $i_f $vd $ffjjdi $vd2) - (export "i" (func $i)) - (export "i_f" (func $i_f)) - (export "vd" (func $vd)) - (export "ffjjdi" (func $ffjjdi)) - (export "vd2" (func $vd2)) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (export "dynCall_i" (func $dynCall_i)) - (export "dynCall_if" (func $dynCall_if)) - (export "dynCall_vd" (func $dynCall_vd)) - (func $i (; 0 ;) (type $FUNCSIG$i) (result i32) - (i32.const 0) - ) - (func $i_f (; 1 ;) (type $FUNCSIG$if) (param $0 f32) (result i32) - (i32.const 0) - ) - (func $vd (; 2 ;) (type $FUNCSIG$vd) (param $0 f64) - ) - (func $ffjjdi (; 3 ;) (type $FUNCSIG$ffjjdi) (param $0 f32) (param $1 i64) (param $2 i64) (param $3 f64) (param $4 i32) (result f32) - (f32.const 0) - ) - (func $vd2 (; 4 ;) (type $FUNCSIG$vd) (param $0 f64) - ) - (func $main (; 5 ;) (result i32) - (drop - (i32.const 1) - ) - (drop - (i32.const 2) - ) - (drop - (i32.const 3) - ) - (drop - (i32.const 4) - ) - (drop - (i32.const 5) - ) - (i32.const 0) - ) - (func $__wasm_nullptr (; 6 ;) (type $FUNCSIG$v) - (unreachable) - ) - (func $stackSave (; 7 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 8 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 9 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) - (func $dynCall_i (; 10 ;) (param $fptr i32) (result i32) - (call_indirect (type $FUNCSIG$i) - (get_local $fptr) - ) - ) - (func $dynCall_if (; 11 ;) (param $fptr i32) (param $0 f32) (result i32) - (call_indirect (type $FUNCSIG$if) - (get_local $0) - (get_local $fptr) - ) - ) - (func $dynCall_vd (; 12 ;) (param $fptr i32) (param $0 f64) - (call_indirect (type $FUNCSIG$vd) - (get_local $0) - (get_local $fptr) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_i","_i_f","_vd","_ffjjdi","_vd2","_main","_stackSave","_stackAlloc","_stackRestore","_dynCall_i","_dynCall_if","_dynCall_vd"], "exports": ["i","i_f","vd","ffjjdi","vd2","main","stackSave","stackAlloc","stackRestore","dynCall_i","dynCall_if","dynCall_vd"], "invokeFuncs": [] } diff --git a/test/dot_s/em_js.wast b/test/dot_s/em_js.wast deleted file mode 100644 index 46353d355..000000000 --- a/test/dot_s/em_js.wast +++ /dev/null @@ -1,48 +0,0 @@ -(module - (type $FUNCSIG$ii (func (param i32) (result i32))) - (import "env" "foo" (func $foo (param i32) (result i32))) - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (data (i32.const 16) "(int x)<::>{ Module.print(\"got x=\" + x); }\00") - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $main (; 1 ;) (result i32) - (return - (call $foo - (i32.const 15) - ) - ) - ) - (func $stackSave (; 2 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 4 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"emJsFuncs": {"foo": "(int x)<::>{ Module.print(\"got x=\" + x); }"},"staticBump": 59, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/exit.wast b/test/dot_s/exit.wast deleted file mode 100644 index fea7fbaa2..000000000 --- a/test/dot_s/exit.wast +++ /dev/null @@ -1,47 +0,0 @@ -(module - (type $FUNCSIG$vi (func (param i32))) - (import "env" "exit" (func $exit (param i32))) - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $main (; 1 ;) (result i32) - (local $0 i32) - (call $exit - (i32.const 0) - ) - (unreachable) - ) - (func $stackSave (; 2 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 4 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": ["exit"], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/export_malloc_free.wast b/test/dot_s/export_malloc_free.wast deleted file mode 100644 index 9daf74f3c..000000000 --- a/test/dot_s/export_malloc_free.wast +++ /dev/null @@ -1,59 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "main" (func $main)) - (export "malloc" (func $malloc)) - (export "free" (func $free)) - (export "realloc" (func $realloc)) - (export "memalign" (func $memalign)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $main (; 0 ;) (result i32) - (i32.const 0) - ) - (func $malloc (; 1 ;) (param $0 i32) (result i32) - (i32.const 0) - ) - (func $free (; 2 ;) (param $0 i32) - ) - (func $realloc (; 3 ;) (param $0 i32) (param $1 i32) (result i32) - (i32.const 0) - ) - (func $memalign (; 4 ;) (param $0 i32) (param $1 i32) (result i32) - (i32.const 0) - ) - (func $not_a_malloc (; 5 ;) (param $0 i32) (param $1 i32) (result i32) - (i32.const 0) - ) - (func $stackSave (; 6 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 7 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 8 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_main","_malloc","_free","_realloc","_memalign","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","malloc","free","realloc","memalign","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/fix_em_ehsjlj_names.wast b/test/dot_s/fix_em_ehsjlj_names.wast deleted file mode 100644 index cfa283a44..000000000 --- a/test/dot_s/fix_em_ehsjlj_names.wast +++ /dev/null @@ -1,139 +0,0 @@ -(module - (type $FUNCSIG$vi (func (param i32))) - (type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32))) - (type $FUNCSIG$fifd (func (param i32 f32 f64) (result f32))) - (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) - (type $FUNCSIG$vii (func (param i32 i32))) - (type $FUNCSIG$v (func)) - (type $FUNCSIG$ffd (func (param f32 f64) (result f32))) - (type $FUNCSIG$iii (func (param i32 i32) (result i32))) - (import "env" "invoke_iii" (func $invoke_iii (param i32 i32 i32) (result i32))) - (import "env" "invoke_ffd" (func $invoke_ffd (param i32 f32 f64) (result f32))) - (import "env" "invoke_iiii" (func $invoke_iiii (param i32 i32 i32 i32) (result i32))) - (import "env" "invoke_v" (func $invoke_v (param i32))) - (import "env" "emscripten_longjmp" (func $emscripten_longjmp (param i32 i32))) - (import "env" "memory" (memory $0 1)) - (table 5 5 anyfunc) - (elem (i32.const 0) $__wasm_nullptr $_Z5func1v $_Z5func2iii $_Z5func3fd $_Z5func4P8mystructS_) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (export "dynCall_v" (func $dynCall_v)) - (export "dynCall_iiii" (func $dynCall_iiii)) - (export "dynCall_ffd" (func $dynCall_ffd)) - (export "dynCall_iii" (func $dynCall_iii)) - (func $_Z5func1v (; 5 ;) (type $FUNCSIG$v) - ) - (func $_Z5func2iii (; 6 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) - (i32.const 3) - ) - (func $_Z5func3fd (; 7 ;) (type $FUNCSIG$ffd) (param $0 f32) (param $1 f64) (result f32) - (f32.const 1) - ) - (func $_Z5func4P8mystructS_ (; 8 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32) - (i32.const 0) - ) - (func $main (; 9 ;) (result i32) - (local $0 i32) - (local $1 i32) - (local $2 i32) - (local $3 i32) - (call $invoke_v - (i32.const 1) - ) - (drop - (call $invoke_iiii - (i32.const 2) - (i32.const 1) - (i32.const 2) - (i32.const 3) - ) - ) - (drop - (call $invoke_ffd - (i32.const 3) - (f32.const 1.5) - (f64.const 3.4) - ) - ) - (drop - (call $invoke_iii - (i32.const 4) - (i32.add - (get_local $1) - (i32.const 32) - ) - (i32.add - (get_local $1) - (i32.const 4) - ) - ) - ) - (call $emscripten_longjmp - (i32.const 5) - (i32.const 6) - ) - (i32.const 0) - ) - (func $__wasm_nullptr (; 10 ;) (type $FUNCSIG$v) - (unreachable) - ) - (func $stackSave (; 11 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 12 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 13 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) - (func $dynCall_v (; 14 ;) (param $fptr i32) - (call_indirect (type $FUNCSIG$v) - (get_local $fptr) - ) - ) - (func $dynCall_iiii (; 15 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) - (call_indirect (type $FUNCSIG$iiii) - (get_local $0) - (get_local $1) - (get_local $2) - (get_local $fptr) - ) - ) - (func $dynCall_ffd (; 16 ;) (param $fptr i32) (param $0 f32) (param $1 f64) (result f32) - (call_indirect (type $FUNCSIG$ffd) - (get_local $0) - (get_local $1) - (get_local $fptr) - ) - ) - (func $dynCall_iii (; 17 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (result i32) - (call_indirect (type $FUNCSIG$iii) - (get_local $0) - (get_local $1) - (get_local $fptr) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": ["emscripten_longjmp"], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore","_dynCall_v","_dynCall_iiii","_dynCall_ffd","_dynCall_iii"], "exports": ["main","stackSave","stackAlloc","stackRestore","dynCall_v","dynCall_iiii","dynCall_ffd","dynCall_iii"], "invokeFuncs": ["invoke_iii","invoke_ffd","invoke_iiii","invoke_v"] } diff --git a/test/dot_s/function-data-sections.wast b/test/dot_s/function-data-sections.wast deleted file mode 100644 index 402143f19..000000000 --- a/test/dot_s/function-data-sections.wast +++ /dev/null @@ -1,59 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (data (i32.const 12) "\00\00\00\00") - (data (i32.const 16) "\01\00\00\00") - (data (i32.const 20) "33\13@") - (export "foo" (func $foo)) - (export "bar" (func $bar)) - (export "qux" (func $qux)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $foo (; 0 ;) - (return) - ) - (func $bar (; 1 ;) (param $0 i32) (result i32) - (return - (get_local $0) - ) - ) - (func $qux (; 2 ;) (param $0 f64) (param $1 f64) (result f64) - (return - (f64.add - (get_local $0) - (get_local $1) - ) - ) - ) - (func $stackSave (; 3 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 5 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 24, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_foo","_bar","_qux","_stackSave","_stackAlloc","_stackRestore"], "exports": ["foo","bar","qux","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/globals.wast b/test/dot_s/globals.wast deleted file mode 100644 index c699705d5..000000000 --- a/test/dot_s/globals.wast +++ /dev/null @@ -1,113 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (import "env" "imported_global" (global $imported_global i32)) - (table 0 anyfunc) - (data (i32.const 12) "\11\00\00\00") - (data (i32.const 16) "\0c\00\00\00") - (data (i32.const 20) "\0e\00\00\00") - (export "globals" (func $globals)) - (export "import_globals" (func $import_globals)) - (export "globals_offset" (func $globals_offset)) - (export "import_globals_offset" (func $import_globals_offset)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $globals (; 0 ;) - (i32.store offset=12 - (i32.const 0) - (i32.const 7) - ) - (drop - (i32.load offset=12 - (i32.const 0) - ) - ) - (drop - (i32.const 12) - ) - ) - (func $import_globals (; 1 ;) - (i32.store - (get_global $imported_global) - (i32.const 7) - ) - (drop - (i32.load - (get_global $imported_global) - ) - ) - (drop - (get_global $imported_global) - ) - ) - (func $globals_offset (; 2 ;) - (i32.store offset=24 - (i32.const 4) - (i32.const 7) - ) - (drop - (i32.load offset=8 - (i32.const 8) - ) - ) - (drop - (i32.const 28) - ) - ) - (func $import_globals_offset (; 3 ;) - (i32.store offset=12 - (i32.add - (i32.const 4) - (get_global $imported_global) - ) - (i32.const 7) - ) - (drop - (i32.load - (i32.add - (i32.const 8) - (i32.add - (i32.const -4) - (get_global $imported_global) - ) - ) - ) - ) - (drop - (i32.add - (i32.const 16) - (get_global $imported_global) - ) - ) - ) - (func $stackSave (; 4 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 5 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 6 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 24, "initializers": [], "declares": [], "externs": ["_imported_global"], "implementedFunctions": ["_globals","_import_globals","_globals_offset","_import_globals_offset","_stackSave","_stackAlloc","_stackRestore"], "exports": ["globals","import_globals","globals_offset","import_globals_offset","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/hostFinalize.wast b/test/dot_s/hostFinalize.wast deleted file mode 100644 index 825f29e4b..000000000 --- a/test/dot_s/hostFinalize.wast +++ /dev/null @@ -1,47 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $_main (; 0 ;) - (drop - (grow_memory - (i32.add - (current_memory) - (i32.const 1) - ) - ) - ) - ) - (func $stackSave (; 1 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 3 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_stackSave","_stackAlloc","_stackRestore"], "exports": ["stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/indidx.wast b/test/dot_s/indidx.wast deleted file mode 100644 index 21b3b160d..000000000 --- a/test/dot_s/indidx.wast +++ /dev/null @@ -1,92 +0,0 @@ -(module - (type $FUNCSIG$i (func (result i32))) - (type $FUNCSIG$v (func)) - (import "env" "getchar" (func $getchar (result i32))) - (import "env" "memory" (memory $0 1)) - (table 5 5 anyfunc) - (elem (i32.const 0) $__wasm_nullptr $c $b $d $a) - (data (i32.const 16) "\04\00\00\00\02\00\00\00\01\00\00\00\03\00\00\00") - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (export "dynCall_i" (func $dynCall_i)) - (func $a (; 1 ;) (type $FUNCSIG$i) (result i32) - (i32.const 0) - ) - (func $b (; 2 ;) (type $FUNCSIG$i) (result i32) - (i32.const 1) - ) - (func $c (; 3 ;) (type $FUNCSIG$i) (result i32) - (i32.const 2) - ) - (func $d (; 4 ;) (type $FUNCSIG$i) (result i32) - (i32.const 3) - ) - (func $main (; 5 ;) (param $0 i32) (param $1 i32) (result i32) - (local $2 i32) - (block $label$0 - (br_if $label$0 - (i32.ge_u - (tee_local $2 - (i32.load - (i32.add - (i32.shl - (call $getchar) - (i32.const 2) - ) - (i32.const -176) - ) - ) - ) - (i32.const 4) - ) - ) - (return - (call_indirect (type $FUNCSIG$i) - (get_local $2) - ) - ) - ) - (unreachable) - (unreachable) - ) - (func $__wasm_nullptr (; 6 ;) (type $FUNCSIG$v) - (unreachable) - ) - (func $stackSave (; 7 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 8 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 9 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) - (func $dynCall_i (; 10 ;) (param $fptr i32) (result i32) - (call_indirect (type $FUNCSIG$i) - (get_local $fptr) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 32, "initializers": [], "declares": ["getchar"], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore","_dynCall_i"], "exports": ["main","stackSave","stackAlloc","stackRestore","dynCall_i"], "invokeFuncs": [] } diff --git a/test/dot_s/indirect-import.c b/test/dot_s/indirect-import.c deleted file mode 100644 index 679d862c7..000000000 --- a/test/dot_s/indirect-import.c +++ /dev/null @@ -1,31 +0,0 @@ -#include <stdint.h> - -struct big { - float a; - double b; - int32_t c; -}; - -float extern_fd(double); -void extern_vj(uint64_t); -void extern_v(void); -int32_t extern_ijidf(int64_t, int32_t, double, float); -void extern_struct(struct big); -struct big extern_sret(void); - -intptr_t bar() { - float (*fd)(double) = &extern_fd; - void (*vj)(uint64_t) = &extern_vj; - vj(1ULL); - void (*v)(void) = &extern_v; - v(); - int32_t (*ijidf)(int64_t, int32_t, double, float) = &extern_ijidf; - ijidf(1LL, 2, 3.0, 4.0f); - void (*vs)(struct big) = &extern_struct; - struct big (*s)(void) = &extern_sret; - return (intptr_t)fd; -} - -intptr_t baz() { - return (intptr_t)extern_v; -} diff --git a/test/dot_s/indirect-import.wast b/test/dot_s/indirect-import.wast deleted file mode 100644 index 408e256cc..000000000 --- a/test/dot_s/indirect-import.wast +++ /dev/null @@ -1,172 +0,0 @@ -(module - (type $FUNCSIG$fd (func (param f64) (result f32))) - (type $FUNCSIG$vj (func (param i64))) - (type $FUNCSIG$v (func)) - (type $FUNCSIG$ijidf (func (param i64 i32 f64 f32) (result i32))) - (type $FUNCSIG$vi (func (param i32))) - (import "env" "extern_ijidf" (func $extern_ijidf (param i64 i32 f64 f32) (result i32))) - (import "env" "extern_v" (func $extern_v)) - (import "env" "extern_vj" (func $extern_vj (param i64))) - (import "env" "memory" (memory $0 1)) - (import "env" "extern_fd" (func $extern_fd (param f64) (result f32))) - (import "env" "extern_struct" (func $extern_struct (param i32))) - (import "env" "extern_sret" (func $extern_sret (param i32))) - (table 7 7 anyfunc) - (elem (i32.const 0) $__wasm_nullptr $__importThunk_extern_fd $__importThunk_extern_vj $__importThunk_extern_v $__importThunk_extern_ijidf $__importThunk_extern_struct $__importThunk_extern_sret) - (export "bar" (func $bar)) - (export "baz" (func $baz)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (export "dynCall_fd" (func $dynCall_fd)) - (export "dynCall_v" (func $dynCall_v)) - (export "dynCall_vi" (func $dynCall_vi)) - (func $bar (; 6 ;) (result i32) - (local $0 i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (i32.const 32) - ) - ) - ) - (i32.store offset=28 - (get_local $1) - (i32.const 1) - ) - (i32.store offset=24 - (get_local $1) - (i32.const 2) - ) - (call $extern_vj - (i64.const 1) - ) - (i32.store offset=20 - (get_local $1) - (i32.const 3) - ) - (call $extern_v) - (i32.store offset=16 - (get_local $1) - (i32.const 4) - ) - (drop - (call $extern_ijidf - (i64.const 1) - (i32.const 2) - (f64.const 3) - (f32.const 4) - ) - ) - (i32.store offset=12 - (get_local $1) - (i32.const 5) - ) - (i32.store offset=8 - (get_local $1) - (i32.const 6) - ) - (set_local $0 - (i32.load offset=28 - (get_local $1) - ) - ) - (i32.store offset=4 - (i32.const 0) - (i32.add - (get_local $1) - (i32.const 32) - ) - ) - (get_local $0) - ) - (func $baz (; 7 ;) (result i32) - (i32.const 3) - ) - (func $__wasm_nullptr (; 8 ;) (type $FUNCSIG$v) - (unreachable) - ) - (func $__importThunk_extern_fd (; 9 ;) (type $FUNCSIG$fd) (param $0 f64) (result f32) - (call $extern_fd - (get_local $0) - ) - ) - (func $__importThunk_extern_vj (; 10 ;) (type $FUNCSIG$vj) (param $0 i64) - (call $extern_vj - (get_local $0) - ) - ) - (func $__importThunk_extern_v (; 11 ;) (type $FUNCSIG$v) - (call $extern_v) - ) - (func $__importThunk_extern_ijidf (; 12 ;) (type $FUNCSIG$ijidf) (param $0 i64) (param $1 i32) (param $2 f64) (param $3 f32) (result i32) - (call $extern_ijidf - (get_local $0) - (get_local $1) - (get_local $2) - (get_local $3) - ) - ) - (func $__importThunk_extern_struct (; 13 ;) (type $FUNCSIG$vi) (param $0 i32) - (call $extern_struct - (get_local $0) - ) - ) - (func $__importThunk_extern_sret (; 14 ;) (type $FUNCSIG$vi) (param $0 i32) - (call $extern_sret - (get_local $0) - ) - ) - (func $stackSave (; 15 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 16 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 17 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) - (func $dynCall_fd (; 18 ;) (param $fptr i32) (param $0 f64) (result f32) - (call_indirect (type $FUNCSIG$fd) - (get_local $0) - (get_local $fptr) - ) - ) - (func $dynCall_v (; 19 ;) (param $fptr i32) - (call_indirect (type $FUNCSIG$v) - (get_local $fptr) - ) - ) - (func $dynCall_vi (; 20 ;) (param $fptr i32) (param $0 i32) - (call_indirect (type $FUNCSIG$vi) - (get_local $0) - (get_local $fptr) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": ["extern_ijidf","extern_v","extern_vj","extern_fd","extern_struct","extern_sret"], "externs": [], "implementedFunctions": ["_bar","_baz","_stackSave","_stackAlloc","_stackRestore","_dynCall_fd","_dynCall_v","_dynCall_vi"], "exports": ["bar","baz","stackSave","stackAlloc","stackRestore","dynCall_fd","dynCall_v","dynCall_vi"], "invokeFuncs": [] } diff --git a/test/dot_s/initializers.wast b/test/dot_s/initializers.wast deleted file mode 100644 index e3c39646e..000000000 --- a/test/dot_s/initializers.wast +++ /dev/null @@ -1,51 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "main" (func $main)) - (export "f1" (func $f1)) - (export "f2" (func $f2)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $main (; 0 ;) (result i32) - (return - (i32.const 5) - ) - ) - (func $f1 (; 1 ;) - (return) - ) - (func $f2 (; 2 ;) - (return) - ) - (func $stackSave (; 3 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 5 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": ["main","f1","f2"], "declares": [], "externs": [], "implementedFunctions": ["_main","_f1","_f2","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","f1","f2","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/lcomm-in-text-segment.wast b/test/dot_s/lcomm-in-text-segment.wast deleted file mode 100644 index a4478acd6..000000000 --- a/test/dot_s/lcomm-in-text-segment.wast +++ /dev/null @@ -1,38 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (data (i32.const 20) "\10\00\00\00") - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $stackSave (; 0 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 1 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 2 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 24, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_stackSave","_stackAlloc","_stackRestore"], "exports": ["stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/local_align.wast b/test/dot_s/local_align.wast deleted file mode 100644 index 52db4a6ec..000000000 --- a/test/dot_s/local_align.wast +++ /dev/null @@ -1,46 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $foo (; 0 ;) (param $0 i32) - ) - (func $main (; 1 ;) (result i32) - (call $foo - (i32.const 16) - ) - (i32.const 0) - ) - (func $stackSave (; 2 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 4 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 172, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/macClangMetaData.wast b/test/dot_s/macClangMetaData.wast deleted file mode 100644 index 36e7faf88..000000000 --- a/test/dot_s/macClangMetaData.wast +++ /dev/null @@ -1,51 +0,0 @@ -(module - (type $FUNCSIG$ii (func (param i32) (result i32))) - (import "env" "puts" (func $puts (param i32) (result i32))) - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (data (i32.const 16) "Hello, World!\00") - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $main (; 1 ;) (param $0 i32) (param $1 i32) (result i32) - (drop - (call $puts - (i32.const 16) - ) - ) - (return - (i32.const 0) - ) - ) - (func $stackSave (; 2 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 4 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 30, "initializers": [], "declares": ["puts"], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/memops.wast b/test/dot_s/memops.wast deleted file mode 100644 index e155ddc6b..000000000 --- a/test/dot_s/memops.wast +++ /dev/null @@ -1,241 +0,0 @@ -(module - (type $FUNCSIG$vi (func (param i32))) - (import "env" "memory" (memory $0 1)) - (import "env" "emscripten_asm_const_v" (func $emscripten_asm_const_v (param i32))) - (table 0 anyfunc) - (data (i32.const 16) "{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }\00") - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $_Z6reporti (; 1 ;) (param $0 i32) - (i32.store - (i32.const 8) - (get_local $0) - ) - (call $emscripten_asm_const_v - (i32.const 0) - ) - (return) - ) - (func $main (; 2 ;) (result i32) - (local $0 i32) - (local $1 i32) - (local $2 i32) - (local $3 i32) - (local $4 i32) - (local $5 i32) - (local $6 i32) - (local $7 i32) - (local $8 i32) - (local $9 i32) - (local $10 i32) - (local $11 i32) - (local $12 i32) - (set_local $7 - (i32.const 0) - ) - (set_local $7 - (i32.load - (get_local $7) - ) - ) - (set_local $8 - (i32.const 1048576) - ) - (set_local $12 - (i32.sub - (get_local $7) - (get_local $8) - ) - ) - (set_local $8 - (i32.const 0) - ) - (i32.store - (get_local $8) - (get_local $12) - ) - (set_local $1 - (i32.const 0) - ) - (set_local $0 - (get_local $1) - ) - (set_local $6 - (get_local $1) - ) - (block $label$0 - (loop $label$1 - (set_local $4 - (get_local $1) - ) - (block $label$2 - (loop $label$3 - (set_local $10 - (i32.const 0) - ) - (set_local $10 - (i32.add - (get_local $12) - (get_local $10) - ) - ) - (i32.store8 - (i32.add - (get_local $10) - (get_local $4) - ) - (i32.add - (get_local $6) - (get_local $4) - ) - ) - (set_local $2 - (i32.const 1) - ) - (set_local $4 - (i32.add - (get_local $4) - (get_local $2) - ) - ) - (set_local $3 - (i32.const 1048576) - ) - (set_local $5 - (get_local $1) - ) - (br_if $label$3 - (i32.ne - (get_local $4) - (get_local $3) - ) - ) - ) - ) - (block $label$4 - (loop $label$5 - (set_local $11 - (i32.const 0) - ) - (set_local $11 - (i32.add - (get_local $12) - (get_local $11) - ) - ) - (set_local $6 - (i32.add - (i32.and - (i32.load8_u - (i32.add - (get_local $11) - (get_local $5) - ) - ) - (get_local $2) - ) - (get_local $6) - ) - ) - (set_local $5 - (i32.add - (get_local $5) - (get_local $2) - ) - ) - (br_if $label$5 - (i32.ne - (get_local $5) - (get_local $3) - ) - ) - ) - ) - (set_local $6 - (i32.and - (i32.add - (i32.add - (i32.mul - (get_local $6) - (i32.const 3) - ) - (i32.div_s - (get_local $6) - (i32.const 5) - ) - ) - (i32.const 17) - ) - (i32.const 65535) - ) - ) - (set_local $0 - (i32.add - (get_local $0) - (get_local $2) - ) - ) - (br_if $label$1 - (i32.ne - (get_local $0) - (i32.const 100) - ) - ) - ) - ) - (call $_Z6reporti - (get_local $6) - ) - (set_local $9 - (i32.const 1048576) - ) - (set_local $12 - (i32.add - (get_local $12) - (get_local $9) - ) - ) - (set_local $9 - (i32.const 0) - ) - (i32.store - (get_local $9) - (get_local $12) - ) - (return - (i32.const 0) - ) - ) - (func $stackSave (; 3 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 5 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {"0": ["{ Module.print(\"hello, world! \" + HEAP32[8>>2]); }", ["v"]]},"staticBump": 67, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/minimal.wast b/test/dot_s/minimal.wast deleted file mode 100644 index 8f5c8ae5e..000000000 --- a/test/dot_s/minimal.wast +++ /dev/null @@ -1,43 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $main (; 0 ;) (result i32) - (return - (i32.const 5) - ) - ) - (func $stackSave (; 1 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 3 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/permute.wast b/test/dot_s/permute.wast deleted file mode 100644 index c95fd7903..000000000 --- a/test/dot_s/permute.wast +++ /dev/null @@ -1,38 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (data (i32.const 16) "hE?\8ds\0e7\db[g\8f\955it\c4k\0b\e2\ef\bcld\e0\fd\8c\9e\86&~\d8\94\89+\c8\a4\c2\f2\fb\12\1cej\d99\b7\b3W\c6w\af\ae\caM>\92ub\96\84\b6\b0N\ec;q\11\f7\bf\e31\e6\a7\90\fc\03\e4\aa\d7\cc- \15\83DH\80r\fa\01X\eb:_\00A\cd\e9o`n\ac(\ad\ba0\dcyS#\f4$\"\82\7f}\8e\f6\93L\'\bb\bdZ\ed4\18\f3\c0\cf\ff\a3\f8\07\05\9c\d3\0f\a0\06m%\\\f9^B<\e7\b1\17\98]\0c\dd\c5\f5p\e5\fezJ\ab,F\a5@\08R\85!\b8\1a\ce\d5\04\nI\a6\d1\9f\8a\c9\a9|\97\9aG\be8Y\8b\c1\1b\d4\ea\b9\19\14\9b\9163\d0\1d\d2\df=C\1f\0dc\e1\c7QUv\02\b5aK\b4\tV\c3x\e8\a1\1e\81\de/{\da\d6Pf\10T\f0)\88\16\ee\a8\9d\f1\cbO*\b2\99\132\87.\a2") - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $stackSave (; 0 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 1 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 2 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 272, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_stackSave","_stackAlloc","_stackRestore"], "exports": ["stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/relocation.wast b/test/dot_s/relocation.wast deleted file mode 100644 index 23fc29899..000000000 --- a/test/dot_s/relocation.wast +++ /dev/null @@ -1,48 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (data (i32.const 12) "\10\00\00\00") - (data (i32.const 16) "\0c\00\00\00") - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $main (; 0 ;) (result i32) - (local $0 i32) - (return - (i32.load - (i32.const 16) - ) - ) - ) - (func $stackSave (; 1 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 3 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 20, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/reserved_func_ptrs.jscall.wast b/test/dot_s/reserved_func_ptrs.jscall.wast deleted file mode 100644 index d3dc05d18..000000000 --- a/test/dot_s/reserved_func_ptrs.jscall.wast +++ /dev/null @@ -1,281 +0,0 @@ -(module - (type $FUNCSIG$v (func)) - (type $FUNCSIG$vi (func (param i32))) - (type $FUNCSIG$iii (func (param i32 i32) (result i32))) - (type $FUNCSIG$fffi (func (param f32 f32 i32) (result f32))) - (type $FUNCSIG$ddi (func (param f64 i32) (result f64))) - (type $FUNCSIG$viii (func (param i32 i32 i32))) - (type $FUNCSIG$ii (func (param i32) (result i32))) - (type $FUNCSIG$didi (func (param i32 f64 i32) (result f64))) - (type $FUNCSIG$fiffi (func (param i32 f32 f32 i32) (result f32))) - (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32))) - (type $FUNCSIG$vii (func (param i32 i32))) - (type $FUNCSIG$viiii (func (param i32 i32 i32 i32))) - (import "env" "atoi" (func $atoi (param i32) (result i32))) - (import "env" "memory" (memory $0 1)) - (import "env" "jsCall_ddi" (func $jsCall_ddi (param i32 f64 i32) (result f64))) - (import "env" "jsCall_fffi" (func $jsCall_fffi (param i32 f32 f32 i32) (result f32))) - (import "env" "jsCall_iii" (func $jsCall_iii (param i32 i32 i32) (result i32))) - (import "env" "jsCall_v" (func $jsCall_v (param i32))) - (import "env" "jsCall_vi" (func $jsCall_vi (param i32 i32))) - (import "env" "jsCall_viii" (func $jsCall_viii (param i32 i32 i32 i32))) - (table 21 21 anyfunc) - (elem (i32.const 0) $__wasm_nullptr $_Z18address_taken_funciii $_Z19address_taken_func2iii $jsCall_ddi_0 $jsCall_ddi_1 $jsCall_ddi_2 $jsCall_fffi_0 $jsCall_fffi_1 $jsCall_fffi_2 $jsCall_iii_0 $jsCall_iii_1 $jsCall_iii_2 $jsCall_v_0 $jsCall_v_1 $jsCall_v_2 $jsCall_vi_0 $jsCall_vi_1 $jsCall_vi_2 $jsCall_viii_0 $jsCall_viii_1 $jsCall_viii_2) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (export "dynCall_viii" (func $dynCall_viii)) - (func $_Z18address_taken_funciii (; 7 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) - ) - (func $_Z19address_taken_func2iii (; 8 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) - ) - (func $main (; 9 ;) (param $0 i32) (param $1 i32) (result i32) - (local $2 i32) - (local $3 i32) - (local $4 i32) - (local $5 i32) - (set_local $2 - (call $atoi - (i32.load offset=4 - (get_local $1) - ) - ) - ) - (set_local $3 - (call $atoi - (i32.load offset=8 - (get_local $1) - ) - ) - ) - (set_local $4 - (call $atoi - (i32.load offset=12 - (get_local $1) - ) - ) - ) - (set_local $5 - (call $atoi - (i32.load offset=16 - (get_local $1) - ) - ) - ) - (set_local $1 - (call $atoi - (i32.load offset=20 - (get_local $1) - ) - ) - ) - (call_indirect (type $FUNCSIG$v) - (get_local $2) - ) - (call_indirect (type $FUNCSIG$vi) - (i32.const 3) - (get_local $3) - ) - (drop - (call_indirect (type $FUNCSIG$iii) - (i32.const 4) - (i32.const 5) - (get_local $4) - ) - ) - (drop - (call_indirect (type $FUNCSIG$fffi) - (f32.const 3.0999999046325684) - (f32.const 4.199999809265137) - (i32.const 5) - (get_local $5) - ) - ) - (drop - (call_indirect (type $FUNCSIG$ddi) - (f64.const 4.2) - (i32.const 5) - (get_local $1) - ) - ) - (call_indirect (type $FUNCSIG$viii) - (i32.const 1) - (i32.const 2) - (i32.const 3) - (select - (i32.const 1) - (i32.const 2) - (i32.gt_s - (get_local $0) - (i32.const 3) - ) - ) - ) - (i32.const 0) - ) - (func $__wasm_nullptr (; 10 ;) (type $FUNCSIG$v) - (unreachable) - ) - (func $stackSave (; 11 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 12 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 13 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) - (func $dynCall_viii (; 14 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (param $2 i32) - (call_indirect (type $FUNCSIG$viii) - (get_local $0) - (get_local $1) - (get_local $2) - (get_local $fptr) - ) - ) - (func $jsCall_ddi_0 (; 15 ;) (param $0 f64) (param $1 i32) (result f64) - (call $jsCall_ddi - (i32.const 0) - (get_local $0) - (get_local $1) - ) - ) - (func $jsCall_ddi_1 (; 16 ;) (param $0 f64) (param $1 i32) (result f64) - (call $jsCall_ddi - (i32.const 1) - (get_local $0) - (get_local $1) - ) - ) - (func $jsCall_ddi_2 (; 17 ;) (param $0 f64) (param $1 i32) (result f64) - (call $jsCall_ddi - (i32.const 2) - (get_local $0) - (get_local $1) - ) - ) - (func $jsCall_fffi_0 (; 18 ;) (param $0 f32) (param $1 f32) (param $2 i32) (result f32) - (call $jsCall_fffi - (i32.const 0) - (get_local $0) - (get_local $1) - (get_local $2) - ) - ) - (func $jsCall_fffi_1 (; 19 ;) (param $0 f32) (param $1 f32) (param $2 i32) (result f32) - (call $jsCall_fffi - (i32.const 1) - (get_local $0) - (get_local $1) - (get_local $2) - ) - ) - (func $jsCall_fffi_2 (; 20 ;) (param $0 f32) (param $1 f32) (param $2 i32) (result f32) - (call $jsCall_fffi - (i32.const 2) - (get_local $0) - (get_local $1) - (get_local $2) - ) - ) - (func $jsCall_iii_0 (; 21 ;) (param $0 i32) (param $1 i32) (result i32) - (call $jsCall_iii - (i32.const 0) - (get_local $0) - (get_local $1) - ) - ) - (func $jsCall_iii_1 (; 22 ;) (param $0 i32) (param $1 i32) (result i32) - (call $jsCall_iii - (i32.const 1) - (get_local $0) - (get_local $1) - ) - ) - (func $jsCall_iii_2 (; 23 ;) (param $0 i32) (param $1 i32) (result i32) - (call $jsCall_iii - (i32.const 2) - (get_local $0) - (get_local $1) - ) - ) - (func $jsCall_v_0 (; 24 ;) - (call $jsCall_v - (i32.const 0) - ) - ) - (func $jsCall_v_1 (; 25 ;) - (call $jsCall_v - (i32.const 1) - ) - ) - (func $jsCall_v_2 (; 26 ;) - (call $jsCall_v - (i32.const 2) - ) - ) - (func $jsCall_vi_0 (; 27 ;) (param $0 i32) - (call $jsCall_vi - (i32.const 0) - (get_local $0) - ) - ) - (func $jsCall_vi_1 (; 28 ;) (param $0 i32) - (call $jsCall_vi - (i32.const 1) - (get_local $0) - ) - ) - (func $jsCall_vi_2 (; 29 ;) (param $0 i32) - (call $jsCall_vi - (i32.const 2) - (get_local $0) - ) - ) - (func $jsCall_viii_0 (; 30 ;) (param $0 i32) (param $1 i32) (param $2 i32) - (call $jsCall_viii - (i32.const 0) - (get_local $0) - (get_local $1) - (get_local $2) - ) - ) - (func $jsCall_viii_1 (; 31 ;) (param $0 i32) (param $1 i32) (param $2 i32) - (call $jsCall_viii - (i32.const 1) - (get_local $0) - (get_local $1) - (get_local $2) - ) - ) - (func $jsCall_viii_2 (; 32 ;) (param $0 i32) (param $1 i32) (param $2 i32) - (call $jsCall_viii - (i32.const 2) - (get_local $0) - (get_local $1) - (get_local $2) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "jsCallStartIndex": 3, "jsCallFuncType": ["ddi","fffi","iii","v","vi","viii"], "declares": ["atoi"], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore","_dynCall_viii"], "exports": ["main","stackSave","stackAlloc","stackRestore","dynCall_viii"], "invokeFuncs": [] } diff --git a/test/dot_s/reserved_func_ptrs.wast b/test/dot_s/reserved_func_ptrs.wast deleted file mode 100644 index ded33e78d..000000000 --- a/test/dot_s/reserved_func_ptrs.wast +++ /dev/null @@ -1,147 +0,0 @@ -(module - (type $FUNCSIG$v (func)) - (type $FUNCSIG$vi (func (param i32))) - (type $FUNCSIG$iii (func (param i32 i32) (result i32))) - (type $FUNCSIG$fffi (func (param f32 f32 i32) (result f32))) - (type $FUNCSIG$ddi (func (param f64 i32) (result f64))) - (type $FUNCSIG$viii (func (param i32 i32 i32))) - (type $FUNCSIG$ii (func (param i32) (result i32))) - (import "env" "atoi" (func $atoi (param i32) (result i32))) - (import "env" "memory" (memory $0 1)) - (table 3 3 anyfunc) - (elem (i32.const 0) $__wasm_nullptr $_Z18address_taken_funciii $_Z19address_taken_func2iii) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (export "dynCall_viii" (func $dynCall_viii)) - (func $_Z18address_taken_funciii (; 1 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) - ) - (func $_Z19address_taken_func2iii (; 2 ;) (type $FUNCSIG$viii) (param $0 i32) (param $1 i32) (param $2 i32) - ) - (func $main (; 3 ;) (param $0 i32) (param $1 i32) (result i32) - (local $2 i32) - (local $3 i32) - (local $4 i32) - (local $5 i32) - (set_local $2 - (call $atoi - (i32.load offset=4 - (get_local $1) - ) - ) - ) - (set_local $3 - (call $atoi - (i32.load offset=8 - (get_local $1) - ) - ) - ) - (set_local $4 - (call $atoi - (i32.load offset=12 - (get_local $1) - ) - ) - ) - (set_local $5 - (call $atoi - (i32.load offset=16 - (get_local $1) - ) - ) - ) - (set_local $1 - (call $atoi - (i32.load offset=20 - (get_local $1) - ) - ) - ) - (call_indirect (type $FUNCSIG$v) - (get_local $2) - ) - (call_indirect (type $FUNCSIG$vi) - (i32.const 3) - (get_local $3) - ) - (drop - (call_indirect (type $FUNCSIG$iii) - (i32.const 4) - (i32.const 5) - (get_local $4) - ) - ) - (drop - (call_indirect (type $FUNCSIG$fffi) - (f32.const 3.0999999046325684) - (f32.const 4.199999809265137) - (i32.const 5) - (get_local $5) - ) - ) - (drop - (call_indirect (type $FUNCSIG$ddi) - (f64.const 4.2) - (i32.const 5) - (get_local $1) - ) - ) - (call_indirect (type $FUNCSIG$viii) - (i32.const 1) - (i32.const 2) - (i32.const 3) - (select - (i32.const 1) - (i32.const 2) - (i32.gt_s - (get_local $0) - (i32.const 3) - ) - ) - ) - (i32.const 0) - ) - (func $__wasm_nullptr (; 4 ;) (type $FUNCSIG$v) - (unreachable) - ) - (func $stackSave (; 5 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 6 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 7 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) - (func $dynCall_viii (; 8 ;) (param $fptr i32) (param $0 i32) (param $1 i32) (param $2 i32) - (call_indirect (type $FUNCSIG$viii) - (get_local $0) - (get_local $1) - (get_local $2) - (get_local $fptr) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": ["atoi"], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore","_dynCall_viii"], "exports": ["main","stackSave","stackAlloc","stackRestore","dynCall_viii"], "invokeFuncs": [] } diff --git a/test/dot_s/return.wast b/test/dot_s/return.wast deleted file mode 100644 index d1688f797..000000000 --- a/test/dot_s/return.wast +++ /dev/null @@ -1,53 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "return_i32" (func $return_i32)) - (export "return_void" (func $return_void)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $return_i32 (; 0 ;) (result i32) - (i32.const 5) - ) - (func $return_void (; 1 ;) - ) - (func $fallthrough_return_nested_loop_i32 (; 2 ;) (result i32) - (loop $label$0 (result i32) - (loop $label$1 (result i32) - (return - (i32.const 1) - ) - ) - ) - ) - (func $stackSave (; 3 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 5 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_return_i32","_return_void","_stackSave","_stackAlloc","_stackRestore"], "exports": ["return_i32","return_void","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/start_main0.wast b/test/dot_s/start_main0.wast deleted file mode 100644 index 33905205a..000000000 --- a/test/dot_s/start_main0.wast +++ /dev/null @@ -1,44 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (start $_start) - (func $main (; 0 ;) - ) - (func $_start (; 1 ;) - (call $main) - ) - (func $stackSave (; 2 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 4 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/start_main2.wast b/test/dot_s/start_main2.wast deleted file mode 100644 index 716af3660..000000000 --- a/test/dot_s/start_main2.wast +++ /dev/null @@ -1,54 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (start $_start) - (func $main (; 0 ;) (param $0 i32) (param $1 i32) (result i32) - (return - (get_local $0) - ) - ) - (func $_start (; 1 ;) - (local $0 i32) - (local $1 i32) - (drop - (call $main - (get_local $0) - (get_local $1) - ) - ) - ) - (func $stackSave (; 2 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 4 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/symbolic-offset.wast b/test/dot_s/symbolic-offset.wast deleted file mode 100644 index ef9c23fe6..000000000 --- a/test/dot_s/symbolic-offset.wast +++ /dev/null @@ -1,46 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (data (i32.const 12) "\01\00\00\00\00\00\00\00\00\00\00\00") - (export "f" (func $f)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $f (; 0 ;) (param $0 i32) (param $1 i32) - (i32.store offset=16 - (get_local $0) - (get_local $1) - ) - (return) - ) - (func $stackSave (; 1 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 3 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 24, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_f","_stackSave","_stackAlloc","_stackRestore"], "exports": ["f","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/text_before_type.wast b/test/dot_s/text_before_type.wast deleted file mode 100644 index f85b1ffde..000000000 --- a/test/dot_s/text_before_type.wast +++ /dev/null @@ -1,44 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "main" (func $main)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $main (; 0 ;) (result i32) - (call $foo) - (i32.const 0) - ) - (func $foo (; 1 ;) - ) - (func $stackSave (; 2 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 3 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 4 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_main","_stackSave","_stackAlloc","_stackRestore"], "exports": ["main","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/traps.clamp.wast b/test/dot_s/traps.clamp.wast deleted file mode 100644 index 81bcec13b..000000000 --- a/test/dot_s/traps.clamp.wast +++ /dev/null @@ -1,112 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "test_traps" (func $test_traps)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $test_traps (; 0 ;) (param $0 f32) (param $1 f64) (result i32) - (call $i32u-div - (call $f32-to-int - (get_local $0) - ) - (call $f64-to-uint - (get_local $1) - ) - ) - ) - (func $f32-to-int (; 1 ;) (param $0 f32) (result i32) - (if (result i32) - (f32.ne - (get_local $0) - (get_local $0) - ) - (i32.const -2147483648) - (if (result i32) - (f32.ge - (get_local $0) - (f32.const 2147483648) - ) - (i32.const -2147483648) - (if (result i32) - (f32.le - (get_local $0) - (f32.const -2147483648) - ) - (i32.const -2147483648) - (i32.trunc_s/f32 - (get_local $0) - ) - ) - ) - ) - ) - (func $f64-to-uint (; 2 ;) (param $0 f64) (result i32) - (if (result i32) - (f64.ne - (get_local $0) - (get_local $0) - ) - (i32.const 0) - (if (result i32) - (f64.ge - (get_local $0) - (f64.const 4294967296) - ) - (i32.const 0) - (if (result i32) - (f64.le - (get_local $0) - (f64.const -1) - ) - (i32.const 0) - (i32.trunc_u/f64 - (get_local $0) - ) - ) - ) - ) - ) - (func $i32u-div (; 3 ;) (param $0 i32) (param $1 i32) (result i32) - (if (result i32) - (i32.eqz - (get_local $1) - ) - (i32.const 0) - (i32.div_u - (get_local $0) - (get_local $1) - ) - ) - ) - (func $stackSave (; 4 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 5 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 6 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_test_traps","_stackSave","_stackAlloc","_stackRestore"], "exports": ["test_traps","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/traps.js.wast b/test/dot_s/traps.js.wast deleted file mode 100644 index 788663c91..000000000 --- a/test/dot_s/traps.js.wast +++ /dev/null @@ -1,64 +0,0 @@ -(module - (type $FUNCSIG$id (func (param f64) (result i32))) - (import "asm2wasm" "f64-to-int" (func $f64-to-int (param f64) (result i32))) - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "test_traps" (func $test_traps)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $test_traps (; 1 ;) (param $0 f32) (param $1 f64) (result i32) - (call $i32u-div - (call $f64-to-int - (f64.promote/f32 - (get_local $0) - ) - ) - (call $f64-to-int - (get_local $1) - ) - ) - ) - (func $i32u-div (; 2 ;) (param $0 i32) (param $1 i32) (result i32) - (if (result i32) - (i32.eqz - (get_local $1) - ) - (i32.const 0) - (i32.div_u - (get_local $0) - (get_local $1) - ) - ) - ) - (func $stackSave (; 3 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 5 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": ["f64-to-int"], "externs": [], "implementedFunctions": ["_test_traps","_stackSave","_stackAlloc","_stackRestore"], "exports": ["test_traps","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/traps.wast b/test/dot_s/traps.wast deleted file mode 100644 index 634c5aefc..000000000 --- a/test/dot_s/traps.wast +++ /dev/null @@ -1,48 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "test_traps" (func $test_traps)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $test_traps (; 0 ;) (param $0 f32) (param $1 f64) (result i32) - (i32.div_u - (i32.trunc_s/f32 - (get_local $0) - ) - (i32.trunc_u/f64 - (get_local $1) - ) - ) - ) - (func $stackSave (; 1 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 2 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 3 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_test_traps","_stackSave","_stackAlloc","_stackRestore"], "exports": ["test_traps","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/unreachable_blocks.wast b/test/dot_s/unreachable_blocks.wast deleted file mode 100644 index 240d07c38..000000000 --- a/test/dot_s/unreachable_blocks.wast +++ /dev/null @@ -1,122 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $unreachable_block_void (; 0 ;) (result i32) - (block $label$0 - ) - (return - (i32.const 1) - ) - (block $label$1 - (unreachable) - ) - ) - (func $unreachable_block_i32 (; 1 ;) (result i32) - (return - (i32.const 2) - ) - (block $label$0 - (unreachable) - ) - ) - (func $unreachable_block_i64 (; 2 ;) (result i64) - (return - (i64.const 3) - ) - (block $label$0 - (unreachable) - ) - ) - (func $unreachable_block_f32 (; 3 ;) (result f32) - (return - (f32.const 4.5) - ) - (block $label$0 - (unreachable) - ) - ) - (func $unreachable_block_f64 (; 4 ;) (result f64) - (return - (f64.const 5.5) - ) - (block $label$0 - (unreachable) - ) - ) - (func $unreachable_loop_void (; 5 ;) (result i32) - (loop $label$0 - (br $label$0) - ) - (return - (i32.const 6) - ) - (loop $label$1 - (br $label$1) - ) - ) - (func $unreachable_loop_i32 (; 6 ;) (result i32) - (return - (i32.const 7) - ) - (loop $label$0 (result i32) - (br $label$0) - ) - ) - (func $unreachable_loop_i64 (; 7 ;) (result i64) - (return - (i64.const 8) - ) - (loop $label$0 (result i64) - (br $label$0) - ) - ) - (func $unreachable_loop_f32 (; 8 ;) (result f32) - (return - (f32.const 9.5) - ) - (loop $label$0 (result f32) - (br $label$0) - ) - ) - (func $unreachable_loop_f64 (; 9 ;) (result f64) - (return - (f64.const 10.5) - ) - (loop $label$0 (result f64) - (br $label$0) - ) - ) - (func $stackSave (; 10 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 11 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 12 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_stackSave","_stackAlloc","_stackRestore"], "exports": ["stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } diff --git a/test/dot_s/visibilities.wast b/test/dot_s/visibilities.wast deleted file mode 100644 index 0cfc081fa..000000000 --- a/test/dot_s/visibilities.wast +++ /dev/null @@ -1,49 +0,0 @@ -(module - (import "env" "memory" (memory $0 1)) - (table 0 anyfunc) - (export "foo" (func $foo)) - (export "bar" (func $bar)) - (export "qux" (func $qux)) - (export "stackSave" (func $stackSave)) - (export "stackAlloc" (func $stackAlloc)) - (export "stackRestore" (func $stackRestore)) - (func $foo (; 0 ;) - (return) - ) - (func $bar (; 1 ;) - (return) - ) - (func $qux (; 2 ;) - (return) - ) - (func $stackSave (; 3 ;) (result i32) - (i32.load offset=4 - (i32.const 0) - ) - ) - (func $stackAlloc (; 4 ;) (param $0 i32) (result i32) - (local $1 i32) - (i32.store offset=4 - (i32.const 0) - (tee_local $1 - (i32.and - (i32.sub - (i32.load offset=4 - (i32.const 0) - ) - (get_local $0) - ) - (i32.const -16) - ) - ) - ) - (get_local $1) - ) - (func $stackRestore (; 5 ;) (param $0 i32) - (i32.store offset=4 - (i32.const 0) - (get_local $0) - ) - ) -) -;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [], "declares": [], "externs": [], "implementedFunctions": ["_foo","_bar","_qux","_stackSave","_stackAlloc","_stackRestore"], "exports": ["foo","bar","qux","stackSave","stackAlloc","stackRestore"], "invokeFuncs": [] } |