summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/testBug893368.js
blob: b149390e7734d5fa79966222b0f32df9e6a7500f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function m(stdlib)
{
  "use asm";
  var abs = stdlib.Math.abs;
  function f(p)
  {
    p = p|0;
    return ((abs(p|0)|0) % 3)|0;
  }
  return f;
}
var f = m(this);
assertEq(f(0x80000000), -2);