Merge from mainline
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr23948.C
blobc34161409c1c5ece91f37f8f9fec2164994cf52c
1 /* { dg-options "-O1 -ffast-math -fdump-tree-recip" } */
2 /* { dg-do compile } */
4 struct MIOFILE {
5   ~MIOFILE();
6 };
7 double potentially_runnable_resource_share();
8 void f1(double);
9 int make_scheduler_request(double a, double b)
11   MIOFILE mf;
12   double prrs = potentially_runnable_resource_share();
13   f1(a/prrs);
14   f1(1/prrs);
15   f1(b/prrs);
18 /* { dg-final { scan-tree-dump-times " / " 1 "recip" } } */
19 /* { dg-final { cleanup-tree-dump "recip" } } */