summaryrefslogtreecommitdiff
path: root/test/wasm2js/f32_cmp.2asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/f32_cmp.2asm.js')
-rw-r--r--test/wasm2js/f32_cmp.2asm.js49
1 files changed, 42 insertions, 7 deletions
diff --git a/test/wasm2js/f32_cmp.2asm.js b/test/wasm2js/f32_cmp.2asm.js
index 23f6d43a1..fc1293caf 100644
--- a/test/wasm2js/f32_cmp.2asm.js
+++ b/test/wasm2js/f32_cmp.2asm.js
@@ -21,7 +21,6 @@ function asmFunc(global, env, buffer) {
var abort = env.abort;
var nan = global.NaN;
var infinity = global.Infinity;
- var i64toi32_i32$HIGH_BITS = 0;
function $0(x, y) {
x = Math_fround(x);
y = Math_fround(y);
@@ -58,14 +57,50 @@ function asmFunc(global, env, buffer) {
return x >= y | 0;
}
+ 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 | 0;
+ }
+
+ 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 | 0;
+ }
+
+ 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 | 0;
+ }
+
+ 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 | 0;
+ }
+
+ 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 | 0;
+ }
+
+ 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 | 0;
+ }
+
var FUNCTION_TABLE = [];
return {
- eq: $0,
- ne: $1,
- lt: $2,
- le: $3,
- gt: $4,
- ge: $5
+ eq: legalstub$0,
+ ne: legalstub$1,
+ lt: legalstub$2,
+ le: legalstub$3,
+ gt: legalstub$4,
+ ge: legalstub$5
};
}