[testsuites] Update several scev/IVOPTs cases
authorKewen Lin <linkw@linux.ibm.com>
Mon, 2 Mar 2020 09:36:30 +0000 (03:36 -0600)
committerKewen Lin <linkw@linux.ibm.com>
Mon, 2 Mar 2020 09:36:30 +0000 (03:36 -0600)
Several scev/IVOPTs cases aim to check some array references are sceved and
later marked as REFERENCE ADDRESS IV groups. With IV group type dumping
improving, these check strings can be improved. Otherwise, they become fragile
with dumping changes.

This patch is to keep check strings concise, meanwhile recover the coverage of
case scev-8.c.

gcc/testsuite/ChangeLog

2020-03-02  Kewen Lin  <linkw@gcc.gnu.org>

  * gcc.dg/tree-ssa/scev-8.c: Revise check string.
  * gcc.dg/tree-ssa/scev-9.c: Ditto.
  * gcc.dg/tree-ssa/scev-10.c: Ditto.
  * gcc.dg/tree-ssa/scev-11.c: Ditto.
  * gcc.dg/tree-ssa/scev-12.c: Ditto.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/scev-10.c
gcc/testsuite/gcc.dg/tree-ssa/scev-11.c
gcc/testsuite/gcc.dg/tree-ssa/scev-12.c
gcc/testsuite/gcc.dg/tree-ssa/scev-8.c
gcc/testsuite/gcc.dg/tree-ssa/scev-9.c

index 5c43024..a1c3803 100644 (file)
@@ -1,3 +1,11 @@
+2020-03-02  Kewen Lin  <linkw@gcc.gnu.org>
+
+       * gcc.dg/tree-ssa/scev-8.c: Revise check string.
+       * gcc.dg/tree-ssa/scev-9.c: Ditto.
+       * gcc.dg/tree-ssa/scev-10.c: Ditto.
+       * gcc.dg/tree-ssa/scev-11.c: Ditto.
+       * gcc.dg/tree-ssa/scev-12.c: Ditto.
+
 2020-03-01  Martin Sebor  <msebor@redhat.com>
 
        PR c++/92721
index 6c4fca7..ba11191 100644 (file)
@@ -18,5 +18,5 @@ foo (signed char s, signed char l)
 }
 
 /* Address of array reference is scev.  */
-/* { dg-final { scan-tree-dump-times "  Type:\\tREFERENCE ADDRESS\n  Use \[0-9\].\[0-9\]:" 1 "ivopts" } } */
+/* { dg-final { scan-tree-dump-times "  Type:\\tREFERENCE ADDRESS\n" 1 "ivopts" } } */
 
index 2336239..f156885 100644 (file)
@@ -23,4 +23,4 @@ foo (int n)
 }
 
 /* Address of array reference to b is scev.  */
-/* { dg-final { scan-tree-dump-times "  Type:\\tREFERENCE ADDRESS\n  Use \[0-9\].\[0-9\]:" 2 "ivopts" } } */
+/* { dg-final { scan-tree-dump-times "  Type:\\tREFERENCE ADDRESS\n" 2 "ivopts" } } */
index f598c7b..e2ded46 100644 (file)
@@ -24,4 +24,4 @@ foo (int x, int n)
 }
 
 /* Address of array reference to b is not scev.  */
-/* { dg-final { scan-tree-dump-times "  Type:\\tREFERENCE ADDRESS\n  Use \[0-9\].\[0-9\]:" 1 "ivopts" } } */
+/* { dg-final { scan-tree-dump-times "  Type:\\tREFERENCE ADDRESS\n" 1 "ivopts" } } */
index bb2ee7a..666dd30 100644 (file)
@@ -59,4 +59,4 @@ foo4 (unsigned char s, unsigned char l)
 }
 
 /* Address of array references are not scevs.  */
-/* { dg-final { scan-tree-dump-not "  Type:\\tADDRESS\n  Use \[0-9\].\[0-9\]:" "ivopts" } } */
+/* { dg-final { scan-tree-dump-not "  Type:\\tREFERENCE ADDRESS\n" "ivopts" } } */
index 2863918..cbd7c85 100644 (file)
@@ -18,5 +18,5 @@ foo (unsigned char s, unsigned char l)
 }
 
 /* Address of array reference is scev.  */
-/* { dg-final { scan-tree-dump-times "  Type:\\tREFERENCE ADDRESS\n  Use \[0-9\].\[0-9\]:" 1 "ivopts" } } */
+/* { dg-final { scan-tree-dump-times "  Type:\\tREFERENCE ADDRESS\n" 1 "ivopts" } } */