This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: target/7500: [ARM] invalid assemly output with -O2 flag


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]