Re: [PATCH] Add support for vbpermq builtin; Improve vec_extract

2014-03-27 Thread Michael Meissner
On Wed, Mar 26, 2014 at 08:30:39PM -0400, David Edelsohn wrote: > Okay. > > Good to add the optimizations. > > I notice that you emit nop with a comment after a "#" character. I > notice that you also added that to the POWER8 vector fusion peepholes. > > Is it safe to assume that all assemblers

Re: [PATCH] Add support for vbpermq builtin; Improve vec_extract

2014-03-26 Thread David Edelsohn
On Wed, Mar 26, 2014 at 3:50 PM, Michael Meissner wrote: > This patch adds support for adding a builtin to generate the vbpermq > instruction on ISA 2.07. This instruction takes a vector in the Altivec > register set, and returns a 64-bit value in the upper part of the register, > and > 0 in the

[PATCH] Add support for vbpermq builtin; Improve vec_extract

2014-03-26 Thread Michael Meissner
This patch adds support for adding a builtin to generate the vbpermq instruction on ISA 2.07. This instruction takes a vector in the Altivec register set, and returns a 64-bit value in the upper part of the register, and 0 in the lower part of the register. The output is explicitly a vector, sinc