]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up refactored scanltranstree.exp functions [PR116522]
authorAlex Coplan <alex.coplan@arm.com>
Thu, 29 Aug 2024 10:31:40 +0000 (11:31 +0100)
committerAlex Coplan <alex.coplan@arm.com>
Thu, 29 Aug 2024 10:34:26 +0000 (11:34 +0100)
When adding RTL variants of the scan-ltrans-tree* functions in:
r15-3254-g3f51f0dc88ec21c1ec79df694200f10ef85915f4
I messed up the name of the underlying scan function to invoke.  The
code currently attempts to invoke functions named
scan{,-not,-dem,-dem-not} but should instead be invoking
scan-dump{,-not,-dem,-dem-not}.  This patch fixes that.

gcc/testsuite/ChangeLog:

PR testsuite/116522
* lib/scanltranstree.exp: Fix name of underlying scan function
used for scan-ltrans-{tree,rtl}-dump{,-not,-dem,-dem-not}.

gcc/testsuite/lib/scanltranstree.exp

index a7d4de3765fc4a41bacd1cc7d8e3daa628b46909..3d85813ea2f90c5ae31a08575b9aa1a0e3166c84 100644 (file)
@@ -24,7 +24,7 @@ load_lib scandump.exp
 foreach ir { tree rtl } {
     foreach modifier { {} -not -dem -dem-not } {
        eval [string map [list @NAME@ scan-ltrans-$ir-dump$modifier \
-                              @SCAN@ scan$modifier \
+                              @SCAN@ scan-dump$modifier \
                               @TYPE@ ltrans-$ir \
                               @SUFFIX@ [string index $ir 0]] {
            proc @NAME@ { args } {