Re: PR111648: Fix wrong code-gen due to incorrect VEC_PERM_EXPR folding

2023-10-18 Thread Prathamesh Kulkarni
On Wed, 18 Oct 2023 at 23:22, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Tue, 17 Oct 2023 at 02:40, Richard Sandiford > > wrote: > >> Prathamesh Kulkarni writes: > >> > diff --git a/gcc/fold-const.cc b/gcc/fold-const.cc > >> > index 4f8561509ff..55a6a68c16c 100644 > >> > --

Re: PR111648: Fix wrong code-gen due to incorrect VEC_PERM_EXPR folding

2023-10-18 Thread Richard Sandiford
Prathamesh Kulkarni writes: > On Tue, 17 Oct 2023 at 02:40, Richard Sandiford > wrote: >> Prathamesh Kulkarni writes: >> > diff --git a/gcc/fold-const.cc b/gcc/fold-const.cc >> > index 4f8561509ff..55a6a68c16c 100644 >> > --- a/gcc/fold-const.cc >> > +++ b/gcc/fold-const.cc >> > @@ -10684,9 +106

Re: PR111648: Fix wrong code-gen due to incorrect VEC_PERM_EXPR folding

2023-10-17 Thread Prathamesh Kulkarni
On Tue, 17 Oct 2023 at 02:40, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Wed, 11 Oct 2023 at 16:57, Prathamesh Kulkarni > > wrote: > >> > >> On Wed, 11 Oct 2023 at 16:42, Prathamesh Kulkarni > >> wrote: > >> > > >> > On Mon, 9 Oct 2023 at 17:05, Richard Sandiford > >> > wr

Re: PR111648: Fix wrong code-gen due to incorrect VEC_PERM_EXPR folding

2023-10-16 Thread Richard Sandiford
Prathamesh Kulkarni writes: > On Wed, 11 Oct 2023 at 16:57, Prathamesh Kulkarni > wrote: >> >> On Wed, 11 Oct 2023 at 16:42, Prathamesh Kulkarni >> wrote: >> > >> > On Mon, 9 Oct 2023 at 17:05, Richard Sandiford >> > wrote: >> > > >> > > Prathamesh Kulkarni writes: >> > > > Hi, >> > > > The at

Re: PR111648: Fix wrong code-gen due to incorrect VEC_PERM_EXPR folding

2023-10-12 Thread Prathamesh Kulkarni
On Wed, 11 Oct 2023 at 16:57, Prathamesh Kulkarni wrote: > > On Wed, 11 Oct 2023 at 16:42, Prathamesh Kulkarni > wrote: > > > > On Mon, 9 Oct 2023 at 17:05, Richard Sandiford > > wrote: > > > > > > Prathamesh Kulkarni writes: > > > > Hi, > > > > The attached patch attempts to fix PR111648. > >

Re: PR111648: Fix wrong code-gen due to incorrect VEC_PERM_EXPR folding

2023-10-11 Thread Prathamesh Kulkarni
On Wed, 11 Oct 2023 at 16:42, Prathamesh Kulkarni wrote: > > On Mon, 9 Oct 2023 at 17:05, Richard Sandiford > wrote: > > > > Prathamesh Kulkarni writes: > > > Hi, > > > The attached patch attempts to fix PR111648. > > > As mentioned in PR, the issue is when a1 is a multiple of vector > > > lengt

Re: PR111648: Fix wrong code-gen due to incorrect VEC_PERM_EXPR folding

2023-10-11 Thread Prathamesh Kulkarni
On Mon, 9 Oct 2023 at 17:05, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > Hi, > > The attached patch attempts to fix PR111648. > > As mentioned in PR, the issue is when a1 is a multiple of vector > > length, we end up creating following encoding in result: { base_elem, > > arg[0],

Re: PR111648: Fix wrong code-gen due to incorrect VEC_PERM_EXPR folding

2023-10-09 Thread Richard Sandiford
Prathamesh Kulkarni writes: > Hi, > The attached patch attempts to fix PR111648. > As mentioned in PR, the issue is when a1 is a multiple of vector > length, we end up creating following encoding in result: { base_elem, > arg[0], arg[1], ... } (assuming S = 1), > where arg is chosen input vector,