Treat the ARM inline asm {cc} constraint as a physreg (%CPSR), just like X86
[oota-llvm.git] / lib / Target / ARM / ARMISelLowering.cpp
index 2d963fa9703be828e1f7003da5cd8c70739beb96..5ec995f771c03d3e9a521d571caa354e96d5e196 100644 (file)
@@ -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);
 }