aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.target/i386/387-10.c
blob: 565f0196e8862548241c9f1c42553b2da2a898ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR tree-optimization/24964 */
/* { dg-do compile } */
/* { 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" } } */