From 92b6974dfdeb7232f631ba5cd9429a2af9a4ce60 Mon Sep 17 00:00:00 2001 From: test262-automation Date: Fri, 7 Sep 2018 18:22:08 +0000 Subject: [PATCH] [javascriptcore-test262-automation] Changes from https://github.com/webkit/webkit.git at sha a2f7b0c562 on Fri Sep 07 2018 18:19:35 GMT+0000 (Coordinated Universal Time) --- .../stress/math-pow-nan-to-zero-spec-type.js | 21 +++++++++++++++++++ .../regress}/regress-189185.js | 3 +-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 implementation-contributed/javascriptcore/stress/math-pow-nan-to-zero-spec-type.js rename implementation-contributed/javascriptcore/{stress => wasm/regress}/regress-189185.js (70%) diff --git a/implementation-contributed/javascriptcore/stress/math-pow-nan-to-zero-spec-type.js b/implementation-contributed/javascriptcore/stress/math-pow-nan-to-zero-spec-type.js new file mode 100644 index 0000000000..24553a5342 --- /dev/null +++ b/implementation-contributed/javascriptcore/stress/math-pow-nan-to-zero-spec-type.js @@ -0,0 +1,21 @@ +// Verify that we have the correct speculation checks for Math.pow(NaN, 0). + +function func(x) { + return fiatInt52(Math.pow(NaN, (x > 1))); +}; + +noInline(func); + +function test(f) +{ + for (let i = 0; i < 10000; ++i) { + if (f(0) != 1) + throw "Wrong expected value"; + + if (f(1) != 1) + throw "Wrong expected value"; + } +} + +test(func); + diff --git a/implementation-contributed/javascriptcore/stress/regress-189185.js b/implementation-contributed/javascriptcore/wasm/regress/regress-189185.js similarity index 70% rename from implementation-contributed/javascriptcore/stress/regress-189185.js rename to implementation-contributed/javascriptcore/wasm/regress/regress-189185.js index 14b901e7ca..d2588ad31f 100644 --- a/implementation-contributed/javascriptcore/stress/regress-189185.js +++ b/implementation-contributed/javascriptcore/wasm/regress/regress-189185.js @@ -1,5 +1,4 @@ -//@ skip if $architecture == "x86" -//@ runDefault +//@ runWebAssembly // This passes if it does not crash. new WebAssembly.CompileError({ valueOf() {