https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105950
--- Comment #28 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Can't reproduce, neither with gcc 9.5 nor gcc 12.1. You are using -mavx2, are you sure you have AVX2 ISA on the box you're running it?