summaryrefslogtreecommitdiff
path: root/test/emcc_O2_hello_world.fromasm.imprecise
diff options
context:
space:
mode:
Diffstat (limited to 'test/emcc_O2_hello_world.fromasm.imprecise')
-rw-r--r--test/emcc_O2_hello_world.fromasm.imprecise217
1 files changed, 87 insertions, 130 deletions
diff --git a/test/emcc_O2_hello_world.fromasm.imprecise b/test/emcc_O2_hello_world.fromasm.imprecise
index c493e11b2..5be7015b2 100644
--- a/test/emcc_O2_hello_world.fromasm.imprecise
+++ b/test/emcc_O2_hello_world.fromasm.imprecise
@@ -7642,9 +7642,7 @@
(local $13 i32)
(local $14 i32)
(local $15 i32)
- (local $16 i32)
- (local $17 i32)
- (local.set $12
+ (local.set $7
(global.get $STACKTOP)
)
(global.set $STACKTOP
@@ -7653,29 +7651,25 @@
(i32.const 48)
)
)
- (local.set $9
+ (local.set $11
(i32.add
- (local.get $12)
+ (local.get $7)
(i32.const 16)
)
)
+ (local.set $9
+ (local.get $7)
+ )
(i32.store
(local.tee $3
(i32.add
- (local.tee $10
- (local.get $12)
- )
+ (local.get $7)
(i32.const 32)
)
)
- (local.tee $11
- (i32.load
- (local.tee $7
- (i32.add
- (local.get $0)
- (i32.const 28)
- )
- )
+ (local.tee $10
+ (i32.load offset=28
+ (local.get $0)
)
)
)
@@ -7683,15 +7677,10 @@
(local.get $3)
(local.tee $8
(i32.sub
- (i32.load
- (local.tee $13
- (i32.add
- (local.get $0)
- (i32.const 20)
- )
- )
+ (i32.load offset=20
+ (local.get $0)
)
- (local.get $11)
+ (local.get $10)
)
)
)
@@ -7709,7 +7698,7 @@
(i32.const 60)
)
)
- (local.set $11
+ (local.set $10
(i32.add
(local.get $0)
(i32.const 44)
@@ -7743,24 +7732,24 @@
(local.get $0)
)
(i32.store
- (local.get $10)
+ (local.get $9)
(i32.load
(local.get $1)
)
)
(i32.store offset=4
- (local.get $10)
+ (local.get $9)
(local.get $5)
)
(i32.store offset=8
- (local.get $10)
+ (local.get $9)
(local.get $3)
)
(local.set $8
(call $___syscall_ret
(call $___syscall146
(i32.const 146)
- (local.get $10)
+ (local.get $9)
)
)
)
@@ -7770,24 +7759,24 @@
(local.get $8)
)
(block (result i32)
- (i32.store
- (local.get $9)
+ (i32.store offset=16
+ (local.get $7)
(i32.load
(local.get $1)
)
)
(i32.store offset=4
- (local.get $9)
+ (local.get $11)
(local.get $5)
)
(i32.store offset=8
- (local.get $9)
+ (local.get $11)
(local.get $3)
)
(call $___syscall_ret
(call $___syscall146
(i32.const 146)
- (local.get $9)
+ (local.get $11)
)
)
)
@@ -7807,10 +7796,10 @@
(i32.const 0)
)
(block
- (local.set $15
+ (local.set $13
(local.get $5)
)
- (local.set $16
+ (local.set $14
(local.get $3)
)
(local.set $1
@@ -7828,7 +7817,7 @@
(if
(i32.le_u
(local.get $6)
- (local.tee $14
+ (local.tee $12
(i32.load offset=4
(local.get $5)
)
@@ -7841,12 +7830,12 @@
(i32.const 2)
)
(block
- (i32.store
- (local.get $7)
+ (i32.store offset=28
+ (local.get $0)
(i32.add
(local.get $6)
- (i32.load
- (local.get $7)
+ (i32.load offset=28
+ (local.get $0)
)
)
)
@@ -7856,20 +7845,20 @@
)
)
(local.set $4
- (local.get $14)
+ (local.get $12)
)
)
(block
- (i32.store
- (local.get $7)
+ (i32.store offset=28
+ (local.get $0)
(local.tee $4
(i32.load
- (local.get $11)
+ (local.get $10)
)
)
)
- (i32.store
- (local.get $13)
+ (i32.store offset=20
+ (local.get $0)
(local.get $4)
)
(local.set $4
@@ -7880,7 +7869,7 @@
(local.set $6
(i32.sub
(local.get $6)
- (local.get $14)
+ (local.get $12)
)
)
(local.set $5
@@ -7920,7 +7909,7 @@
)
)
(global.set $STACKTOP
- (local.get $12)
+ (local.get $7)
)
(if (result i32)
(i32.eq
@@ -7933,7 +7922,7 @@
(i32.add
(local.tee $4
(i32.load
- (local.get $11)
+ (local.get $10)
)
)
(i32.load offset=48
@@ -7941,12 +7930,12 @@
)
)
)
- (i32.store
- (local.get $7)
+ (i32.store offset=28
+ (local.get $0)
(local.get $4)
)
- (i32.store
- (local.get $13)
+ (i32.store offset=20
+ (local.get $0)
(local.get $4)
)
(local.get $2)
@@ -7961,12 +7950,12 @@
(local.get $0)
(i32.const 0)
)
- (i32.store
- (local.get $7)
+ (i32.store offset=28
+ (local.get $0)
(i32.const 0)
)
- (i32.store
- (local.get $13)
+ (i32.store offset=20
+ (local.get $0)
(i32.const 0)
)
(i32.store
@@ -7983,16 +7972,16 @@
(i32.sub
(local.get $2)
(i32.load offset=4
- (local.get $15)
+ (local.get $13)
)
)
(i32.eq
- (local.get $16)
+ (local.get $14)
(i32.const 2)
)
)
)
- (local.get $17)
+ (local.get $15)
)
)
)
@@ -8107,15 +8096,12 @@
)
(if
(i32.ne
- (i32.load8_s
- (i32.add
- (local.tee $5
- (i32.add
- (local.get $2)
- (i32.const -1)
- )
+ (i32.load8_s offset=672
+ (local.tee $5
+ (i32.add
+ (local.get $2)
+ (i32.const -1)
)
- (i32.const 672)
)
)
(i32.const 10)
@@ -8531,28 +8517,14 @@
(func $___fflush_unlocked (; 22 ;) (; has Stack IR ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
- (local $3 i32)
- (local $4 i32)
- (local $5 i32)
- (local $6 i32)
(if (result i32)
(if (result i32)
(i32.gt_u
- (i32.load
- (local.tee $1
- (i32.add
- (local.get $0)
- (i32.const 20)
- )
- )
+ (i32.load offset=20
+ (local.get $0)
)
- (i32.load
- (local.tee $2
- (i32.add
- (local.get $0)
- (i32.const 28)
- )
- )
+ (i32.load offset=28
+ (local.get $0)
)
)
(block (result i32)
@@ -8573,8 +8545,8 @@
)
)
(i32.eqz
- (i32.load
- (local.get $1)
+ (i32.load offset=20
+ (local.get $0)
)
)
)
@@ -8584,24 +8556,14 @@
(block (result i32)
(if
(i32.lt_u
- (local.tee $4
- (i32.load
- (local.tee $3
- (i32.add
- (local.get $0)
- (i32.const 4)
- )
- )
+ (local.tee $1
+ (i32.load offset=4
+ (local.get $0)
)
)
- (local.tee $6
- (i32.load
- (local.tee $5
- (i32.add
- (local.get $0)
- (i32.const 8)
- )
- )
+ (local.tee $2
+ (i32.load offset=8
+ (local.get $0)
)
)
)
@@ -8609,8 +8571,8 @@
(call_indirect (type $FUNCSIG$iiii)
(local.get $0)
(i32.sub
- (local.get $4)
- (local.get $6)
+ (local.get $1)
+ (local.get $2)
)
(i32.const 1)
(i32.add
@@ -8629,20 +8591,20 @@
(local.get $0)
(i32.const 0)
)
- (i32.store
- (local.get $2)
+ (i32.store offset=28
+ (local.get $0)
(i32.const 0)
)
- (i32.store
- (local.get $1)
+ (i32.store offset=20
+ (local.get $0)
(i32.const 0)
)
- (i32.store
- (local.get $5)
+ (i32.store offset=8
+ (local.get $0)
(i32.const 0)
)
- (i32.store
- (local.get $3)
+ (i32.store offset=4
+ (local.get $0)
(i32.const 0)
)
(i32.const 0)
@@ -9034,8 +8996,7 @@
)
(func $___stdio_seek (; 27 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
- (local $4 i32)
- (local.set $4
+ (local.set $3
(global.get $STACKTOP)
)
(global.set $STACKTOP
@@ -9045,9 +9006,7 @@
)
)
(i32.store
- (local.tee $3
- (local.get $4)
- )
+ (local.get $3)
(i32.load offset=60
(local.get $0)
)
@@ -9062,11 +9021,9 @@
)
(i32.store offset=12
(local.get $3)
- (local.tee $0
- (i32.add
- (local.get $3)
- (i32.const 20)
- )
+ (i32.add
+ (local.get $3)
+ (i32.const 20)
)
)
(i32.store offset=16
@@ -9085,19 +9042,19 @@
(i32.const 0)
)
(block (result i32)
- (i32.store
- (local.get $0)
+ (i32.store offset=20
+ (local.get $3)
(i32.const -1)
)
(i32.const -1)
)
- (i32.load
- (local.get $0)
+ (i32.load offset=20
+ (local.get $3)
)
)
)
(global.set $STACKTOP
- (local.get $4)
+ (local.get $3)
)
(local.get $0)
)