mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
Print the s bit if the instruction is toggled to its CPSR setting form.
llvm-svn: 37932
This commit is contained in:
parent
c2c0b495ed
commit
721b83bbe6
@ -102,6 +102,7 @@ namespace {
|
||||
void printThumbAddrModeS4Operand(const MachineInstr *MI, int OpNo);
|
||||
void printThumbAddrModeSPOperand(const MachineInstr *MI, int OpNo);
|
||||
void printPredicateOperand(const MachineInstr *MI, int opNum);
|
||||
void printSBitModifierOperand(const MachineInstr *MI, int opNum);
|
||||
void printPCLabel(const MachineInstr *MI, int opNum);
|
||||
void printRegisterList(const MachineInstr *MI, int opNum);
|
||||
void printCPInstOperand(const MachineInstr *MI, int opNum,
|
||||
@ -621,6 +622,14 @@ void ARMAsmPrinter::printPredicateOperand(const MachineInstr *MI, int opNum) {
|
||||
O << ARMCondCodeToString(CC);
|
||||
}
|
||||
|
||||
void ARMAsmPrinter::printSBitModifierOperand(const MachineInstr *MI, int opNum){
|
||||
unsigned Reg = MI->getOperand(opNum).getReg();
|
||||
if (Reg) {
|
||||
assert(Reg == ARM::CPSR && "Expect ARM CPSR register!");
|
||||
O << 's';
|
||||
}
|
||||
}
|
||||
|
||||
void ARMAsmPrinter::printPCLabel(const MachineInstr *MI, int opNum) {
|
||||
int Id = (int)MI->getOperand(opNum).getImmedValue();
|
||||
O << TAI->getPrivateGlobalPrefix() << "PC" << Id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user