diff options
Diffstat (limited to 'test/passes')
8 files changed, 18 insertions, 18 deletions
diff --git a/test/passes/duplicate-function-elimination_optimize-level=1.wast b/test/passes/duplicate-function-elimination_optimize-level=1.wast index 1097f6715..c66cfba5d 100644 --- a/test/passes/duplicate-function-elimination_optimize-level=1.wast +++ b/test/passes/duplicate-function-elimination_optimize-level=1.wast @@ -435,10 +435,10 @@ ) ) (module - (memory 0) - (type $FUNCSIG$v (func)) (import "env" "i" (func $i)) (import "env" "j" (func $j)) + (memory 0) + (type $FUNCSIG$v (func)) (func $erase (type $FUNCSIG$v) (call $i) ) @@ -447,10 +447,10 @@ ) ) (module - (memory 0) - (type $FUNCSIG$v (func)) (import "env" "i" (func $i)) (import "env" "j" (func $j)) + (memory 0) + (type $FUNCSIG$v (func)) (func $keep2 (type $FUNCSIG$v) (call $i) ) diff --git a/test/passes/duplicate-function-elimination_optimize-level=2.wast b/test/passes/duplicate-function-elimination_optimize-level=2.wast index 1097f6715..c66cfba5d 100644 --- a/test/passes/duplicate-function-elimination_optimize-level=2.wast +++ b/test/passes/duplicate-function-elimination_optimize-level=2.wast @@ -435,10 +435,10 @@ ) ) (module - (memory 0) - (type $FUNCSIG$v (func)) (import "env" "i" (func $i)) (import "env" "j" (func $j)) + (memory 0) + (type $FUNCSIG$v (func)) (func $erase (type $FUNCSIG$v) (call $i) ) @@ -447,10 +447,10 @@ ) ) (module - (memory 0) - (type $FUNCSIG$v (func)) (import "env" "i" (func $i)) (import "env" "j" (func $j)) + (memory 0) + (type $FUNCSIG$v (func)) (func $keep2 (type $FUNCSIG$v) (call $i) ) diff --git a/test/passes/remove-imports.wast b/test/passes/remove-imports.wast index 77c16e991..e3a360d45 100644 --- a/test/passes/remove-imports.wast +++ b/test/passes/remove-imports.wast @@ -1,5 +1,4 @@ (module - (memory 1024 1024) (type $FUNCSIG$v (func)) (type $FUNCSIG$i (func (result i32))) (type $FUNCSIG$d (func (result f64))) @@ -9,6 +8,7 @@ (import "somewhere" "waka-sneaky" (func $waka-sneaky)) (import "env" "memBase" (global i32)) (import "env" "table" (table $table 1 1 funcref)) + (memory 1024 1024) (elem (i32.const 0) $waka-sneaky) (func $nada (type $FUNCSIG$v) (call $waka) diff --git a/test/passes/remove-unused-nonfunction-module-elements_all-features.wast b/test/passes/remove-unused-nonfunction-module-elements_all-features.wast index 2917b23a0..dd37822c0 100644 --- a/test/passes/remove-unused-nonfunction-module-elements_all-features.wast +++ b/test/passes/remove-unused-nonfunction-module-elements_all-features.wast @@ -275,9 +275,9 @@ ) (module ;; non-exported tags can be removed (type $0 (func (param i32))) + (import "env" "e" (tag $e2 (param i32))) (tag $e0 (type $0)) (tag $e1 (param i64)) (export "e1" (tag $e1)) - (import "env" "e" (tag $e2 (param i32))) (func $f (; 0 ;) (type $0)) ) diff --git a/test/passes/safe-heap_disable-simd.wast b/test/passes/safe-heap_disable-simd.wast index f867a0e7c..6aa612230 100644 --- a/test/passes/safe-heap_disable-simd.wast +++ b/test/passes/safe-heap_disable-simd.wast @@ -2,8 +2,8 @@ (memory 1 1) ) (module - (memory 1 1) (import "env" "emscripten_get_sbrk_ptr" (func $foo (result i32))) + (memory 1 1) ) (module (memory 1 1) diff --git a/test/passes/simplify-locals_all-features.wast b/test/passes/simplify-locals_all-features.wast index e51abda5c..47bb7f1b5 100644 --- a/test/passes/simplify-locals_all-features.wast +++ b/test/passes/simplify-locals_all-features.wast @@ -1,5 +1,4 @@ (module - (memory 256 256) (type $FUNCSIG$v (func)) (type $FUNCSIG$i (func (result i32))) (type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32))) @@ -13,6 +12,7 @@ (import "env" "moddi" (func $___udivmoddi4 (param i32 i32 i32 i32 i32) (result i32))) (import "env" "lp" (func $lp (param i32 i32) (result i32))) (import "fuzzing-support" "log-f32" (func $fimport$0 (param f32))) + (memory 256 256) (global $global$0 (mut i32) (i32.const 10)) (func $contrast ;; check for tee and structure sinking (local $x i32) @@ -1187,7 +1187,6 @@ ) ) (module - (memory 256 256 shared) (type $FUNCSIG$v (func)) (type $FUNCSIG$i (func (result i32))) (type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32))) @@ -1198,6 +1197,7 @@ (import "fuzzing-support" "log1" (func $fimport$0 (result i32))) (import "fuzzing-support" "log2" (func $fimport$1 (param i32))) (import "fuzzing-support" "log3" (func $fimport$2 (param f32))) + (memory 256 256 shared) (global $global$0 (mut i32) (i32.const 10)) (func $nonatomics (result i32) ;; loads are reordered (local $x i32) diff --git a/test/passes/simplify-locals_all-features_disable-exception-handling.wast b/test/passes/simplify-locals_all-features_disable-exception-handling.wast index 9fa89ea20..0fc110696 100644 --- a/test/passes/simplify-locals_all-features_disable-exception-handling.wast +++ b/test/passes/simplify-locals_all-features_disable-exception-handling.wast @@ -1,5 +1,4 @@ (module - (memory 256 256) (type $FUNCSIG$v (func)) (type $FUNCSIG$i (func (result i32))) (type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32))) @@ -13,6 +12,7 @@ (import "env" "moddi" (func $___udivmoddi4 (param i32 i32 i32 i32 i32) (result i32))) (import "env" "lp" (func $lp (param i32 i32) (result i32))) (import "fuzzing-support" "log-f32" (func $fimport$0 (param f32))) + (memory 256 256) (global $global$0 (mut i32) (i32.const 10)) (func $contrast ;; check for tee and structure sinking (local $x i32) @@ -1187,7 +1187,6 @@ ) ) (module - (memory 256 256 shared) (type $FUNCSIG$v (func)) (type $FUNCSIG$i (func (result i32))) (type $FUNCSIG$iiiii (func (param i32 i32 i32 i32) (result i32))) @@ -1198,6 +1197,7 @@ (import "fuzzing-support" "log1" (func $fimport$0 (result i32))) (import "fuzzing-support" "log2" (func $fimport$1 (param i32))) (import "fuzzing-support" "log3" (func $fimport$2 (param f32))) + (memory 256 256 shared) (global $global$0 (mut i32) (i32.const 10)) (func $nonatomics (result i32) ;; loads are reordered (local $x i32) diff --git a/test/passes/spill-pointers.wast b/test/passes/spill-pointers.wast index 4a9d71f14..b9c59b2c5 100644 --- a/test/passes/spill-pointers.wast +++ b/test/passes/spill-pointers.wast @@ -1,10 +1,10 @@ (module + (import "env" "STACKTOP" (global $STACKTOP$asm2wasm$import i32)) + (import "env" "segfault" (func $segfault (param i32))) (memory 10) (type $ii (func (param i32 i32))) (table 1 1 funcref) (elem (i32.const 0)) - (import "env" "STACKTOP" (global $STACKTOP$asm2wasm$import i32)) - (import "env" "segfault" (func $segfault (param i32))) (global $stack_ptr (mut i32) (global.get $STACKTOP$asm2wasm$import)) (func $nothing @@ -171,13 +171,13 @@ ) (module + (import "env" "segfault" (func $segfault (param i32))) (memory 10) (type $ii (func (param i32 i32))) (table 1 1 funcref) (elem (i32.const 0)) (global $stack_ptr (mut i32) (i32.const 1716592)) (export "stackSave" (func $stack_save)) - (import "env" "segfault" (func $segfault (param i32))) (func $stack_save (result i32) (global.get $stack_ptr) ) |