summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/SIMD/bug1248503.js
blob: e121cea1d1d35750c14eb5fa3c0a5f59f705ee1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (typeof SIMD !== 'object')
    quit(0);

function assertEqVec(v, w) {
    [0].forEach(i => v, w);
    function assertEqX4(...opts) {}
}
gczeal(1);
function f() {
    SIMD.Float32x4();
    var i1 = SIMD.Int32x4();
    for (j = 0; j < 100000; ++j, eval.eval)
        assertEqVec(SIMD.Int32x4.check(i1), i1);
}
f();