Re: [PATCH][AArch64] Split X-reg UBFIZ into W-reg LSL when possible

2016-12-16 Thread James Greenhalgh
On Fri, Dec 16, 2016 at 12:21:55PM +, Kyrill Tkachov wrote: > > On 15/12/16 11:56, James Greenhalgh wrote: > >On Thu, Dec 08, 2016 at 09:35:09AM +, Kyrill Tkachov wrote: > >>Hi all, > >> > >>Similar to the previous patch this transforms X-reg UBFIZ instructions into > >>W-reg LSL instructi

Re: [PATCH][AArch64] Split X-reg UBFIZ into W-reg LSL when possible

2016-12-16 Thread Kyrill Tkachov
On 15/12/16 11:56, James Greenhalgh wrote: On Thu, Dec 08, 2016 at 09:35:09AM +, Kyrill Tkachov wrote: Hi all, Similar to the previous patch this transforms X-reg UBFIZ instructions into W-reg LSL instructions when the UBFIZ operands add up to 32, so we can take advantage of the implicit z

Re: [PATCH][AArch64] Split X-reg UBFIZ into W-reg LSL when possible

2016-12-15 Thread James Greenhalgh
On Thu, Dec 08, 2016 at 09:35:09AM +, Kyrill Tkachov wrote: > Hi all, > > Similar to the previous patch this transforms X-reg UBFIZ instructions into > W-reg LSL instructions when the UBFIZ operands add up to 32, so we can take > advantage of the implicit zero-extension to DImode > when writin

[PATCH][AArch64] Split X-reg UBFIZ into W-reg LSL when possible

2016-12-08 Thread Kyrill Tkachov
Hi all, Similar to the previous patch this transforms X-reg UBFIZ instructions into W-reg LSL instructions when the UBFIZ operands add up to 32, so we can take advantage of the implicit zero-extension to DImode when writing to a W-register. This is done by splitting the existing *andim_ashift_