On Tue, Nov 7, 2023 at 9:07 AM Robin Dapp <rdapp....@gmail.com> wrote: > > Hi, > > this patch makes sure we check for > note: Basic block will be vectorized using SLP > instead of > optimized: basic block > which will also match > optimized: basic block part > of which there are many more in an RVV dump. > > Tested on x86 and aarch64 as well as RVV.
OK > Regards > Robin > > gcc/testsuite/ChangeLog: > > * gcc.dg/vect/bb-slp-over-widen-1.c: Change test expectation. > * gcc.dg/vect/bb-slp-over-widen-2.c: Ditto. > --- > gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-1.c | 2 +- > gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-2.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-1.c > b/gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-1.c > index b556a1d6278..7646c4f5a8b 100644 > --- a/gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-1.c > +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-1.c > @@ -65,4 +65,4 @@ main (void) > /* { dg-final { scan-tree-dump "demoting int to signed short" "slp2" { > target { ! vect_widen_shift } } } } */ > /* { dg-final { scan-tree-dump "demoting int to unsigned short" "slp2" { > target { ! vect_widen_shift } } } } */ > /* { dg-final { scan-tree-dump {\.AVG_FLOOR} "slp2" { target vect_avg_qi } } > } */ > -/* { dg-final { scan-tree-dump-times "optimized: basic block" 2 "slp2" { > target vect_hw_misalign } } } */ > +/* { dg-final { scan-tree-dump-times "note: Basic block will be vectorized" > 2 "slp2" { target vect_hw_misalign } } } */ > diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-2.c > b/gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-2.c > index d1aa161c3ad..d9838c0917d 100644 > --- a/gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-2.c > +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-over-widen-2.c > @@ -64,4 +64,4 @@ main (void) > /* { dg-final { scan-tree-dump "demoting int to signed short" "slp2" { > target { ! vect_widen_shift } } } } */ > /* { dg-final { scan-tree-dump "demoting int to unsigned short" "slp2" { > target { ! vect_widen_shift } } } } */ > /* { dg-final { scan-tree-dump {\.AVG_FLOOR} "slp2" { target vect_avg_qi } } > } */ > -/* { dg-final { scan-tree-dump-times "optimized: basic block" 2 "slp2" { > target vect_hw_misalign } } } */ > +/* { dg-final { scan-tree-dump-times "note: Basic block will be vectorized" > 2 "slp2" { target vect_hw_misalign } } } */ > -- > 2.41.0 >