diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-06 15:37:24 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-06 15:37:24 -0700 |
commit | a3279d60a87539301186f0558231f726dc905cdc (patch) | |
tree | 75cebfc73fd2097bb89b2db6e4adb039a9c2f55b /test/two_sides.fromasm.imprecise | |
parent | 265225f703a6d94dd20d42c322233b52d73f22f8 (diff) | |
download | binaryen-a3279d60a87539301186f0558231f726dc905cdc.tar.gz binaryen-a3279d60a87539301186f0558231f726dc905cdc.tar.bz2 binaryen-a3279d60a87539301186f0558231f726dc905cdc.zip |
optimize if-eqz
Diffstat (limited to 'test/two_sides.fromasm.imprecise')
-rw-r--r-- | test/two_sides.fromasm.imprecise | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/test/two_sides.fromasm.imprecise b/test/two_sides.fromasm.imprecise index 6c2aa1d83..4056f9e8c 100644 --- a/test/two_sides.fromasm.imprecise +++ b/test/two_sides.fromasm.imprecise @@ -5,15 +5,13 @@ (func $_test (param $i1 i32) (param $i2 i32) (param $i3 i32) (param $i4 i32) (param $i5 i32) (result i32) (local $d6 f64) (if - (i32.eqz - (get_local $i5) - ) + (get_local $i5) (block (set_local $d6 (f64.convert_s/i32 (i32.mul - (get_local $i4) - (get_local $i3) + (get_local $i2) + (get_local $i1) ) ) ) @@ -26,10 +24,10 @@ (get_local $d6) ) (f64.add + (get_local $d6) (f64.convert_s/i32 (get_local $i4) ) - (get_local $d6) ) ) ) @@ -46,8 +44,8 @@ (set_local $d6 (f64.convert_s/i32 (i32.mul - (get_local $i2) - (get_local $i1) + (get_local $i4) + (get_local $i3) ) ) ) @@ -60,10 +58,10 @@ (get_local $d6) ) (f64.add - (get_local $d6) (f64.convert_s/i32 (get_local $i4) ) + (get_local $d6) ) ) ) |