[PATCH] RISC-V: Imply C from Zca whenever possible [PR119122]

2025-03-05 Thread Yuriy Kolerov
* gcc.target/riscv/attribute-zce-4.c: Likewise. Signed-off-by: Yuriy Kolerov --- gcc/common/config/riscv/riscv-common.cc | 31 +++ gcc/testsuite/gcc.target/riscv/arch-25.c | 2 +- .../gcc.target/riscv/attribute-c-1.c | 6 .../gcc.target/riscv/attribute-c-2

RE: [PATCH v2] RISC-V: Fix a typo in zce to zcf implication

2025-02-25 Thread Yuriy Kolerov
uot;zce") != NULL && subset_list->m_xlen == 32 && subset_list->lookup ("f") != NULL && subset_list->lookup ("zcf") == NULL) subset_list->add ("zcf", false); But it was accidentally refactored in a wrong way. Regards, Y

[PATCH v2] RISC-V: Fix a typo in zce to zcf implication

2025-02-24 Thread Yuriy Kolerov
/attribute-zce-4.c: New test. Signed-off-by: Yuriy Kolerov --- gcc/common/config/riscv/riscv-common.cc | 2 +- gcc/testsuite/gcc.target/riscv/attribute-zce-1.c | 6 ++ gcc/testsuite/gcc.target/riscv/attribute-zce-2.c | 6 ++ gcc/testsuite/gcc.target/riscv/attribute-zce-3.c | 6

Re: [PATCH] RISC-V: Fix a typo in zce to zcf implication

2025-01-20 Thread Yuriy Kolerov
Hi Robin, Sure, I will do everything you listed shortly, and I will apply a second version of the patch. Regards, Yuriy Kolerov Regards, Yuriy Kolerov From: Robin Dapp Sent: Monday, January 20, 2025 4:02:36 PM To: Yuriy Kolerov ; gcc-patches@gcc.gnu.org Cc

[PATCH] RISC-V: Fix a typo in zce to zcf implication

2025-01-19 Thread Yuriy Kolerov
zce must imply zcf but this rule was corrupted after refactoring in this commit: 9e12010b5e724277ea44c300630802f464407d8d gcc/ChangeLog: * common/config/riscv/riscv-common.cc: fix zce to zcf implication. Signed-off-by: Yuriy Kolerov --- gcc/common/config/riscv/riscv-common.cc