]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix loop-interchange-16.c
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Fri, 12 Apr 2024 07:20:53 +0000 (09:20 +0200)
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Fri, 12 Apr 2024 07:20:53 +0000 (09:20 +0200)
Prevent loop unrolling of the innermost loop because otherwise we are
left with no loop interchange for targets like s390 which have a more
aggressive loop unrolling strategy.

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/loop-interchange-16.c: Prevent loop unrolling
of the innermost loop.

gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-16.c

index 781555e085d12b799a509e0db57839336eb87810..bbcb14f9c6c5ccdc8aa98b6a0b6f94638637ca05 100644 (file)
@@ -11,6 +11,7 @@ double s231(int iterations)
 //    loop with data dependency
     for (int nl = 0; nl < 100*(iterations/LEN_2D); nl++) {
         for (int i = 0; i < LEN_2D; ++i) {
+#pragma GCC unroll 0
             for (int j = 1; j < LEN_2D; j++) {
                 aa[j][i] = aa[j - 1][i] + bb[j][i];
             }