summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/387-7.c
blob: e01ed2e057638b4633a3055b6780325ecae5d55c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Verify that 387 fsincos instruction is generated.  */
/* { dg-do compile } */
/* { dg-options "-O -ffast-math -mfpmath=387 -mfancy-math-387" } */
/* { dg-final { scan-assembler "fsincos" } } */

extern double sin (double);
extern double cos (double);

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