https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78643
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think the problem is that while TYPE_MODE has the hacks for vector types (vector_type_mode call), DECL_MODE doesn't have something similar. We have some hacks for this here and there.