summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/cacheir/bug1451984.js
blob: bfbcb109ba154c751f879640118b722c80e7b182 (plain)
1
2
3
4
5
6
7
8
9
10
// This test case originally failed only with --enable-more-deterministic

setJitCompilerOption("ion.forceinlineCaches", 1);
function f(x) {
    return Math.pow(Math.fround(Math.fround()), ~(x >>> 0));
}
assertEq(f(-1),1);
assertEq(f(-1),1);
assertEq(f(-1),1);
assertEq(f(-1),1);