Commit a5bdd742 by David Edelsohn Committed by David Edelsohn

* gcc.target/powerpc/recip-sqrtf.c: New test.

From-SVN: r231318
parent 4f0055bd
2015-12-05 David Edelsohn <dje.gcc@gmail.com>
* gcc.target/powerpc/recip-sqrtf.c: New test.
2015-12-04 Aditya Kumar <aditya.k7@samsung.com> 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
Sebastian Pop <s.pop@samsung.com> Sebastian Pop <s.pop@samsung.com>
......
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math -mcpu=power5 -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 } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment