GCC recently changed to emit __riscv_restore_5 which causes this
testcase to fail.
This patch updates the regex to be more robust to change by accepting
any number after __riscv_save_ and __riscv_restore_.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/stack_save_restore_2.c: Accept any number
after __riscv_save_ and __riscv_restore_.
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
/*
** bar:
-** call t0,__riscv_save_(3|4)
+** call t0,__riscv_save_[0-9]+
** addi sp,sp,-[0-9]+
** ...
** li t0,-[0-9]+
** add sp,sp,t0
** ...
** addi sp,sp,[0-9]+
-** tail __riscv_restore_(3|4)
+** tail __riscv_restore_[0-9]+
*/
int bar()
{