Re: [PATCH]AArch64 Make use of FADDP in simple reductions.

2021-11-01 Thread Richard Sandiford via Gcc-patches
Tamar Christina writes: >> -Original Message- >> From: Richard Sandiford >> Sent: Friday, October 8, 2021 5:24 PM >> To: Tamar Christina >> Cc: gcc-patches@gcc.gnu.org; nd ; Richard Earnshaw >> ; Marcus Shawcroft >> ; Kyrylo Tkachov >>

RE: [PATCH]AArch64 Make use of FADDP in simple reductions.

2021-11-01 Thread Tamar Christina via Gcc-patches
> -Original Message- > From: Richard Sandiford > Sent: Friday, October 8, 2021 5:24 PM > To: Tamar Christina > Cc: gcc-patches@gcc.gnu.org; nd ; Richard Earnshaw > ; Marcus Shawcroft > ; Kyrylo Tkachov > Subject: Re: [PATCH]AArch64 Make use of FADDP in simpl

Re: [PATCH]AArch64 Make use of FADDP in simple reductions.

2021-10-08 Thread Richard Sandiford via Gcc-patches
Tamar Christina writes: > Hi All, > > This is a respin of an older patch which never got upstream reviewed by a > maintainer. It's been updated to fit the current GCC codegen. > > This patch adds a pattern to support the (F)ADDP (scalar) instruction. > > Before the patch, the C code > > typedef f

RE: [PATCH]AArch64 Make use of FADDP in simple reductions.

2021-09-08 Thread Tamar Christina via Gcc-patches
000000000000..b24484da50cd972fe79fca6ecefdc0dbccb16bd5 --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/simd/scalar_faddp2.c @@ -0,0 +1,14 @@ +/* { dg-do assemble } */ +/* { dg-additional-options "-save-temps -O1 -w" } */ + +typedef __m128i __attribute__((__vector_size__(2 * sizeo

[PATCH]AArch64 Make use of FADDP in simple reductions.

2021-09-01 Thread Tamar Christina via Gcc-patches
Hi All, This is a respin of an older patch which never got upstream reviewed by a maintainer. It's been updated to fit the current GCC codegen. This patch adds a pattern to support the (F)ADDP (scalar) instruction. Before the patch, the C code typedef float v4sf __attribute__((vector_size (16)

Re: [PATCH][AArch64] Make use of FADDP in simple reductions

2019-05-30 Thread Sudakshina Das
Hi Elen Thank you for doing this. You will need a maintainer's approval but I would like to add a couple of comments. Please find them inline. On 08/05/2019 14:36, Elen Kalda wrote: > Hi, > > This patch adds a pattern to support the FADDP (scalar) instruction. > > Before the patch, the C code

[PATCH][AArch64] Make use of FADDP in simple reductions

2019-05-08 Thread Elen Kalda
Hi, This patch adds a pattern to support the FADDP (scalar) instruction. Before the patch, the C code typedef double v2df __attribute__((vector_size (16))); double foo (v2df x) { return x[1] + x[0]; } generated: foo: dup d1, v0.d[0] dup d0, v0.d[1] faddd0,