diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/two_sides.fromasm | 111 |
1 files changed, 53 insertions, 58 deletions
diff --git a/test/two_sides.fromasm b/test/two_sides.fromasm index 9bf643e2a..aff27f665 100644 --- a/test/two_sides.fromasm +++ b/test/two_sides.fromasm @@ -4,80 +4,75 @@ (export "_test" $_test) (func $_test (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32) (local $d6 f64) - (block $topmost - (br $topmost - (if_else - (i32.eq - (get_local $i5) - (i32.const 0) + (if_else + (i32.eq + (get_local $i5) + (i32.const 0) + ) + (block + (set_local $d6 + (f64.convert_s/i32 + (i32.mul + (get_local $i4) + (get_local $i3) + ) ) - (block - (set_local $d6 + ) + (set_local $d6 + (f64.mul + (f64.add (f64.convert_s/i32 - (i32.mul - (get_local $i4) - (get_local $i3) - ) + (get_local $i3) ) + (get_local $d6) ) - (set_local $d6 - (f64.mul - (f64.add - (f64.convert_s/i32 - (get_local $i3) - ) - (get_local $d6) - ) - (f64.add - (f64.convert_s/i32 - (get_local $i4) - ) - (get_local $d6) - ) + (f64.add + (f64.convert_s/i32 + (get_local $i4) ) + (get_local $d6) ) - (set_local $i5 - (call_import $f64-to-int - (get_local $d6) - ) + ) + ) + (set_local $i5 + (call_import $f64-to-int + (get_local $d6) + ) + ) + (get_local $i5) + ) + (block + (set_local $d6 + (f64.convert_s/i32 + (i32.mul + (get_local $i2) + (get_local $i1) ) - (get_local $i5) ) - (block - (set_local $d6 + ) + (set_local $d6 + (f64.mul + (f64.add (f64.convert_s/i32 - (i32.mul - (get_local $i2) - (get_local $i1) - ) - ) - ) - (set_local $d6 - (f64.mul - (f64.add - (f64.convert_s/i32 - (get_local $i3) - ) - (get_local $d6) - ) - (f64.add - (get_local $d6) - (f64.convert_s/i32 - (get_local $i4) - ) - ) + (get_local $i3) ) + (get_local $d6) ) - (set_local $i5 - (call_import $f64-to-int - (get_local $d6) + (f64.add + (get_local $d6) + (f64.convert_s/i32 + (get_local $i4) ) ) - (get_local $i5) ) ) + (set_local $i5 + (call_import $f64-to-int + (get_local $d6) + ) + ) + (get_local $i5) ) - (i32.const 0) ) ) ) |