Hi! This testcase started FAILing, because function splitting recently started splitting main1 into inline containing the cheap loop and main1.part.0 which contains the verification in abort. I believe the test is meant to test the vectorizer behavior, not how many times that loop has been inlined somewhere. This patch arranges for main1 not to be inlined or split.
Tested on powerpc64le-linux, ok for trunk? 2018-11-27 Jakub Jelinek <ja...@redhat.com> PR middle-end/87157 * gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c (main1): Add noipa attribute. --- gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c.jj 2017-03-21 11:10:40.276012822 +0000 +++ gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c 2018-11-27 15:29:00.685427859 +0000 @@ -11,7 +11,7 @@ struct test { extern struct test s; -int main1 () +__attribute__((noipa)) int main1 () { int i; Jakub