Debian Codegraph @

gcc/testsuite/gcc.dg/vect/fast-math-ifcvt-1.c

raw
1 /* PR 47892 */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-ffast-math" } */
4 /* { dg-require-effective-target vect_float } */
5 /* { dg-require-effective-target vect_condition } */
6
7 void
8 bestseries9 (float * __restrict__ arr, int len)
9 {
10 int i;
11 for (i = 0; i < len; ++i)
12 {
13 float or = arr[i];
14 arr[i] = (or > 0.0f) * (2 - or * or);
15 }
16 }
17
18 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */