aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-05-28 17:32:56 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-05-28 17:32:56 +0000
commita45594289578402e2f0650478cc481e8d37653d5 (patch)
treedeb4a6cdc2034de26f34dd5c61911eaf53527831 /lib/Target
parentdf75a27609a3f3863ddc37f9245f74a4dca05e78 (diff)
downloadexternal_llvm-a45594289578402e2f0650478cc481e8d37653d5.zip
external_llvm-a45594289578402e2f0650478cc481e8d37653d5.tar.gz
external_llvm-a45594289578402e2f0650478cc481e8d37653d5.tar.bz2
Mark the branch insns correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/PIC16/PIC16InstrInfo.td3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PIC16/PIC16InstrInfo.td b/lib/Target/PIC16/PIC16InstrInfo.td
index db798e4..c572188 100644
--- a/lib/Target/PIC16/PIC16InstrInfo.td
+++ b/lib/Target/PIC16/PIC16InstrInfo.td
@@ -452,12 +452,13 @@ let isCall = 1,
[(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)]>;