Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / gcc.target / arm / vect-rounding-roundf.c
blobd550174e3e632c8b9534ca11f9c8484e1c9fe7b9
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 } */
6 #define N 32
8 float __attribute__((aligned(16))) input[N];
9 float __attribute__((aligned(16))) output[N];
11 void
12 foo ()
14 int i = 0;
15 /* Vectorizable. */
16 for (i = 0; i < N; i++)
17 output[i] = __builtin_roundf (input[i]);
20 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_call_roundf } } } */
21 /* { dg-final { cleanup-tree-dump "vect" } } */