Re: [PATCH v2,rs6000] Add built-in function support for compare bytes instruction

2017-05-09 Thread Segher Boessenkool
Hi Kelvin, On Mon, May 08, 2017 at 11:04:59AM -0600, Kelvin Nilsen wrote: > + /* If any supplied arguments are wider than 32 bits, resolve to > + 64-bit variant of built-in function. */ > + if ((arg1_mode == TImode) || (arg1_mode == DImode) || > + (arg2_mode == TImode) ||

[PATCH v2,rs6000] Add built-in function support for compare bytes instruction

2017-05-08 Thread Kelvin Nilsen
This patch adds support for the compare bytes instruction, which has been available in the rs6000 architecture since Power6. Thank you to Segher Boessenkool for feedback on the original submission of this patch. The following refinements have been incorporated: 1. Changed the implementation