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

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

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