diff options
Diffstat (limited to 'test/emcc_hello_world.fromasm.imprecise')
-rw-r--r-- | test/emcc_hello_world.fromasm.imprecise | 146 |
1 files changed, 49 insertions, 97 deletions
diff --git a/test/emcc_hello_world.fromasm.imprecise b/test/emcc_hello_world.fromasm.imprecise index 25ca0c3da..46a1c48c4 100644 --- a/test/emcc_hello_world.fromasm.imprecise +++ b/test/emcc_hello_world.fromasm.imprecise @@ -148,7 +148,6 @@ ) (drop (call $_printf - (i32.const 672) (get_local $0) ) ) @@ -568,10 +567,8 @@ ) ) (set_local $0 - (tee_local $1 - (call $___fflush_unlocked - (get_local $0) - ) + (call $___fflush_unlocked + (get_local $0) ) ) ) @@ -634,9 +631,9 @@ ) (get_local $0) ) - (func $_printf (; 33 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32) - (local $2 i32) - (set_local $2 + (func $_printf (; 33 ;) (; has Stack IR ;) (param $0 i32) (result i32) + (local $1 i32) + (set_local $1 (get_global $STACKTOP) ) (set_global $STACKTOP @@ -653,20 +650,20 @@ (call $abort) ) (i32.store - (get_local $2) (get_local $1) + (get_local $0) ) (set_local $0 (call $_vfprintf (i32.load (i32.const 8) ) - (get_local $0) - (get_local $2) + (i32.const 672) + (get_local $1) ) ) (set_global $STACKTOP - (get_local $2) + (get_local $1) ) (get_local $0) ) @@ -1027,7 +1024,6 @@ (local $11 i32) (local $12 i32) (local $13 i32) - (local $14 i32) (set_local $4 (get_global $STACKTOP) ) @@ -1551,7 +1547,7 @@ ) ) ) - (func $_wcrtomb (; 38 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) + (func $_wcrtomb (; 38 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32) (block $do-once (result i32) (if (result i32) (get_local $0) @@ -1731,28 +1727,20 @@ (call $_wcrtomb (get_local $0) (get_local $1) - (i32.const 0) ) (i32.const 0) ) ) - (func $_memchr (; 40 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) + (func $_memchr (; 40 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32) + (local $2 i32) (local $3 i32) - (local $4 i32) - (local $5 i32) - (set_local $5 - (i32.and - (get_local $1) - (i32.const 255) - ) - ) (block $label$break$L8 (block $__rjti$2 (if (i32.and - (tee_local $4 + (tee_local $3 (i32.ne - (get_local $2) + (get_local $1) (i32.const 0) ) ) @@ -1765,27 +1753,17 @@ ) ) (block - (set_local $4 - (i32.and - (get_local $1) - (i32.const 255) - ) - ) - (set_local $3 - (get_local $2) - ) (set_local $2 + (get_local $1) + ) + (set_local $1 (get_local $0) ) (loop $while-in (br_if $__rjti$2 - (i32.eq + (i32.eqz (i32.load8_u - (get_local $2) - ) - (i32.and - (get_local $4) - (i32.const 255) + (get_local $1) ) ) ) @@ -1793,9 +1771,9 @@ (i32.and (tee_local $0 (i32.ne - (tee_local $3 + (tee_local $2 (i32.add - (get_local $3) + (get_local $2) (i32.const -1) ) ) @@ -1804,9 +1782,9 @@ ) (i32.ne (i32.and - (tee_local $2 + (tee_local $1 (i32.add - (get_local $2) + (get_local $1) (i32.const 1) ) ) @@ -1819,14 +1797,14 @@ ) ) (block - (set_local $3 - (get_local $2) - ) (set_local $2 + (get_local $1) + ) + (set_local $1 (get_local $0) ) (set_local $0 - (get_local $4) + (get_local $3) ) ) ) @@ -1839,27 +1817,13 @@ (br $label$break$L8) ) (set_local $0 - (get_local $3) + (get_local $2) ) (if - (i32.ne - (i32.load8_u - (get_local $2) - ) - (tee_local $1 - (i32.and - (get_local $1) - (i32.const 255) - ) - ) + (i32.load8_u + (get_local $1) ) (block - (set_local $3 - (i32.mul - (get_local $5) - (i32.const 16843009) - ) - ) (block $__rjto$0 (block $__rjti$0 (br_if $__rjti$0 @@ -1874,12 +1838,9 @@ (i32.and (i32.xor (i32.and - (tee_local $4 - (i32.xor - (i32.load - (get_local $2) - ) - (get_local $3) + (tee_local $3 + (i32.load + (get_local $1) ) ) (i32.const -2139062144) @@ -1887,15 +1848,15 @@ (i32.const -2139062144) ) (i32.add - (get_local $4) + (get_local $3) (i32.const -16843009) ) ) ) (block - (set_local $2 + (set_local $1 (i32.add - (get_local $2) + (get_local $1) (i32.const 4) ) ) @@ -1930,19 +1891,15 @@ ) (loop $while-in5 (br_if $label$break$L8 - (i32.eq + (i32.eqz (i32.load8_u - (get_local $2) - ) - (i32.and (get_local $1) - (i32.const 255) ) ) ) - (set_local $2 + (set_local $1 (i32.add - (get_local $2) + (get_local $1) (i32.const 1) ) ) @@ -1962,7 +1919,7 @@ ) ) (select - (get_local $2) + (get_local $1) (i32.const 0) (get_local $0) ) @@ -4460,7 +4417,6 @@ (get_global $tempRet0) ) (i32.const 1000000000) - (i32.const 0) ) ) (set_local $12 @@ -4468,7 +4424,6 @@ (get_local $12) (get_local $18) (i32.const 1000000000) - (i32.const 0) ) ) (br_if $while-in66 @@ -6397,7 +6352,6 @@ (tee_local $13 (call $_memchr (get_local $7) - (i32.const 0) (get_local $6) ) ) @@ -7339,7 +7293,6 @@ (get_local $0) (get_local $1) (i32.const 10) - (i32.const 0) ) ) (i32.const 48) @@ -7350,7 +7303,6 @@ (get_local $0) (get_local $1) (i32.const 10) - (i32.const 0) ) ) (set_local $4 @@ -15224,18 +15176,18 @@ ) (get_local $3) ) - (func $___udivdi3 (; 57 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32) + (func $___udivdi3 (; 57 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) (call $___udivmoddi4 (get_local $0) (get_local $1) (get_local $2) - (get_local $3) + (i32.const 0) (i32.const 0) ) ) - (func $___uremdi3 (; 58 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32) - (local $4 i32) - (set_local $4 + (func $___uremdi3 (; 58 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (param $2 i32) (result i32) + (local $3 i32) + (set_local $3 (get_global $STACKTOP) ) (set_global $STACKTOP @@ -15249,20 +15201,20 @@ (get_local $0) (get_local $1) (get_local $2) + (i32.const 0) (get_local $3) - (get_local $4) ) ) (set_global $STACKTOP - (get_local $4) + (get_local $3) ) (set_global $tempRet0 (i32.load offset=4 - (get_local $4) + (get_local $3) ) ) (i32.load - (get_local $4) + (get_local $3) ) ) (func $___udivmoddi4 (; 59 ;) (; has Stack IR ;) (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (param $r i32) (result i32) |