From: Alexandre Oliva Date: Wed, 21 May 2025 09:20:22 +0000 (-0300) Subject: [testsuite] [aarch64] match alt cache clear names in sme nonlocal_goto tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b75decf5297838ef9ddfb842da0117adbe3f975;p=thirdparty%2Fgcc.git [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. --- 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 4e3869fcc9e..572c17a06d7 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 2a2db72c3a0..721a2b78986 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 022b04052c5..25db9283b16 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