forked from OSchip/llvm-project
parent
fb96c74874
commit
1b200574ad
|
@ -133,6 +133,7 @@ bool PPCBSel::runOnMachineFunction(MachineFunction &Fn) {
|
|||
if (Displacement >= -32768 && Displacement <= 32767) {
|
||||
BuildMI(*MBB, MBBJ, Opcode, 2).addReg(CRReg).addMBB(trueMBB);
|
||||
} else {
|
||||
// Long branch, skip next branch instruction (i.e. $PC+8).
|
||||
BuildMI(*MBB, MBBJ, Inverted, 2).addReg(CRReg).addImm(2);
|
||||
BuildMI(*MBB, MBBJ, PPC::B, 1).addMBB(trueMBB);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue