The ADD and ADDK (and all variants) instructions where flip-flopped in the MBlaze...
[oota-llvm.git] / lib / Target / MBlaze / MBlazeMCCodeEmitter.cpp
index e7fb788b3c71347fb560c1b4895d16a7b2a8da08..90ad50255677b16e3bc26ae154752554453b7f27 100644 (file)
@@ -141,7 +141,7 @@ EmitIMM(const MCInst &MI, unsigned &CurByte,raw_ostream &OS) const {
   switch (MI.getOpcode()) {
   default: break;
 
-  case MBlaze::ADDI32:
+  case MBlaze::ADDIK32:
   case MBlaze::ORI32:
   case MBlaze::BRLID32:
     EmitByte(0x0D, CurByte, OS);
@@ -168,7 +168,7 @@ EmitImmediate(const MCInst &MI, unsigned opNo, bool pcrel, unsigned &CurByte,
       Fixups.push_back(MCFixup::Create(0,oper.getExpr(),FixupKind));
       break;
     case MBlaze::ORI32:
-    case MBlaze::ADDI32:
+    case MBlaze::ADDIK32:
     case MBlaze::BRLID32:
       FixupKind = pcrel ? FK_PCRel_4 : FK_Data_4;
       Fixups.push_back(MCFixup::Create(0,oper.getExpr(),FixupKind));