forked from OSchip/llvm-project
Use the more compact `bl' instead of cryptic (but equivalent) `bcl 20,31'
llvm-svn: 14652
This commit is contained in:
parent
84e1bb8eff
commit
2138f1b2b0
|
@ -516,7 +516,7 @@ void Printer::printMachineInstruction(const MachineInstr *MI) {
|
||||||
|
|
||||||
// FIXME: should probably be converted to cout.width and cout.fill
|
// FIXME: should probably be converted to cout.width and cout.fill
|
||||||
if (Opcode == PPC32::MovePCtoLR) {
|
if (Opcode == PPC32::MovePCtoLR) {
|
||||||
O << "bcl 20,31,\"L0000" << labelNumber << "$pb\"\n";
|
O << "bl \"L0000" << labelNumber << "$pb\"\n";
|
||||||
O << "\"L0000" << labelNumber << "$pb\":\n";
|
O << "\"L0000" << labelNumber << "$pb\":\n";
|
||||||
O << "\tmflr ";
|
O << "\tmflr ";
|
||||||
printOp(MI->getOperand(0));
|
printOp(MI->getOperand(0));
|
||||||
|
@ -659,7 +659,7 @@ bool Printer::doFinalization(Module &M) {
|
||||||
O << "L" << *i << "$stub:\n";
|
O << "L" << *i << "$stub:\n";
|
||||||
O << "\t.indirect_symbol " << *i << "\n";
|
O << "\t.indirect_symbol " << *i << "\n";
|
||||||
O << "\tmflr r0\n";
|
O << "\tmflr r0\n";
|
||||||
O << "\tbcl 20,31,L0$" << *i << "\n";
|
O << "\tbl L0$" << *i << "\n";
|
||||||
O << "L0$" << *i << ":\n";
|
O << "L0$" << *i << ":\n";
|
||||||
O << "\tmflr r11\n";
|
O << "\tmflr r11\n";
|
||||||
O << "\taddis r11,r11,ha16(L" << *i << "$lazy_ptr-L0$" << *i << ")\n";
|
O << "\taddis r11,r11,ha16(L" << *i << "$lazy_ptr-L0$" << *i << ")\n";
|
||||||
|
|
|
@ -516,7 +516,7 @@ void Printer::printMachineInstruction(const MachineInstr *MI) {
|
||||||
|
|
||||||
// FIXME: should probably be converted to cout.width and cout.fill
|
// FIXME: should probably be converted to cout.width and cout.fill
|
||||||
if (Opcode == PPC32::MovePCtoLR) {
|
if (Opcode == PPC32::MovePCtoLR) {
|
||||||
O << "bcl 20,31,\"L0000" << labelNumber << "$pb\"\n";
|
O << "bl \"L0000" << labelNumber << "$pb\"\n";
|
||||||
O << "\"L0000" << labelNumber << "$pb\":\n";
|
O << "\"L0000" << labelNumber << "$pb\":\n";
|
||||||
O << "\tmflr ";
|
O << "\tmflr ";
|
||||||
printOp(MI->getOperand(0));
|
printOp(MI->getOperand(0));
|
||||||
|
@ -659,7 +659,7 @@ bool Printer::doFinalization(Module &M) {
|
||||||
O << "L" << *i << "$stub:\n";
|
O << "L" << *i << "$stub:\n";
|
||||||
O << "\t.indirect_symbol " << *i << "\n";
|
O << "\t.indirect_symbol " << *i << "\n";
|
||||||
O << "\tmflr r0\n";
|
O << "\tmflr r0\n";
|
||||||
O << "\tbcl 20,31,L0$" << *i << "\n";
|
O << "\tbl L0$" << *i << "\n";
|
||||||
O << "L0$" << *i << ":\n";
|
O << "L0$" << *i << ":\n";
|
||||||
O << "\tmflr r11\n";
|
O << "\tmflr r11\n";
|
||||||
O << "\taddis r11,r11,ha16(L" << *i << "$lazy_ptr-L0$" << *i << ")\n";
|
O << "\taddis r11,r11,ha16(L" << *i << "$lazy_ptr-L0$" << *i << ")\n";
|
||||||
|
|
Loading…
Reference in New Issue