Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/vect/vect-rounding-floorf.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-require-effective-target vect_float } */ | |
3 /* { dg-require-effective-target vect_call_floorf } */ | |
4 | |
5 #define N 32 | |
6 | |
7 void | |
8 foo (float *output, float *input) | |
9 { | |
10 int i = 0; | |
11 /* Vectorizable. */ | |
12 for (i = 0; i < N; i++) | |
13 output[i] = __builtin_floorf (input[i]); | |
14 } | |
15 | |
16 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_call_floorf } } } */ |