Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / recip-7.c
blobaf1bf3c008bba26513f01e8469fba650c728f93f
1 /* { dg-options "-O1 -funsafe-math-optimizations -fno-trapping-math -fdump-tree-recip" } */
2 /* { dg-do compile } */
4 /* Test inserting in a block that does not contain a division. */
6 extern double h();
8 double f(int x, double z, double w)
10 double b, c, d, e, f;
11 double y = h ();
13 if (x)
14 b = 1 / y, c = z / y;
15 else
16 b = 3 / y, c = w / y;
18 d = b / y;
19 e = c / y;
20 f = 1 / y;
22 return d + e + f;
25 /* { dg-final { scan-tree-dump-times " / " 1 "recip" } } */
26 /* { dg-final { cleanup-tree-dump "recip" } } */