Patchwork PATCH: Add another 256bit vectorizer test

login
register
mail settings
Submitter H.J. Lu
Date Oct. 14, 2010, 8:50 a.m.
Message ID <20101014085019.GA10056@intel.com>
Download mbox | patch
Permalink /patch/67795/
State New
Headers show

Comments

H.J. Lu - Oct. 14, 2010, 8:50 a.m.
I checked in this patch to add another 256bit vectorizer test.


H.J.
---

Patch

Index: gcc.target/i386/vect-sizes-1.c
===================================================================
--- gcc.target/i386/vect-sizes-1.c	(revision 0)
+++ gcc.target/i386/vect-sizes-1.c	(revision 0)
@@ -0,0 +1,13 @@ 
+/* { dg-do compile } */
+/* { dg-options "-O3 -ffast-math -mavx" } */
+
+double a[1024];
+
+void dependence_distance_4 (void)
+{
+  int i;
+  for (i = 0; i < 1020; ++i)
+    a[i + 4] = a[i] + a[i + 4];
+}
+
+/* { dg-final { scan-assembler "vmovapd\[ \\t\]+\[^\n\]*%ymm" } } */
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 165457)
+++ ChangeLog	(working copy)
@@ -1,5 +1,9 @@ 
 2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* gcc.target/i386/vect-sizes-1.c: New.
+
+2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>
+
 	PR middle-end/46011
 	* gcc.target/i386/vectorize4-avx.c: Scan 256bit AVX register
 	and xfail.