public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/15596] [3.5 Regression] Missed optimization with bitfields Date: Fri, 28 May 2004 07:11:00 -0000 [thread overview] Message-ID: <20040527174852.26453.qmail@sourceware.org> (raw) In-Reply-To: <20040522223754.15596.pinskia@gcc.gnu.org> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-27 17:48 ------- It is much worse for x86. (-O3 -fomit-frame-pointer) After: fun: movl 4(%esp), %eax movl 8(%esp), %ecx movl (%eax), %edx andl $1048575, %ecx andl $-1048576, %edx orl %ecx, %edx movl %edx, (%eax) movzbl 2(%eax), %edx orb $16, %dl andb $-33, %dl movb %dl, 2(%eax) movl 12(%esp), %ecx movl (%eax), %edx andl $1, %ecx sall $22, %ecx andl $-4194305, %edx orl %ecx, %edx movl %edx, (%eax) ret $4 Before: pushl %ebp andl $-1048576, %ecx movl %esp, %ebp movl 12(%ebp), %edx movl 8(%ebp), %eax andl $1048575, %edx orl %edx, %ecx movl 16(%ebp), %edx orl $1048576, %ecx andl $-6291457, %ecx andl $1, %edx sall $22, %edx orl %edx, %ecx movl %ecx, (%eax) popl %ebp ret $4 -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 GCC target triplet|powerpc-apple-darwin | Last reconfirmed|0000-00-00 00:00:00 |2004-05-27 17:48:51 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15596
next prev parent reply other threads:[~2004-05-27 17:48 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-05-23 21:09 [Bug tree-optimization/15596] New: " pinskia at gcc dot gnu dot org 2004-05-23 21:48 ` [Bug tree-optimization/15596] " pinskia at gcc dot gnu dot org 2004-05-28 7:11 ` pinskia at gcc dot gnu dot org [this message] 2004-06-29 18:17 ` steven at gcc dot gnu dot org 2004-06-29 18:33 ` pinskia at gcc dot gnu dot org 2005-02-11 13:50 ` [Bug tree-optimization/15596] [4.0 " pinskia at gcc dot gnu dot org 2005-02-11 14:12 ` pinskia at gcc dot gnu dot org 2005-02-13 0:59 ` pinskia at gcc dot gnu dot org 2005-04-21 5:00 ` [Bug tree-optimization/15596] [4.0/4.1 " mmitchel at gcc dot gnu dot org 2005-04-25 1:09 ` pinskia at gcc dot gnu dot org 2005-06-24 20:08 ` pinskia at gcc dot gnu dot org 2005-07-08 1:34 ` mmitchel at gcc dot gnu dot org 2005-09-25 11:37 ` bonzini at gcc dot gnu dot org 2005-09-27 16:16 ` mmitchel at gcc dot gnu dot 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=20040527174852.26453.qmail@sourceware.org \ --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).