[Bug target/36804] For-loop never exits in gcc for ARM.
rearnsha at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Dec 16 16:48:00 GMT 2008
------- Comment #1 from rearnsha at gcc dot gnu dot org 2008-12-16 16:45 -------
I'm unable to reproduce this with any of svn-trunk, gcc-4.1.3 (debian),
gcc-4.3.3 (SVN) or gcc-4.3.2 (debian). The loop essentially reads as
mov r7, #1
mov r6, #0
L5:
...
add r6, r6, #1
cmp r7, r6
bhi L5
This will iterate only while r7 is larger than r6 -- that is, exactly once,
when r6 is 0.
--
rearnsha at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36804
More information about the Gcc-bugs
mailing list