Hi, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65546 discusses the failure of gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c. The test fails differently on GCC 4.9 and 5 than it does on GCC 6. For GCC 6, the test case is faulty, as we only expect to see the "vectorization not profitable" statement when misaligned loads/stores are not efficient on the target hardware. This patch fixes the test for GCC 6.
Something else is going on in the earlier releases, which I plan to look at separately. Verified on powerpc64le-unknown-linux-gnu. Is this okay for trunk? Thanks, Bill 2016-01-28 Bill Schmidt <wschm...@linux.vnet.ibm.com> PR target/65546 * gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c: Disable check for "vectorization not profitable" when the target supports misaligned loads and stores. Index: gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c =================================================================== --- gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c (revision 232890) +++ gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c (working copy) @@ -46,5 +46,5 @@ int main (void) return main1 (); } -/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" } } */ +/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" { target { ! vect_hw_misalign } } } } */ /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" { target { ! vect_hw_misalign } } } } */