2 // { dg-do run { target vect_simd_clones } }
3 // { dg-options "-O2" }
4 // { dg-additional-options "-msse2" { target sse2_runtime } }
5 // { dg-additional-options "-mavx" { target avx_runtime } }
8 bar (int &a, int &b, int *&c, int &d)
18 void (*volatile barp) (int &, int &, int *&, int &) = bar;
20 #pragma omp declare simd uniform(b, c) linear(d:2) aligned(c:32) notinbranch
22 foo (int a, int b, int *c, int d)
29 return a + b + *c + d;
33 int c[64] __attribute__((aligned (32)));
40 for (int i = 0; i < 64; i++)
42 #pragma omp simd reduction(+:r) linear(d:2)
43 for (int i = 0; i < 64; i++)
45 r += foo (i, b, c, d);