2 /* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -fdump-tree-optimized -lm" } */
3 /* { dg-require-effective-target int32plus } */
4 /* { dg-require-effective-target large_double } */
5 /* { dg-final { scan-tree-dump "cdce1.c:17: \[^\n\r]* function call is shrink-wrapped into error conditions\." "cdce" } } */
6 /* { dg-final { scan-tree-dump "pow \\(\[^\n\r]*\\); \\\[tail call\\\]" "optimized" } } */
11 int total_err_count
= 0;
12 double foo_opt (int x
, double y
) __attribute__((noinline
));
13 double foo_opt (int x
, double y
)
21 double foo (int x
, double y
) __attribute__((noinline
));
22 double foo (int x
, double y
)
30 int test (double (*fp
)(int x
, double y
))
35 for (i
= 30; i
< 300; i
++)
43 for (i
= 100; i
< 300; i
++)
51 for (i
= 60; i
< 200; i
++)
59 for (i
= 1; i
< 100; i
++)
66 return total_err_count
;