Re: [PATCH] RISC-V: Fix the V calling convention

2022-09-02 Thread Kito Cheng via Gcc-patches
CALL_USED_REGISTERS already set those registers to 1, but I think it is worth doing some clean up like this to prevent confusion. On Thu, Sep 1, 2022 at 11:28 AM Palmer Dabbelt wrote: > > The V registers are always clobbered on calls. > > gcc/ChangeLog > > * config/riscv/riscv.cc (riscv_c

[PATCH] RISC-V: Fix the V calling convention

2022-08-31 Thread Palmer Dabbelt
The V registers are always clobbered on calls. gcc/ChangeLog * config/riscv/riscv.cc (riscv_conditional_register_usage): Always mark the V registers as clobbered on calls. --- gcc/config/riscv/riscv.cc | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --g