[llvm-commits] [llvm] r119317 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
Chris Lattner
sabre at nondot.org
Mon Nov 15 17:45:05 PST 2010
Author: lattner
Date: Mon Nov 15 19:45:05 2010
New Revision: 119317
URL: http://llvm.org/viewvc/llvm-project?rev=119317&view=rev
Log:
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
Modified:
llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td?rev=119317&r1=119316&r2=119317&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td Mon Nov 15 19:45:05 2010
@@ -291,6 +291,7 @@
let EncoderMethod = "getDirectBrEncoding";
}
def condbrtarget : Operand<OtherVT> {
+ let PrintMethod = "printBranchOperand";
let EncoderMethod = "getCondBrEncoding";
}
def calltarget : Operand<iPTR> {
More information about the llvm-commits
mailing list