https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97835
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:d12603b746986554981f5ee220926a36a6cb6baf commit r11-5048-gd12603b746986554981f5ee220926a36a6cb6baf Author: Richard Biener <rguent...@suse.de> Date: Mon Nov 16 09:06:41 2020 +0100 tree-optimization/97835 - fix step vector construction for SLP induction We're stripping conversions off access functions of inductions and thus the step can be of different sign. Fix bogus step CTORs by converting the elements rather than the whole vector. 2020-11-16 Richard Biener <rguent...@suse.de> PR tree-optimization/97835 * tree-vect-loop.c (vectorizable_induction): Convert step scalars rather than step vector. * gcc.dg/vect/pr97835.c: New testcase.