[PATCH] RISC-V: c implies zca, and conditionally zcf & zcd

Jeff Law jeffreyalaw@gmail.com
Wed Jul 10 16:13:32 GMT 2024



On 7/10/24 4:12 AM, Fei Gao wrote:
> According to Zc-1.0.4-3.pdf from
> https://github.com/riscvarchive/riscv-code-size-reduction/releases/tag/v1.0.4-3
> The rule is that:
> - C always implies Zca
> - C+F implies Zcf (RV32 only)
> - C+D implies Zcd
> 
> Signed-off-by: Fei Gao <gaofei@eswincomputing.com>
> gcc/ChangeLog:
> 
> 	* common/config/riscv/riscv-common.cc:
> 	c implies zca, and conditionally zcf & zcd.
> 
> gcc/testsuite/ChangeLog:
> 
> 	* gcc.target/riscv/attribute-15.c: adapt TC.
> 	* gcc.target/riscv/attribute-16.c: likewise.
> 	* gcc.target/riscv/attribute-17.c: likewise.
> 	* gcc.target/riscv/attribute-18.c: likewise.
> 	* gcc.target/riscv/pr110696.c: likewise.
> 	* gcc.target/riscv/rvv/base/abi-callee-saved-1-zcmp.c: likewise.
> 	* gcc.target/riscv/rvv/base/abi-callee-saved-2-zcmp.c: likewise.
> 	* gcc.target/riscv/rvv/base/pr114352-1.c: likewise.
> 	* gcc.target/riscv/rvv/base/pr114352-3.c: likewise.
> 	* gcc.target/riscv/arch-39.c: New test.
> 	* gcc.target/riscv/arch-40.c: New test.
OK.

jeff



More information about the Gcc-patches mailing list