Re: LRA for avr: Arithmetic on stack pointer

2023-08-09 Thread Vladimir Makarov via Gcc
On 8/9/23 07:15, senthilkumar.selva...@microchip.com wrote: Hi, After turning on FP -> SP elimination after Vlad fixed an elimination issue in https://gcc.gnu.org/git?p=gcc.git;a=commit;h=2971ff7b1d564ac04b537d907c70e6093af70832, I'm now running into reload failure if arithmetic is d

Re: LRA for avr: Arithmetic on stack pointer

2023-08-09 Thread Georg-Johann Lay
Am 09.08.23 um 13:15 schrieb SenthilKumar.Selvaraj--- via Gcc: [...] I guess the condition exists to ensure sp_off is always correct? Considering LRA already handles post_dec of SP just fine, perhaps it can allow RTX like (set (reg/f:HI 32 __SP_L__) (plus:HI (reg/f:HI 32 __SP_L__