This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / gcc.dg / mips-rsqrt-1.c
blobb228ddba2963868ba4833a6a9460606a40a81f4c
1 /* { dg-do compile { target "mips*-*-*" } } */
2 /* { dg-options "-O2 -ffast-math -mips4" } */
3 /* { dg-final { scan-assembler "rsqrt.d" } } */
4 /* { dg-final { scan-assembler "rsqrt.s" } } */
6 #if (__mips != 4 && __mips != 64) || __mips_soft_float
7 asm ("# rsqrt.d rsqrt.s");
8 #else
9 extern double sqrt(double);
10 extern float sqrtf(float);
12 double foo(double x)
14 return 1.0/sqrt(x);
17 float bar(float x)
19 return 1.0f/sqrtf(x);
21 #endif