https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114639
--- Comment #17 from Li Pan <pan2.li at intel dot com> --- According to the V abi, looks like the asm code tries to save/restore the callee-saved registers when there is a call in function body. | Name | ABI Mnemonic | Meaning | Preserved across calls? ================================================================================= | v0 | | Argument register | No | v1-v7 | | Callee-saved registers | Yes | v8-v23 | | Argument registers | No | v24-v31 | | Callee-saved registers | Yes