Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / mips / rsqrt-1.c
blob4cc6212c351d1bce23eeef34cafe913c4b351e08
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 1.0/sqrt(x);
14 NOMIPS16 float bar(float x)
16 return 1.0f/sqrtf(x);