aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.target/i386/387-8.c
blob: 3293f560c25c27297329de948efdf2ddba2e0e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Verify that 387 fptan instruction is generated. Also check that
   inherent load of 1.0 is used in further calculations.  */

/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -ffast-math -march=i686" } */
/* { dg-final { scan-assembler "fptan" } } */
/* { dg-final { scan-assembler-not "fld1" } } */

extern double tan (double);

double f1(double x)
{
  return 1.0 / tan(x);
}