aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/i386-387-7.c
blob: 43c916c61d058b7cf30a5865cdc32f36557827ce (plain)
1
2
3
4
5
6
7
8
9
10
/* Verify that 387 fsincos instruction is generated.  */
/* { dg-do compile { target "i?86-*-*" } } */
/* { dg-options "-O -ffast-math -march=i686" } */
/* { dg-final { scan-assembler "fsincos" } } */

double f1(double x)
{
  return sin(x) + cos (x);
}