summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1757476.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/bug1757476.js')
-rw-r--r--js/src/jit-test/tests/basic/bug1757476.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug1757476.js b/js/src/jit-test/tests/basic/bug1757476.js
new file mode 100644
index 0000000000..b103a89f5c
--- /dev/null
+++ b/js/src/jit-test/tests/basic/bug1757476.js
@@ -0,0 +1,16 @@
+// |jit-test| --blinterp-eager; --ion-warmup-threshold=0; --fast-warmup; --no-threads
+
+function bar(x, y) {
+ return ((Math.fround(x) && Math.fround(y)) >>> 0) + y & x | 0 + undef();
+};
+
+function foo(f, inputs) {
+ for (var j = 0; j < inputs.length; ++j)
+ for (var k = 0; k < inputs.length; ++k)
+ try {
+ f(inputs[j], inputs[k]);
+ } catch {}
+
+}
+
+foo(bar, [1, 1, 1, 1, 1, 1, 1, 1, -0x080000001, -0x0ffffffff]);