]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
disable ldist for test, to restore vectorizing-candidate loop
authorAlexandre Oliva <oliva@adacore.com>
Sun, 28 Apr 2024 07:30:15 +0000 (04:30 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sun, 28 Apr 2024 07:30:15 +0000 (04:30 -0300)
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.

for  gcc/testsuite/ChangeLog

* gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c: Disable
ldist.

gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-vect-31a.c

index 454a714a309163a39128bf20ef7e8426bd26da15..90b5d5a7f400b607fff016ca152886a93f99edbb 100644 (file)
@@ -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"