This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix up vpshufb for -mavx512vl -mno-avx512bw
- From: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Uros Bizjak <ubizjak at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 18 May 2016 11:51:06 +0300
- Subject: Re: [PATCH] Fix up vpshufb for -mavx512vl -mno-avx512bw
- Authentication-results: sourceware.org; auth=none
- References: <20160513171748 dot GR28550 at tucnak dot redhat dot com>
On 13 May 19:17, Jakub Jelinek wrote:
> Hi!
>
> vpshufb is AVX512BW & AVX512VL insn, so we shouldn't allow it for
> AVX512VL only.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2016-05-13 Jakub Jelinek <jakub@redhat.com>
>
> * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
> constraint x instead of v in second alternative, add avx512bw
> alternative.
>
> * gcc.target/i386/avx512vl-vpshufb-3.c: New test.
> * gcc.target/i386/avx512bw-vpshufb-3.c: New test.
OK.
--
Thanks, K