Re: [1/2] PR96463 - aarch64 specific changes

2022-06-07 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Mon, 6 Jun 2022 at 16:29, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> >> > { >> >> >/* The pattern matching functions above are written to look for a >> >> > small >> >> > number to begin the sequence (0, 1, N/2). If we begin with

Re: [1/2] PR96463 - aarch64 specific changes

2022-06-07 Thread Prathamesh Kulkarni via Gcc-patches
On Mon, 6 Jun 2022 at 16:29, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > >> > { > >> >/* The pattern matching functions above are written to look for a > >> > small > >> > number to begin the sequence (0, 1, N/2). If we begin with an > >> > index > >> > @@ -24084,6 +2

Re: [1/2] PR96463 - aarch64 specific changes

2022-06-06 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: >> > { >> >/* The pattern matching functions above are written to look for a small >> > number to begin the sequence (0, 1, N/2). If we begin with an index >> > @@ -24084,6 +24112,12 @@ aarch64_expand_vec_perm_const_1 (struct >> > expand_vec_perm_d *d) >> >

Re: [1/2] PR96463 - aarch64 specific changes

2022-06-05 Thread Prathamesh Kulkarni via Gcc-patches
On Wed, 1 Jun 2022 at 14:12, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Thu, 12 May 2022 at 16:15, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> > On Wed, 11 May 2022 at 12:44, Richard Sandiford > >> > wrote: > >> >> > >> >> Prathamesh Kulkarni w

Re: [1/2] PR96463 - aarch64 specific changes

2022-06-01 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Thu, 12 May 2022 at 16:15, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > On Wed, 11 May 2022 at 12:44, Richard Sandiford >> > wrote: >> >> >> >> Prathamesh Kulkarni writes: >> >> > On Fri, 6 May 2022 at 16:00, Richard Sandiford >> >> > wrot

Re: [1/2] PR96463 - aarch64 specific changes

2022-05-31 Thread Prathamesh Kulkarni via Gcc-patches
On Thu, 12 May 2022 at 16:15, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Wed, 11 May 2022 at 12:44, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> > On Fri, 6 May 2022 at 16:00, Richard Sandiford > >> > wrote: > >> >> > >> >> Prathamesh Kulkarni w

Re: [1/2] PR96463 - aarch64 specific changes

2022-05-12 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Wed, 11 May 2022 at 12:44, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > On Fri, 6 May 2022 at 16:00, Richard Sandiford >> > wrote: >> >> >> >> Prathamesh Kulkarni writes: >> >> > diff --git a/gcc/config/aarch64/aarch64-sve-builtins-base.cc

Re: [1/2] PR96463 - aarch64 specific changes

2022-05-12 Thread Prathamesh Kulkarni via Gcc-patches
On Wed, 11 May 2022 at 12:44, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Fri, 6 May 2022 at 16:00, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> > diff --git a/gcc/config/aarch64/aarch64-sve-builtins-base.cc > >> > b/gcc/config/aarch64/aarch64-sve

Re: [1/2] PR96463 - aarch64 specific changes

2022-05-11 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Fri, 6 May 2022 at 16:00, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > diff --git a/gcc/config/aarch64/aarch64-sve-builtins-base.cc >> > b/gcc/config/aarch64/aarch64-sve-builtins-base.cc >> > index c24c0548724..1ef4ea2087b 100644 >> > --- a/

Re: [1/2] PR96463 - aarch64 specific changes

2022-05-10 Thread Prathamesh Kulkarni via Gcc-patches
On Fri, 6 May 2022 at 16:00, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > diff --git a/gcc/config/aarch64/aarch64-sve-builtins-base.cc > > b/gcc/config/aarch64/aarch64-sve-builtins-base.cc > > index c24c0548724..1ef4ea2087b 100644 > > --- a/gcc/config/aarch64/aarch64-sve-builtins

Re: [1/2] PR96463 - aarch64 specific changes

2022-05-06 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > diff --git a/gcc/config/aarch64/aarch64-sve-builtins-base.cc > b/gcc/config/aarch64/aarch64-sve-builtins-base.cc > index c24c0548724..1ef4ea2087b 100644 > --- a/gcc/config/aarch64/aarch64-sve-builtins-base.cc > +++ b/gcc/config/aarch64/aarch64-sve-builtins-base.cc >

Re: [1/2] PR96463 - aarch64 specific changes

2022-05-03 Thread Prathamesh Kulkarni via Gcc-patches
On Mon, 27 Dec 2021 at 15:54, Prathamesh Kulkarni wrote: > > On Fri, 17 Dec 2021 at 17:03, Richard Sandiford > wrote: > > > > Prathamesh Kulkarni writes: > > > Hi, > > > The patch folds: > > > lhs = svld1rq ({-1, -1, -1, ...}, &v[0]) > > > into: > > > lhs = vec_perm_expr > > > and expands above

Re: [1/2] PR96463 - aarch64 specific changes

2021-12-27 Thread Prathamesh Kulkarni via Gcc-patches
On Fri, 17 Dec 2021 at 17:03, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > Hi, > > The patch folds: > > lhs = svld1rq ({-1, -1, -1, ...}, &v[0]) > > into: > > lhs = vec_perm_expr > > and expands above vec_perm_expr using aarch64_expand_sve_dupq. > > > > With patch, for following t

Re: [1/2] PR96463 - aarch64 specific changes

2021-12-17 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > Hi, > The patch folds: > lhs = svld1rq ({-1, -1, -1, ...}, &v[0]) > into: > lhs = vec_perm_expr > and expands above vec_perm_expr using aarch64_expand_sve_dupq. > > With patch, for following test: > #include > #include > > svint32_t > foo (int32x4_t x) > { > retur

[1/2] PR96463 - aarch64 specific changes

2021-12-17 Thread Prathamesh Kulkarni via Gcc-patches
Hi, The patch folds: lhs = svld1rq ({-1, -1, -1, ...}, &v[0]) into: lhs = vec_perm_expr and expands above vec_perm_expr using aarch64_expand_sve_dupq. With patch, for following test: #include #include svint32_t foo (int32x4_t x) { return svld1rq (svptrue_b8 (), &x[0]); } it generates followi