blob: 78294b4d2cad5c0969100c22939adde2a20f905f [file] [log] [blame]
/* APPLE LOCAL file mainline */
/* Verify that 387 fptan instruction is generated. Also check fptan
peephole2 optimizer. */
/* { dg-do compile { target "i?86-*-*" } } */
/* APPLE LOCAL x86_64 */
/* { 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);
}