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

Message ID alpine.BSF.2.20.16.2007262114090.14329@arjuna.pair.com
State New
Headers show
Series
  • gcc.dg/tree-ssa/ssa-dse-26.c: Adjust for mmix.
Related show

Commit Message

Hans-Peter Nilsson July 27, 2020, 1:14 a.m.
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.

Patch

--- gcc/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c.orig	Wed Feb 12 06:58:23 2020
+++ gcc/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c	Mon Jul 27 02:59:34 2020
@@ -31,12 +31,14 @@  constraint_equal (struct constraint a, s
 }

 /* 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 } } } */