summaryrefslogtreecommitdiff
path: root/test/wasm2js/i64-rotate.2asm.js.opt
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/i64-rotate.2asm.js.opt')
-rw-r--r--test/wasm2js/i64-rotate.2asm.js.opt52
1 files changed, 24 insertions, 28 deletions
diff --git a/test/wasm2js/i64-rotate.2asm.js.opt b/test/wasm2js/i64-rotate.2asm.js.opt
index 3e3eea811..fd5eca90a 100644
--- a/test/wasm2js/i64-rotate.2asm.js.opt
+++ b/test/wasm2js/i64-rotate.2asm.js.opt
@@ -31,33 +31,32 @@ function asmFunc(global, env, buffer) {
}
function __wasm_rotl_i64($0, $1, $2) {
- var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0;
+ var $3 = 0, $4 = 0, $5 = 0, $6 = 0;
$6 = $2 & 63;
$5 = $6;
$3 = $5 & 31;
if (32 >>> 0 <= $5 >>> 0) {
- $7 = -1 >>> $3
+ $3 = -1 >>> $3
} else {
{
$4 = -1 >>> $3;
- $7 = (1 << $3) - 1 << 32 - $3 | -1 >>> $3;
+ $3 = (1 << $3) - 1 << 32 - $3 | -1 >>> $3;
}
}
- $5 = $7 & $0;
+ $5 = $3 & $0;
$3 = $1 & $4;
$4 = $6 & 31;
if (32 >>> 0 <= $6 >>> 0) {
{
$3 = $5 << $4;
- $8 = 0;
+ $6 = 0;
}
} else {
{
$3 = (1 << $4) - 1 & $5 >>> 32 - $4 | $3 << $4;
- $8 = $5 << $4;
+ $6 = $5 << $4;
}
}
- $6 = $8;
$5 = $3;
$4 = 0 - $2 & 63;
$3 = $4;
@@ -65,94 +64,91 @@ function asmFunc(global, env, buffer) {
if (32 >>> 0 <= ($3 & 63) >>> 0) {
{
$3 = -1 << $2;
- $9 = 0;
+ $2 = 0;
}
} else {
{
$3 = (1 << $2) - 1 & -1 >>> 32 - $2 | -1 << $2;
- $9 = -1 << $2;
+ $2 = -1 << $2;
}
}
- $0 = $9 & $0;
+ $0 = $2 & $0;
$3 = $1 & $3;
$1 = $4 & 31;
if (32 >>> 0 <= $4 >>> 0) {
{
$2 = 0;
- $10 = $3 >>> $1;
+ $0 = $3 >>> $1;
}
} else {
{
$2 = $3 >>> $1;
- $10 = ((1 << $1) - 1 & $3) << 32 - $1 | $0 >>> $1;
+ $0 = ((1 << $1) - 1 & $3) << 32 - $1 | $0 >>> $1;
}
}
- $0 = $10 | $6;
+ $0 = $0 | $6;
i64toi32_i32$HIGH_BITS = $2 | $5;
return $0;
}
function __wasm_rotr_i64($0, $1, $2) {
- var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0, $11 = 0;
+ var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0;
$6 = $2 & 63;
- $7 = $6;
$3 = $6 & 31;
if (32 >>> 0 <= $6 >>> 0) {
{
$4 = -1 << $3;
- $8 = 0;
+ $7 = 0;
}
} else {
{
$4 = (1 << $3) - 1 & -1 >>> 32 - $3 | -1 << $3;
- $8 = -1 << $3;
+ $7 = -1 << $3;
}
}
- $7 = $8 & $0;
+ $7 = $7 & $0;
$3 = $1 & $4;
$5 = $6 & 31;
if (32 >>> 0 <= $6 >>> 0) {
{
$4 = 0;
- $9 = $3 >>> $5;
+ $6 = $3 >>> $5;
}
} else {
{
$4 = $3 >>> $5;
- $9 = ((1 << $5) - 1 & $3) << 32 - $5 | $7 >>> $5;
+ $6 = ((1 << $5) - 1 & $3) << 32 - $5 | $7 >>> $5;
}
}
- $6 = $9;
$7 = $4;
$3 = 0 - $2 & 63;
- $2 = $3;
$5 = $3 & 31;
if (32 >>> 0 <= ($3 & 63) >>> 0) {
{
$4 = 0;
- $10 = -1 >>> $5;
+ $2 = -1 >>> $5;
}
} else {
{
$4 = -1 >>> $5;
- $10 = (1 << $5) - 1 << 32 - $5 | -1 >>> $5;
+ $2 = (1 << $5) - 1 << 32 - $5 | -1 >>> $5;
}
}
- $0 = $10 & $0;
+ $0 = $2 & $0;
$1 = $1 & $4;
$4 = $3 & 31;
if (32 >>> 0 <= $3 >>> 0) {
{
$2 = $0 << $4;
- $11 = 0;
+ $0 = 0;
}
} else {
{
$2 = (1 << $4) - 1 & $0 >>> 32 - $4 | $1 << $4;
- $11 = $0 << $4;
+ $0 = $0 << $4;
}
}
- $0 = $11 | $6;
+ $0 = $0 | $6;
i64toi32_i32$HIGH_BITS = $2 | $7;
return $0;
}