This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/66129] [6 Regression] FAIL: gcc.dg/vect/vect-strided-*c execution test
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 May 2015 09:22:06 +0000
- Subject: [Bug tree-optimization/66129] [6 Regression] FAIL: gcc.dg/vect/vect-strided-*c execution test
- Auto-submitted: auto-generated
- References: <bug-66129-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66129
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Oops...
Index: tree-vect-slp.c
===================================================================
--- tree-vect-slp.c (revision 223119)
+++ tree-vect-slp.c (working copy)
@@ -3459,7 +3459,7 @@ vect_schedule_slp_instance (slp_tree nod
tree *melts = XALLOCAVEC (tree, TYPE_VECTOR_SUBPARTS (vectype));
for (l = 0; l < TYPE_VECTOR_SUBPARTS (vectype); ++l)
{
- if (k > group_size)
+ if (k >= group_size)
k = 0;
melts[l] = build_int_cst
(meltype, mask[k++] * TYPE_VECTOR_SUBPARTS (vectype) +
l);