public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/19686] New: avr-gcc 4.0: loop performance decrease (extra conversion)
@ 2005-01-29  6:50 dmixm at marine dot febras dot ru
  2005-01-29 12:45 ` [Bug target/19686] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dmixm at marine dot febras dot ru @ 2005-01-29  6:50 UTC (permalink / raw)
  To: gcc-bugs

Program: 
 
int foo (int x) 
{ 
    int i= x; 
    do { 
        x *= 2; 
    } while (--i); 
    return x; 
} 
 
avr-gcc 4.0 (20050116) with `-Os' option: 
 
foo: 
/* prologue: frame size=0 */ 
/* prologue end (size=0) */ 
        ldi r18,lo8(0) 
        ldi r19,hi8(0) 
        clr r20 
        clr r21 
        sub r20,r24 
        sbc r21,r25 
.L2: 
        add r24,r24 
        adc r25,r25 
        subi r18,lo8(-(-1)) 
        sbci r19,hi8(-(-1)) 
        cp r18,r20 
        cpc r19,r21 
        brne .L2 
/* epilogue: frame size=0 */ 
        ret 
 
avr-gcc 3.3.4: 
 
foo: 
/* prologue: frame size=0 */ 
/* prologue end (size=0) */ 
        mov r18,r24 
        mov r19,r25 
.L2: 
        add r24,r24 
        adc r25,r25 
        subi r18,lo8(-(-1)) 
        sbci r19,hi8(-(-1)) 
        brne .L2 
/* epilogue: frame size=0 */ 
        ret

-- 
           Summary: avr-gcc 4.0: loop performance decrease (extra
                    conversion)
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dmixm at marine dot febras dot ru
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19686


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-09-20 22:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-29  6:50 [Bug target/19686] New: avr-gcc 4.0: loop performance decrease (extra conversion) dmixm at marine dot febras dot ru
2005-01-29 12:45 ` [Bug target/19686] " pinskia at gcc dot gnu dot org
2005-01-30 19:53 ` [Bug tree-optimization/19686] [4.0 Regression] loop performance decrease, not comparing against 0 pinskia at gcc dot gnu dot org
2005-02-07  5:55 ` andrewhutchinson at cox dot net
2005-02-07 14:45 ` schlie at comcast dot net
2005-02-07 15:10 ` pinskia at gcc dot gnu dot org
2005-02-07 15:12 ` schlie at comcast dot net
2005-02-08 14:03 ` andrewhutchinson at cox dot net
2005-03-05 19:58 ` [Bug tree-optimization/19686] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-09-20 22:26 ` pinskia at gcc dot gnu dot org

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).