Alexandre Oliva <ol...@adacore.com> writes:
> vxworks calls cacheTextUpdate instead of __clear_cache.
>
> Adjust the sme/nonlocal_goto_*.c tests for inexact matches.
>
> Regstrapped on x86_64-linux-gnu.  Also tested with gcc-14 on aarch64-,
> arm-, x86-, and x86_64-vxworks7r2.  Ok to install?
>
>
> 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..a110405873dbd 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      .*ache.*

.* matches newlines, so how about:

        bl      [^\n]*[cC]ache[^\n]*

instead?  OK if that works.

Thanks,
Richard

>  **   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..e0e4605e76825 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      .*ache.*
>  **   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..ee3803bc6b9b2 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      .*ache.*
>  **   smstart sm
>  **   add     x0, .*
>  **   smstop  sm

Reply via email to