Re: [PATCH][AArch64] Allow CMP+SHIFT when comparing with zero

2017-06-02 Thread James Greenhalgh
On Thu, Mar 16, 2017 at 11:26:27AM +, Sudi Das wrote: > Hi all > > The backend pattern for combining a CMP+SHIFT was missing out on a case when > comparing with zero. This was happening because aarch64_select_cc_mode > (SELECT_CC_MODE) was not returning the correct mode (in this case CC_SWP)

[PATCH][AArch64] Allow CMP+SHIFT when comparing with zero

2017-03-16 Thread Sudi Das
Hi all The backend pattern for combining a CMP+SHIFT was missing out on a case when comparing with zero. This was happening because aarch64_select_cc_mode (SELECT_CC_MODE) was not returning the correct mode (in this case CC_SWP) which was needed to identify the combine. This patch adds this mis