OSDN Git Service

2010-01-21 Martin Jambor <mjambor@suse.cz>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / recip-6.c
1 /* { dg-options "-O1 -funsafe-math-optimizations -fno-trapping-math -fdump-tree-recip" } */
2 /* { dg-do compile } */
3
4 /* Test inserting in a block that does not contain a division.  */
5
6 extern int f2();
7
8 double m, n, o;
9
10 void f1(double y, double z, double w)
11 {
12   double b, c, d, e, f;
13
14   if (g ())
15     b = 1 / y, c = z / y;
16   else
17     b = 3 / y, c = w / y;
18
19   d = b / y;
20   e = c / y;
21   f = 1 / y;
22
23   m = d;
24   n = e;
25   o = f;
26 }
27
28 /* { dg-final { scan-tree-dump-times " / " 1 "recip" } } */
29 /* { dg-final { cleanup-tree-dump "recip" } } */
30