Add compile command to each testcase
[gcc-vect-testsuite.git] / fast-math-ifcvt-1.c
blobba22d8d788949427792b1753ef5d7fcfa0fd117a
1 /* PR 47892 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target vect_float } */
4 /* { dg-require-effective-target vect_condition } */
6 void
7 bestseries9 (float * __restrict__ arr, int len)
9 int i;
10 for (i = 0; i < len; ++i)
12 float or = arr[i];
13 arr[i] = (or > 0.0f) * (2 - or * or);
17 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */
18 /* { dg-final { cleanup-tree-dump "vect" } } */