on 2024/4/22 17:27, Alexandre Oliva wrote: > Ping? > https://gcc.gnu.org/pipermail/gcc-patches/2021-March/566524.html > > The loop we're supposed to try to vectorize in > gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c is turned into a memset > before the vectorizer runs. > > Various other tests in this set have already run into this, and the > solution has been to disable this loop distribution transformation, > enabled at -O2, so that the vectorizer gets a chance to transform the > loop and, in this testcase, fail to do so. > > Regstrapped on x86_64-linux-gnu and ppc64el-linux-gnu. Also tested with > gcc-13 on ppc64-vx7r2 and ppc-vx7r2. Ok to install?
OK, thanks! BR, Kewen > > > for gcc/testsuite/ChangeLog > > * gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c: Disable > ldist. > --- > .../gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c > b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c > index 454a714a30916..90b5d5a7f400b 100644 > --- a/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c > +++ b/gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c > @@ -1,4 +1,5 @@ > /* { dg-require-effective-target vect_int } */ > +/* { dg-additional-options "-fno-tree-loop-distribute-patterns" } */ > > #include <stdarg.h> > #include "../../tree-vect.h" >