PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / fast-math-pr55281.c
blob49232616b4514fd9bc618a84c009f2865c9a15bb
1 /* PR tree-optimization/55281 */
2 /* { dg-do compile } */
4 static inline float
5 bar (float k, float j)
7 float l = 0.0f;
8 if (k > j)
9 l = k;
10 float t = k / j;
11 float v = t * t;
12 if (k == 0)
13 v = 0.0f;
14 if (t > 0.4f)
15 v += 0.7;
16 if (l != 0)
17 v = 1.5 - v;
18 return v;
21 void
22 foo (int *a, int b, float *d, float *e, int *f)
24 int i, l;
25 for (l = 0; l != b; ++l)
26 for (i = 0; i != 8; ++i)
27 f[i] = e[i] + bar (a[i], d[i]);