summaryrefslogtreecommitdiff
path: root/test/emcc_hello_world.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-11-29 19:35:55 -0800
committerGitHub <noreply@github.com>2016-11-29 19:35:55 -0800
commit7d2d9ec9f2f936d0a53b7dc60089456a0654d29c (patch)
tree9af4b035eece3a2dc7855209707d2138f76a8143 /test/emcc_hello_world.fromasm.imprecise
parent724814c5adafaacac693f9a11e3517e411c4c5de (diff)
downloadbinaryen-7d2d9ec9f2f936d0a53b7dc60089456a0654d29c.tar.gz
binaryen-7d2d9ec9f2f936d0a53b7dc60089456a0654d29c.tar.bz2
binaryen-7d2d9ec9f2f936d0a53b7dc60089456a0654d29c.zip
Optimize added factors into load/store offsets (#850)
* optimize added factors into load/store offsets, removing the add * optimize offset of load/store of a constant into the constant
Diffstat (limited to 'test/emcc_hello_world.fromasm.imprecise')
-rw-r--r--test/emcc_hello_world.fromasm.imprecise22
1 files changed, 8 insertions, 14 deletions
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise
index 4363dc349..adadfe086 100644
--- a/test/emcc_hello_world.fromasm.imprecise
+++ b/test/emcc_hello_world.fromasm.imprecise
@@ -4349,14 +4349,11 @@
(i32.store8
(get_local $5)
(i32.or
- (i32.load8_u
- (i32.add
- (tee_local $7
- (i32.trunc_s/f64
- (get_local $15)
- )
+ (i32.load8_u offset=4075
+ (tee_local $7
+ (i32.trunc_s/f64
+ (get_local $15)
)
- (i32.const 4075)
)
)
(get_local $13)
@@ -6585,13 +6582,10 @@
)
)
(i32.or
- (i32.load8_u
- (i32.add
- (i32.and
- (get_local $5)
- (i32.const 15)
- )
- (i32.const 4075)
+ (i32.load8_u offset=4075
+ (i32.and
+ (get_local $5)
+ (i32.const 15)
)
)
(get_local $9)