Message ID | 8e98f429-27a6-b16e-d1e4-d600a3f7d72e@linux.ibm.com |
---|---|
State | New |
Headers | show |
Series | [testsuite] Update several scev/IVOPTs cases | expand |
On Tue, 2020-02-25 at 17:52 +0800, Kewen.Lin wrote: > Hi, > > 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. > > Bootstrapped/regtested on powerpc64le-linux-gnu (LE). > > Is it ok for trunk? > > BR, > Kewen > ----------- > > gcc/testsuite/ChangeLog > > 2020-02-25 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. OK jeff
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/scev-10.c b/gcc/testsuite/gcc.dg/tree-ssa/scev-10.c index 6c4fca7..ba11191 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/scev-10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/scev-10.c @@ -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" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/scev-11.c b/gcc/testsuite/gcc.dg/tree-ssa/scev-11.c index 2336239..f156885 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/scev-11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/scev-11.c @@ -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" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/scev-12.c b/gcc/testsuite/gcc.dg/tree-ssa/scev-12.c index f598c7b..e2ded46 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/scev-12.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/scev-12.c @@ -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" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/scev-8.c b/gcc/testsuite/gcc.dg/tree-ssa/scev-8.c index bb2ee7a..666dd30 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/scev-8.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/scev-8.c @@ -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" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/scev-9.c b/gcc/testsuite/gcc.dg/tree-ssa/scev-9.c index 2863918..cbd7c85 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/scev-9.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/scev-9.c @@ -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" } } */