This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Add a testcase for PR middle-end/44144
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 13 Oct 2010 19:20:47 -0700
- Subject: PATCH: Add a testcase for PR middle-end/44144
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
I am checking in this patch to add a testcase for PR middle-end/44144.
H.J.
----
2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
PR middle-end/44144
* gcc.target/i386/pr44144.c: New.
--- /dev/null 2010-10-13 10:21:15.312298381 -0700
+++ gcc/gcc/testsuite/gcc.target/i386/pr44144.c 2010-10-13 19:16:17.766025326 -0700
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-vectorize -mavx" } */
+
+void
+foo (char * dest, int xcount, int ycount)
+{
+ int x, y;
+ for (y = 0; y < ycount; y++)
+ for (x = 0; x < xcount; x++)
+ dest[x + y*2] = 0;
+}