[gcc(refs/users/marxin/heads/lto-plugin-symbol-type)] [testsuite] Fix PR94023 to guard case under vect_hw_misalign
Martin Liska
marxin@gcc.gnu.org
Mon Mar 9 09:18:25 GMT 2020
https://gcc.gnu.org/g:d5114529228f97c2a433fa72ddea3fadeb6465b3
commit d5114529228f97c2a433fa72ddea3fadeb6465b3
Author: Kewen Lin <linkw@linux.ibm.com>
Date: Sun Mar 8 21:34:13 2020 -0500
[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.
Diff:
---
gcc/testsuite/ChangeLog | 6 ++++++
gcc/testsuite/gcc.dg/vect/slp-perm-12.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 722a473ba77..2126a24c3ea 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 4d4c5344402..113223ab0f9 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 } } } } */
More information about the Gcc-cvs
mailing list