forked from OSchip/llvm-project
add supprort for the 'sbit' operand, MOVi apparently has one.
llvm-svn: 84577
This commit is contained in:
parent
19c52201bd
commit
85ab670644
|
@ -1392,6 +1392,8 @@ void ARMAsmPrinter::printInstructionThroughMCStreamer(const MachineInstr *MI) {
|
|||
// Predicate.
|
||||
TmpInst.addOperand(MCOperand::CreateImm(MI->getOperand(2).getImm()));
|
||||
TmpInst.addOperand(MCOperand::CreateReg(MI->getOperand(3).getReg()));
|
||||
|
||||
TmpInst.addOperand(MCOperand::CreateReg(0)); // cc_out
|
||||
printMCInst(&TmpInst);
|
||||
O << '\n';
|
||||
}
|
||||
|
|
|
@ -186,6 +186,14 @@ void ARMInstPrinter::printPredicateOperand(const MCInst *MI, unsigned OpNum) {
|
|||
O << ARMCondCodeToString(CC);
|
||||
}
|
||||
|
||||
void ARMInstPrinter::printSBitModifierOperand(const MCInst *MI, unsigned OpNum){
|
||||
if (unsigned Reg = MI->getOperand(OpNum).getReg()) {
|
||||
assert(Reg == ARM::CPSR && "Expect ARM CPSR register!");
|
||||
O << 's';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void ARMInstPrinter::printCPInstOperand(const MCInst *MI, unsigned OpNum,
|
||||
const char *Modifier) {
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
void printT2AddrModeSoRegOperand(const MCInst *MI, unsigned OpNum) {}
|
||||
|
||||
void printPredicateOperand(const MCInst *MI, unsigned OpNum);
|
||||
void printSBitModifierOperand(const MCInst *MI, unsigned OpNum) {}
|
||||
void printSBitModifierOperand(const MCInst *MI, unsigned OpNum);
|
||||
void printRegisterList(const MCInst *MI, unsigned OpNum);
|
||||
void printCPInstOperand(const MCInst *MI, unsigned OpNum,
|
||||
const char *Modifier);
|
||||
|
|
Loading…
Reference in New Issue