https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112992
--- Comment #7 from Hongtao Liu <liuhongt at gcc dot gnu.org> --- (In reply to Hongtao Liu from comment #6) > > Thoughts? Apologies if this is a dup. I'm happy to work up a patch if > > someone could advise on where best this should be fixed. Perhaps RTL's > > vec_duplicate could be canonicalized to the most appropriate vector mode? > That may breaks avx512 embedded broadcast. But perhaps we can add some postreload splitter to check for load from memory or broadcast from memeory to see if we can use the smallest constant pool.