[AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-05-27 Thread Prathamesh Kulkarni
Hi, The attached patch tries to improve initialization for fixed-length SVE vector and it's algorithm is described in comments for aarch64_sve_expand_vector_init() in the patch, with help from Richard Sandiford. I verified tests added in the patch pass with qemu and am trying to run bootstrap+test

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-05-29 Thread Richard Sandiford
Prathamesh Kulkarni writes: > Hi, > The attached patch tries to improve initialization for fixed-length > SVE vector and it's algorithm is described in comments for > aarch64_sve_expand_vector_init() in the patch, with help from Richard > Sandiford. I verified tests added in the patch pass with qe

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-05-30 Thread Prathamesh Kulkarni
On Wed, 29 May 2019 at 18:10, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > Hi, > > The attached patch tries to improve initialization for fixed-length > > SVE vector and it's algorithm is described in comments for > > aarch64_sve_expand_vector_init() in the patch, with help from R

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-05-30 Thread Richard Sandiford
Prathamesh Kulkarni writes: > diff --git a/gcc/testsuite/gcc.target/aarch64/sve/init_1.c > b/gcc/testsuite/gcc.target/aarch64/sve/init_1.c > new file mode 100644 > index 000..cbfeff4a59c > --- /dev/null > +++ b/gcc/testsuite/gcc.target/aarch64/sve/init_1.c > @@ -0,0 +1,27 @@ > +/* { dg-do

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-05-30 Thread Prathamesh Kulkarni
On Thu, 30 May 2019 at 15:10, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > diff --git a/gcc/testsuite/gcc.target/aarch64/sve/init_1.c > > b/gcc/testsuite/gcc.target/aarch64/sve/init_1.c > > new file mode 100644 > > index 000..cbfeff4a59c > > --- /dev/null > > +++ b/gcc/te

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-05-30 Thread Richard Sandiford
Prathamesh Kulkarni writes: > On Thu, 30 May 2019 at 15:10, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > diff --git a/gcc/testsuite/gcc.target/aarch64/sve/init_1.c >> > b/gcc/testsuite/gcc.target/aarch64/sve/init_1.c >> > new file mode 100644 >> > index 000..cbfeff4

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-03 Thread Prathamesh Kulkarni
On Thu, 30 May 2019 at 21:19, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Thu, 30 May 2019 at 15:10, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> > diff --git a/gcc/testsuite/gcc.target/aarch64/sve/init_1.c > >> > b/gcc/testsuite/gcc.target/aarch6

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-03 Thread Richard Sandiford
Prathamesh Kulkarni writes: > On Thu, 30 May 2019 at 21:19, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > On Thu, 30 May 2019 at 15:10, Richard Sandiford >> > wrote: >> >> >> >> Prathamesh Kulkarni writes: >> >> > diff --git a/gcc/testsuite/gcc.target/aarch64/sve/init_1.c

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-03 Thread Prathamesh Kulkarni
On Mon, 3 Jun 2019 at 14:53, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Thu, 30 May 2019 at 21:19, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> > On Thu, 30 May 2019 at 15:10, Richard Sandiford > >> > wrote: > >> >> > >> >> Prathamesh Kulkarni w

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-03 Thread Richard Sandiford
Prathamesh Kulkarni writes: >> > diff --git a/gcc/testsuite/lib/target-supports.exp >> > b/gcc/testsuite/lib/target-supports.exp >> > index 3bd6e815715..0ff0d8fb757 100644 >> > --- a/gcc/testsuite/lib/target-supports.exp >> > +++ b/gcc/testsuite/lib/target-supports.exp >> > @@ -3846,6 +3846,10 @@

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-03 Thread Prathamesh Kulkarni
On Mon, 3 Jun 2019 at 16:25, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > >> > diff --git a/gcc/testsuite/lib/target-supports.exp > >> > b/gcc/testsuite/lib/target-supports.exp > >> > index 3bd6e815715..0ff0d8fb757 100644 > >> > --- a/gcc/testsuite/lib/target-supports.exp > >> > ++

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-06 Thread Szabolcs Nagy
On 03/06/2019 08:26, Prathamesh Kulkarni wrote: > +++ b/gcc/testsuite/gcc.target/aarch64/sve/init_8.c > @@ -0,0 +1,32 @@ > +/* { dg-do assemble { target aarch64_asm_sve_ok } } */ > +/* { dg-options "-O2 -fno-schedule-insns -msve-vector-bits=256 --save-temps" > } */ > + > +/* Case 5.2: Interleaved

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-06 Thread Richard Sandiford
Szabolcs Nagy writes: > On 03/06/2019 08:26, Prathamesh Kulkarni wrote: >> +++ b/gcc/testsuite/gcc.target/aarch64/sve/init_8.c >> @@ -0,0 +1,32 @@ >> +/* { dg-do assemble { target aarch64_asm_sve_ok } } */ >> +/* { dg-options "-O2 -fno-schedule-insns -msve-vector-bits=256 >> --save-temps" } */ >>

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-07 Thread Prathamesh Kulkarni
On Thu, 6 Jun 2019 at 16:54, Richard Sandiford wrote: > > Szabolcs Nagy writes: > > On 03/06/2019 08:26, Prathamesh Kulkarni wrote: > >> +++ b/gcc/testsuite/gcc.target/aarch64/sve/init_8.c > >> @@ -0,0 +1,32 @@ > >> +/* { dg-do assemble { target aarch64_asm_sve_ok } } */ > >> +/* { dg-options "-O

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-07 Thread Richard Sandiford
Prathamesh Kulkarni writes: > On Thu, 6 Jun 2019 at 16:54, Richard Sandiford > wrote: >> >> Szabolcs Nagy writes: >> > On 03/06/2019 08:26, Prathamesh Kulkarni wrote: >> >> +++ b/gcc/testsuite/gcc.target/aarch64/sve/init_8.c >> >> @@ -0,0 +1,32 @@ >> >> +/* { dg-do assemble { target aarch64_asm_

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-07 Thread Prathamesh Kulkarni
On Fri, 7 Jun 2019 at 18:26, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Thu, 6 Jun 2019 at 16:54, Richard Sandiford > > wrote: > >> > >> Szabolcs Nagy writes: > >> > On 03/06/2019 08:26, Prathamesh Kulkarni wrote: > >> >> +++ b/gcc/testsuite/gcc.target/aarch64/sve/init_8.c

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-07 Thread Richard Sandiford
Prathamesh Kulkarni writes: > 2019-06-07 Prathamesh Kulkarni > > * gcc.target/aarch64/sve/init_1.c: Remove options > -O2 -fno-schedule-insns and instead pass -O. > Update assembly in comments. > * gcc.target/aarch64/sve/init_2.c: Likewise. > * gcc.target/aarch64/s

Re: [AArch64] [SVE] PR88837 - Poor vector construction code in VL-specific mode

2019-06-08 Thread Prathamesh Kulkarni
On Fri, 7 Jun 2019 at 22:47, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > 2019-06-07 Prathamesh Kulkarni > > > > * gcc.target/aarch64/sve/init_1.c: Remove options > > -O2 -fno-schedule-insns and instead pass -O. > > Update assembly in comments. > > * gcc