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  <vmaka...@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];
+}

Reply via email to