summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-11-12 07:39:39 +0000
committerOwen Anderson <resistor@mac.com>2007-11-12 07:39:39 +0000
commit933b5b7e6274bfb79725e9158ba47fd5d3a7ca47 (patch)
tree87cde4ffaecafd34e396816649908748be329ddf /llvm/lib/Target/PowerPC
parentbe51f28e2b342931c1e61437cf579bc14b690302 (diff)
downloadbcm5719-llvm-933b5b7e6274bfb79725e9158ba47fd5d3a7ca47.tar.gz
bcm5719-llvm-933b5b7e6274bfb79725e9158ba47fd5d3a7ca47.zip
Add a flag for indirect branch instructions.
Target maintainers: please check that the instructions for your target are correctly marked. llvm-svn: 44012
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.td3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index 6a08cea512e..77e00e57761 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -369,7 +369,8 @@ let isTerminator = 1, isBarrier = 1, PPC970_Unit = 7 in {
def BLR : XLForm_2_br<19, 16, 0, (outs), (ins pred:$p),
"b${p:cc}lr ${p:reg}", BrB,
[(retflag)]>;
- def BCTR : XLForm_2_ext<19, 528, 20, 0, 0, (outs), (ins), "bctr", BrB, []>;
+ let isBranch = 1, isIndirectBranch = 1 in
+ def BCTR : XLForm_2_ext<19, 528, 20, 0, 0, (outs), (ins), "bctr", BrB, []>;
}
OpenPOWER on IntegriCloud