1 /* { dg-do compile } */
2 /* { dg-options "-Ofast -fnon-call-exceptions -fdump-tree-recip" } */
6 foo1 (double a, double b)
9 tmp = 1.0 / __builtin_sqrt (a);
18 foo4 (double a, double b, int c, int d)
21 tmp = 1.0 / __builtin_sqrt (a);
34 foo5 (double a, double b, int c, int d)
37 tmp = 1.0 / __builtin_sqrt (a);
47 /* { dg-final { scan-tree-dump-times "Optimizing reciprocal sqrt multiplications" 2 "recip" } } */
48 /* { dg-final { scan-tree-dump-times "Replacing squaring multiplication" 2 "recip" } } */
49 /* { dg-final { scan-tree-dump-times "Replacing original division" 2 "recip" } } */