summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/387-3.c
blob: d00c7296721eaeb4d181f353b4839aea58703028 (plain)
1
2
3
4
5
6
7
8
9
10
/* Verify that 387 mathematical constants are recognized.  */
/* { dg-do compile } */
/* { dg-options "-O2 -mfpmath=387 -mfancy-math-387" } */
/* { dg-final { scan-assembler "fldpi" } } */

long double add_pi(long double x)
{
  return x + 3.1415926535897932385128089594061862044L;
}