]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc.dg/tree-ssa/ssa-dse-26.c: Adjust for mmix.
authorHans-Peter Nilsson <hp@bitrange.com>
Mon, 27 Jul 2020 01:11:46 +0000 (03:11 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Mon, 27 Jul 2020 01:11:46 +0000 (03:11 +0200)
The variables are "localized" using ASM_PN_FORMAT for MMIX and the
lines to match look like:
  Deleted dead store: y::4 = y;
  Deleted dead store: x::3 = x;

gcc/testsuite:
* gcc.dg/tree-ssa/ssa-dse-26.c: Adjust for mmix.

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

index 8abc28baccb64aafb124b1a14dd8bf9892c2a32d..271e666f2652e0389d41bbcfb6b39f1abaaa6b65 100644 (file)
@@ -31,12 +31,14 @@ constraint_equal (struct constraint a, struct constraint b)
 }
 
 /* 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-*-* } } } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 1 "dse1" { target { ! { tic6x-*-* mmix-knuth-mmixware } } } } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 1 "dse1" { target { ! { tic6x-*-* mmix-knuth-mmixware } } } } } */
 
 /* The c6x port generates significantly different gimple which
    changes the SRA and DSE decisions.   Verify we remove all
-   dead stores.  */
+   dead stores.  Similarly for mmix.  */
 /* { 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-*-* } } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: x::. = " 1 "dse1" { target mmix-knuth-mmixware } } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: y::. = " 1 "dse1" { target mmix-knuth-mmixware } } } */