Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / recip-1.c
blob33df28e91985bbc97608b05888375ea921d9b69e
1 /* { dg-do compile { target { { powerpc*-*-* } && { ! powerpc*-apple-darwin* } } } } */
2 /* { dg-require-effective-target powerpc_fprs } */
3 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power6" } } */
4 /* { dg-options "-O2 -mrecip -ffast-math -mcpu=power6" } */
5 /* { dg-final { scan-assembler-times "frsqrte" 2 } } */
6 /* { dg-final { scan-assembler-times "fmul" 4 } } */
7 /* { dg-final { scan-assembler-times "fnmsub" 3 } } */
8 /* { dg-final { scan-assembler-times "fmadd" 4 } } */
10 double
11 rsqrt_d (double a)
13 return 1.0 / __builtin_sqrt (a);
16 float
17 rsqrt_f (float a)
19 return 1.0f / __builtin_sqrtf (a);