]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [aarch64] match alt cache clear names in sme nonlocal_goto tests
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 May 2025 09:20:22 +0000 (06:20 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 May 2025 09:20:22 +0000 (06:20 -0300)
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/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c
gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c
gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c

index 4e3869fcc9eecc60b7ce4ec43ded2b8a53c28a3c..572c17a06d7c13e2314c4478665a799f8787b279 100644 (file)
@@ -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
index 2a2db72c3a0806fa40130435ec33db1bb60da6e7..721a2b78986361947465b2497979445ec2f002ed 100644 (file)
@@ -7,7 +7,7 @@ void run(void (*)());
 ** foo:
 **     ...
 **     smstop  sm
-**     bl      __clear_cache
+**     bl      [^\n]*[cC]ache[^\n]*
 **     smstart sm
 **     add     x0, .*
 **     smstop  sm
index 022b04052c5430bde453c7ce9784cbe5029cdf99..25db9283b169a9d2c9dc11d8744e590f43d0f46c 100644 (file)
@@ -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