summaryrefslogtreecommitdiff
path: root/test/wasm2js/unary-ops.2asm.js.opt
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/unary-ops.2asm.js.opt')
-rw-r--r--test/wasm2js/unary-ops.2asm.js.opt28
1 files changed, 12 insertions, 16 deletions
diff --git a/test/wasm2js/unary-ops.2asm.js.opt b/test/wasm2js/unary-ops.2asm.js.opt
index 86eee0e0a..7bb08bde4 100644
--- a/test/wasm2js/unary-ops.2asm.js.opt
+++ b/test/wasm2js/unary-ops.2asm.js.opt
@@ -16,9 +16,8 @@ function asmFunc(env) {
var i64toi32_i32$HIGH_BITS = 0;
function $1($0) {
$0 = $0 | 0;
- var $1_1 = 0, $2 = 0;
+ var $1_1 = 0;
while (1) {
- $2 = $1_1;
if ($0) {
$0 = $0 - 1 & $0;
$1_1 = $1_1 + 1 | 0;
@@ -26,7 +25,7 @@ function asmFunc(env) {
}
break;
};
- return $2 | 0;
+ return $1_1 | 0;
}
function $6($0) {
@@ -45,24 +44,21 @@ function asmFunc(env) {
}
function legalstub$2($0, $1_1, $2, $3) {
- var $4 = 0, $5 = 0, $6_1 = 0, $7_1 = 0;
- $5 = $0;
- $4 = $1_1;
+ var $4 = 0, $5 = 0, $6_1 = 0;
+ $4 = $0;
while (1) {
- $1_1 = $6_1;
- $0 = $7_1;
- if ($5 | $4) {
- $0 = $5;
- $5 = $0 - 1 & $0;
- $4 = $4 - !$0 & $4;
- $6_1 = $6_1 + 1 | 0;
- $7_1 = $6_1 ? $7_1 : $7_1 + 1 | 0;
+ if ($1_1 | $4) {
+ $0 = $4;
+ $4 = $4 - 1 & $4;
+ $1_1 = $1_1 - !$0 & $1_1;
+ $5 = $5 + 1 | 0;
+ $6_1 = $5 ? $6_1 : $6_1 + 1 | 0;
continue;
}
break;
};
- i64toi32_i32$HIGH_BITS = $0;
- return ($1_1 | 0) == ($2 | 0) & ($3 | 0) == (i64toi32_i32$HIGH_BITS | 0);
+ i64toi32_i32$HIGH_BITS = $6_1;
+ return ($2 | 0) == ($5 | 0) & ($3 | 0) == (i64toi32_i32$HIGH_BITS | 0);
}
function legalstub$3($0, $1_1, $2) {