summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1159899.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug1159899.js')
-rw-r--r--js/src/jit-test/tests/ion/bug1159899.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug1159899.js b/js/src/jit-test/tests/ion/bug1159899.js
new file mode 100644
index 0000000000..10d930f3b9
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1159899.js
@@ -0,0 +1,5 @@
+function f(x) {
+ return ~~(x >>> 0) / (x >>> 0) | 0
+}
+f(1)
+assertEq(f(-1), 0);