[llvm] [AArch64] Add FPSR to reserved registers (PR #82907)
Serge Pavlov via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 24 21:12:41 PST 2024
https://github.com/spavloff created https://github.com/llvm/llvm-project/pull/82907
This is follow-up of #81867. FPSR was not added to reserved registers, this resulted in machine verifier fails.
>From 2d467608f5c36b90c01d746d38191fb060a8441c Mon Sep 17 00:00:00 2001
From: Serge Pavlov <sepavloff at gmail.com>
Date: Sun, 25 Feb 2024 12:06:46 +0700
Subject: [PATCH] [AArch64] Add FPSR to reserved registers
This is follow-up of #81867. FPSR was not added to reserved registers,
this resulted in machine verifier fails.
---
llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp | 1 +
1 file changed, 1 insertion(+)
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);
More information about the llvm-commits
mailing list