[Bug target/40457] use stm and ldm to access consecutive memory words

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 16 18:17:00 GMT 2009



------- Comment #5 from ubizjak at gmail dot com  2009-06-16 18:16 -------
(In reply to comment #2)
> Could you check to see why store_multiple_sequence doesn't find this in the
> peephole in the ARM backend ? 

Registers also need to be consecutive, starting from certain register, i.e.:

str     r1, [r0]
str     r2, [r0, #4]

and

ldr     r3, [r0, #4]
ldr     r2, [r0]


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40457



More information about the Gcc-bugs mailing list