Debian Codegraph @

gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c

raw
1 /* PR tree-optimization/55281 */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-ffast-math" } */
4
5 static inline float
6 bar (float k, float j)
7 {
8 float l = 0.0f;
9 if (k > j)
10 l = k;
11 float t = k / j;
12 float v = t * t;
13 if (k == 0)
14 v = 0.0f;
15 if (t > 0.4f)
16 v += 0.7;
17 if (l != 0)
18 v = 1.5 - v;
19 return v;
20 }
21
22 void
23 foo (int *a, int b, float *d, float *e, int *f)
24 {
25 int i, l;
26 for (l = 0; l != b; ++l)
27 for (i = 0; i != 8; ++i)
28 f[i] = e[i] + bar (a[i], d[i]);
29 }
30