Re: [aarch64] Use wzr/xzr for assigning vector element to 0

2023-04-19 Thread Prathamesh Kulkarni via Gcc-patches
On Tue, 31 Jan 2023 at 11:51, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Mon, 23 Jan 2023 at 22:26, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> > On Wed, 18 Jan 2023 at 19:59, Richard Sandiford > >> > wrote: > >> >> > >> >> Prathamesh Kulkarni

Re: [aarch64] Use wzr/xzr for assigning vector element to 0

2023-01-30 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Mon, 23 Jan 2023 at 22:26, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > On Wed, 18 Jan 2023 at 19:59, Richard Sandiford >> > wrote: >> >> >> >> Prathamesh Kulkarni writes: >> >> > On Tue, 17 Jan 2023 at 18:29, Richard Sandiford >> >> > wro

Re: [aarch64] Use wzr/xzr for assigning vector element to 0

2023-01-25 Thread Prathamesh Kulkarni via Gcc-patches
On Mon, 23 Jan 2023 at 22:26, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Wed, 18 Jan 2023 at 19:59, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> > On Tue, 17 Jan 2023 at 18:29, Richard Sandiford > >> > wrote: > >> >> > >> >> Prathamesh Kulkarni

Re: [aarch64] Use wzr/xzr for assigning vector element to 0

2023-01-23 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Wed, 18 Jan 2023 at 19:59, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > On Tue, 17 Jan 2023 at 18:29, Richard Sandiford >> > wrote: >> >> >> >> Prathamesh Kulkarni writes: >> >> > Hi Richard, >> >> > For the following (contrived) test: >> >

Re: [aarch64] Use wzr/xzr for assigning vector element to 0

2023-01-19 Thread Prathamesh Kulkarni via Gcc-patches
On Wed, 18 Jan 2023 at 19:59, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Tue, 17 Jan 2023 at 18:29, Richard Sandiford > > wrote: > >> > >> Prathamesh Kulkarni writes: > >> > Hi Richard, > >> > For the following (contrived) test: > >> > > >> > void foo(int32x4_t v) > >> > {

Re: [aarch64] Use wzr/xzr for assigning vector element to 0

2023-01-18 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Tue, 17 Jan 2023 at 18:29, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > Hi Richard, >> > For the following (contrived) test: >> > >> > void foo(int32x4_t v) >> > { >> > v[3] = 0; >> > return v; >> > } >> > >> > -O2 code-gen: >> > foo: >>

Re: [aarch64] Use wzr/xzr for assigning vector element to 0

2023-01-18 Thread Prathamesh Kulkarni via Gcc-patches
On Tue, 17 Jan 2023 at 18:29, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > Hi Richard, > > For the following (contrived) test: > > > > void foo(int32x4_t v) > > { > > v[3] = 0; > > return v; > > } > > > > -O2 code-gen: > > foo: > > fmovs1, wzr > > ins v

Re: [aarch64] Use wzr/xzr for assigning vector element to 0

2023-01-17 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > Hi Richard, > For the following (contrived) test: > > void foo(int32x4_t v) > { > v[3] = 0; > return v; > } > > -O2 code-gen: > foo: > fmovs1, wzr > ins v0.s[3], v1.s[0] > ret > > I suppose we can instead emit the following code-gen

[aarch64] Use wzr/xzr for assigning vector element to 0

2023-01-17 Thread Prathamesh Kulkarni via Gcc-patches
Hi Richard, For the following (contrived) test: void foo(int32x4_t v) { v[3] = 0; return v; } -O2 code-gen: foo: fmovs1, wzr ins v0.s[3], v1.s[0] ret I suppose we can instead emit the following code-gen ? foo: ins v0.s[3], wzr ret combine produces: