On Wed, Oct 12, 2011 at 6:32 PM, Richard Henderson <r...@redhat.com> wrote:
> I suppose technically the middle-end could be improved to implement
> ashl<mode> as vashl<mode> by broadcasting the scalar, but Altivec
> is the only extant SIMD ISA that would make use of this.  All of
> the others can arrange for constant shifts to be encoded into the
> insn, and so implement the ashl<mode> named pattern.
>
> Tested on ppc64-linux, --with-cpu=G5.
>
> Ok?
>
>
> r~
>
>
>        * config/rs6000/rs6000.c (rs6000_expand_vector_broadcast): New.
>        * config/rs6000/rs6000-protos.h: Update.
>        * config/rs6000/vector.md (ashl<VEC_I>3): New.
>        (lshr<VEC_I>3, ashr<VEC_I>3): New.

The patch is fine.

Thanks, David

Reply via email to