public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: target/7500: [ARM] invalid assemly output with -O2 flag
@ 2003-01-31 14:49 rearnsha
0 siblings, 0 replies; only message in thread
From: rearnsha @ 2003-01-31 14:49 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, rgohita
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-31 14:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-31 14:49 target/7500: [ARM] invalid assemly output with -O2 flag rearnsha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).