aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKewen Lin <linkw@linux.ibm.com>2020-03-08 21:34:13 -0500
committerKewen Lin <linkw@linux.ibm.com>2020-03-08 21:34:13 -0500
commitd5114529228f97c2a433fa72ddea3fadeb6465b3 (patch)
treef2a308e32c99d468090fd79a2f36acca33b5a1fc
parent0b4ee25bdd7e67b3533295b5bdc7f98f379d8984 (diff)
downloadgcc-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/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.dg/vect/slp-perm-12.c2
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 } } } } */