]> 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>
Fri, 4 Apr 2025 09:45:52 +0000 (10:45 +0100)
commit2b9a842b8206ffaf9ab55324aa990526d9ae9cbe
tree7b50169a89b47ade0d3cff17b3e1c5367dfe6406
parent370f05455e1f96b758ec8983cd105c2566e254bf
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