1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_v8_neon_ok } */
3 /* { dg-options "-O2 -ffast-math -ftree-vectorize" } */
4 /* { dg-add-options arm_v8_neon } */
5
6 #define N 32
7
8 void
foo(float * output,float * input)9 foo (float *output, float *input)
10 {
11 int i = 0;
12 /* Vectorizable. */
13 for (i = 0; i < N; i++)
14 output[i] = __builtin_ceilf (input[i]);
15 }
16
17 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_call_ceilf } } } */
18 /* { dg-final { cleanup-tree-dump "vect" } } */
19