aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/387-3.c
blob: 1b8dc8bab3ffebbc90d564e5168017aab791b221 (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" } */
/* { dg-final { scan-assembler "fldpi" } } */
/* { dg-require-effective-target large_long_double } */

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