Add a testcase for PR target/66824
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 17 Jul 2015 11:52:09 +0000 (11:52 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 17 Jul 2015 11:52:09 +0000 (04:52 -0700)
PR target/66824
* gcc.target/i386/pr66824.c:

From-SVN: r225929

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr66824.c [new file with mode: 0644]

index 1311bf2b5f2dff6095b5313e7df388d6af1c1972..57b8e54820124540ba35568968d6de3670f74bda 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR target/66824
+       * gcc.target/i386/pr66824.c:
+
 2015-07-17  Andre Vehreschild  <vehre@gcc.gnu.org>
 
        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 (file)
index 0000000..3511e4c
--- /dev/null
@@ -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;
+}