1  /* { dg-do compile } */
       2  /* { dg-options "-Ofast -fdump-tree-recip" } */
       3  /* { dg-additional-options "-fcompare-debug" { target { ! powerpc-ibm-aix* } } } */
       4  
       5  double res, res2, tmp;
       6  void
       7  foo (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" } } */