Fix two testcases for ssa names which are more than 1 digit
authorAndrew Pinski <apinski@marvell.com>
Sun, 23 May 2021 17:35:40 +0000 (17:35 +0000)
committerAndrew Pinski <apinski@marvell.com>
Mon, 24 May 2021 01:11:15 +0000 (01:11 +0000)
commit1040a44aa23f7b106e1c96e6a247ea6fd4021258
tree229823a6e33a9258a69f85a502c5c6db9871d9ac
parentb94a5024d78fa430a5251fa25ffba51836c83f7c
Fix two testcases for ssa names which are more than 1 digit

phi-opt-10.c and phi-opt-7.c both depend on currently that some ssa name
versions are one digit long which is not always correct. This fixes the
problem by detecting digits rather than just using '.'.

Committed as obvious after a bootstrap/test.

Thanks,
Andrew Pinski

gcc/testsuite/ChangeLog
* gcc.dg/tree-ssa/phi-opt-10.c: Use "\[0-9\]*" instead of '.'
when matching ssa name version.
* gcc.dg/tree-ssa/phi-opt-7.c: Likewise.
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-10.c
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-7.c