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.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/wasm-only.asm.js b/test/wasm-only.asm.js
index 7287126d0..750ffaa6a 100644
--- a/test/wasm-only.asm.js
+++ b/test/wasm-only.asm.js
@@ -26,6 +26,7 @@ function asm(global, env, buffer) {
var _fabsf = env._fabsf;
var do_i64 = env.do_i64;
+ var abort = env.abort;
function loads() {
var i = 0, f = fround(0), d = +0;
@@ -416,6 +417,28 @@ function asm(global, env, buffer) {
return ($cond|0);
}
+ function switch64_big_condition1($x) {
+ $x = i64($x);
+ switch (i64($x)) {
+ case i64_const(0,2146435072): {
+ abort();
+ break;
+ }
+ default: {
+ return;
+ }
+ }
+ }
+ function switch64_big_condition2($x) {
+ $x = i64($x);
+ switch (i64($x)) {
+ case i64_const(0,2146435072): {
+ abort();
+ break;
+ }
+ }
+ }
+
function keepAlive() {
loads();
stores();
@@ -431,6 +454,8 @@ function asm(global, env, buffer) {
unreachable_leftovers(0, 0, 0);
_memchr(0, 0, 0) | 0;
switch64TOOMUCH(i64(0)) | 0;
+ switch64_big_condition1(i64(0));
+ switch64_big_condition2(i64(0));
}
function __emscripten_dceable_type_decls() { // dce-able, but this defines the type of fabsf which has no other use