[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / recip-1.c
blob1f833d4b30d00c12c0cb9102d4e7092e036bf74b
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 } } */
9 double
10 rsqrt_d (double a)
12 return 1.0 / __builtin_sqrt (a);
15 float
16 rsqrt_f (float a)
18 return 1.0f / __builtin_sqrtf (a);