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

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