mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
CellSPU:
- Fix bug 3185, with misc other cleanups. - Needed to implement SPUInstrInfo::InsertBranch(). CAUTION: Not sure what gets or needs to get passed to InsertBranch() to insert a conditional branch. This will abort for now until a good test case shows up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -220,6 +220,18 @@ namespace {
|
||||
}
|
||||
|
||||
void printPCRelativeOperand(const MachineInstr *MI, unsigned OpNo) {
|
||||
// Used to generate a ".-<target>", but it turns out that the assembler
|
||||
// really wants the target.
|
||||
//
|
||||
// N.B.: This operand is used for call targets. Branch hints are another
|
||||
// animal entirely.
|
||||
printOp(MI->getOperand(OpNo));
|
||||
}
|
||||
|
||||
void printHBROperand(const MachineInstr *MI, unsigned OpNo) {
|
||||
// HBR operands are generated in front of branches, hence, the
|
||||
// program counter plus the target.
|
||||
O << ".+";
|
||||
printOp(MI->getOperand(OpNo));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user