]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Replace MMIX-specific adjustments with TARGET_CALLEE_COPIES-adjustments
authorHans-Peter Nilsson <hp@axis.com>
Fri, 3 Jan 2025 17:34:14 +0000 (18:34 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Sat, 4 Jan 2025 01:56:15 +0000 (02:56 +0100)
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 ".".

gcc/testsuite/gcc.dg/tree-ssa/forwprop-36.c
gcc/testsuite/gcc.dg/tree-ssa/vector-4.c

index f3871bf45e86e9783d2726f68b271696f3e56987..d00b957a7d675950e67db9c1c007b858251fb570 100644 (file)
@@ -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" } } */
index 982a2a47d6a01c8b8698c63b3148ccd909e60206..03d70fde55a8c1faf3290e4e931fec749b81dc13 100644 (file)
@@ -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" } } */