Re: [PATCH, rs6000] Use hardware support for vector character multiply

2015-09-15 Thread Bill Schmidt
On Tue, 2015-09-15 at 13:29 -0700, Andrew Pinski wrote: > On Tue, Sep 15, 2015 at 6:58 AM, Richard Biener > wrote: > > On Thu, Sep 3, 2015 at 5:32 PM, Bill Schmidt > > wrote: > >> On Thu, 2015-09-03 at 23:26 +0800, Andrew Pinski wrote: > >>> On Thu, Sep 3, 2015 at 11:20 PM, Bill Schmidt > >>> wr

Re: [PATCH, rs6000] Use hardware support for vector character multiply

2015-09-15 Thread Andrew Pinski
On Tue, Sep 15, 2015 at 6:58 AM, Richard Biener wrote: > On Thu, Sep 3, 2015 at 5:32 PM, Bill Schmidt > wrote: >> On Thu, 2015-09-03 at 23:26 +0800, Andrew Pinski wrote: >>> On Thu, Sep 3, 2015 at 11:20 PM, Bill Schmidt >>> wrote: >>> > Hi, >>> > >>> > It was pointed out to me recently that mult

Re: [PATCH, rs6000] Use hardware support for vector character multiply

2015-09-15 Thread Richard Biener
On Thu, Sep 3, 2015 at 5:32 PM, Bill Schmidt wrote: > On Thu, 2015-09-03 at 23:26 +0800, Andrew Pinski wrote: >> On Thu, Sep 3, 2015 at 11:20 PM, Bill Schmidt >> wrote: >> > Hi, >> > >> > It was pointed out to me recently that multiplying two vector chars is >> > performed using scalarization, ev

Re: [PATCH, rs6000] Use hardware support for vector character multiply

2015-09-03 Thread Bill Schmidt
On Thu, 2015-09-03 at 11:36 -0400, David Edelsohn wrote: > On Thu, Sep 3, 2015 at 11:20 AM, Bill Schmidt > wrote: > > Hi, > > > > It was pointed out to me recently that multiplying two vector chars is > > performed using scalarization, even though we have hardware support for > > byte multiplies i

Re: [PATCH, rs6000] Use hardware support for vector character multiply

2015-09-03 Thread Bill Schmidt
On Thu, 2015-09-03 at 23:26 +0800, Andrew Pinski wrote: > On Thu, Sep 3, 2015 at 11:20 PM, Bill Schmidt > wrote: > > Hi, > > > > It was pointed out to me recently that multiplying two vector chars is > > performed using scalarization, even though we have hardware support for > > byte multiplies in

Re: [PATCH, rs6000] Use hardware support for vector character multiply

2015-09-03 Thread David Edelsohn
On Thu, Sep 3, 2015 at 11:20 AM, Bill Schmidt wrote: > Hi, > > It was pointed out to me recently that multiplying two vector chars is > performed using scalarization, even though we have hardware support for > byte multiplies in vectors. This patch adds an expansion for mulv16qi3 > to correct thi

Re: [PATCH, rs6000] Use hardware support for vector character multiply

2015-09-03 Thread Andrew Pinski
On Thu, Sep 3, 2015 at 11:20 PM, Bill Schmidt wrote: > Hi, > > It was pointed out to me recently that multiplying two vector chars is > performed using scalarization, even though we have hardware support for > byte multiplies in vectors. This patch adds an expansion for mulv16qi3 > to correct thi

[PATCH, rs6000] Use hardware support for vector character multiply

2015-09-03 Thread Bill Schmidt
Hi, It was pointed out to me recently that multiplying two vector chars is performed using scalarization, even though we have hardware support for byte multiplies in vectors. This patch adds an expansion for mulv16qi3 to correct this. The expansion is pretty simple. We do a multiply-even and mu