diff options
author | Kewen Lin <linkw@linux.ibm.com> | 2020-04-08 21:52:00 -0500 |
---|---|---|
committer | Kewen Lin <linkw@linux.ibm.com> | 2020-04-08 21:52:00 -0500 |
commit | e7c4084d11b957d925ba586f86db2f346fb3bfe0 (patch) | |
tree | 7fb76c41cab11508ea0b9882d007650cbb93a105 | |
parent | 4049edc23e4165dc18b7f720f6587d6ebbfb59d5 (diff) | |
download | gcc-e7c4084d11b957d925ba586f86db2f346fb3bfe0.zip gcc-e7c4084d11b957d925ba586f86db2f346fb3bfe0.tar.gz gcc-e7c4084d11b957d925ba586f86db2f346fb3bfe0.tar.bz2 |
[testsuite] Fix PR94079 by respecting vect_hw_misalign [PR94079]
This is another vect case which requires special handling with
vect_hw_misalign. The alignment of the second part requires
misaligned vector access supports. This patch is to adjust
the related guard condition and comments.
Verified it on ppc64-redhat-linux (Power7 BE).
2020-04-09 Kewen Lin <linkw@gcc.gnu.org>
gcc/testsuite/ChangeLog
PR testsuite/94023
* gfortran.dg/vect/pr83232.f90: Expect 2 rather than 3 times SLP on
non-vect_hw_misalign targets.
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gfortran.dg/vect/pr83232.f90 | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6f26fc6..b0ebeb4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-04-09 Kewen Lin <linkw@gcc.gnu.org> + + PR testsuite/94023 + * gfortran.dg/vect/pr83232.f90: Expect 2 rather than 3 times SLP on + non-vect_hw_misalign targets. + 2020-04-08 Jakub Jelinek <jakub@redhat.com> PR middle-end/94526 diff --git a/gcc/testsuite/gfortran.dg/vect/pr83232.f90 b/gcc/testsuite/gfortran.dg/vect/pr83232.f90 index a353578..af88342 100644 --- a/gcc/testsuite/gfortran.dg/vect/pr83232.f90 +++ b/gcc/testsuite/gfortran.dg/vect/pr83232.f90 @@ -27,5 +27,7 @@ call foo (Einc) END SUBROUTINE -! We should vectorize (1), (2) and (3) -! { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp1" } } +! We should vectorize (1), (2) and (3) under vect_hw_misalign. +! { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 3 "slp1" { target vect_hw_misalign } } } +! But only (1) and (3) under !vect_hw_misalign due to the alignment of (2). +! { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "slp1" { target { ! vect_hw_misalign } } } } |