On 4/20/23 14:11, Jivan Hakobyan via Gcc-patches wrote:
and_nottwobits.patch
RISC-V: avoid splitting small constant in *bclri<mode>_nottwobits
and *bclridisi_nottwobit patterns
gcc/
* config/riscv/bitmanip.md Updated predicats of
bclri<mode>_nottwobits and bclridisi_nottwobits patterns
* config/riscv/predicates.md (not_uimm_extra_bit_or_nottwobits):
Adjust predicate to avoid splitting arith constants
* config/riscv/predicates.md (const_nottwobits_not_arith_operand):
New predicate
gcc/testsuite
* gcc.target/riscv/zbs-bclri-nottwobits.c: New test.
Thanks. I made trivial fixes to the ChangeLog entry and pushed this to
the trunk.
jeff