[Bug tree-optimization/14792] ((int)b & 1) != 0 is not folded to b & 1 != 0
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 9 01:39:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list