From c92f5b137e967a3ffd1ad0ce80a74c5a12e97fe3 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 17 Jul 2015 11:52:09 +0000 Subject: [PATCH] Add a testcase for PR target/66824 PR target/66824 * gcc.target/i386/pr66824.c: From-SVN: r225929 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/pr66824.c | 29 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/pr66824.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1311bf2b5f2..57b8e548201 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-17 H.J. Lu + + PR target/66824 + * gcc.target/i386/pr66824.c: + 2015-07-17 Andre Vehreschild PR fortran/66035 diff --git a/gcc/testsuite/gcc.target/i386/pr66824.c b/gcc/testsuite/gcc.target/i386/pr66824.c new file mode 100644 index 00000000000..3511e4ca87b --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr66824.c @@ -0,0 +1,29 @@ +/* { dg-do compile { target ia32 } } */ +/* { dg-options "-O2 -mno-sse -mno-mmx -mno-80387" } */ +/* { dg-final { scan-assembler-not "\.LC\[0-9\]" } } */ + +double foo (float); + +double +f1 (void) +{ + return foo (1.0); +} + +double +f2 (void) +{ + return foo (0.0); +} + +void +f3 (float *x, float t) +{ + *x = 0.0 + t; +} + +float +f4 (void) +{ + return 1.0; +} -- 2.30.2