"Kewen.Lin" <li...@linux.ibm.com> writes: > Hi, > > 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. > > Verified it on ppc64-redhat-linux (Power7 BE). > > Is it ok for trunk, and backport to GCC 9 after some burn-in time?
OK for both, thanks. Richard > > > BR, > Kewen > -------- > > gcc/testsuite/ChangeLog > > 2020-03-04 Kewen Lin <li...@gcc.gnu.org> > > 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/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 } } } } */