https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78132
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This is actually a bug in the REE pass, HARD_REGNO_MODE_OK is false for the mask registers and DImode unless -mavx512bw, that pass should honor it. I'll fix it.