2 // { dg-additional-options "-msse2" { target sse2_runtime } }
3 // { dg-additional-options "-mavx" { target avx_runtime } }
5 extern "C" void abort ();
6 int a[1024] __attribute__((aligned (32))) = { 1 };
13 #pragma omp declare reduction (+:S:omp_out.s += omp_in.s)
14 #pragma omp declare reduction (foo:S:omp_out.s += omp_in.s)
15 #pragma omp declare reduction (foo:int:omp_out += omp_in)
17 __attribute__((noinline, noclone)) int
22 #pragma omp simd aligned(a : 32) reduction(+:s) reduction(foo:t, u)
23 for (i = 0; i < 1024; i++)
30 if (t.s != s.s || u != s.s)
39 for (i = 0; i < 1024; i++)
40 a[i] = (i & 31) + (i / 128);