From e26b502d9bf55307c51a2cd93ec7cbfd1c9a8324 Mon Sep 17 00:00:00 2001 From: Bill Schmidt Date: Wed, 1 Feb 2017 22:11:57 +0000 Subject: [PATCH] re PR target/70012 (test case gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c fails) 2017-02-01 Bill Schmidt PR target/70012 * gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c: Adjust test conditions. From-SVN: r245108 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c | 11 ++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8ac884c..76f22e3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-02-01 Bill Schmidt + + PR target/70012 + * gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c: Adjust test + conditions. + 2017-02-01 Jakub Jelinek PR testsuite/79324 diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c index e0764f8..c3db87d 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c @@ -36,7 +36,12 @@ int main (void) } /* Peeling to align the store is used. Overhead of peeling is too high. */ -/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" { target vector_alignment_reachable } } } */ +/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" { target { ! natural_alignment_32 } } } } */ -/* Versioning to align the store is used. Overhead of versioning is not too high. */ -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target {! vector_alignment_reachable} } } } */ +/* Vectorization occurs, either because overhead of versioning is not + too high, or because the hardware supports efficient unaligned accesses. */ +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { natural_alignment_32 } } } } */ + +/* Versioning to align the store is used. Overhead of versioning is not + too high. */ +/* { dg-final { scan-tree-dump-times "loop versioned for vectorization to enhance alignment" 1 "vect" { target { natural_alignment_32 && { ! vect_hw_misalign } } } } } */ -- 2.7.4