summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/range-analysis-bug1124448.js
blob: 807f75432e23b26989a9c98f3f60c874f9920ce0 (plain)
1
2
3
4
5
6
7
8
function f(y) {
    var x1 = Math.max(-2147483649 >> 0, y >>> 0);
    var x2 = x1 | 0;
    return (x2 >= 0) ? 1 : 0;
}
assertEq(f(0), 1);
assertEq(f(-1), 0);