[Bug middle-end/30521] "if (i == n) ++i;" or "i += i == n;"?
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jan 21 08:54:00 GMT 2007
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-01-21 08:54 -------
I think this has been fixed already, for PPC with 4.0.2, we get:
_f:
mr r2,r3
addi r3,r3,1
cmpw cr7,r3,r4
bnelr cr7
addi r3,r2,2
blr
.align 2
.p2align 4,,15
.globl _f1
_f1:
addi r3,r3,1
xor r0,r3,r4
subfic r0,r0,0
addze r0,r3
mr r3,r0
blr
While on the trunk we get:
_f:
addi r3,r3,1
xor r0,r3,r4
subfic r0,r0,0
addze r0,r3
mr r3,r0
blr
.align 2
.globl _f1
_f1:
addi r3,r3,1
xor r0,r3,r4
subfic r0,r0,0
addze r0,r3
mr r3,r0
blr
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30521
More information about the Gcc-bugs
mailing list