summaryrefslogtreecommitdiff
path: root/test/emcc_hello_world.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-07-15 13:19:23 -0700
committerGitHub <noreply@github.com>2016-07-15 13:19:23 -0700
commit184cc11cee2a65d30c7696eb3284e132099e4acb (patch)
treece8feb8cbcdc7b732aa7148bff92a5f5e77cf6c7 /test/emcc_hello_world.fromasm.imprecise
parent8364330269151591f435ea0328aeee1c34decf79 (diff)
downloadbinaryen-184cc11cee2a65d30c7696eb3284e132099e4acb.tar.gz
binaryen-184cc11cee2a65d30c7696eb3284e132099e4acb.tar.bz2
binaryen-184cc11cee2a65d30c7696eb3284e132099e4acb.zip
eq/ne are ok to optimize even if they are nans (#640)
Diffstat (limited to 'test/emcc_hello_world.fromasm.imprecise')
-rw-r--r--test/emcc_hello_world.fromasm.imprecise30
1 files changed, 13 insertions, 17 deletions
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise
index 08f647aed..cdfd59b07 100644
--- a/test/emcc_hello_world.fromasm.imprecise
+++ b/test/emcc_hello_world.fromasm.imprecise
@@ -5829,21 +5829,19 @@
)
)
(if
- (i32.eqz
- (f64.ne
- (set_local $14
- (f64.mul
- (f64.sub
- (get_local $14)
- (f64.convert_u/i32
- (get_local $5)
- )
+ (f64.eq
+ (set_local $14
+ (f64.mul
+ (f64.sub
+ (get_local $14)
+ (f64.convert_u/i32
+ (get_local $5)
)
- (f64.const 1e9)
)
+ (f64.const 1e9)
)
- (f64.const 0)
)
+ (f64.const 0)
)
(block
(set_local $7
@@ -6645,14 +6643,12 @@
)
)
(if
- (i32.eqz
- (f64.ne
- (f64.add
- (get_local $14)
- (get_local $29)
- )
+ (f64.eq
+ (f64.add
(get_local $14)
+ (get_local $29)
)
+ (get_local $14)
)
(block
(set_local $5