1 /* { dg-do compile } */
2 /* { dg-options "-Ofast -fdump-tree-optimized-raw" } */
4 /* Don't expect any of these divisions to be extracted. */
5 double f (double x
, int p
)
19 /* Expect a reciprocal to be extracted here. */
20 double g (double *a
, double x
, double y
)
23 double k
= x
/ (y
* y
);
31 /* Expect 2 divisions in 'f' and 1 in 'g'. */
32 /* { dg-final { scan-tree-dump-times "rdiv_expr" 3 "optimized" } } */
33 /* Expect 3 multiplications in 'f' and 4 in 'g'. */
34 /* { dg-final { scan-tree-dump-times "mult_expr" 7 "optimized" } } */