From: Bill Schmidt Date: Wed, 1 Feb 2017 22:11:57 +0000 (+0000) Subject: re PR target/70012 (test case gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c fails) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e26b502d9bf55307c51a2cd93ec7cbfd1c9a8324;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8ac884c683a..76f22e3b7ea 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 e0764f877f6..c3db87d5988 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 } } } } } */