1  /* { dg-do compile { target { { powerpc*-*-* } && { ! powerpc*-apple-darwin* } } } } */
       2  /* { dg-require-effective-target powerpc_fprs } */
       3  /* { dg-options "-O2 -mrecip -ffast-math -mdejagnu-cpu=power6" } */
       4  /* { dg-final { scan-assembler-times "frsqrte" 2 } } */
       5  /* { dg-final { scan-assembler-times "fmul" 4 } } */
       6  /* { dg-final { scan-assembler-times "fnmsub" 3 } } */
       7  /* { dg-final { scan-assembler-times "fmadd" 4 } } */
       8  
       9  double
      10  rsqrt_d (double a)
      11  {
      12    return 1.0 / __builtin_sqrt (a);
      13  }
      14  
      15  float
      16  rsqrt_f (float a)
      17  {
      18    return 1.0f / __builtin_sqrtf (a);
      19  }