Translate "cc" clobber in ARM inline assembly to ARM::CCRRegisterClass.
authorBob Wilson <bob.wilson@apple.com>
Mon, 15 Mar 2010 23:09:18 +0000 (23:09 +0000)
committerBob Wilson <bob.wilson@apple.com>
Mon, 15 Mar 2010 23:09:18 +0000 (23:09 +0000)
Radar 7459078.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98586 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index 5fae975ff74eb64dccff75f46b5a1fc80e464e55..8f208432ab7ee69fad8c4f3c8b1b734a28c869d3 100644 (file)
@@ -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);
 }