Add another 256bit vectorizer test.
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 14 Oct 2010 08:49:27 +0000 (08:49 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 14 Oct 2010 08:49:27 +0000 (01:49 -0700)
2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* gcc.target/i386/vect-sizes-1.c: New.

From-SVN: r165458

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/vect-sizes-1.c [new file with mode: 0644]

index 71162a4..df9f88c 100644 (file)
@@ -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.
diff --git a/gcc/testsuite/gcc.target/i386/vect-sizes-1.c b/gcc/testsuite/gcc.target/i386/vect-sizes-1.c
new file mode 100644 (file)
index 0000000..a67c7e9
--- /dev/null
@@ -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" } } */