summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1247880.js
blob: af5bbf93adf1ff810ce764cd4a71726b31a00fc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function f(x) {
    var a = x;
    a = Number ? a | 0 : 0;
    a = a >>> 0;
    a = Math.imul(0x100000001, a);
    a = a % 2;
    a = a | 0;
    return a;
};

assertEq(f(0), 0);
assertEq(f(-1), -1);