This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/14792] ((int)b & 1) != 0 is not folded to b & 1 != 0
- 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: 9 Sep 2008 01:38:09 -0000
- Subject: [Bug tree-optimization/14792] ((int)b & 1) != 0 is not folded to b & 1 != 0
- References: <bug-14792-5009@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from pinskia at gcc dot gnu dot org 2008-09-09 01:38 -------
(In reply to comment #7)
> The testcase from comment #1 is fixed on the trunk.
Not for Powerpc64:
.L.foo:
mflr 0
std 0,16(1)
nop
nop
lbz 0,0(3)
stdu 1,-112(1)
rldicl. 9,0,0,63
beq 0,.L5
beq 0,.L7
.L5:
addi 1,1,112
ld 0,16(1)
mtlr 0
blr
.p2align 4,,15
.L7:
bl link_error
nop
addi 1,1,112
ld 0,16(1)
mtlr 0
blr
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14792