On Tue, Oct 30, 2018 at 9:36 PM H.J. Lu <hjl.to...@gmail.com> wrote: > > Why not at the expand time? Rewrite vector constant as vec_duplicate > > from memory and combine will do the stuff for you. We do have _bcst > > instruction patterns. > > > > Here is the updated patch to do that. OK for trunk?
Looks mostly good, however IMO we should move the expansion out of ix86_expand_args_builtin. We have an example of ix86_expand_unop_vec_merge_builtin and VEC_MERGE type in i386-builtin-types.def on how to handle special builtins. Uros. > Thanks. > > > -- > H.J.