summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/unsignedShiftZero.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/jaeger/unsignedShiftZero.js')
-rw-r--r--js/src/jit-test/tests/jaeger/unsignedShiftZero.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/unsignedShiftZero.js b/js/src/jit-test/tests/jaeger/unsignedShiftZero.js
new file mode 100644
index 000000000..e199677d0
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/unsignedShiftZero.js
@@ -0,0 +1,8 @@
+
+function f(a) {
+ return a >>> 0;
+};
+
+assertEq(f(-2147483647), 2147483649);
+assertEq(f(-2147483648), 2147483648);
+assertEq(f(-2147483649), 2147483647);