diff options
author | Kewen Lin <linkw@gcc.gnu.org> | 2020-08-30 19:52:03 -0500 |
---|---|---|
committer | Kewen Lin <linkw@linux.ibm.com> | 2020-08-30 19:52:03 -0500 |
commit | d0939f42dd84ca03212caf0b6937cf201a16a44f (patch) | |
tree | 32a706da7a34d83eb954351930336d08d9782371 /gcc/doc/sourcebuild.texi | |
parent | cf2bc8617aead56c7fef9904565dc4b4c70d4365 (diff) | |
download | gcc-d0939f42dd84ca03212caf0b6937cf201a16a44f.zip gcc-d0939f42dd84ca03212caf0b6937cf201a16a44f.tar.gz gcc-d0939f42dd84ca03212caf0b6937cf201a16a44f.tar.bz2 |
testsuite: Update some vect cases for partial vectors
This patch is to adjust some existing vectorization test cases
to work well with the newly introduced partial vector usages.
Bootstrapped/regtested on aarch64-linux-gnu and powerpc64le-linux-gnu
P9 (with explicit param vect-partial-vector-usage=1 and enablement on
check_effective_target_vect_partial_vectors_usage_1 check).
gcc/ChangeLog:
* doc/sourcebuild.texi (vect_len_load_store,
vect_partial_vectors_usage_1, vect_partial_vectors_usage_2,
vect_partial_vectors): Document.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/bb-slp-pr69907.c: Adjust for partial vector usages.
* gcc.dg/vect/slp-3.c: Likewise.
* gcc.dg/vect/slp-multitypes-11.c: Likewise.
* gcc.dg/vect/slp-perm-1.c: Likewise.
* gcc.dg/vect/slp-perm-5.c: Likewise.
* gcc.dg/vect/slp-perm-6.c: Likewise.
* gcc.dg/vect/slp-perm-7.c: Likewise.
* gcc.dg/vect/slp-perm-8.c: Likewise.
* gcc.dg/vect/slp-perm-9.c: Likewise.
* gcc.dg/vect/vect-version-2.c: Likewise.
* lib/target-supports.exp (check_vect_partial_vector_usage): New
function.
(check_effective_target_vect_len_load_store): Likewise.
(check_effective_target_vect_partial_vectors_usage_1): Likewise.
(check_effective_target_vect_partial_vectors_usage_2): Likewise.
(check_effective_target_vect_partial_vectors): Likewise.
Diffstat (limited to 'gcc/doc/sourcebuild.texi')
-rw-r--r-- | gcc/doc/sourcebuild.texi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 967cb13..f7c6936 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -1711,6 +1711,21 @@ Target supports AND, IOR and XOR reduction on vectors. @item vect_fold_extract_last Target supports the @code{fold_extract_last} optab. + +@item vect_len_load_store +Target supports the @code{len_load} and @code{len_store} optabs. + +@item vect_partial_vectors_usage_1 +Target supports loop vectorization with partial vectors and +@code{vect-partial-vector-usage} is set to 1. + +@item vect_partial_vectors_usage_2 +Target supports loop vectorization with partial vectors and +@code{vect-partial-vector-usage} is set to 2. + +@item vect_partial_vectors +Target supports loop vectorization with partial vectors and +@code{vect-partial-vector-usage} is nonzero. @end table @subsubsection Thread Local Storage attributes |