diff options
author | Kewen Lin <linkw@gcc.gnu.org> | 2019-11-14 05:57:12 +0000 |
---|---|---|
committer | Kewen Lin <linkw@gcc.gnu.org> | 2019-11-14 05:57:12 +0000 |
commit | 9773f69c1161677e68f693562da82c92fd3821da (patch) | |
tree | 9906d46fad851713c778c3a829c892db29a33bc0 /gcc | |
parent | 4e03c3a7c1149a8e43b7a2bfd927945cf1e90d19 (diff) | |
download | gcc-9773f69c1161677e68f693562da82c92fd3821da.zip gcc-9773f69c1161677e68f693562da82c92fd3821da.tar.gz gcc-9773f69c1161677e68f693562da82c92fd3821da.tar.bz2 |
[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 <linkw@gcc.gnu.org>
PR target/92464
* gcc.dg/vect/costmodel/ppc/costmodel-vect-76b.c: Adjust
loop bound due to load cost adjustment.
From-SVN: r278195
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-76b.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1a03eec..ce2ec9a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-11-14 Kewen Lin <linkw@gcc.gnu.org> + + 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 <joseph@codesourcery.com> * 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 4a7da2e..5da4343 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 <stdarg.h> #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" - |