diff options
author | Alon Zakai <azakai@google.com> | 2019-04-24 15:27:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-24 15:27:05 -0700 |
commit | c3ed0f176b36a502ef2e1fd915550a808b8d8f0b (patch) | |
tree | 6abff96331025a74e18cfa4f173a997d3c800559 /test/wasm2js | |
parent | bc0a605e8864324d40aafbd00e8de0e50240ce26 (diff) | |
download | binaryen-c3ed0f176b36a502ef2e1fd915550a808b8d8f0b.tar.gz binaryen-c3ed0f176b36a502ef2e1fd915550a808b8d8f0b.tar.bz2 binaryen-c3ed0f176b36a502ef2e1fd915550a808b8d8f0b.zip |
wasm2js: more js optimization (#2050)
* Emit ints as signed, so -1 isn't a big unsigned number.
* x - -c (where c is a constant) is larger than x + c in js (but not wasm)
* +(+x) => +x
* Avoid unnecessary coercions on calls, return, load, etc. - we just need coercions when entering or exiting "wasm" (not internally), and on actual operations that need them.
Diffstat (limited to 'test/wasm2js')
47 files changed, 1448 insertions, 2430 deletions
diff --git a/test/wasm2js/address.2asm.js b/test/wasm2js/address.2asm.js index bdc499531..e7d8ae708 100644 --- a/test/wasm2js/address.2asm.js +++ b/test/wasm2js/address.2asm.js @@ -43,7 +43,7 @@ function asmFunc(global, env, buffer) { function $1(i) { i = i | 0; - HEAP32[i + 4294967295 >> 2] | 0; + HEAP32[i + 4294967295 >> 2]; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/block.2asm.js b/test/wasm2js/block.2asm.js index 1c97b9fbf..d08822100 100644 --- a/test/wasm2js/block.2asm.js +++ b/test/wasm2js/block.2asm.js @@ -57,7 +57,7 @@ function asmFunc(global, env, buffer) { function $6() { dummy(); - return __wasm_ctz_i32(13 | 0) | 0; + return __wasm_ctz_i32(13) | 0; } function $7() { @@ -159,15 +159,14 @@ function asmFunc(global, env, buffer) { $0 = Math_imul($0, 7); break block; } - return ($0 | 0) == (4294967282 | 0) | 0; + return ($0 | 0) == (-14 | 0) | 0; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/br.2asm.js b/test/wasm2js/br.2asm.js index e7357a6e2..e8a1f3048 100644 --- a/test/wasm2js/br.2asm.js +++ b/test/wasm2js/br.2asm.js @@ -288,7 +288,7 @@ function asmFunc(global, env, buffer) { $0 = $0 | 0; $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; - return 4294967295 | 0; + return -1 | 0; } function $31() { @@ -553,7 +553,7 @@ function asmFunc(global, env, buffer) { function legalstub$6() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $6() | 0; + i64toi32_i32$0 = $6(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -574,16 +574,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$7() { - return +(+Math_fround($7())); + return +$7(); } function legalstub$23() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $23() | 0; + i64toi32_i32$0 = $23(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -604,16 +604,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$39() { - return +(+Math_fround($39())); + return +$39(); } function legalstub$40() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $40() | 0; + i64toi32_i32$0 = $40(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -634,16 +634,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$45() { - return +(+Math_fround($45())); + return +$45(); } function legalstub$47() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $47() | 0; + i64toi32_i32$0 = $47(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -664,7 +664,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/br_table.2asm.js b/test/wasm2js/br_table.2asm.js index dd479528c..8587a25d4 100644 --- a/test/wasm2js/br_table.2asm.js +++ b/test/wasm2js/br_table.2asm.js @@ -49544,7 +49544,7 @@ function asmFunc(global, env, buffer) { fake_return_waka123 : { dummy(); $1_1 = 4; - switch (4294967295 | 0) { + switch (-1 | 0) { case 0: break fake_return_waka123; case 1: @@ -49762,7 +49762,7 @@ function asmFunc(global, env, buffer) { $0 = $0 | 0; $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; - return 4294967295 | 0; + return -1 | 0; } function $38() { @@ -50191,7 +50191,7 @@ function asmFunc(global, env, buffer) { function legalstub$6() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $6() | 0; + i64toi32_i32$0 = $6(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -50212,16 +50212,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$7() { - return +(+Math_fround($7())); + return +$7(); } function legalstub$30() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $30() | 0; + i64toi32_i32$0 = $30(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -50242,16 +50242,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$46() { - return +(+Math_fround($46())); + return +$46(); } function legalstub$47() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $47() | 0; + i64toi32_i32$0 = $47(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -50272,16 +50272,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$52() { - return +(+Math_fround($52())); + return +$52(); } function legalstub$54() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $54() | 0; + i64toi32_i32$0 = $54(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -50302,7 +50302,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/br_table_temp.2asm.js b/test/wasm2js/br_table_temp.2asm.js index cd240c2b3..106bef338 100644 --- a/test/wasm2js/br_table_temp.2asm.js +++ b/test/wasm2js/br_table_temp.2asm.js @@ -49540,7 +49540,7 @@ function asmFunc(global, env, buffer) { fake_return_waka123 : { dummy(); $1_1 = 4; - switch (4294967295 | 0) { + switch (-1 | 0) { case 0: break fake_return_waka123; case 1: @@ -49757,7 +49757,7 @@ function asmFunc(global, env, buffer) { $0 = $0 | 0; $1_1 = $1_1 | 0; $2_1 = $2_1 | 0; - return 4294967295 | 0; + return -1 | 0; } function $38() { @@ -50182,7 +50182,7 @@ function asmFunc(global, env, buffer) { } function legalstub$7() { - return +(+Math_fround($7())); + return +$7(); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/call.2asm.js b/test/wasm2js/call.2asm.js index 47fe18131..44f54ca14 100644 --- a/test/wasm2js/call.2asm.js +++ b/test/wasm2js/call.2asm.js @@ -25,73 +25,58 @@ function asmFunc(global, env, buffer) { var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; function const_i32() { - return 306 | 0; + return 306; } function const_i64() { i64toi32_i32$HIGH_BITS = 0; - return 356 | 0; + return 356; } function const_f32() { - return Math_fround(Math_fround(3890.0)); + return Math_fround(3890.0); } function const_f64() { - return +(3940.0); + return 3940.0; } function id_i32($0) { - $0 = $0 | 0; - return $0 | 0; + return $0; } function id_i64($0, $0$hi) { - $0 = $0 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$0 = 0; i64toi32_i32$0 = $0$hi; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return $0 | 0; + return $0; } function id_f32($0) { - $0 = Math_fround($0); - return Math_fround($0); + return $0; } function id_f64($0) { - $0 = +$0; - return +$0; + return $0; } function f32_i32($0, $1) { - $0 = Math_fround($0); - $1 = $1 | 0; - return $1 | 0; + return $1; } function i32_i64($0, $1, $1$hi) { - $0 = $0 | 0; - $1 = $1 | 0; - $1$hi = $1$hi | 0; var i64toi32_i32$0 = 0; i64toi32_i32$0 = $1$hi; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return $1 | 0; + return $1; } function f64_f32($0, $1) { - $0 = +$0; - $1 = Math_fround($1); - return Math_fround($1); + return $1; } function i64_f64($0, $0$hi, $1) { - $0 = $0 | 0; - $0$hi = $0$hi | 0; - $1 = +$1; - return +$1; + return $1; } function $12() { @@ -100,60 +85,60 @@ function asmFunc(global, env, buffer) { function $13() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - i64toi32_i32$0 = const_i64() | 0; + i64toi32_i32$0 = const_i64(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; } function $14() { - return Math_fround(Math_fround(const_f32())); + return Math_fround(const_f32()); } function $15() { - return +(+const_f64()); + return +const_f64(); } function $16() { - return id_i32(32 | 0) | 0; + return id_i32(32) | 0; } function $17() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = 0; - i64toi32_i32$0 = id_i64(64 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = id_i64(64, i64toi32_i32$0); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; } function $18() { - return Math_fround(Math_fround(id_f32(Math_fround(Math_fround(1.3200000524520874))))); + return Math_fround(id_f32(Math_fround(1.3200000524520874))); } function $19() { - return +(+id_f64(+(1.64))); + return +id_f64(1.64); } function $20() { - return f32_i32(Math_fround(Math_fround(32.099998474121094)), 32 | 0) | 0; + return f32_i32(Math_fround(32.099998474121094), 32) | 0; } function $21() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = 0; - i64toi32_i32$0 = i32_i64(32 | 0, 64 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = i32_i64(32, 64, i64toi32_i32$0); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; } function $22() { - return Math_fround(Math_fround(f64_f32(+(64.0), Math_fround(Math_fround(32.0))))); + return Math_fround(f64_f32(64.0, Math_fround(32.0))); } function $23() { - return +(+i64_f64(64 | 0, 0 | 0, +(64.1))); + return +i64_f64(64, 0, 64.1); } function fac($0, $0$hi) { @@ -174,13 +159,13 @@ function asmFunc(global, env, buffer) { 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 = fac(i64toi32_i32$2 - i64toi32_i32$3 | 0, i64toi32_i32$5 | 0) | 0; + i64toi32_i32$5 = fac(i64toi32_i32$2 - i64toi32_i32$3 | 0, i64toi32_i32$5); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; $6 = i64toi32_i32$5; $6$hi = i64toi32_i32$2; i64toi32_i32$2 = i64toi32_i32$0; 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$5 = __wasm_i64_mul($0, i64toi32_i32$0, $6, i64toi32_i32$5); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; $8 = i64toi32_i32$5; $8$hi = i64toi32_i32$2; @@ -218,13 +203,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = $1$hi; i64toi32_i32$5 = i64toi32_i32$0; i64toi32_i32$2 = $1$hi; - i64toi32_i32$2 = __wasm_i64_mul($0 | 0, i64toi32_i32$5 | 0, $1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = __wasm_i64_mul($0, i64toi32_i32$5, $1, i64toi32_i32$2); i64toi32_i32$5 = i64toi32_i32$HIGH_BITS; $9 = i64toi32_i32$2; $9$hi = i64toi32_i32$5; i64toi32_i32$5 = $6$hi; 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$2 = fac_acc($6, i64toi32_i32$5, $9, i64toi32_i32$2); i64toi32_i32$5 = i64toi32_i32$HIGH_BITS; $11 = i64toi32_i32$2; $11$hi = i64toi32_i32$5; @@ -260,7 +245,7 @@ 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 = fib(i64toi32_i32$4 | 0, i64toi32_i32$5 | 0) | 0; + i64toi32_i32$5 = fib(i64toi32_i32$4, i64toi32_i32$5); i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; $5 = i64toi32_i32$5; $5$hi = i64toi32_i32$3; @@ -273,7 +258,7 @@ 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 = fib(i64toi32_i32$0 | 0, i64toi32_i32$4 | 0) | 0; + i64toi32_i32$4 = fib(i64toi32_i32$0, i64toi32_i32$4); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; $8 = i64toi32_i32$4; $8$hi = i64toi32_i32$2; @@ -309,7 +294,7 @@ function asmFunc(global, env, buffer) { 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; - $6 = odd($0 - i64toi32_i32$3 | 0, i64toi32_i32$5 | 0) | 0; + $6 = odd($0 - i64toi32_i32$3 | 0, i64toi32_i32$5); } } return $6 | 0; @@ -328,7 +313,7 @@ function asmFunc(global, env, buffer) { 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; - $6 = even($0 - i64toi32_i32$3 | 0, i64toi32_i32$5 | 0) | 0; + $6 = even($0 - i64toi32_i32$3 | 0, i64toi32_i32$5); } } return $6 | 0; @@ -348,7 +333,7 @@ function asmFunc(global, env, buffer) { function legalstub$13() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $13() | 0; + i64toi32_i32$0 = $13(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -369,16 +354,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$14() { - return +(+Math_fround($14())); + return +$14(); } function legalstub$17() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $17() | 0; + i64toi32_i32$0 = $17(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -399,16 +384,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$18() { - return +(+Math_fround($18())); + return +$18(); } function legalstub$21() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $21() | 0; + i64toi32_i32$0 = $21(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -429,16 +414,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$22() { - return +(+Math_fround($22())); + return +$22(); } function legalstub$fac($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -465,7 +448,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = fac(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = fac(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -486,14 +469,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$fac_acc($0, $1, $2, $3) { - $0 = $0 | 0; - $1 = $1 | 0; - $2 = $2 | 0; - $3 = $3 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6 = $0; @@ -551,7 +530,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = fac_acc($10 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = fac_acc($10, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -572,12 +551,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4 | 0; + return $4; } function legalstub$fib($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -604,7 +581,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = fib(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = fib(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -625,12 +602,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$even($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10 = 0, $3 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3 = $0; @@ -657,12 +632,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return even(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + return even(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$odd($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10 = 0, $3 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3 = $0; @@ -689,14 +662,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return odd(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + return odd(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$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; var$2 = var$1; @@ -771,23 +740,19 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; 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$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/call_indirect.2asm.js b/test/wasm2js/call_indirect.2asm.js index 3614da48a..ee581aeca 100644 --- a/test/wasm2js/call_indirect.2asm.js +++ b/test/wasm2js/call_indirect.2asm.js @@ -38,7 +38,7 @@ function asmFunc(global, env, buffer) { } function const_f64() { - return +(3940.0); + return 3940.0; } function id_i32($0) { @@ -244,7 +244,7 @@ function asmFunc(global, env, buffer) { $6$hi = i64toi32_i32$2; i64toi32_i32$2 = i64toi32_i32$0; 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$5 = __wasm_i64_mul($0, i64toi32_i32$0, $6, i64toi32_i32$5); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; $8 = i64toi32_i32$5; $8$hi = i64toi32_i32$2; @@ -355,7 +355,7 @@ function asmFunc(global, env, buffer) { function legalstub$17() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $17() | 0; + i64toi32_i32$0 = $17(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -376,16 +376,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$18() { - return +(+Math_fround($18())); + return +$18(); } function legalstub$20() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $20() | 0; + i64toi32_i32$0 = $20(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -406,12 +406,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$22() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $22() | 0; + i64toi32_i32$0 = $22(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -432,16 +432,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$23() { - return +(+Math_fround($23())); + return +$23(); } function legalstub$26() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $26() | 0; + i64toi32_i32$0 = $26(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -462,17 +462,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$27() { - return +(+Math_fround($27())); + return +$27(); } function legalstub$29($0, $1, $2) { - $0 = $0 | 0; - $1 = $1 | 0; - $2 = $2 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $14 = 0, $15 = 0, $4 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $3 = 0, $3$hi = 0; $4 = $0; i64toi32_i32$0 = 0; @@ -500,7 +497,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $9$hi; i64toi32_i32$3 = $14; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $29($4 | 0, i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $29($4, i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $3 = i64toi32_i32$2; $3$hi = i64toi32_i32$0; @@ -521,13 +518,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($15 | 0); i64toi32_i32$2 = $3$hi; - return $3 | 0; + return $3; } function legalstub$30($0) { - $0 = $0 | 0; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $30($0 | 0) | 0; + i64toi32_i32$0 = $30($0); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -548,12 +544,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($8 | 0); i64toi32_i32$0 = $1$hi; - return $1 | 0; + return $1; } function legalstub$fac($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -580,7 +574,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = fac(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = fac(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -601,12 +595,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$fib($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -633,7 +625,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = fib(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = fib(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -654,14 +646,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$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_1 = 0, $17_1 = 0, $18_1 = 0, $23_1 = 0, $29_1 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; i64toi32_i32$0 = var$1$hi; var$2 = var$1; @@ -736,23 +724,19 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; 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$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } var FUNCTION_TABLE = [const_i32, const_i64, const_f32, const_f64, id_i32, id_i64, id_f32, id_f64, f32_i32, i32_i64, f64_f32, i64_f64, fac, fib, even, odd, runaway, mutual_runaway1, mutual_runaway2, over_i32_duplicate, over_i64_duplicate, over_f32_duplicate, over_f64_duplicate]; diff --git a/test/wasm2js/conversions-modified.2asm.js b/test/wasm2js/conversions-modified.2asm.js index f5998445e..bb8392de3 100644 --- a/test/wasm2js/conversions-modified.2asm.js +++ b/test/wasm2js/conversions-modified.2asm.js @@ -200,7 +200,7 @@ function asmFunc(global, env, buffer) { function $13(x) { x = x | 0; - return +(+(x | 0)); + return +(x | 0); } function $14(x, x$hi) { @@ -226,7 +226,7 @@ function asmFunc(global, env, buffer) { function $17(x) { x = x | 0; - return +(+(x >>> 0)); + return +(x >>> 0); } function $18(x, x$hi) { @@ -239,7 +239,7 @@ function asmFunc(global, env, buffer) { function $19(x) { x = Math_fround(x); - return +(+x); + return +x; } function $20(x) { @@ -259,7 +259,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = x$hi; wasm2js_scratch_store_i32(0 | 0, x | 0); wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$0 | 0); - return +(+wasm2js_scratch_load_f64()); + return +wasm2js_scratch_load_f64(); } function $23(x) { @@ -278,9 +278,8 @@ function asmFunc(global, env, buffer) { } function legalstub$0($0_1) { - $0_1 = $0_1 | 0; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $0($0_1 | 0) | 0; + i64toi32_i32$0 = $0($0_1); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -301,13 +300,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($8_1 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } function legalstub$1($0_1) { - $0_1 = $0_1 | 0; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $1($0_1 | 0) | 0; + i64toi32_i32$0 = $1($0_1); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -328,12 +326,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($8_1 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0_1; @@ -360,23 +356,20 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + return $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$3($0_1) { - $0_1 = +$0_1; - return $3(Math_fround(Math_fround($0_1))) | 0; + return $3(Math_fround($0_1)); } function legalstub$4($0_1) { - $0_1 = +$0_1; - return $4(Math_fround(Math_fround($0_1))) | 0; + return $4(Math_fround($0_1)); } function legalstub$7($0_1) { - $0_1 = +$0_1; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $7(Math_fround(Math_fround($0_1))) | 0; + i64toi32_i32$0 = $7(Math_fround($0_1)); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -397,13 +390,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($8_1 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } function legalstub$8($0_1) { - $0_1 = +$0_1; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $8(Math_fround(Math_fround($0_1))) | 0; + i64toi32_i32$0 = $8(Math_fround($0_1)); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -424,13 +416,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($8_1 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } function legalstub$9($0_1) { - $0_1 = +$0_1; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $9(+$0_1) | 0; + i64toi32_i32$0 = $9($0_1); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -451,13 +442,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($8_1 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } function legalstub$10($0_1) { - $0_1 = +$0_1; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $10(+$0_1) | 0; + i64toi32_i32$0 = $10($0_1); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -478,17 +468,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($8_1 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } function legalstub$11($0_1) { - $0_1 = $0_1 | 0; - return +(+Math_fround($11($0_1 | 0))); + return +$11($0_1); } function legalstub$12($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0_1; @@ -515,12 +502,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+Math_fround($12(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0))); + return +$12(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$14($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0_1; @@ -547,17 +532,14 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+$14(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0)); + return $14(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$15($0_1) { - $0_1 = $0_1 | 0; - return +(+Math_fround($15($0_1 | 0))); + return +$15($0_1); } function legalstub$16($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0_1; @@ -584,12 +566,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+Math_fround($16(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0))); + return +$16(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$18($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0_1; @@ -616,27 +596,22 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+$18(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0)); + return $18(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$19($0_1) { - $0_1 = +$0_1; - return +(+$19(Math_fround(Math_fround($0_1)))); + return $19(Math_fround($0_1)); } function legalstub$20($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($20(+$0_1))); + return +$20($0_1); } function legalstub$21($0_1) { - $0_1 = $0_1 | 0; - return +(+Math_fround($21($0_1 | 0))); + return +$21($0_1); } function legalstub$22($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0_1; @@ -663,18 +638,16 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+$22(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0)); + return $22(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$23($0_1) { - $0_1 = +$0_1; - return $23(Math_fround(Math_fround($0_1))) | 0; + return $23(Math_fround($0_1)); } function legalstub$24($0_1) { - $0_1 = +$0_1; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $24(+$0_1) | 0; + i64toi32_i32$0 = $24($0_1); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -695,7 +668,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($8_1 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/emscripten.2asm.js b/test/wasm2js/emscripten.2asm.js index 8d7abb4a4..5e4109c46 100644 --- a/test/wasm2js/emscripten.2asm.js +++ b/test/wasm2js/emscripten.2asm.js @@ -30,7 +30,10 @@ function asmFunc(global, env, buffer) { var wasm2js_i32$0 = 0; syscall$6(1 | 0, 2 | 0) | 0; syscall$54(3 | 0, 4 | 0) | 0; - wasm2js_i32$0 = HEAP32[0 + 1030 >> 2] | 0, FUNCTION_TABLE[wasm2js_i32$0](); + wasm2js_i32$0 = HEAP32[0 + 1030 >> 2], FUNCTION_TABLE[wasm2js_i32$0](); + internal(1); + tabled(1); + exported(1); } function other() { @@ -42,10 +45,10 @@ function asmFunc(global, env, buffer) { } function bar() { - HEAPU8[128 | 0] | 0; - HEAP8[128 | 0] | 0; - HEAPU16[128 >> 1] | 0; - HEAP16[128 >> 1] | 0; + HEAPU8[128 | 0]; + HEAP8[128 | 0]; + HEAPU16[128 >> 1]; + HEAP16[128 >> 1]; } function __growWasmMemory($0) { @@ -53,13 +56,35 @@ function asmFunc(global, env, buffer) { return abort() | 0; } + function internal(x) { + return x; + } + + function tabled(x) { + x = x | 0; + return x | 0; + } + + function exported(x) { + x = x | 0; + return x | 0; + } + + function sub_zero(x) { + x = x | 0; + return x + 5 | 0; + } + // EMSCRIPTEN_END_FUNCS; FUNCTION_TABLE[1] = foo; FUNCTION_TABLE[2] = bar; + FUNCTION_TABLE[3] = tabled; return { "main": main, "other": other, - "__growWasmMemory": __growWasmMemory + "__growWasmMemory": __growWasmMemory, + "exported": exported, + "sub_zero": sub_zero }; } diff --git a/test/wasm2js/emscripten.wast b/test/wasm2js/emscripten.wast index 81a0c697e..7305f0dc9 100644 --- a/test/wasm2js/emscripten.wast +++ b/test/wasm2js/emscripten.wast @@ -4,13 +4,15 @@ (data (i32.const 1024) "hello, world!\n\00\00\9c\0c\00\00-+ 0X0x\00(null)\00\00\00\00\00\00\00\00\00\00\00\00\11\00\n\00\11\11\11\00\00\00\00\05\00\00\00\00\00\00\t\00\00\00\00\0b\00\00\00\00\00\00\00\00\11\00\0f\n\11\11\11\03\n\07\00\01\13\t\0b\0b\00\00\t\06\0b\00\00\0b\00\06\11\00\00\00\11\11\11\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0b\00\00\00\00\00\00\00\00\11\00\n\n\11\11\11\00\n\00\00\02\00\t\0b\00\00\00\t\00\0b\00\00\0b\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0c\00\00\00\00\00\00\00\00\00\00\00\0c\00\00\00\00\0c\00\00\00\00\t\0c\00\00\00\00\00\0c\00\00\0c\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0e\00\00\00\00\00\00\00\00\00\00\00\0d\00\00\00\04\0d\00\00\00\00\t\0e\00\00\00\00\00\0e\00\00\0e\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\10\00\00\00\00\00\00\00\00\00\00\00\0f\00\00\00\00\0f\00\00\00\00\t\10\00\00\00\00\00\10\00\00\10\00\00\12\00\00\00\12\12\12\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\12\00\00\00\12\12\12\00\00\00\00\00\00\t\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0b\00\00\00\00\00\00\00\00\00\00\00\n\00\00\00\00\n\00\00\00\00\t\0b\00\00\00\00\00\0b\00\00\0b\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0c\00\00\00\00\00\00\00\00\00\00\00\0c\00\00\00\00\0c\00\00\00\00\t\0c\00\00\00\00\00\0c\00\00\0c\00\000123456789ABCDEF-0X+0X 0X-0x+0x 0x\00inf\00INF\00nan\00NAN\00.\00") (data (i32.const 1600) "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") (import "env" "table" (table $timport$9 7 funcref)) - (elem (i32.const 1) $foo $bar) + (elem (i32.const 1) $foo $bar $tabled) (import "env" "__syscall6" (func $syscall$6 (param i32 i32) (result i32))) (import "env" "__syscall54" (func $syscall$54 (param i32 i32) (result i32))) (global $global$0 (mut i32) (i32.const 5243904)) (export "main" (func $main)) (export "other" (func $other)) (export "__growWasmMemory" (func $__growWasmMemory)) + (export "exported" (func $exported)) + (export "sub-zero" (func $sub-zero)) (func $main (drop (call $syscall$6 (i32.const 1) (i32.const 2))) (drop (call $syscall$54 (i32.const 3) (i32.const 4))) @@ -19,6 +21,9 @@ (i32.const 0) ) ) + (drop (call $internal (i32.const 1))) + (drop (call $tabled (i32.const 1))) + (drop (call $exported (i32.const 1))) ) (func $other (call $main) @@ -53,5 +58,17 @@ (local.get $0) ) ) + (func $internal (param $x i32) (result i32) + (local.get $x) + ) + (func $tabled (param $x i32) (result i32) + (local.get $x) + ) + (func $exported (param $x i32) (result i32) + (local.get $x) + ) + (func $sub-zero (param $x i32) (result i32) + (i32.sub (local.get $x) (i32.const -5)) + ) ) diff --git a/test/wasm2js/endianness.2asm.js b/test/wasm2js/endianness.2asm.js index 5fdb68969..41c829279 100644 --- a/test/wasm2js/endianness.2asm.js +++ b/test/wasm2js/endianness.2asm.js @@ -55,26 +55,19 @@ function asmFunc(global, env, buffer) { var setTempRet0 = env.setTempRet0; var i64toi32_i32$HIGH_BITS = 0; function i16_store_little(address, value) { - address = address | 0; - value = value | 0; HEAP8[address | 0] = value; HEAP8[address + 1 | 0] = value >>> 8; } function i32_store_little(address, value) { - address = address | 0; - value = value | 0; - i16_store_little(address | 0, value | 0); + i16_store_little(address, value); i16_store_little(address + 2 | 0, value >>> 16); } function i64_store_little(address, value, value$hi) { - address = address | 0; - value = value | 0; - value$hi = value$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $9_1 = 0, $6_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = value$hi; - i32_store_little(address | 0, value | 0); + i32_store_little(address, value); $6_1 = address + 4 | 0; i64toi32_i32$2 = value; i64toi32_i32$1 = 0; @@ -91,27 +84,24 @@ function asmFunc(global, env, buffer) { $9_1 = ((1 << i64toi32_i32$4) - 1 & i64toi32_i32$0) << 32 - i64toi32_i32$4 | i64toi32_i32$2 >>> i64toi32_i32$4; } } - i32_store_little($6_1 | 0, $9_1 | 0); + i32_store_little($6_1, $9_1); } function i16_load_little(address) { - address = address | 0; return HEAPU8[address | 0] | HEAPU8[address + 1 | 0] << 8; } function i32_load_little(address) { - address = address | 0; - return i16_load_little(address | 0) | i16_load_little(address + 2 | 0) << 16; + return i16_load_little(address) | i16_load_little(address + 2 | 0) << 16; } function i64_load_little(address) { - address = address | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $9_1 = 0, $3 = 0, $3$hi = 0, $8$hi = 0; i64toi32_i32$0 = 0; - $3 = i32_load_little(address | 0) | 0; + $3 = i32_load_little(address); $3$hi = i64toi32_i32$0; i64toi32_i32$0 = 0; - i64toi32_i32$2 = i32_load_little(address + 4 | 0) | 0; + i64toi32_i32$2 = i32_load_little(address + 4 | 0); i64toi32_i32$1 = 0; i64toi32_i32$3 = 32; i64toi32_i32$4 = i64toi32_i32$3 & 31; @@ -134,24 +124,24 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function $6(value) { value = value | 0; - i16_store_little(0 | 0, value | 0); + i16_store_little(0, value); return HEAP16[0 >> 1] | 0; } function $7(value) { value = value | 0; - i16_store_little(0 | 0, value | 0); + i16_store_little(0, value); return HEAPU16[0 >> 1] | 0; } function $8(value) { value = value | 0; - i32_store_little(0 | 0, value | 0); + i32_store_little(0, value); return HEAP32[0 >> 2] | 0; } @@ -160,8 +150,8 @@ function asmFunc(global, env, buffer) { value$hi = value$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = value$hi; - i16_store_little(0 | 0, value | 0); - i64toi32_i32$0 = HEAP16[0 >> 1] | 0; + i16_store_little(0, value); + i64toi32_i32$0 = HEAP16[0 >> 1]; i64toi32_i32$1 = i64toi32_i32$0 >> 31; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; @@ -172,8 +162,8 @@ function asmFunc(global, env, buffer) { value$hi = value$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = value$hi; - i16_store_little(0 | 0, value | 0); - i64toi32_i32$0 = HEAPU16[0 >> 1] | 0; + i16_store_little(0, value); + i64toi32_i32$0 = HEAPU16[0 >> 1]; i64toi32_i32$1 = 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; @@ -184,8 +174,8 @@ function asmFunc(global, env, buffer) { value$hi = value$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = value$hi; - i32_store_little(0 | 0, value | 0); - i64toi32_i32$0 = HEAP32[0 >> 2] | 0; + i32_store_little(0, value); + i64toi32_i32$0 = HEAP32[0 >> 2]; i64toi32_i32$1 = i64toi32_i32$0 >> 31; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; @@ -196,8 +186,8 @@ function asmFunc(global, env, buffer) { value$hi = value$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = value$hi; - i32_store_little(0 | 0, value | 0); - i64toi32_i32$0 = HEAP32[0 >> 2] | 0; + i32_store_little(0, value); + i64toi32_i32$0 = HEAP32[0 >> 2]; i64toi32_i32$1 = 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; @@ -208,9 +198,9 @@ function asmFunc(global, env, buffer) { value$hi = value$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, wasm2js_i32$0 = 0; i64toi32_i32$0 = value$hi; - i64_store_little(0 | 0, value | 0, i64toi32_i32$0 | 0); + i64_store_little(0, value, i64toi32_i32$0); i64toi32_i32$2 = 0; - i64toi32_i32$0 = HEAP32[i64toi32_i32$2 >> 2] | 0; + i64toi32_i32$0 = HEAP32[i64toi32_i32$2 >> 2]; i64toi32_i32$1 = (wasm2js_i32$0 = i64toi32_i32$2, HEAPU8[wasm2js_i32$0 + 4 | 0] | HEAPU8[wasm2js_i32$0 + 5 | 0] << 8 | HEAPU8[wasm2js_i32$0 + 6 | 0] << 16 | HEAPU8[wasm2js_i32$0 + 7 | 0] << 24); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; @@ -218,8 +208,8 @@ function asmFunc(global, env, buffer) { function $14(value) { value = Math_fround(value); - i32_store_little(0 | 0, (wasm2js_scratch_store_f32(value), wasm2js_scratch_load_i32(0)) | 0); - return Math_fround(Math_fround(HEAPF32[0 >> 2])); + i32_store_little(0, (wasm2js_scratch_store_f32(value), wasm2js_scratch_load_i32(0))); + return Math_fround(HEAPF32[0 >> 2]); } function $15(value) { @@ -227,20 +217,20 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0; wasm2js_scratch_store_f64(+value); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; - i64_store_little(0 | 0, wasm2js_scratch_load_i32(0 | 0) | 0, i64toi32_i32$0 | 0); - return +(+HEAPF64[0 >> 3]); + i64_store_little(0, wasm2js_scratch_load_i32(0 | 0) | 0, i64toi32_i32$0); + return +HEAPF64[0 >> 3]; } function $16(value) { value = value | 0; HEAP16[0 >> 1] = value; - return i16_load_little(0 | 0) | 0; + return i16_load_little(0) | 0; } function $17(value) { value = value | 0; HEAP32[0 >> 2] = value; - return i32_load_little(0 | 0) | 0; + return i32_load_little(0) | 0; } function $18(value, value$hi) { @@ -250,7 +240,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = value$hi; HEAP16[0 >> 1] = value; i64toi32_i32$0 = 0; - i64toi32_i32$1 = i16_load_little(0 | 0) | 0; + i64toi32_i32$1 = i16_load_little(0); i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } @@ -262,7 +252,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = value$hi; HEAP32[0 >> 2] = value; i64toi32_i32$0 = 0; - i64toi32_i32$1 = i32_load_little(0 | 0) | 0; + i64toi32_i32$1 = i32_load_little(0); i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } @@ -275,7 +265,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = 0; HEAP32[i64toi32_i32$1 >> 2] = value; (wasm2js_i32$0 = i64toi32_i32$1, wasm2js_i32$1 = i64toi32_i32$0), ((HEAP8[wasm2js_i32$0 + 4 | 0] = wasm2js_i32$1 & 255, HEAP8[wasm2js_i32$0 + 5 | 0] = wasm2js_i32$1 >>> 8 & 255), HEAP8[wasm2js_i32$0 + 6 | 0] = wasm2js_i32$1 >>> 16 & 255), HEAP8[wasm2js_i32$0 + 7 | 0] = wasm2js_i32$1 >>> 24 & 255; - i64toi32_i32$0 = i64_load_little(0 | 0) | 0; + i64toi32_i32$0 = i64_load_little(0); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; @@ -284,23 +274,21 @@ function asmFunc(global, env, buffer) { function $21(value) { value = Math_fround(value); HEAPF32[0 >> 2] = value; - return Math_fround((wasm2js_scratch_store_i32(0, i32_load_little(0 | 0) | 0), wasm2js_scratch_load_f32())); + return Math_fround((wasm2js_scratch_store_i32(0, i32_load_little(0)), wasm2js_scratch_load_f32())); } function $22(value) { value = +value; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; HEAPF64[0 >> 3] = value; - i64toi32_i32$0 = i64_load_little(0 | 0) | 0; + i64toi32_i32$0 = i64_load_little(0); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; wasm2js_scratch_store_i32(0 | 0, i64toi32_i32$0 | 0); wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$1 | 0); - return +(+wasm2js_scratch_load_f64()); + return +wasm2js_scratch_load_f64(); } function legalstub$9($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -327,7 +315,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $9(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $9(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -348,12 +336,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$10($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -380,7 +366,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $10(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $10(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -401,12 +387,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$11($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -433,7 +417,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $11(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $11(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -454,12 +438,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$12($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -486,7 +468,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $12(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $12(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -507,12 +489,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$13($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -539,7 +519,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $13(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $13(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -560,17 +540,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$14($0) { - $0 = +$0; - return +(+Math_fround($14(Math_fround(Math_fround($0))))); + return +$14(Math_fround($0)); } function legalstub$18($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -597,7 +574,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $18(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $18(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -618,12 +595,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$19($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -650,7 +625,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $19(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $19(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -671,12 +646,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$20($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -703,7 +676,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $20(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $20(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -724,12 +697,11 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$21($0) { - $0 = +$0; - return +(+Math_fround($21(Math_fround(Math_fround($0))))); + return +$21(Math_fround($0)); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/f32.2asm.js b/test/wasm2js/f32.2asm.js index 62ea4db91..a6c7d182b 100644 --- a/test/wasm2js/f32.2asm.js +++ b/test/wasm2js/f32.2asm.js @@ -96,12 +96,12 @@ function asmFunc(global, env, buffer) { function $9(x) { x = Math_fround(x); - return Math_fround(Math_fround(__wasm_trunc_f32(Math_fround(x)))); + return Math_fround(__wasm_trunc_f32(x)); } function $10(x) { x = Math_fround(x); - return Math_fround(Math_fround(__wasm_nearest_f32(Math_fround(x)))); + return Math_fround(__wasm_nearest_f32(x)); } function $11(x) { @@ -117,88 +117,66 @@ function asmFunc(global, env, buffer) { function $13(x, y) { x = Math_fround(x); y = Math_fround(y); - return Math_fround((wasm2js_scratch_store_i32(0, (wasm2js_scratch_store_f32(x), wasm2js_scratch_load_i32(0)) & 2147483647 | (wasm2js_scratch_store_f32(y), wasm2js_scratch_load_i32(0)) & 2147483648), wasm2js_scratch_load_f32())); + return Math_fround((wasm2js_scratch_store_i32(0, (wasm2js_scratch_store_f32(x), wasm2js_scratch_load_i32(0)) & 2147483647 | (wasm2js_scratch_store_f32(y), wasm2js_scratch_load_i32(0)) & -2147483648), wasm2js_scratch_load_f32())); } function legalstub$0($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($0(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$0(Math_fround($0_1), Math_fround($1_1)); } function legalstub$1($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($1(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$1(Math_fround($0_1), Math_fround($1_1)); } function legalstub$2($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($2(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$2(Math_fround($0_1), Math_fround($1_1)); } function legalstub$3($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($3(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$3(Math_fround($0_1), Math_fround($1_1)); } function legalstub$4($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($4(Math_fround(Math_fround($0_1))))); + return +$4(Math_fround($0_1)); } function legalstub$5($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($5(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$5(Math_fround($0_1), Math_fround($1_1)); } function legalstub$6($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($6(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$6(Math_fround($0_1), Math_fround($1_1)); } function legalstub$7($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($7(Math_fround(Math_fround($0_1))))); + return +$7(Math_fround($0_1)); } function legalstub$8($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($8(Math_fround(Math_fround($0_1))))); + return +$8(Math_fround($0_1)); } function legalstub$9($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($9(Math_fround(Math_fround($0_1))))); + return +$9(Math_fround($0_1)); } function legalstub$10($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($10(Math_fround(Math_fround($0_1))))); + return +$10(Math_fround($0_1)); } function legalstub$11($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($11(Math_fround(Math_fround($0_1))))); + return +$11(Math_fround($0_1)); } function legalstub$12($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($12(Math_fround(Math_fround($0_1))))); + return +$12(Math_fround($0_1)); } function legalstub$13($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($13(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$13(Math_fround($0_1), Math_fround($1_1)); } function __wasm_nearest_f32(var$0) { - var$0 = Math_fround(var$0); var var$1 = Math_fround(0), var$2 = Math_fround(0), wasm2js_f32$0 = Math_fround(0), wasm2js_f32$1 = Math_fround(0), wasm2js_i32$0 = 0; var$1 = Math_fround(Math_floor(var$0)); var$2 = Math_fround(var$0 - var$1); @@ -206,19 +184,18 @@ function asmFunc(global, env, buffer) { { var$0 = Math_fround(Math_ceil(var$0)); if (var$2 > Math_fround(.5)) { - return Math_fround(var$0) + return var$0 } var$2 = Math_fround(var$1 * Math_fround(.5)); var$1 = (wasm2js_f32$0 = var$1, wasm2js_f32$1 = var$0, wasm2js_i32$0 = Math_fround(var$2 - Math_fround(Math_floor(var$2))) == Math_fround(0.0), wasm2js_i32$0 ? wasm2js_f32$0 : wasm2js_f32$1); } } - return Math_fround(var$1); + return var$1; } function __wasm_trunc_f32(var$0) { - var$0 = Math_fround(var$0); var wasm2js_f32$0 = Math_fround(0), wasm2js_f32$1 = Math_fround(0), wasm2js_i32$0 = 0; - return Math_fround((wasm2js_f32$0 = Math_fround(Math_ceil(var$0)), wasm2js_f32$1 = Math_fround(Math_floor(var$0)), wasm2js_i32$0 = var$0 < Math_fround(0.0), wasm2js_i32$0 ? wasm2js_f32$0 : wasm2js_f32$1)); + return wasm2js_f32$0 = Math_fround(Math_ceil(var$0)), wasm2js_f32$1 = Math_fround(Math_floor(var$0)), wasm2js_i32$0 = var$0 < Math_fround(0.0), wasm2js_i32$0 ? wasm2js_f32$0 : wasm2js_f32$1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/f32_cmp.2asm.js b/test/wasm2js/f32_cmp.2asm.js index 2a79cdd07..bd272335c 100644 --- a/test/wasm2js/f32_cmp.2asm.js +++ b/test/wasm2js/f32_cmp.2asm.js @@ -58,39 +58,27 @@ function asmFunc(global, env, buffer) { } function legalstub$0($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return $0(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))) | 0; + return $0(Math_fround($0_1), Math_fround($1_1)); } function legalstub$1($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return $1(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))) | 0; + return $1(Math_fround($0_1), Math_fround($1_1)); } function legalstub$2($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return $2(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))) | 0; + return $2(Math_fround($0_1), Math_fround($1_1)); } function legalstub$3($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return $3(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))) | 0; + return $3(Math_fround($0_1), Math_fround($1_1)); } function legalstub$4($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return $4(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))) | 0; + return $4(Math_fround($0_1), Math_fround($1_1)); } function legalstub$5($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return $5(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))) | 0; + return $5(Math_fround($0_1), Math_fround($1_1)); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/f64.2asm.js b/test/wasm2js/f64.2asm.js index f66e0d7c9..cfedc6a0b 100644 --- a/test/wasm2js/f64.2asm.js +++ b/test/wasm2js/f64.2asm.js @@ -96,12 +96,12 @@ function asmFunc(global, env, buffer) { function $9(x) { x = +x; - return +(+__wasm_trunc_f64(+x)); + return +__wasm_trunc_f64(x); } function $10(x) { x = +x; - return +(+__wasm_nearest_f64(+x)); + return +__wasm_nearest_f64(x); } function $11(x) { @@ -122,14 +122,14 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$2 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$1 = 2147483647; - i64toi32_i32$3 = 4294967295; + i64toi32_i32$3 = -1; i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1; $4_1 = i64toi32_i32$2 & i64toi32_i32$3; $4$hi = i64toi32_i32$1; wasm2js_scratch_store_f64(+y); i64toi32_i32$1 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$0 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$2 = 2147483648; + i64toi32_i32$2 = -2147483648; i64toi32_i32$3 = 0; i64toi32_i32$2 = i64toi32_i32$1 & i64toi32_i32$2; $7_1 = i64toi32_i32$0 & i64toi32_i32$3; @@ -141,11 +141,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0; wasm2js_scratch_store_i32(0 | 0, i64toi32_i32$1 | i64toi32_i32$3); wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$0 | 0); - return +(+wasm2js_scratch_load_f64()); + return +wasm2js_scratch_load_f64(); } function __wasm_nearest_f64(var$0) { - var$0 = +var$0; var var$1 = 0.0, var$2 = 0.0, wasm2js_f64$0 = 0.0, wasm2js_f64$1 = 0.0, wasm2js_i32$0 = 0; var$1 = Math_floor(var$0); var$2 = var$0 - var$1; @@ -153,19 +152,18 @@ function asmFunc(global, env, buffer) { { var$0 = Math_ceil(var$0); if (var$2 > .5) { - return +var$0 + return var$0 } var$2 = var$1 * .5; var$1 = (wasm2js_f64$0 = var$1, wasm2js_f64$1 = var$0, wasm2js_i32$0 = var$2 - Math_floor(var$2) == 0.0, wasm2js_i32$0 ? wasm2js_f64$0 : wasm2js_f64$1); } } - return +var$1; + return var$1; } function __wasm_trunc_f64(var$0) { - var$0 = +var$0; var wasm2js_f64$0 = 0.0, wasm2js_f64$1 = 0.0, wasm2js_i32$0 = 0; - return +(wasm2js_f64$0 = Math_ceil(var$0), wasm2js_f64$1 = Math_floor(var$0), wasm2js_i32$0 = var$0 < 0.0, wasm2js_i32$0 ? wasm2js_f64$0 : wasm2js_f64$1); + return wasm2js_f64$0 = Math_ceil(var$0), wasm2js_f64$1 = Math_floor(var$0), wasm2js_i32$0 = var$0 < 0.0, wasm2js_i32$0 ? wasm2js_f64$0 : wasm2js_f64$1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/fac.2asm.js b/test/wasm2js/fac.2asm.js index 7f23d97ae..8a46f34aa 100644 --- a/test/wasm2js/fac.2asm.js +++ b/test/wasm2js/fac.2asm.js @@ -41,13 +41,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = 1; i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + 0 | 0; i64toi32_i32$5 = $0$hi - i64toi32_i32$5 | 0; - i64toi32_i32$5 = $0(i64toi32_i32$3 - i64toi32_i32$1 | 0, i64toi32_i32$5 | 0) | 0; + i64toi32_i32$5 = $0(i64toi32_i32$3 - i64toi32_i32$1 | 0, i64toi32_i32$5); i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; $6 = i64toi32_i32$5; $6$hi = i64toi32_i32$3; i64toi32_i32$3 = $0$hi; i64toi32_i32$5 = $6$hi; - i64toi32_i32$5 = __wasm_i64_mul($0_1 | 0, $0$hi | 0, $6 | 0, i64toi32_i32$5 | 0) | 0; + i64toi32_i32$5 = __wasm_i64_mul($0_1, $0$hi, $6, i64toi32_i32$5); i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; $8 = i64toi32_i32$5; $8$hi = i64toi32_i32$3; @@ -76,13 +76,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = 1; i64toi32_i32$5 = (i64toi32_i32$3 >>> 0 < i64toi32_i32$1 >>> 0) + 0 | 0; i64toi32_i32$5 = n$hi - i64toi32_i32$5 | 0; - i64toi32_i32$5 = fac_rec_named(i64toi32_i32$3 - i64toi32_i32$1 | 0, i64toi32_i32$5 | 0) | 0; + i64toi32_i32$5 = fac_rec_named(i64toi32_i32$3 - i64toi32_i32$1 | 0, i64toi32_i32$5); i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; $6 = i64toi32_i32$5; $6$hi = i64toi32_i32$3; i64toi32_i32$3 = n$hi; i64toi32_i32$5 = $6$hi; - i64toi32_i32$5 = __wasm_i64_mul(n | 0, n$hi | 0, $6 | 0, i64toi32_i32$5 | 0) | 0; + i64toi32_i32$5 = __wasm_i64_mul(n, n$hi, $6, i64toi32_i32$5); i64toi32_i32$3 = i64toi32_i32$HIGH_BITS; $8 = i64toi32_i32$5; $8$hi = i64toi32_i32$3; @@ -118,7 +118,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $2$hi; i64toi32_i32$2 = $1$hi; i64toi32_i32$0 = $2$hi; - i64toi32_i32$0 = __wasm_i64_mul($1 | 0, i64toi32_i32$2 | 0, $2_1 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_i64_mul($1, i64toi32_i32$2, $2_1, i64toi32_i32$0); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$0; $2$hi = i64toi32_i32$2; @@ -166,7 +166,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = res$hi; i64toi32_i32$2 = i$hi; i64toi32_i32$0 = res$hi; - i64toi32_i32$0 = __wasm_i64_mul(i | 0, i64toi32_i32$2 | 0, res | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_i64_mul(i, i64toi32_i32$2, res, i64toi32_i32$0); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; res = i64toi32_i32$0; res$hi = i64toi32_i32$2; @@ -229,14 +229,14 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $0$hi; i64toi32_i32$2 = $1$hi; i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = __wasm_i64_mul($1 | 0, i64toi32_i32$2 | 0, $0_1 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_i64_mul($1, i64toi32_i32$2, $0_1, i64toi32_i32$0); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$0; $1$hi = i64toi32_i32$2; i64toi32_i32$2 = $0$hi; i64toi32_i32$3 = $0_1; - i64toi32_i32$0 = 4294967295; - i64toi32_i32$1 = 4294967295; + i64toi32_i32$0 = -1; + i64toi32_i32$1 = -1; i64toi32_i32$4 = $0_1 + i64toi32_i32$1 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$0 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$1 >>> 0) { @@ -279,8 +279,6 @@ function asmFunc(global, env, buffer) { } function legalstub$0($0_1, $1) { - $0_1 = $0_1 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -307,7 +305,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -328,12 +326,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$fac_rec_named($0_1, $1) { - $0_1 = $0_1 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -360,7 +356,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = fac_rec_named(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = fac_rec_named(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -381,12 +377,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$2($0_1, $1) { - $0_1 = $0_1 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -413,7 +407,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -434,12 +428,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1) { - $0_1 = $0_1 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -466,7 +458,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -487,12 +479,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$4($0_1, $1) { - $0_1 = $0_1 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -519,7 +509,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $4(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $4(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -540,14 +530,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$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 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; i64toi32_i32$0 = var$1$hi; var$2 = var$1; @@ -622,23 +608,19 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; 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$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/float-ops.2asm.js b/test/wasm2js/float-ops.2asm.js index ca6079c19..4d691213a 100644 --- a/test/wasm2js/float-ops.2asm.js +++ b/test/wasm2js/float-ops.2asm.js @@ -167,7 +167,7 @@ function asmFunc(global, env, buffer) { function $25($0) { $0 = Math_fround($0); - return +(+$0); + return +$0; } function $26($0) { @@ -212,7 +212,7 @@ function asmFunc(global, env, buffer) { function $36($0) { $0 = $0 | 0; - return +(+($0 | 0)); + return +($0 | 0); } function $37($0) { @@ -222,7 +222,7 @@ function asmFunc(global, env, buffer) { function $38($0) { $0 = $0 | 0; - return +(+($0 >>> 0)); + return +($0 >>> 0); } function $39($0) { @@ -358,125 +358,90 @@ function asmFunc(global, env, buffer) { } function legalstub$1($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return +(+Math_fround($1(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))))); + return +$1(Math_fround($0), Math_fround($1_1)); } function legalstub$2($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return +(+Math_fround($2(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))))); + return +$2(Math_fround($0), Math_fround($1_1)); } function legalstub$3($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return +(+Math_fround($3(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))))); + return +$3(Math_fround($0), Math_fround($1_1)); } function legalstub$4($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return +(+Math_fround($4(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))))); + return +$4(Math_fround($0), Math_fround($1_1)); } function legalstub$9($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return $9(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))) | 0; + return $9(Math_fround($0), Math_fround($1_1)); } function legalstub$10($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return $10(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))) | 0; + return $10(Math_fround($0), Math_fround($1_1)); } function legalstub$11($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return $11(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))) | 0; + return $11(Math_fround($0), Math_fround($1_1)); } function legalstub$12($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return $12(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))) | 0; + return $12(Math_fround($0), Math_fround($1_1)); } function legalstub$13($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return $13(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))) | 0; + return $13(Math_fround($0), Math_fround($1_1)); } function legalstub$14($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return $14(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))) | 0; + return $14(Math_fround($0), Math_fround($1_1)); } function legalstub$21($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return +(+Math_fround($21(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))))); + return +$21(Math_fround($0), Math_fround($1_1)); } function legalstub$22($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return +(+Math_fround($22(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))))); + return +$22(Math_fround($0), Math_fround($1_1)); } function legalstub$25($0) { - $0 = +$0; - return +(+$25(Math_fround(Math_fround($0)))); + return $25(Math_fround($0)); } function legalstub$26($0) { - $0 = +$0; - return +(+Math_fround($26(+$0))); + return +$26($0); } function legalstub$27($0) { - $0 = +$0; - return +(+Math_fround($27(Math_fround(Math_fround($0))))); + return +$27(Math_fround($0)); } function legalstub$28($0) { - $0 = +$0; - return +(+Math_fround($28(Math_fround(Math_fround($0))))); + return +$28(Math_fround($0)); } function legalstub$31($0) { - $0 = +$0; - return +(+Math_fround($31(Math_fround(Math_fround($0))))); + return +$31(Math_fround($0)); } function legalstub$35($0) { - $0 = $0 | 0; - return +(+Math_fround($35($0 | 0))); + return +$35($0); } function legalstub$37($0) { - $0 = $0 | 0; - return +(+Math_fround($37($0 | 0))); + return +$37($0); } function legalstub$39($0) { - $0 = +$0; - return $39(Math_fround(Math_fround($0))) | 0; + return $39(Math_fround($0)); } function legalstub$41($0) { - $0 = +$0; - return $41(Math_fround(Math_fround($0))) | 0; + return $41(Math_fround($0)); } function legalstub$43($0, $1_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0; @@ -503,12 +468,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+Math_fround($43(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0))); + return +$43(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$44($0, $1_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0; @@ -535,12 +498,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+$44(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0)); + return $44(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$45($0, $1_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0; @@ -567,12 +528,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+Math_fround($45(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0))); + return +$45(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$46($0, $1_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0; @@ -599,17 +558,15 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+$46(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0)); + return $46(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$47($0) { - $0 = +$0; - return $47(Math_fround(Math_fround($0))) | 0; + return $47(Math_fround($0)); } function legalstub$49($0) { - $0 = +$0; - return $49(Math_fround(Math_fround($0))) | 0; + return $49(Math_fround($0)); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/float_literals-modified.2asm.js b/test/wasm2js/float_literals-modified.2asm.js index 13aeccd46..176e13730 100644 --- a/test/wasm2js/float_literals-modified.2asm.js +++ b/test/wasm2js/float_literals-modified.2asm.js @@ -164,7 +164,7 @@ function asmFunc(global, env, buffer) { function $30() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(nan); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -173,7 +173,7 @@ function asmFunc(global, env, buffer) { function $31() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(nan); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -182,7 +182,7 @@ function asmFunc(global, env, buffer) { function $32() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(-nan)); + wasm2js_scratch_store_f64(-nan); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -191,7 +191,7 @@ function asmFunc(global, env, buffer) { function $33() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(nan); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -200,7 +200,7 @@ function asmFunc(global, env, buffer) { function $34() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(nan); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -209,7 +209,7 @@ function asmFunc(global, env, buffer) { function $35() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(-nan)); + wasm2js_scratch_store_f64(-nan); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -218,7 +218,7 @@ function asmFunc(global, env, buffer) { function $36() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(nan); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -227,7 +227,7 @@ function asmFunc(global, env, buffer) { function $37() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(nan)); + wasm2js_scratch_store_f64(nan); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -236,7 +236,7 @@ function asmFunc(global, env, buffer) { function $38() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(-nan)); + wasm2js_scratch_store_f64(-nan); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -245,7 +245,7 @@ function asmFunc(global, env, buffer) { function $39() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(infinity)); + wasm2js_scratch_store_f64(infinity); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -254,7 +254,7 @@ function asmFunc(global, env, buffer) { function $40() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(infinity)); + wasm2js_scratch_store_f64(infinity); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -263,7 +263,7 @@ function asmFunc(global, env, buffer) { function $41() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(-infinity)); + wasm2js_scratch_store_f64(-infinity); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -272,7 +272,7 @@ function asmFunc(global, env, buffer) { function $42() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(0.0)); + wasm2js_scratch_store_f64(0.0); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -281,7 +281,7 @@ function asmFunc(global, env, buffer) { function $43() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(0.0)); + wasm2js_scratch_store_f64(0.0); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -290,7 +290,7 @@ function asmFunc(global, env, buffer) { function $44() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(-0.0)); + wasm2js_scratch_store_f64(-0.0); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -299,7 +299,7 @@ function asmFunc(global, env, buffer) { function $45() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(6.283185307179586)); + wasm2js_scratch_store_f64(6.283185307179586); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -308,7 +308,7 @@ function asmFunc(global, env, buffer) { function $46() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(5.0e-324)); + wasm2js_scratch_store_f64(5.0e-324); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -317,7 +317,7 @@ function asmFunc(global, env, buffer) { function $47() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(2.2250738585072014e-308)); + wasm2js_scratch_store_f64(2.2250738585072014e-308); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -326,7 +326,7 @@ function asmFunc(global, env, buffer) { function $48() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(2.225073858507201e-308)); + wasm2js_scratch_store_f64(2.225073858507201e-308); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -335,7 +335,7 @@ function asmFunc(global, env, buffer) { function $49() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(1797693134862315708145274.0e284)); + wasm2js_scratch_store_f64(1797693134862315708145274.0e284); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -344,7 +344,7 @@ function asmFunc(global, env, buffer) { function $50() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(1267650600228229401496703.0e6)); + wasm2js_scratch_store_f64(1267650600228229401496703.0e6); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -353,7 +353,7 @@ function asmFunc(global, env, buffer) { function $51() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(0.0)); + wasm2js_scratch_store_f64(0.0); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -362,7 +362,7 @@ function asmFunc(global, env, buffer) { function $52() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(0.0)); + wasm2js_scratch_store_f64(0.0); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -371,7 +371,7 @@ function asmFunc(global, env, buffer) { function $53() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(-0.0)); + wasm2js_scratch_store_f64(-0.0); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -380,7 +380,7 @@ function asmFunc(global, env, buffer) { function $54() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(6.283185307179586)); + wasm2js_scratch_store_f64(6.283185307179586); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -389,7 +389,7 @@ function asmFunc(global, env, buffer) { function $55() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(5.0e-324)); + wasm2js_scratch_store_f64(5.0e-324); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -398,7 +398,7 @@ function asmFunc(global, env, buffer) { function $56() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(2.2250738585072014e-308)); + wasm2js_scratch_store_f64(2.2250738585072014e-308); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -407,7 +407,7 @@ function asmFunc(global, env, buffer) { function $57() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(2.225073858507201e-308)); + wasm2js_scratch_store_f64(2.225073858507201e-308); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -416,7 +416,7 @@ function asmFunc(global, env, buffer) { function $58() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(1797693134862315708145274.0e284)); + wasm2js_scratch_store_f64(1797693134862315708145274.0e284); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -425,7 +425,7 @@ function asmFunc(global, env, buffer) { function $59() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; - wasm2js_scratch_store_f64(+(1.e+100)); + wasm2js_scratch_store_f64(1.e+100); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; @@ -434,7 +434,7 @@ function asmFunc(global, env, buffer) { function legalstub$30() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $30() | 0; + i64toi32_i32$0 = $30(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -455,12 +455,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$31() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $31() | 0; + i64toi32_i32$0 = $31(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -481,12 +481,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$32() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $32() | 0; + i64toi32_i32$0 = $32(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -507,12 +507,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$33() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $33() | 0; + i64toi32_i32$0 = $33(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -533,12 +533,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$34() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $34() | 0; + i64toi32_i32$0 = $34(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -559,12 +559,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$35() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $35() | 0; + i64toi32_i32$0 = $35(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -585,12 +585,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$36() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $36() | 0; + i64toi32_i32$0 = $36(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -611,12 +611,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$37() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $37() | 0; + i64toi32_i32$0 = $37(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -637,12 +637,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$38() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $38() | 0; + i64toi32_i32$0 = $38(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -663,12 +663,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$39() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $39() | 0; + i64toi32_i32$0 = $39(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -689,12 +689,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$40() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $40() | 0; + i64toi32_i32$0 = $40(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -715,12 +715,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$41() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $41() | 0; + i64toi32_i32$0 = $41(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -741,12 +741,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$42() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $42() | 0; + i64toi32_i32$0 = $42(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -767,12 +767,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$43() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $43() | 0; + i64toi32_i32$0 = $43(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -793,12 +793,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$44() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $44() | 0; + i64toi32_i32$0 = $44(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -819,12 +819,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$45() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $45() | 0; + i64toi32_i32$0 = $45(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -845,12 +845,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$46() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $46() | 0; + i64toi32_i32$0 = $46(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -871,12 +871,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$47() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $47() | 0; + i64toi32_i32$0 = $47(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -897,12 +897,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$48() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $48() | 0; + i64toi32_i32$0 = $48(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -923,12 +923,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$49() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $49() | 0; + i64toi32_i32$0 = $49(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -949,12 +949,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$50() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $50() | 0; + i64toi32_i32$0 = $50(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -975,12 +975,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$51() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $51() | 0; + i64toi32_i32$0 = $51(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -1001,12 +1001,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$52() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $52() | 0; + i64toi32_i32$0 = $52(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -1027,12 +1027,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$53() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $53() | 0; + i64toi32_i32$0 = $53(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -1053,12 +1053,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$54() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $54() | 0; + i64toi32_i32$0 = $54(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -1079,12 +1079,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$55() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $55() | 0; + i64toi32_i32$0 = $55(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -1105,12 +1105,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$56() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $56() | 0; + i64toi32_i32$0 = $56(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -1131,12 +1131,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$57() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $57() | 0; + i64toi32_i32$0 = $57(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -1157,12 +1157,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$58() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $58() | 0; + i64toi32_i32$0 = $58(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -1183,12 +1183,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$59() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $59() | 0; + i64toi32_i32$0 = $59(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -1209,7 +1209,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/float_misc.2asm.js b/test/wasm2js/float_misc.2asm.js index 59a49b07c..0e4c241e8 100644 --- a/test/wasm2js/float_misc.2asm.js +++ b/test/wasm2js/float_misc.2asm.js @@ -93,7 +93,7 @@ function asmFunc(global, env, buffer) { function $7(x, y) { x = Math_fround(x); y = Math_fround(y); - return Math_fround((wasm2js_scratch_store_i32(0, (wasm2js_scratch_store_f32(x), wasm2js_scratch_load_i32(0)) & 2147483647 | (wasm2js_scratch_store_f32(y), wasm2js_scratch_load_i32(0)) & 2147483648), wasm2js_scratch_load_f32())); + return Math_fround((wasm2js_scratch_store_i32(0, (wasm2js_scratch_store_f32(x), wasm2js_scratch_load_i32(0)) & 2147483647 | (wasm2js_scratch_store_f32(y), wasm2js_scratch_load_i32(0)) & -2147483648), wasm2js_scratch_load_f32())); } function $8(x) { @@ -108,12 +108,12 @@ function asmFunc(global, env, buffer) { function $10(x) { x = Math_fround(x); - return Math_fround(Math_fround(__wasm_trunc_f32(Math_fround(x)))); + return Math_fround(__wasm_trunc_f32(x)); } function $11(x) { x = Math_fround(x); - return Math_fround(Math_fround(__wasm_nearest_f32(Math_fround(x)))); + return Math_fround(__wasm_nearest_f32(x)); } function $12(x, y) { @@ -175,14 +175,14 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$2 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$1 = 2147483647; - i64toi32_i32$3 = 4294967295; + i64toi32_i32$3 = -1; i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1; $4_1 = i64toi32_i32$2 & i64toi32_i32$3; $4$hi = i64toi32_i32$1; wasm2js_scratch_store_f64(+y); i64toi32_i32$1 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$0 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$2 = 2147483648; + i64toi32_i32$2 = -2147483648; i64toi32_i32$3 = 0; i64toi32_i32$2 = i64toi32_i32$1 & i64toi32_i32$2; $7_1 = i64toi32_i32$0 & i64toi32_i32$3; @@ -194,7 +194,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0; wasm2js_scratch_store_i32(0 | 0, i64toi32_i32$1 | i64toi32_i32$3); wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$0 | 0); - return +(+wasm2js_scratch_load_f64()); + return +wasm2js_scratch_load_f64(); } function $22(x) { @@ -209,12 +209,12 @@ function asmFunc(global, env, buffer) { function $24(x) { x = +x; - return +(+__wasm_trunc_f64(+x)); + return +__wasm_trunc_f64(x); } function $25(x) { x = +x; - return +(+__wasm_nearest_f64(+x)); + return +__wasm_nearest_f64(x); } function $26(x, y) { @@ -230,84 +230,62 @@ function asmFunc(global, env, buffer) { } function legalstub$0($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($0(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$0(Math_fround($0_1), Math_fround($1_1)); } function legalstub$1($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($1(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$1(Math_fround($0_1), Math_fround($1_1)); } function legalstub$2($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($2(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$2(Math_fround($0_1), Math_fround($1_1)); } function legalstub$3($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($3(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$3(Math_fround($0_1), Math_fround($1_1)); } function legalstub$4($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($4(Math_fround(Math_fround($0_1))))); + return +$4(Math_fround($0_1)); } function legalstub$5($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($5(Math_fround(Math_fround($0_1))))); + return +$5(Math_fround($0_1)); } function legalstub$6($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($6(Math_fround(Math_fround($0_1))))); + return +$6(Math_fround($0_1)); } function legalstub$7($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($7(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$7(Math_fround($0_1), Math_fround($1_1)); } function legalstub$8($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($8(Math_fround(Math_fround($0_1))))); + return +$8(Math_fround($0_1)); } function legalstub$9($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($9(Math_fround(Math_fround($0_1))))); + return +$9(Math_fround($0_1)); } function legalstub$10($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($10(Math_fround(Math_fround($0_1))))); + return +$10(Math_fround($0_1)); } function legalstub$11($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($11(Math_fround(Math_fround($0_1))))); + return +$11(Math_fround($0_1)); } function legalstub$12($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($12(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$12(Math_fround($0_1), Math_fround($1_1)); } function legalstub$13($0_1, $1_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - return +(+Math_fround($13(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1))))); + return +$13(Math_fround($0_1), Math_fround($1_1)); } function __wasm_nearest_f32(var$0) { - var$0 = Math_fround(var$0); var var$1 = Math_fround(0), var$2 = Math_fround(0), wasm2js_f32$0 = Math_fround(0), wasm2js_f32$1 = Math_fround(0), wasm2js_i32$0 = 0; var$1 = Math_fround(Math_floor(var$0)); var$2 = Math_fround(var$0 - var$1); @@ -315,17 +293,16 @@ function asmFunc(global, env, buffer) { { var$0 = Math_fround(Math_ceil(var$0)); if (var$2 > Math_fround(.5)) { - return Math_fround(var$0) + return var$0 } var$2 = Math_fround(var$1 * Math_fround(.5)); var$1 = (wasm2js_f32$0 = var$1, wasm2js_f32$1 = var$0, wasm2js_i32$0 = Math_fround(var$2 - Math_fround(Math_floor(var$2))) == Math_fround(0.0), wasm2js_i32$0 ? wasm2js_f32$0 : wasm2js_f32$1); } } - return Math_fround(var$1); + return var$1; } function __wasm_nearest_f64(var$0) { - var$0 = +var$0; var var$1 = 0.0, var$2 = 0.0, wasm2js_f64$0 = 0.0, wasm2js_f64$1 = 0.0, wasm2js_i32$0 = 0; var$1 = Math_floor(var$0); var$2 = var$0 - var$1; @@ -333,25 +310,23 @@ function asmFunc(global, env, buffer) { { var$0 = Math_ceil(var$0); if (var$2 > .5) { - return +var$0 + return var$0 } var$2 = var$1 * .5; var$1 = (wasm2js_f64$0 = var$1, wasm2js_f64$1 = var$0, wasm2js_i32$0 = var$2 - Math_floor(var$2) == 0.0, wasm2js_i32$0 ? wasm2js_f64$0 : wasm2js_f64$1); } } - return +var$1; + return var$1; } function __wasm_trunc_f32(var$0) { - var$0 = Math_fround(var$0); var wasm2js_f32$0 = Math_fround(0), wasm2js_f32$1 = Math_fround(0), wasm2js_i32$0 = 0; - return Math_fround((wasm2js_f32$0 = Math_fround(Math_ceil(var$0)), wasm2js_f32$1 = Math_fround(Math_floor(var$0)), wasm2js_i32$0 = var$0 < Math_fround(0.0), wasm2js_i32$0 ? wasm2js_f32$0 : wasm2js_f32$1)); + return wasm2js_f32$0 = Math_fround(Math_ceil(var$0)), wasm2js_f32$1 = Math_fround(Math_floor(var$0)), wasm2js_i32$0 = var$0 < Math_fround(0.0), wasm2js_i32$0 ? wasm2js_f32$0 : wasm2js_f32$1; } function __wasm_trunc_f64(var$0) { - var$0 = +var$0; var wasm2js_f64$0 = 0.0, wasm2js_f64$1 = 0.0, wasm2js_i32$0 = 0; - return +(wasm2js_f64$0 = Math_ceil(var$0), wasm2js_f64$1 = Math_floor(var$0), wasm2js_i32$0 = var$0 < 0.0, wasm2js_i32$0 ? wasm2js_f64$0 : wasm2js_f64$1); + return wasm2js_f64$0 = Math_ceil(var$0), wasm2js_f64$1 = Math_floor(var$0), wasm2js_i32$0 = var$0 < 0.0, wasm2js_i32$0 ? wasm2js_f64$0 : wasm2js_f64$1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/forward.2asm.js b/test/wasm2js/forward.2asm.js index 684259f1e..788ba8b8c 100644 --- a/test/wasm2js/forward.2asm.js +++ b/test/wasm2js/forward.2asm.js @@ -27,7 +27,7 @@ function asmFunc(global, env, buffer) { if ((n | 0) == (0 | 0)) { $6 = 1 } else { - $6 = odd(n - 1 | 0) | 0 + $6 = odd(n - 1 | 0) } return $6 | 0; } @@ -38,7 +38,7 @@ function asmFunc(global, env, buffer) { if ((n | 0) == (0 | 0)) { $6 = 0 } else { - $6 = even(n - 1 | 0) | 0 + $6 = even(n - 1 | 0) } return $6 | 0; } diff --git a/test/wasm2js/func.2asm.js b/test/wasm2js/func.2asm.js index e6ac90b31..c96d4a889 100644 --- a/test/wasm2js/func.2asm.js +++ b/test/wasm2js/func.2asm.js @@ -179,7 +179,7 @@ function asmFunc(global, env, buffer) { } function $46() { - return +(77.77); + return 77.77; } function $47() { @@ -210,7 +210,7 @@ function asmFunc(global, env, buffer) { } function $53() { - return +(78.78); + return 78.78; } function $54() { @@ -426,7 +426,7 @@ function asmFunc(global, env, buffer) { function legalstub$24() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $24() | 0; + i64toi32_i32$0 = $24(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -447,16 +447,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$25() { - return +(+Math_fround($25())); + return +$25(); } function legalstub$28() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $28() | 0; + i64toi32_i32$0 = $28(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -477,18 +477,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$29() { - return +(+Math_fround($29())); + return +$29(); } function legalstub$33($0, $1, $2_1, $3) { - $0 = $0 | 0; - $1 = $1 | 0; - $2_1 = $2_1 | 0; - $3 = $3 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23_1 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6 = $0; @@ -546,7 +542,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $33($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $33($10, i64toi32_i32$1, $16, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -567,20 +563,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4 | 0; + return $4; } function legalstub$34($0, $1) { - $0 = +$0; - $1 = +$1; - return +(+Math_fround($34(Math_fround(Math_fround($0)), Math_fround(Math_fround($1))))); + return +$34(Math_fround($0), Math_fround($1)); } function legalstub$37($0, $1, $2_1, $3) { - $0 = $0 | 0; - $1 = $1 | 0; - $2_1 = $2_1 | 0; - $3 = $3 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23_1 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6 = $0; @@ -638,7 +628,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $37($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $37($10, i64toi32_i32$1, $16, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -659,23 +649,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4 | 0; + return $4; } function legalstub$38($0, $1) { - $0 = +$0; - $1 = +$1; - return +(+Math_fround($38(Math_fround(Math_fround($0)), Math_fround(Math_fround($1))))); + return +$38(Math_fround($0), Math_fround($1)); } function legalstub$40($0, $1, $2_1, $3, $4, $5, $6) { - $0 = +$0; - $1 = $1 | 0; - $2_1 = $2_1 | 0; - $3 = $3 | 0; - $4 = $4 | 0; - $5 = +$5; - $6 = $6 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $17 = 0, $8 = Math_fround(0), $9 = 0, $11 = 0, $11$hi = 0, $14$hi = 0; $8 = Math_fround($0); $9 = $1; @@ -704,12 +685,12 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $14$hi; i64toi32_i32$3 = $17; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+$40(Math_fround($8), $9 | 0, i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0, $4 | 0, +$5, $6 | 0)); + return $40($8, $9, i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2, $4, $5, $6); } function legalstub$44() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $44() | 0; + i64toi32_i32$0 = $44(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -730,16 +711,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$45() { - return +(+Math_fround($45())); + return +$45(); } function legalstub$51() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $51() | 0; + i64toi32_i32$0 = $51(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -760,16 +741,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$52() { - return +(+Math_fround($52())); + return +$52(); } function legalstub$57() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $57() | 0; + i64toi32_i32$0 = $57(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -790,16 +771,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$58() { - return +(+Math_fround($58())); + return +$58(); } function legalstub$68() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $68() | 0; + i64toi32_i32$0 = $68(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -820,11 +801,11 @@ function asmFunc(global, env, buffer) { } setTempRet0($7 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$69() { - return +(+Math_fround($69())); + return +$69(); } var FUNCTION_TABLE = [complex_sig_3, empty_sig_2, complex_sig_1, complex_sig_3, empty_sig_1]; diff --git a/test/wasm2js/get-set-local.2asm.js b/test/wasm2js/get-set-local.2asm.js index 89fbf689d..3c69b3652 100644 --- a/test/wasm2js/get-set-local.2asm.js +++ b/test/wasm2js/get-set-local.2asm.js @@ -35,9 +35,6 @@ function asmFunc(global, env, buffer) { } function legalstub$1($0, $1_1, $2) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2 = $2 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $12 = 0, $3 = 0, $5 = 0, $5$hi = 0, $8$hi = 0; $3 = $0; i64toi32_i32$0 = 0; @@ -65,7 +62,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $8$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return $1($3 | 0, i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + return $1($3, i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/get_local.2asm.js b/test/wasm2js/get_local.2asm.js index 6bb0c76b7..891a4950e 100644 --- a/test/wasm2js/get_local.2asm.js +++ b/test/wasm2js/get_local.2asm.js @@ -106,7 +106,7 @@ function asmFunc(global, env, buffer) { function legalstub$1() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $1() | 0; + i64toi32_i32$0 = $1(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -127,16 +127,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$2() { - return +(+Math_fround($2())); + return +$2(); } function legalstub$5($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -163,7 +161,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $5(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $5(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -184,21 +182,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$6($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($6(Math_fround(Math_fround($0_1))))); + return +$6(Math_fround($0_1)); } function legalstub$8($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = +$2_1; - $3_1 = +$3_1; - $4_1 = $4_1 | 0; - $5_1 = $5_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $14 = 0, $7_1 = 0, $7$hi = 0, $10$hi = 0; i64toi32_i32$0 = 0; $7_1 = $0_1; @@ -225,16 +216,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $10$hi; i64toi32_i32$3 = $14; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - $8(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0, Math_fround(Math_fround($2_1)), +$3_1, $4_1 | 0, $5_1 | 0); + $8(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2, Math_fround($2_1), $3_1, $4_1, $5_1); } function legalstub$9($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = +$2_1; - $3_1 = +$3_1; - $4_1 = $4_1 | 0; - $5_1 = $5_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $14 = 0, $7_1 = 0, $7$hi = 0, $10$hi = 0; i64toi32_i32$0 = 0; $7_1 = $0_1; @@ -261,7 +246,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $10$hi; i64toi32_i32$3 = $14; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+$9(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0, Math_fround(Math_fround($2_1)), +$3_1, $4_1 | 0, $5_1 | 0)); + return $9(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2, Math_fround($2_1), $3_1, $4_1, $5_1); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/global_i64.2asm.js b/test/wasm2js/global_i64.2asm.js index 1d5497869..bdd72a121 100644 --- a/test/wasm2js/global_i64.2asm.js +++ b/test/wasm2js/global_i64.2asm.js @@ -21,17 +21,16 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - var f = 2882400175; + var f = -1412567121; var f$hi = 305419896; function call($0, $0$hi) { - $0 = $0 | 0; - $0$hi = $0$hi | 0; + } function $1() { var i64toi32_i32$0 = 0; i64toi32_i32$0 = f$hi; - call(f | 0, i64toi32_i32$0 | 0); + call(f, i64toi32_i32$0); i64toi32_i32$0 = 287454020; f = 1432778632; f$hi = i64toi32_i32$0; diff --git a/test/wasm2js/grow-memory-tricky.2asm.js b/test/wasm2js/grow-memory-tricky.2asm.js index 0736bc24d..ba6d59ced 100644 --- a/test/wasm2js/grow-memory-tricky.2asm.js +++ b/test/wasm2js/grow-memory-tricky.2asm.js @@ -29,12 +29,12 @@ function asmFunc(global, env, buffer) { function $1() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; - (wasm2js_i32$0 = 0, wasm2js_i32$1 = grow() | 0), HEAP32[wasm2js_i32$0 >> 2] = wasm2js_i32$1; + (wasm2js_i32$0 = 0, wasm2js_i32$1 = grow()), HEAP32[wasm2js_i32$0 >> 2] = wasm2js_i32$1; return HEAP32[0 >> 2] | 0; } function grow() { - return __wasm_grow_memory(1 | 0) | 0; + return __wasm_grow_memory(1 | 0); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i32.2asm.js b/test/wasm2js/i32.2asm.js index 86f0b2ad3..c9e8a4012 100644 --- a/test/wasm2js/i32.2asm.js +++ b/test/wasm2js/i32.2asm.js @@ -102,13 +102,13 @@ function asmFunc(global, env, buffer) { function $13(x, y) { x = x | 0; y = y | 0; - return __wasm_rotl_i32(x | 0, y | 0) | 0; + return __wasm_rotl_i32(x, y) | 0; } function $14(x, y) { x = x | 0; y = y | 0; - return __wasm_rotr_i32(x | 0, y | 0) | 0; + return __wasm_rotr_i32(x, y) | 0; } function $15(x) { @@ -118,12 +118,12 @@ function asmFunc(global, env, buffer) { function $16(x) { x = x | 0; - return __wasm_ctz_i32(x | 0) | 0; + return __wasm_ctz_i32(x) | 0; } function $17(x) { x = x | 0; - return __wasm_popcnt_i32(x | 0) | 0; + return __wasm_popcnt_i32(x) | 0; } function $18(x) { @@ -192,15 +192,13 @@ function asmFunc(global, env, buffer) { } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } function __wasm_popcnt_i32(var$0) { - var$0 = var$0 | 0; var var$1 = 0, $5_1 = 0; label$1 : { label$2 : do { @@ -214,25 +212,21 @@ function asmFunc(global, env, buffer) { break label$2; } while (1); } - return $5_1 | 0; + return $5_1; } function __wasm_rotl_i32(var$0, var$1) { - var$0 = var$0 | 0; - var$1 = var$1 | 0; var var$2 = 0; var$2 = var$1 & 31; var$1 = 0 - var$1 & 31; - return (4294967295 >>> var$2 & var$0) << var$2 | (4294967295 << var$1 & var$0) >>> var$1; + return (-1 >>> var$2 & var$0) << var$2 | (-1 << var$1 & var$0) >>> var$1; } function __wasm_rotr_i32(var$0, var$1) { - var$0 = var$0 | 0; - var$1 = var$1 | 0; var var$2 = 0; var$2 = var$1 & 31; var$1 = 0 - var$1 & 31; - return (4294967295 << var$2 & var$0) >>> var$2 | (4294967295 >>> var$1 & var$0) << var$1; + return (-1 << var$2 & var$0) >>> var$2 | (-1 >>> var$1 & var$0) << var$1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64-add-sub.2asm.js b/test/wasm2js/i64-add-sub.2asm.js index babd4803c..d1e8aef27 100644 --- a/test/wasm2js/i64-add-sub.2asm.js +++ b/test/wasm2js/i64-add-sub.2asm.js @@ -67,12 +67,6 @@ function asmFunc(global, env, buffer) { } function legalstub$1($0, $1_1, $2_1, $3, $4, $5) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3 = $3 | 0; - $4 = $4 | 0; - $5 = $5 | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; i64toi32_i32$0 = 0; $7 = $0; @@ -158,16 +152,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $11$hi; i64toi32_i32$1 = $17$hi; i64toi32_i32$2 = $23$hi; - return $1($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0; + return $1($11, i64toi32_i32$0, $17, i64toi32_i32$1, $23, i64toi32_i32$2); } function legalstub$2($0, $1_1, $2_1, $3, $4, $5) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3 = $3 | 0; - $4 = $4 | 0; - $5 = $5 | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; i64toi32_i32$0 = 0; $7 = $0; @@ -253,7 +241,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $11$hi; i64toi32_i32$1 = $17$hi; i64toi32_i32$2 = $23$hi; - return $2($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0; + return $2($11, i64toi32_i32$0, $17, i64toi32_i32$1, $23, i64toi32_i32$2); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64-ctz.2asm.js b/test/wasm2js/i64-ctz.2asm.js index 593e70e24..34fe8b89d 100644 --- a/test/wasm2js/i64-ctz.2asm.js +++ b/test/wasm2js/i64-ctz.2asm.js @@ -29,7 +29,7 @@ function asmFunc(global, env, buffer) { $0$hi = $0$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = __wasm_popcnt_i64($0 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_popcnt_i64($0, i64toi32_i32$0); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; @@ -40,15 +40,13 @@ function asmFunc(global, env, buffer) { $0$hi = $0$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = __wasm_ctz_i64($0 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i64($0, i64toi32_i32$0); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; } function legalstub$popcnt64($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -75,7 +73,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = popcnt64(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = popcnt64(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -96,12 +94,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalstub$ctz64($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0; @@ -128,7 +124,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = ctz64(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = ctz64(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -149,20 +145,18 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function __wasm_ctz_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, $10 = 0, $5$hi = 0, $8$hi = 0; i64toi32_i32$0 = var$0$hi; if (((var$0 | i64toi32_i32$0) == (0 | 0) | 0) == (0 | 0)) { { i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 4294967295; - i64toi32_i32$3 = 4294967295; + i64toi32_i32$1 = -1; + i64toi32_i32$3 = -1; i64toi32_i32$4 = i64toi32_i32$2 + i64toi32_i32$3 | 0; i64toi32_i32$5 = i64toi32_i32$0 + i64toi32_i32$1 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { @@ -193,18 +187,16 @@ function asmFunc(global, env, buffer) { i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; i64toi32_i32$0 = i64toi32_i32$1; i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } } i64toi32_i32$0 = 0; i64toi32_i32$4 = 64; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + return i64toi32_i32$4; } function __wasm_popcnt_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$1 = 0, var$1$hi = 0, var$1 = 0, $5 = 0, $5$hi = 0, $4 = 0, $9$hi = 0; label$1 : { label$2 : do { @@ -251,7 +243,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$4 = $5$hi; i64toi32_i32$5 = $5; i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64-lowering.2asm.js b/test/wasm2js/i64-lowering.2asm.js index a038a661d..60e9bb134 100644 --- a/test/wasm2js/i64-lowering.2asm.js +++ b/test/wasm2js/i64-lowering.2asm.js @@ -230,10 +230,6 @@ function asmFunc(global, env, buffer) { } function legalstub$1($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -291,14 +287,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $1($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $1($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$2($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -356,14 +348,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $2($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $2($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$3($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -421,14 +409,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $3($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $3($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$4($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -486,14 +470,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $4($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $4($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$5($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -551,14 +531,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $5($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $5($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$6($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -616,14 +592,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $6($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $6($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$7($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -681,14 +653,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $7($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $7($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$8($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -746,14 +714,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $8($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $8($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$9($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -811,14 +775,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $9($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $9($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$10($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -876,7 +836,7 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $10($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $10($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64-rotate.2asm.js b/test/wasm2js/i64-rotate.2asm.js index a18d49a1a..159582d75 100644 --- a/test/wasm2js/i64-rotate.2asm.js +++ b/test/wasm2js/i64-rotate.2asm.js @@ -34,7 +34,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $1$hi; i64toi32_i32$0 = $0$hi; i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_rotl_i64($0 | 0, i64toi32_i32$0 | 0, $1_1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_rotl_i64($0, i64toi32_i32$0, $1_1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $5$hi = i64toi32_i32$0; i64toi32_i32$0 = $2$hi; @@ -56,7 +56,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $1$hi; i64toi32_i32$0 = $0$hi; i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_rotr_i64($0 | 0, i64toi32_i32$0 | 0, $1_1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_rotr_i64($0, i64toi32_i32$0, $1_1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $5$hi = i64toi32_i32$0; i64toi32_i32$0 = $2$hi; @@ -67,12 +67,6 @@ function asmFunc(global, env, buffer) { } function legalstub$1($0, $1_1, $2_1, $3, $4, $5) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3 = $3 | 0; - $4 = $4 | 0; - $5 = $5 | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; i64toi32_i32$0 = 0; $7 = $0; @@ -158,16 +152,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $11$hi; i64toi32_i32$1 = $17$hi; i64toi32_i32$2 = $23$hi; - return $1($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0; + return $1($11, i64toi32_i32$0, $17, i64toi32_i32$1, $23, i64toi32_i32$2); } function legalstub$2($0, $1_1, $2_1, $3, $4, $5) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3 = $3 | 0; - $4 = $4 | 0; - $5 = $5 | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; i64toi32_i32$0 = 0; $7 = $0; @@ -253,14 +241,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $11$hi; i64toi32_i32$1 = $17$hi; i64toi32_i32$2 = $23$hi; - return $2($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0; + return $2($11, i64toi32_i32$0, $17, i64toi32_i32$1, $23, i64toi32_i32$2); } function __wasm_rotl_i64(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, var$2$hi = 0, var$2 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $6$hi = 0, $8$hi = 0, $10 = 0, $10$hi = 0, $15$hi = 0, $17$hi = 0, $19$hi = 0; i64toi32_i32$0 = var$1$hi; i64toi32_i32$2 = var$1; @@ -269,8 +253,8 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1; var$2 = i64toi32_i32$2 & i64toi32_i32$3; var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$1 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$2 = var$2$hi; i64toi32_i32$3 = var$2; i64toi32_i32$4 = i64toi32_i32$3 & 31; @@ -326,8 +310,8 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$5 & i64toi32_i32$0; var$1 = i64toi32_i32$1 & i64toi32_i32$3; var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 4294967295; - i64toi32_i32$5 = 4294967295; + i64toi32_i32$0 = -1; + i64toi32_i32$5 = -1; i64toi32_i32$1 = var$1$hi; i64toi32_i32$3 = var$1; i64toi32_i32$2 = i64toi32_i32$3 & 31; @@ -375,14 +359,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$5 = i64toi32_i32$5 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_rotr_i64(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, var$2$hi = 0, var$2 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $6$hi = 0, $8$hi = 0, $10 = 0, $10$hi = 0, $15$hi = 0, $17$hi = 0, $19$hi = 0; i64toi32_i32$0 = var$1$hi; i64toi32_i32$2 = var$1; @@ -391,8 +371,8 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1; var$2 = i64toi32_i32$2 & i64toi32_i32$3; var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$1 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$2 = var$2$hi; i64toi32_i32$3 = var$2; i64toi32_i32$4 = i64toi32_i32$3 & 31; @@ -448,8 +428,8 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$5 & i64toi32_i32$0; var$1 = i64toi32_i32$1 & i64toi32_i32$3; var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 4294967295; - i64toi32_i32$5 = 4294967295; + i64toi32_i32$0 = -1; + i64toi32_i32$5 = -1; i64toi32_i32$1 = var$1$hi; i64toi32_i32$3 = var$1; i64toi32_i32$2 = i64toi32_i32$3 & 31; @@ -497,7 +477,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$5 = i64toi32_i32$5 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64-shifts.2asm.js b/test/wasm2js/i64-shifts.2asm.js index 7602fb332..d21c92d37 100644 --- a/test/wasm2js/i64-shifts.2asm.js +++ b/test/wasm2js/i64-shifts.2asm.js @@ -92,12 +92,6 @@ function asmFunc(global, env, buffer) { } function legalstub$1($0, $1_1, $2_1, $3, $4, $5) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3 = $3 | 0; - $4 = $4 | 0; - $5 = $5 | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; i64toi32_i32$0 = 0; $7 = $0; @@ -183,16 +177,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $11$hi; i64toi32_i32$1 = $17$hi; i64toi32_i32$2 = $23$hi; - return $1($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0; + return $1($11, i64toi32_i32$0, $17, i64toi32_i32$1, $23, i64toi32_i32$2); } function legalstub$2($0, $1_1, $2_1, $3, $4, $5) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3 = $3 | 0; - $4 = $4 | 0; - $5 = $5 | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $26 = 0, $27 = 0, $28 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $19 = 0, $19$hi = 0, $22$hi = 0, $23 = 0, $23$hi = 0; i64toi32_i32$0 = 0; $7 = $0; @@ -278,7 +266,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $11$hi; i64toi32_i32$1 = $17$hi; i64toi32_i32$2 = $23$hi; - return $2($11 | 0, i64toi32_i32$0 | 0, $17 | 0, i64toi32_i32$1 | 0, $23 | 0, i64toi32_i32$2 | 0) | 0; + return $2($11, i64toi32_i32$0, $17, i64toi32_i32$1, $23, i64toi32_i32$2); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/i64.2asm.js b/test/wasm2js/i64.2asm.js index 4ad6a6fe2..512f07dd1 100644 --- a/test/wasm2js/i64.2asm.js +++ b/test/wasm2js/i64.2asm.js @@ -86,7 +86,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = y$hi; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_mul(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_mul(x, i64toi32_i32$0, y, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -102,7 +102,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = y$hi; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_sdiv(x, i64toi32_i32$0, y, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -118,7 +118,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = y$hi; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv(x, i64toi32_i32$0, y, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -134,7 +134,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = y$hi; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_srem(x, i64toi32_i32$0, y, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -150,7 +150,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = y$hi; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_urem(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem(x, i64toi32_i32$0, y, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -304,7 +304,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = y$hi; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_rotl_i64(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_rotl_i64(x, i64toi32_i32$0, y, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -320,7 +320,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = y$hi; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_rotr_i64(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_rotr_i64(x, i64toi32_i32$0, y, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -349,7 +349,7 @@ function asmFunc(global, env, buffer) { x$hi = x$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = __wasm_ctz_i64(x | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i64(x, i64toi32_i32$0); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; @@ -360,7 +360,7 @@ function asmFunc(global, env, buffer) { x$hi = x$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; - i64toi32_i32$0 = __wasm_popcnt_i64(x | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_popcnt_i64(x, i64toi32_i32$0); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; @@ -583,10 +583,6 @@ function asmFunc(global, env, buffer) { } function legalstub$0($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -644,7 +640,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $0($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $0($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -665,14 +661,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$1($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -730,7 +722,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $1($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $1($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -751,14 +743,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$2($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -816,7 +804,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $2($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -837,14 +825,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$3($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -902,7 +886,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $3($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -923,14 +907,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$4($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -988,7 +968,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $4($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $4($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1009,14 +989,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$5($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -1074,7 +1050,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $5($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $5($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1095,14 +1071,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$6($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -1160,7 +1132,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $6($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $6($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1181,14 +1153,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$7($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -1246,7 +1214,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $7($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $7($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1267,14 +1235,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$8($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -1332,7 +1296,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $8($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $8($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1353,14 +1317,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$9($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -1418,7 +1378,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $9($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $9($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1439,14 +1399,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$10($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -1504,7 +1460,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $10($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $10($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1525,14 +1481,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$11($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -1590,7 +1542,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $11($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $11($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1611,14 +1563,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$12($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -1676,7 +1624,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $12($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $12($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1697,14 +1645,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$13($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -1762,7 +1706,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $13($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $13($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1783,14 +1727,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$14($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $6_1 = 0, $6$hi = 0, $9$hi = 0, $10_1 = 0, $10$hi = 0, $12_1 = 0, $12$hi = 0, $15$hi = 0, $16_1 = 0, $16$hi = 0, $4_1 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6_1 = $0_1; @@ -1848,7 +1788,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $14($10_1 | 0, i64toi32_i32$1 | 0, $16_1 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $14($10_1, i64toi32_i32$1, $16_1, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4_1 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1869,12 +1809,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23_1 | 0); i64toi32_i32$2 = $4$hi; - return $4_1 | 0; + return $4_1; } function legalstub$15($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -1901,7 +1839,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $15(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $15(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -1922,12 +1860,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$16($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -1954,7 +1890,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $16(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $16(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -1975,12 +1911,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$17($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -2007,7 +1941,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $17(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $17(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -2028,12 +1962,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$18($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10_1 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0_1; @@ -2060,14 +1992,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return $18(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + return $18(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$19($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0_1; @@ -2125,14 +2053,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $19($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0; + return $19($9_1, i64toi32_i32$1, $15_1, i64toi32_i32$2); } function legalstub$20($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0_1; @@ -2190,14 +2114,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $20($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0; + return $20($9_1, i64toi32_i32$1, $15_1, i64toi32_i32$2); } function legalstub$21($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0_1; @@ -2255,14 +2175,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $21($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0; + return $21($9_1, i64toi32_i32$1, $15_1, i64toi32_i32$2); } function legalstub$22($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0_1; @@ -2320,14 +2236,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $22($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0; + return $22($9_1, i64toi32_i32$1, $15_1, i64toi32_i32$2); } function legalstub$23($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0_1; @@ -2385,14 +2297,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $23($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0; + return $23($9_1, i64toi32_i32$1, $15_1, i64toi32_i32$2); } function legalstub$24($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0_1; @@ -2450,14 +2358,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $24($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0; + return $24($9_1, i64toi32_i32$1, $15_1, i64toi32_i32$2); } function legalstub$25($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0_1; @@ -2515,14 +2419,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $25($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0; + return $25($9_1, i64toi32_i32$1, $15_1, i64toi32_i32$2); } function legalstub$26($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0_1; @@ -2580,14 +2480,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $26($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0; + return $26($9_1, i64toi32_i32$1, $15_1, i64toi32_i32$2); } function legalstub$27($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0_1; @@ -2645,14 +2541,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $27($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0; + return $27($9_1, i64toi32_i32$1, $15_1, i64toi32_i32$2); } function legalstub$28($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19_1 = 0, $20_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11_1 = 0, $11$hi = 0, $14$hi = 0, $15_1 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0_1; @@ -2710,7 +2602,7 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $28($9_1 | 0, i64toi32_i32$1 | 0, $15_1 | 0, i64toi32_i32$2 | 0) | 0; + return $28($9_1, i64toi32_i32$1, $15_1, i64toi32_i32$2); } function legalfunc$wasm2js_scratch_load_i64() { @@ -2742,12 +2634,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8_1 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -2770,10 +2660,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$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_1 = 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; var$2 = var$1; @@ -2848,14 +2734,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21_1 = 0, $22_1 = 0, $23_1 = 0, $7$hi = 0, $9_1 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17_1 = 0, $17$hi = 0, $23$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -2930,7 +2812,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9_1 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($9_1, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17_1 = i64toi32_i32$1; $17$hi = i64toi32_i32$4; @@ -2974,14 +2856,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; i64toi32_i32$2 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20_1 = 0, $21_1 = 0, $7$hi = 0, $9_1 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -3056,7 +2934,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9_1 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem($9_1, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17$hi = i64toi32_i32$4; i64toi32_i32$4 = var$2$hi; @@ -3076,14 +2954,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; i64toi32_i32$4 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + return i64toi32_i32$4; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -3159,11 +3033,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -3189,7 +3063,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -3213,7 +3087,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -3222,13 +3096,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -3257,11 +3131,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -3271,7 +3145,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -3281,7 +3155,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -3296,7 +3170,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -3348,8 +3222,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -3481,7 +3355,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -3492,7 +3366,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -3518,10 +3392,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -3529,20 +3403,18 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_ctz_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, $10_1 = 0, $5$hi = 0, $8$hi = 0; i64toi32_i32$0 = var$0$hi; if (((var$0 | i64toi32_i32$0) == (0 | 0) | 0) == (0 | 0)) { { i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 4294967295; - i64toi32_i32$3 = 4294967295; + i64toi32_i32$1 = -1; + i64toi32_i32$3 = -1; i64toi32_i32$4 = i64toi32_i32$2 + i64toi32_i32$3 | 0; i64toi32_i32$5 = i64toi32_i32$0 + i64toi32_i32$1 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { @@ -3573,100 +3445,78 @@ function asmFunc(global, env, buffer) { i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; i64toi32_i32$0 = i64toi32_i32$1; i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } } i64toi32_i32$0 = 0; i64toi32_i32$4 = 64; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + return i64toi32_i32$4; } function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; 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$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; + i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function __wasm_popcnt_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$1 = 0, var$1$hi = 0, var$1 = 0, $5_1 = 0, $5$hi = 0, $4_1 = 0, $9$hi = 0; label$1 : { label$2 : do { @@ -3713,14 +3563,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$4 = $5$hi; i64toi32_i32$5 = $5_1; i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_rotl_i64(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, var$2$hi = 0, var$2 = 0, $19_1 = 0, $20_1 = 0, $21_1 = 0, $22_1 = 0, $6$hi = 0, $8$hi = 0, $10_1 = 0, $10$hi = 0, $15$hi = 0, $17$hi = 0, $19$hi = 0; i64toi32_i32$0 = var$1$hi; i64toi32_i32$2 = var$1; @@ -3729,8 +3575,8 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1; var$2 = i64toi32_i32$2 & i64toi32_i32$3; var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$1 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$2 = var$2$hi; i64toi32_i32$3 = var$2; i64toi32_i32$4 = i64toi32_i32$3 & 31; @@ -3786,8 +3632,8 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$5 & i64toi32_i32$0; var$1 = i64toi32_i32$1 & i64toi32_i32$3; var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 4294967295; - i64toi32_i32$5 = 4294967295; + i64toi32_i32$0 = -1; + i64toi32_i32$5 = -1; i64toi32_i32$1 = var$1$hi; i64toi32_i32$3 = var$1; i64toi32_i32$2 = i64toi32_i32$3 & 31; @@ -3835,14 +3681,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$5 = i64toi32_i32$5 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_rotr_i64(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, var$2$hi = 0, var$2 = 0, $19_1 = 0, $20_1 = 0, $21_1 = 0, $22_1 = 0, $6$hi = 0, $8$hi = 0, $10_1 = 0, $10$hi = 0, $15$hi = 0, $17$hi = 0, $19$hi = 0; i64toi32_i32$0 = var$1$hi; i64toi32_i32$2 = var$1; @@ -3851,8 +3693,8 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1; var$2 = i64toi32_i32$2 & i64toi32_i32$3; var$2$hi = i64toi32_i32$1; - i64toi32_i32$1 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$1 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$2 = var$2$hi; i64toi32_i32$3 = var$2; i64toi32_i32$4 = i64toi32_i32$3 & 31; @@ -3908,8 +3750,8 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$5 & i64toi32_i32$0; var$1 = i64toi32_i32$1 & i64toi32_i32$3; var$1$hi = i64toi32_i32$0; - i64toi32_i32$0 = 4294967295; - i64toi32_i32$5 = 4294967295; + i64toi32_i32$0 = -1; + i64toi32_i32$5 = -1; i64toi32_i32$1 = var$1$hi; i64toi32_i32$3 = var$1; i64toi32_i32$2 = i64toi32_i32$3 & 31; @@ -3957,15 +3799,14 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$5 = i64toi32_i32$5 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/int_exprs.2asm.js b/test/wasm2js/int_exprs.2asm.js index f759bd363..a0594bf12 100644 --- a/test/wasm2js/int_exprs.2asm.js +++ b/test/wasm2js/int_exprs.2asm.js @@ -121,10 +121,6 @@ function asmFunc(global, env, buffer) { } function legalstub$2($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5 = 0, $5$hi = 0, $8$hi = 0, $9 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5 = $0_1; @@ -182,14 +178,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $2($9 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $2($9, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$3($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5 = 0, $5$hi = 0, $8$hi = 0, $9 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5 = $0_1; @@ -247,7 +239,7 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $3($9 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $3($9, i64toi32_i32$1, $15, i64toi32_i32$2); } var FUNCTION_TABLE = []; @@ -303,8 +295,6 @@ function asmFunc(global, env, buffer) { } function legalstub$0($0_1, $1) { - $0_1 = $0_1 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -331,7 +321,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -352,7 +342,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } var FUNCTION_TABLE = []; @@ -401,8 +391,6 @@ function asmFunc(global, env, buffer) { } function legalstub$0($0_1, $1) { - $0_1 = $0_1 | 0; - $1 = $1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -429,7 +417,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -450,7 +438,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } var FUNCTION_TABLE = []; @@ -579,8 +567,6 @@ function asmFunc(global, env, buffer) { } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -607,7 +593,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -628,12 +614,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -660,7 +644,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -681,7 +665,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } var FUNCTION_TABLE = []; @@ -816,8 +800,6 @@ function asmFunc(global, env, buffer) { } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -844,7 +826,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -865,12 +847,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -897,7 +877,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -918,7 +898,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } var FUNCTION_TABLE = []; @@ -989,11 +969,11 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $4 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_sdiv(x, i64toi32_i32$0, 6, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $4 = i64toi32_i32$1; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_mul($4 | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_mul($4, i64toi32_i32$0, 6, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -1005,19 +985,17 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $4 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv(x, i64toi32_i32$0, 6, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $4 = i64toi32_i32$1; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_mul($4 | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_mul($4, i64toi32_i32$0, 6, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -1044,7 +1022,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -1065,12 +1043,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -1097,7 +1073,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -1118,12 +1094,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -1146,10 +1120,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$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 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; i64toi32_i32$0 = var$1$hi; var$2 = var$1; @@ -1224,14 +1194,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -1306,7 +1272,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17 = i64toi32_i32$1; $17$hi = i64toi32_i32$4; @@ -1350,14 +1316,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; i64toi32_i32$2 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -1433,11 +1395,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -1463,7 +1425,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -1487,7 +1449,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -1496,13 +1458,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -1531,11 +1493,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -1545,7 +1507,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -1555,7 +1517,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -1570,7 +1532,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -1622,8 +1584,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -1755,7 +1717,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -1766,7 +1728,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -1792,10 +1754,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -1803,63 +1765,50 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; 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$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -1930,11 +1879,11 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $4 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_mul(x | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_mul(x, i64toi32_i32$0, 6, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $4 = i64toi32_i32$1; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv($4 | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_sdiv($4, i64toi32_i32$0, 6, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -1946,19 +1895,17 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $4 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_mul(x | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_mul(x, i64toi32_i32$0, 6, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $4 = i64toi32_i32$1; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv($4 | 0, i64toi32_i32$0 | 0, 6 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($4, i64toi32_i32$0, 6, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -1985,7 +1932,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -2006,12 +1953,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -2038,7 +1983,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -2059,12 +2004,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -2087,10 +2030,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$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 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; i64toi32_i32$0 = var$1$hi; var$2 = var$1; @@ -2165,14 +2104,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -2247,7 +2182,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17 = i64toi32_i32$1; $17$hi = i64toi32_i32$4; @@ -2291,14 +2226,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; i64toi32_i32$2 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -2374,11 +2305,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -2404,7 +2335,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -2428,7 +2359,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -2437,13 +2368,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -2472,11 +2403,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -2486,7 +2417,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -2496,7 +2427,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -2511,7 +2442,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -2563,8 +2494,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -2696,7 +2627,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -2707,7 +2638,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -2733,10 +2664,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -2744,63 +2675,50 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; 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$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -2866,15 +2784,13 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 2 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_sdiv(x, i64toi32_i32$0, 2, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$1($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -2901,7 +2817,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -2922,12 +2838,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2 = $0_1; @@ -2950,10 +2864,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -3028,7 +2938,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17 = i64toi32_i32$1; $17$hi = i64toi32_i32$4; @@ -3072,30 +2982,22 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; i64toi32_i32$2 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -3171,11 +3073,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -3201,7 +3103,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -3225,7 +3127,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -3234,13 +3136,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -3269,11 +3171,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -3283,7 +3185,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -3293,7 +3195,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -3308,7 +3210,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -3360,8 +3262,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -3493,7 +3395,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -3504,7 +3406,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -3530,10 +3432,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -3541,31 +3443,26 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -3634,15 +3531,13 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, 2 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_srem(x, i64toi32_i32$0, 2, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$1($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -3669,7 +3564,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -3690,7 +3585,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2 | 0; + return $2; } function legalfunc$wasm2js_scratch_load_i64() { @@ -3722,12 +3617,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2 = $0_1; @@ -3750,10 +3643,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -3828,7 +3717,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17$hi = i64toi32_i32$4; i64toi32_i32$4 = var$2$hi; @@ -3848,30 +3737,22 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; i64toi32_i32$4 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + return i64toi32_i32$4; } function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -3947,11 +3828,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -3977,7 +3858,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -4001,7 +3882,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -4010,13 +3891,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -4045,11 +3926,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -4059,7 +3940,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -4069,7 +3950,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -4084,7 +3965,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -4136,8 +4017,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -4269,7 +4150,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -4280,7 +4161,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -4306,10 +4187,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -4317,33 +4198,28 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; + i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -4410,7 +4286,7 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_sdiv(x, i64toi32_i32$0, 0, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -4422,15 +4298,13 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, 0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv(x, i64toi32_i32$0, 0, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -4457,7 +4331,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -4478,12 +4352,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -4510,7 +4382,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -4531,12 +4403,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -4559,10 +4429,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -4637,7 +4503,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17 = i64toi32_i32$1; $17$hi = i64toi32_i32$4; @@ -4681,14 +4547,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; i64toi32_i32$2 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -4764,11 +4626,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -4794,7 +4656,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -4818,7 +4680,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -4827,13 +4689,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -4862,11 +4724,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -4876,7 +4738,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -4886,7 +4748,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -4901,7 +4763,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -4953,8 +4815,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -5086,7 +4948,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -5097,7 +4959,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -5123,10 +4985,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -5134,47 +4996,38 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -5245,7 +5098,7 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 3 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_sdiv(x, i64toi32_i32$0, 3, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -5257,15 +5110,13 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, 3 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv(x, i64toi32_i32$0, 3, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -5292,7 +5143,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -5313,12 +5164,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -5345,7 +5194,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -5366,12 +5215,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -5394,10 +5241,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -5472,7 +5315,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17 = i64toi32_i32$1; $17$hi = i64toi32_i32$4; @@ -5516,14 +5359,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; i64toi32_i32$2 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -5599,11 +5438,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -5629,7 +5468,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -5653,7 +5492,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -5662,13 +5501,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -5697,11 +5536,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -5711,7 +5550,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -5721,7 +5560,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -5736,7 +5575,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -5788,8 +5627,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -5921,7 +5760,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -5932,7 +5771,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -5958,10 +5797,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -5969,47 +5808,38 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -6080,7 +5910,7 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 5 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_sdiv(x, i64toi32_i32$0, 5, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -6092,15 +5922,13 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, 5 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv(x, i64toi32_i32$0, 5, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -6127,7 +5955,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -6148,12 +5976,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -6180,7 +6006,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -6201,12 +6027,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -6229,10 +6053,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -6307,7 +6127,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17 = i64toi32_i32$1; $17$hi = i64toi32_i32$4; @@ -6351,14 +6171,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; i64toi32_i32$2 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -6434,11 +6250,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -6464,7 +6280,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -6488,7 +6304,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -6497,13 +6313,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -6532,11 +6348,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -6546,7 +6362,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -6556,7 +6372,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -6571,7 +6387,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -6623,8 +6439,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -6756,7 +6572,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -6767,7 +6583,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -6793,10 +6609,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -6804,47 +6620,38 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -6915,7 +6722,7 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, 7 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_sdiv(x, i64toi32_i32$0, 7, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -6927,15 +6734,13 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, 7 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv(x, i64toi32_i32$0, 7, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -6962,7 +6767,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -6983,12 +6788,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -7015,7 +6818,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -7036,12 +6839,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -7064,10 +6865,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -7142,7 +6939,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17 = i64toi32_i32$1; $17$hi = i64toi32_i32$4; @@ -7186,14 +6983,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; i64toi32_i32$2 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -7269,11 +7062,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -7299,7 +7092,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -7323,7 +7116,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -7332,13 +7125,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -7367,11 +7160,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -7381,7 +7174,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -7391,7 +7184,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -7406,7 +7199,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -7458,8 +7251,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -7591,7 +7384,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -7602,7 +7395,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -7628,10 +7421,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -7639,47 +7432,38 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -7757,7 +7541,7 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, 3 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_srem(x, i64toi32_i32$0, 3, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -7769,15 +7553,13 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_urem(x | 0, i64toi32_i32$0 | 0, 3 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem(x, i64toi32_i32$0, 3, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -7804,7 +7586,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -7825,12 +7607,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -7857,7 +7637,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -7878,7 +7658,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalfunc$wasm2js_scratch_load_i64() { @@ -7910,12 +7690,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -7938,10 +7716,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -8016,7 +7790,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17$hi = i64toi32_i32$4; i64toi32_i32$4 = var$2$hi; @@ -8036,14 +7810,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; i64toi32_i32$4 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + return i64toi32_i32$4; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -8119,11 +7889,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -8149,7 +7919,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -8173,7 +7943,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -8182,13 +7952,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -8217,11 +7987,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -8231,7 +8001,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -8241,7 +8011,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -8256,7 +8026,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -8308,8 +8078,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -8441,7 +8211,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -8452,7 +8222,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -8478,10 +8248,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -8489,49 +8259,40 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; + i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -8609,7 +8370,7 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, 5 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_srem(x, i64toi32_i32$0, 5, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -8621,15 +8382,13 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_urem(x | 0, i64toi32_i32$0 | 0, 5 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem(x, i64toi32_i32$0, 5, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -8656,7 +8415,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -8677,12 +8436,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -8709,7 +8466,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -8730,7 +8487,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalfunc$wasm2js_scratch_load_i64() { @@ -8762,12 +8519,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -8790,10 +8545,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -8868,7 +8619,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17$hi = i64toi32_i32$4; i64toi32_i32$4 = var$2$hi; @@ -8888,14 +8639,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; i64toi32_i32$4 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + return i64toi32_i32$4; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -8971,11 +8718,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -9001,7 +8748,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -9025,7 +8772,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -9034,13 +8781,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -9069,11 +8816,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -9083,7 +8830,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -9093,7 +8840,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -9108,7 +8855,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -9160,8 +8907,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -9293,7 +9040,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -9304,7 +9051,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -9330,10 +9077,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -9341,49 +9088,40 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; + i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -9461,7 +9199,7 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, 7 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_srem(x, i64toi32_i32$0, 7, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -9473,15 +9211,13 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = 0; - i64toi32_i32$1 = __wasm_i64_urem(x | 0, i64toi32_i32$0 | 0, 7 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem(x, i64toi32_i32$0, 7, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -9508,7 +9244,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -9529,12 +9265,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4 = $0_1; @@ -9561,7 +9295,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -9582,7 +9316,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalfunc$wasm2js_scratch_load_i64() { @@ -9614,12 +9348,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -9642,10 +9374,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -9720,7 +9448,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17$hi = i64toi32_i32$4; i64toi32_i32$4 = var$2$hi; @@ -9740,14 +9468,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; i64toi32_i32$4 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + return i64toi32_i32$4; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -9823,11 +9547,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -9853,7 +9577,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -9877,7 +9601,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -9886,13 +9610,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -9921,11 +9645,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -9935,7 +9659,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -9945,7 +9669,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -9960,7 +9684,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -10012,8 +9736,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -10145,7 +9869,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -10156,7 +9880,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -10182,10 +9906,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -10193,49 +9917,40 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; + i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/int_literals.2asm.js b/test/wasm2js/int_literals.2asm.js index 698e1eb17..e5b26f3ac 100644 --- a/test/wasm2js/int_literals.2asm.js +++ b/test/wasm2js/int_literals.2asm.js @@ -29,7 +29,7 @@ function asmFunc(global, env, buffer) { } function $1() { - return 4294967295 | 0; + return -1 | 0; } function $2() { @@ -37,19 +37,19 @@ function asmFunc(global, env, buffer) { } function $3() { - return 2147483649 | 0; + return -2147483647 | 0; } function $4() { - return 2147483648 | 0; + return -2147483648 | 0; } function $5() { - return 2147483648 | 0; + return -2147483648 | 0; } function $6() { - return 2147483648 + 1 | 0; + return -2147483648 + 1 | 0; } function $7() { @@ -61,7 +61,7 @@ function asmFunc(global, env, buffer) { } function $9() { - return 4294967295 | 0; + return -1 | 0; } function $10() { @@ -74,27 +74,27 @@ function asmFunc(global, env, buffer) { } function $12() { - i64toi32_i32$HIGH_BITS = 4294967295; - return 4294967295 | 0; + i64toi32_i32$HIGH_BITS = -1; + return -1 | 0; } function $13() { i64toi32_i32$HIGH_BITS = 2147483647; - return 4294967295 | 0; + return -1 | 0; } function $14() { - i64toi32_i32$HIGH_BITS = 2147483648; + i64toi32_i32$HIGH_BITS = -2147483648; return 1 | 0; } function $15() { - i64toi32_i32$HIGH_BITS = 2147483648; + i64toi32_i32$HIGH_BITS = -2147483648; return 0 | 0; } function $16() { - i64toi32_i32$HIGH_BITS = 2147483648; + i64toi32_i32$HIGH_BITS = -2147483648; return 0 | 0; } @@ -102,7 +102,7 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$5 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0; i64toi32_i32$3 = 1; i64toi32_i32$4 = 0 + i64toi32_i32$3 | 0; - i64toi32_i32$5 = 2147483648 + 0 | 0; + i64toi32_i32$5 = -2147483648 + 0 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { i64toi32_i32$5 = i64toi32_i32$5 + 1 | 0 } @@ -121,8 +121,8 @@ function asmFunc(global, env, buffer) { } function $20() { - i64toi32_i32$HIGH_BITS = 4294967295; - return 4294967295 | 0; + i64toi32_i32$HIGH_BITS = -1; + return -1 | 0; } function $21() { @@ -132,7 +132,7 @@ function asmFunc(global, env, buffer) { function legalstub$11() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $11() | 0; + i64toi32_i32$0 = $11(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -153,12 +153,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$12() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $12() | 0; + i64toi32_i32$0 = $12(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -179,12 +179,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$13() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $13() | 0; + i64toi32_i32$0 = $13(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -205,12 +205,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$14() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $14() | 0; + i64toi32_i32$0 = $14(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -231,12 +231,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$15() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $15() | 0; + i64toi32_i32$0 = $15(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -257,12 +257,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$16() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $16() | 0; + i64toi32_i32$0 = $16(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -283,12 +283,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$17() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $17() | 0; + i64toi32_i32$0 = $17(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -309,12 +309,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$18() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $18() | 0; + i64toi32_i32$0 = $18(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -335,12 +335,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$19() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $19() | 0; + i64toi32_i32$0 = $19(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -361,12 +361,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$20() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $20() | 0; + i64toi32_i32$0 = $20(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -387,12 +387,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$21() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $21() | 0; + i64toi32_i32$0 = $21(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -413,7 +413,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/left-to-right.2asm.js b/test/wasm2js/left-to-right.2asm.js index cdd3f32b2..0c92f249c 100644 --- a/test/wasm2js/left-to-right.2asm.js +++ b/test/wasm2js/left-to-right.2asm.js @@ -63,13 +63,13 @@ function asmFunc(global, env, buffer) { function i32_t0($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - return 4294967295 | 0; + return -1 | 0; } function i32_t1($0, $1) { $0 = $0 | 0; $1 = $1 | 0; - return 4294967294 | 0; + return -2 | 0; } function i64_t0($0, $0$hi, $1, $1$hi) { @@ -77,7 +77,7 @@ function asmFunc(global, env, buffer) { $0$hi = $0$hi | 0; $1 = $1 | 0; $1$hi = $1$hi | 0; - return 4294967295 | 0; + return -1 | 0; } function i64_t1($0, $0$hi, $1, $1$hi) { @@ -85,31 +85,31 @@ function asmFunc(global, env, buffer) { $0$hi = $0$hi | 0; $1 = $1 | 0; $1$hi = $1$hi | 0; - return 4294967294 | 0; + return -2 | 0; } function f32_t0($0, $1) { $0 = Math_fround($0); $1 = Math_fround($1); - return 4294967295 | 0; + return -1 | 0; } function f32_t1($0, $1) { $0 = Math_fround($0); $1 = Math_fround($1); - return 4294967294 | 0; + return -2 | 0; } function f64_t0($0, $1) { $0 = +$0; $1 = +$1; - return 4294967295 | 0; + return -1 | 0; } function f64_t1($0, $1) { $0 = +$0; $1 = +$1; - return 4294967294 | 0; + return -2 | 0; } function reset() { @@ -117,38 +117,38 @@ function asmFunc(global, env, buffer) { } function bump() { - HEAP8[11 | 0] = HEAPU8[10 | 0] | 0; - HEAP8[10 | 0] = HEAPU8[9 | 0] | 0; - HEAP8[9 | 0] = HEAPU8[8 | 0] | 0; - HEAP8[8 | 0] = 4294967293; + HEAP8[11 | 0] = HEAPU8[10 | 0]; + HEAP8[10 | 0] = HEAPU8[9 | 0]; + HEAP8[9 | 0] = HEAPU8[8 | 0]; + HEAP8[8 | 0] = -3; } function get() { - return HEAP32[8 >> 2] | 0; + return HEAP32[8 >> 2]; } function i32_left() { bump(); HEAP8[8 | 0] = 1; - return 0 | 0; + return 0; } function i32_right() { bump(); HEAP8[8 | 0] = 2; - return 1 | 0; + return 1; } function i32_callee() { bump(); HEAP8[8 | 0] = 4; - return 0 | 0; + return 0; } function i32_bool() { bump(); HEAP8[8 | 0] = 5; - return 0 | 0; + return 0; } function i64_left() { @@ -157,7 +157,7 @@ function asmFunc(global, env, buffer) { HEAP8[8 | 0] = 1; i64toi32_i32$0 = 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return 0 | 0; + return 0; } function i64_right() { @@ -166,106 +166,100 @@ function asmFunc(global, env, buffer) { HEAP8[8 | 0] = 2; i64toi32_i32$0 = 0; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return 1 | 0; + return 1; } function i64_callee() { bump(); HEAP8[8 | 0] = 4; - return 2 | 0; + return 2; } function i64_bool() { bump(); HEAP8[8 | 0] = 5; - return 0 | 0; + return 0; } function f32_left() { bump(); HEAP8[8 | 0] = 1; - return Math_fround(Math_fround(0.0)); + return Math_fround(0.0); } function f32_right() { bump(); HEAP8[8 | 0] = 2; - return Math_fround(Math_fround(1.0)); + return Math_fround(1.0); } function f32_callee() { bump(); HEAP8[8 | 0] = 4; - return 4 | 0; + return 4; } function f32_bool() { bump(); HEAP8[8 | 0] = 5; - return 0 | 0; + return 0; } function f64_left() { bump(); HEAP8[8 | 0] = 1; - return +(0.0); + return 0.0; } function f64_right() { bump(); HEAP8[8 | 0] = 2; - return +(1.0); + return 1.0; } function f64_callee() { bump(); HEAP8[8 | 0] = 4; - return 6 | 0; + return 6; } function f64_bool() { bump(); HEAP8[8 | 0] = 5; - return 0 | 0; + return 0; } function i32_dummy($0, $1) { - $0 = $0 | 0; - $1 = $1 | 0; + } function i64_dummy($0, $0$hi, $1, $1$hi) { - $0 = $0 | 0; - $0$hi = $0$hi | 0; - $1 = $1 | 0; - $1$hi = $1$hi | 0; + } function f32_dummy($0, $1) { - $0 = Math_fround($0); - $1 = Math_fround($1); + } function f64_dummy($0, $1) { - $0 = +$0; - $1 = +$1; + } function $35() { reset(); - (i32_left() | 0) + (i32_right() | 0) | 0; + i32_left() + i32_right() | 0; return get() | 0; } function $36() { reset(); - (i32_left() | 0) - (i32_right() | 0) | 0; + i32_left() - i32_right() | 0; return get() | 0; } function $37() { reset(); - Math_imul(i32_left() | 0, i32_right() | 0); + Math_imul(i32_left(), i32_right()); return get() | 0; } @@ -392,52 +386,52 @@ function asmFunc(global, env, buffer) { function $58() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; reset(); - (wasm2js_i32$0 = i32_left() | 0, wasm2js_i32$1 = i32_right() | 0), HEAP32[wasm2js_i32$0 >> 2] = wasm2js_i32$1; + (wasm2js_i32$0 = i32_left(), wasm2js_i32$1 = i32_right()), HEAP32[wasm2js_i32$0 >> 2] = wasm2js_i32$1; return get() | 0; } function $59() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; reset(); - (wasm2js_i32$0 = i32_left() | 0, wasm2js_i32$1 = i32_right() | 0), HEAP8[wasm2js_i32$0 | 0] = wasm2js_i32$1; + (wasm2js_i32$0 = i32_left(), wasm2js_i32$1 = i32_right()), HEAP8[wasm2js_i32$0 | 0] = wasm2js_i32$1; return get() | 0; } function $60() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; reset(); - (wasm2js_i32$0 = i32_left() | 0, wasm2js_i32$1 = i32_right() | 0), HEAP16[wasm2js_i32$0 >> 1] = wasm2js_i32$1; + (wasm2js_i32$0 = i32_left(), wasm2js_i32$1 = i32_right()), HEAP16[wasm2js_i32$0 >> 1] = wasm2js_i32$1; return get() | 0; } function $61() { reset(); - i32_dummy(i32_left() | 0, i32_right() | 0); + i32_dummy(i32_left(), i32_right()); return get() | 0; } function $62() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0, wasm2js_i32$2 = 0; reset(); - ((wasm2js_i32$1 = i32_left() | 0, wasm2js_i32$2 = i32_right() | 0), wasm2js_i32$0 = i32_callee() | 0), FUNCTION_TABLE[wasm2js_i32$0](wasm2js_i32$1 | 0, wasm2js_i32$2 | 0) | 0; + ((wasm2js_i32$1 = i32_left(), wasm2js_i32$2 = i32_right()), wasm2js_i32$0 = i32_callee()), FUNCTION_TABLE[wasm2js_i32$0](wasm2js_i32$1 | 0, wasm2js_i32$2 | 0) | 0; return get() | 0; } function $63() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0, wasm2js_i32$2 = 0; reset(); - wasm2js_i32$0 = i32_left() | 0, wasm2js_i32$1 = i32_right() | 0, wasm2js_i32$2 = i32_bool() | 0, wasm2js_i32$2 ? wasm2js_i32$0 : wasm2js_i32$1; + wasm2js_i32$0 = i32_left(), wasm2js_i32$1 = i32_right(), wasm2js_i32$2 = i32_bool(), wasm2js_i32$2 ? wasm2js_i32$0 : wasm2js_i32$1; return get() | 0; } function $64() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$5 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -455,11 +449,11 @@ function asmFunc(global, env, buffer) { function $65() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -475,17 +469,17 @@ function asmFunc(global, env, buffer) { function $66() { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; i64toi32_i32$0 = $0$hi; i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_mul($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_mul($0, i64toi32_i32$0, $1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; return get() | 0; } @@ -493,17 +487,17 @@ function asmFunc(global, env, buffer) { function $67() { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; i64toi32_i32$0 = $0$hi; i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_sdiv($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_sdiv($0, i64toi32_i32$0, $1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; return get() | 0; } @@ -511,17 +505,17 @@ function asmFunc(global, env, buffer) { function $68() { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; i64toi32_i32$0 = $0$hi; i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_udiv($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($0, i64toi32_i32$0, $1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; return get() | 0; } @@ -529,17 +523,17 @@ function asmFunc(global, env, buffer) { function $69() { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; i64toi32_i32$0 = $0$hi; i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_srem($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_srem($0, i64toi32_i32$0, $1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; return get() | 0; } @@ -547,17 +541,17 @@ function asmFunc(global, env, buffer) { function $70() { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; i64toi32_i32$0 = $0$hi; i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_urem($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem($0, i64toi32_i32$0, $1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; return get() | 0; } @@ -565,11 +559,11 @@ function asmFunc(global, env, buffer) { function $71() { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -582,11 +576,11 @@ function asmFunc(global, env, buffer) { function $72() { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -599,11 +593,11 @@ function asmFunc(global, env, buffer) { function $73() { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -616,11 +610,11 @@ function asmFunc(global, env, buffer) { function $74() { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, $9 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -646,11 +640,11 @@ function asmFunc(global, env, buffer) { function $75() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $9 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -676,11 +670,11 @@ function asmFunc(global, env, buffer) { function $76() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $9 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -706,11 +700,11 @@ function asmFunc(global, env, buffer) { function $77() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -722,11 +716,11 @@ function asmFunc(global, env, buffer) { function $78() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -738,11 +732,11 @@ function asmFunc(global, env, buffer) { function $79() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $8 = 0, $9 = 0, $10 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -775,11 +769,11 @@ function asmFunc(global, env, buffer) { function $80() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $8 = 0, $9 = 0, $10 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -812,11 +806,11 @@ function asmFunc(global, env, buffer) { function $81() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -828,11 +822,11 @@ function asmFunc(global, env, buffer) { function $82() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -844,11 +838,11 @@ function asmFunc(global, env, buffer) { function $83() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $8 = 0, $9 = 0, $10 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -881,11 +875,11 @@ function asmFunc(global, env, buffer) { function $84() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $8 = 0, $9 = 0, $10 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$2 = 0, i64toi32_i32$3 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -918,11 +912,11 @@ function asmFunc(global, env, buffer) { function $85() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -934,11 +928,11 @@ function asmFunc(global, env, buffer) { function $86() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -950,8 +944,8 @@ function asmFunc(global, env, buffer) { function $87() { var i64toi32_i32$0 = 0, $0 = 0, i64toi32_i32$1 = 0, $1 = 0, wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; reset(); - $0 = i32_left() | 0; - i64toi32_i32$0 = i64_right() | 0; + $0 = i32_left(); + i64toi32_i32$0 = i64_right(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$0; i64toi32_i32$0 = $0; @@ -963,70 +957,70 @@ function asmFunc(global, env, buffer) { function $88() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; reset(); - (wasm2js_i32$0 = i32_left() | 0, wasm2js_i32$1 = i64_right() | 0), HEAP8[wasm2js_i32$0 | 0] = wasm2js_i32$1; + (wasm2js_i32$0 = i32_left(), wasm2js_i32$1 = i64_right()), HEAP8[wasm2js_i32$0 | 0] = wasm2js_i32$1; return get() | 0; } function $89() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; reset(); - (wasm2js_i32$0 = i32_left() | 0, wasm2js_i32$1 = i64_right() | 0), HEAP16[wasm2js_i32$0 >> 1] = wasm2js_i32$1; + (wasm2js_i32$0 = i32_left(), wasm2js_i32$1 = i64_right()), HEAP16[wasm2js_i32$0 >> 1] = wasm2js_i32$1; return get() | 0; } function $90() { var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; reset(); - (wasm2js_i32$0 = i32_left() | 0, wasm2js_i32$1 = i64_right() | 0), HEAP32[wasm2js_i32$0 >> 2] = wasm2js_i32$1; + (wasm2js_i32$0 = i32_left(), wasm2js_i32$1 = i64_right()), HEAP32[wasm2js_i32$0 >> 2] = wasm2js_i32$1; return get() | 0; } function $91() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; i64toi32_i32$0 = $0$hi; i64toi32_i32$1 = $1$hi; - i64_dummy($0 | 0, i64toi32_i32$0 | 0, $1 | 0, i64toi32_i32$1 | 0); + i64_dummy($0, i64toi32_i32$0, $1, i64toi32_i32$1); return get() | 0; } function $92() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, wasm2js_i32$0 = 0, wasm2js_i32$1 = 0, wasm2js_i32$2 = 0, wasm2js_i32$3 = 0, wasm2js_i32$4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; i64toi32_i32$0 = $0$hi; i64toi32_i32$1 = $1$hi; - ((((wasm2js_i32$1 = $0, wasm2js_i32$2 = i64toi32_i32$0), wasm2js_i32$3 = $1), wasm2js_i32$4 = i64toi32_i32$1), wasm2js_i32$0 = i64_callee() | 0), FUNCTION_TABLE[wasm2js_i32$0](wasm2js_i32$1 | 0, wasm2js_i32$2 | 0, wasm2js_i32$3 | 0, wasm2js_i32$4 | 0) | 0; + ((((wasm2js_i32$1 = $0, wasm2js_i32$2 = i64toi32_i32$0), wasm2js_i32$3 = $1), wasm2js_i32$4 = i64toi32_i32$1), wasm2js_i32$0 = i64_callee()), FUNCTION_TABLE[wasm2js_i32$0](wasm2js_i32$1 | 0, wasm2js_i32$2 | 0, wasm2js_i32$3 | 0, wasm2js_i32$4 | 0) | 0; return get() | 0; } function $93() { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $0 = 0, $0$hi = 0, $1 = 0, $1$hi = 0, i64toi32_i32$4 = 0; reset(); - i64toi32_i32$0 = i64_left() | 0; + i64toi32_i32$0 = i64_left(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; - i64toi32_i32$1 = i64_right() | 0; + i64toi32_i32$1 = i64_right(); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; - i64toi32_i32$4 = i64_bool() | 0; + i64toi32_i32$4 = i64_bool(); i64toi32_i32$0 = $0$hi; i64toi32_i32$1 = $1$hi; return get() | 0; @@ -1034,148 +1028,148 @@ function asmFunc(global, env, buffer) { function $94() { reset(); - Math_fround(Math_fround(f32_left()) + Math_fround(f32_right())); + Math_fround(f32_left() + f32_right()); return get() | 0; } function $95() { reset(); - Math_fround(Math_fround(f32_left()) - Math_fround(f32_right())); + Math_fround(f32_left() - f32_right()); return get() | 0; } function $96() { reset(); - Math_fround(Math_fround(f32_left()) * Math_fround(f32_right())); + Math_fround(f32_left() * f32_right()); return get() | 0; } function $97() { reset(); - Math_fround(Math_fround(f32_left()) / Math_fround(f32_right())); + Math_fround(f32_left() / f32_right()); return get() | 0; } function $98() { reset(); - (wasm2js_scratch_store_f32(Math_fround(f32_left())), wasm2js_scratch_load_i32(0)) & 2147483647 | (wasm2js_scratch_store_f32(Math_fround(f32_right())), wasm2js_scratch_load_i32(0)) & 2147483648; + (wasm2js_scratch_store_f32(f32_left()), wasm2js_scratch_load_i32(0)) & 2147483647 | (wasm2js_scratch_store_f32(f32_right()), wasm2js_scratch_load_i32(0)) & -2147483648; return get() | 0; } function $99() { reset(); - Math_fround(f32_left()) == Math_fround(f32_right()); + f32_left() == f32_right(); return get() | 0; } function $100() { reset(); - Math_fround(f32_left()) != Math_fround(f32_right()); + f32_left() != f32_right(); return get() | 0; } function $101() { reset(); - Math_fround(f32_left()) < Math_fround(f32_right()); + f32_left() < f32_right(); return get() | 0; } function $102() { reset(); - Math_fround(f32_left()) <= Math_fround(f32_right()); + f32_left() <= f32_right(); return get() | 0; } function $103() { reset(); - Math_fround(f32_left()) > Math_fround(f32_right()); + f32_left() > f32_right(); return get() | 0; } function $104() { reset(); - Math_fround(f32_left()) >= Math_fround(f32_right()); + f32_left() >= f32_right(); return get() | 0; } function $105() { reset(); - Math_fround(Math_min(Math_fround(f32_left()), Math_fround(f32_right()))); + Math_fround(Math_min(f32_left(), f32_right())); return get() | 0; } function $106() { reset(); - Math_fround(Math_max(Math_fround(f32_left()), Math_fround(f32_right()))); + Math_fround(Math_max(f32_left(), f32_right())); return get() | 0; } function $107() { var wasm2js_i32$0 = 0, wasm2js_f32$0 = Math_fround(0); reset(); - (wasm2js_i32$0 = i32_left() | 0, wasm2js_f32$0 = Math_fround(f32_right())), HEAPF32[wasm2js_i32$0 >> 2] = wasm2js_f32$0; + (wasm2js_i32$0 = i32_left(), wasm2js_f32$0 = f32_right()), HEAPF32[wasm2js_i32$0 >> 2] = wasm2js_f32$0; return get() | 0; } function $108() { reset(); - f32_dummy(Math_fround(Math_fround(f32_left())), Math_fround(Math_fround(f32_right()))); + f32_dummy(f32_left(), f32_right()); return get() | 0; } function $109() { var wasm2js_i32$0 = 0, wasm2js_f32$0 = Math_fround(0), wasm2js_f32$1 = Math_fround(0); reset(); - ((wasm2js_f32$0 = Math_fround(f32_left()), wasm2js_f32$1 = Math_fround(f32_right())), wasm2js_i32$0 = f32_callee() | 0), FUNCTION_TABLE[wasm2js_i32$0](Math_fround(wasm2js_f32$0), Math_fround(wasm2js_f32$1)) | 0; + ((wasm2js_f32$0 = f32_left(), wasm2js_f32$1 = f32_right()), wasm2js_i32$0 = f32_callee()), FUNCTION_TABLE[wasm2js_i32$0](Math_fround(wasm2js_f32$0), Math_fround(wasm2js_f32$1)) | 0; return get() | 0; } function $110() { var wasm2js_f32$0 = Math_fround(0), wasm2js_f32$1 = Math_fround(0), wasm2js_i32$0 = 0; reset(); - wasm2js_f32$0 = Math_fround(f32_left()), wasm2js_f32$1 = Math_fround(f32_right()), wasm2js_i32$0 = f32_bool() | 0, wasm2js_i32$0 ? wasm2js_f32$0 : wasm2js_f32$1; + wasm2js_f32$0 = f32_left(), wasm2js_f32$1 = f32_right(), wasm2js_i32$0 = f32_bool(), wasm2js_i32$0 ? wasm2js_f32$0 : wasm2js_f32$1; return get() | 0; } function $111() { reset(); - +f64_left() + +f64_right(); + f64_left() + f64_right(); return get() | 0; } function $112() { reset(); - +f64_left() - +f64_right(); + f64_left() - f64_right(); return get() | 0; } function $113() { reset(); - +f64_left() * +f64_right(); + f64_left() * f64_right(); return get() | 0; } function $114() { reset(); - +f64_left() / +f64_right(); + f64_left() / f64_right(); return get() | 0; } function $115() { var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $2 = 0, $2$hi = 0, $5 = 0, $5$hi = 0; reset(); - wasm2js_scratch_store_f64(+(+f64_left())); + wasm2js_scratch_store_f64(+f64_left()); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$2 = wasm2js_scratch_load_i32(0 | 0) | 0; i64toi32_i32$1 = 2147483647; - i64toi32_i32$3 = 4294967295; + i64toi32_i32$3 = -1; i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1; $2 = i64toi32_i32$2 & i64toi32_i32$3; $2$hi = i64toi32_i32$1; - wasm2js_scratch_store_f64(+(+f64_right())); + wasm2js_scratch_store_f64(+f64_right()); i64toi32_i32$1 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$0 = wasm2js_scratch_load_i32(0 | 0) | 0; - i64toi32_i32$2 = 2147483648; + i64toi32_i32$2 = -2147483648; i64toi32_i32$3 = 0; i64toi32_i32$2 = i64toi32_i32$1 & i64toi32_i32$2; $5 = i64toi32_i32$0 & i64toi32_i32$3; @@ -1193,76 +1187,76 @@ function asmFunc(global, env, buffer) { function $116() { reset(); - +f64_left() == +f64_right(); + f64_left() == f64_right(); return get() | 0; } function $117() { reset(); - +f64_left() != +f64_right(); + f64_left() != f64_right(); return get() | 0; } function $118() { reset(); - +f64_left() < +f64_right(); + f64_left() < f64_right(); return get() | 0; } function $119() { reset(); - +f64_left() <= +f64_right(); + f64_left() <= f64_right(); return get() | 0; } function $120() { reset(); - +f64_left() > +f64_right(); + f64_left() > f64_right(); return get() | 0; } function $121() { reset(); - +f64_left() >= +f64_right(); + f64_left() >= f64_right(); return get() | 0; } function $122() { reset(); - Math_min(+f64_left(), +f64_right()); + Math_min(f64_left(), f64_right()); return get() | 0; } function $123() { reset(); - Math_max(+f64_left(), +f64_right()); + Math_max(f64_left(), f64_right()); return get() | 0; } function $124() { var wasm2js_i32$0 = 0, wasm2js_f64$0 = 0.0; reset(); - (wasm2js_i32$0 = i32_left() | 0, wasm2js_f64$0 = +f64_right()), HEAPF64[wasm2js_i32$0 >> 3] = wasm2js_f64$0; + (wasm2js_i32$0 = i32_left(), wasm2js_f64$0 = f64_right()), HEAPF64[wasm2js_i32$0 >> 3] = wasm2js_f64$0; return get() | 0; } function $125() { reset(); - f64_dummy(+(+f64_left()), +(+f64_right())); + f64_dummy(f64_left(), f64_right()); return get() | 0; } function $126() { var wasm2js_i32$0 = 0, wasm2js_f64$0 = 0.0, wasm2js_f64$1 = 0.0; reset(); - ((wasm2js_f64$0 = +f64_left(), wasm2js_f64$1 = +f64_right()), wasm2js_i32$0 = f64_callee() | 0), FUNCTION_TABLE[wasm2js_i32$0](+wasm2js_f64$0, +wasm2js_f64$1) | 0; + ((wasm2js_f64$0 = f64_left(), wasm2js_f64$1 = f64_right()), wasm2js_i32$0 = f64_callee()), FUNCTION_TABLE[wasm2js_i32$0](+wasm2js_f64$0, +wasm2js_f64$1) | 0; return get() | 0; } function $127() { var wasm2js_f64$0 = 0.0, wasm2js_f64$1 = 0.0, wasm2js_i32$0 = 0; reset(); - wasm2js_f64$0 = +f64_left(), wasm2js_f64$1 = +f64_right(), wasm2js_i32$0 = f64_bool() | 0, wasm2js_i32$0 ? wasm2js_f64$0 : wasm2js_f64$1; + wasm2js_f64$0 = f64_left(), wasm2js_f64$1 = f64_right(), wasm2js_i32$0 = f64_bool(), wasm2js_i32$0 ? wasm2js_f64$0 : wasm2js_f64$1; return get() | 0; } @@ -1270,11 +1264,11 @@ function asmFunc(global, env, buffer) { var $3 = 0; block : { reset(); - $3 = i32_left() | 0; + $3 = i32_left(); if (i32_right() & 0) { break block } - $3 = get() | 0; + $3 = get(); } return $3 | 0; } @@ -1284,7 +1278,7 @@ function asmFunc(global, env, buffer) { a : { reset(); b : { - $2 = i32_left() | 0; + $2 = i32_left(); $3 = $2; $4 = $2; switch (i32_right() | 0) { @@ -1294,7 +1288,7 @@ function asmFunc(global, env, buffer) { break b; }; } - $3 = get() | 0; + $3 = get(); } return $3 | 0; } @@ -1328,12 +1322,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function legalfunc$wasm2js_scratch_store_i64($0, $0$hi) { - $0 = $0 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2 = $0; @@ -1356,10 +1348,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$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 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45_1 = 0, $56$hi = 0, $62$hi = 0; i64toi32_i32$0 = var$1$hi; var$2 = var$1; @@ -1434,14 +1422,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -1516,7 +1500,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17 = i64toi32_i32$1; $17$hi = i64toi32_i32$4; @@ -1560,14 +1544,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; i64toi32_i32$2 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -1642,7 +1622,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17$hi = i64toi32_i32$4; i64toi32_i32$4 = var$2$hi; @@ -1662,14 +1642,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; i64toi32_i32$4 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + return i64toi32_i32$4; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37_1 = 0, $38_1 = 0, $39_1 = 0, $40_1 = 0, $41_1 = 0, $42_1 = 0, $43_1 = 0, $44_1 = 0, var$8$hi = 0, $45_1 = 0, $46_1 = 0, $47_1 = 0, $48_1 = 0, var$7$hi = 0, $49_1 = 0, $63$hi = 0, $65_1 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -1745,11 +1721,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -1775,7 +1751,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -1799,7 +1775,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65_1 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -1808,13 +1784,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65_1; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -1843,11 +1819,11 @@ function asmFunc(global, env, buffer) { $41_1 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41_1 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41_1, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -1857,7 +1833,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -1867,7 +1843,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -1882,7 +1858,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42_1; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -1934,8 +1910,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -2067,7 +2043,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -2078,7 +2054,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -2104,10 +2080,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -2115,97 +2091,76 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; 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$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; + i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = [i32_t0, i32_t1, i64_t0, i64_t1, f32_t0, f32_t1, f64_t0, f64_t1]; diff --git a/test/wasm2js/loop.2asm.js b/test/wasm2js/loop.2asm.js index c51e093ca..948617604 100644 --- a/test/wasm2js/loop.2asm.js +++ b/test/wasm2js/loop.2asm.js @@ -90,7 +90,7 @@ function asmFunc(global, env, buffer) { var $2_1 = 0; dummy(); $2_1 = 13; - return __wasm_ctz_i32($2_1 | 0) | 0; + return __wasm_ctz_i32($2_1) | 0; } function $7() { @@ -229,7 +229,7 @@ function asmFunc(global, env, buffer) { $0 = Math_imul($0, 7); break block; } - return ($0 | 0) == (4294967282 | 0) | 0; + return ($0 | 0) == (-14 | 0) | 0; } function $16($0, $0$hi) { @@ -249,7 +249,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $1$hi; i64toi32_i32$0 = $0$hi; i64toi32_i32$1 = $1$hi; - i64toi32_i32$1 = __wasm_i64_mul($0 | 0, i64toi32_i32$0 | 0, $1_1 | 0, $1$hi | 0) | 0; + i64toi32_i32$1 = __wasm_i64_mul($0, i64toi32_i32$0, $1_1, $1$hi); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$1; $1$hi = i64toi32_i32$0; @@ -289,7 +289,7 @@ function asmFunc(global, env, buffer) { break block } i64toi32_i32$0 = $2$hi; - i64toi32_i32$0 = __wasm_i64_mul($1_1 | 0, $1$hi | 0, $2_1 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_i64_mul($1_1, $1$hi, $2_1, i64toi32_i32$0); $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$HIGH_BITS; i64toi32_i32$0 = 0; @@ -344,8 +344,6 @@ function asmFunc(global, env, buffer) { } function legalstub$16($0, $1_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0; @@ -372,7 +370,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $16(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $16(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -393,12 +391,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$17($0, $1_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12_1 = 0, $13_1 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0; @@ -425,7 +421,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12_1; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $17(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $17(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -446,20 +442,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($13_1 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$18($0, $1_1) { - $0 = +$0; - $1_1 = +$1_1; - return +(+Math_fround($18(Math_fround(Math_fround($0)), Math_fround(Math_fround($1_1))))); + return +$18(Math_fround($0), Math_fround($1_1)); } function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$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 = 0, $22 = 0, var$6 = 0, $24 = 0, $17_1 = 0, $18_1 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; i64toi32_i32$0 = var$1$hi; var$2 = var$1; @@ -534,31 +524,26 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; 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$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/minus_minus.2asm.js b/test/wasm2js/minus_minus.2asm.js index f5b7a8945..783e6e826 100644 --- a/test/wasm2js/minus_minus.2asm.js +++ b/test/wasm2js/minus_minus.2asm.js @@ -22,11 +22,11 @@ function asmFunc(global, env, buffer) { var nan = global.NaN; var infinity = global.Infinity; function $0() { - return ~~- -7094.0 | 0; + return ~~- -7094.0; } function $1() { - $0() | 0; + $0(); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/nested-selects.2asm.js b/test/wasm2js/nested-selects.2asm.js index ac5b7a488..b0fd8fed0 100644 --- a/test/wasm2js/nested-selects.2asm.js +++ b/test/wasm2js/nested-selects.2asm.js @@ -24,7 +24,7 @@ function asmFunc(global, env, buffer) { function $1($0) { $0 = $0 | 0; var wasm2js_i32$0 = 0, wasm2js_i32$1 = 0, wasm2js_i32$2 = 0, wasm2js_i32$3 = 0, wasm2js_i32$4 = 0, wasm2js_i32$5 = 0; - return (wasm2js_i32$0 = 4294967295, wasm2js_i32$1 = (wasm2js_i32$3 = 1, wasm2js_i32$4 = 0, wasm2js_i32$5 = ($0 | 0) > (0 | 0), wasm2js_i32$5 ? wasm2js_i32$3 : wasm2js_i32$4), wasm2js_i32$2 = ($0 | 0) < (0 | 0), wasm2js_i32$2 ? wasm2js_i32$0 : wasm2js_i32$1) | 0; + return (wasm2js_i32$0 = -1, wasm2js_i32$1 = (wasm2js_i32$3 = 1, wasm2js_i32$4 = 0, wasm2js_i32$5 = ($0 | 0) > (0 | 0), wasm2js_i32$5 ? wasm2js_i32$3 : wasm2js_i32$4), wasm2js_i32$2 = ($0 | 0) < (0 | 0), wasm2js_i32$2 ? wasm2js_i32$0 : wasm2js_i32$1) | 0; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/reinterpret.2asm.js b/test/wasm2js/reinterpret.2asm.js index 819191e14..478040d79 100644 --- a/test/wasm2js/reinterpret.2asm.js +++ b/test/wasm2js/reinterpret.2asm.js @@ -63,7 +63,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = $0$hi; wasm2js_scratch_store_i32(0 | 0, $0 | 0); wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$0 | 0); - wasm2js_scratch_store_f64(+(+wasm2js_scratch_load_f64())); + wasm2js_scratch_store_f64(+wasm2js_scratch_load_f64()); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; $3$hi = i64toi32_i32$0; i64toi32_i32$0 = $0$hi; @@ -72,8 +72,6 @@ function asmFunc(global, env, buffer) { } function legalstub$2($0, $1_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10 = 0, $3 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3 = $0; @@ -100,7 +98,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + return $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/select.2asm.js b/test/wasm2js/select.2asm.js index 09fab1117..c50a01a47 100644 --- a/test/wasm2js/select.2asm.js +++ b/test/wasm2js/select.2asm.js @@ -78,11 +78,6 @@ function asmFunc(global, env, buffer) { } function legalstub$1($0_1, $1_1, $2_1, $3_1, $4_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; - $4_1 = $4_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $22 = 0, $23 = 0, $24 = 0, $7 = 0, $7$hi = 0, $10$hi = 0, $11 = 0, $11$hi = 0, $13 = 0, $13$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $5_1 = 0, $5$hi = 0; i64toi32_i32$0 = 0; $7 = $0_1; @@ -140,7 +135,7 @@ function asmFunc(global, env, buffer) { $17$hi = i64toi32_i32$1; i64toi32_i32$1 = $11$hi; i64toi32_i32$2 = $17$hi; - i64toi32_i32$2 = $1($11 | 0, i64toi32_i32$1 | 0, $17 | 0, i64toi32_i32$2 | 0, $4_1 | 0) | 0; + i64toi32_i32$2 = $1($11, i64toi32_i32$1, $17, i64toi32_i32$2, $4_1); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $5_1 = i64toi32_i32$2; $5$hi = i64toi32_i32$1; @@ -161,14 +156,11 @@ function asmFunc(global, env, buffer) { } setTempRet0($24 | 0); i64toi32_i32$2 = $5$hi; - return $5_1 | 0; + return $5_1; } function legalstub$2($0_1, $1_1, $2_1) { - $0_1 = +$0_1; - $1_1 = +$1_1; - $2_1 = $2_1 | 0; - return +(+Math_fround($2(Math_fround(Math_fround($0_1)), Math_fround(Math_fround($1_1)), $2_1 | 0))); + return +$2(Math_fround($0_1), Math_fround($1_1), $2_1); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/set_local.2asm.js b/test/wasm2js/set_local.2asm.js index d9fe7dafd..cbb346aa6 100644 --- a/test/wasm2js/set_local.2asm.js +++ b/test/wasm2js/set_local.2asm.js @@ -88,7 +88,7 @@ function asmFunc(global, env, buffer) { $21 = +(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0); i64toi32_i32$0 = $7$hi; i64toi32_i32$1 = $7_1; - i64toi32_i32$3 = $10 + (+Math_fround(-.30000001192092896) + ($2_1 + (+(40 >>> 0) + (+(4294967289 | 0) + (+Math_fround(5.5) + ($21 + (+(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0) + 8.0))))))); + i64toi32_i32$3 = $10 + (+Math_fround(-.30000001192092896) + ($2_1 + (+(40 >>> 0) + (+(-7 | 0) + (+Math_fround(5.5) + ($21 + (+(i64toi32_i32$1 >>> 0) + 4294967296.0 * +(i64toi32_i32$0 >>> 0) + 8.0))))))); if (Math_abs(i64toi32_i32$3) >= 1.0) { { if (i64toi32_i32$3 > 0.0) { @@ -108,8 +108,6 @@ function asmFunc(global, env, buffer) { } function legalstub$5($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0_1; @@ -136,21 +134,14 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - $5(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0); + $5(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$6($0_1) { - $0_1 = +$0_1; - $6(Math_fround(Math_fround($0_1))); + $6(Math_fround($0_1)); } function legalstub$8($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = +$2_1; - $3_1 = +$3_1; - $4_1 = $4_1 | 0; - $5_1 = $5_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $14 = 0, $7_1 = 0, $7$hi = 0, $10$hi = 0; i64toi32_i32$0 = 0; $7_1 = $0_1; @@ -177,16 +168,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $10$hi; i64toi32_i32$3 = $14; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - $8(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0, Math_fround(Math_fround($2_1)), +$3_1, $4_1 | 0, $5_1 | 0); + $8(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2, Math_fround($2_1), $3_1, $4_1, $5_1); } function legalstub$9($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = +$2_1; - $3_1 = +$3_1; - $4_1 = $4_1 | 0; - $5_1 = $5_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $16 = 0, $17 = 0, $8_1 = 0, $8$hi = 0, $11$hi = 0, $6_1 = 0, $6$hi = 0; i64toi32_i32$0 = 0; $8_1 = $0_1; @@ -213,7 +198,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $11$hi; i64toi32_i32$3 = $16; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $9(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0, Math_fround(Math_fround($2_1)), +$3_1, $4_1 | 0, $5_1 | 0) | 0; + i64toi32_i32$2 = $9(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2, Math_fround($2_1), $3_1, $4_1, $5_1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $6_1 = i64toi32_i32$2; $6$hi = i64toi32_i32$0; @@ -234,7 +219,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($17 | 0); i64toi32_i32$2 = $6$hi; - return $6_1 | 0; + return $6_1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/stack-modified.2asm.js b/test/wasm2js/stack-modified.2asm.js index d7c988f64..b4e93e00b 100644 --- a/test/wasm2js/stack-modified.2asm.js +++ b/test/wasm2js/stack-modified.2asm.js @@ -48,7 +48,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$2$hi; i64toi32_i32$2 = var$1$hi; i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = __wasm_i64_mul(var$1 | 0, i64toi32_i32$2 | 0, var$2 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_i64_mul(var$1, i64toi32_i32$2, var$2, i64toi32_i32$0); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; var$2 = i64toi32_i32$0; var$2$hi = i64toi32_i32$2; @@ -96,7 +96,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$2$hi; i64toi32_i32$2 = var$1$hi; i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = __wasm_i64_mul(var$1 | 0, i64toi32_i32$2 | 0, var$2 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_i64_mul(var$1, i64toi32_i32$2, var$2, i64toi32_i32$0); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; var$2 = i64toi32_i32$0; var$2$hi = i64toi32_i32$2; @@ -144,7 +144,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$2$hi; i64toi32_i32$2 = var$1$hi; i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = __wasm_i64_mul(var$1 | 0, i64toi32_i32$2 | 0, var$2 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_i64_mul(var$1, i64toi32_i32$2, var$2, i64toi32_i32$0); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; var$2 = i64toi32_i32$0; var$2$hi = i64toi32_i32$2; @@ -192,7 +192,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$2$hi; i64toi32_i32$2 = var$1$hi; i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = __wasm_i64_mul(var$1 | 0, i64toi32_i32$2 | 0, var$2 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_i64_mul(var$1, i64toi32_i32$2, var$2, i64toi32_i32$0); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; var$2 = i64toi32_i32$0; var$2$hi = i64toi32_i32$2; @@ -240,7 +240,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$2$hi; i64toi32_i32$2 = var$1$hi; i64toi32_i32$0 = var$2$hi; - i64toi32_i32$0 = __wasm_i64_mul(var$1 | 0, i64toi32_i32$2 | 0, var$2 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_i64_mul(var$1, i64toi32_i32$2, var$2, i64toi32_i32$0); i64toi32_i32$2 = i64toi32_i32$HIGH_BITS; var$2 = i64toi32_i32$0; var$2$hi = i64toi32_i32$2; @@ -265,8 +265,6 @@ function asmFunc(global, env, buffer) { } function legalstub$0($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -293,7 +291,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $0(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -314,12 +312,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$1($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -346,7 +342,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -367,12 +363,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$2($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -399,7 +393,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -420,12 +414,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$3($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -452,7 +444,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -473,12 +465,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$4($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -505,7 +495,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $4(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $4(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -526,14 +516,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$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 = 0, $22 = 0, var$6 = 0, $24 = 0, $17 = 0, $18 = 0, $23 = 0, $29 = 0, $45 = 0, $56$hi = 0, $62$hi = 0; i64toi32_i32$0 = var$1$hi; var$2 = var$1; @@ -608,23 +594,19 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1; i64toi32_i32$2 = i64toi32_i32$2 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function __wasm_i64_mul(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; 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$1 = _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/switch.2asm.js b/test/wasm2js/switch.2asm.js index f60adde0f..fd7245dc2 100644 --- a/test/wasm2js/switch.2asm.js +++ b/test/wasm2js/switch.2asm.js @@ -139,8 +139,8 @@ function asmFunc(global, env, buffer) { $7$hi = i64toi32_i32$5; break switch_; } - i64toi32_i32$5 = 4294967295; - $7_1 = 4294967291; + i64toi32_i32$5 = -1; + $7_1 = -5; $7$hi = i64toi32_i32$5; } i64toi32_i32$5 = $7$hi; @@ -186,8 +186,6 @@ function asmFunc(global, env, buffer) { } function legalstub$1($0_2, $1_2) { - $0_2 = $0_2 | 0; - $1_2 = $1_2 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_2 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_2; @@ -214,7 +212,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $1(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_2 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -235,7 +233,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_2 | 0; + return $2_2; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/tee_local.2asm.js b/test/wasm2js/tee_local.2asm.js index 39c9424a0..d41d1b560 100644 --- a/test/wasm2js/tee_local.2asm.js +++ b/test/wasm2js/tee_local.2asm.js @@ -40,7 +40,7 @@ function asmFunc(global, env, buffer) { } function $3() { - return +(0.0); + return 0.0; } function $4($0_1) { @@ -64,7 +64,7 @@ function asmFunc(global, env, buffer) { function $7($0_1) { $0_1 = +$0_1; - return +(12.2); + return 12.2; } function $8($0_1, $0$hi, $1_1, $2_1, $3_1, $4_1) { @@ -90,7 +90,7 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0.0, $5_1 = Math_fround(0), $6_1 = 0, $8_1 = 0.0, $17 = 0, $18 = 0, $6$hi = 0, $16 = 0.0, $27 = 0.0, $7$hi = 0, $7_1 = 0; $1_1 = Math_fround(-.30000001192092896); $3_1 = 40; - $4_1 = 4294967289; + $4_1 = -7; $5_1 = Math_fround(5.5); i64toi32_i32$0 = 0; $6_1 = 6; @@ -144,7 +144,7 @@ function asmFunc(global, env, buffer) { function legalstub$1() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $1() | 0; + i64toi32_i32$0 = $1(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -165,16 +165,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$2() { - return +(+Math_fround($2())); + return +$2(); } function legalstub$5($0_1, $1_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $12 = 0, $13 = 0, $4_1 = 0, $4$hi = 0, $7$hi = 0, $2_1 = 0, $2$hi = 0; i64toi32_i32$0 = 0; $4_1 = $0_1; @@ -201,7 +199,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $7$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $5(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $5(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $2_1 = i64toi32_i32$2; $2$hi = i64toi32_i32$0; @@ -222,21 +220,14 @@ function asmFunc(global, env, buffer) { } setTempRet0($13 | 0); i64toi32_i32$2 = $2$hi; - return $2_1 | 0; + return $2_1; } function legalstub$6($0_1) { - $0_1 = +$0_1; - return +(+Math_fround($6(Math_fround(Math_fround($0_1))))); + return +$6(Math_fround($0_1)); } function legalstub$8($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = +$2_1; - $3_1 = +$3_1; - $4_1 = $4_1 | 0; - $5_1 = $5_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $14 = 0, $7_1 = 0, $7$hi = 0, $10$hi = 0; i64toi32_i32$0 = 0; $7_1 = $0_1; @@ -263,16 +254,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $10$hi; i64toi32_i32$3 = $14; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - $8(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0, Math_fround(Math_fround($2_1)), +$3_1, $4_1 | 0, $5_1 | 0); + $8(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2, Math_fround($2_1), $3_1, $4_1, $5_1); } function legalstub$9($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = +$2_1; - $3_1 = +$3_1; - $4_1 = $4_1 | 0; - $5_1 = $5_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $16 = 0, $17 = 0, $8_1 = 0, $8$hi = 0, $11$hi = 0, $6_1 = 0, $6$hi = 0; i64toi32_i32$0 = 0; $8_1 = $0_1; @@ -299,7 +284,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $11$hi; i64toi32_i32$3 = $16; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - i64toi32_i32$2 = $9(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0, Math_fround(Math_fround($2_1)), +$3_1, $4_1 | 0, $5_1 | 0) | 0; + i64toi32_i32$2 = $9(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2, Math_fround($2_1), $3_1, $4_1, $5_1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; $6_1 = i64toi32_i32$2; $6$hi = i64toi32_i32$0; @@ -320,16 +305,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($17 | 0); i64toi32_i32$2 = $6$hi; - return $6_1 | 0; + return $6_1; } function legalstub$10($0_1, $1_1, $2_1, $3_1, $4_1, $5_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = +$2_1; - $3_1 = +$3_1; - $4_1 = $4_1 | 0; - $5_1 = $5_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $14 = 0, $7_1 = 0, $7$hi = 0, $10$hi = 0; i64toi32_i32$0 = 0; $7_1 = $0_1; @@ -356,7 +335,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $10$hi; i64toi32_i32$3 = $14; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return +(+$10(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0, Math_fround(Math_fround($2_1)), +$3_1, $4_1 | 0, $5_1 | 0)); + return $10(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2, Math_fround($2_1), $3_1, $4_1, $5_1); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/traps.2asm.js b/test/wasm2js/traps.2asm.js index 63e51d6ce..c47b738ab 100644 --- a/test/wasm2js/traps.2asm.js +++ b/test/wasm2js/traps.2asm.js @@ -57,7 +57,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = y$hi; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_sdiv(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_sdiv(x, i64toi32_i32$0, y, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -73,17 +73,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = y$hi; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_udiv(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv(x, i64toi32_i32$0, y, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$2($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6 = $0_1; @@ -141,7 +137,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $2($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2($10, i64toi32_i32$1, $16, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -162,14 +158,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23 | 0); i64toi32_i32$2 = $4$hi; - return $4 | 0; + return $4; } function legalstub$3($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6 = $0_1; @@ -227,7 +219,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $3($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3($10, i64toi32_i32$1, $16, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -248,12 +240,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23 | 0); i64toi32_i32$2 = $4$hi; - return $4 | 0; + return $4; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -276,10 +266,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$2 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, $21 = 0, $22 = 0, $23 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17 = 0, $17$hi = 0, $23$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -354,7 +340,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_udiv($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_udiv($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17 = i64toi32_i32$1; $17$hi = i64toi32_i32$4; @@ -398,14 +384,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$4 - i64toi32_i32$0 | 0; i64toi32_i32$2 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -481,11 +463,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -511,7 +493,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -535,7 +517,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -544,13 +526,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -579,11 +561,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -593,7 +575,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -603,7 +585,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -618,7 +600,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -670,8 +652,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -803,7 +785,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -814,7 +796,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -840,10 +822,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -851,47 +833,38 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_sdiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Div3div17he78fc483e41d7ec7E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_udiv(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -975,7 +948,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = y$hi; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_srem(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_srem(x, i64toi32_i32$0, y, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; @@ -991,17 +964,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = y$hi; i64toi32_i32$0 = x$hi; i64toi32_i32$1 = y$hi; - i64toi32_i32$1 = __wasm_i64_urem(x | 0, i64toi32_i32$0 | 0, y | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem(x, i64toi32_i32$0, y, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; return i64toi32_i32$1 | 0; } function legalstub$2($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6 = $0_1; @@ -1059,7 +1028,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $2($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $2($10, i64toi32_i32$1, $16, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1080,14 +1049,10 @@ function asmFunc(global, env, buffer) { } setTempRet0($23 | 0); i64toi32_i32$2 = $4$hi; - return $4 | 0; + return $4; } function legalstub$3($0_1, $1_1, $2_1, $3_1) { - $0_1 = $0_1 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0; i64toi32_i32$0 = 0; $6 = $0_1; @@ -1145,7 +1110,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$1; i64toi32_i32$1 = $10$hi; i64toi32_i32$2 = $16$hi; - i64toi32_i32$2 = $3($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0; + i64toi32_i32$2 = $3($10, i64toi32_i32$1, $16, i64toi32_i32$2); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $4 = i64toi32_i32$2; $4$hi = i64toi32_i32$1; @@ -1166,7 +1131,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($23 | 0); i64toi32_i32$2 = $4$hi; - return $4 | 0; + return $4; } function legalfunc$wasm2js_scratch_load_i64() { @@ -1198,12 +1163,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; i64toi32_i32$0 = i64toi32_i32$0 | i64toi32_i32$3; i64toi32_i32$HIGH_BITS = i64toi32_i32$2; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function legalfunc$wasm2js_scratch_store_i64($0_1, $0$hi) { - $0_1 = $0_1 | 0; - $0$hi = $0$hi | 0; var i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $2_1 = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; $2_1 = $0_1; @@ -1226,10 +1189,6 @@ function asmFunc(global, env, buffer) { } function _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, var$2$hi = 0, i64toi32_i32$6 = 0, var$2 = 0, $20 = 0, $21 = 0, $7$hi = 0, $9 = 0, $9$hi = 0, $14$hi = 0, $16$hi = 0, $17$hi = 0, $19$hi = 0; i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; @@ -1304,7 +1263,7 @@ function asmFunc(global, env, buffer) { $16$hi = i64toi32_i32$4; i64toi32_i32$4 = $9$hi; i64toi32_i32$1 = $16$hi; - i64toi32_i32$1 = __wasm_i64_urem($9 | 0, i64toi32_i32$4 | 0, i64toi32_i32$0 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = __wasm_i64_urem($9, i64toi32_i32$4, i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$4 = i64toi32_i32$HIGH_BITS; $17$hi = i64toi32_i32$4; i64toi32_i32$4 = var$2$hi; @@ -1324,14 +1283,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$0 = i64toi32_i32$1 - i64toi32_i32$0 | 0; i64toi32_i32$4 = i64toi32_i32$5; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + return i64toi32_i32$4; } function _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; - var$1 = var$1 | 0; - var$1$hi = var$1$hi | 0; var i64toi32_i32$2 = 0, i64toi32_i32$3 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$5 = 0, var$2 = 0, var$3 = 0, var$4 = 0, var$5 = 0, var$5$hi = 0, var$6 = 0, var$6$hi = 0, i64toi32_i32$6 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, var$8$hi = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, var$7$hi = 0, $49 = 0, $63$hi = 0, $65 = 0, $65$hi = 0, $120$hi = 0, $129$hi = 0, $134$hi = 0, var$8 = 0, $140 = 0, $140$hi = 0, $142$hi = 0, $144 = 0, $144$hi = 0, $151 = 0, $151$hi = 0, $154$hi = 0, var$7 = 0, $165$hi = 0; label$1 : { label$2 : { @@ -1407,11 +1362,11 @@ function asmFunc(global, env, buffer) { var$3 = var$1; var$2 = (var$2 >>> 0) / (var$3 >>> 0) | 0; i64toi32_i32$1 = 0; - legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0 - Math_imul(var$2, var$3) | 0, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$2; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } i64toi32_i32$2 = var$1$hi; i64toi32_i32$3 = var$1; @@ -1437,7 +1392,7 @@ function asmFunc(global, env, buffer) { if ((var$3 | 0) == (0 | 0)) { break label$6 } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if (var$4 & var$3) { break label$6 } @@ -1461,7 +1416,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$1 = var$0; i64toi32_i32$2 = 0; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$0 = -1; i64toi32_i32$2 = i64toi32_i32$3 & i64toi32_i32$2; $65 = i64toi32_i32$1 & i64toi32_i32$0; $65$hi = i64toi32_i32$2; @@ -1470,13 +1425,13 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = $65$hi; i64toi32_i32$0 = $65; i64toi32_i32$1 = i64toi32_i32$2 | i64toi32_i32$1; - legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64(i64toi32_i32$3 | i64toi32_i32$0, i64toi32_i32$1); i64toi32_i32$1 = 0; - i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3 | 0) & 31); + i64toi32_i32$3 = var$2 >>> (__wasm_ctz_i32(var$3) & 31); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } - var$4 = var$3 + 4294967295 | 0; + var$4 = var$3 + -1 | 0; if ((var$4 & var$3) == (0 | 0)) { break label$5 } @@ -1505,11 +1460,11 @@ function asmFunc(global, env, buffer) { $41 = i64toi32_i32$2 << i64toi32_i32$4; } } - legalfunc$wasm2js_scratch_store_i64($41 | 0, i64toi32_i32$1 | 0); + legalfunc$wasm2js_scratch_store_i64($41, i64toi32_i32$1); i64toi32_i32$1 = 0; i64toi32_i32$2 = var$4; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$2 | 0; + return i64toi32_i32$2; } var$2 = Math_clz32(var$3) - Math_clz32(var$2) | 0; if (var$2 >>> 0 < 31 >>> 0) { @@ -1519,7 +1474,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$2 = var$0$hi; i64toi32_i32$2 = 0; - legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2 | 0); + legalfunc$wasm2js_scratch_store_i64(var$4 & var$0, i64toi32_i32$2); if ((var$3 | 0) == (1 | 0)) { break label$1 } @@ -1529,7 +1484,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = var$0$hi; i64toi32_i32$3 = var$0; i64toi32_i32$1 = $120$hi; - i64toi32_i32$0 = __wasm_ctz_i32(var$3 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i32(var$3); i64toi32_i32$4 = i64toi32_i32$0 & 31; if (32 >>> 0 <= (i64toi32_i32$0 & 63) >>> 0) { { @@ -1544,7 +1499,7 @@ function asmFunc(global, env, buffer) { } i64toi32_i32$3 = $42; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } var$3 = 63 - var$2 | 0; var$2 = var$2 + 1 | 0; @@ -1596,8 +1551,8 @@ function asmFunc(global, env, buffer) { { i64toi32_i32$2 = var$1$hi; i64toi32_i32$1 = var$1; - i64toi32_i32$3 = 4294967295; - i64toi32_i32$0 = 4294967295; + i64toi32_i32$3 = -1; + i64toi32_i32$0 = -1; i64toi32_i32$4 = i64toi32_i32$1 + i64toi32_i32$0 | 0; i64toi32_i32$5 = i64toi32_i32$2 + i64toi32_i32$3 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$0 >>> 0) { @@ -1729,7 +1684,7 @@ function asmFunc(global, env, buffer) { var$6$hi = i64toi32_i32$3; var$7 = var$6; var$7$hi = i64toi32_i32$3; - var$2 = var$2 + 4294967295 | 0; + var$2 = var$2 + -1 | 0; if (var$2) { continue label$15 } @@ -1740,7 +1695,7 @@ function asmFunc(global, env, buffer) { } } i64toi32_i32$3 = var$5$hi; - legalfunc$wasm2js_scratch_store_i64(var$5 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$5, i64toi32_i32$3); i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$2 = 0; @@ -1766,10 +1721,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$5 = i64toi32_i32$2 | i64toi32_i32$5; i64toi32_i32$3 = i64toi32_i32$3 | i64toi32_i32$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$5; - return i64toi32_i32$3 | 0; + return i64toi32_i32$3; } i64toi32_i32$3 = var$0$hi; - legalfunc$wasm2js_scratch_store_i64(var$0 | 0, i64toi32_i32$3 | 0); + legalfunc$wasm2js_scratch_store_i64(var$0, i64toi32_i32$3); i64toi32_i32$3 = 0; var$0 = 0; var$0$hi = i64toi32_i32$3; @@ -1777,49 +1732,40 @@ function asmFunc(global, env, buffer) { i64toi32_i32$3 = var$0$hi; i64toi32_i32$5 = var$0; i64toi32_i32$HIGH_BITS = i64toi32_i32$3; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } function __wasm_i64_srem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4sdiv3Mod4mod_17h2cbb7bbf36e41d68E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$1 | 0; + return i64toi32_i32$1; } function __wasm_i64_urem(var$0, var$0$hi, var$1, var$1$hi) { - var$0 = var$0 | 0; - 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$0 = var$0$hi; i64toi32_i32$0 = var$1$hi; i64toi32_i32$0 = var$0$hi; i64toi32_i32$1 = var$1$hi; - i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0 | 0, i64toi32_i32$0 | 0, var$1 | 0, i64toi32_i32$1 | 0) | 0; + i64toi32_i32$1 = _ZN17compiler_builtins3int4udiv10divmod_u6417h6026910b5ed08e40E(var$0, i64toi32_i32$0, var$1, i64toi32_i32$1); i64toi32_i32$0 = i64toi32_i32$HIGH_BITS; - i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64() | 0; + i64toi32_i32$0 = legalfunc$wasm2js_scratch_load_i64(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; i64toi32_i32$HIGH_BITS = i64toi32_i32$1; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } var FUNCTION_TABLE = []; @@ -1972,19 +1918,16 @@ function asmFunc(global, env, buffer) { } function legalstub$0($0_1) { - $0_1 = +$0_1; - return $0(Math_fround(Math_fround($0_1))) | 0; + return $0(Math_fround($0_1)); } function legalstub$1($0_1) { - $0_1 = +$0_1; - return $1(Math_fround(Math_fround($0_1))) | 0; + return $1(Math_fround($0_1)); } function legalstub$4($0_1) { - $0_1 = +$0_1; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $4(Math_fround(Math_fround($0_1))) | 0; + i64toi32_i32$0 = $4(Math_fround($0_1)); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -2005,13 +1948,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($8 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } function legalstub$5($0_1) { - $0_1 = +$0_1; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $5(Math_fround(Math_fround($0_1))) | 0; + i64toi32_i32$0 = $5(Math_fround($0_1)); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -2032,13 +1974,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($8 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } function legalstub$6($0_1) { - $0_1 = +$0_1; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $6(+$0_1) | 0; + i64toi32_i32$0 = $6($0_1); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -2059,13 +2000,12 @@ function asmFunc(global, env, buffer) { } setTempRet0($8 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } function legalstub$7($0_1) { - $0_1 = +$0_1; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $7(+$0_1) | 0; + i64toi32_i32$0 = $7($0_1); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -2086,7 +2026,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($8 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } var FUNCTION_TABLE = []; @@ -2147,7 +2087,7 @@ function asmFunc(global, env, buffer) { i = i | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, wasm2js_i32$0 = 0; i64toi32_i32$2 = i; - i64toi32_i32$0 = HEAP32[i64toi32_i32$2 >> 2] | 0; + i64toi32_i32$0 = HEAP32[i64toi32_i32$2 >> 2]; i64toi32_i32$1 = (wasm2js_i32$0 = i64toi32_i32$2, HEAPU8[wasm2js_i32$0 + 4 | 0] | HEAPU8[wasm2js_i32$0 + 5 | 0] << 8 | HEAPU8[wasm2js_i32$0 + 6 | 0] << 16 | HEAPU8[wasm2js_i32$0 + 7 | 0] << 24); i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return i64toi32_i32$0 | 0; @@ -2155,18 +2095,17 @@ function asmFunc(global, env, buffer) { function $2(i) { i = i | 0; - return Math_fround(Math_fround(HEAPF32[i >> 2])); + return Math_fround(HEAPF32[i >> 2]); } function $3(i) { i = i | 0; - return +(+HEAPF64[i >> 3]); + return +HEAPF64[i >> 3]; } function legalstub$1($0_1) { - $0_1 = $0_1 | 0; var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $8 = 0, $1_1 = 0, $1$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $1($0_1 | 0) | 0; + i64toi32_i32$0 = $1($0_1); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -2187,12 +2126,11 @@ function asmFunc(global, env, buffer) { } setTempRet0($8 | 0); i64toi32_i32$0 = $1$hi; - return $1_1 | 0; + return $1_1; } function legalstub$2($0_1) { - $0_1 = $0_1 | 0; - return +(+Math_fround($2($0_1 | 0))); + return +$2($0_1); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/unaligned.2asm.js b/test/wasm2js/unaligned.2asm.js index c4bc4544a..f15cb0601 100644 --- a/test/wasm2js/unaligned.2asm.js +++ b/test/wasm2js/unaligned.2asm.js @@ -79,7 +79,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$1 = (wasm2js_i32$0 = i64toi32_i32$2, HEAPU8[wasm2js_i32$0 + 4 | 0] | HEAPU8[wasm2js_i32$0 + 5 | 0] << 8 | HEAPU8[wasm2js_i32$0 + 6 | 0] << 16 | HEAPU8[wasm2js_i32$0 + 7 | 0] << 24); wasm2js_scratch_store_i32(0 | 0, (wasm2js_i32$0 = i64toi32_i32$2, HEAPU8[wasm2js_i32$0 | 0] | HEAPU8[wasm2js_i32$0 + 1 | 0] << 8 | HEAPU8[wasm2js_i32$0 + 2 | 0] << 16 | HEAPU8[wasm2js_i32$0 + 3 | 0] << 24) | 0); wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$1 | 0); - return +(+wasm2js_scratch_load_f64()); + return +wasm2js_scratch_load_f64(); } function $4() { @@ -101,7 +101,7 @@ function asmFunc(global, env, buffer) { function $7() { var i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, wasm2js_i32$0 = 0, wasm2js_i32$1 = 0; - wasm2js_scratch_store_f64(+(0.0)); + wasm2js_scratch_store_f64(0.0); i64toi32_i32$0 = wasm2js_scratch_load_i32(1 | 0) | 0; i64toi32_i32$1 = 0; (wasm2js_i32$0 = i64toi32_i32$1, wasm2js_i32$1 = wasm2js_scratch_load_i32(0 | 0) | 0), ((HEAP8[wasm2js_i32$0 | 0] = wasm2js_i32$1 & 255, HEAP8[wasm2js_i32$0 + 1 | 0] = wasm2js_i32$1 >>> 8 & 255), HEAP8[wasm2js_i32$0 + 2 | 0] = wasm2js_i32$1 >>> 16 & 255), HEAP8[wasm2js_i32$0 + 3 | 0] = wasm2js_i32$1 >>> 24 & 255; @@ -110,7 +110,7 @@ function asmFunc(global, env, buffer) { function legalstub$1() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0_1 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $1() | 0; + i64toi32_i32$0 = $1(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0_1 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -131,11 +131,11 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0_1 | 0; + return $0_1; } function legalstub$2() { - return +(+Math_fround($2())); + return +$2(); } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/unary-ops.2asm.js b/test/wasm2js/unary-ops.2asm.js index 75730dd72..e0e5a39bf 100644 --- a/test/wasm2js/unary-ops.2asm.js +++ b/test/wasm2js/unary-ops.2asm.js @@ -24,7 +24,7 @@ function asmFunc(global, env, buffer) { var i64toi32_i32$HIGH_BITS = 0; function $1($0) { $0 = $0 | 0; - return __wasm_popcnt_i32($0 | 0) | 0; + return __wasm_popcnt_i32($0) | 0; } function $2($0, $0$hi, r, r$hi) { @@ -34,7 +34,7 @@ function asmFunc(global, env, buffer) { r$hi = r$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $3$hi = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = __wasm_popcnt_i64($0 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_popcnt_i64($0, i64toi32_i32$0); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $3$hi = i64toi32_i32$1; i64toi32_i32$1 = r$hi; @@ -85,7 +85,7 @@ function asmFunc(global, env, buffer) { function $7($0) { $0 = $0 | 0; - return __wasm_ctz_i32($0 | 0) | 0; + return __wasm_ctz_i32($0) | 0; } function $8($0, $0$hi, r, r$hi) { @@ -119,7 +119,7 @@ function asmFunc(global, env, buffer) { r$hi = r$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, $3$hi = 0, i64toi32_i32$2 = 0; i64toi32_i32$0 = $0$hi; - i64toi32_i32$0 = __wasm_ctz_i64($0 | 0, i64toi32_i32$0 | 0) | 0; + i64toi32_i32$0 = __wasm_ctz_i64($0, i64toi32_i32$0); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $3$hi = i64toi32_i32$1; i64toi32_i32$1 = r$hi; @@ -130,10 +130,6 @@ function asmFunc(global, env, buffer) { } function legalstub$2($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -191,13 +187,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $2($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $2($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$3($0, $1_1, $2_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $12 = 0, $3_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0; $3_1 = $0; i64toi32_i32$0 = 0; @@ -225,13 +218,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $8$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return $3($3_1 | 0, i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + return $3($3_1, i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$4($0, $1_1, $2_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $12 = 0, $3_1 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0; $3_1 = $0; i64toi32_i32$0 = 0; @@ -259,12 +249,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $8$hi; i64toi32_i32$3 = $12; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return $4($3_1 | 0, i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + return $4($3_1, i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$5($0, $1_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $10 = 0, $3_1 = 0, $3$hi = 0, $6$hi = 0; i64toi32_i32$0 = 0; $3_1 = $0; @@ -291,14 +279,10 @@ function asmFunc(global, env, buffer) { i64toi32_i32$2 = $6$hi; i64toi32_i32$3 = $10; i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2; - return $5(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2 | 0) | 0; + return $5(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$8($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -356,14 +340,10 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $8($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $8($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function legalstub$9($0, $1_1, $2_1, $3_1) { - $0 = $0 | 0; - $1_1 = $1_1 | 0; - $2_1 = $2_1 | 0; - $3_1 = $3_1 | 0; var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $19 = 0, $20 = 0, $5_1 = 0, $5$hi = 0, $8$hi = 0, $9_1 = 0, $9$hi = 0, $11 = 0, $11$hi = 0, $14$hi = 0, $15 = 0, $15$hi = 0; i64toi32_i32$0 = 0; $5_1 = $0; @@ -421,28 +401,25 @@ function asmFunc(global, env, buffer) { $15$hi = i64toi32_i32$1; i64toi32_i32$1 = $9$hi; i64toi32_i32$2 = $15$hi; - return $9($9_1 | 0, i64toi32_i32$1 | 0, $15 | 0, i64toi32_i32$2 | 0) | 0; + return $9($9_1, i64toi32_i32$1, $15, i64toi32_i32$2); } function __wasm_ctz_i32(var$0) { - var$0 = var$0 | 0; if (var$0) { - return 31 - Math_clz32(var$0 + 4294967295 ^ var$0) | 0 + return 31 - Math_clz32(var$0 + -1 ^ var$0) | 0 } - return 32 | 0; + return 32; } function __wasm_ctz_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, $10 = 0, $5$hi = 0, $8$hi = 0; i64toi32_i32$0 = var$0$hi; if (((var$0 | i64toi32_i32$0) == (0 | 0) | 0) == (0 | 0)) { { i64toi32_i32$0 = var$0$hi; i64toi32_i32$2 = var$0; - i64toi32_i32$1 = 4294967295; - i64toi32_i32$3 = 4294967295; + i64toi32_i32$1 = -1; + i64toi32_i32$3 = -1; i64toi32_i32$4 = i64toi32_i32$2 + i64toi32_i32$3 | 0; i64toi32_i32$5 = i64toi32_i32$0 + i64toi32_i32$1 | 0; if (i64toi32_i32$4 >>> 0 < i64toi32_i32$3 >>> 0) { @@ -473,17 +450,16 @@ function asmFunc(global, env, buffer) { i64toi32_i32$4 = i64toi32_i32$5 - i64toi32_i32$4 | 0; i64toi32_i32$0 = i64toi32_i32$1; i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$0 | 0; + return i64toi32_i32$0; } } i64toi32_i32$0 = 0; i64toi32_i32$4 = 64; i64toi32_i32$HIGH_BITS = i64toi32_i32$0; - return i64toi32_i32$4 | 0; + return i64toi32_i32$4; } function __wasm_popcnt_i32(var$0) { - var$0 = var$0 | 0; var var$1 = 0, $5_1 = 0; label$1 : { label$2 : do { @@ -497,12 +473,10 @@ function asmFunc(global, env, buffer) { break label$2; } while (1); } - return $5_1 | 0; + return $5_1; } function __wasm_popcnt_i64(var$0, var$0$hi) { - var$0 = var$0 | 0; - var$0$hi = var$0$hi | 0; var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$5 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, i64toi32_i32$1 = 0, var$1$hi = 0, var$1 = 0, $5_1 = 0, $5$hi = 0, $4_1 = 0, $9$hi = 0; label$1 : { label$2 : do { @@ -549,7 +523,7 @@ function asmFunc(global, env, buffer) { i64toi32_i32$4 = $5$hi; i64toi32_i32$5 = $5_1; i64toi32_i32$HIGH_BITS = i64toi32_i32$4; - return i64toi32_i32$5 | 0; + return i64toi32_i32$5; } var FUNCTION_TABLE = []; diff --git a/test/wasm2js/unreachable.2asm.js b/test/wasm2js/unreachable.2asm.js index 83882f6c1..bf8193884 100644 --- a/test/wasm2js/unreachable.2asm.js +++ b/test/wasm2js/unreachable.2asm.js @@ -302,7 +302,7 @@ function asmFunc(global, env, buffer) { function legalstub$26() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $26() | 0; + i64toi32_i32$0 = $26(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -323,16 +323,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$41() { - return +(+Math_fround($41())); + return +$41(); } function legalstub$42() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $42() | 0; + i64toi32_i32$0 = $42(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -353,16 +353,16 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } function legalstub$47() { - return +(+Math_fround($47())); + return +$47(); } function legalstub$49() { var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7_1 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0; - i64toi32_i32$0 = $49() | 0; + i64toi32_i32$0 = $49(); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $0 = i64toi32_i32$0; $0$hi = i64toi32_i32$1; @@ -383,7 +383,7 @@ function asmFunc(global, env, buffer) { } setTempRet0($7_1 | 0); i64toi32_i32$0 = $0$hi; - return $0 | 0; + return $0; } var FUNCTION_TABLE = []; |