public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/103316] PowerPC: Gimple folding of int128 comparisons produces suboptimal code
Date: Thu, 16 Jun 2022 08:59:57 +0000	[thread overview]
Message-ID: <bug-103316-4-ugbOHTpZZw@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-103316-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #17 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by HaoChen Gui <guihaoc@gcc.gnu.org>:

https://gcc.gnu.org/g:8d1c6e7038b0c281ac2678f2f615806a7aac9174

commit r13-1131-g8d1c6e7038b0c281ac2678f2f615806a7aac9174
Author: Haochen Gui <guihaoc@gcc.gnu.org>
Date:   Mon May 30 09:12:34 2022 +0800

    rs6000: add V1TI into vector comparison expand [PR103316]

    This patch adds V1TI mode into a new mode iterator used in vector
comparison,shift and rotation expands.  It also merges some vector comparison,
shift and rotation expands for V1T1 and other vector integer modes as they have
the similar patterns.  The expands for V1TI only are removed.

    gcc/
            PR target/103316
            * config/rs6000/rs6000-builtin.cc (rs6000_gimple_fold_builtin):
Enable
            gimple folding for RS6000_BIF_VCMPEQUT, RS6000_BIF_VCMPNET,
            RS6000_BIF_CMPGE_1TI, RS6000_BIF_CMPGE_U1TI, RS6000_BIF_VCMPGTUT,
            RS6000_BIF_VCMPGTST, RS6000_BIF_CMPLE_1TI, RS6000_BIF_CMPLE_U1TI.
            * config/rs6000/vector.md (VEC_IC): New mode iterator.  Add support
            for new Power10 V1TI instructions.
            (vec_cmp<mode><mode>): Set mode iterator to VEC_IC.
            (vec_cmpu<mode><mode>): Likewise.
            (vector_nlt<mode>): Set mode iterator to VEC_IC.
            (vector_nltv1ti): Remove.
            (vector_gtu<mode>): Set mode iterator to VEC_IC.
            (vector_gtuv1ti): Remove.
            (vector_nltu<mode>): Set mode iterator to VEC_IC.
            (vector_nltuv1ti): Remove.
            (vector_geu<mode>): Set mode iterator to VEC_IC.
            (vector_ngt<mode>): Likewise.
            (vector_ngtv1ti): Remove.
            (vector_ngtu<mode>): Set mode iterator to VEC_IC.
            (vector_ngtuv1ti): Remove.
            (vector_gtu_<mode>_p): Set mode iterator to VEC_IC.
            (vector_gtu_v1ti_p): Remove.
            (vrotl<mode>3): Set mode iterator to VEC_IC.  Emit insns for V1TI.
            (vrotlv1ti3): Remove.
            (vashr<mode>3): Set mode iterator to VEC_IC.  Emit insns for V1TI.
            (vashrv1ti3): Remove.

    gcc/testsuite/
            PR target/103316
            * gcc.target/powerpc/pr103316.c: New.
            * gcc.target/powerpc/fold-vec-cmp-int128.c: New.

  parent reply	other threads:[~2022-06-16  8:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-18 15:59 [Bug target/103316] New: " wschmidt at gcc dot gnu.org
2021-11-18 16:00 ` [Bug target/103316] " wschmidt at gcc dot gnu.org
2021-11-19  7:35 ` rguenth at gcc dot gnu.org
2021-11-19  8:19 ` segher at gcc dot gnu.org
2021-11-19 13:53 ` wschmidt at gcc dot gnu.org
2021-11-19 13:54 ` wschmidt at gcc dot gnu.org
2021-11-19 14:07 ` wschmidt at gcc dot gnu.org
2021-11-19 14:12 ` segher at gcc dot gnu.org
2021-11-19 14:19 ` rguenth at gcc dot gnu.org
2021-11-19 14:21 ` segher at gcc dot gnu.org
2021-11-19 14:23 ` segher at gcc dot gnu.org
2021-11-19 17:09 ` wschmidt at gcc dot gnu.org
2021-11-19 17:11 ` wschmidt at gcc dot gnu.org
2021-11-19 17:34 ` segher at gcc dot gnu.org
2021-11-19 17:36 ` segher at gcc dot gnu.org
2021-11-19 17:42 ` wschmidt at gcc dot gnu.org
2022-03-07  2:24 ` guihaoc at gcc dot gnu.org
2022-03-07 20:07 ` segher at gcc dot gnu.org
2022-06-16  8:59 ` cvs-commit at gcc dot gnu.org [this message]
2022-06-16  9:02 ` guihaoc 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-103316-4-ugbOHTpZZw@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).