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/91103] AVX512 vector element extract uses more than 1 shuffle instruction; VALIGND can grab any element
Date: Thu, 09 Sep 2021 01:33:50 +0000	[thread overview]
Message-ID: <bug-91103-4-gRXco46Z4P@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-91103-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #7 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:60eec23b5eda0f350e572586eee738eab0804a74

commit r12-3425-g60eec23b5eda0f350e572586eee738eab0804a74
Author: liuhongt <hongtao.liu@intel.com>
Date:   Wed Sep 8 16:19:37 2021 +0800

    Optimize vec_extract for 256/512-bit vector when index exceeds the lower
128 bits.

    -       vextracti32x8   $0x1, %zmm0, %ymm0
    -       vmovd   %xmm0, %eax
    +       valignd $8, %zmm0, %zmm0, %zmm1
    +       vmovd   %xmm1, %eax

    -       vextracti32x8   $0x1, %zmm0, %ymm0
    -       vextracti128    $0x1, %ymm0, %xmm0
    -       vpextrd $3, %xmm0, %eax
    +       valignd $15, %zmm0, %zmm0, %zmm1
    +       vmovd   %xmm1, %eax

    -       vextractf64x2   $0x1, %ymm0, %xmm0
    +       valignq $2, %ymm0, %ymm0, %ymm0

    -       vextractf64x4   $0x1, %zmm0, %ymm0
    -       vextractf64x2   $0x1, %ymm0, %xmm0
    -       vunpckhpd       %xmm0, %xmm0, %xmm0
    +       valignq $7, %zmm0, %zmm0, %zmm0

    gcc/ChangeLog:

            PR target/91103
            * config/i386/sse.md
(*vec_extract<mode><ssescalarmodelower>_valign):
            New define_insn.

    gcc/testsuite/ChangeLog:

            PR target/91103
            * gcc.target/i386/pr91103-1.c: New test.
            * gcc.target/i386/pr91103-2.c: New test.

  parent reply	other threads:[~2021-09-09  1:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-91103-4@http.gcc.gnu.org/bugzilla/>
2021-09-05  4:32 ` pinskia at gcc dot gnu.org
2021-09-08 10:13 ` crazylht at gmail dot com
2021-09-09  1:33 ` cvs-commit at gcc dot gnu.org [this message]
2021-09-09  1:35 ` crazylht at gmail dot com
2021-09-11  7:54 ` peter at cordes dot ca
2021-09-13  1:16 ` crazylht at gmail dot com
2021-09-15  8:38 ` cvs-commit at gcc dot gnu.org
2023-07-12 11:20 ` rguenth 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-91103-4-gRXco46Z4P@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).