https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112661
--- Comment #13 from Richard Sandiford <rsandifo at gcc dot gnu.org> --- In vect_create_constant_vectors, I think the uniform_elt needs to come first, and needs to be used irrespective of whether the number of elements is constant. The general tree_vector_builder has a more general pattern than 1 duplicated element.