[PATCH, rs6000] cleanup/refactor in rs6000-string.c

2018-06-14 Thread Aaron Sawdey
This patch cleans up and refactors some stuff in rs6000-string.c before I start working on adding vec/vsx support to str[n]cmp inline expansion. Also removes the * from vsx_mov_64bit in vsx.md because I'll be using that pattern to generate lxvd2x. Bootstrap/regtest passes on ppc64le power8 -- ok f

Re: [PATCH, rs6000] cleanup/refactor in rs6000-string.c

2018-06-14 Thread Segher Boessenkool
On Thu, Jun 14, 2018 at 09:29:42AM -0500, Aaron Sawdey wrote: > 2018-06-14 Aaron Sawdey > > * config/rs6000/rs6000-string.c (select_block_compare_mode): Check > TARGET_EFFICIENT_OVERLAPPING_UNALIGNED here instead of in caller. > (do_and3, do_and3_mask, do_compb3, do_rotl3): Ne