summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/directiveless/bug1666051.js
blob: 6b94ef921e772ea467db08dcac9d39db942fdcbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| --fuzzing-safe; --no-threads; --no-baseline; --no-ion; skip-if: !wasmIsSupported()

(function (stdlib) {
  "use asm";
  var sqrt = stdlib.Math.sqrt;
  function f(i0) {
    i0 = i0 | 0;
    i0 = ~~sqrt(-.5);
    return (1 / (1 >> (.0 == .0)) & i0 >> 1);
  }
  return f;
})(this)();