This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Altivec mulv4si3 and mulv8hi3 cleanup
- From: Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- To: David Edelsohn <dje dot gcc at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 16 Jun 2015 06:59:38 -0500
- Subject: Re: [PATCH] Altivec mulv4si3 and mulv8hi3 cleanup
- Authentication-results: sourceware.org; auth=none
- References: <CAGWvny=4pbZv7eh8z889aNnGoTxXmLZtSxRUonS1y1Ekg4Sv-A at mail dot gmail dot com>
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