public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Hongtao Liu <crazylht@gmail.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH][AVX512] Optimize vpexpand* to mask mov when mask have all ones in it's lower part (including 0 and -1).
Date: Wed, 12 May 2021 15:28:57 +0800	[thread overview]
Message-ID: <CAMZc-bw6sx_Ty3Zahv2-Y3HMA3JRuAgGDxTacDRbBjas2MLPCw@mail.gmail.com> (raw)
In-Reply-To: <CAMZc-bymv8-Bixr8NA7z7nH3KTxt8uJ6qo57igAGkH-jjh49VA@mail.gmail.com>

ping

On Fri, Apr 30, 2021 at 12:49 PM Hongtao Liu <crazylht@gmail.com> wrote:
>
> Hi:
>   For v{,p}expand* When mask is 0, -1, or has all all one bits in its
> lower part, it can be optimized to simple mov or mask mov.
>   Bootstrapped and regtested on x86_64-linux-gnu{-m32,}  and
> x86_64-linux-gnu{m32\ -march=cascadelake,-m64\ -march=cascadelake},
>
> gcc/ChangeLog:
>
>         * config/i386/i386-builtin.def (BDESC): Adjust builtin name.
>         * config/i386/sse.md (<avx512>_expand<mode>_mask): Rename to ..
>         (expand<mode>_mask): this ..
>         (*expand<mode>_mask): New pre_reload splitter to transform
>         * v{,p}expand* to vmov* when mask is zero, all ones, or has
>         all ones in its lower part, otherwise still generate v{,p}expand*.
>
> gcc/testsuite/ChangeLog:
>
>         * gcc.target/i386/avx512bw-pr100267-1.c: New test.
>         * gcc.target/i386/avx512bw-pr100267-b-2.c: New test.
>         * gcc.target/i386/avx512bw-pr100267-d-2.c: New test.
>         * gcc.target/i386/avx512bw-pr100267-q-2.c: New test.
>         * gcc.target/i386/avx512bw-pr100267-w-2.c: New test.
>         * gcc.target/i386/avx512f-pr100267-1.c: New test.
>         * gcc.target/i386/avx512f-pr100267-pd-2.c: New test.
>         * gcc.target/i386/avx512f-pr100267-ps-2.c: New test.
>         * gcc.target/i386/avx512vl-pr100267-1.c: New test.
>         * gcc.target/i386/avx512vl-pr100267-pd-2.c: New test.
>         * gcc.target/i386/avx512vl-pr100267-ps-2.c: New test.
>         * gcc.target/i386/avx512vlbw-pr100267-1.c: New test.
>         * gcc.target/i386/avx512vlbw-pr100267-b-2.c: New test.
>         * gcc.target/i386/avx512vlbw-pr100267-d-2.c: New test.
>         * gcc.target/i386/avx512vlbw-pr100267-q-2.c: New test.
>         * gcc.target/i386/avx512vlbw-pr100267-w-2.c: New test.



-- 
BR,
Hongtao

  reply	other threads:[~2021-05-12  7:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-30  4:42 [PATCH][AVX512] Fix ICE for vpexpand* Hongtao Liu
2021-04-30  4:49 ` [PATCH][AVX512] Optimize vpexpand* to mask mov when mask have all ones in it's lower part (including 0 and -1) Hongtao Liu
2021-05-12  7:28   ` Hongtao Liu [this message]
2021-06-21 11:46     ` Hongtao Liu
2021-05-12  7:29 ` [PATCH][AVX512] Fix ICE for vpexpand* Hongtao Liu
2021-06-21 11:24   ` Hongtao Liu

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=CAMZc-bw6sx_Ty3Zahv2-Y3HMA3JRuAgGDxTacDRbBjas2MLPCw@mail.gmail.com \
    --to=crazylht@gmail.com \
    --cc=gcc-patches@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).