summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1000960.js
blob: bf32f844399cc291525fb30a2d400015672a6df0 (plain)
1
2
3
4
5
6
7
8
9
function testFloat32SetElemIC(a) {
  for (var i = 0; i < a.length; i++) {
    var r = Math.fround(Number.MAX_VALUE);
    a[i] = r;
    assertEq(a[i], r);
  }
}
testFloat32SetElemIC(new Array(2048));
testFloat32SetElemIC(new Float32Array(2048));