libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / recip_sqrt_mult_1.c
blob80b9f679ed53e1e13eb1940eeeadc6404d4c9d6e
1 /* { dg-do compile } */
2 /* { dg-options "-Ofast -fdump-tree-recip" } */
3 /* { dg-additional-options "-fcompare-debug" { target { ! powerpc-ibm-aix* } } } */
5 double res, res2, tmp;
6 void
7 foo (double a, double b)
9 tmp = 1.0 / __builtin_sqrt (a);
10 res = tmp * tmp;
11 res2 = a * tmp;
14 /* { dg-final { scan-tree-dump "Optimizing reciprocal sqrt multiplications" "recip" } } */
15 /* { dg-final { scan-tree-dump "Replacing squaring multiplication" "recip" } } */
16 /* { dg-final { scan-tree-dump "Replacing original division" "recip" } } */