Fix "regression" reported by c6x testing.
authorJeff Law <law@redhat.com>
Thu, 30 Jan 2020 16:39:57 +0000 (09:39 -0700)
committerJeff Law <law@redhat.com>
Thu, 30 Jan 2020 16:39:57 +0000 (09:39 -0700)
* gcc.dg/tree-ssa/ssa-dse-26.c: Make existing dg-final scan
conditional on !c6x.  Add dg-final scan pattern for c6x.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c

index 0247d2cd083a6dd1c78059d5c08f89aafeb286eb..269adb29e94650de1374d8057d577334a413e8e6 100644 (file)
@@ -1,3 +1,8 @@
+2020-01-30  Jeff Law  <law@redhat.com
+
+       * gcc.dg/tree-ssa/ssa-dse-26.c: Make existing dg-final scan
+       conditional on !c6x.  Add dg-final scan pattern for c6x.
+
 2020-01-30  Martin Sebor  <msebor@redhat.com>
 
        PR middle-end/92323
index 836a8092ab902fde5ce0dd0c6d1352c6065d9223..8abc28baccb64aafb124b1a14dd8bf9892c2a32d 100644 (file)
@@ -30,6 +30,13 @@ constraint_equal (struct constraint a, struct constraint b)
     && constraint_expr_equal (a.rhs, b.rhs);
 }
 
-/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 1 "dse1" } } */
-/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 1 "dse1" } } */
+/* Most targets should be using this test.  */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 1 "dse1" { target { ! tic6x-*-* } } } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 1 "dse1" { target { ! tic6x-*-* } } } } */
+
+/* The c6x port generates significantly different gimple which
+   changes the SRA and DSE decisions.   Verify we remove all
+   dead stores.  */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: \[ax\].. = " 2 "dse1" { target tic6x-*-* } } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: \[by\].. = " 2 "dse1" { target tic6x-*-* } } } */