blob: a4cddcd0a0d8a3608c1a0b23bb7ce17ecc98d8b0 [file] [log] [blame]
/* { dg-do compile { target "mips*-*-*" } } */
/* { dg-options "-O2 -ffast-math -mips4" } */
/* { dg-final { scan-assembler "rsqrt.d" } } */
/* { dg-final { scan-assembler "rsqrt.s" } } */
#if (__mips != 4 && __mips != 64) || __mips_soft_float
asm ("# rsqrt.d rsqrt.s");
#else
extern double sqrt(double);
extern float sqrtf(float);
double foo(double x)
{
return sqrt(1.0/x);
}
float bar(float x)
{
return sqrtf(1.0f/x);
}
#endif