[llvm] [RISCV][CFI] add function epilogue cfi information (PR #110234)

Kito Cheng via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 2 00:29:06 PDT 2024


================
@@ -77,6 +86,9 @@ define i32 @callee_float_in_regs(i32 %a, float %b) {
 ; ILP32E-WITHFP-SAVE-RESTORE-NEXT:    mv a0, a1
 ; ILP32E-WITHFP-SAVE-RESTORE-NEXT:    call __fixsfsi
 ; ILP32E-WITHFP-SAVE-RESTORE-NEXT:    add a0, s1, a0
+; ILP32E-WITHFP-SAVE-RESTORE-NEXT:    .cfi_restore ra
+; ILP32E-WITHFP-SAVE-RESTORE-NEXT:    .cfi_restore s0
+; ILP32E-WITHFP-SAVE-RESTORE-NEXT:    .cfi_restore s1
 ; ILP32E-WITHFP-SAVE-RESTORE-NEXT:    tail __riscv_restore_2
----------------
kito-cheng wrote:

Same issue here

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


More information about the llvm-commits mailing list