diff options
author | Stefan Schulze Frielinghaus <stefansf@linux.ibm.com> | 2024-04-12 09:20:53 +0200 |
---|---|---|
committer | Stefan Schulze Frielinghaus <stefansf@linux.ibm.com> | 2024-04-12 09:20:53 +0200 |
commit | b6c8259076a336e8082853ed6dda083c25a465d0 (patch) | |
tree | a57f7ec091b6f92f3f0dfa9eedd2215d6ef56cfc | |
parent | dc51a6428f6d8e5a57b8b1bf559145288e87660b (diff) | |
download | gcc-b6c8259076a336e8082853ed6dda083c25a465d0.zip gcc-b6c8259076a336e8082853ed6dda083c25a465d0.tar.gz gcc-b6c8259076a336e8082853ed6dda083c25a465d0.tar.bz2 |
testsuite: Fix loop-interchange-16.c
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.
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-16.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-16.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-16.c index 781555e..bbcb14f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-16.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-interchange-16.c @@ -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]; } |