This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Altivec mulv4si3 and mulv8hi3 cleanup


FWIW, this patch looks good to me.

Bill

On Mon, 2015-06-15 at 18:15 -0400, David Edelsohn wrote:
> POWER8 added a multiply instruction that makes mulv4si more efficient.
> And vmladduhm can be used for mulv8hi3.  This patch also changes
> vmladduhm from a black box UNSPEC to descriptive RTL.
> 
> Bootstrapped on powerpc64le-linux.
> 
>         * altivec.md: Delete UNSPEC_VMLADDUHM.
>         (mulv4si3_p8): New pattern.
>         (mulv4si3): Use it for POWER8.
>         (mulv8hi3): Use vmladduhm with zero addend.
>         (altivec_vmladduhm): Descriptive RTL.
> 
> - David



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]