test/rs6000: Add Power9 and up as vect_len target
authorKewen Lin <linkw@gcc.gnu.org>
Tue, 1 Sep 2020 02:37:41 +0000 (02:37 +0000)
committerKewen Lin <linkw@linux.ibm.com>
Tue, 1 Sep 2020 02:37:41 +0000 (02:37 +0000)
commitbe7ad7dfdb3b853d47d1e50d1ed580d47feff569
treee9e5137eb8735c6ea6f8ca84dbb2ddaf4963970c
parent13e4ba28f36817eec190fbd0dccd1f4aa99875a1
test/rs6000: Add Power9 and up as vect_len target

Power9 supports vector with length in bytes load/store, this patch
is to teach check_effective_target_vect_len_load_store to take it
and its laters as effective vector with length targets.

Also supplement the documents for has_arch_pwr*.

Bootstrapped/regtested on powerpc64le-linux-gnu P8, also on
powerpc64le-linux-gnu P9 with explicit usage setting.

gcc/ChangeLog:

* doc/sourcebuild.texi (has_arch_pwr5, has_arch_pwr6, has_arch_pwr7,
has_arch_pwr8, has_arch_pwr9): Document.

gcc/testsuite/ChangeLog:

* lib/target-supports.exp
(check_effective_target_vect_len_load_store): Call check function
check_effective_target_has_arch_pwr9.
gcc/doc/sourcebuild.texi
gcc/testsuite/lib/target-supports.exp