vsx.md (first_match_index_<mode>): Calculate index using natural element order.
authorCarl Love <cel@us.ibm.com>
Wed, 6 Jun 2018 23:16:06 +0000 (23:16 +0000)
committerCarl Love <carll@gcc.gnu.org>
Wed, 6 Jun 2018 23:16:06 +0000 (23:16 +0000)
commit029435a303a8081960fe6c7531ecf5f65c7d88ee
tree3a1616c4d301ae14c4c8ead55e0a28d7bcdd1ea0
parent20f136afaf83286e58edb15a4b9bdd4486d76598
vsx.md (first_match_index_<mode>): Calculate index using natural element order.

gcc/ChangeLog:

2018-06-04  Carl Love  <cel@us.ibm.com>

* gcc/config/rs6000/vsx.md (first_match_index_<mode>): Calculate index
using natural element order.  Use gen_lshrsi3 instead of gen_ashrsi3
as it is slightly cheaper.
(first_match_or_eos_index_<mode>):
Calculate index using natural element order.
(first_match_index_<mode>):
Calculate index using natural element order.
(first_match_or_eos_index_<mode>):
Calculate index using natural order.
(define_insn vclzlsbb): Change to define_insn vclzlsbb_<mode>.
for BE and LE modes.
* gcc/config/rs6000/rs6000-c.c: Rename P9V_BUILTIN_VCLZLSBB,
P9V_BUILTIN_VCLZLSBB_V16QI.
* gcc/config/rs6000/rs6000-builtin.def: Make VCLZLSBB mode
specific.

gcc/testsuite/ChangeLog:

2018-06-04  Carl Love  <cel@us.ibm.com>

* gcc.target/powerpc/builtins-8-p9-runnable.c: Add additional
debug print statements.  Fix a few formating issues.

From-SVN: r261255
gcc/ChangeLog
gcc/config/rs6000/rs6000-builtin.def
gcc/config/rs6000/rs6000-c.c
gcc/config/rs6000/vsx.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/builtins-8-p9-runnable.c