Re: [PATCH 1/2] RISC-V: Constant synthesis with same upper and lower halves

2024-08-12 Thread Jeff Law
On 8/9/24 5:51 PM, Vineet Gupta wrote: As you mentioned above: positive values are already handled in riscv_split_integer after c104ef4b5eb1 ("RISC-V: improve codegen for large constants with same 32-bit lo and hi")parts [2] Weird. I would have swore we weren't seeing good code for those c

Re: [PATCH 1/2] RISC-V: Constant synthesis with same upper and lower halves

2024-08-09 Thread Vineet Gupta
Hi Raphael, On 8/8/24 10:10, Raphael Moreira Zinsly wrote: > From: Raphael Zinsly > > Improve handling of constants where its upper and lower 32-bit > halves are the same and Zbkb is not available in riscv_move_integer. > riscv_split_integer already handles this but the changes in > riscv_build_i

[PATCH 1/2] RISC-V: Constant synthesis with same upper and lower halves

2024-08-08 Thread Raphael Moreira Zinsly
From: Raphael Zinsly Improve handling of constants where its upper and lower 32-bit halves are the same and Zbkb is not available in riscv_move_integer. riscv_split_integer already handles this but the changes in riscv_build_integer makes it possible to improve code generation for negative values