ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/powerpc/recip-sqrtf.c

22 lines
327 B
C

/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math -mdejagnu-cpu=power6 -mrecip" } */
extern float sqrtf (float);
float t1(float a, float b)
{
return a/sqrtf(b);
}
float t2(float a, float b)
{
return sqrtf(a/b);
}
float t3(float a)
{
return sqrtf(a);
}
/* { dg-final { scan-assembler-times "frsqrtes" 3 } } */