summaryrefslogtreecommitdiff
path: root/test/wasm2js/call.2asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/call.2asm.js')
-rw-r--r--test/wasm2js/call.2asm.js50
1 files changed, 4 insertions, 46 deletions
diff --git a/test/wasm2js/call.2asm.js b/test/wasm2js/call.2asm.js
index 04255b1fb..470e63c21 100644
--- a/test/wasm2js/call.2asm.js
+++ b/test/wasm2js/call.2asm.js
@@ -48,7 +48,6 @@ function asmFunc(global, env, buffer) {
$0$hi = $0$hi | 0;
var i64toi32_i32$0 = 0;
i64toi32_i32$0 = $0$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
i64toi32_i32$HIGH_BITS = i64toi32_i32$0;
return $0 | 0;
}
@@ -75,7 +74,6 @@ function asmFunc(global, env, buffer) {
$1$hi = $1$hi | 0;
var i64toi32_i32$0 = 0;
i64toi32_i32$0 = $1$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
i64toi32_i32$HIGH_BITS = i64toi32_i32$0;
return $1 | 0;
}
@@ -101,8 +99,6 @@ function asmFunc(global, env, buffer) {
var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0;
i64toi32_i32$0 = const_i64() | 0;
i64toi32_i32$1 = i64toi32_i32$HIGH_BITS;
- i64toi32_i32$1 = i64toi32_i32$1;
- i64toi32_i32$0 = i64toi32_i32$0;
i64toi32_i32$HIGH_BITS = i64toi32_i32$1;
return i64toi32_i32$0 | 0;
}
@@ -124,8 +120,6 @@ function asmFunc(global, env, buffer) {
i64toi32_i32$0 = 0;
i64toi32_i32$0 = id_i64(64 | 0, i64toi32_i32$0 | 0) | 0;
i64toi32_i32$1 = i64toi32_i32$HIGH_BITS;
- i64toi32_i32$1 = i64toi32_i32$1;
- i64toi32_i32$0 = i64toi32_i32$0;
i64toi32_i32$HIGH_BITS = i64toi32_i32$1;
return i64toi32_i32$0 | 0;
}
@@ -147,8 +141,6 @@ function asmFunc(global, env, buffer) {
i64toi32_i32$0 = 0;
i64toi32_i32$0 = i32_i64(32 | 0, 64 | 0, i64toi32_i32$0 | 0) | 0;
i64toi32_i32$1 = i64toi32_i32$HIGH_BITS;
- i64toi32_i32$1 = i64toi32_i32$1;
- i64toi32_i32$0 = i64toi32_i32$0;
i64toi32_i32$HIGH_BITS = i64toi32_i32$1;
return i64toi32_i32$0 | 0;
}
@@ -164,22 +156,18 @@ function asmFunc(global, env, buffer) {
function fac($0, $0$hi) {
$0 = $0 | 0;
$0$hi = $0$hi | 0;
- var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$5 = 0, $8 = 0, $8$hi = 0, i64toi32_i32$3 = 0, $6 = 0, $6$hi = 0;
+ var i64toi32_i32$5 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, $8 = 0, $8$hi = 0, i64toi32_i32$3 = 0, $6 = 0, $6$hi = 0;
i64toi32_i32$0 = $0$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
if (($0 | i64toi32_i32$0 | 0 | 0) == (0 | 0)) {
i64toi32_i32$0 = 0;
$8 = 1;
$8$hi = i64toi32_i32$0;
} else {
i64toi32_i32$0 = $0$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
- i64toi32_i32$0 = i64toi32_i32$0;
i64toi32_i32$2 = $0;
i64toi32_i32$3 = 1;
i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) + 0 | 0;
i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0;
- i64toi32_i32$5 = i64toi32_i32$5;
i64toi32_i32$5 = fac(i64toi32_i32$2 - i64toi32_i32$3 | 0 | 0, i64toi32_i32$5 | 0) | 0;
i64toi32_i32$2 = i64toi32_i32$HIGH_BITS;
$6 = i64toi32_i32$5;
@@ -188,12 +176,10 @@ function asmFunc(global, env, buffer) {
i64toi32_i32$5 = $6$hi;
i64toi32_i32$5 = __wasm_i64_mul($0 | 0, i64toi32_i32$0 | 0, $6 | 0, i64toi32_i32$5 | 0) | 0;
i64toi32_i32$2 = i64toi32_i32$HIGH_BITS;
- i64toi32_i32$2 = i64toi32_i32$2;
$8 = i64toi32_i32$5;
$8$hi = i64toi32_i32$2;
}
i64toi32_i32$2 = $8$hi;
- i64toi32_i32$2 = i64toi32_i32$2;
i64toi32_i32$5 = $8;
i64toi32_i32$HIGH_BITS = i64toi32_i32$2;
return i64toi32_i32$5 | 0;
@@ -204,17 +190,14 @@ function asmFunc(global, env, buffer) {
$0$hi = $0$hi | 0;
$1 = $1 | 0;
$1$hi = $1$hi | 0;
- var i64toi32_i32$5 = 0, i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, $11 = 0, $11$hi = 0, i64toi32_i32$3 = 0, $6 = 0, $6$hi = 0, $9 = 0, $9$hi = 0;
+ var i64toi32_i32$5 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, $11 = 0, $11$hi = 0, i64toi32_i32$3 = 0, $6 = 0, $6$hi = 0, $9 = 0, $9$hi = 0;
i64toi32_i32$0 = $0$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
if (($0 | i64toi32_i32$0 | 0 | 0) == (0 | 0)) {
i64toi32_i32$0 = $1$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
$11 = $1;
$11$hi = i64toi32_i32$0;
} else {
i64toi32_i32$0 = $0$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
i64toi32_i32$2 = $0;
i64toi32_i32$3 = 1;
i64toi32_i32$5 = (i64toi32_i32$2 >>> 0 < i64toi32_i32$3 >>> 0) + 0 | 0;
@@ -233,12 +216,10 @@ function asmFunc(global, env, buffer) {
i64toi32_i32$2 = $9$hi;
i64toi32_i32$2 = fac_acc($6 | 0, i64toi32_i32$5 | 0, $9 | 0, i64toi32_i32$2 | 0) | 0;
i64toi32_i32$5 = i64toi32_i32$HIGH_BITS;
- i64toi32_i32$5 = i64toi32_i32$5;
$11 = i64toi32_i32$2;
$11$hi = i64toi32_i32$5;
}
i64toi32_i32$5 = $11$hi;
- i64toi32_i32$5 = i64toi32_i32$5;
i64toi32_i32$2 = $11;
i64toi32_i32$HIGH_BITS = i64toi32_i32$5;
return i64toi32_i32$2 | 0;
@@ -247,9 +228,8 @@ function asmFunc(global, env, buffer) {
function fib($0, $0$hi) {
$0 = $0 | 0;
$0$hi = $0$hi | 0;
- var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$6 = 0, $10 = 0, $10$hi = 0, $5 = 0, $5$hi = 0, $8 = 0, $8$hi = 0;
+ var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$6 = 0, $10 = 0, $10$hi = 0, $5 = 0, $5$hi = 0, $8 = 0, $8$hi = 0;
i64toi32_i32$0 = $0$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
i64toi32_i32$2 = $0;
i64toi32_i32$1 = 0;
i64toi32_i32$3 = 1;
@@ -259,7 +239,6 @@ function asmFunc(global, env, buffer) {
$10$hi = i64toi32_i32$2;
} else {
i64toi32_i32$2 = $0$hi;
- i64toi32_i32$2 = i64toi32_i32$2;
i64toi32_i32$3 = $0;
i64toi32_i32$0 = 0;
i64toi32_i32$1 = 2;
@@ -267,7 +246,6 @@ function asmFunc(global, env, buffer) {
i64toi32_i32$6 = i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0;
i64toi32_i32$5 = i64toi32_i32$6 + i64toi32_i32$0 | 0;
i64toi32_i32$5 = i64toi32_i32$2 - i64toi32_i32$5 | 0;
- i64toi32_i32$5 = i64toi32_i32$5;
i64toi32_i32$5 = fib(i64toi32_i32$4 | 0, i64toi32_i32$5 | 0) | 0;
i64toi32_i32$3 = i64toi32_i32$HIGH_BITS;
$5 = i64toi32_i32$5;
@@ -281,7 +259,6 @@ function asmFunc(global, env, buffer) {
i64toi32_i32$6 = i64toi32_i32$2 >>> 0 < i64toi32_i32$1 >>> 0;
i64toi32_i32$4 = i64toi32_i32$6 + i64toi32_i32$5 | 0;
i64toi32_i32$4 = i64toi32_i32$3 - i64toi32_i32$4 | 0;
- i64toi32_i32$4 = i64toi32_i32$4;
i64toi32_i32$4 = fib(i64toi32_i32$0 | 0, i64toi32_i32$4 | 0) | 0;
i64toi32_i32$2 = i64toi32_i32$HIGH_BITS;
$8 = i64toi32_i32$4;
@@ -293,12 +270,10 @@ function asmFunc(global, env, buffer) {
i64toi32_i32$5 = i64toi32_i32$3 + i64toi32_i32$1 | 0;
i64toi32_i32$0 = i64toi32_i32$2 + i64toi32_i32$4 | 0;
if (i64toi32_i32$5 >>> 0 < i64toi32_i32$1 >>> 0) i64toi32_i32$0 = i64toi32_i32$0 + 1 | 0;
- i64toi32_i32$0 = i64toi32_i32$0;
$10 = i64toi32_i32$5;
$10$hi = i64toi32_i32$0;
}
i64toi32_i32$0 = $10$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
i64toi32_i32$3 = $10;
i64toi32_i32$HIGH_BITS = i64toi32_i32$0;
return i64toi32_i32$3 | 0;
@@ -309,14 +284,11 @@ function asmFunc(global, env, buffer) {
$0$hi = $0$hi | 0;
var i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, $6 = 0, i64toi32_i32$3 = 0;
i64toi32_i32$0 = $0$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
if (($0 | i64toi32_i32$0 | 0 | 0) == (0 | 0)) $6 = 44; else {
i64toi32_i32$0 = $0$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
i64toi32_i32$3 = 1;
i64toi32_i32$5 = ($0 >>> 0 < i64toi32_i32$3 >>> 0) + 0 | 0;
i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0;
- i64toi32_i32$5 = i64toi32_i32$5;
$6 = odd($0 - i64toi32_i32$3 | 0 | 0, i64toi32_i32$5 | 0) | 0;
}
return $6 | 0;
@@ -327,14 +299,11 @@ function asmFunc(global, env, buffer) {
$0$hi = $0$hi | 0;
var i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, $6 = 0, i64toi32_i32$3 = 0;
i64toi32_i32$0 = $0$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
if (($0 | i64toi32_i32$0 | 0 | 0) == (0 | 0)) $6 = 99; else {
i64toi32_i32$0 = $0$hi;
- i64toi32_i32$0 = i64toi32_i32$0;
i64toi32_i32$3 = 1;
i64toi32_i32$5 = ($0 >>> 0 < i64toi32_i32$3 >>> 0) + 0 | 0;
i64toi32_i32$5 = i64toi32_i32$0 - i64toi32_i32$5 | 0;
- i64toi32_i32$5 = i64toi32_i32$5;
$6 = even($0 - i64toi32_i32$3 | 0 | 0, i64toi32_i32$5 | 0) | 0;
}
return $6 | 0;
@@ -357,19 +326,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_1 = 0, $22_1 = 0, var$6 = 0, $24 = 0, $17_1 = 0, $18_1 = 0, $23_1 = 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_1 = 0, $22_1 = 0, var$6 = 0, $24 = 0, $17_1 = 0, $18_1 = 0, $23_1 = 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_1 = Math_imul(var$4, var$5);
$18_1 = 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;
@@ -381,10 +346,8 @@ function asmFunc(global, env, buffer) {
i64toi32_i32$1 = i64toi32_i32$0 >>> i64toi32_i32$4 | 0;
$21_1 = (((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_1 = $17_1 + Math_imul($18_1, $21_1) | 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;
@@ -396,7 +359,6 @@ function asmFunc(global, env, buffer) {
i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
$22_1 = (((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_1 + Math_imul($22_1, var$3) | 0;
var$2 = var$2 & 65535 | 0;
var$3 = var$3 & 65535 | 0;
@@ -405,7 +367,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;
@@ -425,7 +386,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;
@@ -443,8 +403,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;
}