summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/address.2asm.js2
-rw-r--r--test/binaryen.js/emit_asmjs.js.txt2
-rw-r--r--test/br_table_temp.2asm.js2
-rw-r--r--test/empty_imported_table.2asm.js2
-rw-r--r--test/empty_table.2asm.js2
-rw-r--r--test/float-ops.2asm.js2
-rw-r--r--test/forward.2asm.js2
-rw-r--r--test/grow_memory.2asm.js2
-rw-r--r--test/hello_world.2asm.js2
-rw-r--r--test/i32.2asm.js2
-rw-r--r--test/i64-add-sub.2asm.js2
-rw-r--r--test/i64-lowering.2asm.js2
-rw-r--r--test/unary-ops.2asm.js2
-rw-r--r--test/wasm2asm.asserts.js2
-rw-r--r--test/wasm2asm.traps.js2
15 files changed, 30 insertions, 0 deletions
diff --git a/test/address.2asm.js b/test/address.2asm.js
index 70301c0e9..65c312313 100644
--- a/test/address.2asm.js
+++ b/test/address.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
var print = env.print;
function $0(i) {
i = i | 0;
diff --git a/test/binaryen.js/emit_asmjs.js.txt b/test/binaryen.js/emit_asmjs.js.txt
index fc5f7aa32..a6206fe3f 100644
--- a/test/binaryen.js/emit_asmjs.js.txt
+++ b/test/binaryen.js/emit_asmjs.js.txt
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function main($0) {
$0 = $0 | 0;
var $1 = 0;
diff --git a/test/br_table_temp.2asm.js b/test/br_table_temp.2asm.js
index a462818ec..fcb9c9e00 100644
--- a/test/br_table_temp.2asm.js
+++ b/test/br_table_temp.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function dummy() {
}
diff --git a/test/empty_imported_table.2asm.js b/test/empty_imported_table.2asm.js
index dcb58de56..276827473 100644
--- a/test/empty_imported_table.2asm.js
+++ b/test/empty_imported_table.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
var import$table$0 = env.table;
function __wasm_ctz_i32(x) {
x = x | 0;
diff --git a/test/empty_table.2asm.js b/test/empty_table.2asm.js
index a303b9d06..3a209950b 100644
--- a/test/empty_table.2asm.js
+++ b/test/empty_table.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function __wasm_ctz_i32(x) {
x = x | 0;
var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0;
diff --git a/test/float-ops.2asm.js b/test/float-ops.2asm.js
index 43fcdff39..8ae6fbd7c 100644
--- a/test/float-ops.2asm.js
+++ b/test/float-ops.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function dummy() {
}
diff --git a/test/forward.2asm.js b/test/forward.2asm.js
index 9eb55c5c0..c447d8c19 100644
--- a/test/forward.2asm.js
+++ b/test/forward.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function even(n) {
n = n | 0;
var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0;
diff --git a/test/grow_memory.2asm.js b/test/grow_memory.2asm.js
index 8aa65e246..9f650cbac 100644
--- a/test/grow_memory.2asm.js
+++ b/test/grow_memory.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function $0(var$0) {
var$0 = var$0 | 0;
var $1 = 0, $2 = 0;
diff --git a/test/hello_world.2asm.js b/test/hello_world.2asm.js
index e816150ed..dd5966224 100644
--- a/test/hello_world.2asm.js
+++ b/test/hello_world.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function add(x, y) {
x = x | 0;
y = y | 0;
diff --git a/test/i32.2asm.js b/test/i32.2asm.js
index 4628aeb11..7fe6c56de 100644
--- a/test/i32.2asm.js
+++ b/test/i32.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function $0(x, y) {
x = x | 0;
y = y | 0;
diff --git a/test/i64-add-sub.2asm.js b/test/i64-add-sub.2asm.js
index c006d0b78..721de6132 100644
--- a/test/i64-add-sub.2asm.js
+++ b/test/i64-add-sub.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function dummy() {
}
diff --git a/test/i64-lowering.2asm.js b/test/i64-lowering.2asm.js
index 537f92bae..ffa9e4f06 100644
--- a/test/i64-lowering.2asm.js
+++ b/test/i64-lowering.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function dummy() {
}
diff --git a/test/unary-ops.2asm.js b/test/unary-ops.2asm.js
index d3f8c7c16..54841656b 100644
--- a/test/unary-ops.2asm.js
+++ b/test/unary-ops.2asm.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function dummy() {
}
diff --git a/test/wasm2asm.asserts.js b/test/wasm2asm.asserts.js
index a41dc6463..b36b52c0b 100644
--- a/test/wasm2asm.asserts.js
+++ b/test/wasm2asm.asserts.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function $0() {
}
diff --git a/test/wasm2asm.traps.js b/test/wasm2asm.traps.js
index 7e79ac70b..351b6ba6f 100644
--- a/test/wasm2asm.traps.js
+++ b/test/wasm2asm.traps.js
@@ -12,6 +12,8 @@ function asmFunc(global, env, buffer) {
var Math_fround = global.Math.fround;
var Math_abs = global.Math.abs;
var Math_clz32 = global.Math.clz32;
+ var Math_min = global.Math.min;
+ var Math_max = global.Math.max;
function $0() {
}