]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/recip_sqrt_mult_1.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / recip_sqrt_mult_1.c
CommitLineData
24c49431 1/* { dg-do compile } */
9638e3ef
DE
2/* { dg-options "-Ofast -fdump-tree-recip" } */
3/* { dg-additional-options "-fcompare-debug" { target { ! powerpc-ibm-aix* } } } */
24c49431
KT
4
5double res, res2, tmp;
6void
7foo (double a, double b)
8{
9 tmp = 1.0 / __builtin_sqrt (a);
10 res = tmp * tmp;
11 res2 = a * tmp;
12}
13
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" } } */