File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -955,9 +955,8 @@ void PPCAsmPrinter::emitInstruction(const MachineInstr *MI) {
955
955
OutContext),
956
956
MCConstantExpr::create (4 , OutContext), OutContext);
957
957
958
- // Emit 'bcl 20,31,.+4' so the link stack is not corrupted.
959
- EmitToStreamer (*OutStreamer,
960
- MCInstBuilder (PPC::BCLalways).addExpr (OffsExpr));
958
+ // Emit the 'bl'.
959
+ EmitToStreamer (*OutStreamer, MCInstBuilder (PPC::BL).addExpr (OffsExpr));
961
960
return ;
962
961
}
963
962
case PPC::MovePCtoLR:
Original file line number Diff line number Diff line change 18
18
; SMALL-LABEL: foo:
19
19
; SMALL: stwu 1, -32(1)
20
20
; SMALL: stw 30, 24(1)
21
- ; SMALL-BSS: bcl 20, 31, _GLOBAL_OFFSET_TABLE_@local-4
22
- ; SMALL-SECURE: bcl 20, 31, .L0$pb
21
+ ; SMALL-BSS: bl _GLOBAL_OFFSET_TABLE_@local-4
22
+ ; SMALL-SECURE: bl .L0$pb
23
23
; SMALL: mflr 30
24
24
; SMALL-SECURE: addis 30, 30, _GLOBAL_OFFSET_TABLE_-.L0$pb@ha
25
25
; SMALL-SECURE: addi 30, 30, _GLOBAL_OFFSET_TABLE_-.L0$pb@l
You can’t perform that action at this time.
0 commit comments