From: Kewen Lin Date: Mon, 9 Mar 2020 02:34:13 +0000 (-0500) Subject: [testsuite] Fix PR94023 to guard case under vect_hw_misalign X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5114529228f97c2a433fa72ddea3fadeb6465b3;p=gcc.git [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 PR testsuite/94023 * gcc.dg/vect/slp-perm-12.c: Expect loop vectorized messages only on vect_hw_misalign targets. --- 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 + + 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 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 } } } } */