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.opt6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/wasm2js/unary-ops.2asm.js.opt b/test/wasm2js/unary-ops.2asm.js.opt
index b854489b6..272ea822c 100644
--- a/test/wasm2js/unary-ops.2asm.js.opt
+++ b/test/wasm2js/unary-ops.2asm.js.opt
@@ -26,7 +26,7 @@ function asmFunc(env) {
function $7($0) {
$0 = $0 | 0;
if ($0) {
- $0 = 31 - Math_clz32($0 + -1 ^ $0) | 0
+ $0 = 31 - Math_clz32($0 - 1 ^ $0) | 0
} else {
$0 = 32
}
@@ -71,8 +71,8 @@ function asmFunc(env) {
function __wasm_ctz_i64($0, $1_1) {
var $2 = 0, $3 = 0;
if ($0 | $1_1) {
- $2 = $1_1 + -1 | 0;
- $3 = $0 + -1 | 0;
+ $2 = $1_1 - 1 | 0;
+ $3 = $0 - 1 | 0;
$2 = ($3 | 0) != -1 ? $2 + 1 | 0 : $2;
$3 = Math_clz32($0 ^ $3) + 32 | 0;
$0 = Math_clz32($1_1 ^ $2);