PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr62171.c
blobdc96713d1ae388e3ab8112bab2abcd3c4cc4a0bc
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_double } */
4 struct omp_data_i
6 double *__restrict__ results;
7 double *__restrict__ pData;
8 double *__restrict__ coeff;
9 };
11 #define nEvents 1000000
13 double __attribute__((noinline, noclone))
14 f (struct omp_data_i *__restrict__ p, int argc)
17 int idx;
19 for (idx = 0; idx < nEvents; idx++)
20 ((p->results))[idx] = (*(p->coeff)) * ((p->pData))[idx];
22 return ((p->results))[argc];
25 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
26 /* { dg-final { scan-tree-dump-not "versioned" "vect" } } */