summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-16 01:45:05 +0000
committerChris Lattner <sabre@nondot.org>2010-11-16 01:45:05 +0000
commitcfedba706c7e9c5cafdec2bd83db021f8d507eb4 (patch)
tree0d0656ad854c59792b01bbdc756473bc4058aa59 /llvm/lib
parent24893797561e2f4107d13df9ed5903a5c453b36d (diff)
downloadbcm5719-llvm-cfedba706c7e9c5cafdec2bd83db021f8d507eb4.tar.gz
bcm5719-llvm-cfedba706c7e9c5cafdec2bd83db021f8d507eb4.zip
Fix a bug I introduced in the ppc refactoring, which caused long
branches to be emitted as: bne cr0, 2 instead of: bne cr0, $+8 llvm-svn: 119317
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index 9abf92c94cc..8b46fe1ffbc 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -291,6 +291,7 @@ def directbrtarget : Operand<OtherVT> {
let EncoderMethod = "getDirectBrEncoding";
}
def condbrtarget : Operand<OtherVT> {
+ let PrintMethod = "printBranchOperand";
let EncoderMethod = "getCondBrEncoding";
}
def calltarget : Operand<iPTR> {
OpenPOWER on IntegriCloud