This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, vectorizer] Fix PR tree-optimization/33866 ICE in vect_get_vec_def_for_stmt_copy
- From: Ira Rosen <IRAR at il dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 24 Oct 2007 13:35:21 +0200
- Subject: Re: [patch, vectorizer] Fix PR tree-optimization/33866 ICE in vect_get_vec_def_for_stmt_copy
Ira Rosen/Haifa/IBM wrote on 24/10/2007 13:09:18:
> testsuite/ChangeLog:
>
> PR tree-optimization/33866
> * gcc.dg/vect/pr33866.c: New testcase.
I forgot to add { dg-do compile }. Here is the fixed testcase.
Thanks,
Ira
Index: testsuite/gcc.dg/vect/pr33866.c
===================================================================
--- testsuite/gcc.dg/vect/pr33866.c (revision 0)
+++ testsuite/gcc.dg/vect/pr33866.c (revision 0)
@@ -0,0 +1,31 @@
+/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
+/* { dg-do compile } */
+
+typedef struct
+{
+ long *coords;
+}
+fill_iter_info;
+
+extern H5Diterate (fill_iter_info *);
+
+void test_select_fill_hyper_simple (long *offset)
+{
+ long start[2];
+ int num_points;
+ long points[16][2];
+ fill_iter_info iter_info;
+ int i, j;
+ iter_info.coords = (long *) points;
+ for (i = 0, num_points = 0; j < (int) start[1]; j++, num_points++)
+ {
+ points[num_points][0] = i + start[0];
+ points[num_points][1] = j + start[1];
+ }
+ H5Diterate (&iter_info);
+}
+
+/* Needs interleaving support. */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" {
target { vect_interleave } } } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */