[Bug optimization/10620] for(i=25000;i;i--) {} generates wrong assembly source in avr-gcc with -O2
gcc-bugzilla@gcc.gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 22 00:04:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10620
------- Additional Comments From dhazeghi@yahoo.com 2003-05-21 22:59 -------
Hello,
I certainly don't know much about avr asm. With gcc 3.2.3 and 3.3 branch, I see the same code
that you mention (.L10 etc.) generated. With mainline (20030520), I see the following:
.L8:
subi r18,lo8(-(-50))
sbci r19,hi8(-(-50))
brne .L8
Is this assembly also faulty? Thanks,
Dara
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Gcc-bugs
mailing list