summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/recip_sqrt_mult_3.c
blob: 7d191b6612862a287bcbeb3d873d9bc4e8f77ed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-Ofast -fdump-tree-optimized" } */
/* { dg-additional-options "-fcompare-debug" { target { ! powerpc-ibm-aix* } } } */

double
foo (double a)
{
  double tmp = 1.0f / __builtin_sqrt (a);
  return tmp * tmp;
}

/* { dg-final { scan-tree-dump-not "__builtin_sqrt" "optimized" } } */