summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1683535-2.js
blob: b1e26473c05e8d7f2552e6dc3b5a4ec01de0a3c0 (plain)
1
2
3
4
5
6
7
8
9
10
function testMathyFunction(f, inputs) {
  var results = [];
  for (var j = 0; j < inputs.length; ++j) 
    for (var k = 0; k < inputs.length; ++k) 
      results.push(f(inputs[j], inputs[k]));
}
mathy0 = (function(x, y) {
  return (Math.clz32((x <= x) >>> y) >> (~(0x080000000 >>> 0))) % Math.acos(~(2 ** 53)) >>> 0
});
testMathyFunction(mathy0, [1, 42, 0 / 0, 1 / 0, -Number.MIN_SAFE_INTEGER, -(2 ** 53), (2 ** 53), 1.7976931348623157e308]);