Re: [PATCH 3/3] RISC-V: Constant synthesis of inverted halves

2024-09-05 Thread Jeff Law
On 9/5/24 6:18 AM, Raphael Zinsly wrote: On Wed, Sep 4, 2024 at 8:35 PM Jeff Law wrote: On 9/2/24 2:01 PM, Raphael Moreira Zinsly wrote: ... +unsigned long foo_0x4afe605fb5019fa0(void) { return 0x4afe605fb5019fa0UL; } +unsigned long foo_0x07a80d21f857f2de(void) { return 0x07a80d21f857f2deUL

Re: [PATCH 3/3] RISC-V: Constant synthesis of inverted halves

2024-09-05 Thread Raphael Zinsly
On Wed, Sep 4, 2024 at 8:35 PM Jeff Law wrote: > On 9/2/24 2:01 PM, Raphael Moreira Zinsly wrote: >... > > +unsigned long foo_0x4afe605fb5019fa0(void) { return 0x4afe605fb5019fa0UL; } > > +unsigned long foo_0x07a80d21f857f2de(void) { return 0x07a80d21f857f2deUL; } > > +unsigned long foo_0x6699f19c

Re: [PATCH 3/3] RISC-V: Constant synthesis of inverted halves

2024-09-04 Thread Jeff Law
On 9/2/24 2:01 PM, Raphael Moreira Zinsly wrote: Improve handling of constants where the high half can be constructed by inverting the lower half. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_build_integer): Detect constants were the higher half is the lower half inverted. g