2007-05-23 H.J. Lu <hongjiu.lu@intel.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / 387-8.c
blob578e0a38b5f198aeb4c9bb4f6d7a4c1c978a76c5
1 /* Verify that 387 fptan instruction is generated. Also check that
2 inherent load of 1.0 is used in further calculations. */
4 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
5 /* { dg-require-effective-target ilp32 } */
6 /* { dg-options "-O2 -ffast-math -march=i686" } */
7 /* { dg-final { scan-assembler "fptan" } } */
8 /* { dg-final { scan-assembler-not "fld1" } } */
10 extern double tan (double);
12 double f1(double x)
14 return 1.0 / tan(x);