Re: [PATCH][rs6000] inline expansion of memcmp using vsx

2018-11-16 Thread Segher Boessenkool
Hi Aaron, On Wed, Nov 14, 2018 at 10:42:44AM -0600, Aaron Sawdey wrote: > +static rtx > +emit_vsx_zero_reg() > +{ > + unsigned int i; > + rtx zr[16]; > + for (i = 0; i < 16; i++) > +zr[i] = GEN_INT (0); > + rtvec zv = gen_rtvec_v (16, zr); > + rtx zero_reg = gen_reg_rtx (V16QImode); > +

Re: [PATCH][rs6000] inline expansion of memcmp using vsx

2018-11-15 Thread Aaron Sawdey
On 11/15/18 4:02 AM, Richard Biener wrote: > On Wed, Nov 14, 2018 at 5:43 PM Aaron Sawdey wrote: >> >> This patch generalizes some the functions added earlier to do vsx expansion >> of strncmp >> so that the can also generate the code needed for memcmp. I reorganized >> expand_block_compare() a l

Re: [PATCH][rs6000] inline expansion of memcmp using vsx

2018-11-15 Thread Richard Biener
On Wed, Nov 14, 2018 at 5:43 PM Aaron Sawdey wrote: > > This patch generalizes some the functions added earlier to do vsx expansion > of strncmp > so that the can also generate the code needed for memcmp. I reorganized > expand_block_compare() a little to be able to make use of this there. The vs

[PATCH][rs6000] inline expansion of memcmp using vsx

2018-11-14 Thread Aaron Sawdey
This patch generalizes some the functions added earlier to do vsx expansion of strncmp so that the can also generate the code needed for memcmp. I reorganized expand_block_compare() a little to be able to make use of this there. The vsx code is more compact so I've changed the default block compa