Fix FP -> bool casts
authorChris Lattner <sabre@nondot.org>
Mon, 9 May 2005 05:33:18 +0000 (05:33 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 9 May 2005 05:33:18 +0000 (05:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21810 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelPattern.cpp

index 61acb2e9d7cdc6df64974b23f6ad21da86e53d1b..209a9d051cb322de88bb70852fbd40bc295295ed 100644 (file)
@@ -1701,6 +1701,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
     MVT::ValueType StoreClass = Node->getValueType(0);
     if (StoreClass == MVT::i8 || Node->getOpcode() == ISD::FP_TO_UINT)
       switch (StoreClass) {
+      case MVT::i1:
       case MVT::i8:  StoreClass = MVT::i16; break;
       case MVT::i16: StoreClass = MVT::i32; break;
       case MVT::i32: StoreClass = MVT::i64; break;
@@ -1743,6 +1744,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
       addFrameReference(BuildMI(BB, X86::MOV16rm, 4, Result), FrameIdx);
       break;
     case MVT::i8:
+    case MVT::i1:
       addFrameReference(BuildMI(BB, X86::MOV8rm, 4, Result), FrameIdx);
       break;
     }