Patchwork PATCH: Add a testcase for PR middle-end/44144

login
register
mail settings
Submitter H.J. Lu
Date Oct. 14, 2010, 2:20 a.m.
Message ID <20101014022047.GA13504@intel.com>
Download mbox | patch
Permalink /patch/67772/
State New
Headers show

Comments

H.J. Lu - Oct. 14, 2010, 2:20 a.m.
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.

Patch

--- /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;
+}