aarch64: fix eh_return-3.c test

Message ID 20231204145113.1354235-1-szabolcs.nagy@arm.com
State Committed
Commit 4f71c391ca020e5b080116826658b2c94ee32eb0
Headers
Series aarch64: fix eh_return-3.c test |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gcc_build--master-arm success Testing passed

Commit Message

Szabolcs Nagy Dec. 4, 2023, 2:51 p.m. UTC
  gcc/testsuite/ChangeLog:

	* gcc.target/aarch64/eh_return-3.c: Fix when retaa is available.
---
 gcc/testsuite/gcc.target/aarch64/eh_return-3.c | 4 ++++
 1 file changed, 4 insertions(+)
  

Comments

Richard Sandiford Dec. 4, 2023, 5:05 p.m. UTC | #1
Szabolcs Nagy <szabolcs.nagy@arm.com> writes:
> gcc/testsuite/ChangeLog:
>
> 	* gcc.target/aarch64/eh_return-3.c: Fix when retaa is available.

OK, thanks.

Richard

> ---
>  gcc/testsuite/gcc.target/aarch64/eh_return-3.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/gcc/testsuite/gcc.target/aarch64/eh_return-3.c b/gcc/testsuite/gcc.target/aarch64/eh_return-3.c
> index a17baa86501..d180fa7c455 100644
> --- a/gcc/testsuite/gcc.target/aarch64/eh_return-3.c
> +++ b/gcc/testsuite/gcc.target/aarch64/eh_return-3.c
> @@ -12,8 +12,12 @@
>  **	cbz	x4, .*
>  **	add	sp, sp, x5
>  **	br	x6
> +** (
>  **	hint	29 // autiasp
>  **	ret
> +** |
> +**	retaa
> +** )
>  **	mov	x5, x0
>  **	mov	x4, 1
>  **	mov	x6, x1
  

Patch

diff --git a/gcc/testsuite/gcc.target/aarch64/eh_return-3.c b/gcc/testsuite/gcc.target/aarch64/eh_return-3.c
index a17baa86501..d180fa7c455 100644
--- a/gcc/testsuite/gcc.target/aarch64/eh_return-3.c
+++ b/gcc/testsuite/gcc.target/aarch64/eh_return-3.c
@@ -12,8 +12,12 @@ 
 **	cbz	x4, .*
 **	add	sp, sp, x5
 **	br	x6
+** (
 **	hint	29 // autiasp
 **	ret
+** |
+**	retaa
+** )
 **	mov	x5, x0
 **	mov	x4, 1
 **	mov	x6, x1