summaryrefslogtreecommitdiff
path: root/test/wasm-only.asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm-only.asm.js')
-rw-r--r--test/wasm-only.asm.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/wasm-only.asm.js b/test/wasm-only.asm.js
index eab63ba2b..cf0119cd7 100644
--- a/test/wasm-only.asm.js
+++ b/test/wasm-only.asm.js
@@ -21,6 +21,9 @@ function asm(global, env, buffer) {
var illegalImport = env.illegalImport;
var illegalImportResult = env.illegalImportResult;
+ var _fabsf = env._fabsf;
+ var do_i64 = env.do_i64;
+
function loads() {
var i = 0, f = fround(0), d = +0;
i = load1(100);
@@ -237,6 +240,13 @@ function asm(global, env, buffer) {
switch64(i64(0)) | 0;
}
+ function __emscripten_dceable_type_decls() { // dce-able, but this defines the type of fabsf which has no other use
+ fround(_fabsf(fround(0.0)));
+ i64(do_i64());
+ }
+
+ var FUNCTION_TABLE_X = [illegalImport, _fabsf, do_i64]; // must stay ok in the table, not legalized, as it will be called internally by the true type
+
return { test64: test64, illegalParam : illegalParam, illegalResult: illegalResult, keepAlive: keepAlive };
}