aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2025-03-11 15:39:00 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2025-03-11 15:39:00 +0000
commit456924e078c0312f9a0f07aa829ab2b6fdcf237c (patch)
tree962a01aec16573efe58863331005b24b7c67f2f4 /gcc
parent4001281d69e9f8e01d2183f0e931e15ec4a522eb (diff)
downloadgcc-456924e078c0312f9a0f07aa829ab2b6fdcf237c.zip
gcc-456924e078c0312f9a0f07aa829ab2b6fdcf237c.tar.gz
gcc-456924e078c0312f9a0f07aa829ab2b6fdcf237c.tar.bz2
aarch64: Generalise tbz_2.c
For many functions in tbz_2.c, it doesn't matter whether the code tests a 32-bit or a 64-bit register. g6-g8 have started testing 32-bit registers, but the others could in future too. gcc/testsuite/ * gcc.target/aarch64/tbz_2.c: Accept both 32-bit and 64-bit registers.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/aarch64/tbz_2.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/tbz_2.c b/gcc/testsuite/gcc.target/aarch64/tbz_2.c
index 8ca69e9..8d41e58 100644
--- a/gcc/testsuite/gcc.target/aarch64/tbz_2.c
+++ b/gcc/testsuite/gcc.target/aarch64/tbz_2.c
@@ -20,7 +20,7 @@ void g1(int x)
/*
** g2:
-** tbnz x0, 0, .L[0-9]+
+** tbnz [wx]0, 0, .L[0-9]+
** ret
** ...
*/
@@ -32,7 +32,7 @@ void g2(int x)
/*
** g3:
-** tbnz x0, 3, .L[0-9]+
+** tbnz [wx]0, 3, .L[0-9]+
** ret
** ...
*/
@@ -44,7 +44,7 @@ void g3(int x)
/*
** g4:
-** tbnz w0, #31, .L[0-9]+
+** tbnz [wx]0, #31, .L[0-9]+
** ret
** ...
*/
@@ -56,7 +56,7 @@ void g4(int x)
/*
** g5:
-** tst w0, 255
+** tst [wx]0, 255
** bne .L[0-9]+
** ret
** ...
@@ -69,7 +69,7 @@ void g5(char x)
/*
** g6:
-** tbnz x0, 0, .L[0-9]+
+** tbnz [wx]0, 0, .L[0-9]+
** ret
** ...
*/
@@ -81,7 +81,7 @@ void g6(char x)
/*
** g7:
-** tst x0, 3
+** tst [wx]0, 3
** bne .L[0-9]+
** ret
** ...
@@ -94,7 +94,7 @@ void g7(char x)
/*
** g8:
-** tbnz x0, 7, .L[0-9]+
+** tbnz [wx]0, 7, .L[0-9]+
** ret
** ...
*/
@@ -106,7 +106,7 @@ void g8(char x)
/*
** g9:
-** tbnz w0, 0, .L[0-9]+
+** tbnz [wx]0, 0, .L[0-9]+
** ret
** ...
*/
@@ -118,7 +118,7 @@ void g9(bool x)
/*
** g10:
-** tbnz w0, 0, .L[0-9]+
+** tbnz [wx]0, 0, .L[0-9]+
** ret
** ...
*/