https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106322
--- Comment #15 from Mathieu Malaterre <malat at debian dot org> --- (In reply to Mathieu Malaterre from comment #11) > (In reply to Uroš Bizjak from comment #10) > > The reason the test fails with gcc-12 is that gcc-12 enabled > > auto-vectorisation for -O2. > > I can make the symptoms go away by doing: `-O2 -fno-tree-vectorize`. Since > this affects also arm5 and powerpc, it seems the bug is somewhere in the > shared 32bits code (bug does not affects 64bits arch for some reason). The above is incorrect, since the symptoms are also going away on mips64el and ppc64.