]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Relax scan-tree-dump strict pattern matching [PR118597]
authorVictor Do Nascimento <victor.donascimento@arm.com>
Wed, 2 Apr 2025 13:22:31 +0000 (14:22 +0100)
committerVictor Do Nascimento <victor.donascimento@arm.com>
Thu, 3 Apr 2025 14:21:16 +0000 (15:21 +0100)
commit701bc728c31a84b6eff7d77f48c6ab270af007cf
tree8dde4a96f78d107bb0da16a64d5ae960e2f601bb
parentb6aafe9a5b1452f3bafae5889aebad0b3de408a3
vect: Relax scan-tree-dump strict pattern matching [PR118597]

Using specific SSA names in pattern matching in `dg-final' makes tests
"unstable", in that changes in passes prior to the pass whose dump is
analyzed in the particular test may change the numbering of the SSA
variables, causing the test to start failing spuriously.

We thus switch from specific SSA names to the use of a multi-line
regular expression making use of capture groups for matching particular
variables across different statements, ensuring the test will pass
more consistently across different versions of GCC.

PR testsuite/118597

gcc/testsuite/ChangeLog:

* gcc.dg/vect/vect-fncall-mask.c: Update test directives.
gcc/testsuite/gcc.dg/vect/vect-fncall-mask.c