2 /* { dg-additional-options "-msse2" { target sse2_runtime } } */
3 /* { dg-additional-options "-mavx" { target avx_runtime } } */
6 int a
[32][32] __attribute__((aligned (32))) = { { 1 } };
8 #pragma omp declare reduction (+:struct S:omp_out.s += omp_in.s)
9 #pragma omp declare reduction (foo:struct S:omp_out.s += omp_in.s)
10 #pragma omp declare reduction (foo:int:omp_out += omp_in)
12 __attribute__((noinline
, noclone
)) int
18 #pragma omp simd aligned(a : 32) lastprivate (i, j) reduction(+:s) reduction(foo:t, u) collapse(2)
19 for (i
= 0; i
< 32; i
++)
20 for (j
= 0; j
< 32; j
++)
29 if (t
.s
!= s
.s
|| u
!= s
.s
|| i
!= 32 || j
!= 32)
34 __attribute__((noinline
, noclone
)) int
40 #pragma omp simd aligned(a:32)reduction(+:s)reduction(foo:t,u)collapse(2)
41 for (i
= 0; i
< 32; i
++)
42 for (j
= 0; j
< 32; j
++)
51 if (t
.s
!= s
.s
|| u
!= s
.s
|| i
!= 32 || j
!= 32)
60 for (i
= 0; i
< 32; i
++)
61 for (j
= 0; j
< 32; j
++)
62 a
[i
][j
] = j
+ (i
/ 4);