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: Implement vector average patterns for SVE2


Alejandro Martinez Vicente <Alejandro.MartinezVicente@arm.com> writes:
> Turns out I was missing a few bits and pieces. Here is the updated patch and changelog.
>
> Alejandro
>
>
> 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
>
> 	* config/aarch64/aarch64-c.c: Added TARGET_SVE2.
> 	* config/aarch64/aarch64-sve2.md: New file.
> 	(<u>avg<mode>3_floor): New pattern.
> 	(<u>avg<mode>3_ceil): Likewise.
> 	(*<sur>h<addsub><mode>): Likewise.
> 	* config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
> 	* config/aarch64/aarch64.md: Include aarch64-sve2.md.
>
>
> 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
>
> gcc/testsuite/
> 	* gcc.target/aarch64/sve2/aarch64-sve2.exp: New file, regression driver
> 	for AArch64 SVE2.
> 	* gcc.target/aarch64/sve2/average_1.c: New test.
> 	* lib/target-supports.exp (check_effective_target_aarch64_sve2): New
> 	helper.
> 	(check_effective_target_aarch64_sve1_only): Likewise.
> 	(check_effective_target_aarch64_sve2_hw): Likewise.
> 	(check_effective_target_vect_avg_qi): Check for SVE1 only.

OK, thanks.

We don't really need sve2_hw for this patch, but we will soon,
so might as well add it now.

Richard


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