This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR middle-end/45416, missing opt for (a&(1<<C))!=0 to (a>>C)&1
- From: Richard Henderson <rth at redhat dot com>
- To: Andrew Pinski <pinskia at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 08 Dec 2011 13:32:05 -0800
- Subject: Re: [PATCH] Fix PR middle-end/45416, missing opt for (a&(1<<C))!=0 to (a>>C)&1
- References: <CA+=Sn1=3gd=QfFaFm0r3KxHBySV6wLVCsGSNtMuMDrK6Dndz2Q@mail.gmail.com>
On 12/06/2011 08:17 PM, Andrew Pinski wrote:
> + if (a & (long long) 0x400)
> + return 1;
> + return 0;
> +}
> +
> +/* { dg-final { scan-assembler "andl" { target i?86-*-linux* x86_64-*-linux* } } } " */
> +/* { dg-final { scan-assembler "setne" { target i?86-*-linux* x86_64-*-linux* } } }" */
Huh? Why would we want to find setne here?
r~