From: Bob Wilson Date: Mon, 15 Mar 2010 23:09:18 +0000 (+0000) Subject: Translate "cc" clobber in ARM inline assembly to ARM::CCRRegisterClass. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=33cc5cb9837469dabf31cc5a474e2c27d2b7d144;p=oota-llvm.git Translate "cc" clobber in ARM inline assembly to ARM::CCRRegisterClass. Radar 7459078. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98586 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 5fae975ff74..8f208432ab7 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -4449,6 +4449,9 @@ ARMTargetLowering::getRegForInlineAsmConstraint(const std::string &Constraint, break; } } + if (StringRef("{cc}").equals_lower(Constraint)) + return std::make_pair(0U, ARM::CCRRegisterClass); + return TargetLowering::getRegForInlineAsmConstraint(Constraint, VT); }