On May 20, 2025, Richard Sandiford <richard.sandif...@arm.com> wrote:
> Alexandre Oliva <ol...@adacore.com> writes: >> -** bl __clear_cache >> +** bl .*ache.* > .* matches newlines, so how about: > bl [^\n]*[cC]ache[^\n]* > instead? OK if that works. Sure, thanks! Here's what I've installed: [testsuite] [aarch64] match alt cache clear names in sme nonlocal_goto tests vxworks calls cacheTextUpdate instead of __clear_cache. Adjust the sme/nonlocal_goto_*.c tests for inexact matches. for gcc/testsuite/ChangeLog * gcc.target/aarch64/sme/nonlocal_goto_1.c: Match vxworks cache-clearing function as well. * gcc.target/aarch64/sme/nonlocal_goto_2.c: Likewise. * gcc.target/aarch64/sme/nonlocal_goto_3.c: Likewise. --- .../gcc.target/aarch64/sme/nonlocal_goto_1.c | 2 +- .../gcc.target/aarch64/sme/nonlocal_goto_2.c | 2 +- .../gcc.target/aarch64/sme/nonlocal_goto_3.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c index 4e3869fcc9eec..572c17a06d7c1 100644 --- a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c +++ b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c @@ -13,7 +13,7 @@ void run(void (*)()); ** ldr x16, \1 ** tbz x16, 0, .* ** smstop sm -** bl __clear_cache +** bl [^\n]*[cC]ache[^\n]* ** ldr x16, \1 ** tbz x16, 0, .* ** smstart sm diff --git a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c index 2a2db72c3a080..721a2b7898636 100644 --- a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c +++ b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c @@ -7,7 +7,7 @@ void run(void (*)()); ** foo: ** ... ** smstop sm -** bl __clear_cache +** bl [^\n]*[cC]ache[^\n]* ** smstart sm ** add x0, .* ** smstop sm diff --git a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c index 022b04052c543..25db9283b169a 100644 --- a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c +++ b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c @@ -9,7 +9,7 @@ void run(void (*)()); ** smstart sm ** ... ** smstop sm -** bl __clear_cache +** bl [^\n]*[cC]ache[^\n]* ** smstart sm ** add x0, .* ** smstop sm -- Alexandre Oliva, happy hacker https://blog.lx.oliva.nom.br/ Free Software Activist FSFLA co-founder GNU Toolchain Engineer More tolerance and less prejudice are key for inclusion and diversity. Excluding neuro-others for not behaving ""normal"" is *not* inclusive!