summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/SIMD/bug1130845.js
blob: 2baf3865d21b3d369581773933bec9d9ff4c0560 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if (!this.hasOwnProperty("SIMD"))
  quit();

var Int32x4 = SIMD.Int32x4;
function test() {
  var a = Int32x4();
  var b = Int32x4(10, 20, 30, 40);
  var c = SIMD.Int32x4.and(a, b);
  assertEq(Int32x4.extractLane(c, 0), 0);
  return 0;
}
test();
var u = [], v = [];
for (var j=0; j<u.length; ++j)
    v[test()] = t;