summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-17 11:52:09 +0000
committerH.J. Lu <hjl.tools@gmail.com>2015-09-25 14:26:01 -0700
commit5125d0e0956688739ecd7f46983908fb6775f6f2 (patch)
tree2d4e7743db7cc6476c53932a5c5db80bdd84d843
parentf7366924a87bf65c3b2876a07e5211c10791b327 (diff)
downloadgcc-5125d0e0956688739ecd7f46983908fb6775f6f2.tar.gz
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
-rw-r--r--gcc/testsuite/gcc.target/i386/pr66824.c29
1 files changed, 29 insertions, 0 deletions
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;
+}