1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_double } */
6 double *__restrict__ results
;
7 double *__restrict__ pData
;
8 double *__restrict__ coeff
;
11 #define nEvents 1000000
13 double __attribute__((noinline
, noclone
))
14 f (struct omp_data_i
*__restrict__ p
, int argc
)
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" } } */