PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-rounding-floor.c
blob4ed3be760e708906beac068a92a76fc0c5f71608
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_double } */
3 /* { dg-require-effective-target vect_call_floor } */
5 #define N 32
7 void
8 foo (double *output, double *input)
10 int i = 0;
11 /* Vectorizable. */
12 for (i = 0; i < N; i++)
13 output[i] = __builtin_floor (input[i]);
16 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_call_floor } } } */