[Bug rtl-optimization/15927] THUMB -O2: strength-reduced iteration variable ends up off by 1
danfuzz at milk dot com
gcc-bugzilla@gcc.gnu.org
Fri Jun 11 05:32:00 GMT 2004
------- Additional Comments From danfuzz at milk dot com 2004-06-11 05:32 -------
Created an attachment (id=6514)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6514&action=view)
Better C Source
I managed to pare the source down a bit more while still getting the bogus
output, though the register assignments are a little different. Here's the bad
assembly in this version:
ldr r3, [sp, #28]
ldmia r3!, {r2}
ldr r2, [sp, #40]
ldr r5, [r4, #20]
str r3, [sp, #28]
str r3, [sp, #44] // off by one!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15927
More information about the Gcc-bugs
mailing list