Zimm16 is now dead. Its entry is not removed from the enum, to avoid having
authorChris Lattner <sabre@nondot.org>
Sun, 15 Aug 2004 05:48:47 +0000 (05:48 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Aug 2004 05:48:47 +0000 (05:48 +0000)
to renumber everything.  Similar elimination should be applied to other
operand enum values that are only used to format printing in the .s file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15755 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPC32AsmPrinter.cpp
lib/Target/PowerPC/PPC64AsmPrinter.cpp
lib/Target/PowerPC/PPCAsmPrinter.cpp

index fb3e1824e73413a53a4d4ce841a81f6c5db9b8e2..a20525c814a52c23543ce4d595743f80e485fb59 100644 (file)
@@ -500,8 +500,6 @@ void PowerPCAsmPrinter::printImmOp(const MachineOperand &MO, unsigned ArgType) {
   int Imm = MO.getImmedValue();
   if (ArgType == PPCII::Simm16 || ArgType == PPCII::Disimm16) {
     O << (short)Imm;
-  } else if (ArgType == PPCII::Zimm16) {
-    O << (unsigned short)Imm;
   } else {
     O << Imm;
   }
index 515fe3339a1150d1d0dadd93de874fdec85c17a7..d9dc91390be5792a4e459e16c80df6e999c121bc 100644 (file)
@@ -510,8 +510,6 @@ void Printer::printImmOp(const MachineOperand &MO, unsigned ArgType) {
   int Imm = MO.getImmedValue();
   if (ArgType == PPCII::Simm16 || ArgType == PPCII::Disimm16) {
     O << (short)Imm;
-  } else if (ArgType == PPCII::Zimm16) {
-    O << (unsigned short)Imm;
   } else {
     O << Imm;
   }
index fb3e1824e73413a53a4d4ce841a81f6c5db9b8e2..a20525c814a52c23543ce4d595743f80e485fb59 100644 (file)
@@ -500,8 +500,6 @@ void PowerPCAsmPrinter::printImmOp(const MachineOperand &MO, unsigned ArgType) {
   int Imm = MO.getImmedValue();
   if (ArgType == PPCII::Simm16 || ArgType == PPCII::Disimm16) {
     O << (short)Imm;
-  } else if (ArgType == PPCII::Zimm16) {
-    O << (unsigned short)Imm;
   } else {
     O << Imm;
   }