diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2020-11-18 18:40:33 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2020-11-18 18:40:33 +0000 |
commit | 71e234a5c94ddaef4070b3a74cf6d867dfe1a24b (patch) | |
tree | 11fd7dcd6d68da1cf94d3df7bf1731d4a8a195e4 /gcc | |
parent | ee9dd1c3022aa01ed3733cf58ed1f490872fa214 (diff) | |
download | gcc-71e234a5c94ddaef4070b3a74cf6d867dfe1a24b.zip gcc-71e234a5c94ddaef4070b3a74cf6d867dfe1a24b.tar.gz gcc-71e234a5c94ddaef4070b3a74cf6d867dfe1a24b.tar.bz2 |
testsuite: Adjust bb-slp-pr68892.c for AArch64
AArch64 passes the "not profitable" test because it treats vec_construct
as having a high-enough cost. This means that we can try other vector
modes, which in turn causes "BB vectorization with gaps at the end of
a load is not supported" to be printed more than once. The number of
times that we print the message doesn't seem important, so the patch
converts it to a plain scan-tree-dump.
gcc/testsuite/
* gcc.dg/vect/bb-slp-pr68892.c: Don't XFAIL the profitability
test for aarch64*-*-*. Allow the "BB vectorization with gaps"
message to be printed more than once.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/bb-slp-pr68892.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-pr68892.c b/gcc/testsuite/gcc.dg/vect/bb-slp-pr68892.c index 8cd3a6a..e9909cf 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-pr68892.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-pr68892.c @@ -15,6 +15,6 @@ void foo(void) /* ??? Due to the gaps we fall back to scalar loads which makes the vectorization profitable. */ -/* { dg-final { scan-tree-dump "not profitable" "slp2" { xfail *-*-* } } } */ -/* { dg-final { scan-tree-dump-times "BB vectorization with gaps at the end of a load is not supported" 1 "slp2" } } */ -/* { dg-final { scan-tree-dump-times "Basic block will be vectorized" 1 "slp2" } } */ +/* { dg-final { scan-tree-dump "not profitable" "slp2" { xfail { ! aarch64*-*-* } } } } */ +/* { dg-final { scan-tree-dump "BB vectorization with gaps at the end of a load is not supported" "slp2" } } */ +/* { dg-final { scan-tree-dump-times "Basic block will be vectorized" 1 "slp2" { xfail aarch64*-*-* } } } */ |