[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 5c43024244558b7a59e812250e260b7142f22ef3..a1c38037b0fac026979a4e36f6767783f066133d 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 6c4fca79fa4ae389c045d63bc7c8c9687139e80e..ba111914b3c84e08b45ceebe0a7f8a66aafac395 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 2336239652e5f0fd7b9e431a469886b597ca3fe7..f15688538ea2d0ebb616f5802fa451bbfafbed93 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 f598c7b2955e1c939050a2c134a23bed46f10bd9..e2ded46047e900cc7e602e4b4ae0e9c6c771c8c7 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 bb2ee7a0a63cb56b7f4f1b1f894148db6ec546ab..666dd30bfbe51bfb1a81d8744bf69989097d1ed3 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 2863918a687fbf5639687f8b04bcc05b348395eb..cbd7c85edfaab2c744e3cffeeb283e5baae34058 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" } } */