diff options
Diffstat (limited to 'test/emcc_hello_world.fromasm.imprecise')
-rw-r--r-- | test/emcc_hello_world.fromasm.imprecise | 648 |
1 files changed, 315 insertions, 333 deletions
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise index 96344b09d..e6caa9b58 100644 --- a/test/emcc_hello_world.fromasm.imprecise +++ b/test/emcc_hello_world.fromasm.imprecise @@ -255,12 +255,6 @@ ) (get_local $0) ) - (func $_frexpl (param $0 f64) (param $1 i32) (result f64) - (call $_frexp - (get_local $0) - (get_local $1) - ) - ) (func $_strerror (param $0 i32) (result i32) (local $1 i32) (local $2 i32) @@ -2212,8 +2206,8 @@ (local $20 i32) (local $21 i32) (local $22 i32) - (local $23 i32) - (local $24 f64) + (local $23 f64) + (local $24 i32) (local $25 i32) (local $26 i32) (local $27 i32) @@ -2240,7 +2234,7 @@ (local $48 i32) (local $49 i32) (local $50 i32) - (set_local $26 + (set_local $25 (get_global $STACKTOP) ) (set_global $STACKTOP @@ -2256,18 +2250,18 @@ ) (call $abort) ) - (set_local $21 + (set_local $20 (i32.add - (get_local $26) + (get_local $25) (i32.const 16) ) ) (set_local $19 - (get_local $26) + (get_local $25) ) (set_local $36 (i32.add - (get_local $26) + (get_local $25) (i32.const 528) ) ) @@ -2278,11 +2272,11 @@ ) ) (set_local $39 - (tee_local $22 + (tee_local $26 (i32.add (tee_local $5 (i32.add - (get_local $26) + (get_local $25) (i32.const 536) ) ) @@ -2300,7 +2294,7 @@ (i32.add (tee_local $41 (i32.add - (get_local $26) + (get_local $25) (i32.const 8) ) ) @@ -2311,7 +2305,7 @@ (i32.add (tee_local $5 (i32.add - (get_local $26) + (get_local $25) (i32.const 576) ) ) @@ -2330,9 +2324,9 @@ (get_local $34) ) (tee_local $37 - (tee_local $23 + (tee_local $22 (i32.add - (get_local $26) + (get_local $25) (i32.const 588) ) ) @@ -2355,7 +2349,7 @@ (i32.add (tee_local $48 (i32.add - (get_local $26) + (get_local $25) (i32.const 24) ) ) @@ -2365,14 +2359,14 @@ (set_local $43 (tee_local $30 (i32.add - (get_local $23) + (get_local $22) (i32.const 9) ) ) ) (set_local $35 (i32.add - (get_local $23) + (get_local $22) (i32.const 8) ) ) @@ -2854,26 +2848,24 @@ (get_local $6) ) ) - (if - (i32.lt_s - (get_local $14) - (i32.const 0) - ) - (block - (set_local $11 + (set_local $11 + (if (result i32) + (i32.lt_s + (get_local $14) + (i32.const 0) + ) + (block (result i32) + (set_local $14 + (i32.sub + (i32.const 0) + (get_local $14) + ) + ) (i32.or (get_local $1) (i32.const 8192) ) ) - (set_local $14 - (i32.sub - (i32.const 0) - (get_local $14) - ) - ) - ) - (set_local $11 (get_local $1) ) ) @@ -2977,8 +2969,8 @@ ) ) ) - (block $label$break$L46 - (set_local $6 + (set_local $6 + (block $label$break$L46 (result i32) (if (result i32) (i32.eq (i32.load8_s @@ -3027,38 +3019,39 @@ (set_local $10 (get_local $6) ) - (set_local $6 + (br $label$break$L46 (i32.const 0) ) - (br $label$break$L46) ) ) (loop $while-in11 - (set_local $6 - (i32.add - (i32.mul - (get_local $8) - (i32.const 10) - ) - (get_local $6) - ) - ) - (br_if $label$break$L46 - (i32.ge_u - (tee_local $9 + (drop + (br_if $label$break$L46 + (tee_local $6 (i32.add - (i32.load8_s - (tee_local $10 - (i32.add - (get_local $10) - (i32.const 1) + (i32.mul + (get_local $8) + (i32.const 10) + ) + (get_local $6) + ) + ) + (i32.ge_u + (tee_local $9 + (i32.add + (i32.load8_s + (tee_local $10 + (i32.add + (get_local $10) + (i32.const 1) + ) ) ) + (i32.const -48) ) - (i32.const -48) ) + (i32.const 10) ) - (i32.const 10) ) ) (set_local $8 @@ -3130,12 +3123,11 @@ (i32.const 4) ) ) - (set_local $6 + (br $label$break$L46 (i32.load (get_local $6) ) ) - (br $label$break$L46) ) ) ) @@ -3641,7 +3633,7 @@ ) ) (set_local $8 - (get_local $22) + (get_local $26) ) (block (set_local $5 @@ -3651,7 +3643,7 @@ (get_local $8) ) (set_local $8 - (get_local $22) + (get_local $26) ) (loop $while-in32 (i32.store8 @@ -3692,43 +3684,41 @@ ) ) ) - (if - (i32.and - (get_local $11) - (i32.const 8) - ) - (block - (set_local $5 - (get_local $8) - ) - (set_local $7 + (set_local $5 + (if (result i32) + (i32.and (get_local $11) + (i32.const 8) ) - (set_local $6 - (select - (tee_local $11 - (i32.add - (i32.sub - (get_local $39) - (get_local $8) + (block (result i32) + (set_local $7 + (get_local $11) + ) + (set_local $6 + (select + (tee_local $11 + (i32.add + (i32.sub + (get_local $39) + (get_local $8) + ) + (i32.const 1) ) - (i32.const 1) ) - ) - (get_local $6) - (i32.lt_s (get_local $6) - (get_local $11) + (i32.lt_s + (get_local $6) + (get_local $11) + ) ) ) - ) - ) - (block - (set_local $5 (get_local $8) ) - (set_local $7 - (get_local $11) + (block (result i32) + (set_local $7 + (get_local $11) + ) + (get_local $8) ) ) ) @@ -3785,29 +3775,27 @@ (br $__rjti$4) ) ) - (if - (i32.and - (get_local $11) - (i32.const 2048) - ) - (block - (set_local $8 - (i32.const 1) + (set_local $9 + (if (result i32) + (i32.and + (get_local $11) + (i32.const 2048) ) - (set_local $9 + (block (result i32) + (set_local $8 + (i32.const 1) + ) (i32.const 4092) ) - ) - (block - (set_local $8 - (tee_local $9 - (i32.and - (get_local $11) - (i32.const 1) + (block (result i32) + (set_local $8 + (tee_local $9 + (i32.and + (get_local $11) + (i32.const 1) + ) ) ) - ) - (set_local $9 (select (i32.const 4093) (i32.const 4091) @@ -3867,7 +3855,7 @@ (i32.const 4091) ) (br $__rjto$8 - (get_local $22) + (get_local $26) ) ) (set_local $5 @@ -3947,7 +3935,7 @@ ) ) (i32.store - (get_local $21) + (get_local $20) (i32.const 0) ) (f64.store @@ -4033,11 +4021,13 @@ (if (tee_local $5 (f64.ne - (tee_local $24 + (tee_local $23 (f64.mul - (call $_frexpl + (call $_frexp (get_local $15) - (get_local $21) + (tee_local $5 + (get_local $20) + ) ) (f64.const 2) ) @@ -4046,10 +4036,10 @@ ) ) (i32.store - (get_local $21) + (get_local $20) (i32.add (i32.load - (get_local $21) + (get_local $20) ) (i32.const -1) ) @@ -4057,7 +4047,7 @@ ) (if (i32.eq - (tee_local $25 + (tee_local $24 (i32.or (get_local $18) (i32.const 32) @@ -4097,7 +4087,7 @@ ) ) ) - (get_local $24) + (get_local $23) (block (result f64) (set_local $15 (f64.const 8) @@ -4124,7 +4114,7 @@ (get_local $15) (f64.sub (f64.neg - (get_local $24) + (get_local $23) ) (get_local $15) ) @@ -4132,7 +4122,7 @@ ) (f64.sub (f64.add - (get_local $24) + (get_local $23) (get_local $15) ) (get_local $15) @@ -4157,7 +4147,7 @@ (i32.const 0) (tee_local $7 (i32.load - (get_local $21) + (get_local $20) ) ) ) @@ -4242,7 +4232,7 @@ ) ) (set_local $5 - (get_local $23) + (get_local $22) ) (loop $while-in56 (i32.store8 @@ -4409,7 +4399,7 @@ ) (drop (call $___fwritex - (get_local $23) + (get_local $22) (get_local $5) (get_local $0) ) @@ -4477,28 +4467,28 @@ (get_local $5) (block (result f64) (i32.store - (get_local $21) + (get_local $20) (tee_local $5 (i32.add (i32.load - (get_local $21) + (get_local $20) ) (i32.const -28) ) ) ) (f64.mul - (get_local $24) + (get_local $23) (f64.const 268435456) ) ) (block (result f64) (set_local $5 (i32.load - (get_local $21) + (get_local $20) ) ) - (get_local $24) + (get_local $23) ) ) ) @@ -4550,7 +4540,7 @@ (i32.gt_s (tee_local $9 (i32.load - (get_local $21) + (get_local $20) ) ) (i32.const 0) @@ -4588,28 +4578,26 @@ (loop $while-in66 (i32.store (get_local $9) - (tee_local $20 - (call $___uremdi3 - (tee_local $12 - (call $_i64Add - (call $_bitshift64Shl - (i32.load - (get_local $9) - ) - (i32.const 0) - (get_local $13) + (call $___uremdi3 + (tee_local $12 + (call $_i64Add + (call $_bitshift64Shl + (i32.load + (get_local $9) ) - (get_global $tempRet0) - (get_local $12) (i32.const 0) + (get_local $13) ) - ) - (tee_local $17 (get_global $tempRet0) + (get_local $12) + (i32.const 0) ) - (i32.const 1000000000) - (i32.const 0) ) + (tee_local $17 + (get_global $tempRet0) + ) + (i32.const 1000000000) + (i32.const 0) ) ) (set_local $12 @@ -4676,11 +4664,11 @@ ) ) (i32.store - (get_local $21) + (get_local $20) (tee_local $9 (i32.sub (i32.load - (get_local $21) + (get_local $20) ) (get_local $13) ) @@ -4714,7 +4702,7 @@ (i32.const 0) ) (block - (set_local $20 + (set_local $21 (i32.add (i32.div_s (i32.add @@ -4728,7 +4716,7 @@ ) (set_local $32 (i32.eq - (get_local $25) + (get_local $24) (i32.const 102) ) ) @@ -4871,7 +4859,7 @@ ) ) (i32.shl - (get_local $20) + (get_local $21) (i32.const 2) ) ) @@ -4884,16 +4872,16 @@ ) (i32.const 2) ) - (get_local $20) + (get_local $21) ) ) ) (i32.store - (get_local $21) + (get_local $20) (tee_local $9 (i32.add (i32.load - (get_local $21) + (get_local $20) ) (get_local $13) ) @@ -4928,7 +4916,7 @@ (get_local $7) ) ) - (set_local $20 + (set_local $21 (get_local $8) ) (block $do-once75 @@ -4942,7 +4930,7 @@ (i32.mul (i32.shr_s (i32.sub - (get_local $20) + (get_local $21) (get_local $5) ) (i32.const 2) @@ -4999,7 +4987,7 @@ (get_local $7) (i32.const 0) (i32.ne - (get_local $25) + (get_local $24) (i32.const 102) ) ) @@ -5015,7 +5003,7 @@ ) (tee_local $38 (i32.eq - (get_local $25) + (get_local $24) (i32.const 103) ) ) @@ -5031,7 +5019,7 @@ (i32.shr_s (i32.sub (get_local $9) - (get_local $20) + (get_local $21) ) (i32.const 2) ) @@ -5089,7 +5077,7 @@ ) (set_local $13 (i32.rem_u - (tee_local $25 + (tee_local $24 (i32.load (tee_local $6 (i32.add @@ -5155,13 +5143,13 @@ ) ) ) - (set_local $24 + (set_local $23 (select (f64.const 9007199254740994) (f64.const 9007199254740992) (i32.and (i32.div_u - (get_local $25) + (get_local $24) (get_local $12) ) (i32.const 1) @@ -5180,9 +5168,9 @@ (i32.const 45) ) ) - (set_local $24 + (set_local $23 (f64.neg - (get_local $24) + (get_local $23) ) ) (set_local $15 @@ -5197,7 +5185,7 @@ (get_local $6) (tee_local $13 (i32.sub - (get_local $25) + (get_local $24) (get_local $13) ) ) @@ -5205,10 +5193,10 @@ (br_if $do-once81 (f64.eq (f64.add - (get_local $24) + (get_local $23) (get_local $15) ) - (get_local $24) + (get_local $23) ) ) (i32.store @@ -5273,7 +5261,7 @@ (i32.mul (i32.shr_s (i32.sub - (get_local $20) + (get_local $21) (get_local $5) ) (i32.const 2) @@ -5361,7 +5349,7 @@ (get_local $12) ) (block - (set_local $25 + (set_local $24 (i32.const 0) ) (set_local $9 @@ -5380,7 +5368,7 @@ ) ) (block - (set_local $25 + (set_local $24 (i32.const 1) ) (set_local $9 @@ -5470,7 +5458,7 @@ ) ) (block - (set_local $20 + (set_local $21 (get_local $5) ) (br $do-once91 @@ -5480,7 +5468,7 @@ ) (block $do-once93 (if - (get_local $25) + (get_local $24) (block (if (i32.eqz @@ -5553,7 +5541,7 @@ (i32.shr_s (i32.sub (get_local $9) - (get_local $20) + (get_local $21) ) (i32.const 2) ) @@ -5571,7 +5559,7 @@ (i32.const 102) ) (block (result i32) - (set_local $20 + (set_local $21 (i32.const 0) ) (select @@ -5598,7 +5586,7 @@ ) ) (block (result i32) - (set_local $20 + (set_local $21 (i32.const 0) ) (select @@ -5630,7 +5618,7 @@ ) ) (block (result i32) - (set_local $20 + (set_local $21 (i32.and (get_local $11) (i32.const 8) @@ -5649,122 +5637,120 @@ (tee_local $32 (i32.or (get_local $5) - (get_local $20) + (get_local $21) ) ) (i32.const 0) ) ) - (tee_local $7 - (if (result i32) - (tee_local $17 - (i32.eq - (i32.or - (get_local $7) - (i32.const 32) - ) - (i32.const 102) + (if (result i32) + (tee_local $17 + (i32.eq + (i32.or + (get_local $7) + (i32.const 32) ) + (i32.const 102) ) - (block (result i32) - (set_local $18 - (i32.const 0) - ) - (select + ) + (block (result i32) + (set_local $18 + (i32.const 0) + ) + (select + (get_local $13) + (i32.const 0) + (i32.gt_s (get_local $13) (i32.const 0) - (i32.gt_s - (get_local $13) - (i32.const 0) - ) ) ) - (block (result i32) - (if - (i32.lt_s - (i32.sub - (get_local $28) - (tee_local $6 - (call $_fmt_u - (tee_local $6 - (select - (get_local $33) + ) + (block (result i32) + (if + (i32.lt_s + (i32.sub + (get_local $28) + (tee_local $6 + (call $_fmt_u + (tee_local $6 + (select + (get_local $33) + (get_local $13) + (i32.lt_s (get_local $13) - (i32.lt_s - (get_local $13) - (i32.const 0) - ) + (i32.const 0) ) ) - (i32.shr_s - (i32.shl - (i32.lt_s - (get_local $6) - (i32.const 0) - ) - (i32.const 31) + ) + (i32.shr_s + (i32.shl + (i32.lt_s + (get_local $6) + (i32.const 0) ) (i32.const 31) ) - (get_local $34) + (i32.const 31) ) + (get_local $34) ) ) - (i32.const 2) ) - (loop $while-in98 - (i32.store8 - (tee_local $6 - (i32.add - (get_local $6) - (i32.const -1) - ) - ) - (i32.const 48) - ) - (br_if $while-in98 - (i32.lt_s - (i32.sub - (get_local $28) - (get_local $6) - ) - (i32.const 2) + (i32.const 2) + ) + (loop $while-in98 + (i32.store8 + (tee_local $6 + (i32.add + (get_local $6) + (i32.const -1) ) ) + (i32.const 48) ) - ) - (i32.store8 - (i32.add - (get_local $6) - (i32.const -1) - ) - (i32.add - (i32.and - (i32.shr_s - (get_local $13) - (i32.const 31) + (br_if $while-in98 + (i32.lt_s + (i32.sub + (get_local $28) + (get_local $6) ) (i32.const 2) ) - (i32.const 43) ) ) - (i32.store8 - (tee_local $6 - (i32.add - (get_local $6) - (i32.const -2) + ) + (i32.store8 + (i32.add + (get_local $6) + (i32.const -1) + ) + (i32.add + (i32.and + (i32.shr_s + (get_local $13) + (i32.const 31) ) + (i32.const 2) ) - (get_local $7) + (i32.const 43) ) - (set_local $18 - (get_local $6) - ) - (i32.sub - (get_local $28) - (get_local $6) + ) + (i32.store8 + (tee_local $6 + (i32.add + (get_local $6) + (i32.const -2) + ) ) + (get_local $7) + ) + (set_local $18 + (get_local $6) + ) + (i32.sub + (get_local $28) + (get_local $6) ) ) ) @@ -5850,7 +5836,7 @@ (br_if $do-once103 (i32.le_u (get_local $7) - (get_local $23) + (get_local $22) ) ) (loop $while-in106 @@ -5866,7 +5852,7 @@ (br_if $while-in106 (i32.gt_u (get_local $7) - (get_local $23) + (get_local $22) ) ) ) @@ -5956,7 +5942,7 @@ (get_local $30) ) ) - (get_local $23) + (get_local $22) ) (loop $while-in112 (i32.store8 @@ -5971,7 +5957,7 @@ (br_if $while-in112 (i32.gt_u (get_local $6) - (get_local $23) + (get_local $22) ) ) ) @@ -6053,7 +6039,7 @@ (get_local $12) (i32.const 4) ) - (get_local $25) + (get_local $24) ) ) (if @@ -6064,7 +6050,7 @@ (block (set_local $17 (i32.eqz - (get_local $20) + (get_local $21) ) ) (set_local $6 @@ -6156,7 +6142,7 @@ (br_if $do-once115 (i32.le_u (get_local $5) - (get_local $23) + (get_local $22) ) ) (loop $while-in118 @@ -6172,7 +6158,7 @@ (br_if $while-in118 (i32.gt_u (get_local $5) - (get_local $23) + (get_local $22) ) ) ) @@ -6421,7 +6407,7 @@ (i32.const 4091) ) (br $__rjto$8 - (get_local $22) + (get_local $26) ) ) (set_local $9 @@ -6451,7 +6437,7 @@ ) (block (set_local $5 - (get_local $22) + (get_local $26) ) (set_local $8 (i32.const 0) @@ -6466,7 +6452,7 @@ (get_local $8) ) (set_local $8 - (get_local $22) + (get_local $26) ) (loop $while-in123 (i32.store8 @@ -6513,49 +6499,47 @@ (get_local $8) ) ) - (if - (i32.or - (i32.eqz - (i32.and - (get_local $7) - (i32.const 8) - ) - ) - (i32.and + (set_local $8 + (if (result i32) + (i32.or (i32.eqz - (i32.load - (tee_local $11 - (get_local $19) - ) + (i32.and + (get_local $7) + (i32.const 8) ) ) - (i32.eqz - (i32.load offset=4 - (get_local $11) + (i32.and + (i32.eqz + (i32.load + (tee_local $11 + (get_local $19) + ) + ) + ) + (i32.eqz + (i32.load offset=4 + (get_local $11) + ) ) ) ) - ) - (block - (set_local $8 + (block (result i32) + (set_local $9 + (i32.const 4091) + ) (i32.const 0) ) - (set_local $9 - (i32.const 4091) - ) - ) - (block - (set_local $8 - (i32.const 2) - ) - (set_local $9 - (i32.add - (i32.shr_s - (get_local $18) - (i32.const 4) + (block (result i32) + (set_local $9 + (i32.add + (i32.shr_s + (get_local $18) + (i32.const 4) + ) + (i32.const 4091) ) - (i32.const 4091) ) + (i32.const 2) ) ) ) @@ -6567,7 +6551,7 @@ (call $_fmt_u (get_local $5) (get_local $7) - (get_local $22) + (get_local $26) ) ) (set_local $7 @@ -6825,33 +6809,33 @@ ) ) ) - (if - (i32.or - (get_local $6) - (tee_local $12 - (i32.or - (i32.ne - (i32.load - (tee_local $7 - (get_local $19) + (set_local $12 + (if (result i32) + (i32.or + (get_local $6) + (tee_local $12 + (i32.or + (i32.ne + (i32.load + (tee_local $7 + (get_local $19) + ) ) + (i32.const 0) ) - (i32.const 0) - ) - (i32.ne - (i32.load offset=4 - (get_local $7) + (i32.ne + (i32.load offset=4 + (get_local $7) + ) + (i32.const 0) ) - (i32.const 0) ) ) ) - ) - (block - (set_local $7 - (get_local $5) - ) - (set_local $12 + (block (result i32) + (set_local $7 + (get_local $5) + ) (select (get_local $6) (tee_local $5 @@ -6875,17 +6859,15 @@ ) ) ) - ) - (block - (set_local $7 - (get_local $22) - ) - (set_local $12 + (block (result i32) + (set_local $7 + (get_local $26) + ) (i32.const 0) ) ) ) - (get_local $22) + (get_local $26) ) ) (call $_pad @@ -7098,7 +7080,7 @@ ) ) (set_global $STACKTOP - (get_local $26) + (get_local $25) ) (get_local $16) ) |