From: Kewen Lin Date: Thu, 14 Nov 2019 05:57:12 +0000 (+0000) Subject: [testsuite] Fix PR92464 by adjust test case loop bound X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9773f69c1161677e68f693562da82c92fd3821da;p=gcc.git [testsuite] Fix PR92464 by adjust test case loop bound The recent vectorization cost adjustment on load leads the profitable min iteration count to change from 19 to 12. The case happens to hit the threshold. This patch is to adjust the loop bound from 16 to 14. gcc/testsuite/ChangeLog 2019-11-14 Kewen Lin PR target/92464 * gcc.dg/vect/costmodel/ppc/costmodel-vect-76b.c: Adjust loop bound due to load cost adjustment. From-SVN: r278195 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1a03eec0e3b..ce2ec9a68d0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-11-14 Kewen Lin + + PR target/92464 + * gcc.dg/vect/costmodel/ppc/costmodel-vect-76b.c: Adjust loop + bound due to load cost adjustment. + 2019-11-14 Joseph Myers * gcc.dg/c2x-attr-fallthrough-1.c, gcc.dg/c2x-attr-syntax-1.c, diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-76b.c b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-76b.c index 4a7da2ea625..5da4343198c 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-76b.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-76b.c @@ -4,7 +4,9 @@ #include #include "../../tree-vect.h" -#define N 16 +/* On Power7 without misalign vector support, this case is to check it's not + profitable to perform vectorization by peeling to align the store. */ +#define N 14 #define OFF 4 /* Check handling of accesses for which the "initial condition" -