]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Make rv32i_zcmp testcase more robust
authorPatrick O'Neill <patrick@rivosinc.com>
Mon, 30 Oct 2023 16:30:01 +0000 (09:30 -0700)
committerPatrick O'Neill <patrick@rivosinc.com>
Mon, 30 Oct 2023 16:58:54 +0000 (09:58 -0700)
commit68880e40533c41c89eb72247c3080703ad09270c
treea7ff9e21fe7033c2a456a96d1681d38ca67fb8c2
parenta3da9adeb457d4f01c4e695a9621f90c2e2a5e68
RISC-V: Make rv32i_zcmp testcase more robust

GCC recently changed its register allocator which causes this
testcase to fail.
This patch updates the regex to be more robust to change by accepting
any s register in the range of 1-9 for cm.push and cm.popret insns.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rv32i_zcmp.c: Accept any register in the
range of 1-9 for cm.push and cm.popret insns.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/testsuite/gcc.target/riscv/rv32i_zcmp.c