The ADD and ADDK (and all variants) instructions where flip-flopped in the MBlaze...
[oota-llvm.git] / lib / Target / MBlaze / MBlazeISelDAGToDAG.cpp
index 9924e67b634474f6ba9dd1c76febb9d5e7e4728b..2da8a593d511c08b22276311514a91e4062bff0e 100644 (file)
@@ -210,7 +210,7 @@ SDNode* MBlazeDAGToDAGISel::Select(SDNode *Node) {
         int FI = dyn_cast<FrameIndexSDNode>(Node)->getIndex();
         EVT VT = Node->getValueType(0);
         SDValue TFI = CurDAG->getTargetFrameIndex(FI, VT);
-        unsigned Opc = MBlaze::ADDI;
+        unsigned Opc = MBlaze::ADDIK;
         if (Node->hasOneUse())
           return CurDAG->SelectNodeTo(Node, Opc, VT, TFI, imm);
         return CurDAG->getMachineNode(Opc, dl, VT, TFI, imm);