2 /* { dg-additional-options "-msse2" { target sse2_runtime } } */
3 /* { dg-additional-options "-mavx" { target avx_runtime } } */
6 int a
[1024] __attribute__((aligned (32))) = { 1 };
7 int b
[1024] __attribute__((aligned (32))) = { 1 };
12 __attribute__((noinline
, noclone
)) int
18 #pragma omp simd aligned(a, p : 32) linear(k: m + 1) \
19 reduction(+:s) lastprivate(u, v)
20 for (i
= 0; i
< 1024; i
++)
28 if (u
.u
!= 36 + 4 + 3 * 1023 || v
.v
!= 36 + 4 + 3 * 1024)
36 #if __SIZEOF_INT__ >= 4
40 for (i
= 0; i
< 1024; i
++)
46 for (i
= 0; i
< 1024; i
++)
48 if (b
[i
] != (i
- 51) % 39
49 || a
[i
] != (i
- 512) * b
[i
])
52 if (k
!= 4 + 3 * 1024 || s
!= 1596127)