https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97521
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Looking at simplify-rtx.c, I think as long as the constants are CONST_INTs, simplify-rtx.c doesn't care if the non-constant is represented with scalar int mode registers (etc.) or V*BImode.