RISC-V: Allow any temp register to be used in amo tests

We artifically restrict the temp registers to be a[0-9]+ when other
registers like t[0-9]+ are valid too. Update to make the regex
accept any register for the temp value.

gcc/testsuite/ChangeLog:

	* gcc.target/riscv/amo/amo-table-a-6-load-1.c: Update temp register regex.
	* gcc.target/riscv/amo/amo-table-a-6-load-2.c: Ditto.
	* gcc.target/riscv/amo/amo-table-a-6-load-3.c: Ditto.
	* gcc.target/riscv/amo/amo-table-a-6-store-1.c: Ditto.
	* gcc.target/riscv/amo/amo-table-a-6-store-2.c: Ditto.
	* gcc.target/riscv/amo/amo-table-a-6-store-compat-3.c: Ditto.
	* gcc.target/riscv/amo/amo-table-ztso-load-1.c: Ditto.
	* gcc.target/riscv/amo/amo-table-ztso-load-2.c: Ditto.
	* gcc.target/riscv/amo/amo-table-ztso-load-3.c: Ditto.
	* gcc.target/riscv/amo/amo-table-ztso-store-1.c: Ditto.
	* gcc.target/riscv/amo/amo-table-ztso-store-2.c: Ditto.
	* gcc.target/riscv/amo/amo-table-ztso-store-3.c: Ditto.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
This commit is contained in:
Patrick O'Neill
2024-06-12 11:19:13 -07:00
parent 6343adcef7
commit 439c0cc9f7
12 changed files with 24 additions and 24 deletions
@@ -6,8 +6,8 @@
/*
** foo:
** lw\ta[0-9]+,0\(a0\)
** sw\ta[0-9]+,0\(a1\)
** lw\t[atx][0-9]+,0\(a0\)
** sw\t[atx][0-9]+,0\(a1\)
** ret
*/
void foo (int* bar, int* baz)
@@ -6,9 +6,9 @@
/*
** foo:
** lw\ta[0-9]+,0\(a0\)
** lw\t[atx][0-9]+,0\(a0\)
** fence\tr,rw
** sw\ta[0-9]+,0\(a1\)
** sw\t[atx][0-9]+,0\(a1\)
** ret
*/
void foo (int* bar, int* baz)
@@ -7,9 +7,9 @@
/*
** foo:
** fence\trw,rw
** lw\ta[0-9]+,0\(a0\)
** lw\t[atx][0-9]+,0\(a0\)
** fence\tr,rw
** sw\ta[0-9]+,0\(a1\)
** sw\t[atx][0-9]+,0\(a1\)
** ret
*/
void foo (int* bar, int* baz)
@@ -6,8 +6,8 @@
/*
** foo:
** lw\ta[0-9]+,0\(a1\)
** sw\ta[0-9]+,0\(a0\)
** lw\t[atx][0-9]+,0\(a1\)
** sw\t[atx][0-9]+,0\(a0\)
** ret
*/
void foo (int* bar, int* baz)
@@ -6,9 +6,9 @@
/*
** foo:
** lw\ta[0-9]+,0\(a1\)
** lw\t[atx][0-9]+,0\(a1\)
** fence\trw,w
** sw\ta[0-9]+,0\(a0\)
** sw\t[atx][0-9]+,0\(a0\)
** ret
*/
void foo (int* bar, int* baz)
@@ -6,9 +6,9 @@
/*
** foo:
** lw\ta[0-9]+,0\(a1\)
** lw\t[atx][0-9]+,0\(a1\)
** fence\trw,w
** sw\ta[0-9]+,0\(a0\)
** sw\t[atx][0-9]+,0\(a0\)
** fence\trw,rw
** ret
*/
@@ -7,8 +7,8 @@
/*
** foo:
** lw\ta[0-9]+,0\(a0\)
** sw\ta[0-9]+,0\(a1\)
** lw\t[atx][0-9]+,0\(a0\)
** sw\t[atx][0-9]+,0\(a1\)
** ret
*/
void foo (int* bar, int* baz)
@@ -7,8 +7,8 @@
/*
** foo:
** lw\ta[0-9]+,0\(a0\)
** sw\ta[0-9]+,0\(a1\)
** lw\t[atx][0-9]+,0\(a0\)
** sw\t[atx][0-9]+,0\(a1\)
** ret
*/
void foo (int* bar, int* baz)
@@ -8,8 +8,8 @@
/*
** foo:
** fence\trw,rw
** lw\ta[0-9]+,0\(a0\)
** sw\ta[0-9]+,0\(a1\)
** lw\t[atx][0-9]+,0\(a0\)
** sw\t[atx][0-9]+,0\(a1\)
** ret
*/
void foo (int* bar, int* baz)
@@ -7,8 +7,8 @@
/*
** foo:
** lw\ta[0-9]+,0\(a1\)
** sw\ta[0-9]+,0\(a0\)
** lw\t[atx][0-9]+,0\(a1\)
** sw\t[atx][0-9]+,0\(a0\)
** ret
*/
void foo (int* bar, int* baz)
@@ -7,8 +7,8 @@
/*
** foo:
** lw\ta[0-9]+,0\(a1\)
** sw\ta[0-9]+,0\(a0\)
** lw\t[atx][0-9]+,0\(a1\)
** sw\t[atx][0-9]+,0\(a0\)
** ret
*/
void foo (int* bar, int* baz)
@@ -7,8 +7,8 @@
/*
** foo:
** lw\ta[0-9]+,0\(a1\)
** sw\ta[0-9]+,0\(a0\)
** lw\t[atx][0-9]+,0\(a1\)
** sw\t[atx][0-9]+,0\(a0\)
** fence\trw,rw
** ret
*/