Re: [PATCH] aarch64: Use SVE SUBR instruction with Neon modes

2024-11-15 Thread Richard Sandiford
Kyrylo Tkachov writes: >> On 15 Nov 2024, at 10:20, Andrew Pinski wrote: >> >> On Thu, Nov 14, 2024 at 7:50 PM Soumya AR wrote: >>> >>> The SVE SUBR instruction performs a reversed subtract from an immediate. >>> >>> This patches enables the emission of SUBR for Neon modes and avoids the >>>

Re: [PATCH] aarch64: Use SVE SUBR instruction with Neon modes

2024-11-15 Thread Andrew Pinski
On Thu, Nov 14, 2024 at 7:50 PM Soumya AR wrote: > > The SVE SUBR instruction performs a reversed subtract from an immediate. > > This patches enables the emission of SUBR for Neon modes and avoids the need > to > materialise an explicit constant. > > For example, the below test case: > > typedef

[PATCH] aarch64: Use SVE SUBR instruction with Neon modes

2024-11-14 Thread Soumya AR
The SVE SUBR instruction performs a reversed subtract from an immediate. This patches enables the emission of SUBR for Neon modes and avoids the need to materialise an explicit constant. For example, the below test case: typedef long long __attribute__ ((vector_size (16))) v2di; v2di subr_v2di