diff options
Diffstat (limited to 'test/passes/asyncify_pass-arg=asyncify-ignore-indirect.txt')
-rw-r--r-- | test/passes/asyncify_pass-arg=asyncify-ignore-indirect.txt | 181 |
1 files changed, 70 insertions, 111 deletions
diff --git a/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.txt b/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.txt index b793820ac..7b75800bd 100644 --- a/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.txt +++ b/test/passes/asyncify_pass-arg=asyncify-ignore-indirect.txt @@ -52,38 +52,29 @@ ) ) ) - (block - (if - (if (result i32) + (if + (if (result i32) + (i32.eq + (global.get $__asyncify_state) + (i32.const 0) + ) + (i32.const 1) + (i32.eq + (local.get $1) + (i32.const 0) + ) + ) + (block + (call $import) + (if (i32.eq (global.get $__asyncify_state) - (i32.const 0) + (i32.const 1) ) - (i32.const 1) - (i32.eq - (local.get $1) + (br $__asyncify_unwind (i32.const 0) ) ) - (block - (call $import) - (if - (i32.eq - (global.get $__asyncify_state) - (i32.const 1) - ) - (br $__asyncify_unwind - (i32.const 0) - ) - ) - ) - ) - (if - (i32.eq - (global.get $__asyncify_state) - (i32.const 0) - ) - (nop) ) ) ) @@ -208,14 +199,10 @@ (global.get $__asyncify_state) (i32.const 0) ) - (block - (drop - (local.get $0) - ) - (nop) + (drop + (local.get $0) ) ) - (nop) ) ) (return) @@ -333,127 +320,100 @@ ) ) (block + (if + (i32.eq + (global.get $__asyncify_state) + (i32.const 0) + ) + (local.set $1 + (local.get $x) + ) + ) (block (if (i32.eq (global.get $__asyncify_state) (i32.const 0) ) - (local.set $1 - (local.get $x) + (local.set $2 + (local.get $1) ) ) - (block - (if + (if + (i32.or + (local.get $2) (i32.eq (global.get $__asyncify_state) - (i32.const 0) - ) - (local.set $2 - (local.get $1) + (i32.const 2) ) ) (if - (i32.or - (local.get $2) + (if (result i32) (i32.eq (global.get $__asyncify_state) - (i32.const 2) + (i32.const 0) + ) + (i32.const 1) + (i32.eq + (local.get $4) + (i32.const 0) ) ) (block - (if - (if (result i32) - (i32.eq - (global.get $__asyncify_state) - (i32.const 0) - ) - (i32.const 1) - (i32.eq - (local.get $4) - (i32.const 0) - ) - ) - (block - (call $import3 - (i32.const 1) - ) - (if - (i32.eq - (global.get $__asyncify_state) - (i32.const 1) - ) - (br $__asyncify_unwind - (i32.const 0) - ) - ) - ) + (call $import3 + (i32.const 1) ) (if (i32.eq (global.get $__asyncify_state) + (i32.const 1) + ) + (br $__asyncify_unwind (i32.const 0) ) - (nop) ) ) ) + ) + (if + (i32.or + (i32.eqz + (local.get $2) + ) + (i32.eq + (global.get $__asyncify_state) + (i32.const 2) + ) + ) (if - (i32.or - (i32.eqz - (local.get $2) - ) + (if (result i32) (i32.eq (global.get $__asyncify_state) - (i32.const 2) + (i32.const 0) + ) + (i32.const 1) + (i32.eq + (local.get $4) + (i32.const 1) ) ) (block - (if - (if (result i32) - (i32.eq - (global.get $__asyncify_state) - (i32.const 0) - ) - (i32.const 1) - (i32.eq - (local.get $4) - (i32.const 1) - ) - ) - (block - (call $import3 - (i32.const 2) - ) - (if - (i32.eq - (global.get $__asyncify_state) - (i32.const 1) - ) - (br $__asyncify_unwind - (i32.const 1) - ) - ) - ) + (call $import3 + (i32.const 2) ) (if (i32.eq (global.get $__asyncify_state) - (i32.const 0) + (i32.const 1) + ) + (br $__asyncify_unwind + (i32.const 1) ) - (nop) ) ) ) ) ) - (if - (i32.eq - (global.get $__asyncify_state) - (i32.const 0) - ) - (nop) - ) ) ) (return) @@ -514,7 +474,6 @@ (call_indirect (type $none_=>_none) (local.get $1) ) - (nop) ) (func $asyncify_start_unwind (; 7 ;) (param $0 i32) (global.set $__asyncify_state |