From: Andreas Krebbel <krebbel@linux.ibm.com>
To: Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>,
gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] s390: Reduce number of patterns where the condition is false anyway
Date: Thu, 9 Nov 2023 09:28:15 +0100 [thread overview]
Message-ID: <932767ac-6173-42b8-3723-76ab18752a92@linux.ibm.com> (raw)
In-Reply-To: <20231109082409.2890-1-stefansf@linux.ibm.com>
On 11/9/23 09:24, Stefan Schulze Frielinghaus wrote:
> For patterns which make use of two modes, do not build the cross product
> and then exclude illegal combinations via conditions but rather do not
> create those in the first place. Here we are following the idea of the
> attribute TOINTVEC/tointvec and introduce TOINT/toint.
>
> Bootstrapped and regtested on s390. Ok for mainline?
>
> gcc/ChangeLog:
>
> * config/s390/s390.md (VX_CONV_INT): Remove iterator.
> (gf): Add float mappings.
> (TOINT, toint): New attribute.
> (*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13):
> Remove.
> (*fixuns_trunc<mode><toint>2_z13): Add.
> (*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13):
> Remove.
> (*fix_trunc<mode><toint>2_bfp_z13): Add.
> (*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13): Remove.
> (*floatuns<toint><mode>2_z13): Add.
> * config/s390/vector.md (VX_VEC_CONV_INT): Remove iterator.
> (float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2): Remove.
> (float<tointvec><mode>2): Add.
> (floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2): Remove.
> (floatuns<tointvec><mode>2): Add.
> (fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2):
> Remove.
> (fix_trunc<mode><tointvec>2): Add.
> (fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2):
> Remove.
> (fixuns_trunc<VX_VEC_CONV_BFP:mode><tointvec>2): Add.
Ok, thanks!
Andreas
prev parent reply other threads:[~2023-11-09 8:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-09 8:24 Stefan Schulze Frielinghaus
2023-11-09 8:28 ` Andreas Krebbel [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=932767ac-6173-42b8-3723-76ab18752a92@linux.ibm.com \
--to=krebbel@linux.ibm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=stefansf@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).