https://gcc.gnu.org/g:ea228f22be816023def6cdb48e9f10a60f370833
commit r15-6555-gea228f22be816023def6cdb48e9f10a60f370833 Author: Hans-Peter Nilsson <h...@axis.com> Date: Fri Jan 3 18:34:14 2025 +0100 testsuite: Replace MMIX-specific adjustments with TARGET_CALLEE_COPIES-adjustments With the dump now emitting "privatized symbols" in the default "%s.%lu" format also for MMIX, there's still a difference for MMIX. This time it's because numbers have changed (copies introduced before this point) because it has TARGET_CALLEE_COPIES yielding true. Redundant copies may have been elided at this point, but the change in name remains. Since that's true for other targets too, an obvious change is to generalize the tested patterns to include TARGET_CALLEE_COPIES-true targets, as a brief inspection of the history of these tests shows that the point of these tests lie not in whether copies have been done but in the part of the pattern that match a constant. Also fixed up a "." where there should have been a "\\.". * gcc.dg/tree-ssa/vector-4.c: Replace MMIX adjustments with TARGET_CALLEE_COPIES-agnostic adjustments. * gcc.dg/tree-ssa/forwprop-36.c: Ditto. Correct pattern to match a literal ".". Diff: --- gcc/testsuite/gcc.dg/tree-ssa/forwprop-36.c | 3 +-- gcc/testsuite/gcc.dg/tree-ssa/vector-4.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-36.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-36.c index f3871bf45e86..d00b957a7d67 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-36.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-36.c @@ -21,5 +21,4 @@ main () return 0; } -/* { dg-final { scan-tree-dump "if \\(b.0_\[0-9\]+ != 0\\)" "cddce1" { target { ! mmix-knuth-mmixware } } } } */ -/* { dg-final { scan-tree-dump "if \\(b::1_\[0-9\]+ != 0\\)" "cddce1" { target { mmix-knuth-mmixware } } } } */ +/* { dg-final { scan-tree-dump "if \\(b\\.\[01\]_\[0-9\]+ != 0\\)" "cddce1" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vector-4.c b/gcc/testsuite/gcc.dg/tree-ssa/vector-4.c index 982a2a47d6a0..03d70fde55a8 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vector-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vector-4.c @@ -10,6 +10,5 @@ v4si vs (v4si a, v4si b) } /* The compound literal should be placed directly in the vec_perm. */ -/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR <a, b, { 0, 4, 1, 5 }>;" 1 "gimple" { target { ! mmix-knuth-mmixware } } } } */ -/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR <a::., b::., { 0, 4, 1, 5 }>;" 1 "gimple" { target mmix-knuth-mmixware } } } */ +/* { dg-final { scan-tree-dump-times "VEC_PERM_EXPR <a(?:\\.0)?, b(?:\\.1)?, { 0, 4, 1, 5 }>;" 1 "gimple" } } */