Re: [PATCH, rs6000] inline expansion of str[n]cmp using vec/vsx instructions

2018-08-28 Thread Segher Boessenkool
Hi Aaron, On Wed, Aug 22, 2018 at 12:31:51PM -0500, Aaron Sawdey wrote: > This patch teaches rs6000 inline expansion of strcmp/strncmp how to > generate vector/vsx code for power8/power9 processors. Compares 16 > bytes and longer are generated using the vector code, which is > considerably faster

[PATCH, rs6000] inline expansion of str[n]cmp using vec/vsx instructions

2018-08-22 Thread Aaron Sawdey
This patch teaches rs6000 inline expansion of strcmp/strncmp how to generate vector/vsx code for power8/power9 processors. Compares 16 bytes and longer are generated using the vector code, which is considerably faster than the gpr based code. Bootstrap/regtest passes on ppc64 (power8) and ppc64le