diff options
Diffstat (limited to 'test/passes')
15 files changed, 55 insertions, 55 deletions
diff --git a/test/passes/O4_disable-bulk-memory.txt b/test/passes/O4_disable-bulk-memory.txt index 1b01f1c28..455d8101d 100644 --- a/test/passes/O4_disable-bulk-memory.txt +++ b/test/passes/O4_disable-bulk-memory.txt @@ -66,14 +66,14 @@ ) (i32.shl (local.tee $2 - (current_memory) + (memory.size) ) (i32.const 16) ) ) (if (i32.lt_s - (grow_memory + (memory.grow (select (local.get $2) (local.tee $3 @@ -101,7 +101,7 @@ ) (if (i32.lt_s - (grow_memory + (memory.grow (local.get $3) ) (i32.const 0) diff --git a/test/passes/O4_disable-bulk-memory.wast b/test/passes/O4_disable-bulk-memory.wast index cdea2da96..9a8c38b49 100644 --- a/test/passes/O4_disable-bulk-memory.wast +++ b/test/passes/O4_disable-bulk-memory.wast @@ -224,7 +224,7 @@ ) ) (local.set $5 - (current_memory) + (memory.size) ) (if (i32.gt_u @@ -269,14 +269,14 @@ ) (if (i32.lt_s - (grow_memory + (memory.grow (local.get $3) ) (i32.const 0) ) (if (i32.lt_s - (grow_memory + (memory.grow (local.get $2) ) (i32.const 0) diff --git a/test/passes/dce.wast b/test/passes/dce.wast index 3d12a4989..0d3b04557 100644 --- a/test/passes/dce.wast +++ b/test/passes/dce.wast @@ -481,7 +481,7 @@ (func $unreachable-brs-3 (result i32) (block $label$0 (result i32) (br $label$0 - (grow_memory + (memory.grow (br $label$0 (i32.const 18) ) diff --git a/test/passes/duplicate-function-elimination_optimize-level=1.txt b/test/passes/duplicate-function-elimination_optimize-level=1.txt index 4ed278af8..baebf9ea8 100644 --- a/test/passes/duplicate-function-elimination_optimize-level=1.txt +++ b/test/passes/duplicate-function-elimination_optimize-level=1.txt @@ -1017,7 +1017,7 @@ (memory $0 0) (func $erase (; 0 ;) (type $0) (drop - (current_memory) + (memory.size) ) ) ) @@ -1026,7 +1026,7 @@ (memory $0 0) (func $erase (; 0 ;) (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) @@ -1037,14 +1037,14 @@ (memory $0 0) (func $keep (; 0 ;) (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) ) (func $other (; 1 ;) (type $0) (drop - (grow_memory + (memory.grow (i32.const 11) ) ) @@ -1055,12 +1055,12 @@ (memory $0 0) (func $keep (; 0 ;) (type $0) (drop - (current_memory) + (memory.size) ) ) (func $other (; 1 ;) (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) diff --git a/test/passes/duplicate-function-elimination_optimize-level=1.wast b/test/passes/duplicate-function-elimination_optimize-level=1.wast index ce33b7a91..5b42a6ba5 100644 --- a/test/passes/duplicate-function-elimination_optimize-level=1.wast +++ b/test/passes/duplicate-function-elimination_optimize-level=1.wast @@ -1158,12 +1158,12 @@ (type $0 (func)) (func $erase (type $0) (drop - (current_memory) + (memory.size) ) ) (func $other (type $0) (drop - (current_memory) + (memory.size) ) ) ) @@ -1172,14 +1172,14 @@ (type $0 (func)) (func $erase (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) ) (func $other (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) @@ -1190,14 +1190,14 @@ (type $0 (func)) (func $keep (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) ) (func $other (type $0) (drop - (grow_memory + (memory.grow (i32.const 11) ) ) @@ -1208,12 +1208,12 @@ (type $0 (func)) (func $keep (type $0) (drop - (current_memory) + (memory.size) ) ) (func $other (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) diff --git a/test/passes/duplicate-function-elimination_optimize-level=2.txt b/test/passes/duplicate-function-elimination_optimize-level=2.txt index 3232613b0..0eb2d00cc 100644 --- a/test/passes/duplicate-function-elimination_optimize-level=2.txt +++ b/test/passes/duplicate-function-elimination_optimize-level=2.txt @@ -1014,7 +1014,7 @@ (memory $0 0) (func $erase (; 0 ;) (type $0) (drop - (current_memory) + (memory.size) ) ) ) @@ -1023,7 +1023,7 @@ (memory $0 0) (func $erase (; 0 ;) (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) @@ -1034,14 +1034,14 @@ (memory $0 0) (func $keep (; 0 ;) (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) ) (func $other (; 1 ;) (type $0) (drop - (grow_memory + (memory.grow (i32.const 11) ) ) @@ -1052,12 +1052,12 @@ (memory $0 0) (func $keep (; 0 ;) (type $0) (drop - (current_memory) + (memory.size) ) ) (func $other (; 1 ;) (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) diff --git a/test/passes/duplicate-function-elimination_optimize-level=2.wast b/test/passes/duplicate-function-elimination_optimize-level=2.wast index ce33b7a91..5b42a6ba5 100644 --- a/test/passes/duplicate-function-elimination_optimize-level=2.wast +++ b/test/passes/duplicate-function-elimination_optimize-level=2.wast @@ -1158,12 +1158,12 @@ (type $0 (func)) (func $erase (type $0) (drop - (current_memory) + (memory.size) ) ) (func $other (type $0) (drop - (current_memory) + (memory.size) ) ) ) @@ -1172,14 +1172,14 @@ (type $0 (func)) (func $erase (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) ) (func $other (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) @@ -1190,14 +1190,14 @@ (type $0 (func)) (func $keep (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) ) (func $other (type $0) (drop - (grow_memory + (memory.grow (i32.const 11) ) ) @@ -1208,12 +1208,12 @@ (type $0 (func)) (func $keep (type $0) (drop - (current_memory) + (memory.size) ) ) (func $other (type $0) (drop - (grow_memory + (memory.grow (i32.const 10) ) ) diff --git a/test/passes/flatten.txt b/test/passes/flatten.txt index 7b7214374..560e5762b 100644 --- a/test/passes/flatten.txt +++ b/test/passes/flatten.txt @@ -1558,7 +1558,7 @@ (i32.const 18) ) (br $label$0) - (grow_memory + (memory.grow (unreachable) ) (unreachable) diff --git a/test/passes/flatten.wast b/test/passes/flatten.wast index c655ebd17..dbfc8165c 100644 --- a/test/passes/flatten.wast +++ b/test/passes/flatten.wast @@ -704,7 +704,7 @@ (func $unreachable-brs-3 (result i32) (block $label$0 (result i32) (br $label$0 - (grow_memory + (memory.grow (br $label$0 (i32.const 18) ) diff --git a/test/passes/remove-unused-module-elements_enable-threads.txt b/test/passes/remove-unused-module-elements_enable-threads.txt index c2471e743..99820cc52 100644 --- a/test/passes/remove-unused-module-elements_enable-threads.txt +++ b/test/passes/remove-unused-module-elements_enable-threads.txt @@ -181,7 +181,7 @@ (memory $0 23 256) (export "user" (func $user)) (func $user (; 0 ;) (type $0) (result i32) - (grow_memory + (memory.grow (i32.const 0) ) ) @@ -191,7 +191,7 @@ (import "env" "memory" (memory $0 256)) (export "user" (func $user)) (func $user (; 0 ;) (type $0) (result i32) - (grow_memory + (memory.grow (i32.const 0) ) ) @@ -201,7 +201,7 @@ (memory $0 23 256) (export "user" (func $user)) (func $user (; 0 ;) (type $0) (result i32) - (current_memory) + (memory.size) ) ) (module diff --git a/test/passes/remove-unused-module-elements_enable-threads.wast b/test/passes/remove-unused-module-elements_enable-threads.wast index 4bd5ccf10..7cb4423b5 100644 --- a/test/passes/remove-unused-module-elements_enable-threads.wast +++ b/test/passes/remove-unused-module-elements_enable-threads.wast @@ -147,21 +147,21 @@ (memory $0 23 256) (export "user" $user) (func $user (result i32) - (grow_memory (i32.const 0)) + (memory.grow (i32.const 0)) ) ) (module ;; more use checks (import "env" "memory" (memory $0 256)) (export "user" $user) (func $user (result i32) - (grow_memory (i32.const 0)) + (memory.grow (i32.const 0)) ) ) (module ;; more use checks (memory $0 23 256) (export "user" $user) (func $user (result i32) - (current_memory) + (memory.size) ) ) (module diff --git a/test/passes/remove-unused-nonfunction-module-elements_enable-threads.txt b/test/passes/remove-unused-nonfunction-module-elements_enable-threads.txt index 2d9609efa..1ac7e5228 100644 --- a/test/passes/remove-unused-nonfunction-module-elements_enable-threads.txt +++ b/test/passes/remove-unused-nonfunction-module-elements_enable-threads.txt @@ -196,7 +196,7 @@ (memory $0 23 256) (export "user" (func $user)) (func $user (; 0 ;) (type $0) (result i32) - (grow_memory + (memory.grow (i32.const 0) ) ) @@ -206,7 +206,7 @@ (import "env" "memory" (memory $0 256)) (export "user" (func $user)) (func $user (; 0 ;) (type $0) (result i32) - (grow_memory + (memory.grow (i32.const 0) ) ) @@ -216,7 +216,7 @@ (memory $0 23 256) (export "user" (func $user)) (func $user (; 0 ;) (type $0) (result i32) - (current_memory) + (memory.size) ) ) (module diff --git a/test/passes/remove-unused-nonfunction-module-elements_enable-threads.wast b/test/passes/remove-unused-nonfunction-module-elements_enable-threads.wast index 4370328ce..6024e1bc1 100644 --- a/test/passes/remove-unused-nonfunction-module-elements_enable-threads.wast +++ b/test/passes/remove-unused-nonfunction-module-elements_enable-threads.wast @@ -147,21 +147,21 @@ (memory $0 23 256) (export "user" $user) (func $user (result i32) - (grow_memory (i32.const 0)) + (memory.grow (i32.const 0)) ) ) (module ;; more use checks (import "env" "memory" (memory $0 256)) (export "user" $user) (func $user (result i32) - (grow_memory (i32.const 0)) + (memory.grow (i32.const 0)) ) ) (module ;; more use checks (memory $0 23 256) (export "user" $user) (func $user (result i32) - (current_memory) + (memory.size) ) ) (module diff --git a/test/passes/simplify-locals_all-features.txt b/test/passes/simplify-locals_all-features.txt index 7a6de1873..d33dd9769 100644 --- a/test/passes/simplify-locals_all-features.txt +++ b/test/passes/simplify-locals_all-features.txt @@ -1150,7 +1150,7 @@ (local $x i32) (local.set $x (i32.load - (grow_memory + (memory.grow (i32.const 1) ) ) @@ -1214,7 +1214,7 @@ (local $x i32) (local.set $x (i32.load - (grow_memory + (memory.grow (i32.const 1) ) ) diff --git a/test/passes/simplify-locals_all-features.wast b/test/passes/simplify-locals_all-features.wast index 34a93d442..ff362db64 100644 --- a/test/passes/simplify-locals_all-features.wast +++ b/test/passes/simplify-locals_all-features.wast @@ -1105,9 +1105,9 @@ (drop (i32.load (i32.const 1028))) (local.get $x) ) - (func $nonatomic-growmem (result i32) ;; grow_memory is modeled as modifying memory + (func $nonatomic-growmem (result i32) ;; memory.grow is modeled as modifying memory (local $x i32) - (local.set $x (i32.load (grow_memory (i32.const 1)))) + (local.set $x (i32.load (memory.grow (i32.const 1)))) (drop (i32.load (i32.const 1028))) (local.get $x) ) @@ -1129,9 +1129,9 @@ (drop (i32.load (i32.const 1028))) (drop (local.get $x)) ) - (func $atomic-growmem (result i32) ;; grow_memory is modeled as modifying memory + (func $atomic-growmem (result i32) ;; memory.grow is modeled as modifying memory (local $x i32) - (local.set $x (i32.load (grow_memory (i32.const 1)))) + (local.set $x (i32.load (memory.grow (i32.const 1)))) (drop (i32.atomic.load (i32.const 1028))) (local.get $x) ) |