Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / recip-2.c
blobaf628053ad59c18edd0db5c43f38bbd63703a5de
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -funsafe-math-optimizations -fdump-tree-recip" } */
4 float e(float a, float b, float c, float d, float e, float f)
6 if (a < b)
8 a = a + b;
9 c = c + d;
12 /* The PHI nodes for these divisions should be combined. */
13 d = d / a;
14 e = e / a;
15 f = f / a;
17 a = a / c;
18 b = b / c;
20 /* This should not be left as a multiplication. */
21 c = 1 / c;
23 return a + b + c + d + e + f;
26 /* { dg-final { scan-tree-dump-times " / " 2 "recip" } } */
27 /* { dg-final { scan-tree-dump-times " \\* " 5 "recip" } } */
28 /* { dg-final { cleanup-tree-dump "recip" } } */