This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: target/7500: [ARM] invalid assemly output with -O2 flag
- From: rearnsha at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rgohita at hotmail dot com
- Date: 31 Jan 2003 14:49:58 -0000
- Subject: Re: target/7500: [ARM] invalid assemly output with -O2 flag
- Reply-to: rearnsha at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rgohita at hotmail dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: [ARM] invalid assemly output with -O2 flag
State-Changed-From-To: open->closed
State-Changed-By: rearnsha
State-Changed-When: Fri Jan 31 14:49:58 2003
State-Changed-Why:
This has already been fixed (though I can't remember when -- it was some months ago). Current compiler generates the following at -O2:
@ link register save eliminated.
ldr r3, [r1, #4]
ldr r2, [r0, #4]
cmp r2, r3
@ lr needed for prologue
mov r3, #0
beq .L3
.L2:
mov r0, r3
mov pc, lr
.L3:
ldr r3, [r0, #0]
ldr r1, [r1, #0]
ands r3, r3, #7
movne r3, #1
tst r1, #7
movne r2, #0
moveq r2, #1
subs r3, r3, r2
movne r3, #1
b .L2
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7500