public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenther at suse dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/61559] FAIL: gcc.dg/builtin-bswap-8.c on i686 with -mmovbe
Date: Thu, 04 Sep 2014 09:59:00 -0000	[thread overview]
Message-ID: <bug-61559-4-xYjH58KmM1@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-61559-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61559

--- Comment #10 from rguenther at suse dot de <rguenther at suse dot de> ---
On Thu, 4 Sep 2014, jakub at gcc dot gnu.org wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61559
> 
> Jakub Jelinek <jakub at gcc dot gnu.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |jakub at gcc dot gnu.org
> 
> --- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
> Aren't these optimizations actually a pessimization for -mmovbe if the inner
> bswap is on a read from memory?  Assuming the load and bswap instruction is
> cheap, then e.g. loading two values with bswap on them and doing say xor on
> them afterwards might be cheaper than load the two values, xor them and then
> bswap them (because for that bswap you don't have a load+bswap instruction).

Depends on how fast that load+bswap instruction is I suppose (if it
plays nicely with things like store-forwarding on the pipeline
and pipelines as well as regular loads, etc.).

That said - what does the optimization guides say on consecutive
movbe instructions vs. non-movbe and a bswap instruction?


  parent reply	other threads:[~2014-09-04  9:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-19  9:16 [Bug rtl-optimization/61559] New: " ubizjak at gmail dot com
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 [this message]
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-xYjH58KmM1@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).