This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix up vec_set_* for -mavx512vl -mno-avx512dq


Hello,
On 18 May 23:03, Jakub Jelinek wrote:
> Hi!
> 
> The vinsert[if]64x2 instructions are AVX512VL & AVX512DQ, so
> if only AVX512VL is on, we should emit the other insns - 32x4,
> which without masking do the same thing.
> With masking, we have to require TARGET_AVX512DQ.
> 
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
OK.
> 
> 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* config/i386/sse.md (vec_set_lo_<mode><mask_name>,
> 	vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
> 	condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
> 	of 64x2.
> 
> 	* gcc.target/i386/avx512dq-vinsert-1.c: New test.
> 	* gcc.target/i386/avx512vl-vinsert-1.c: New test.

--
Thanks, K


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]