From 5125d0e0956688739ecd7f46983908fb6775f6f2 Mon Sep 17 00:00:00 2001 From: hjl Date: Fri, 17 Jul 2015 11:52:09 +0000 Subject: Add a testcase for PR target/66824 PR target/66824 * gcc.target/i386/pr66824.c: git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225929 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/gcc.target/i386/pr66824.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/pr66824.c 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; +} -- cgit v1.2.1