diff options
Diffstat (limited to 'test/dot_s/basics.wast')
-rw-r--r-- | test/dot_s/basics.wast | 126 |
1 files changed, 61 insertions, 65 deletions
diff --git a/test/dot_s/basics.wast b/test/dot_s/basics.wast index fea2948b3..b21d1a2e7 100644 --- a/test/dot_s/basics.wast +++ b/test/dot_s/basics.wast @@ -9,91 +9,87 @@ (export "main" $main) (table $main) (func $main (param $$0 i32) (param $$1 i32) (result i32) - (block $fake_return_waka123 - (block - (call_import $puts - (i32.const 16) - ) - (block $label$0 - (block $label$1 - (br_if - (i32.ne - (i32.sub + (call_import $puts + (i32.const 16) + ) + (block $label$0 + (block $label$1 + (br_if + (i32.ne + (i32.sub + (get_local $$0) + (i32.and + (i32.add (get_local $$0) - (i32.and - (i32.add + (i32.shr_u + (i32.shr_s (get_local $$0) - (i32.shr_u - (i32.shr_s - (get_local $$0) - (i32.const 31) - ) - (i32.const 30) - ) + (i32.const 31) ) - (i32.const -4) + (i32.const 30) ) ) - (i32.const 1) + (i32.const -4) ) - $label$1 ) - (loop $label$3 $label$2 - (set_local $$0 - (i32.add - (i32.gt_s - (get_local $$0) - (i32.const 10) - ) - (get_local $$0) - ) + (i32.const 1) + ) + $label$1 + ) + (loop $label$3 $label$2 + (set_local $$0 + (i32.add + (i32.gt_s + (get_local $$0) + (i32.const 10) ) - (block $label$4 - (br_if - (i32.ne - (i32.rem_s - (get_local $$0) - (i32.const 5) - ) - (i32.const 3) - ) - $label$4 - ) - (set_local $$0 - (i32.add - (i32.rem_s - (get_local $$0) - (i32.const 111) - ) - (get_local $$0) - ) + (get_local $$0) + ) + ) + (block $label$4 + (br_if + (i32.ne + (i32.rem_s + (get_local $$0) + (i32.const 5) ) + (i32.const 3) ) - (br_if - (i32.eq - (i32.rem_s - (get_local $$0) - (i32.const 7) - ) - (i32.const 0) + $label$4 + ) + (set_local $$0 + (i32.add + (i32.rem_s + (get_local $$0) + (i32.const 111) ) - $label$1 + (get_local $$0) ) - (br $label$2) ) ) - (set_local $$0 - (i32.add - (get_local $$0) - (i32.const -12) + (br_if + (i32.eq + (i32.rem_s + (get_local $$0) + (i32.const 7) + ) + (i32.const 0) ) + $label$1 ) - (i32.const 0) + (br $label$2) ) - (br $fake_return_waka123 + ) + (set_local $$0 + (i32.add (get_local $$0) + (i32.const -12) ) ) + (i32.const 0) + ) + (return + (get_local $$0) ) ) ) |