https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35226
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Alan Lawrence from comment #1) > Multiplication reductions are supported, certainly in gcc 4.9, I think > longer. However, the following induction does not vectorize on gcc 6 > development branch (x86_64, -O3, with or without -mavx or -msse2): That in turn was fixed in GCC 13 (or rather it was PR 103144 ). For reduction: ``` int a[1024]; int f (void) { int p = 1; for (int i = 0; i < 1024; i++, p*=2) p *= a[i]; return p; } ``` That was fixed in GCC 8 (I can't find the patch currectly). So closing as fixed.