Sorry, I had some problems with email.  Therefore there are email duplication and they were sent to gcc@gcc.gnu.org instead of gcc-patches@gcc.gnu.org On 8/9/23 16:54, Vladimir Makarov wrote: > > On 8/9/23 07:15, SenthilKumar.Selvaraj@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 done on SP. >> > I think we can permit to stack pointer output reloads.  The only thing > we need to update sp offset accurately for the original and reload > insns.  I'll try to make the patch on this week. > > The following patch fixes the problem.  The patch was successfully bootstrapped and tested on x86_64, aarch64, and ppc64le. The test case is actually one from GCC test suite.