summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug925305.js
blob: 7278ce0abdd9b5235d5da8766f11f2f9afa7d220 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function testFloat32SetElemIC(a) {
  for (var i = 0; i < a.length; i++) {
    var r = Math.fround(Math.random());
    a[i] = r;
    assertEq(a[i], r);
  }
}

testFloat32SetElemIC(new Array(2048));
testFloat32SetElemIC(new Array(2048));

enableOsiPointRegisterChecks();
testFloat32SetElemIC(new Array(2048));
testFloat32SetElemIC(new Float64Array(2048));