Check i1 as well as i8 variables for 8 bit registers for x86 inline
[oota-llvm.git] / lib / Target / X86 / X86ISelLowering.cpp
index c24d41b6855d39c545dd6078652abee5c5ecbe51..bc29df4981072d375702868261ac40271f64df28 100644 (file)
@@ -18135,7 +18135,7 @@ X86TargetLowering::getRegForInlineAsmConstraint(const std::string &Constraint,
   // really want an 8-bit or 32-bit register, map to the appropriate register
   // class and return the appropriate register.
   if (Res.second == &X86::GR16RegClass) {
-    if (VT == MVT::i8) {
+    if (VT == MVT::i8 || VT == MVT::i1) {
       unsigned DestReg = 0;
       switch (Res.first) {
       default: break;