This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/45373] V850 increment loops compile into incorrect assembly
- From: "trap15 at raidenii dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Aug 2010 02:47:12 -0000
- Subject: [Bug target/45373] V850 increment loops compile into incorrect assembly
- References: <bug-45373-19592@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from trap15 at raidenii dot net 2010-08-22 02:47 -------
This actually appears to be the same problem when comparing in the other
direction as well. If I change the source from i < 8 to i > 8, then it uses
``cmp 8, iter; bgt 0xf00'', which is also wrong, since we want 8 < iterator,
not 8 > iterator.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45373