RE: [PATCH] Support logic shift left/right for avx512 mask type.

2021-07-21 Thread Richard Biener
On Thu, 22 Jul 2021, Liu, Hongtao wrote: > > > >-Original Message- > >From: Uros Bizjak > >Sent: Wednesday, July 21, 2021 4:23 PM > >To: Hongtao Liu > >Cc: Liu, Hongtao ; gcc-patches@gcc.gnu.org; H. J. Lu > >; Richard Biener > >Subject

RE: [PATCH] Support logic shift left/right for avx512 mask type.

2021-07-21 Thread Liu, Hongtao via Gcc-patches
>-Original Message- >From: Uros Bizjak >Sent: Wednesday, July 21, 2021 4:23 PM >To: Hongtao Liu >Cc: Liu, Hongtao ; gcc-patches@gcc.gnu.org; H. J. Lu >; Richard Biener >Subject: Re: [PATCH] Support logic shift left/right for avx512 mask type. > >On Wed, Jul

Re: [PATCH] Support logic shift left/right for avx512 mask type.

2021-07-21 Thread Uros Bizjak via Gcc-patches
On Wed, Jul 21, 2021 at 5:05 AM Hongtao Liu wrote: > > On Tue, Jul 20, 2021 at 9:41 PM Uros Bizjak wrote: > > > > On Tue, Jul 20, 2021 at 2:33 PM liuhongt wrote: > > > > > > Hi: > > > As mention in > > > https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575420.html > > > > > > cut start

Re: [PATCH] Support logic shift left/right for avx512 mask type.

2021-07-20 Thread Hongtao Liu via Gcc-patches
iff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md > > index ab29999023d..f8759e4d758 100644 > > --- a/gcc/config/i386/sse.md > > +++ b/gcc/config/i386/sse.md > > @@ -1755,6 +1755,20 @@ (define_insn "k" > > (set_attr "prefix" "

Re: [PATCH] Support logic shift left/right for avx512 mask type.

2021-07-20 Thread Uros Bizjak via Gcc-patches
On Tue, Jul 20, 2021 at 2:33 PM liuhongt wrote: > > Hi: > As mention in > https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575420.html > > cut start- > > note for the lowpart we can just view-convert away the excess bits, > > fully re-using the mask. We generate surprisingly "good"

[PATCH] Support logic shift left/right for avx512 mask type.

2021-07-20 Thread liuhongt via Gcc-patches
Hi: As mention in https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575420.html cut start- > note for the lowpart we can just view-convert away the excess bits, > fully re-using the mask. We generate surprisingly "good" code: > > kmovb %k1, %edi > shrb$4, %dil >