aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2020-11-17 11:12:53 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2020-11-17 11:12:53 +0000
commitb513f5f2cb2a7f604dfa2c424dbccc6a1011b63b (patch)
tree88f8053541a6678d7f22c7dc2ab711b92e98f448
parent8a1f6529062857523988202bad813304f003e8e1 (diff)
downloadgcc-b513f5f2cb2a7f604dfa2c424dbccc6a1011b63b.zip
gcc-b513f5f2cb2a7f604dfa2c424dbccc6a1011b63b.tar.gz
gcc-b513f5f2cb2a7f604dfa2c424dbccc6a1011b63b.tar.bz2
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.
-rw-r--r--gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-3.c5
1 files changed, 4 insertions, 1 deletions
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 fe36f90..e27f956 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 } } } */