From: Richard Sandiford Date: Tue, 17 Nov 2020 11:12:53 +0000 (+0000) Subject: testsuite: Adjust vect/bb-slp-subgroups-3.c for VL vectors X-Git-Tag: basepoints/gcc-12~3172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b513f5f2cb2a7f604dfa2c424dbccc6a1011b63b;p=thirdparty%2Fgcc.git testsuite: Adjust vect/bb-slp-subgroups-3.c for VL vectors Because we disable the cost model, targets with variable-length vectors can end up vectorising the store to a[0..7] on its own. With the cost model we do something sensible. gcc/testsuite/ * gcc.dg/vect/bb-slp-subgroups-3.c: XFAIL for variable-length vectors. --- diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-3.c b/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-3.c index fe36f90bb902..e27f956d7b8f 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-3.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-3.c @@ -38,4 +38,7 @@ main (int argc, char **argv) } /* { dg-final { scan-tree-dump-times "Basic block will be vectorized using SLP" 1 "slp2" } } */ -/* { dg-final { scan-tree-dump-times "optimized: basic block" 2 "slp2" } } */ +/* Because we disable the cost model, targets with variable-length + vectors can end up vectorizing the store to a[0..7] on its own. + With the cost model we do something sensible. */ +/* { dg-final { scan-tree-dump-times "optimized: basic block" 2 "slp2" { xfail vect_variable_length } } } */