1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_double } */
3 /* { dg-require-effective-target vect_call_lfloor } */
4 
5 #define N 32
6 
7 void
foo(long * output,double * input)8 foo (long *output, double *input)
9 {
10   int i = 0;
11   /* Vectorizable.  */
12   for (i = 0; i < N; i++)
13     output[i] = __builtin_lfloor (input[i]);
14 }
15 
16 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_call_lfloor } } } */
17