diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/pr27827.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr27827.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr27827.c b/gcc/testsuite/gcc.target/i386/pr27827.c new file mode 100644 index 000000000..3b337444a --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr27827.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target ilp32 } */ +/* { dg-options "-O2 -mfpmath=387" } */ + +double a, b; +double f(double c) +{ + double x = a * b; + return x + c * a; +} + +/* { dg-final { scan-assembler-not "fld\[ \t\]*%st" } } */ +/* { dg-final { scan-assembler "fmul\[ \t\]*%st" } } */ |