diff options
author | Kewen Lin <linkw@linux.ibm.com> | 2020-03-08 21:34:13 -0500 |
---|---|---|
committer | Kewen Lin <linkw@linux.ibm.com> | 2020-03-08 21:34:13 -0500 |
commit | d5114529228f97c2a433fa72ddea3fadeb6465b3 (patch) | |
tree | f2a308e32c99d468090fd79a2f36acca33b5a1fc | |
parent | 0b4ee25bdd7e67b3533295b5bdc7f98f379d8984 (diff) | |
download | gcc-d5114529228f97c2a433fa72ddea3fadeb6465b3.zip gcc-d5114529228f97c2a433fa72ddea3fadeb6465b3.tar.gz gcc-d5114529228f97c2a433fa72ddea3fadeb6465b3.tar.bz2 |
[testsuite] Fix PR94023 to guard case under vect_hw_misalign
As PR94023 shows, the expected SLP requires misaligned vector access
support. This patch is to guard the check under the target condition
vect_hw_misalign to ensure that.
gcc/testsuite/ChangeLog
2020-03-09 Kewen Lin <linkw@gcc.gnu.org>
PR testsuite/94023
* gcc.dg/vect/slp-perm-12.c: Expect loop vectorized messages only on
vect_hw_misalign targets.
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/slp-perm-12.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 722a473..2126a24 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-03-09 Kewen Lin <linkw@gcc.gnu.org> + + PR testsuite/94023 + * gcc.dg/vect/slp-perm-12.c: Expect loop vectorized messages only on + vect_hw_misalign targets. + 2020-03-08 Paul Thomas <pault@gcc.gnu.org> PR fortran/93581 diff --git a/gcc/testsuite/gcc.dg/vect/slp-perm-12.c b/gcc/testsuite/gcc.dg/vect/slp-perm-12.c index 4d4c534..113223a 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-perm-12.c +++ b/gcc/testsuite/gcc.dg/vect/slp-perm-12.c @@ -49,4 +49,4 @@ int main() return 0; } -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target vect_perm } } } */ +/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target { vect_perm && vect_hw_misalign } } } } */ |