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: c/7888: wrong code produced by GCC 3.1


Synopsis: wrong code produced by GCC 3.1

State-Changed-From-To: feedback->closed
State-Changed-By: nathan
State-Changed-When: Thu Sep 12 05:42:11 2002
State-Changed-Why:
    With a power pc 3.2 compiler the unoptimized code looks like
    ...
    addi 10,31,16
            lwz 9,0(10)
            mr 11,9
            lwz 7,32(31)
            lwz 8,36(31)
            stw 7,0(11)
            stw 8,4(11)
            addi 9,9,8
            stw 9,0(10)
    ..
    which looks correct for a single *dbplp++
    the optimised loop looks like
    .L13:
            stw 9,0(3)
            stw 10,4(3)
            stwu 9,8(3)
            stw 10,4(3)
            stwu 9,8(3)
            stw 10,4(3)
            stwu 9,8(3)
            stw 10,4(3)
            addi 3,3,8
            bdnz .L13
            mr 11,3
    
    which again looks correct.
    
    If the problem persists, please provide
    the target triplet, a *complete* code sample, and
    indicate in the assembly where the error is, if possible.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7888


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