Re: [PATCH] RISC-V: Use binvi to cover more immediates than with xori alone

2022-11-16 Thread Philipp Tomsich
On Wed, 16 Nov 2022 at 04:45, Jeff Law wrote: > > > On 11/10/22 14:35, Philipp Tomsich wrote: > > Sequences of the form "a ^ C" with C being the positive half of a > > signed immediate's range with one extra bit set in addtion are mapped > > to xori and one binvi to avoid using a temporary (and a

Re: [PATCH] RISC-V: Use binvi to cover more immediates than with xori alone

2022-11-15 Thread Jeff Law via Gcc-patches
On 11/10/22 14:35, Philipp Tomsich wrote: Sequences of the form "a ^ C" with C being the positive half of a signed immediate's range with one extra bit set in addtion are mapped to xori and one binvi to avoid using a temporary (and a multi-insn sequence to load C into that temporary). gcc/Chan

[PATCH] RISC-V: Use binvi to cover more immediates than with xori alone

2022-11-10 Thread Philipp Tomsich
Sequences of the form "a ^ C" with C being the positive half of a signed immediate's range with one extra bit set in addtion are mapped to xori and one binvi to avoid using a temporary (and a multi-insn sequence to load C into that temporary). gcc/ChangeLog: * config/riscv/bitmanip.md (*b