diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/387-3.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/387-3.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/387-3.c b/gcc/testsuite/gcc.target/i386/387-3.c new file mode 100644 index 000000000..d00c72967 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/387-3.c @@ -0,0 +1,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; +} + |