diff options
Diffstat (limited to 'test/example')
-rw-r--r-- | test/example/c-api-hello-world.txt | 2 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 86 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt.txt | 34 | ||||
-rw-r--r-- | test/example/c-api-unused-mem.txt | 8 | ||||
-rw-r--r-- | test/example/relooper-fuzz.txt | 8 | ||||
-rw-r--r-- | test/example/relooper-fuzz1.txt | 8 | ||||
-rw-r--r-- | test/example/relooper-fuzz2.txt | 4 | ||||
-rw-r--r-- | test/example/relooper-merge1.txt | 4 | ||||
-rw-r--r-- | test/example/relooper-merge2.txt | 4 | ||||
-rw-r--r-- | test/example/relooper-merge3.txt | 4 | ||||
-rw-r--r-- | test/example/relooper-merge4.txt | 4 | ||||
-rw-r--r-- | test/example/relooper-merge5.txt | 4 | ||||
-rw-r--r-- | test/example/relooper-merge6.txt | 4 |
13 files changed, 87 insertions, 87 deletions
diff --git a/test/example/c-api-hello-world.txt b/test/example/c-api-hello-world.txt index 21a7c2a16..92737a9b0 100644 --- a/test/example/c-api-hello-world.txt +++ b/test/example/c-api-hello-world.txt @@ -1,6 +1,6 @@ (module (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) - (func $adder (; 0 ;) (param $0 i32) (param $1 i32) (result i32) + (func $adder (param $0 i32) (param $1 i32) (result i32) (i32.add (local.get $0) (local.get $1) diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index 989fe3dbb..67651cac4 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -1858,7 +1858,7 @@ int main() { (export "kitchen_sinker" (func "$kitchen()sinker")) (export "mem" (memory $0)) (start $starter) - (func "$kitchen()sinker" (; 1 ;) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32) + (func "$kitchen()sinker" (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32) (local $4 i32) (local $5 exnref) (block $the-body (result i32) @@ -3604,7 +3604,7 @@ int main() { (i32.const 42) ) ) - (func $starter (; 2 ;) + (func $starter (nop) ) ) @@ -4064,13 +4064,13 @@ raw: (type $i32_=>_none (func (param i32))) (type $none_=>_i32 (func (result i32))) (import "module" "check" (func $check (param i32))) - (func $just-one-block (; 1 ;) + (func $just-one-block (local $0 i32) (call $check (i32.const 1337) ) ) - (func $two-blocks (; 2 ;) + (func $two-blocks (local $0 i32) (block (call $check @@ -4081,7 +4081,7 @@ raw: ) ) ) - (func $two-blocks-plus-code (; 3 ;) + (func $two-blocks-plus-code (local $0 i32) (block (block @@ -4097,7 +4097,7 @@ raw: ) ) ) - (func $loop (; 4 ;) + (func $loop (local $0 i32) (loop $shape$0$continue (block @@ -4113,7 +4113,7 @@ raw: ) ) ) - (func $loop-plus-code (; 5 ;) + (func $loop-plus-code (local $0 i32) (loop $shape$0$continue (block @@ -4137,7 +4137,7 @@ raw: ) ) ) - (func $split (; 6 ;) + (func $split (local $0 i32) (call $check (i32.const 0) @@ -4156,7 +4156,7 @@ raw: ) ) ) - (func $split-plus-code (; 7 ;) + (func $split-plus-code (local $0 i32) (call $check (i32.const 0) @@ -4185,7 +4185,7 @@ raw: ) ) ) - (func $if (; 8 ;) + (func $if (local $0 i32) (block $block$3$break (call $check @@ -4210,7 +4210,7 @@ raw: ) ) ) - (func $if-plus-code (; 9 ;) + (func $if-plus-code (local $0 i32) (block $block$3$break (call $check @@ -4248,7 +4248,7 @@ raw: ) ) ) - (func $if-else (; 10 ;) + (func $if-else (local $0 i32) (block $block$4$break (call $check @@ -4280,7 +4280,7 @@ raw: ) ) ) - (func $loop-tail (; 11 ;) + (func $loop-tail (local $0 i32) (block $block$3$break (loop $shape$0$continue @@ -4305,7 +4305,7 @@ raw: ) ) ) - (func $nontrivial-loop-plus-phi-to-head (; 12 ;) + (func $nontrivial-loop-plus-phi-to-head (local $0 i32) (block $block$2$break (call $check @@ -4392,7 +4392,7 @@ raw: ) ) ) - (func $switch (; 13 ;) + (func $switch (local $0 i32) (call $check (i32.const 0) @@ -4436,7 +4436,7 @@ raw: (br $switch$1$leave) ) ) - (func $duffs-device (; 14 ;) + (func $duffs-device (local $0 i32) (local $1 i32) (local $2 i64) @@ -4511,7 +4511,7 @@ raw: ) ) ) - (func $return (; 15 ;) (result i32) + (func $return (result i32) (local $0 i32) (block (call $check @@ -4608,7 +4608,7 @@ BinaryenFeatureAll: 1023 (export "kitchen_sinker" (func "$kitchen()sinker")) (export "mem" (memory $0)) (start $starter) - (func "$kitchen()sinker" (; 1 ;) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32) + (func "$kitchen()sinker" (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32) (local $4 i32) (local $5 exnref) (block $the-body (result i32) @@ -6354,14 +6354,14 @@ BinaryenFeatureAll: 1023 (i32.const 42) ) ) - (func $starter (; 2 ;) + (func $starter (nop) ) ) (module (type $none_=>_i32 (func (result i32))) (type $none_=>_i64 (func (result i64))) - (func $unreachable-fn (; 0 ;) (result i32) + (func $unreachable-fn (result i32) (call_indirect (type $none_=>_i64) (unreachable) ) @@ -6373,13 +6373,13 @@ raw: (type $i32_=>_none (func (param i32))) (type $none_=>_i32 (func (result i32))) (import "module" "check" (func $check (param i32))) - (func $just-one-block (; 1 ;) + (func $just-one-block (local $0 i32) (call $check (i32.const 1337) ) ) - (func $two-blocks (; 2 ;) + (func $two-blocks (local $0 i32) (block (call $check @@ -6390,7 +6390,7 @@ raw: ) ) ) - (func $two-blocks-plus-code (; 3 ;) + (func $two-blocks-plus-code (local $0 i32) (block (block @@ -6406,7 +6406,7 @@ raw: ) ) ) - (func $loop (; 4 ;) + (func $loop (local $0 i32) (loop $shape$0$continue (block @@ -6422,7 +6422,7 @@ raw: ) ) ) - (func $loop-plus-code (; 5 ;) + (func $loop-plus-code (local $0 i32) (loop $shape$0$continue (block @@ -6446,7 +6446,7 @@ raw: ) ) ) - (func $split (; 6 ;) + (func $split (local $0 i32) (call $check (i32.const 0) @@ -6465,7 +6465,7 @@ raw: ) ) ) - (func $split-plus-code (; 7 ;) + (func $split-plus-code (local $0 i32) (call $check (i32.const 0) @@ -6494,7 +6494,7 @@ raw: ) ) ) - (func $if (; 8 ;) + (func $if (local $0 i32) (block $block$3$break (call $check @@ -6519,7 +6519,7 @@ raw: ) ) ) - (func $if-plus-code (; 9 ;) + (func $if-plus-code (local $0 i32) (block $block$3$break (call $check @@ -6557,7 +6557,7 @@ raw: ) ) ) - (func $if-else (; 10 ;) + (func $if-else (local $0 i32) (block $block$4$break (call $check @@ -6589,7 +6589,7 @@ raw: ) ) ) - (func $loop-tail (; 11 ;) + (func $loop-tail (local $0 i32) (block $block$3$break (loop $shape$0$continue @@ -6614,7 +6614,7 @@ raw: ) ) ) - (func $nontrivial-loop-plus-phi-to-head (; 12 ;) + (func $nontrivial-loop-plus-phi-to-head (local $0 i32) (block $block$2$break (call $check @@ -6701,7 +6701,7 @@ raw: ) ) ) - (func $switch (; 13 ;) + (func $switch (local $0 i32) (call $check (i32.const 0) @@ -6745,7 +6745,7 @@ raw: (br $switch$1$leave) ) ) - (func $duffs-device (; 14 ;) + (func $duffs-device (local $0 i32) (local $1 i32) (local $2 i64) @@ -6820,7 +6820,7 @@ raw: ) ) ) - (func $return (; 15 ;) (result i32) + (func $return (result i32) (local $0 i32) (block (call $check @@ -6838,7 +6838,7 @@ optimized: module loaded from binary form: (module (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) - (func $adder (; 0 ;) (param $0 i32) (param $1 i32) (result i32) + (func $adder (param $0 i32) (param $1 i32) (result i32) (i32.add (local.get $0) (local.get $1) @@ -6848,7 +6848,7 @@ module loaded from binary form: module s-expr printed (in memory): (module (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) - (func $adder (; 0 ;) (param $0 i32) (param $1 i32) (result i32) + (func $adder (param $0 i32) (param $1 i32) (result i32) (i32.add (local.get $0) (local.get $1) @@ -6859,7 +6859,7 @@ module s-expr printed (in memory): module s-expr printed (in memory, caller-owned): (module (type $i32_i32_=>_i32 (func (param i32 i32) (result i32))) - (func $adder (; 0 ;) (param $0 i32) (param $1 i32) (result i32) + (func $adder (param $0 i32) (param $1 i32) (result i32) (i32.add (local.get $0) (local.get $1) @@ -6872,7 +6872,7 @@ module s-expr printed (in memory, caller-owned): (type $i32_=>_none (func (param i32))) (import "spectest" "print" (func $print-i32 (param i32))) (start $starter) - (func $starter (; 1 ;) + (func $starter (call $print-i32 (i32.const 1234) ) @@ -6881,7 +6881,7 @@ module s-expr printed (in memory, caller-owned): 1234 : i32 (module (type $none_=>_none (func)) - (func $func (; 0 ;) + (func $func (local $0 i32) (local.set $0 (i64.const 1234) @@ -6901,13 +6901,13 @@ validation: 0 (export "export1" (func $fn1)) (export "export2" (func $fn2)) (export "mem" (memory $0)) - (func $fn0 (; 0 ;) + (func $fn0 (nop) ) - (func $fn1 (; 1 ;) + (func $fn1 (nop) ) - (func $fn2 (; 2 ;) + (func $fn2 (nop) ) ) diff --git a/test/example/c-api-kitchen-sink.txt.txt b/test/example/c-api-kitchen-sink.txt.txt index 574473790..44ac3320a 100644 --- a/test/example/c-api-kitchen-sink.txt.txt +++ b/test/example/c-api-kitchen-sink.txt.txt @@ -18,7 +18,7 @@ (export "kitchen_sinker" (func "$kitchen()sinker")) (export "mem" (memory $0)) (start $starter) - (func "$kitchen()sinker" (; 1 ;) (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32) + (func "$kitchen()sinker" (param $0 i32) (param $1 i64) (param $2 f32) (param $3 f64) (result i32) (local $4 i32) (local $5 exnref) (block $the-body (result i32) @@ -1764,7 +1764,7 @@ (i32.const 42) ) ) - (func $starter (; 2 ;) + (func $starter (nop) ) ) @@ -1773,13 +1773,13 @@ (type $i32_=>_none (func (param i32))) (type $none_=>_i32 (func (result i32))) (import "module" "check" (func $check (param i32))) - (func $just-one-block (; 1 ;) + (func $just-one-block (local $0 i32) (call $check (i32.const 1337) ) ) - (func $two-blocks (; 2 ;) + (func $two-blocks (local $0 i32) (block (call $check @@ -1790,7 +1790,7 @@ ) ) ) - (func $two-blocks-plus-code (; 3 ;) + (func $two-blocks-plus-code (local $0 i32) (block (block @@ -1806,7 +1806,7 @@ ) ) ) - (func $loop (; 4 ;) + (func $loop (local $0 i32) (loop $shape$0$continue (block @@ -1822,7 +1822,7 @@ ) ) ) - (func $loop-plus-code (; 5 ;) + (func $loop-plus-code (local $0 i32) (loop $shape$0$continue (block @@ -1846,7 +1846,7 @@ ) ) ) - (func $split (; 6 ;) + (func $split (local $0 i32) (call $check (i32.const 0) @@ -1865,7 +1865,7 @@ ) ) ) - (func $split-plus-code (; 7 ;) + (func $split-plus-code (local $0 i32) (call $check (i32.const 0) @@ -1894,7 +1894,7 @@ ) ) ) - (func $if (; 8 ;) + (func $if (local $0 i32) (block $block$3$break (call $check @@ -1919,7 +1919,7 @@ ) ) ) - (func $if-plus-code (; 9 ;) + (func $if-plus-code (local $0 i32) (block $block$3$break (call $check @@ -1957,7 +1957,7 @@ ) ) ) - (func $if-else (; 10 ;) + (func $if-else (local $0 i32) (block $block$4$break (call $check @@ -1989,7 +1989,7 @@ ) ) ) - (func $loop-tail (; 11 ;) + (func $loop-tail (local $0 i32) (block $block$3$break (loop $shape$0$continue @@ -2014,7 +2014,7 @@ ) ) ) - (func $nontrivial-loop-plus-phi-to-head (; 12 ;) + (func $nontrivial-loop-plus-phi-to-head (local $0 i32) (block $block$2$break (call $check @@ -2101,7 +2101,7 @@ ) ) ) - (func $switch (; 13 ;) + (func $switch (local $0 i32) (call $check (i32.const 0) @@ -2145,7 +2145,7 @@ (br $switch$1$leave) ) ) - (func $duffs-device (; 14 ;) + (func $duffs-device (local $0 i32) (local $1 i32) (local $2 i64) @@ -2220,7 +2220,7 @@ ) ) ) - (func $return (; 15 ;) (result i32) + (func $return (result i32) (local $0 i32) (block (call $check diff --git a/test/example/c-api-unused-mem.txt b/test/example/c-api-unused-mem.txt index 6a4188994..97bb51fd3 100644 --- a/test/example/c-api-unused-mem.txt +++ b/test/example/c-api-unused-mem.txt @@ -4,7 +4,7 @@ (export "memory" (memory $0)) (export "main" (func $main)) (export "rust_entry" (func $__wasm_start)) - (func $main (; 0 ;) + (func $main (local $0 i32) (local $1 i32) (local $2 i64) @@ -28,7 +28,7 @@ ) ) ) - (func $__wasm_start (; 1 ;) + (func $__wasm_start (i32.store (i32.const 0) (i32.const 65535) @@ -43,7 +43,7 @@ (export "memory" (memory $0)) (export "main" (func $main)) (export "rust_entry" (func $__wasm_start)) - (func $main (; 0 ;) + (func $main (local $0 i32) (local $1 i32) (local $2 i64) @@ -68,7 +68,7 @@ (unreachable) ) ) - (func $__wasm_start (; 1 ;) + (func $__wasm_start (i32.store (i32.const 0) (i32.const 65535) diff --git a/test/example/relooper-fuzz.txt b/test/example/relooper-fuzz.txt index 950ba0d0f..676edb69f 100644 --- a/test/example/relooper-fuzz.txt +++ b/test/example/relooper-fuzz.txt @@ -6,7 +6,7 @@ (memory $0 1 1) (export "mem" (memory $0)) (start $main) - (func $check (; 1 ;) (result i32) + (func $check (result i32) (if (i32.eq (i32.load @@ -41,7 +41,7 @@ ) ) ) - (func $main (; 2 ;) + (func $main (local $0 i32) (local $1 i32) (i32.store @@ -299,7 +299,7 @@ (memory $0 1 1) (export "mem" (memory $0)) (start $main) - (func $check (; 1 ;) (; has Stack IR ;) (result i32) + (func $check (; has Stack IR ;) (result i32) (if (i32.eq (i32.load @@ -334,7 +334,7 @@ ) ) ) - (func $main (; 2 ;) (; has Stack IR ;) + (func $main (; has Stack IR ;) (local $0 i32) (local $1 i32) (i32.store diff --git a/test/example/relooper-fuzz1.txt b/test/example/relooper-fuzz1.txt index 213d46230..18c1a87fd 100644 --- a/test/example/relooper-fuzz1.txt +++ b/test/example/relooper-fuzz1.txt @@ -6,7 +6,7 @@ (memory $0 1 1) (export "mem" (memory $0)) (start $main) - (func $check (; 1 ;) (result i32) + (func $check (result i32) (if (i32.eq (i32.load @@ -41,7 +41,7 @@ ) ) ) - (func $main (; 2 ;) + (func $main (local $0 i32) (local $1 i32) (i32.store @@ -275,7 +275,7 @@ (memory $0 1 1) (export "mem" (memory $0)) (start $main) - (func $check (; 1 ;) (; has Stack IR ;) (result i32) + (func $check (; has Stack IR ;) (result i32) (if (i32.eq (i32.load @@ -310,7 +310,7 @@ ) ) ) - (func $main (; 2 ;) (; has Stack IR ;) + (func $main (; has Stack IR ;) (local $0 i32) (i32.store (i32.const 8) diff --git a/test/example/relooper-fuzz2.txt b/test/example/relooper-fuzz2.txt index 17e9461e7..2c6ee7c13 100644 --- a/test/example/relooper-fuzz2.txt +++ b/test/example/relooper-fuzz2.txt @@ -6,7 +6,7 @@ (memory $0 1 1) (export "mem" (memory $0)) (start $main) - (func $check (; 1 ;) (result i32) + (func $check (result i32) (if (i32.ge_u (i32.load @@ -41,7 +41,7 @@ ) ) ) - (func $main (; 2 ;) + (func $main (local $0 i32) (local $1 i32) (i32.store diff --git a/test/example/relooper-merge1.txt b/test/example/relooper-merge1.txt index 913570949..cfffd97f3 100644 --- a/test/example/relooper-merge1.txt +++ b/test/example/relooper-merge1.txt @@ -6,7 +6,7 @@ (memory $0 1 1) (export "mem" (memory $0)) (start $main) - (func $check (; 1 ;) (result i32) + (func $check (result i32) (if (i32.ge_u (i32.load @@ -41,7 +41,7 @@ ) ) ) - (func $main (; 2 ;) + (func $main (local $0 i32) (local $1 i32) (block diff --git a/test/example/relooper-merge2.txt b/test/example/relooper-merge2.txt index a1f12b61a..d91997994 100644 --- a/test/example/relooper-merge2.txt +++ b/test/example/relooper-merge2.txt @@ -6,7 +6,7 @@ (memory $0 1 1) (export "mem" (memory $0)) (start $main) - (func $check (; 1 ;) (result i32) + (func $check (result i32) (if (i32.ge_u (i32.load @@ -41,7 +41,7 @@ ) ) ) - (func $main (; 2 ;) + (func $main (local $0 i32) (local $1 i32) (block diff --git a/test/example/relooper-merge3.txt b/test/example/relooper-merge3.txt index 8975a9967..2705497c2 100644 --- a/test/example/relooper-merge3.txt +++ b/test/example/relooper-merge3.txt @@ -6,7 +6,7 @@ (memory $0 1 1) (export "mem" (memory $0)) (start $main) - (func $check (; 1 ;) (result i32) + (func $check (result i32) (if (i32.ge_u (i32.load @@ -41,7 +41,7 @@ ) ) ) - (func $main (; 2 ;) + (func $main (local $0 i32) (local $1 i32) (block diff --git a/test/example/relooper-merge4.txt b/test/example/relooper-merge4.txt index b6d560555..8097b07e8 100644 --- a/test/example/relooper-merge4.txt +++ b/test/example/relooper-merge4.txt @@ -6,7 +6,7 @@ (memory $0 1 1) (export "mem" (memory $0)) (start $main) - (func $check (; 1 ;) (result i32) + (func $check (result i32) (if (i32.ge_u (i32.load @@ -41,7 +41,7 @@ ) ) ) - (func $main (; 2 ;) + (func $main (local $0 i32) (local $1 i32) (block diff --git a/test/example/relooper-merge5.txt b/test/example/relooper-merge5.txt index 9b5a752c8..5dddf936a 100644 --- a/test/example/relooper-merge5.txt +++ b/test/example/relooper-merge5.txt @@ -6,7 +6,7 @@ (memory $0 1 1) (export "mem" (memory $0)) (start $main) - (func $check (; 1 ;) (result i32) + (func $check (result i32) (if (i32.ge_u (i32.load @@ -41,7 +41,7 @@ ) ) ) - (func $main (; 2 ;) + (func $main (local $0 i32) (local $1 i32) (block diff --git a/test/example/relooper-merge6.txt b/test/example/relooper-merge6.txt index d34029759..27dc0d155 100644 --- a/test/example/relooper-merge6.txt +++ b/test/example/relooper-merge6.txt @@ -6,7 +6,7 @@ (memory $0 1 1) (export "mem" (memory $0)) (start $main) - (func $check (; 1 ;) (result i32) + (func $check (result i32) (if (i32.ge_u (i32.load @@ -41,7 +41,7 @@ ) ) ) - (func $main (; 2 ;) + (func $main (local $0 i32) (local $1 i32) (block |