This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

a testcase for PR57410


Here is the test I've committed as rev. 205451 for

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57410

2013-11-27  Vladimir Makarov  <vmakarov@redhat.com>

        PR rtl-optimization/57410
        * gcc.target/i386/pr57410.c: New.

Index: testsuite/gcc.target/i386/pr57410.c
===================================================================
--- testsuite/gcc.target/i386/pr57410.c (revision 0)
+++ testsuite/gcc.target/i386/pr57410.c (working copy)
@@ -0,0 +1,12 @@
+/* { dg-do compile } */
+/* { dg-options "-O -fpeel-loops" } */
+
+extern char outbuffer[];
+extern char buffer[];
+
+void foo(int j)
+{
+  unsigned i, fp = fp;
+  for (i = 0; i < 6; i++)
+    buffer[j++] = outbuffer[fp - i];
+}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]