Re: [PATCH] Add QI vector mode support to by-pieces for memset

2021-07-20 Thread H.J. Lu via Gcc-patches
On Tue, Jul 20, 2021 at 8:12 AM Richard Sandiford wrote: > > Richard Sandiford via Gcc-patches writes: > > "H.J. Lu via Gcc-patches" writes: > >> On Mon, Jul 19, 2021 at 11:38 PM Richard Sandiford > >> wrote: > >>> > >>> "H.J. Lu via Gcc-patches" writes: > >>> >> > + { > >>> >> > + /

Re: [PATCH] Add QI vector mode support to by-pieces for memset

2021-07-20 Thread Richard Sandiford via Gcc-patches
Richard Sandiford via Gcc-patches writes: > "H.J. Lu via Gcc-patches" writes: >> On Mon, Jul 19, 2021 at 11:38 PM Richard Sandiford >> wrote: >>> >>> "H.J. Lu via Gcc-patches" writes: >>> >> > + { >>> >> > + /* First generate subreg of word mode if the previous mode is >>> >> > +

Re: [PATCH] Add QI vector mode support to by-pieces for memset

2021-07-20 Thread Richard Sandiford via Gcc-patches
"H.J. Lu via Gcc-patches" writes: > On Mon, Jul 19, 2021 at 11:38 PM Richard Sandiford > wrote: >> >> "H.J. Lu via Gcc-patches" writes: >> >> > + { >> >> > + /* First generate subreg of word mode if the previous mode is >> >> > + wider than word mode and word mode is wider tha

Re: [PATCH] Add QI vector mode support to by-pieces for memset

2021-07-20 Thread H.J. Lu via Gcc-patches
On Tue, Jul 20, 2021 at 5:48 AM H.J. Lu wrote: > > On Mon, Jul 19, 2021 at 11:38 PM Richard Sandiford > wrote: > > > > "H.J. Lu via Gcc-patches" writes: > > >> > + { > > >> > + /* First generate subreg of word mode if the previous mode is > > >> > + wider than word mode and wo

Re: [PATCH] Add QI vector mode support to by-pieces for memset

2021-07-20 Thread H.J. Lu via Gcc-patches
On Mon, Jul 19, 2021 at 11:38 PM Richard Sandiford wrote: > > "H.J. Lu via Gcc-patches" writes: > >> > + { > >> > + /* First generate subreg of word mode if the previous mode is > >> > + wider than word mode and word mode is wider than MODE. */ > >> > + prev_rtx = simpli

Re: [PATCH] Add QI vector mode support to by-pieces for memset

2021-07-19 Thread Richard Sandiford via Gcc-patches
"H.J. Lu via Gcc-patches" writes: >> > + { >> > + /* First generate subreg of word mode if the previous mode is >> > + wider than word mode and word mode is wider than MODE. */ >> > + prev_rtx = simplify_gen_subreg (word_mode, prev_rtx, >> > +

Re: [PATCH] Add QI vector mode support to by-pieces for memset

2021-07-19 Thread H.J. Lu via Gcc-patches
gt; >> rather than assuming that each piece can be represented as > >> > >> a scalar_int_mode. > >> > >> > >> > > > >> > > The current by-pieces infrastructure operates on scalar_int_mode. > >> > > Only for m

Re: [PATCH] Add QI vector mode support to by-pieces for memset

2021-07-19 Thread Richard Sandiford via Gcc-patches
>> > >> >> > > >> > > The current by-pieces infrastructure operates on scalar_int_mode. >> > > Only for memset, there is >> > > >> > > /* Callback routine for store_by_pieces. Return the RTL of a register >> > >cont

[PATCH] Add QI vector mode support to by-pieces for memset

2021-07-16 Thread H.J. Lu via Gcc-patches
consecutive copies of the unsigned > > >char value given in the RTL register data. For example, if mode is > > > 4 bytes wide, return the RTL for 0x01010101*data. If PREV isn't > > >nullptr, it has the RTL info from the previous iteration. */