[llvm] [RISCV] Support PreserveMost calling convention (PR #148214)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 28 23:16:06 PDT 2025


================
@@ -413,6 +413,8 @@ added in the future:
     - On AArch64 the callee preserve all general purpose registers, except
       X0-X8 and X16-X18. Not allowed with ``nest``.
 
+    - On RISC-V the callee preserve x5-x31 registers.
----------------
wangpc-pp wrote:

I added two tests by referring to llvm/test/CodeGen/X86/preserve_mostcc64.ll.

https://github.com/llvm/llvm-project/pull/148214


More information about the llvm-commits mailing list