https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113783
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This comes from
scalar_int_mode mode;
if (int_mode_for_size (ilen * 8, 0).exists (&mode)
&& GET_MODE_SIZE (mode) * BITS_PER_UNIT == ilen * 8
/* If the destination pointer is not aligned we must be able
to emit an unaligned store. */
&& (dest_align >= GET_MODE_ALIGNMENT (mode)
|| !targetm.slow_unaligned_access (mode, dest_align)
|| (optab_handler (movmisalign_optab, mode)
!= CODE_FOR_nothing)))
where we just care if that huge mode exists, not whether it is supported (but
for moves or in misaligned case movmisalign).