Ignore extra 'r' modifier for now
authorAnton Korobeynikov <asl@math.spbu.ru>
Fri, 10 Oct 2008 20:29:50 +0000 (20:29 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Fri, 10 Oct 2008 20:29:50 +0000 (20:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57363 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcAsmPrinter.cpp

index 35626fdc07133e5a1635466ec2ef6b147e7829c3..703a54eacd5dfe8d238cbcbdbd964d8ffb00a134 100644 (file)
@@ -315,8 +315,15 @@ void SparcAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
 bool SparcAsmPrinter::PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
                                       unsigned AsmVariant,
                                       const char *ExtraCode) {
-  if (ExtraCode && ExtraCode[0])
-    return true;  // Unknown modifier
+  if (ExtraCode && ExtraCode[0]) {
+    if (ExtraCode[1] != 0) return true; // Unknown modifier.
+
+    switch (ExtraCode[0]) {
+    default: return true;  // Unknown modifier.
+    case 'r':
+     break;
+    }
+  }
 
   printOperand(MI, OpNo);