blob: 870a5c9aa6a820e6aaae2ffb6a81294f8291819e [file] [log] [blame]
/* { dg-do compile { target "mips*-*-*" } } */
/* { dg-options "-O2 -mips4" } */
/* { dg-final { scan-assembler-not "rsqrt.d" } } */
/* { dg-final { scan-assembler-not "rsqrt.s" } } */
extern double sqrt(double);
extern float sqrtf(float);
double foo(double x)
{
return 1.0/sqrt(x);
}
double bar(double x)
{
return sqrt(1.0/x);
}
float foof(float x)
{
return 1.0f/sqrtf(x);
}
float barf(float x)
{
return sqrtf(1.0f/x);
}