blob: 0a4b98671df07df0127fbb6400a5e3b409d0db51 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target arm_v8_neon_ok } */
/* { dg-options "-O2 -ffast-math -ftree-vectorize -fdump-tree-vect-all" } */
/* { dg-add-options arm_v8_neon } */
#define N 32
float __attribute__((aligned(16))) input[N];
int __attribute__((aligned(16))) output[N];
void
foo ()
{
int i = 0;
/* Vectorizable. */
for (i = 0; i < N; i++)
output[i] = __builtin_lroundf (input[i]);
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */