[PATCH] [PR target/97194] [AVX2] Support variable index vec_set.

Jeff Law law@redhat.com
Wed Nov 25 19:15:12 GMT 2020



On 11/11/20 1:03 AM, Hongtao Liu via Gcc-patches wrote:

>
>
>
> vec_set_rebaserebase_onr11-4901.patch
>
> From c9d684c37b5f79f68f938f39eeb9e7989b10302d Mon Sep 17 00:00:00 2001
> From: liuhongt <hongtao.liu@intel.com>
> Date: Mon, 19 Oct 2020 16:04:39 +0800
> Subject: [PATCH] Support variable index vec_set.
>
> gcc/ChangeLog:
>
> 	PR target/97194
> 	* config/i386/i386-expand.c (ix86_expand_vector_set_var): New function.
> 	* config/i386/i386-protos.h (ix86_expand_vector_set_var): New Decl.
> 	* config/i386/predicates.md (vec_setm_operand): New predicate,
> 	true for const_int_operand or register_operand under TARGET_AVX2.
> 	* config/i386/sse.md (vec_set<mode>): Support both constant
> 	and variable index vec_set.
>
> gcc/testsuite/ChangeLog:
>
> 	* gcc.target/i386/avx2-vec-set-1.c: New test.
> 	* gcc.target/i386/avx2-vec-set-2.c: New test.
> 	* gcc.target/i386/avx512bw-vec-set-1.c: New test.
> 	* gcc.target/i386/avx512bw-vec-set-2.c: New test.
> 	* gcc.target/i386/avx512f-vec-set-2.c: New test.
> 	* gcc.target/i386/avx512vl-vec-set-2.c: New test.
This is OK.  Sorry for the delays.

jeff



More information about the Gcc-patches mailing list