public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tony.poppleton at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/47521] Unnecessary usage of edx register
Date: Wed, 10 Apr 2013 01:51:00 -0000	[thread overview]
Message-ID: <bug-47521-4-Ey3jr0PtPE@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-47521-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #7 from Tony Poppleton <tony.poppleton at gmail dot com> 2013-04-10 01:51:36 UTC ---
This appears to be fixed with GCC 4.8.0 and flag -O2.  The asm code produced is
now exactly as Jeff said in comment #3:

        .file   "test.c"
        .text
        .p2align 4,,15
        .globl  foo
        .type   foo, @function
foo:
.LFB0:
        .cfi_startproc
        testb   $16, %dil
        movl    $1, %eax
        cmovne  %edi, %eax
        ret
        .cfi_endproc
.LFE0:
        .size   foo, .-foo
        .ident  "GCC: (GNU) 4.8.0 20130316 (Red Hat 4.8.0-0.17)"
        .section        .note.GNU-stack,"",@progbits


  parent reply	other threads:[~2013-04-10  1:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28 18:42 [Bug rtl-optimization/47521] New: " tony.poppleton at gmail dot com
2011-01-28 18:44 ` [Bug rtl-optimization/47521] " tony.poppleton at gmail dot com
2011-01-29 12:02 ` [Bug rtl-optimization/47521] [Regression 4.4/4.5/4.6] " tony.poppleton at gmail dot com
2011-01-31 14:49 ` [Bug rtl-optimization/47521] [4.4/4.5/4.6 Regression] " rguenth at gcc dot gnu.org
2011-02-02 19:27 ` [Bug rtl-optimization/47521] " law at redhat dot com
2011-02-03 13:54 ` law at redhat dot com
2011-02-03 14:16 ` tony.poppleton at gmail dot com
2011-02-03 14:32 ` law at redhat dot com
2011-04-16 10:56 ` jakub at gcc dot gnu.org
2011-04-28 16:27 ` rguenth at gcc dot gnu.org
2013-04-10  1:51 ` tony.poppleton at gmail dot com [this message]
2013-09-17 18:49 ` law at redhat 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-47521-4-Ey3jr0PtPE@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: link
Be 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).