public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/61559] New: FAIL: gcc.dg/builtin-bswap-8.c on i686 with -mmovbe Date: Thu, 19 Jun 2014 09:16:00 -0000 [thread overview] Message-ID: <bug-61559-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61559 Bug ID: 61559 Summary: FAIL: gcc.dg/builtin-bswap-8.c on i686 with -mmovbe Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ubizjak at gmail dot com Target: i686-pc-linux-gnu gcc.dg/builtin-bswap-8.c fails on i686 with -mmovbe: ~/gcc-build/gcc/cc1 -O2 -march=corei7 -mmovbe -m32 builtin-bswap-8.c foo5: movbe 4(%esp), %eax movbe 8(%esp), %edx andl %edx, %eax bswap %eax ret foo6: movbe 4(%esp), %eax movbe 8(%esp), %edx orl %edx, %eax bswap %eax ret foo7: movbe 4(%esp), %eax movbe 8(%esp), %edx xorl %edx, %eax bswap %eax ret It looks that direct swap from memory (movbe) interferes with bswap elimination. Without -mmovbe, following asm is produced: foo5: movl 8(%esp), %eax andl 4(%esp), %eax ret foo6: movl 8(%esp), %eax orl 4(%esp), %eax ret foo7: movl 8(%esp), %eax xorl 4(%esp), %eax ret
next reply other threads:[~2014-06-19 9:16 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-06-19 9:16 ubizjak at gmail dot com [this message] 2014-06-19 9:18 ` [Bug rtl-optimization/61559] " ubizjak at gmail dot com 2014-06-25 5:13 ` thopre01 at gcc dot gnu.org 2014-06-25 6:22 ` ebotcazou at gcc dot gnu.org 2014-09-03 17:11 ` [Bug tree-optimization/61559] " ubizjak at gmail dot com 2014-09-04 8:56 ` rguenth at gcc dot gnu.org 2014-09-04 9:52 ` jakub at gcc dot gnu.org 2014-09-04 9:59 ` rguenther at suse dot de 2014-09-04 11:36 ` ubizjak at gmail dot com 2014-09-04 11:52 ` rguenther at suse dot de 2014-09-04 12:08 ` jakub at gcc dot gnu.org 2014-11-13 8:46 ` rguenth 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-61559-4@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).