[llvm-commits] [llvm] r72529 - /llvm/trunk/lib/Target/PIC16/PIC16InstrInfo.td
Sanjiv Gupta
sanjiv.gupta at microchip.com
Thu May 28 10:32:57 PDT 2009
Author: sgupta
Date: Thu May 28 12:32:56 2009
New Revision: 72529
URL: http://llvm.org/viewvc/llvm-project?rev=72529&view=rev
Log:
Mark the branch insns correctly.
Modified:
llvm/trunk/lib/Target/PIC16/PIC16InstrInfo.td
Modified: llvm/trunk/lib/Target/PIC16/PIC16InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16InstrInfo.td?rev=72529&r1=72528&r2=72529&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16InstrInfo.td (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16InstrInfo.td Thu May 28 12:32:56 2009
@@ -452,12 +452,13 @@
[(set GPR:$dest, (PIC16callw (PIC16Connect GPR:$func, PCLATHR:$pc)))]>;
}
-let Uses = [STATUS] in
+let Uses = [STATUS], isBranch = 1, isTerminator = 1, hasDelaySlot = 0 in
def pic16brcond: ControlFormat<0x0, (outs), (ins brtarget:$dst, CCOp:$cc),
"b$cc $dst",
[(PIC16Brcond bb:$dst, imm:$cc)]>;
// Unconditional branch.
+let isBranch = 1, isTerminator = 1, hasDelaySlot = 0 in
def br_uncond: ControlFormat<0x0, (outs), (ins brtarget:$dst),
"goto $dst",
[(br bb:$dst)]>;
More information about the llvm-commits
mailing list