https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109087
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to David Binderman from comment #9) > (In reply to Richard Biener from comment #6) > > Try -fno-tree-vectorize? > > I tried that, and it made no difference at all. > > I also tried dropping the -march= setting back to znver1 and > that also made no difference. The change added znver1/2/3 to X86_TUNE_AVX256_MOVE_BY_PIECES, X86_TUNE_AVX256_STORE_BY_PIECES also so must be related to that ... Most likely a latent bug too ... you might get a similar failure on alderlake or core_avx2 too.