RE: [Ping] [PATCH, 7/10] aarch64: add function to output ccmp insn

2014-10-27 Thread Zhenqiang Chen
-Original Message- From: Richard Henderson [mailto:r...@redhat.com] Sent: Sunday, October 12, 2014 12:52 PM To: Zhenqiang Chen; gcc-patches@gcc.gnu.org Subject: Re: [Ping] [PATCH, 7/10] aarch64: add function to output ccmp insn On 10/11/2014 09:11 AM, Richard Henderson wrote

Re: [Ping] [PATCH, 7/10] aarch64: add function to output ccmp insn

2014-10-11 Thread Richard Henderson
On 09/22/2014 11:45 PM, Zhenqiang Chen wrote: +static unsigned int +aarch64_code_to_nzcv (enum rtx_code code, bool inverse) { + switch (code) +{ +case NE: /* NE, Z == 0. */ + return inverse ? AARCH64_CC_Z : 0; +case EQ: /* EQ, Z == 1. */ + return inverse ? 0 :

Re: [Ping] [PATCH, 7/10] aarch64: add function to output ccmp insn

2014-10-11 Thread Richard Henderson
On 10/11/2014 09:11 AM, Richard Henderson wrote: On 09/22/2014 11:45 PM, Zhenqiang Chen wrote: +static unsigned int +aarch64_code_to_nzcv (enum rtx_code code, bool inverse) { + switch (code) +{ +case NE: /* NE, Z == 0. */ + return inverse ? AARCH64_CC_Z : 0; +case EQ: /*