This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
a testcase for PR57410
- From: Vladimir Makarov <vmakarov at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 27 Nov 2013 11:31:26 -0500
- Subject: a testcase for PR57410
- Authentication-results: sourceware.org; auth=none
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];
+}