summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/MSP430InstrInfo.td
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-05-01 12:28:21 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-05-01 12:28:21 +0000
commit1b17614a7283f903363f7c4305da6ea742d3d28b (patch)
treee45dca2414bd69e74eb96fa684b66de5e11784a6 /lib/Target/MSP430/MSP430InstrInfo.td
parent69d5b48bc31b7a443355cdf1506005804b4f63e6 (diff)
downloadllvm-1b17614a7283f903363f7c4305da6ea742d3d28b.tar.gz
llvm-1b17614a7283f903363f7c4305da6ea742d3d28b.tar.bz2
llvm-1b17614a7283f903363f7c4305da6ea742d3d28b.tar.xz
Do folding for indirect branches, where possible
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/MSP430InstrInfo.td')
-rw-r--r--lib/Target/MSP430/MSP430InstrInfo.td9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Target/MSP430/MSP430InstrInfo.td b/lib/Target/MSP430/MSP430InstrInfo.td
index 999364872b..6b9a2f2f29 100644
--- a/lib/Target/MSP430/MSP430InstrInfo.td
+++ b/lib/Target/MSP430/MSP430InstrInfo.td
@@ -76,9 +76,6 @@ def memdst : Operand<i16> {
let MIOperandInfo = (ops GR16, i16imm);
}
-// Branch targets have OtherVT type.
-def brtarget : Operand<OtherVT>;
-
// Short jump targets have OtherVT type and are printed as pcrel imm values.
def jmptarget : Operand<OtherVT> {
let PrintMethod = "printPCRelImmOperand";
@@ -177,9 +174,9 @@ let isBarrier = 1 in {
[(br bb:$dst)]>;
let isIndirectBranch = 1 in {
// Long branches
- def B : I16ri<0, (outs), (ins brtarget:$dst),
- "br\t$dst",
- []>;
+ def Bi : I16ri<0, (outs), (ins i16imm:$brdst),
+ "br\t$brdst",
+ [(brind tblockaddress:$brdst)]>;
def Br : I16rr<0, (outs), (ins GR16:$brdst),
"mov.w\t{$brdst, pc}",
[(brind GR16:$brdst)]>;