[Bug target/113715] RISC-V: If the Zcmp is enabled, the a0 register operates abnormally when the program returns

fanghuaqi at vip dot qq.com gcc-bugzilla@gcc.gnu.org
Thu Feb 8 03:11:56 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113715

--- Comment #3 from Huaqi <fanghuaqi at vip dot qq.com> ---
(In reply to Andrew Pinski from comment #2)
> Yes this is where shrink wrapping incorrects incorrectly with
> riscv_zcmp_can_use_popretz optimization. Basically popretz should be
> disabled for shrink wrapped function call I think ...

Maybe just revert this commit is a good approach for now, it won't affect other
functions, and later on someone upload new patch to implement this cm.popretz
generation


More information about the Gcc-bugs mailing list