summaryrefslogtreecommitdiff
path: root/test/wasm2js/f32_cmp.2asm.js
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-04-25 07:50:15 -0700
committerGitHub <noreply@github.com>2019-04-25 07:50:15 -0700
commit09945884f7461135286357d14f993f9b5c5a329b (patch)
tree91e9940c495469d4029bacc3576a97bb8b215908 /test/wasm2js/f32_cmp.2asm.js
parentc3ed0f176b36a502ef2e1fd915550a808b8d8f0b (diff)
downloadbinaryen-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/f32_cmp.2asm.js')
-rw-r--r--test/wasm2js/f32_cmp.2asm.js36
1 files changed, 6 insertions, 30 deletions
diff --git a/test/wasm2js/f32_cmp.2asm.js b/test/wasm2js/f32_cmp.2asm.js
index bd272335c..671db639d 100644
--- a/test/wasm2js/f32_cmp.2asm.js
+++ b/test/wasm2js/f32_cmp.2asm.js
@@ -57,38 +57,14 @@ function asmFunc(global, env, buffer) {
return x >= y | 0;
}
- function legalstub$0($0_1, $1_1) {
- return $0(Math_fround($0_1), Math_fround($1_1));
- }
-
- function legalstub$1($0_1, $1_1) {
- return $1(Math_fround($0_1), Math_fround($1_1));
- }
-
- function legalstub$2($0_1, $1_1) {
- return $2(Math_fround($0_1), Math_fround($1_1));
- }
-
- function legalstub$3($0_1, $1_1) {
- return $3(Math_fround($0_1), Math_fround($1_1));
- }
-
- function legalstub$4($0_1, $1_1) {
- return $4(Math_fround($0_1), Math_fround($1_1));
- }
-
- function legalstub$5($0_1, $1_1) {
- return $5(Math_fround($0_1), Math_fround($1_1));
- }
-
var FUNCTION_TABLE = [];
return {
- "eq": legalstub$0,
- "ne": legalstub$1,
- "lt": legalstub$2,
- "le": legalstub$3,
- "gt": legalstub$4,
- "ge": legalstub$5
+ "eq": $0,
+ "ne": $1,
+ "lt": $2,
+ "le": $3,
+ "gt": $4,
+ "ge": $5
};
}