https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108599
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The bug is in ix86_convert_const_wide_int_to_broadcast. It is called with OImode and (const_wide_int 0x100000000000000010), that CONST_WIDE_INT is actually usable as broadcast from DImode 0x10, but only to TImode, not OImode nor XImode. /* Check if OP can be broadcasted from VAL. */ for (int i = 1; i < CONST_WIDE_INT_NUNITS (op); i++) if (val != CONST_WIDE_INT_ELT (op, i)) return nullptr; checks all elements of the CONST_WIDE_INT, but nothing checks that it has the expected number of elements... Note, 0 and -1 shouldn't happen here, those would be CONST_INT rather than CONST_WIDE_INT and all the others have to use the right number of CONST_WIDE_INT_NUNITS in order to be broadcastable.