From: Andreas Krebbel <krebbel@linux.ibm.com>
To: Robin Dapp <rdapp@linux.ibm.com>, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] s390: Recognize reverse/element swap permute patterns.
Date: Mon, 22 Aug 2022 17:24:24 +0200 [thread overview]
Message-ID: <c2016e82-3028-0e81-7828-d78dc1bb3737@linux.ibm.com> (raw)
In-Reply-To: <60e4c7a3-3eeb-8b5e-8ab4-ffc4b8340729@linux.ibm.com>
On 8/22/22 17:10, Robin Dapp wrote:
> Hi,
>
> after discussing off-list, here is v2 of the patch. We now recognize if
> the permutation mask only refers to the first or the second operand and
> use this later when emitting vpdi.
>
> Regtested and bootstrapped, no regressions.
>
> Is it OK?
>
> Regards
> Robin
>
> From 1f11a6b89c9b0ad64b480229cd4db06eaaaa887a Mon Sep 17 00:00:00 2001
> From: Robin Dapp <rdapp@linux.ibm.com>
> Date: Fri, 24 Jun 2022 15:17:08 +0200
> Subject: [PATCH v2] s390: Recognize reverse/element swap permute patterns.
>
> This adds functions to recognize reverse/element swap permute patterns
> for vler, vster as well as vpdi and rotate.
>
> gcc/ChangeLog:
>
> * config/s390/s390.cc (expand_perm_with_vpdi): Recognize swap pattern.
> (is_reverse_perm_mask): New function.
> (expand_perm_with_rot): Recognize reverse pattern.
> (expand_perm_with_vstbrq): New function.
> (expand_perm_with_vster): Use vler/vster for element reversal on z15.
> (vectorize_vec_perm_const_1): Use.
> (s390_vectorize_vec_perm_const): Add expand functions.
> * config/s390/vx-builtins.md: Prefer vster over vler.
>
> gcc/testsuite/ChangeLog:
>
> * gcc.target/s390/vector/vperm-rev-z14.c: New test.
> * gcc.target/s390/vector/vperm-rev-z15.c: New test.
> * gcc.target/s390/zvector/vec-reve-store-byte.c: Adjust test
> expectation.
Ok, thanks!
Andreas
next prev parent reply other threads:[~2022-08-22 15:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-12 10:57 Robin Dapp
2022-08-22 15:10 ` Robin Dapp
2022-08-22 15:24 ` Andreas Krebbel [this message]
2022-08-31 7:54 ` Robin Dapp
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=c2016e82-3028-0e81-7828-d78dc1bb3737@linux.ibm.com \
--to=krebbel@linux.ibm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=rdapp@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).