]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/testsuite: Change 'cunrolli' to 'cunrolli1' in dump scan + options
authorTobias Burnus <tobias@codesourcery.com>
Mon, 24 Oct 2022 14:50:25 +0000 (16:50 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 24 Oct 2022 14:50:25 +0000 (16:50 +0200)
The OG12 commit
  3e8b51d143e openacc: Move pass_oacc_device_lower after pass_graphite
adds a new pass, which also re-invokes some previous passes. This
seems to have the effect that the pass names and, hence, the dump
names have now a tailing number.

In that commit, 'cunrolli' was changed to 'cunrolli1 for some testcases.
This commit does likewise for some more testcases. In particular,
. in scan-tree-dump the tailing '1' is crucial to change UNRESOLVED
  to PASS.
. for "-fdisable-tree-cunrolli1" option, it changes FAIL (excess errors)
  to PASS
. even without the change, "-fdump-tree-cunrolli{-details,-optimized}"
  has PASS, but I believe the tailing 1 ensures that only the first
  'cunrolli' dumps.

gcc/testsuite
* g++.dg/ext/unroll-1.C: Change 'cunrolli' to 'cunrolli1' in
dg-options and scan-tree-dump.
* g++.dg/ext/unroll-2.C: Likewise.
* g++.dg/ext/unroll-3.C: Likewise.
* g++.dg/vect/pr36648.cc: Likewise.
* gcc.dg/tree-prof/init-array.c: Likewise.
* gcc.dg/tree-ssa/pr100359.c: Likewise.
* gcc.dg/tree-ssa/pr59597.c: Likewise.
* gcc.dg/unroll-2.c: Likewise.
* gfortran.dg/directive_unroll_1.f90: Likewise.
* gfortran.dg/directive_unroll_4.f90: Likewise.
* gnat.dg/unroll1.adb: Likewise.
* gnat.dg/unroll2.adb: Likewise.

13 files changed:
gcc/testsuite/ChangeLog.omp
gcc/testsuite/g++.dg/ext/unroll-1.C
gcc/testsuite/g++.dg/ext/unroll-2.C
gcc/testsuite/g++.dg/ext/unroll-3.C
gcc/testsuite/g++.dg/vect/pr36648.cc
gcc/testsuite/gcc.dg/tree-prof/init-array.c
gcc/testsuite/gcc.dg/tree-ssa/pr100359.c
gcc/testsuite/gcc.dg/tree-ssa/pr59597.c
gcc/testsuite/gcc.dg/unroll-2.c
gcc/testsuite/gfortran.dg/directive_unroll_1.f90
gcc/testsuite/gfortran.dg/directive_unroll_4.f90
gcc/testsuite/gnat.dg/unroll1.adb
gcc/testsuite/gnat.dg/unroll2.adb

index 5970a3baf7b61c1c32bfcda64b7fb5c7c92da931..677a4c6ee12ab164ffd28254607fed324f6eb17c 100644 (file)
@@ -1,3 +1,19 @@
+2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
+
+       * g++.dg/ext/unroll-1.C: Change 'cunrolli' to 'cunrolli1' in
+       dg-options and scan-tree-dump.
+       * g++.dg/ext/unroll-2.C: Likewise.
+       * g++.dg/ext/unroll-3.C: Likewise.
+       * g++.dg/vect/pr36648.cc: Likewise.
+       * gcc.dg/tree-prof/init-array.c: Likewise.
+       * gcc.dg/tree-ssa/pr100359.c: Likewise.
+       * gcc.dg/tree-ssa/pr59597.c: Likewise.
+       * gcc.dg/unroll-2.c: Likewise.
+       * gfortran.dg/directive_unroll_1.f90: Likewise.
+       * gfortran.dg/directive_unroll_4.f90: Likewise.
+       * gnat.dg/unroll1.adb: Likewise.
+       * gnat.dg/unroll2.adb: Likewise.
+
 2022-10-24  Tobias Burnus  <tobias@codesourcery.com>
 
        Backported from master:
index aa11b2e6ef78fe98458acd9c633d6b4b1d00a799..6c827091da84181f6fd9740cf2e699ec1f072d42 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do compile }
-// { dg-options "-O2 -fdump-tree-cunrolli-details" }
+// { dg-options "-O2 -fdump-tree-cunrolli1-details" }
 
 template <typename T>
 void
@@ -16,4 +16,4 @@ bar (int *a, int *b, int *c)
   foo <int> (a, b, c);
 }
 
-// { dg-final { scan-tree-dump "loop with 8 iterations completely unrolled" "cunrolli" } }
+// { dg-final { scan-tree-dump "loop with 8 iterations completely unrolled" "cunrolli1" } }
index f9ec892dbddfd3f390495fab445982f4e95b7c4b..f196a7e8d76af99b6f61fa6fec053b0579822fa9 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do compile }
-// { dg-options "-O2 -fdump-tree-cunrolli-details" }
+// { dg-options "-O2 -fdump-tree-cunrolli1-details" }
 // { dg-skip-if "range for" { *-*-* } { "-std=gnu++98" } { "" } }
 
 void
@@ -10,4 +10,4 @@ foo (int (&a)[8], int *b, int *c)
     a[i] = b[i] * c[i];
 }
 
-// { dg-final { scan-tree-dump "loop with 8 iterations completely unrolled" "cunrolli" } }
+// { dg-final { scan-tree-dump "loop with 8 iterations completely unrolled" "cunrolli1" } }
index dda94c56af22e2e96e84331df4a1cf94c59cb12c..26e7f356995fa1a2f27466fe57060a6f2166b001 100644 (file)
@@ -1,5 +1,5 @@
 // { dg-do compile }
-// { dg-options "-O2 -fdump-tree-cunrolli-details" }
+// { dg-options "-O2 -fdump-tree-cunrolli1-details" }
 // { dg-skip-if "range for" { *-*-* } { "-std=gnu++98" } { "" } }
 
 template <typename T>
@@ -17,4 +17,4 @@ bar (int (&a)[8], int *b, int *c)
   foo <int> (a, b, c);
 }
 
-// { dg-final { scan-tree-dump "loop with 8 iterations completely unrolled" "cunrolli" } }
+// { dg-final { scan-tree-dump "loop with 8 iterations completely unrolled" "cunrolli1" } }
index 8d24d3d445d5deacc2ec3af2074844df807ce639..8990041e4faf5c06647c3bd8e4de3adee53135f8 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_float } */
-/* { dg-additional-options "-fdisable-tree-cunrolli" } */
+/* { dg-additional-options "-fdisable-tree-cunrolli1" } */
 
 struct vector
 {
index 0f7a5c84481dd45e4004cd4896bdf99260e34e8d..1999792e70c5786890c0b3e6c72a2254507af27f 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-O3 -fdump-tree-cunrolli-details" } */
+/* { dg-options "-O3 -fdump-tree-cunrolli1-details" } */
 
 static int s[10][10][10];
 static int d[10][10][10];
@@ -40,4 +40,4 @@ int main(int argc, char *argv[])
        }       
 }
 
-/* { dg-final-use { scan-tree-dump-times "loop with 10 iterations completely unrolled" 2 "cunrolli"} } */
+/* { dg-final-use { scan-tree-dump-times "loop with 10 iterations completely unrolled" 2 "cunrolli1"} } */
index 29243522caaf00d98bc5036fa220c943aa28ce54..6d5e78560b18a88f3f6a80760006003cb8d1568c 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do link } */
-/* { dg-options "-O3 -fdump-tree-cunrolli-optimized" } */
+/* { dg-options "-O3 -fdump-tree-cunrolli1-optimized" } */
 
 extern void foo(void);
 static int b, f, *a = &b;
@@ -27,5 +27,5 @@ int main() {
 }
 
 /* Verify that we unroll the inner loop early even with -O3.  */
-/* { dg-final { scan-tree-dump "loop with 1 iterations completely unrolled" "cunrolli" } }  */
-/* { dg-final { scan-tree-dump "loop with 3 iterations completely unrolled" "cunrolli" } }  */
+/* { dg-final { scan-tree-dump "loop with 1 iterations completely unrolled" "cunrolli1" } }  */
+/* { dg-final { scan-tree-dump "loop with 3 iterations completely unrolled" "cunrolli1" } }  */
index 0f66aae87bba1dfc1c8eeba55ae634096f290543..98d639bc24dd443e29b8d1c6cf68932324539b5e 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-Ofast -fdisable-tree-cunrolli -fdump-tree-threadfull1-details" } */
+/* { dg-options "-Ofast -fdisable-tree-cunrolli1 -fdump-tree-threadfull1-details" } */
 
 typedef unsigned short u16;
 typedef unsigned char u8;
index f94174f0f1d30d3cb4ad5ec298d22f37b74b7e49..541ad7133ae67de600c912b9aaff615615dceb59 100644 (file)
@@ -1,8 +1,8 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-cunrolli-details=stderr -fno-peel-loops -fno-tree-vrp  -fdisable-tree-cunroll -fenable-tree-cunrolli1" } */
+/* { dg-options "-O2 -fdump-tree-cunrolli1-details=stderr -fno-peel-loops -fno-tree-vrp  -fdisable-tree-cunroll -fenable-tree-cunrolli1" } */
 
 /* Blank lines can occur in the output of
-   -fdump-tree-cunrolli-details=stderr.  */
+   -fdump-tree-cunrolli1-details=stderr.  */
 /* { dg-allow-blank-lines-in-output 1 } */
 
 unsigned a[100], b[100];
index d758ad74395b89e0a9a3e9a12d992998d8ac88e8..38a6aaf29338505acf0f7b79291baf048d7f7a67 100644 (file)
@@ -1,5 +1,5 @@
 ! { dg-do compile }
-! { dg-options "-O2 -fdump-tree-cunrolli-details -fdump-rtl-loop2_unroll-details" }
+! { dg-options "-O2 -fdump-tree-cunrolli1-details -fdump-rtl-loop2_unroll-details" }
 ! Test that
 ! #pragma GCC unroll n
 ! works
@@ -12,7 +12,7 @@ subroutine test1(a)
   DO i=1, 8, 1
     call dummy(a(i))
   ENDDO
-! { dg-final { scan-tree-dump "12:.*: loop with 8 iterations completely unrolled" "cunrolli" } } */
+! { dg-final { scan-tree-dump "12:.*: loop with 8 iterations completely unrolled" "cunrolli1" } } */
 end subroutine test1
 
 subroutine test2(a, n)
index fbb5f24e76fbef834fcb6c03942ace09fd3fa823..0371e3568ce78202433bebdf8e8a2ac0d237acbd 100644 (file)
@@ -1,5 +1,5 @@
 ! { dg-do compile }
-! { dg-options "-O2 -funroll-all-loops -fdump-rtl-loop2_unroll-details -fdump-tree-cunrolli-details" }
+! { dg-options "-O2 -funroll-all-loops -fdump-rtl-loop2_unroll-details -fdump-tree-cunrolli1-details" }
 ! Test that
 ! #pragma GCC unroll n
 ! works
@@ -25,5 +25,5 @@ subroutine test2(a, n)
   ENDDO
 end subroutine test2
 
-! { dg-final { scan-tree-dump "Not unrolling loop .: user didn't want it unrolled completely" "cunrolli" } } */
+! { dg-final { scan-tree-dump "Not unrolling loop .: user didn't want it unrolled completely" "cunrolli1" } } */
 ! { dg-final { scan-rtl-dump-times "Not unrolling loop, user didn't want it unrolled" 2 "loop2_unroll" } } */
index 8b732dd8f44d9751ec7064f2430cacf357087b77..c762f025f59078ff771b84d24e9e3ddd780c062c 100644 (file)
@@ -23,5 +23,5 @@ package body Unroll1 is
 
 end Unroll1;
 
--- { dg-final { scan-tree-dump-times "Not unrolling loop .: user didn't want it unrolled completely" 2 "cunrolli" } }
+-- { dg-final { scan-tree-dump-times "Not unrolling loop .: user didn't want it unrolled completely" 2 "cunrolli1" } }
 -- { dg-final { scan-rtl-dump-times "Not unrolling loop, user didn't want it unrolled" 2 "loop2_unroll" } }
index 1d3a75706de5acfdf9bb211cb731a9bd1cda5b71..13f05283f64e5bd3175163297e50b62221391f16 100644 (file)
@@ -23,4 +23,4 @@ package body Unroll2 is
 
 end Unroll2;
 
--- { dg-final { scan-tree-dump-times "loop with 3 iterations completely unrolled" 2 "cunrolli" } }
+-- { dg-final { scan-tree-dump-times "loop with 3 iterations completely unrolled" 2 "cunrolli1" } }