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

2022-11-15 Thread Jeff Law via Gcc-patches
On 11/10/22 14:34, 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 ori and one binvi to avoid using a temporary (and a multi-insn sequence to load C into that temporary).

[PATCH] RISC-V: Use bseti to cover more immediates than with ori 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 ori 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