V2 [PATCH] i386: Use scalar operand in SF/DF/SI/DI vec_dup patterns

Uros Bizjak ubizjak@gmail.com
Thu Nov 1 17:55:00 GMT 2018


On Tue, Oct 30, 2018 at 9:36 PM H.J. Lu <hjl.tools@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.



More information about the Gcc-patches mailing list