aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-06-18 16:49:33 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-06-18 16:49:33 +0000
commit0d8ba3303b40a150f70ff63f04f57160984492c1 (patch)
tree2952503264472bde1a949b267a3d0ae8785026ab /lib/Target/ARM/ARMISelLowering.cpp
parent45934330150aecbc98c2d60fe7f17fa69e62ba71 (diff)
downloadexternal_llvm-0d8ba3303b40a150f70ff63f04f57160984492c1.tar.gz
external_llvm-0d8ba3303b40a150f70ff63f04f57160984492c1.tar.bz2
external_llvm-0d8ba3303b40a150f70ff63f04f57160984492c1.zip
Treat the ARM inline asm {cc} constraint as a physreg (%CPSR), just like X86
does for {flags}. If we create virtual registers of the CCR class, RegAllocFast may try to spill them, and we can't do that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp
index 2d963fa970..5ec995f771 100644
--- a/lib/Target/ARM/ARMISelLowering.cpp
+++ b/lib/Target/ARM/ARMISelLowering.cpp
@@ -4945,7 +4945,7 @@ ARMTargetLowering::getRegForInlineAsmConstraint(const std::string &Constraint,
}
}
if (StringRef("{cc}").equals_lower(Constraint))
- return std::make_pair(0U, ARM::CCRRegisterClass);
+ return std::make_pair(unsigned(ARM::CPSR), ARM::CCRRegisterClass);
return TargetLowering::getRegForInlineAsmConstraint(Constraint, VT);
}