[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp
Misha Brukman
brukman at cs.uiuc.edu
Wed Aug 11 20:28:57 PDT 2004
Changes in directory llvm/lib/Target/PowerPC:
PPC64AsmPrinter.cpp updated: 1.3 -> 1.4
---
Log message:
* Print out full names for non-GPR or -FPR registers
* BuildMI() really *does* handle 0 params!
---
Diffs of the changes: (+5 -3)
Index: llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp:1.3 llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp:1.4
--- llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp:1.3 Wed Aug 11 21:51:38 2004
+++ llvm/lib/Target/PowerPC/PPC64AsmPrinter.cpp Wed Aug 11 22:28:47 2004
@@ -451,9 +451,12 @@
// FALLTHROUGH
case MachineOperand::MO_MachineRegister:
case MachineOperand::MO_CCRegister: {
- // On AIX, do not print out the 'r' in register names
+ // On AIX, do not print out the 'R' (GPR) or 'F' (FPR) in reg names
const char *regName = RI.get(MO.getReg()).Name;
- O << ®Name[1];
+ if (regName[0] == 'R' || regName[0] == 'F')
+ O << ®Name[1];
+ else
+ O << regName;
return;
}
@@ -571,7 +574,6 @@
O << TII.getName(Opcode) << " ";
if (Opcode == PPC::BLR || Opcode == PPC::NOP) {
- // FIXME: BuildMI() should handle 0 params
O << "\n";
} else if (ArgCount == 3 &&
(ArgType[1] == PPCII::Disimm16 || ArgType[1] == PPCII::Disimm14)) {
More information about the llvm-commits
mailing list