This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/15618] Missed bool optimization


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-26 23:34 -------
Here is the x86 asm:
f:
        xorl    %eax, %eax
        cmpb    $0, 4(%esp)
        setne   %al
        ret
        .size   f, .-f
        .p2align 4,,15
.globl f3
        .type   f3, @function
f3:
        xorl    %eax, %eax
        cmpb    $0, 4(%esp)
        setne   %al
        ret
        .size   f3, .-f3
        .p2align 4,,15
.globl f5
        .type   f5, @function
f5:
        movzbl  4(%esp), %eax
        ret
        .size   f5, .-f5

And PPC:
_f:
        addic r2,r3,-1
        subfe r4,r2,r3
        mr r3,r4
        blr
        .align 2
        .globl _f3
.section __TEXT,__text,regular,pure_instructions
        .align 2
_f3:
        addic r2,r3,-1
        subfe r4,r2,r3
        mr r3,r4
        blr
        .align 2
        .globl _f5
.section __TEXT,__text,regular,pure_instructions
        .align 2
_f5:
        blr

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-05-26 23:34:28
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15618


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