This is suppose to work now
authorAndrew Lenharth <andrewl@lenharth.org>
Thu, 6 Oct 2005 16:54:29 +0000 (16:54 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Thu, 6 Oct 2005 16:54:29 +0000 (16:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23644 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelLowering.cpp
lib/Target/Alpha/AlphaISelPattern.cpp

index c6cfc4b9348cfc85a4bc9dc2a5a7abba762e5247..7e8e9893e9e47ac14320f0cccc13ec79c0ba5ed7 100644 (file)
@@ -66,6 +66,8 @@ AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM) : TargetLowering(TM)
   setOperationAction(ISD::SEXTLOAD, MVT::i8,  Expand);
   setOperationAction(ISD::SEXTLOAD, MVT::i16, Expand);
   
+  setOperationAction(ISD::TRUNCSTORE, MVT::i1, Promote);
+
   setOperationAction(ISD::FREM, MVT::f32, Expand);
   setOperationAction(ISD::FREM, MVT::f64, Expand);
   
index 557da82d1d66f1ad92d943b65a22faedbcfdf7a4..bb2162b4809b8ee0ac56249a2551221cf335ebb8 100644 (file)
@@ -1822,7 +1822,6 @@ void AlphaISel::Select(SDOperand N) {
       } else { //ISD::TRUNCSTORE
         switch(cast<VTSDNode>(Node->getOperand(4))->getVT()) {
         default: assert(0 && "unknown Type in store");
-        case MVT::i1: //FIXME: DAG does not promote this load
         case MVT::i8: Opc = Alpha::STB; break;
         case MVT::i16: Opc = Alpha::STW; break;
         case MVT::i32: Opc = Alpha::STL; break;