From 3391b84b1e542244f1a504acd3f723cb0e70f238 Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Thu, 18 Nov 2010 23:50:26 +0000 Subject: [PATCH] slp-reduc-3.c: Make check dependent on vect_unpack. 2010-11-18 Steve Ellcey * gcc.dg/vect/slp-reduc-3.c: Make check dependent on vect_unpack. * gcc.dg/vect/slp-reduc-6.c: Ditto, plus add alignment. From-SVN: r166922 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/vect/slp-reduc-3.c | 4 ++-- gcc/testsuite/gcc.dg/vect/slp-reduc-6.c | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e349b19462e..6b347ea9428 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-11-18 Steve Ellcey + + * gcc.dg/vect/slp-reduc-3.c: Make check dependent on vect_unpack. + * gcc.dg/vect/slp-reduc-6.c: Ditto, plus add alignment. + 2010-11-18 Jakub Jelinek PR middle-end/46534 diff --git a/gcc/testsuite/gcc.dg/vect/slp-reduc-3.c b/gcc/testsuite/gcc.dg/vect/slp-reduc-3.c index 3220d3912ba..93ca0ff2e96 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-reduc-3.c +++ b/gcc/testsuite/gcc.dg/vect/slp-reduc-3.c @@ -57,6 +57,6 @@ int main (void) /* The initialization loop in main also gets vectorized. */ /* { 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 } } } } */ -/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail { vect_widen_sum_hi_to_si_pattern } } } } */ +/* { 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 { cleanup-tree-dump "vect" } } */ diff --git a/gcc/testsuite/gcc.dg/vect/slp-reduc-6.c b/gcc/testsuite/gcc.dg/vect/slp-reduc-6.c index c69251a76e2..03ab2a6eef4 100644 --- a/gcc/testsuite/gcc.dg/vect/slp-reduc-6.c +++ b/gcc/testsuite/gcc.dg/vect/slp-reduc-6.c @@ -6,7 +6,7 @@ #define N 128 -int a[N], b[N]; +int a[N], b[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__))); /* Vectorization of reduction. Loop-aware SLP is not possible, because of different arrays. */ @@ -43,7 +43,7 @@ int main (void) return 0; } -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { xfail vect_no_int_add } } } */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { xfail { vect_no_int_add || { ! vect_unpack } } } } } */ /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" } } */ /* { dg-final { scan-tree-dump-times "different interleaving chains in one node" 1 "vect" { target { ! vect_no_int_add } } } } */ /* { dg-final { cleanup-tree-dump "vect" } } */