PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / recip-6.c
blobb3334fb862a7c469100c2df4688cb760d752248b
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 int f2();
8 double m, n, o;
10 void f1(double y, double z, double w)
12 double b, c, d, e, f;
14 if (g ())
15 b = 1 / y, c = z / y;
16 else
17 b = 3 / y, c = w / y;
19 d = b / y;
20 e = c / y;
21 f = 1 / y;
23 m = d;
24 n = e;
25 o = f;
28 /* { dg-final { scan-tree-dump-times " / " 1 "recip" } } */
29 /* { dg-final { cleanup-tree-dump "recip" } } */