Re: [PATCH][rs6000] improve gpr inline expansion of str[n]cmp

2018-10-26 Thread Segher Boessenkool
Hi Aaron, On Thu, Oct 25, 2018 at 09:11:56AM -0500, Aaron Sawdey wrote: > This patch changes the sequence that gcc generates for inline expansion of > strcmp/strncmp using scalar (gpr) instructions. The new sequence is one > instruction shorter and uses cmpb/cmpb/orc./bne which I also have been >

[PATCH][rs6000] improve gpr inline expansion of str[n]cmp

2018-10-25 Thread Aaron Sawdey
This patch changes the sequence that gcc generates for inline expansion of strcmp/strncmp using scalar (gpr) instructions. The new sequence is one instruction shorter and uses cmpb/cmpb/orc./bne which I also have been told that valgrind should be able to understand as the defined/undefined info can