diff options
Diffstat (limited to 'test/wasm2js/fac.2asm.js')
-rw-r--r-- | test/wasm2js/fac.2asm.js | 54 |
1 files changed, 6 insertions, 48 deletions
diff --git a/test/wasm2js/fac.2asm.js b/test/wasm2js/fac.2asm.js index 6aa6086ce..794fd2806 100644 --- a/test/wasm2js/fac.2asm.js +++ b/test/wasm2js/fac.2asm.js @@ -35,21 +35,18 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = 1; i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + 0 | 0; i64toi32_i32$5 = $0$hi - i64toi32_i32$5 | 0; - i64toi32_i32$5 = i64toi32_i32$5; i64toi32_i32$5 = $0(i64toi32_i32$3 - i64toi32_i32$1 | 0 | 0, i64toi32_i32$5 | 0) | 0; i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; $6 = i64toi32_i32$5; $6$hi = i64toi32_i32$3; i64toi32_i32$3 = $0$hi; i64toi32_i32$5 = $6$hi; - i64toi32_i32$5 = __wasm_i64_mul($0_1 | 0, i64toi32_i32$3 | 0, $6 | 0, i64toi32_i32$5 | 0) | 0; + i64toi32_i32$5 = __wasm_i64_mul($0_1 | 0, $0$hi | 0, $6 | 0, i64toi32_i32$5 | 0) | 0; i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$3 = i64toi32_i32$3; $8 = i64toi32_i32$5; $8$hi = i64toi32_i32$3; } i64toi32_i32$3 = $8$hi; - i64toi32_i32$3 = i64toi32_i32$3; i64toi32_i32$5 = $8; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; return i64toi32_i32$5 | 0; @@ -69,21 +66,18 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = 1; i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + 0 | 0; i64toi32_i32$5 = n$hi - i64toi32_i32$5 | 0; - i64toi32_i32$5 = i64toi32_i32$5; i64toi32_i32$5 = fac_rec_named(i64toi32_i32$3 - i64toi32_i32$1 | 0 | 0, i64toi32_i32$5 | 0) | 0; i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; $6 = i64toi32_i32$5; $6$hi = i64toi32_i32$3; i64toi32_i32$3 = n$hi; i64toi32_i32$5 = $6$hi; - i64toi32_i32$5 = __wasm_i64_mul(n | 0, i64toi32_i32$3 | 0, $6 | 0, i64toi32_i32$5 | 0) | 0; + i64toi32_i32$5 = __wasm_i64_mul(n | 0, n$hi | 0, $6 | 0, i64toi32_i32$5 | 0) | 0; i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$3 = i64toi32_i32$3; $8 = i64toi32_i32$5; $8$hi = i64toi32_i32$3; } i64toi32_i32$3 = $8$hi; - i64toi32_i32$3 = i64toi32_i32$3; i64toi32_i32$5 = $8; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; return i64toi32_i32$5 | 0; @@ -92,9 +86,8 @@ function asmFunc(global, env, buffer) { function $2($0_1, $0$hi) { $0_1 = $0_1 | 0; $0$hi = $0$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$5 = 0, i64toi32_i32$3 = 0, $1$hi = 0, $1 = 0, $2$hi = 0, i64toi32_i32$1 = 0, $2_1 = 0; + var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, $1$hi = 0, i64toi32_i32$5 = 0, $1 = 0, $2$hi = 0, i64toi32_i32$1 = 0, $2_1 = 0; i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = i64toi32_i32$0; $1 = $0_1; $1$hi = i64toi32_i32$0; i64toi32_i32$0 = 0; @@ -103,7 +96,6 @@ function asmFunc(global, env, buffer) { block : { loop_in : do { i64toi32_i32$0 = $1$hi; - i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$2 = $1; i64toi32_i32$1 = 0; i64toi32_i32$3 = 0; @@ -114,17 +106,14 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $2$hi; i64toi32_i32$0 = __wasm_i64_mul($1 | 0, i64toi32_i32$2 | 0, $2_1 | 0, i64toi32_i32$0 | 0) | 0; i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$2 = i64toi32_i32$2; $2_1 = i64toi32_i32$0; $2$hi = i64toi32_i32$2; i64toi32_i32$2 = $1$hi; - i64toi32_i32$2 = i64toi32_i32$2; i64toi32_i32$3 = $1; i64toi32_i32$0 = 0; i64toi32_i32$1 = 1; i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - i64toi32_i32$5 = i64toi32_i32$5; $1 = i64toi32_i32$3 - i64toi32_i32$1 | 0; $1$hi = i64toi32_i32$5; }; @@ -133,9 +122,6 @@ function asmFunc(global, env, buffer) { } while (1); }; i64toi32_i32$5 = $2$hi; - i64toi32_i32$5 = i64toi32_i32$5; - i64toi32_i32$5 = i64toi32_i32$5; - i64toi32_i32$5 = i64toi32_i32$5; i64toi32_i32$3 = $2_1; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; return i64toi32_i32$3 | 0; @@ -144,9 +130,8 @@ function asmFunc(global, env, buffer) { function $3(n, n$hi) { n = n | 0; n$hi = n$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$5 = 0, i64toi32_i32$3 = 0, i$hi = 0, i = 0, res$hi = 0, i64toi32_i32$1 = 0, res = 0; + var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i$hi = 0, i64toi32_i32$5 = 0, i = 0, res$hi = 0, i64toi32_i32$1 = 0, res = 0; i64toi32_i32$0 = n$hi; - i64toi32_i32$0 = i64toi32_i32$0; i = n; i$hi = i64toi32_i32$0; i64toi32_i32$0 = 0; @@ -155,7 +140,6 @@ function asmFunc(global, env, buffer) { done : { loop : do { i64toi32_i32$0 = i$hi; - i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$2 = i; i64toi32_i32$1 = 0; i64toi32_i32$3 = 0; @@ -166,17 +150,14 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = res$hi; i64toi32_i32$0 = __wasm_i64_mul(i | 0, i64toi32_i32$2 | 0, res | 0, i64toi32_i32$0 | 0) | 0; i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$2 = i64toi32_i32$2; res = i64toi32_i32$0; res$hi = i64toi32_i32$2; i64toi32_i32$2 = i$hi; - i64toi32_i32$2 = i64toi32_i32$2; i64toi32_i32$3 = i; i64toi32_i32$0 = 0; i64toi32_i32$1 = 1; i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0; - i64toi32_i32$5 = i64toi32_i32$5; i = i64toi32_i32$3 - i64toi32_i32$1 | 0; i$hi = i64toi32_i32$5; }; @@ -185,9 +166,6 @@ function asmFunc(global, env, buffer) { } while (1); }; i64toi32_i32$5 = res$hi; - i64toi32_i32$5 = i64toi32_i32$5; - i64toi32_i32$5 = i64toi32_i32$5; - i64toi32_i32$5 = i64toi32_i32$5; i64toi32_i32$3 = res; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; return i64toi32_i32$3 | 0; @@ -196,13 +174,12 @@ function asmFunc(global, env, buffer) { function $4($0_1, $0$hi) { $0_1 = $0_1 | 0; $0$hi = $0$hi | 0; - var i64toi32_i32$2 = 0, i64toi32_i32$5 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $1$hi = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, i64toi32_i32$4 = 0, $13 = 0, $14 = 0, $15 = 0; + var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$5 = 0, i64toi32_i32$3 = 0, $1$hi = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, i64toi32_i32$4 = 0, $13 = 0, $14 = 0, $15 = 0; i64toi32_i32$0 = 0; $1 = 1; $1$hi = i64toi32_i32$0; block : { i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$2 = $0_1; i64toi32_i32$1 = 0; i64toi32_i32$3 = 2; @@ -221,22 +198,17 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $0$hi; i64toi32_i32$0 = __wasm_i64_mul($1 | 0, i64toi32_i32$2 | 0, $0_1 | 0, i64toi32_i32$0 | 0) | 0; i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$2 = i64toi32_i32$2; $1 = i64toi32_i32$0; $1$hi = i64toi32_i32$2; i64toi32_i32$2 = $0$hi; - i64toi32_i32$2 = i64toi32_i32$2; i64toi32_i32$3 = $0_1; i64toi32_i32$0 = 4294967295; i64toi32_i32$1 = 4294967295; i64toi32_i32$4 = $0_1 + i64toi32_i32$1 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$0 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$1 >>> 0) i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0; - i64toi32_i32$5 = i64toi32_i32$5; $0_1 = i64toi32_i32$4; $0$hi = i64toi32_i32$5; - i64toi32_i32$5 = i64toi32_i32$5; - i64toi32_i32$5 = i64toi32_i32$5; i64toi32_i32$2 = $0_1; i64toi32_i32$3 = 0; i64toi32_i32$1 = 1; @@ -252,9 +224,6 @@ function asmFunc(global, env, buffer) { } while (1); }; i64toi32_i32$2 = $1$hi; - i64toi32_i32$2 = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$2; - i64toi32_i32$2 = i64toi32_i32$2; i64toi32_i32$5 = $1; i64toi32_i32$HIGH_BITS = i64toi32_i32$2; return i64toi32_i32$5 | 0; @@ -265,19 +234,15 @@ function asmFunc(global, env, buffer) { var$0$hi = var$0$hi | 0; var$1 = var$1 | 0; var$1$hi = var$1$hi | 0; - var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, var$2 = 0, i64toi32_i32$3 = 0, var$3 = 0, var$4 = 0, var$5 = 0, $21 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; + var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, var$2 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, var$3 = 0, var$4 = 0, var$5 = 0, $21 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; i64toi32_i32$0 = var$1$hi; - i64toi32_i32$0 = i64toi32_i32$0; var$2 = var$1; var$4 = var$2 >>> 16 | 0; i64toi32_i32$0 = var$0$hi; - i64toi32_i32$0 = i64toi32_i32$0; var$3 = var$0; var$5 = var$3 >>> 16 | 0; $17 = Math_imul(var$4, var$5); $18 = var$2; - i64toi32_i32$0 = i64toi32_i32$0; - i64toi32_i32$0 = i64toi32_i32$0; i64toi32_i32$2 = var$3; i64toi32_i32$1 = 0; i64toi32_i32$3 = 32; @@ -289,10 +254,8 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0; $21 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$0 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0; } - i64toi32_i32$1 = i64toi32_i32$1; $23 = $17 + Math_imul($18, $21) | 0; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$0 = var$1; i64toi32_i32$2 = 0; i64toi32_i32$3 = 32; @@ -304,7 +267,6 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0; $22 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0; } - i64toi32_i32$2 = i64toi32_i32$2; $29 = $23 + Math_imul($22, var$3) | 0; var$2 = var$2 & 65535 | 0; var$3 = var$3 & 65535 | 0; @@ -313,7 +275,6 @@ function asmFunc(global, env, buffer) { $45 = $29 + (var$2 >>> 16 | 0) | 0; var$2 = (var$2 & 65535 | 0) + Math_imul(var$4, var$3) | 0; i64toi32_i32$2 = 0; - i64toi32_i32$2 = i64toi32_i32$2; i64toi32_i32$1 = $45 + (var$2 >>> 16 | 0) | 0; i64toi32_i32$0 = 0; i64toi32_i32$3 = 32; @@ -333,7 +294,6 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $62$hi; i64toi32_i32$3 = var$2 << 16 | 0 | (var$6 & 65535 | 0) | 0; i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0; - i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3 | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$2 | 0; @@ -351,8 +311,6 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = var$1$hi; i64toi32_i32$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = i64toi32_i32$0; - i64toi32_i32$1 = i64toi32_i32$1; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } |