public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gjl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/39633] [avr] loop bug Date: Sat, 09 Jul 2011 16:45:00 -0000 [thread overview] Message-ID: <bug-39633-4-siA5wVw1xo@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-39633-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39633 --- Comment #8 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-07-09 16:45:20 UTC --- Created attachment 24727 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24727 C file, reduced test case Compiler with avr-gcc 4.6.1 -Os -S -fno-split-wide-types -dp to get: func_1: push r8 ; 94 *pushqi/1 [length = 1] push r9 ; 95 *pushqi/1 [length = 1] push r10 ; 96 *pushqi/1 [length = 1] push r11 ; 97 *pushqi/1 [length = 1] push r12 ; 98 *pushqi/1 [length = 1] push r13 ; 99 *pushqi/1 [length = 1] push r14 ; 100 *pushqi/1 [length = 1] push r15 ; 101 *pushqi/1 [length = 1] clr r8 ; 3 *movqi/1 [length = 1] .L2: lds r24,g_52 ; 15 *movqi/4 [length = 2] subi r24,lo8(-(1)) ; 16 addqi3/2 [length = 1] sts g_52,r24 ; 17 *movqi/3 [length = 2] mov r24,r8 ; 19 *movqi/1 [length = 1] ldi r22,lo8(3) ; 20 *movqi/2 [length = 1] rcall foo ; 21 call_value_insn/3 [length = 1] mov r8,r24 ; 23 *movqi/1 [length = 1] >>>> BUG START lsl r24 ; 24 ashrqi3/5 [length = 2] sbc r24,r24 brne .L1 ; 34 branch [length = 1] >>>> BUG END tst r24 ; 37 *cmpqi/1 [length = 1] brne .L1 ; 38 branch [length = 1] tst r24 ; 41 *cmpqi/1 [length = 1] brne .L1 ; 42 branch [length = 1] tst r24 ; 45 *cmpqi/1 [length = 1] brne .L1 ; 46 branch [length = 1] tst r24 ; 49 *cmpqi/1 [length = 1] brne .L1 ; 50 branch [length = 1] tst r24 ; 53 *cmpqi/1 [length = 1] brne .L1 ; 54 branch [length = 1] tst r24 ; 57 *cmpqi/1 [length = 1] brne .L1 ; 58 branch [length = 1] ldi r24,lo8(12) ; 93 *movqi/2 [length = 1] cp r24,r8 ; 61 *cmpqi/2 [length = 1] brsh .L2 ; 62 branch [length = 1] .L1: pop r15 ; 104 popqi [length = 1] pop r14 ; 105 popqi [length = 1] pop r13 ; 106 popqi [length = 1] pop r12 ; 107 popqi [length = 1] pop r11 ; 108 popqi [length = 1] pop r10 ; 109 popqi [length = 1] pop r9 ; 110 popqi [length = 1] pop r8 ; 111 popqi [length = 1] ret ; 112 return_from_epilogue [length = 1]
next prev parent reply other threads:[~2011-07-09 16:45 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-39633-4@http.gcc.gnu.org/bugzilla/> 2011-04-14 19:55 ` avr at gjlay dot de 2011-07-09 15:51 ` gjl at gcc dot gnu.org 2011-07-09 16:40 ` gjl at gcc dot gnu.org 2011-07-09 16:45 ` gjl at gcc dot gnu.org [this message] 2011-07-09 17:26 ` gjl at gcc dot gnu.org 2011-07-10 8:31 ` [Bug target/39633] [avr] loop bug: missing 8-bit comparison (*cmpqi) gjl at gcc dot gnu.org 2011-07-10 10:15 ` gjl at gcc dot gnu.org 2011-07-10 21:02 ` gjl at gcc dot gnu.org 2011-07-11 10:14 ` gjl at gcc dot gnu.org 2011-07-11 10:25 ` gjl at gcc dot gnu.org 2011-07-11 10:29 ` gjl at gcc dot gnu.org 2012-05-02 17:15 ` gjl at gcc dot gnu.org 2012-05-02 17:16 ` gjl at gcc dot gnu.org 2009-04-03 23:21 [Bug c/39633] New: loop bug on AVR regehr at cs dot utah dot edu 2009-08-17 9:40 ` [Bug target/39633] [avr] loop bug abnikant dot singh at atmel dot com 2009-08-17 11:56 ` eric dot weddington at atmel dot com 2009-08-17 12:03 ` abnikant dot singh at atmel dot com 2009-08-17 12:08 ` abnikant dot singh at atmel dot com 2009-08-17 12:12 ` eric dot weddington at atmel dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-39633-4-siA5wVw1xo@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).