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: missing 8-bit comparison (*cmpqi) Date: Sun, 10 Jul 2011 08:31:00 -0000 [thread overview] Message-ID: <bug-39633-4-FjCxHZ9Dsy@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 #10 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-07-10 08:29:04 UTC --- Created attachment 24729 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24729 Minimal test case Here is a minimal testcase: char c; void func_1 (char a) { a = a >> 7; if (a) c = a; } Code with 4.6.1 -Os -dp -S -mmcu=atmega88: func_1: lsl r24 ; 6 ashrqi3/5 [length = 2] sbc r24,r24 breq .L1 ; 8 branch [length = 1] sts c,r24 ; 10 *movqi/3 [length = 2] .L1: ret ; 20 return [length = 1]
next prev parent reply other threads:[~2011-07-10 8:31 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-39633-4@http.gcc.gnu.org/bugzilla/> 2011-04-14 19:55 ` [Bug target/39633] [avr] loop bug 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 2011-07-09 17:26 ` gjl at gcc dot gnu.org 2011-07-10 8:31 ` gjl at gcc dot gnu.org [this message] 2011-07-10 10:15 ` [Bug target/39633] [avr] loop bug: missing 8-bit comparison (*cmpqi) 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
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-FjCxHZ9Dsy@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).