ssa-dse-1.C: Don't match exact number of chars of = {} store.
authorJakub Jelinek <jakub@redhat.com>
Thu, 13 Jun 2019 11:29:13 +0000 (13:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 Jun 2019 11:29:13 +0000 (13:29 +0200)
* g++.dg/tree-ssa/ssa-dse-1.C: Don't match exact number of chars of
= {} store.
* g++.dg/tree-ssa/pr31146.C: Change -fdump-tree-forwprop to
-fdump-tree-forwprop1 in dg-options.  Expect <int[5]> in MEM.

From-SVN: r272240

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/pr31146.C
gcc/testsuite/g++.dg/tree-ssa/ssa-dse-1.C

index ac0290971eb6929319fc90681a4559433889be44..5dbfc35df03fe84cd8b6694ba7164974cc1b3b6c 100644 (file)
@@ -1,3 +1,10 @@
+2019-06-13  Jakub Jelinek  <jakub@redhat.com>
+
+       * g++.dg/tree-ssa/ssa-dse-1.C: Don't match exact number of chars of
+       = {} store.
+       * g++.dg/tree-ssa/pr31146.C: Change -fdump-tree-forwprop to
+       -fdump-tree-forwprop1 in dg-options.  Expect <int[5]> in MEM.
+
 2019-06-13  Richard Biener  <rguenther@suse.de>
 
        * gcc.dg/vect/vect-version-1.c: New testcase.
index 1a77ea963d0d509364d01c1d54cc8eda5f629a3c..665370db6605b50960daf10afa1243bf7703e7db 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O -fdump-tree-forwprop" } */
+/* { dg-options "-O -fdump-tree-forwprop1" } */
 
 /* We should be able to optimize this to i[j] = 1 during
    early optimizations.  */
@@ -12,4 +12,4 @@ void foo (int j)
   *q = 1;
 }
 
-/* { dg-final { scan-tree-dump "MEM\\\[.*&i\\\]\\\[j.*\\\] =.* 1;" "forwprop1" } } */
+/* { dg-final { scan-tree-dump "MEM <int\\\[5\\\]> \\\[.*&i\\\]\\\[j.*\\\] =.* 1;" "forwprop1" } } */
index 7bcb65af13cf61ec0096e2cf1d089a2a841f92a4..bed4886dc14c9214a4d24463b9529ac019637cf0 100644 (file)
@@ -98,4 +98,4 @@ int main()
 
 
 /* { dg-final { scan-tree-dump-times "MEM\\\[\\(struct FixBuf \\*\\)&<retval> \\+ \[0-9\]+B\\\] = {}" 1 "dse1" { target { ! store_merge } } } }
-   { dg-final { scan-tree-dump-times "MEM <char\\\[176]> \\\[\\(struct FixBuf \\*\\)&<retval> \\+ \[0-9\]+B\\\] = {}" 1 "dse1" { target { store_merge } } } } */
+   { dg-final { scan-tree-dump-times "MEM <char\\\[\[0-9\]+]> \\\[\\(struct FixBuf \\*\\)&<retval> \\+ \[0-9\]+B\\\] = {}" 1 "dse1" { target { store_merge } } } } */