diff options
Diffstat (limited to 'test/llvm_autogenerated/phi.wast')
-rw-r--r-- | test/llvm_autogenerated/phi.wast | 96 |
1 files changed, 44 insertions, 52 deletions
diff --git a/test/llvm_autogenerated/phi.wast b/test/llvm_autogenerated/phi.wast index c1d4d5c2c..d4c940fa7 100644 --- a/test/llvm_autogenerated/phi.wast +++ b/test/llvm_autogenerated/phi.wast @@ -3,74 +3,66 @@ (export "test0" $test0) (export "test1" $test1) (func $test0 (param $$0 i32) (result i32) - (block $fake_return_waka123 - (block - (block $label$0 - (br_if - (i32.gt_s - (get_local $$0) - (i32.const -1) - ) - $label$0 - ) - (set_local $$0 - (i32.div_s - (get_local $$0) - (i32.const 3) - ) - ) + (block $label$0 + (br_if + (i32.gt_s + (get_local $$0) + (i32.const -1) ) - (br $fake_return_waka123 + $label$0 + ) + (set_local $$0 + (i32.div_s (get_local $$0) + (i32.const 3) ) ) ) + (return + (get_local $$0) + ) ) (func $test1 (param $$0 i32) (result i32) (local $$1 i32) (local $$2 i32) (local $$3 i32) (local $$4 i32) - (block $fake_return_waka123 - (block - (set_local $$2 - (i32.const 0) - ) - (set_local $$3 + (set_local $$2 + (i32.const 0) + ) + (set_local $$3 + (i32.const 1) + ) + (set_local $$4 + (i32.const 0) + ) + (loop $label$1 $label$0 + (set_local $$1 + (get_local $$3) + ) + (set_local $$3 + (get_local $$2) + ) + (set_local $$4 + (i32.add + (get_local $$4) (i32.const 1) ) - (set_local $$4 - (i32.const 0) - ) - (loop $label$1 $label$0 - (set_local $$1 - (get_local $$3) - ) - (set_local $$3 - (get_local $$2) - ) - (set_local $$4 - (i32.add - (get_local $$4) - (i32.const 1) - ) - ) - (set_local $$2 - (get_local $$1) - ) - (br_if - (i32.lt_s - (get_local $$4) - (get_local $$0) - ) - $label$0 - ) - ) - (br $fake_return_waka123 - (get_local $$3) + ) + (set_local $$2 + (get_local $$1) + ) + (br_if + (i32.lt_s + (get_local $$4) + (get_local $$0) ) + $label$0 ) ) + (return + (get_local $$3) + ) ) ) ;; METADATA: { "asmConsts": {},"staticBump": 4 } |