summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1757476.js
blob: b103a89f5cec97a7d7cf0794c5d56d5afcf81f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| --blinterp-eager; --ion-warmup-threshold=0; --fast-warmup; --no-threads

function bar(x, y) {
  return ((Math.fround(x) && Math.fround(y)) >>> 0) + y & x | 0 + undef();
};

function foo(f, inputs) {
  for (var j = 0; j < inputs.length; ++j)
    for (var k = 0; k < inputs.length; ++k)
      try {
        f(inputs[j], inputs[k]);
      } catch {}

}

foo(bar, [1, 1, 1, 1, 1, 1, 1, 1, -0x080000001, -0x0ffffffff]);