Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction

2024-10-08 Thread Richard Sandiford
; >> Pengxuan Zheng (QUIC) >> Subject: Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE >> instruction >> >> >> >> > On 3 Oct 2024, at 16:41, Richard Sandiford >> wrote: >> > >> > External email: Use caution opening lin

RE: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction

2024-10-04 Thread Tamar Christina
fafcb5e0174c56205ec05406c9a412196ae93d3 Mon Sep 17 00:00:00 > 2001 > >> From: Soumya AR > >> Date: Thu, 3 Oct 2024 11:53:07 +0530 > >> Subject: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE > >> instruction > >> > >> This pat

Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction

2024-10-03 Thread Kyrylo Tkachov
24 11:53:07 +0530 >> Subject: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction >> >> This patch uses the FSCALE instruction provided by SVE to implement the >> standard ldexp family of functions. >> >> Currently, with '-Ofast -mcpu

Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction

2024-10-03 Thread Richard Sandiford
Soumya AR writes: > From 7fafcb5e0174c56205ec05406c9a412196ae93d3 Mon Sep 17 00:00:00 2001 > From: Soumya AR > Date: Thu, 3 Oct 2024 11:53:07 +0530 > Subject: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction > > This patch uses the FSCALE instruction

Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction

2024-10-03 Thread Soumya AR
;> To: Soumya AR >> Cc: gcc-patches@gcc.gnu.org; Richard Sandiford >> Subject: Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE >> instruction >> >> Hi Soumya >> >>> On 30 Sep 2024, at 18:26, Soumya AR wrote: >>> >>> Ex

Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction

2024-10-02 Thread Soumya AR
Hi Saurabh, > On 30 Sep 2024, at 10:36 PM, Saurabh Jha wrote: > > External email: Use caution opening links or attachments > > > Hi Soumya, > > Thank you for the patch. Two clarifications: > > In the instruction pattern's output string, why did you add the 'Z' > prefix before operands? (%0 -

RE: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction

2024-10-01 Thread Tamar Christina
Hi Soumya, Nice patch! > -Original Message- > From: Kyrylo Tkachov > Sent: Tuesday, October 1, 2024 7:55 AM > To: Soumya AR > Cc: gcc-patches@gcc.gnu.org; Richard Sandiford > Subject: Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE > instruction >

Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction

2024-10-01 Thread Kyrylo Tkachov
7:55 AM >> To: Soumya AR >> Cc: gcc-patches@gcc.gnu.org; Richard Sandiford >> Subject: Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE >> instruction >> >> Hi Soumya >> >>> On 30 Sep 2024, at 18:26, Soumya AR wrote: >>> >>

Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction

2024-09-30 Thread Kyrylo Tkachov
Hi Soumya > On 30 Sep 2024, at 18:26, Soumya AR wrote: > > External email: Use caution opening links or attachments > > > This patch uses the FSCALE instruction provided by SVE to implement the > standard ldexp family of functions. > > Currently, with '-Ofast -mcpu=neoverse-v2', GCC generates

Re: [PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction

2024-09-30 Thread Saurabh Jha
Hi Soumya, Thank you for the patch. Two clarifications: In the instruction pattern's output string, why did you add the 'Z' prefix before operands? (%0 -> %Z0). Also, maybe you can make your test cases more precise by specifying which functions generate which instructions. I don't have and S

[PATCH] aarch64: Optimise calls to ldexp with SVE FSCALE instruction

2024-09-30 Thread Soumya AR
This patch uses the FSCALE instruction provided by SVE to implement the standard ldexp family of functions. Currently, with '-Ofast -mcpu=neoverse-v2', GCC generates libcalls for the following code: float test_ldexpf (float x, int i) { return __builtin_ldexpf (x, i); } double test_ldexp