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/101846] Improve __builtin_shufflevector emitted code
Date: Mon, 16 Aug 2021 07:30:03 +0000	[thread overview]
Message-ID: <bug-101846-4-0SDg8gkLYz@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101846-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:

https://gcc.gnu.org/g:faf2b6bc527dff31725dde5538ffff1c92688047

commit r12-2919-gfaf2b6bc527dff31725dde5538ffff1c92688047
Author: liuhongt <hongtao.liu@intel.com>
Date:   Mon Aug 16 11:16:52 2021 +0800

    Optimize __builtin_shuffle_vector.

    1. Support vpermw/vpermb in ix86_expand_vec_one_operand_perm_avx512.
    2. Support 256/128-bits vpermi2b ix86_expand_vec_perm_vpermt2.
    3. Add define_insn_and_split to optimize specific vector permutation to
opmov{dw,wb,qd}.

    gcc/ChangeLog:

            PR target/101846
            * config/i386/i386-expand.c (ix86_expand_vec_perm_vpermt2):
            Support vpermi2b for V32QI/V16QImode.
            (ix86_extract_perm_from_pool_constant): New function.
            (ix86_expand_vec_one_operand_perm_avx512): Support
            vpermw/vpermb under TARGET_AVX512BW/TARGET_AVX512VBMI.
            (expand_vec_perm_1): Adjust comments for upper.
            * config/i386/i386-protos.h (ix86_extract_perm_from_pool_constant):
            New declare.
            * config/i386/predicates.md (permvar_truncate_operand): New
predicate.
            (pshufb_truncv4siv4hi_operand): Ditto.
            (pshufb_truncv8hiv8qi_operand): Ditto.
            * config/i386/sse.md (*avx512bw_permvar_truncv16siv16hi_1):
            New pre_reload define_insn_and_split.
            (*avx512f_permvar_truncv8siv8hi_1): Ditto.
            (*avx512f_vpermvar_truncv8div8si_1): Ditto.
            (*avx512f_permvar_truncv32hiv32qi_1): Ditto.
            (*avx512f_permvar_truncv16hiv16qi_1): Ditto.
            (*avx512f_permvar_truncv4div4si_1): Ditto.
            (*avx512f_pshufb_truncv8hiv8qi_1): Ditto.
            (*avx512f_pshufb_truncv4siv4hi_1): Ditto.
            (*avx512f_pshufd_truncv2div2si_1): Ditto.

    gcc/testsuite/ChangeLog:

            PR target/101846
            * gcc.target/i386/pr101846-2.c: New test.
            * gcc.target/i386/pr101846-3.c: New test.
            * gcc.target/i386/pr101846-4.c: New test.

  parent reply	other threads:[~2021-08-16  7:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-10 13:14 [Bug target/101846] New: " jakub at gcc dot gnu.org
2021-08-10 14:30 ` [Bug target/101846] " rguenth at gcc dot gnu.org
2021-08-11  3:35 ` crazylht at gmail dot com
2021-08-12  1:53 ` crazylht at gmail dot com
2021-08-12  1:55 ` crazylht at gmail dot com
2021-08-12  6:03 ` cvs-commit at gcc dot gnu.org
2021-08-16  7:30 ` cvs-commit at gcc dot gnu.org [this message]
2021-12-15  1:50 ` pinskia at gcc dot gnu.org
2021-12-15  1:52 ` pinskia at gcc dot gnu.org
2021-12-15  3:25 ` crazylht at gmail dot com
2021-12-15 11:26 ` jakub 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-101846-4-0SDg8gkLYz@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).