Re: [PATCH] RISC-V: Optimize masking with two clear bits not a SMALL_OPERAND

2022-11-17 Thread Philipp Tomsich
Applied to master. Thanks! Philipp. On Thu, 17 Nov 2022 at 15:30, Jeff Law wrote: > > > On 11/10/22 14:36, Philipp Tomsich wrote: > > Add a split for cases where we can use two bclri (or one bclri and an > > andi) to clear two bits. > > > > gcc/ChangeLog: > > > > * config/riscv/bitmanip.md

Re: [PATCH] RISC-V: Optimize masking with two clear bits not a SMALL_OPERAND

2022-11-17 Thread Jeff Law via Gcc-patches
On 11/17/22 07:43, Philipp Tomsich wrote: On Thu, 17 Nov 2022 at 15:30, Jeff Law wrote: On 11/10/22 14:36, Philipp Tomsich wrote: Add a split for cases where we can use two bclri (or one bclri and an andi) to clear two bits. gcc/ChangeLog: * config/riscv/bitmanip.md (*bclri_nottwob

Re: [PATCH] RISC-V: Optimize masking with two clear bits not a SMALL_OPERAND

2022-11-17 Thread Philipp Tomsich
On Thu, 17 Nov 2022 at 15:30, Jeff Law wrote: > > > On 11/10/22 14:36, Philipp Tomsich wrote: > > Add a split for cases where we can use two bclri (or one bclri and an > > andi) to clear two bits. > > > > gcc/ChangeLog: > > > > * config/riscv/bitmanip.md (*bclri_nottwobits): New pattern. > >

Re: [PATCH] RISC-V: Optimize masking with two clear bits not a SMALL_OPERAND

2022-11-17 Thread Jeff Law via Gcc-patches
On 11/10/22 14:36, Philipp Tomsich wrote: Add a split for cases where we can use two bclri (or one bclri and an andi) to clear two bits. gcc/ChangeLog: * config/riscv/bitmanip.md (*bclri_nottwobits): New pattern. (*bclridisi_nottwobits): New pattern, handling the sign-bit.

[PATCH] RISC-V: Optimize masking with two clear bits not a SMALL_OPERAND

2022-11-10 Thread Philipp Tomsich
Add a split for cases where we can use two bclri (or one bclri and an andi) to clear two bits. gcc/ChangeLog: * config/riscv/bitmanip.md (*bclri_nottwobits): New pattern. (*bclridisi_nottwobits): New pattern, handling the sign-bit. * config/riscv/predicates.md (const_nottw