Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AArch64] Add FPSR to reserved registers #82907

Merged
merged 1 commit into from
Feb 25, 2024
Merged

Conversation

spavloff
Copy link
Collaborator

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

This is follow-up of llvm#81867. FPSR was not added to reserved registers,
this resulted in machine verifier fails.
@llvmbot
Copy link
Collaborator

llvmbot commented Feb 25, 2024

@llvm/pr-subscribers-backend-aarch64

Author: Serge Pavlov (spavloff)

Changes

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 --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);

@spavloff spavloff merged commit a4096ea into llvm:main Feb 25, 2024
5 of 6 checks passed
@spavloff spavloff deleted the aa64.fpsr branch February 26, 2024 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants