Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-08-06 Thread Hongtao Liu
On Tue, Aug 6, 2019 at 11:02 PM Uros Bizjak wrote: > > On Tue, Aug 6, 2019 at 1:16 PM Rainer Orth > wrote: > > > > Hi Hongtao, > > > > > On Thu, Jun 27, 2019 at 5:38 PM Rainer Orth > > > wrote: > > >> > > >> Hi Hongtao, > > >> > > >> > On Thu, Jun 27, 2019 at 5:02 PM Rainer Orth > > >> > wrot

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-08-06 Thread Uros Bizjak
On Tue, Aug 6, 2019 at 1:16 PM Rainer Orth wrote: > > Hi Hongtao, > > > On Thu, Jun 27, 2019 at 5:38 PM Rainer Orth > > wrote: > >> > >> Hi Hongtao, > >> > >> > On Thu, Jun 27, 2019 at 5:02 PM Rainer Orth > >> > wrote: > >> >> > >> >> Hi Hongtao, > >> >> > >> >> >> as usual, the new effective-

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-08-06 Thread Rainer Orth
Hi Hongtao, > On Thu, Jun 27, 2019 at 5:38 PM Rainer Orth > wrote: >> >> Hi Hongtao, >> >> > On Thu, Jun 27, 2019 at 5:02 PM Rainer Orth >> > wrote: >> >> >> >> Hi Hongtao, >> >> >> >> >> as usual, the new effective-target keyword needs documenting in >> >> >> sourcebuild.texi. >> >> > Like thi

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-28 Thread Rainer Orth
Hi Hongtao, >> > Ok for trunk? >> >> ENOPATCH > Sorry, Here is the patch. > Changelog > > gcc/ > +2019-06-27 Hongtao Liu > + > + * doc/sourcebuild.texi (Effective-Target Keywords, Other > + hardware attributes): Document avx512vp2intersect. > + > > gcc/testsuite/ > +2019-06-27 Hongtao Liu >

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-27 Thread Hongtao Liu
On Thu, Jun 27, 2019 at 5:38 PM Rainer Orth wrote: > > Hi Hongtao, > > > On Thu, Jun 27, 2019 at 5:02 PM Rainer Orth > > wrote: > >> > >> Hi Hongtao, > >> > >> >> as usual, the new effective-target keyword needs documenting in > >> >> sourcebuild.texi. > >> > Like this? > >> > >> a couple of ni

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-27 Thread Rainer Orth
Hi Hongtao, > On Thu, Jun 27, 2019 at 5:02 PM Rainer Orth > wrote: >> >> Hi Hongtao, >> >> >> as usual, the new effective-target keyword needs documenting in >> >> sourcebuild.texi. >> > Like this? >> >> a couple of nits: first of all, your mailer seems to replace tabs by a >> single space. Ple

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-27 Thread Hongtao Liu
On Thu, Jun 27, 2019 at 5:02 PM Rainer Orth wrote: > > Hi Hongtao, > > >> as usual, the new effective-target keyword needs documenting in > >> sourcebuild.texi. > > Like this? > > a couple of nits: first of all, your mailer seems to replace tabs by a > single space. Please fix this or attach the

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-27 Thread Rainer Orth
Hi Hongtao, >> as usual, the new effective-target keyword needs documenting in >> sourcebuild.texi. > Like this? a couple of nits: first of all, your mailer seems to replace tabs by a single space. Please fix this or attach the patch instead. > Index: ChangeLog > ===

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-26 Thread Hongtao Liu
On Wed, Jun 26, 2019 at 6:14 PM Rainer Orth wrote: > > Hi Hongtao, > > > Index: testsuite/lib/target-supports.exp > > === > > --- testsuite/lib/target-supports.exp (revision 272667) > > +++ testsuite/lib/target-supports.exp (working

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-26 Thread Rainer Orth
Hi Hongtao, > Index: testsuite/lib/target-supports.exp > === > --- testsuite/lib/target-supports.exp (revision 272667) > +++ testsuite/lib/target-supports.exp (working copy) > @@ -7963,6 +7963,20 @@ > } "-mavx512bw" ] > } > > +#

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-26 Thread Hongtao Liu
On Wed, Jun 26, 2019 at 5:21 PM Martin Liška wrote: > > Hi. > > Started from r272668 I see: > > /tmp/ccqxwVjt.s: Assembler messages: > > /tmp/ccqxwVjt.s:22: Error: no such instruction: `vp2intersectq > .LC1(%rip),%zmm0,%k0' > > /tmp/ccqxwVjt.s:33: Error: no such instruction: `vp2intersectd > .LC

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-26 Thread Martin Liška
Hi. Started from r272668 I see: /tmp/ccqxwVjt.s: Assembler messages: /tmp/ccqxwVjt.s:22: Error: no such instruction: `vp2intersectq .LC1(%rip),%zmm0,%k0' /tmp/ccqxwVjt.s:33: Error: no such instruction: `vp2intersectd .LC3(%rip),%zmm0,%k0' compiler exited with status 1 FAIL: gcc.target/i386/a

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread Hongtao Liu
On Wed, Jun 26, 2019 at 1:13 AM Uros Bizjak wrote: > > On Tue, Jun 25, 2019 at 4:44 AM Hongtao Liu wrote: > > > > On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: > > > > > > On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: > > > > > > > > > > > > > > > >> > > +/* Register pair. */ > > > > > >

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread Uros Bizjak
On Tue, Jun 25, 2019 at 4:44 AM Hongtao Liu wrote: > > On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: > > > > On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: > > > > > > > > > > > > > >> > > +/* Register pair. */ > > > > > > > > > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 2); /* P2QI */

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread H.J. Lu
On Tue, Jun 25, 2019 at 7:55 AM Jeff Law wrote: > > On 6/25/19 8:34 AM, H.J. Lu wrote: > > On Tue, Jun 25, 2019 at 12:58 AM Uros Bizjak wrote: > >> > >> On 6/25/19, Hongtao Liu wrote: > >>> On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: > > On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread Jeff Law
On 6/25/19 8:34 AM, H.J. Lu wrote: > On Tue, Jun 25, 2019 at 12:58 AM Uros Bizjak wrote: >> >> On 6/25/19, Hongtao Liu wrote: >>> On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: > +/* Register pair. */ >>>

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread Richard Sandiford
"H.J. Lu" writes: > On Tue, Jun 25, 2019 at 12:58 AM Uros Bizjak wrote: >> >> On 6/25/19, Hongtao Liu wrote: >> > On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: >> >> >> >> On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: >> >> >> >> > > > > > > > > > >> > > +/* Register pair. */ >> >> > >

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread H.J. Lu
On Tue, Jun 25, 2019 at 12:58 AM Uros Bizjak wrote: > > On 6/25/19, Hongtao Liu wrote: > > On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: > >> > >> On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: > >> > >> > > > > > > > > > >> > > +/* Register pair. */ > >> > > > > > > > > > >> > > +VECTOR_

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-25 Thread Uros Bizjak
On 6/25/19, Hongtao Liu wrote: > On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: >> >> On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: >> >> > > > > > > > > > >> > > +/* Register pair. */ >> > > > > > > > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 2); /* P2QI >> > > > > > > > > > >> > > */

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-24 Thread Hongtao Liu
On Sat, Jun 22, 2019 at 3:38 PM Uros Bizjak wrote: > > On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: > > > > > > > > > > > >> > > +/* Register pair. */ > > > > > > > > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 2); /* P2QI */ > > > > > > > > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 4);

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-22 Thread Uros Bizjak
On Fri, Jun 21, 2019 at 8:38 PM H.J. Lu wrote: > > > > > > > > > >> > > +/* Register pair. */ > > > > > > > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 2); /* P2QI */ > > > > > > > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 4); /* P2HI P4QI */ > > > > > > > > > >> > > > > > > > > > > > >> >

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-21 Thread H.J. Lu
On Thu, Jun 20, 2019 at 11:51 PM Hongtao Liu wrote: > > On Fri, Jun 21, 2019 at 1:56 PM Uros Bizjak wrote: > > > > On Fri, Jun 21, 2019 at 4:21 AM Hongtao Liu wrote: > > > > > > On Thu, Jun 20, 2019 at 10:58 PM H.J. Lu wrote: > > > > > > > > On Thu, Jun 20, 2019 at 3:54 AM Hongtao Liu wrote: >

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-21 Thread Uros Bizjak
On Thu, Jun 20, 2019 at 4:58 PM H.J. Lu wrote: > > > > > >> > > +/* Register pair. */ > > > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 2); /* P2QI */ > > > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 4); /* P2HI P4QI */ > > > > > >> > > > > > > > >> > > I think > > > > > >> > > > > > > > >>

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-20 Thread Hongtao Liu
On Fri, Jun 21, 2019 at 1:56 PM Uros Bizjak wrote: > > On Fri, Jun 21, 2019 at 4:21 AM Hongtao Liu wrote: > > > > On Thu, Jun 20, 2019 at 10:58 PM H.J. Lu wrote: > > > > > > On Thu, Jun 20, 2019 at 3:54 AM Hongtao Liu wrote: > > > > > > > > On Thu, Jun 20, 2019 at 2:13 PM Uros Bizjak wrote: >

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-20 Thread Uros Bizjak
On Fri, Jun 21, 2019 at 4:21 AM Hongtao Liu wrote: > > On Thu, Jun 20, 2019 at 10:58 PM H.J. Lu wrote: > > > > On Thu, Jun 20, 2019 at 3:54 AM Hongtao Liu wrote: > > > > > > On Thu, Jun 20, 2019 at 2:13 PM Uros Bizjak wrote: > > > > > > > > On Thu, Jun 20, 2019 at 7:36 AM Hongtao Liu wrote: >

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-20 Thread Hongtao Liu
On Thu, Jun 20, 2019 at 7:37 PM Uros Bizjak wrote: > > On Thu, Jun 20, 2019 at 12:54 PM Hongtao Liu wrote: > > > > On Thu, Jun 20, 2019 at 2:13 PM Uros Bizjak wrote: > > > > > > On Thu, Jun 20, 2019 at 7:36 AM Hongtao Liu wrote: > > > > > > > > On Sat, Jun 8, 2019 at 4:12 AM Uros Bizjak wrote:

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-20 Thread Hongtao Liu
On Thu, Jun 20, 2019 at 10:58 PM H.J. Lu wrote: > > On Thu, Jun 20, 2019 at 3:54 AM Hongtao Liu wrote: > > > > On Thu, Jun 20, 2019 at 2:13 PM Uros Bizjak wrote: > > > > > > On Thu, Jun 20, 2019 at 7:36 AM Hongtao Liu wrote: > > > > > > > > On Sat, Jun 8, 2019 at 4:12 AM Uros Bizjak wrote: > >

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-20 Thread H.J. Lu
On Thu, Jun 20, 2019 at 3:54 AM Hongtao Liu wrote: > > On Thu, Jun 20, 2019 at 2:13 PM Uros Bizjak wrote: > > > > On Thu, Jun 20, 2019 at 7:36 AM Hongtao Liu wrote: > > > > > > On Sat, Jun 8, 2019 at 4:12 AM Uros Bizjak wrote: > > > > > > > > On 6/7/19, H.J. Lu wrote: > > > > > > > > >> > > +/

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-20 Thread Uros Bizjak
On Thu, Jun 20, 2019 at 12:54 PM Hongtao Liu wrote: > > On Thu, Jun 20, 2019 at 2:13 PM Uros Bizjak wrote: > > > > On Thu, Jun 20, 2019 at 7:36 AM Hongtao Liu wrote: > > > > > > On Sat, Jun 8, 2019 at 4:12 AM Uros Bizjak wrote: > > > > > > > > On 6/7/19, H.J. Lu wrote: > > > > > > > > >> > > +

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-20 Thread Hongtao Liu
On Thu, Jun 20, 2019 at 2:13 PM Uros Bizjak wrote: > > On Thu, Jun 20, 2019 at 7:36 AM Hongtao Liu wrote: > > > > On Sat, Jun 8, 2019 at 4:12 AM Uros Bizjak wrote: > > > > > > On 6/7/19, H.J. Lu wrote: > > > > > > >> > > +/* Register pair. */ > > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 2);

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-19 Thread Uros Bizjak
On Thu, Jun 20, 2019 at 7:36 AM Hongtao Liu wrote: > > On Sat, Jun 8, 2019 at 4:12 AM Uros Bizjak wrote: > > > > On 6/7/19, H.J. Lu wrote: > > > > >> > > +/* Register pair. */ > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 2); /* P2QI */ > > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 4); /* P2HI

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-19 Thread Hongtao Liu
On Sat, Jun 8, 2019 at 4:12 AM Uros Bizjak wrote: > > On 6/7/19, H.J. Lu wrote: > > >> > > +/* Register pair. */ > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 2); /* P2QI */ > >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 4); /* P2HI P4QI */ > >> > > > >> > > I think > >> > > > >> > > INT_MODE (P2QI,

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-07 Thread Uros Bizjak
On 6/7/19, H.J. Lu wrote: >> @@ -18702,9 +18705,16 @@ >>if (STACK_REGNO_P (regno)) >> return VALID_FP_MODE_P (mode); >>if (MASK_REGNO_P (regno)) >> -return (VALID_MASK_REG_MODE (mode) >> -|| (TARGET_AVX512BW >> - && VALID_MASK_AVX512BW_MODE (mode))); >> +{ >> + /* Re

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-07 Thread Uros Bizjak
On 6/7/19, H.J. Lu wrote: >> > > +/* Register pair. */ >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 2); /* P2QI */ >> > > +VECTOR_MODES_WITH_PREFIX (P, INT, 4); /* P2HI P4QI */ >> > > >> > > I think >> > > >> > > INT_MODE (P2QI, 16); >> > > INT_MODE (P2HI, 32); >> > > >> > > with the above subreg a

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-07 Thread H.J. Lu
On Fri, Jun 7, 2019 at 8:59 AM Uros Bizjak wrote: > > On Thu, Jun 6, 2019 at 7:54 AM Hongtao Liu wrote: > > > > Hi Uros and all: > > This patch is about to enable support for AVX512_VP2INTERSECT which will > > be in Willow Cove. There are two instructions for AVX512_VP2INTERSECT: > > VP2INTERSE

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-07 Thread H.J. Lu
On Fri, Jun 7, 2019 at 8:50 AM Uros Bizjak wrote: > > On Fri, Jun 7, 2019 at 5:05 PM H.J. Lu wrote: > > > > On Thu, Jun 6, 2019 at 5:26 AM Uros Bizjak wrote: > > > > > > On Thu, Jun 6, 2019 at 2:12 PM Uros Bizjak wrote: > > > > > > > > On Thu, Jun 6, 2019 at 7:54 AM Hongtao Liu wrote: > > > >

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-07 Thread Uros Bizjak
On Thu, Jun 6, 2019 at 7:54 AM Hongtao Liu wrote: > > Hi Uros and all: > This patch is about to enable support for AVX512_VP2INTERSECT which will > be in Willow Cove. There are two instructions for AVX512_VP2INTERSECT: > VP2INTERSECTD and VP2INTERSECTQ. More details please refer to > https://sof

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-07 Thread Uros Bizjak
On Fri, Jun 7, 2019 at 5:05 PM H.J. Lu wrote: > > On Thu, Jun 6, 2019 at 5:26 AM Uros Bizjak wrote: > > > > On Thu, Jun 6, 2019 at 2:12 PM Uros Bizjak wrote: > > > > > > On Thu, Jun 6, 2019 at 7:54 AM Hongtao Liu wrote: > > > > > > > > Hi Uros and all: > > > > This patch is about to enable su

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-07 Thread H.J. Lu
On Thu, Jun 6, 2019 at 5:26 AM Uros Bizjak wrote: > > On Thu, Jun 6, 2019 at 2:12 PM Uros Bizjak wrote: > > > > On Thu, Jun 6, 2019 at 7:54 AM Hongtao Liu wrote: > > > > > > Hi Uros and all: > > > This patch is about to enable support for AVX512_VP2INTERSECT which will > > > be in Willow Cove.

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-06 Thread Uros Bizjak
On Thu, Jun 6, 2019 at 2:12 PM Uros Bizjak wrote: > > On Thu, Jun 6, 2019 at 7:54 AM Hongtao Liu wrote: > > > > Hi Uros and all: > > This patch is about to enable support for AVX512_VP2INTERSECT which will > > be in Willow Cove. There are two instructions for AVX512_VP2INTERSECT: > > VP2INTERSE

Re: [PATCH] Enable GCC support for AVX512_VP2INTERSECT.

2019-06-06 Thread Uros Bizjak
On Thu, Jun 6, 2019 at 7:54 AM Hongtao Liu wrote: > > Hi Uros and all: > This patch is about to enable support for AVX512_VP2INTERSECT which will > be in Willow Cove. There are two instructions for AVX512_VP2INTERSECT: > VP2INTERSECTD and VP2INTERSECTQ. More details please refer to > https://sof