summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/wasm/asm-wasm-f64.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/asm-wasm-f64.js')
-rw-r--r--deps/v8/test/mjsunit/wasm/asm-wasm-f64.js37
1 files changed, 21 insertions, 16 deletions
diff --git a/deps/v8/test/mjsunit/wasm/asm-wasm-f64.js b/deps/v8/test/mjsunit/wasm/asm-wasm-f64.js
index 1fd51ff9d5..c7b439fede 100644
--- a/deps/v8/test/mjsunit/wasm/asm-wasm-f64.js
+++ b/deps/v8/test/mjsunit/wasm/asm-wasm-f64.js
@@ -205,21 +205,25 @@ function f64_tan(a) {
return +Math_tan(+a);
}
-function f64_exp(a, b) {
+function f64_exp(a) {
a = +a;
- b = +b;
- return +Math_exp(+a, +b);
+ return +Math_exp(+a);
+}
+
+function f64_log(a) {
+ a = +a;
+ return +Math_log(+a);
}
-function f64_log(a, b) {
+function f64_atan2(a, b) {
a = +a;
b = +b;
- return +Math_log(+a, +b);
+ return +Math_atan2(+a, +b);
}
-function f64_atan2(a) {
+function f64_neg(a) {
a = +a;
- return +Math_atan2(+a);
+ return +(-a);
}
@@ -272,17 +276,18 @@ var funcs = [
f64_floor,
// TODO(bradnelson) f64_sqrt,
f64_abs,
+ f64_neg,
// TODO(bradnelson) f64_min is wrong for -0
// TODO(bradnelson) f64_max is wrong for -0
-// TODO(bradnelson) f64_acos,
-// TODO(bradnelson) f64_asin,
-// TODO(bradnelson) f64_atan,
-// TODO(bradnelson) f64_cos,
-// TODO(bradnelson) f64_sin,
-// TODO(bradnelson) f64_tan,
-// TODO(bradnelson) f64_exp,
-// TODO(bradnelson) f64_log,
-// TODO(bradnelson) f64_atan2,
+ f64_acos,
+ f64_asin,
+ f64_atan,
+ f64_cos,
+ f64_sin,
+ f64_tan,
+ f64_exp,
+ f64_log,
+ f64_atan2,
];
(function () {