public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Edelsohn <dje.gcc@gmail.com>
To: "Kewen.Lin" <linkw@linux.ibm.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
	Bill Schmidt <wschmidt@linux.ibm.com>,
	 Segher Boessenkool <segher@kernel.crashing.org>
Subject: Re: PING^2 [PATCH v2] rs6000: Use direct move for char/short vector CTOR [PR96933]
Date: Mon, 2 Nov 2020 08:44:31 -0500	[thread overview]
Message-ID: <CAGWvnym=Sos=KYuzwWhjyMMSbAOw0kc1wzexnhgP3=6SoMpGFA@mail.gmail.com> (raw)
In-Reply-To: <dd449fc2-5d03-020c-6c59-30af6e86518f@linux.ibm.com>

On Mon, Nov 2, 2020 at 4:11 AM Kewen.Lin <linkw@linux.ibm.com> wrote:

> >> Hi,
> >>
> >> As Segher's suggestion in the PR, for 128bit_direct_move, this new
> >> version leverages vector pack insns instead of vector perms with
> >> one control vector.  The performance evaluation shows that it's on
> >> par with the previous version for char, while it's better than the
> >> previous for short.
> >>
> >> Bootstrapped/regtested again on powerpc64{,le}-linux-gnu P8 and
> >> powerpc64le-linux-gnu P9.
> >>
> >> Is it ok for trunk?

The patch looks fine to me, but I'll let Segher decide if it addresses
his requested changes.

I'm trying to be stricter about the test cases.

+++ b/gcc/testsuite/gcc.target/powerpc/pr96933-1.c
@@ -0,0 +1,14 @@
+/* { dg-do compile { target { lp64 && has_arch_pwr9 } } } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-options "-O2" } */

Why does this test has_arch_pwr9 instead of adding -mdejagnu-cpu=power9?

+++ b/gcc/testsuite/gcc.target/powerpc/pr96933-2.c
@@ -0,0 +1,14 @@
+/* { dg-do compile { target powerpc_p8vector_ok } } */
+/* { dg-options "-O2 -mdejagnu-cpu=power8" } */

Please place powerpc_p8vector_ok on a separate dg-require-effective-target line.

+++ b/gcc/testsuite/gcc.target/powerpc/pr96933-3.c
@@ -0,0 +1,63 @@
+/* { dg-do run } */
+/* { dg-require-effective-target p8vector_hw } */
+/* { dg-options "-O2" } */

Doesn't this need -mdejagnu-cpu=power8?

Thanks, David

  reply	other threads:[~2020-11-02 13:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-08  7:55 [PATCH] " Kewen.Lin
2020-09-10  3:19 ` [PATCH v2] " Kewen.Lin
2020-10-13  6:59   ` PING^1 " Kewen.Lin
2020-11-02  9:11     ` PING^2 " Kewen.Lin
2020-11-02 13:44       ` David Edelsohn [this message]
2020-11-03  7:25         ` [PATCH v3] " Kewen.Lin
2020-11-03 16:45           ` Segher Boessenkool
2020-11-05  8:27             ` Kewen.Lin

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='CAGWvnym=Sos=KYuzwWhjyMMSbAOw0kc1wzexnhgP3=6SoMpGFA@mail.gmail.com' \
    --to=dje.gcc@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=linkw@linux.ibm.com \
    --cc=segher@kernel.crashing.org \
    --cc=wschmidt@linux.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).