https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92557
--- Comment #3 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #2) > Created attachment 47291 [details] > gcc10-pr92557.patch > > I'd go with this fix. > The problem is that with just -maltivec, V2DImode is present, but not > supported, so the vector type created for V2DImode actually has > TYPE_MODE_RAW V2DImode, but TYPE_MODE TImode. But if the target doesn't support V2DImode, then I don't think it should be returning V2DImode from preferred_simd_mode. It's hardly preferred in that case :-)