This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Improve folding of bitwise ops on booleans


On 06/03/2013 09:37 AM, Kai Tietz wrote:
> foo:
>         .seh_endprologue
>         cmpb    %cl, %dl
>         seta    %al
>         ret
>         .seh_endproc
>         .p2align 4,,15
>         .globl  boo
>         .def    boo;    .scl    2;      .type   32;     .endef
>         .seh_proc       boo
> boo:
>         .seh_endprologue
>         movl    %ecx, %eax
>         notl    %eax
>         andl    %edx, %eax
>         andl    $1, %eax
>         ret

Try arm or s390 or ppc for significantly different results.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]