Re: [PATCH] RISC-V: Replace rtx REG for zero REGS operations

2023-09-07 Thread 钟居哲
Forget about this patch. I found a better and reasonable way to fix it. juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-09-07 22:05 To: gcc-patches CC: kito.cheng; kito.cheng; jeffreyalaw; rdapp.gcc; Juzhe-Zhong Subject: [PATCH] RISC-V: Replace rtx REG for zero REGS operations This patch

[PATCH] RISC-V: Replace rtx REG for zero REGS operations

2023-09-07 Thread Juzhe-Zhong
This patch fixes these following FAILs: FAIL: gcc.target/riscv/zero-scratch-regs-3.c -O0 (internal compiler error: in gen_reg_rtx, at emit-rtl.cc:1176) FAIL: gcc.target/riscv/zero-scratch-regs-3.c -O0 (test for excess errors) FAIL: gcc.target/riscv/zero-scratch-regs-3.c -O1 (internal comp