blob: 150515b2a82bec6482dab2256b403d2a43b93ebf [file] [log] [blame]
/* PR tree-optimization/24964 */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2 -mfpmath=387" } */
double fabs(double x);
double test1(double x)
{
double t = fabs(x);
return t*t;
}
double test2(double x)
{
double t = -x;
return t*t;
}
/* { dg-final { scan-assembler-not "fchs" } } */
/* { dg-final { scan-assembler-not "fabs" } } */