summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1716231.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/warp/bug1716231.js')
-rw-r--r--js/src/jit-test/tests/warp/bug1716231.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/warp/bug1716231.js b/js/src/jit-test/tests/warp/bug1716231.js
new file mode 100644
index 0000000000..df51c0b08f
--- /dev/null
+++ b/js/src/jit-test/tests/warp/bug1716231.js
@@ -0,0 +1,25 @@
+// |jit-test| --fast-warmup; --ion-offthread-compile=off
+
+const too_big_for_float32 = 67109020;
+
+function call_with_no_ic_data() {}
+
+function foo() {
+ call_with_no_ic_data();
+
+ let x = too_big_for_float32;
+ let result;
+
+ // We OSR in this loop.
+ for (let i = 0; i < 100; i++) {
+ const float32 = Math.fround(0);
+
+ // Create a phi with one float32-typed input
+ // and one OSRValue input.
+ result = float32 || x;
+ }
+
+ return result;
+}
+
+assertEq(foo(), too_big_for_float32);