diff options
author | Richard Biener <rguenther@suse.de> | 2021-01-18 14:51:00 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-01-18 14:52:12 +0100 |
commit | 104304cd246e9e8cd874f6cef7e2a5cd4bb0114d (patch) | |
tree | 8216d89f24b3933130b081402532fff3ba3324bd | |
parent | a81d2f1e414836549b909f2de927b6ae10e8b156 (diff) | |
download | gcc-104304cd246e9e8cd874f6cef7e2a5cd4bb0114d.zip gcc-104304cd246e9e8cd874f6cef7e2a5cd4bb0114d.tar.gz gcc-104304cd246e9e8cd874f6cef7e2a5cd4bb0114d.tar.bz2 |
testsuite/97299 - fix test condition of gcc.dg/vect/slp-reduc-3.c
This avoids looking for permute optimization when SLP cannot be applied.
2021-01-18 Richard Biener <rguenther@suse.de>
PR testsuite/97299
* gcc.dg/vect/slp-reduc-3.c: Guard VEC_PERM_EXPR scan.
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/slp-reduc-3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/slp-reduc-3.c b/gcc/testsuite/gcc.dg/vect/slp-reduc-3.c index 4969fe8..fc87586 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-reduc-3.c +++ b/gcc/testsuite/gcc.dg/vect/slp-reduc-3.c @@ -60,4 +60,5 @@ int main (void) /* { dg-final { scan-tree-dump-times "vect_recog_dot_prod_pattern: detected" 1 "vect" { xfail *-*-* } } } */ /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { target { vect_short_mult && { vect_widen_sum_hi_to_si && vect_unpack } } } } } */ /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail { vect_widen_sum_hi_to_si_pattern || { ! vect_unpack } } } } } */ -/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" } } */ +/* Check we can elide permutes if SLP vectorizing the reduction. */ +/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR" 0 "vect" { xfail { vect_widen_sum_hi_to_si_pattern || { ! vect_unpack } } } } } */ |