public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Edelsohn <dje.gcc@gmail.com>
To: Michael Meissner <meissner@linux.vnet.ibm.com>,
	GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Pr 68805, Fix PowerPC little endian -mvsx-timode
Date: Wed, 16 Dec 2015 23:51:00 -0000	[thread overview]
Message-ID: <CAGWvny=sthhBR2NDCmz39sv3G14quLwJXARq-tGc+0w1Y+RQuQ@mail.gmail.com> (raw)
In-Reply-To: <20151216232049.GA4524@ibm-tiger.the-meissners.org>

On Wed, Dec 16, 2015 at 6:20 PM, Michael Meissner
<meissner@linux.vnet.ibm.com> wrote:
> My first mail did not seem to be delivered, so I'm trying again.
>
> This fixes a bug with the debug switch -mvsx-timode that we would eventually
> like to enable by default on PowerPC little endian server systems.  The bug is
> that the load with rotate or rotate with store instructions needed on power8
> little endian systems used VEC_SELECT to swap the 64-bit words.  This patch
> uses ROTATE for TImode, just like I did for KFmode.
>
> Without this patch, 10 of the 30 spec 2006 benchmarks fail to compile on a
> little endian PowerPC system with -mvsx-timode.  With the patch, all 30
> benchmarks compile and do the spec verification.
>
> In developing the patch, I noticed that the generic swap optimizations that are
> done for vector types are not done for TImode, since we don't split the TImoves
> until after register allocation when we discover a vector register was used
> instead of a GPR register.  So, I added a peephole2 to catch the common case of
> store followed by load, eliminating the pair of ROTATE insns.
>
> I bootstrapped it on both a big endian power7 and a little endian power8 system
> with no regressions.  Is it ok to install on the trunk?
>
> At the current time, I don't see the need to back port it to GCC 5 (though the
> backport is fairly simple), because it isn't on by default in GCC 5, and we
> don't plan to eventually have -mvsx-timode and -mlra on by default in that
> branch.
>
> [gcc]
> 2015-12-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
>
>         PR target/68805
>         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use ROTATE
>         instead of VEC_SELECT for TImode.
>
>         * config/rs6000/vsx.md (VSX_LE): Move TImode from VSX_LE to
>         VSX_LE_128, so that we use ROTATE to swap the 64-bit words instead
>         of using VEC_SELECT.
>         (VSX_LE_128): Likewise.
>         (define_peephole2): Add peephole to eliminate double xxpermdi when
>         copying TImode.
>
> [gcc/testsuite]
> 2015-12-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
>
>         PR target/68805
>         * gcc.target/powerpc/pr68805.c: New test.

Okay.

Thanks, David

      reply	other threads:[~2015-12-16 23:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-16 23:20 Michael Meissner
2015-12-16 23:51 ` David Edelsohn [this message]

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='CAGWvny=sthhBR2NDCmz39sv3G14quLwJXARq-tGc+0w1Y+RQuQ@mail.gmail.com' \
    --to=dje.gcc@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=meissner@linux.vnet.ibm.com \
    /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).