diff options
Diffstat (limited to 'test/wasm2js/float_misc.2asm.js')
-rw-r--r-- | test/wasm2js/float_misc.2asm.js | 300 |
1 files changed, 149 insertions, 151 deletions
diff --git a/test/wasm2js/float_misc.2asm.js b/test/wasm2js/float_misc.2asm.js index 7557c8fdc..6b167bb6b 100644 --- a/test/wasm2js/float_misc.2asm.js +++ b/test/wasm2js/float_misc.2asm.js @@ -51,228 +51,226 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function $0(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x + y)); + function $0($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 + $1_1)); } - function $1(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x - y)); + function $1($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 - $1_1)); } - function $2(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x * y)); + function $2($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 * $1_1)); } - function $3(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(x / y)); + function $3($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround($0_1 / $1_1)); } - function $4(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_sqrt(x))); + function $4($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_sqrt($0_1))); } - function $5(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_abs(x))); + function $5($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_abs($0_1))); } - function $6(x) { - x = Math_fround(x); - return Math_fround(Math_fround(-x)); + function $6($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(-$0_1)); } - 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 | 0 | ((wasm2js_scratch_store_f32(y), wasm2js_scratch_load_i32(0)) & -2147483648 | 0) | 0), wasm2js_scratch_load_f32())); + function $7($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround((wasm2js_scratch_store_i32(0, (wasm2js_scratch_store_f32($0_1), wasm2js_scratch_load_i32(0)) & 2147483647 | 0 | ((wasm2js_scratch_store_f32($1_1), wasm2js_scratch_load_i32(0)) & -2147483648 | 0) | 0), wasm2js_scratch_load_f32())); } - function $8(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_ceil(x))); + function $8($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_ceil($0_1))); } - function $9(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_floor(x))); + function $9($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(Math_floor($0_1))); } - function $10(x) { - x = Math_fround(x); - return Math_fround(Math_fround(__wasm_trunc_f32(Math_fround(x)))); + function $10($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(__wasm_trunc_f32(Math_fround($0_1)))); } - function $11(x) { - x = Math_fround(x); - return Math_fround(Math_fround(__wasm_nearest_f32(Math_fround(x)))); + function $11($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround(Math_fround(__wasm_nearest_f32(Math_fround($0_1)))); } - function $12(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(Math_min(x, y))); + function $12($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround(Math_min($0_1, $1_1))); } - function $13(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround(Math_fround(Math_max(x, y))); + function $13($0_1, $1_1) { + $0_1 = Math_fround($0_1); + $1_1 = Math_fround($1_1); + return Math_fround(Math_fround(Math_max($0_1, $1_1))); } - function $14(x, y) { - x = +x; - y = +y; - return +(x + y); + function $14($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 + $1_1); } - function $15(x, y) { - x = +x; - y = +y; - return +(x - y); + function $15($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 - $1_1); } - function $16(x, y) { - x = +x; - y = +y; - return +(x * y); + function $16($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 * $1_1); } - function $17(x, y) { - x = +x; - y = +y; - return +(x / y); + function $17($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +($0_1 / $1_1); } - function $18(x) { - x = +x; - return +Math_sqrt(x); + function $18($0_1) { + $0_1 = +$0_1; + return +Math_sqrt($0_1); } - function $19(x) { - x = +x; - return +Math_abs(x); + function $19($0_1) { + $0_1 = +$0_1; + return +Math_abs($0_1); } - function $20(x) { - x = +x; - return +-x; + function $20($0_1) { + $0_1 = +$0_1; + return +-$0_1; } - function $21(x, y) { - x = +x; - y = +y; - var i64toi32_i32$0 = 0, i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $4_1 = 0, $4$hi = 0, $7_1 = 0, $7$hi = 0; - wasm2js_scratch_store_f64(+x); - 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 = -1; - i64toi32_i32$1 = i64toi32_i32$0 & i64toi32_i32$1 | 0; - $4_1 = i64toi32_i32$2 & i64toi32_i32$3 | 0; - $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$3 = 0; - i64toi32_i32$2 = i64toi32_i32$1 & i64toi32_i32$2 | 0; - $7_1 = i64toi32_i32$0 & i64toi32_i32$3 | 0; - $7$hi = i64toi32_i32$2; - i64toi32_i32$2 = $4$hi; - i64toi32_i32$1 = $4_1; - i64toi32_i32$0 = $7$hi; - i64toi32_i32$3 = $7_1; - i64toi32_i32$0 = i64toi32_i32$2 | i64toi32_i32$0 | 0; - wasm2js_scratch_store_i32(0 | 0, i64toi32_i32$1 | i64toi32_i32$3 | 0 | 0); - wasm2js_scratch_store_i32(1 | 0, i64toi32_i32$0 | 0); + function $21($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + var $2_1 = 0, $3_1 = 0, $4_1 = 0, $5_1 = 0, $6_1 = 0, $7_1 = 0; + wasm2js_scratch_store_f64(+$0_1); + $2_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $3_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + $4_1 = 2147483647; + $5_1 = -1; + $4_1 = $2_1 & $4_1 | 0; + $6_1 = $3_1 & $5_1 | 0; + $7_1 = $4_1; + wasm2js_scratch_store_f64(+$1_1); + $4_1 = wasm2js_scratch_load_i32(1 | 0) | 0; + $2_1 = wasm2js_scratch_load_i32(0 | 0) | 0; + $3_1 = -2147483648; + $5_1 = 0; + $3_1 = $4_1 & $3_1 | 0; + $5_1 = $2_1 & $5_1 | 0; + $2_1 = $3_1; + $3_1 = $7_1; + $4_1 = $6_1; + $2_1 = $3_1 | $2_1 | 0; + wasm2js_scratch_store_i32(0 | 0, $4_1 | $5_1 | 0 | 0); + wasm2js_scratch_store_i32(1 | 0, $2_1 | 0); return +(+wasm2js_scratch_load_f64()); } - function $22(x) { - x = +x; - return +Math_ceil(x); + function $22($0_1) { + $0_1 = +$0_1; + return +Math_ceil($0_1); } - function $23(x) { - x = +x; - return +Math_floor(x); + function $23($0_1) { + $0_1 = +$0_1; + return +Math_floor($0_1); } - function $24(x) { - x = +x; - return +(+__wasm_trunc_f64(+x)); + function $24($0_1) { + $0_1 = +$0_1; + return +(+__wasm_trunc_f64(+$0_1)); } - function $25(x) { - x = +x; - return +(+__wasm_nearest_f64(+x)); + function $25($0_1) { + $0_1 = +$0_1; + return +(+__wasm_nearest_f64(+$0_1)); } - function $26(x, y) { - x = +x; - y = +y; - return +Math_min(x, y); + function $26($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +Math_min($0_1, $1_1); } - function $27(x, y) { - x = +x; - y = +y; - return +Math_max(x, y); + function $27($0_1, $1_1) { + $0_1 = +$0_1; + $1_1 = +$1_1; + return +Math_max($0_1, $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); - var$1 = Math_fround(Math_floor(var$0)); - var$2 = Math_fround(var$0 - var$1); - if (!(var$2 < Math_fround(.5))) { + function __wasm_nearest_f32($0_1) { + $0_1 = Math_fround($0_1); + var $1_1 = Math_fround(0), $2_1 = Math_fround(0); + $1_1 = Math_fround(Math_floor($0_1)); + $2_1 = Math_fround($0_1 - $1_1); + if (!($2_1 < Math_fround(.5))) { { - var$0 = Math_fround(Math_ceil(var$0)); - if (var$2 > Math_fround(.5)) { - return Math_fround(var$0) + $0_1 = Math_fround(Math_ceil($0_1)); + if ($2_1 > Math_fround(.5)) { + return Math_fround($0_1) } - var$2 = Math_fround(var$1 * Math_fround(.5)); - var$1 = Math_fround(var$2 - Math_fround(Math_floor(var$2))) == Math_fround(0.0) ? var$1 : var$0; + $2_1 = Math_fround($1_1 * Math_fround(.5)); + $1_1 = Math_fround($2_1 - Math_fround(Math_floor($2_1))) == Math_fround(0.0) ? $1_1 : $0_1; } } - return Math_fround(var$1); + return Math_fround($1_1); } - function __wasm_nearest_f64(var$0) { - var$0 = +var$0; - var var$1 = 0.0, var$2 = 0.0; - var$1 = Math_floor(var$0); - var$2 = var$0 - var$1; - if (!(var$2 < .5)) { + function __wasm_nearest_f64($0_1) { + $0_1 = +$0_1; + var $1_1 = 0.0, $2_1 = 0.0; + $1_1 = Math_floor($0_1); + $2_1 = $0_1 - $1_1; + if (!($2_1 < .5)) { { - var$0 = Math_ceil(var$0); - if (var$2 > .5) { - return +var$0 + $0_1 = Math_ceil($0_1); + if ($2_1 > .5) { + return +$0_1 } - var$2 = var$1 * .5; - var$1 = var$2 - Math_floor(var$2) == 0.0 ? var$1 : var$0; + $2_1 = $1_1 * .5; + $1_1 = $2_1 - Math_floor($2_1) == 0.0 ? $1_1 : $0_1; } } - return +var$1; + return +$1_1; } - function __wasm_trunc_f32(var$0) { - var$0 = Math_fround(var$0); - return Math_fround(var$0 < Math_fround(0.0) ? Math_fround(Math_ceil(var$0)) : Math_fround(Math_floor(var$0))); + function __wasm_trunc_f32($0_1) { + $0_1 = Math_fround($0_1); + return Math_fround($0_1 < Math_fround(0.0) ? Math_fround(Math_ceil($0_1)) : Math_fround(Math_floor($0_1))); } - function __wasm_trunc_f64(var$0) { - var$0 = +var$0; - return +(var$0 < 0.0 ? Math_ceil(var$0) : Math_floor(var$0)); + function __wasm_trunc_f64($0_1) { + $0_1 = +$0_1; + return +($0_1 < 0.0 ? Math_ceil($0_1) : Math_floor($0_1)); } var FUNCTION_TABLE = []; |