summaryrefslogtreecommitdiff
path: root/test/wasm2js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js')
-rw-r--r--test/wasm2js/conversions-modified.2asm.js.opt8
-rw-r--r--test/wasm2js/float-ops.2asm.js.opt4
-rw-r--r--test/wasm2js/i64-rotate.2asm.js.opt16
-rw-r--r--test/wasm2js/stack-modified.2asm.js.opt8
4 files changed, 18 insertions, 18 deletions
diff --git a/test/wasm2js/conversions-modified.2asm.js.opt b/test/wasm2js/conversions-modified.2asm.js.opt
index fceed0c6c..b30a95a8e 100644
--- a/test/wasm2js/conversions-modified.2asm.js.opt
+++ b/test/wasm2js/conversions-modified.2asm.js.opt
@@ -60,7 +60,7 @@ function asmFunc(global, env, buffer) {
function $4($0) {
$0 = Math_fround($0);
- return ~~$0 >>> 0;
+ return ~~$0 >>> 0 | 0;
}
function $5($0) {
@@ -70,19 +70,19 @@ function asmFunc(global, env, buffer) {
function $6($0) {
$0 = +$0;
- return ~~$0 >>> 0;
+ return ~~$0 >>> 0 | 0;
}
function $7($0) {
$0 = Math_fround($0);
i64toi32_i32$HIGH_BITS = Math_fround(Math_abs($0)) >= Math_fround(1.0) ? ($0 > Math_fround(0.0) ? ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0 / Math_fround(4294967296.0)))), Math_fround(4294967296.0))) >>> 0 : ~~Math_fround(Math_ceil(Math_fround(Math_fround($0 - Math_fround(~~$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0) : 0;
- return ~~$0 >>> 0;
+ return ~~$0 >>> 0 | 0;
}
function $9($0) {
$0 = +$0;
i64toi32_i32$HIGH_BITS = Math_abs($0) >= 1.0 ? ($0 > 0.0 ? ~~Math_min(Math_floor($0 / 4294967296.0), 4294967295.0) >>> 0 : ~~Math_ceil(($0 - +(~~$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0) : 0;
- return ~~$0 >>> 0;
+ return ~~$0 >>> 0 | 0;
}
function $11($0) {
diff --git a/test/wasm2js/float-ops.2asm.js.opt b/test/wasm2js/float-ops.2asm.js.opt
index 7f19a7a31..7e3413736 100644
--- a/test/wasm2js/float-ops.2asm.js.opt
+++ b/test/wasm2js/float-ops.2asm.js.opt
@@ -236,12 +236,12 @@ function asmFunc(global, env, buffer) {
function $41($0) {
$0 = Math_fround($0);
- return ~~$0 >>> 0;
+ return ~~$0 >>> 0 | 0;
}
function $42($0) {
$0 = +$0;
- return ~~$0 >>> 0;
+ return ~~$0 >>> 0 | 0;
}
function $47($0) {
diff --git a/test/wasm2js/i64-rotate.2asm.js.opt b/test/wasm2js/i64-rotate.2asm.js.opt
index 69fefab76..a3e2091fc 100644
--- a/test/wasm2js/i64-rotate.2asm.js.opt
+++ b/test/wasm2js/i64-rotate.2asm.js.opt
@@ -35,9 +35,9 @@ function asmFunc(global, env, buffer) {
$5 = $6;
$3 = $5 & 31;
if (32 <= $5 >>> 0) {
- $3 = -1 >>> $3
+ $3 = -1 >>> $3 | 0
} else {
- $4 = -1 >>> $3;
+ $4 = -1 >>> $3 | 0;
$3 = (1 << $3) - 1 << 32 - $3 | -1 >>> $3;
}
$5 = $3 & $0;
@@ -66,9 +66,9 @@ function asmFunc(global, env, buffer) {
$1 = $4 & 31;
if (32 <= $4 >>> 0) {
$2 = 0;
- $0 = $3 >>> $1;
+ $0 = $3 >>> $1 | 0;
} else {
- $2 = $3 >>> $1;
+ $2 = $3 >>> $1 | 0;
$0 = ((1 << $1) - 1 & $3) << 32 - $1 | $0 >>> $1;
}
$0 = $0 | $6;
@@ -92,9 +92,9 @@ function asmFunc(global, env, buffer) {
$5 = $6 & 31;
if (32 <= $6 >>> 0) {
$4 = 0;
- $6 = $3 >>> $5;
+ $6 = $3 >>> $5 | 0;
} else {
- $4 = $3 >>> $5;
+ $4 = $3 >>> $5 | 0;
$6 = ((1 << $5) - 1 & $3) << 32 - $5 | $7 >>> $5;
}
$7 = $4;
@@ -102,9 +102,9 @@ function asmFunc(global, env, buffer) {
$5 = $3 & 31;
if (32 <= $3 >>> 0) {
$4 = 0;
- $2 = -1 >>> $5;
+ $2 = -1 >>> $5 | 0;
} else {
- $4 = -1 >>> $5;
+ $4 = -1 >>> $5 | 0;
$2 = (1 << $5) - 1 << 32 - $5 | -1 >>> $5;
}
$0 = $2 & $0;
diff --git a/test/wasm2js/stack-modified.2asm.js.opt b/test/wasm2js/stack-modified.2asm.js.opt
index d321f6f67..2cd863f72 100644
--- a/test/wasm2js/stack-modified.2asm.js.opt
+++ b/test/wasm2js/stack-modified.2asm.js.opt
@@ -52,15 +52,15 @@ function asmFunc(global, env, buffer) {
function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1, $1, $2, $3) {
var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
- $4 = $2 >>> 16;
- $5 = $0_1 >>> 16;
+ $4 = $2 >>> 16 | 0;
+ $5 = $0_1 >>> 16 | 0;
$9 = Math_imul($4, $5);
$6 = $2 & 65535;
$7 = $0_1 & 65535;
$8 = Math_imul($6, $7);
- $5 = ($8 >>> 16) + Math_imul($5, $6) | 0;
+ $5 = ($8 >>> 16 | 0) + Math_imul($5, $6) | 0;
$4 = ($5 & 65535) + Math_imul($4, $7) | 0;
- $0_1 = (((Math_imul($1, $2) + $9 | 0) + Math_imul($0_1, $3) | 0) + ($5 >>> 16) | 0) + ($4 >>> 16) | 0;
+ $0_1 = (Math_imul($1, $2) + $9 | 0) + Math_imul($0_1, $3) + ($5 >>> 16) + ($4 >>> 16) | 0;
$1 = $8 & 65535 | $4 << 16;
i64toi32_i32$HIGH_BITS = $0_1;
return $1;