rs6000-string.c (select_block_compare_mode): Move test for word_mode_ok here instead...
authorAaron Sawdey <acsawdey@linux.ibm.com>
Thu, 2 Aug 2018 18:11:54 +0000 (18:11 +0000)
committerAaron Sawdey <acsawdey@gcc.gnu.org>
Thu, 2 Aug 2018 18:11:54 +0000 (13:11 -0500)
commit74f9986eafd45489ff6563d6bb824ec1ad39cd14
treec10a388cd3cac15d732ba9ca1a017c81456cad6f
parenta1293ed1e19b038da2daf2d8d22ffc434ed75b4f
rs6000-string.c (select_block_compare_mode): Move test for word_mode_ok here instead of passing as argument.

2018-07-31  Aaron Sawdey  <acsawdey@linux.ibm.com>

* config/rs6000/rs6000-string.c (select_block_compare_mode): Move test
for word_mode_ok here instead of passing as argument.
(expand_block_compare): Change select_block_compare_mode() call.
(expand_strncmp_gpr_sequence): New function.
(expand_strn_compare): Make use of expand_strncmp_gpr_sequence.

From-SVN: r263273
gcc/ChangeLog
gcc/config/rs6000/rs6000-string.c