diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-05-22 21:23:18 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-05-22 21:23:18 -0700 |
commit | f5aad6d1614ca32e7ade296dc9bce8c7c74d3f63 (patch) | |
tree | 140fde94e420070c2461fa1541f0ab9b53af8077 /test/two_sides.fromasm.imprecise | |
parent | 5d16d4b3b344aa1dbe07deff0d282adea6f8c369 (diff) | |
download | binaryen-f5aad6d1614ca32e7ade296dc9bce8c7c74d3f63.tar.gz binaryen-f5aad6d1614ca32e7ade296dc9bce8c7c74d3f63.tar.bz2 binaryen-f5aad6d1614ca32e7ade296dc9bce8c7c74d3f63.zip |
dead code elimination pass (#536)
Diffstat (limited to 'test/two_sides.fromasm.imprecise')
-rw-r--r-- | test/two_sides.fromasm.imprecise | 65 |
1 files changed, 30 insertions, 35 deletions
diff --git a/test/two_sides.fromasm.imprecise b/test/two_sides.fromasm.imprecise index bc6b7217d..ad7e9e61a 100644 --- a/test/two_sides.fromasm.imprecise +++ b/test/two_sides.fromasm.imprecise @@ -6,57 +6,52 @@ (local $5 f64) (if (get_local $4) - (return - (i32.trunc_s/f64 - (f64.mul - (f64.add + (i32.trunc_s/f64 + (f64.mul + (f64.add + (f64.convert_s/i32 + (get_local $2) + ) + (set_local $5 (f64.convert_s/i32 - (get_local $2) - ) - (set_local $5 - (f64.convert_s/i32 - (i32.mul - (get_local $1) - (get_local $0) - ) + (i32.mul + (get_local $1) + (get_local $0) ) ) ) - (f64.add - (get_local $5) - (f64.convert_s/i32 - (get_local $3) - ) + ) + (f64.add + (get_local $5) + (f64.convert_s/i32 + (get_local $3) ) ) ) ) - (return - (i32.trunc_s/f64 - (f64.mul - (f64.add + (i32.trunc_s/f64 + (f64.mul + (f64.add + (f64.convert_s/i32 + (get_local $2) + ) + (set_local $5 (f64.convert_s/i32 - (get_local $2) - ) - (set_local $5 - (f64.convert_s/i32 - (i32.mul - (get_local $3) - (get_local $2) - ) + (i32.mul + (get_local $3) + (get_local $2) ) ) ) - (f64.add - (f64.convert_s/i32 - (get_local $3) - ) - (get_local $5) + ) + (f64.add + (f64.convert_s/i32 + (get_local $3) ) + (get_local $5) ) ) ) ) - (i32.const 0) ) ) |