[llvm] [AArch64] Add FPSR to reserved registers (PR #82907)

via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 24 21:13:08 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-aarch64

Author: Serge Pavlov (spavloff)

<details>
<summary>Changes</summary>

This is follow-up of #<!-- -->81867. FPSR was not added to reserved registers, this resulted in machine verifier fails.

---
Full diff: https://github.com/llvm/llvm-project/pull/82907.diff


1 Files Affected:

- (modified) llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp (+1) 


``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp b/llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp
index 48e1c1bc73022c..b919c116445c8b 100644
--- a/llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp
@@ -450,6 +450,7 @@ AArch64RegisterInfo::getStrictlyReservedRegs(const MachineFunction &MF) const {
   }
 
   markSuperRegs(Reserved, AArch64::FPCR);
+  markSuperRegs(Reserved, AArch64::FPSR);
 
   if (MF.getFunction().getCallingConv() == CallingConv::GRAAL) {
     markSuperRegs(Reserved, AArch64::X27);

``````````

</details>


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


More information about the llvm-commits mailing list