2 // { dg-options "-O2" }
3 // { dg-additional-options "-msse2" { target sse2_runtime } }
4 // { dg-additional-options "-mavx" { target avx_runtime } }
7 bar (int &a, int &b, int *&c, int &d)
17 void (*volatile barp) (int &, int &, int *&, int &) = bar;
19 #pragma omp declare simd uniform(b, c) linear(d:2) aligned(c:32) notinbranch
21 foo (int a, int b, int *c, int d)
28 return a + b + *c + d;
32 int c[64] __attribute__((aligned (32)));
39 for (int i = 0; i < 64; i++)
41 #pragma omp simd reduction(+:r) linear(d:2)
42 for (int i = 0; i < 64; i++)
44 r += foo (i, b, c, d);