This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/29294] 4.1, 4.2 (possibly 4.0?) not finding postmodify address mode on ARM
- From: "eplondke at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Sep 2006 23:42:04 -0000
- Subject: [Bug rtl-optimization/29294] 4.1, 4.2 (possibly 4.0?) not finding postmodify address mode on ARM
- References: <bug-29294-9933@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from eplondke at gmail dot com 2006-09-29 23:42 -------
GCC 4.1/4.2 ouptut looks like:
postinc:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
ldr ip, [r1, #0]
ldr r3, [r0, #0]
stmfd sp!, {r4, lr}
mul lr, r3, ip
ldr r4, [r1, #4]
ldr r2, [r0, #4]
add r1, r1, #4
mla ip, r2, r4, lr
add r0, r0, #4
ldr r2, [r1, #4]
ldr r3, [r0, #4]
add r1, r1, #4
mla lr, r3, r2, ip
add r0, r0, #4
ldr r2, [r1, #4]
ldr r3, [r0, #4]
add r1, r1, #4
mla ip, r3, r2, lr
add r0, r0, #4
....
GCC 3.4.2 output looks like:
postinc:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
stmfd sp!, {r4, r5, lr}
ldr r4, [r1], #4
ldr r5, [r0], #4
ldr r2, [r1], #4
ldr lr, [r0], #4
mul ip, r2, lr
mla r3, r4, r5, ip
ldr lr, [r0], #4
ldr r2, [r1], #4
mla r3, r2, lr, r3
ldr ip, [r0], #4
ldr r2, [r1], #4
mla r3, r2, ip, r3
....
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29294