Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.target / mips / rsqrt-2.c
blob03a001356f0b6074277daf629c2cda7cbd18e62d
1 /* { dg-do compile } */
2 /* { dg-mips-options "-O2 -ffast-math -mips4 -mhard-float -mgp64" } */
3 /* { dg-final { scan-assembler "rsqrt.d" } } */
4 /* { dg-final { scan-assembler "rsqrt.s" } } */
6 extern double sqrt(double);
7 extern float sqrtf(float);
9 NOMIPS16 double foo(double x)
11 return sqrt(1.0/x);
14 NOMIPS16 float bar(float x)
16 return sqrtf(1.0f/x);