]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/pr106967.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr106967.c
1 // { dg-do compile }
2 // { dg-options "-O2 -ffinite-math-only -fno-trapping-math -fno-tree-dominator-opts" }
3
4 void
5 foo (float x, int *y)
6 {
7 int i;
8 float sum2 = 0.0;
9
10 for (i = 0; i < *y; ++i)
11 sum2 += x;
12
13 sum2 = 1.0 / sum2;
14 if (sum2 * 0.0 < 5.E-5)
15 *y = 0;
16 }