summaryrefslogtreecommitdiff
path: root/test/emcc_hello_world.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/emcc_hello_world.fromasm')
-rw-r--r--test/emcc_hello_world.fromasm342
1 files changed, 158 insertions, 184 deletions
diff --git a/test/emcc_hello_world.fromasm b/test/emcc_hello_world.fromasm
index bea407a53..574eb098a 100644
--- a/test/emcc_hello_world.fromasm
+++ b/test/emcc_hello_world.fromasm
@@ -30427,13 +30427,11 @@
)
)
)
- (block
- (i32.store align=4
- (i32.const 168)
- (get_local $h)
- )
- (get_local $l)
+ (i32.store align=4
+ (i32.const 168)
+ (get_local $h)
)
+ (get_local $l)
)
(func $_i64Add (param $a i32) (param $b i32) (param $c i32) (param $d i32) (result i32)
(local $l i32)
@@ -30456,13 +30454,11 @@
)
)
)
- (block
- (i32.store align=4
- (i32.const 168)
- (get_local $h)
- )
- (get_local $l)
+ (i32.store align=4
+ (i32.const 168)
+ (get_local $h)
)
+ (get_local $l)
)
(func $_memset (param $ptr i32) (param $value i32) (param $num i32) (result i32)
(local $stop i32)
@@ -30545,16 +30541,14 @@
(nop)
(br $while-out$0)
)
- (block
- (i32.store8 align=1
+ (i32.store8 align=1
+ (get_local $ptr)
+ (get_local $value)
+ )
+ (set_local $ptr
+ (i32.add
(get_local $ptr)
- (get_local $value)
- )
- (set_local $ptr
- (i32.add
- (get_local $ptr)
- (i32.const 1)
- )
+ (i32.const 1)
)
)
(br $while-in$1)
@@ -30572,16 +30566,14 @@
(nop)
(br $while-out$2)
)
- (block
- (i32.store align=4
+ (i32.store align=4
+ (get_local $ptr)
+ (get_local $value4)
+ )
+ (set_local $ptr
+ (i32.add
(get_local $ptr)
- (get_local $value4)
- )
- (set_local $ptr
- (i32.add
- (get_local $ptr)
- (i32.const 4)
- )
+ (i32.const 4)
)
)
(br $while-in$3)
@@ -30599,16 +30591,14 @@
(nop)
(br $while-out$4)
)
- (block
- (i32.store8 align=1
+ (i32.store8 align=1
+ (get_local $ptr)
+ (get_local $value)
+ )
+ (set_local $ptr
+ (i32.add
(get_local $ptr)
- (get_local $value)
- )
- (set_local $ptr
- (i32.add
- (get_local $ptr)
- (i32.const 1)
- )
+ (i32.const 1)
)
)
(br $while-in$5)
@@ -30782,39 +30772,37 @@
(nop)
(br $while-out$0)
)
- (block
- (if
- (i32.eq
- (get_local $num)
- (i32.const 0)
- )
- (br $topmost
- (get_local $ret)
- )
+ (if
+ (i32.eq
+ (get_local $num)
+ (i32.const 0)
)
- (i32.store8 align=1
- (get_local $dest)
- (i32.load8_s align=1
- (get_local $src)
- )
+ (br $topmost
+ (get_local $ret)
)
- (set_local $dest
- (i32.add
- (get_local $dest)
- (i32.const 1)
- )
+ )
+ (i32.store8 align=1
+ (get_local $dest)
+ (i32.load8_s align=1
+ (get_local $src)
)
- (set_local $src
- (i32.add
- (get_local $src)
- (i32.const 1)
- )
+ )
+ (set_local $dest
+ (i32.add
+ (get_local $dest)
+ (i32.const 1)
)
- (set_local $num
- (i32.sub
- (get_local $num)
- (i32.const 1)
- )
+ )
+ (set_local $src
+ (i32.add
+ (get_local $src)
+ (i32.const 1)
+ )
+ )
+ (set_local $num
+ (i32.sub
+ (get_local $num)
+ (i32.const 1)
)
)
(br $while-in$1)
@@ -30830,30 +30818,28 @@
(nop)
(br $while-out$2)
)
- (block
- (i32.store align=4
- (get_local $dest)
- (i32.load align=4
- (get_local $src)
- )
+ (i32.store align=4
+ (get_local $dest)
+ (i32.load align=4
+ (get_local $src)
)
- (set_local $dest
- (i32.add
- (get_local $dest)
- (i32.const 4)
- )
+ )
+ (set_local $dest
+ (i32.add
+ (get_local $dest)
+ (i32.const 4)
)
- (set_local $src
- (i32.add
- (get_local $src)
- (i32.const 4)
- )
+ )
+ (set_local $src
+ (i32.add
+ (get_local $src)
+ (i32.const 4)
)
- (set_local $num
- (i32.sub
- (get_local $num)
- (i32.const 4)
- )
+ )
+ (set_local $num
+ (i32.sub
+ (get_local $num)
+ (i32.const 4)
)
)
(br $while-in$3)
@@ -30871,30 +30857,28 @@
(nop)
(br $while-out$4)
)
- (block
- (i32.store8 align=1
- (get_local $dest)
- (i32.load8_s align=1
- (get_local $src)
- )
+ (i32.store8 align=1
+ (get_local $dest)
+ (i32.load8_s align=1
+ (get_local $src)
)
- (set_local $dest
- (i32.add
- (get_local $dest)
- (i32.const 1)
- )
+ )
+ (set_local $dest
+ (i32.add
+ (get_local $dest)
+ (i32.const 1)
)
- (set_local $src
- (i32.add
- (get_local $src)
- (i32.const 1)
- )
+ )
+ (set_local $src
+ (i32.add
+ (get_local $src)
+ (i32.const 1)
)
- (set_local $num
- (i32.sub
- (get_local $num)
- (i32.const 1)
- )
+ )
+ (set_local $num
+ (i32.sub
+ (get_local $num)
+ (i32.const 1)
)
)
(br $while-in$5)
@@ -31121,46 +31105,44 @@
(get_local $$1)
)
)
- (block
- (i32.store align=4
- (i32.const 168)
+ (i32.store align=4
+ (i32.const 168)
+ (i32.add
(i32.add
- (i32.add
- (i32.shr_u
- (get_local $$8)
- (i32.const 16)
- )
- (i32.mul
- (get_local $$11)
- (get_local $$6)
- )
- )
(i32.shr_u
- (i32.add
- (i32.and
- (get_local $$8)
- (i32.const 65535)
- )
- (get_local $$12)
- )
+ (get_local $$8)
(i32.const 16)
)
+ (i32.mul
+ (get_local $$11)
+ (get_local $$6)
+ )
)
- )
- (i32.or
- (i32.const 0)
- (i32.or
- (i32.shl
- (i32.add
+ (i32.shr_u
+ (i32.add
+ (i32.and
(get_local $$8)
- (get_local $$12)
+ (i32.const 65535)
)
- (i32.const 16)
+ (get_local $$12)
)
- (i32.and
- (get_local $$3)
- (i32.const 65535)
+ (i32.const 16)
+ )
+ )
+ )
+ (i32.or
+ (i32.const 0)
+ (i32.or
+ (i32.shl
+ (i32.add
+ (get_local $$8)
+ (get_local $$12)
)
+ (i32.const 16)
+ )
+ (i32.and
+ (get_local $$3)
+ (i32.const 65535)
)
)
)
@@ -31532,13 +31514,11 @@
(i32.const 8)
(get_local $__stackBase__)
)
- (block
- (i32.store align=4
- (i32.const 168)
- (get_local $$10$1)
- )
- (get_local $$10$0)
+ (i32.store align=4
+ (i32.const 168)
+ (get_local $$10$1)
)
+ (get_local $$10$0)
)
(func $___muldi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$x_sroa_0_0_extract_trunc i32)
@@ -31569,34 +31549,32 @@
(get_local $$y_sroa_0_0_extract_trunc)
)
)
- (block
- (i32.store align=4
- (i32.const 168)
- (i32.or
+ (i32.store align=4
+ (i32.const 168)
+ (i32.or
+ (i32.add
(i32.add
- (i32.add
- (i32.mul
- (get_local $$b$1)
- (get_local $$x_sroa_0_0_extract_trunc)
- )
- (get_local $$2)
+ (i32.mul
+ (get_local $$b$1)
+ (get_local $$x_sroa_0_0_extract_trunc)
)
- (get_local $$1$1)
- )
- (i32.and
- (get_local $$1$1)
- (i32.const 0)
+ (get_local $$2)
)
+ (get_local $$1$1)
)
- )
- (i32.or
- (i32.const 0)
(i32.and
- (get_local $$1$0)
- (i32.const -1)
+ (get_local $$1$1)
+ (i32.const 0)
)
)
)
+ (i32.or
+ (i32.const 0)
+ (i32.and
+ (get_local $$1$0)
+ (i32.const -1)
+ )
+ )
)
(func $___udivdi3 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (result i32)
(local $$1$0 i32)
@@ -31642,20 +31620,18 @@
(i32.const 8)
(get_local $__stackBase__)
)
- (block
- (i32.store align=4
- (i32.const 168)
- (i32.load align=4
- (i32.add
- (get_local $$rem)
- (i32.const 4)
- )
- )
- )
+ (i32.store align=4
+ (i32.const 168)
(i32.load align=4
- (get_local $$rem)
+ (i32.add
+ (get_local $$rem)
+ (i32.const 4)
+ )
)
)
+ (i32.load align=4
+ (get_local $$rem)
+ )
)
(func $___udivmoddi4 (param $$a$0 i32) (param $$a$1 i32) (param $$b$0 i32) (param $$b$1 i32) (param $$rem i32) (result i32)
(local $$n_sroa_0_0_extract_trunc i32)
@@ -32901,13 +32877,11 @@
(get_local $$carry_0_lcssa$0)
)
)
- (block
- (i32.store align=4
- (i32.const 168)
- (get_local $$_0$1)
- )
- (get_local $$_0$0)
+ (i32.store align=4
+ (i32.const 168)
+ (get_local $$_0$1)
)
+ (get_local $$_0$0)
)
)
(func $dynCall_ii (param $index i32) (param $a1 i32) (result i32)