On 8/24/23 09:45, Jivan Hakobyan via Gcc-patches wrote:
Subject:
RISC-V: Fix stack_save_restore_1/2 test cases
From:
Jivan Hakobyan via Gcc-patches <gcc-patches@gcc.gnu.org>
Date:
8/24/23, 09:45
To:
GCC Patches <gcc-patches@gcc.gnu.org>, Jeff Law <j...@ventanamicro.com>
This patch fixes failing stack_save_restore_1/2 test cases.
After 6619b3d4c15c commit size of the frame was changed.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/stack_save_restore_1.c: Update frame size
* gcc.target/riscv/stack_save_restore_2.c: Likewise.
Rather than use specific values for the size of the stack in this test,
can we match something a little more general so that we're not
constantly having to come back and adjust the stack offset?
I'm not real familiar with the check-function-bodies capabilities, but I
suspect we can probably use a regexp like [0-9]+ rather than 2016, 2032,
etc.
Jeff