pr94833, fix vec_first_match_index for nulls
authorCarl Love <cel@us.ibm.com>
Wed, 29 Apr 2020 15:23:11 +0000 (10:23 -0500)
committerCarl Love <cel@us.ibm.com>
Mon, 18 May 2020 17:14:40 +0000 (12:14 -0500)
commit24f68831d25bad739a6fe167a58b5b4c0c3cbf9a
tree176afb9afe2e397b810a8f7213b586fb8a4b46a4
parent8f17461bdfeed758f2be71529fc3af55a76ea3e1
pr94833, fix vec_first_match_index for nulls

gcc/ChangeLog

2020-04-30  Carl Love  <cel@us.ibm.com>

PR target/94833
* config/rs6000/vsx.md (define_expand): Fix instruction generation for
first_match_index_<mode>.
* testsuite/gcc.target/powerpc/builtins-8-p9-runnable.c (main): Add
additional test cases with zero vector elements.
gcc/ChangeLog
gcc/config/rs6000/vsx.md
gcc/testsuite/gcc.target/powerpc/builtins-8-p9-runnable.c