[Bug middle-end/31241] Post Increment opportunity missed
ramana at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat May 30 09:18:00 GMT 2009
------- Comment #5 from ramana at gcc dot gnu dot org 2009-05-30 09:18 -------
This is improved by http://gcc.gnu.org/ml/gcc-patches/2009-05/msg01622.html.
With the patch we get the following code generated.
.cpu cortex-a8
.eabi_attribute 27, 3
.fpu neon
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 1
.eabi_attribute 30, 2
.eabi_attribute 18, 4
.file "31241.c"
.text
.align 2
.global foo
.type foo, %function
foo:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
add r2, r0, #40
.L2:
ldr r3, [r0, #0]
orr r3, r1, r3
str r3, [r0], #4
cmp r0, r2
bne .L2
bx lr
.size foo, .-foo
.ident "GCC: (GNU) 4.5.0 20090527 (experimental)"
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31241
More information about the Gcc-bugs
mailing list