Re: [PATCH 2/2] RISC-V: Constant synthesis by shifting the lower half

2024-08-25 Thread Jeff Law
On 8/8/24 11:10 AM, Raphael Moreira Zinsly wrote: Improve handling of constants where the high half can be constructed by shifting the low half. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_build_integer): Detect constants were the higher half is a shift of the lower half. g

Re: [PATCH 2/2] RISC-V: Constant synthesis by shifting the lower half

2024-08-25 Thread Jeff Law
On 8/8/24 11:10 AM, Raphael Moreira Zinsly wrote: Improve handling of constants where the high half can be constructed by shifting the low half. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_build_integer): Detect constants were the higher half is a shift of the lower half. g

[PATCH 2/2] RISC-V: Constant synthesis by shifting the lower half

2024-08-08 Thread Raphael Moreira Zinsly
Improve handling of constants where the high half can be constructed by shifting the low half. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_build_integer): Detect constants were the higher half is a shift of the lower half. gcc/testsuite/ChangeLog: * gcc.target/riscv/synt