diff options
author | Sam Clegg <sbc@chromium.org> | 2019-04-25 07:50:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 07:50:15 -0700 |
commit | 09945884f7461135286357d14f993f9b5c5a329b (patch) | |
tree | 91e9940c495469d4029bacc3576a97bb8b215908 /test/wasm2js/conversions-modified.2asm.js | |
parent | c3ed0f176b36a502ef2e1fd915550a808b8d8f0b (diff) | |
download | binaryen-09945884f7461135286357d14f993f9b5c5a329b.tar.gz binaryen-09945884f7461135286357d14f993f9b5c5a329b.tar.bz2 binaryen-09945884f7461135286357d14f993f9b5c5a329b.zip |
Remove f32 legalization from LegalizeJSInterface (#2052)
As well as i64 splitting this pass was also converting f32 to f64
at the wasm boundry. However it appears this is not actually useful
and makes somethings (such as dynamic linking) harder.
Diffstat (limited to 'test/wasm2js/conversions-modified.2asm.js')
-rw-r--r-- | test/wasm2js/conversions-modified.2asm.js | 56 |
1 files changed, 12 insertions, 44 deletions
diff --git a/test/wasm2js/conversions-modified.2asm.js b/test/wasm2js/conversions-modified.2asm.js index bb8392de3..d866d9cdf 100644 --- a/test/wasm2js/conversions-modified.2asm.js +++ b/test/wasm2js/conversions-modified.2asm.js @@ -359,17 +359,9 @@ function asmFunc(global, env, buffer) { return $2(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } - function legalstub$3($0_1) { - return $3(Math_fround($0_1)); - } - - function legalstub$4($0_1) { - return $4(Math_fround($0_1)); - } - function legalstub$7($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($0_1)); + i64toi32_i32$0 = $7($0_1); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -395,7 +387,7 @@ function asmFunc(global, env, buffer) { function legalstub$8($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($0_1)); + i64toi32_i32$0 = $8($0_1); i64toi32_i32$1 = i64toi32_i32$HIGH_BITS; $1_1 = i64toi32_i32$0; $1$hi = i64toi32_i32$1; @@ -471,10 +463,6 @@ function asmFunc(global, env, buffer) { return $1_1; } - function legalstub$11($0_1) { - return +$11($0_1); - } - function legalstub$12($0_1, $1_1) { 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; @@ -502,7 +490,7 @@ 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 +$12(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); + return $12(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$14($0_1, $1_1) { @@ -535,10 +523,6 @@ function asmFunc(global, env, buffer) { return $14(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } - function legalstub$15($0_1) { - return +$15($0_1); - } - function legalstub$16($0_1, $1_1) { 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; @@ -566,7 +550,7 @@ 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 +$16(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); + return $16(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } function legalstub$18($0_1, $1_1) { @@ -599,18 +583,6 @@ function asmFunc(global, env, buffer) { return $18(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } - function legalstub$19($0_1) { - return $19(Math_fround($0_1)); - } - - function legalstub$20($0_1) { - return +$20($0_1); - } - - function legalstub$21($0_1) { - return +$21($0_1); - } - function legalstub$22($0_1, $1_1) { 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; @@ -641,10 +613,6 @@ function asmFunc(global, env, buffer) { return $22(i64toi32_i32$0 | i64toi32_i32$3, i64toi32_i32$2); } - function legalstub$23($0_1) { - return $23(Math_fround($0_1)); - } - function legalstub$24($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); @@ -676,27 +644,27 @@ function asmFunc(global, env, buffer) { "i64_extend_s_i32": legalstub$0, "i64_extend_u_i32": legalstub$1, "i32_wrap_i64": legalstub$2, - "i32_trunc_s_f32": legalstub$3, - "i32_trunc_u_f32": legalstub$4, + "i32_trunc_s_f32": $3, + "i32_trunc_u_f32": $4, "i32_trunc_s_f64": $5, "i32_trunc_u_f64": $6, "i64_trunc_s_f32": legalstub$7, "i64_trunc_u_f32": legalstub$8, "i64_trunc_s_f64": legalstub$9, "i64_trunc_u_f64": legalstub$10, - "f32_convert_s_i32": legalstub$11, + "f32_convert_s_i32": $11, "f32_convert_s_i64": legalstub$12, "f64_convert_s_i32": $13, "f64_convert_s_i64": legalstub$14, - "f32_convert_u_i32": legalstub$15, + "f32_convert_u_i32": $15, "f32_convert_u_i64": legalstub$16, "f64_convert_u_i32": $17, "f64_convert_u_i64": legalstub$18, - "f64_promote_f32": legalstub$19, - "f32_demote_f64": legalstub$20, - "f32_reinterpret_i32": legalstub$21, + "f64_promote_f32": $19, + "f32_demote_f64": $20, + "f32_reinterpret_i32": $21, "f64_reinterpret_i64": legalstub$22, - "i32_reinterpret_f32": legalstub$23, + "i32_reinterpret_f32": $23, "i64_reinterpret_f64": legalstub$24 }; } |