[llvm-commits] CVS: llvm/lib/Target/Sparc/EmitAssembly.cpp
Misha Brukman
brukman at cs.uiuc.edu
Tue May 27 17:35:01 PDT 2003
Changes in directory llvm/lib/Target/Sparc:
EmitAssembly.cpp updated: 1.76 -> 1.77
---
Log message:
Added 'r' or 'i' annotations to instructions, as SparcInstr.def has changed.
---
Diffs of the changes:
Index: llvm/lib/Target/Sparc/EmitAssembly.cpp
diff -u llvm/lib/Target/Sparc/EmitAssembly.cpp:1.76 llvm/lib/Target/Sparc/EmitAssembly.cpp:1.77
--- llvm/lib/Target/Sparc/EmitAssembly.cpp:1.76 Mon May 26 19:02:22 2003
+++ llvm/lib/Target/Sparc/EmitAssembly.cpp Tue May 27 17:34:18 2003
@@ -309,7 +309,8 @@
unsigned getOperandMask(unsigned Opcode) {
switch (Opcode) {
- case V9::SUBcc: return 1 << 3; // Remove CC argument
+ case V9::SUBccr:
+ case V9::SUBcci: return 1 << 3; // Remove CC argument
//case BA: return 1 << 0; // Remove Arg #0, which is always null or xcc
default: return 0; // By default, don't hack operands...
}
@@ -320,8 +321,10 @@
SparcFunctionAsmPrinter::OpIsBranchTargetLabel(const MachineInstr *MI,
unsigned int opNum) {
switch (MI->getOpCode()) {
- case V9::JMPLCALL:
- case V9::JMPLRET:
+ case V9::JMPLCALLr:
+ case V9::JMPLCALLi:
+ case V9::JMPLRETr:
+ case V9::JMPLRETi:
return (opNum == 0);
default:
return false;
More information about the llvm-commits
mailing list