This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15618] Missed bool optimization
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 May 2004 23:34:30 -0000
- Subject: [Bug tree-optimization/15618] Missed bool optimization
- References: <20040523172058.15618.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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