diff options
Diffstat (limited to 'test/emcc_hello_world.fromasm')
-rw-r--r-- | test/emcc_hello_world.fromasm | 418 |
1 files changed, 211 insertions, 207 deletions
diff --git a/test/emcc_hello_world.fromasm b/test/emcc_hello_world.fromasm index 6552ae32c..e7fbb92a8 100644 --- a/test/emcc_hello_world.fromasm +++ b/test/emcc_hello_world.fromasm @@ -2151,8 +2151,8 @@ (local $19 i32) (local $20 i32) (local $21 i32) - (local $22 i32) - (local $23 f64) + (local $22 f64) + (local $23 i32) (local $24 i32) (local $25 i32) (local $26 i32) @@ -2270,7 +2270,7 @@ (get_local $32) ) (tee_local $36 - (tee_local $22 + (tee_local $23 (i32.add (get_local $14) (i32.const 588) @@ -2305,14 +2305,14 @@ (set_local $42 (tee_local $29 (i32.add - (get_local $22) + (get_local $23) (i32.const 9) ) ) ) (set_local $33 (i32.add - (get_local $22) + (get_local $23) (i32.const 8) ) ) @@ -3934,7 +3934,7 @@ (if (tee_local $5 (f64.ne - (tee_local $23 + (tee_local $22 (f64.mul (call $_frexp (get_local $16) @@ -3998,7 +3998,7 @@ (i32.const 11) ) ) - (get_local $23) + (get_local $22) (block (result f64) (set_local $16 (f64.const 8) @@ -4031,7 +4031,7 @@ (get_local $16) (f64.sub (f64.neg - (get_local $23) + (get_local $22) ) (get_local $16) ) @@ -4039,7 +4039,7 @@ ) (f64.sub (f64.add - (get_local $23) + (get_local $22) (get_local $16) ) (get_local $16) @@ -4048,6 +4048,12 @@ ) ) ) + (set_local $12 + (i32.or + (get_local $26) + (i32.const 2) + ) + ) (if (i32.eq (tee_local $5 @@ -4094,12 +4100,6 @@ ) ) ) - (set_local $12 - (i32.or - (get_local $26) - (i32.const 2) - ) - ) (i32.store8 (i32.add (get_local $5) @@ -4143,7 +4143,7 @@ ) ) (set_local $5 - (get_local $22) + (get_local $23) ) (loop $while-in56 (i32.store8 @@ -4306,7 +4306,7 @@ ) (drop (call $___fwritex - (get_local $22) + (get_local $23) (get_local $5) (get_local $0) ) @@ -4385,7 +4385,7 @@ ) ) (f64.mul - (get_local $23) + (get_local $22) (f64.const 268435456) ) ) @@ -4395,7 +4395,7 @@ (get_local $20) ) ) - (get_local $23) + (get_local $22) ) ) ) @@ -5050,7 +5050,7 @@ ) ) ) - (set_local $23 + (set_local $22 (select (f64.const 9007199254740994) (f64.const 9007199254740992) @@ -5070,14 +5070,14 @@ (i32.const 45) ) (block - (set_local $23 + (set_local $16 (f64.neg - (get_local $23) + (get_local $16) ) ) - (set_local $16 + (set_local $22 (f64.neg - (get_local $16) + (get_local $22) ) ) ) @@ -5095,10 +5095,10 @@ (br_if $do-once81 (f64.eq (f64.add - (get_local $23) + (get_local $22) (get_local $16) ) - (get_local $23) + (get_local $22) ) ) (i32.store @@ -5729,7 +5729,7 @@ (br_if $do-once103 (i32.le_u (get_local $7) - (get_local $22) + (get_local $23) ) ) (loop $while-in106 @@ -5745,7 +5745,7 @@ (br_if $while-in106 (i32.gt_u (get_local $7) - (get_local $22) + (get_local $23) ) ) ) @@ -5833,7 +5833,7 @@ (get_local $29) ) ) - (get_local $22) + (get_local $23) ) (loop $while-in112 (i32.store8 @@ -5848,7 +5848,7 @@ (br_if $while-in112 (i32.gt_u (get_local $6) - (get_local $22) + (get_local $23) ) ) ) @@ -5933,87 +5933,141 @@ (get_local $24) ) ) - (if - (i32.gt_s - (get_local $5) - (i32.const -1) - ) - (block - (set_local $18 - (i32.eqz - (get_local $21) + (call $_pad + (get_local $0) + (i32.const 48) + (block (result i32) + (if + (i32.gt_s + (get_local $5) + (i32.const -1) ) - ) - (set_local $6 - (get_local $12) - ) - (set_local $7 - (get_local $5) - ) - (loop $while-in114 - (if - (i32.eq - (tee_local $5 - (call $_fmt_u - (i32.load - (get_local $6) - ) - (i32.const 0) - (get_local $29) - ) + (block + (set_local $18 + (i32.eqz + (get_local $21) ) - (get_local $29) ) - (block - (i32.store8 - (get_local $33) - (i32.const 48) - ) - (set_local $5 - (get_local $33) - ) + (set_local $6 + (get_local $12) ) - ) - (block $do-once115 - (if - (i32.eq - (get_local $6) - (get_local $12) - ) - (block - (if - (i32.eqz - (i32.and + (set_local $7 + (get_local $5) + ) + (loop $while-in114 + (if + (i32.eq + (tee_local $5 + (call $_fmt_u (i32.load - (get_local $0) + (get_local $6) ) - (i32.const 32) - ) - ) - (drop - (call $___fwritex - (get_local $5) - (i32.const 1) - (get_local $0) + (i32.const 0) + (get_local $29) ) ) + (get_local $29) ) - (set_local $5 - (i32.add - (get_local $5) - (i32.const 1) + (block + (i32.store8 + (get_local $33) + (i32.const 48) + ) + (set_local $5 + (get_local $33) ) ) - (br_if $do-once115 - (i32.and - (i32.lt_s - (get_local $7) - (i32.const 1) + ) + (block $do-once115 + (if + (i32.eq + (get_local $6) + (get_local $12) + ) + (block + (if + (i32.eqz + (i32.and + (i32.load + (get_local $0) + ) + (i32.const 32) + ) + ) + (drop + (call $___fwritex + (get_local $5) + (i32.const 1) + (get_local $0) + ) + ) + ) + (set_local $5 + (i32.add + (get_local $5) + (i32.const 1) + ) + ) + (br_if $do-once115 + (i32.and + (i32.lt_s + (get_local $7) + (i32.const 1) + ) + (get_local $18) + ) + ) + (br_if $do-once115 + (i32.and + (i32.load + (get_local $0) + ) + (i32.const 32) + ) + ) + (drop + (call $___fwritex + (i32.const 4143) + (i32.const 1) + (get_local $0) + ) + ) + ) + (block + (br_if $do-once115 + (i32.le_u + (get_local $5) + (get_local $23) + ) + ) + (loop $while-in118 + (i32.store8 + (tee_local $5 + (i32.add + (get_local $5) + (i32.const -1) + ) + ) + (i32.const 48) + ) + (br_if $while-in118 + (i32.gt_u + (get_local $5) + (get_local $23) + ) + ) ) - (get_local $18) ) ) - (br_if $do-once115 + ) + (set_local $8 + (i32.sub + (get_local $42) + (get_local $5) + ) + ) + (if + (i32.eqz (i32.and (i32.load (get_local $0) @@ -6023,104 +6077,52 @@ ) (drop (call $___fwritex - (i32.const 4143) - (i32.const 1) + (get_local $5) + (select + (get_local $8) + (get_local $7) + (i32.gt_s + (get_local $7) + (get_local $8) + ) + ) (get_local $0) ) ) ) - (block - (br_if $do-once115 - (i32.le_u - (get_local $5) - (get_local $22) - ) - ) - (loop $while-in118 - (i32.store8 - (tee_local $5 + (br_if $while-in114 + (i32.and + (i32.lt_u + (tee_local $6 (i32.add - (get_local $5) - (i32.const -1) + (get_local $6) + (i32.const 4) ) ) - (i32.const 48) - ) - (br_if $while-in118 - (i32.gt_u - (get_local $5) - (get_local $22) - ) + (get_local $9) ) - ) - ) - ) - ) - (set_local $8 - (i32.sub - (get_local $42) - (get_local $5) - ) - ) - (if - (i32.eqz - (i32.and - (i32.load - (get_local $0) - ) - (i32.const 32) - ) - ) - (drop - (call $___fwritex - (get_local $5) - (select - (get_local $8) - (get_local $7) (i32.gt_s - (get_local $7) - (get_local $8) + (tee_local $7 + (i32.sub + (get_local $7) + (get_local $8) + ) + ) + (i32.const -1) ) ) - (get_local $0) ) ) - ) - (br_if $while-in114 - (i32.and - (i32.lt_u - (tee_local $6 - (i32.add - (get_local $6) - (i32.const 4) - ) - ) - (get_local $9) - ) - (i32.gt_s - (tee_local $7 - (i32.sub - (get_local $7) - (get_local $8) - ) - ) - (i32.const -1) - ) + (set_local $5 + (get_local $7) ) ) ) - (set_local $5 - (get_local $7) + (i32.add + (get_local $5) + (i32.const 18) ) ) - ) - (call $_pad - (get_local $0) - (i32.const 48) - (i32.add - (get_local $5) - (i32.const 18) - ) (i32.const 18) (i32.const 0) ) @@ -6187,32 +6189,6 @@ ) (get_local $8) ) - (if - (i32.eqz - (i32.and - (tee_local $5 - (i32.load - (get_local $0) - ) - ) - (i32.const 32) - ) - ) - (block - (drop - (call $___fwritex - (get_local $30) - (get_local $9) - (get_local $0) - ) - ) - (set_local $5 - (i32.load - (get_local $0) - ) - ) - ) - ) (set_local $6 (select (select @@ -6237,10 +6213,38 @@ ) ) (if - (i32.eqz - (i32.and - (get_local $5) - (i32.const 32) + (block (result i32) + (if + (i32.eqz + (i32.and + (tee_local $5 + (i32.load + (get_local $0) + ) + ) + (i32.const 32) + ) + ) + (block + (drop + (call $___fwritex + (get_local $30) + (get_local $9) + (get_local $0) + ) + ) + (set_local $5 + (i32.load + (get_local $0) + ) + ) + ) + ) + (i32.eqz + (i32.and + (get_local $5) + (i32.const 32) + ) ) ) (drop |