tidy indentation
[oota-llvm.git] / lib / Target / MSP430 / MSP430InstrInfo.td
index bcebff7f09d589aca05931e561a3e0b33435a013..144ba26cfeb4e423ee8a102e200ab5fc6e9d217f 100644 (file)
@@ -167,11 +167,18 @@ let isBranch = 1, isTerminator = 1 in {
 // FIXME: expand opcode & cond field for branches!
 
 // Direct branch
-let isBarrier = 1 in
+let isBarrier = 1 in {
+  // Short branch
   def JMP : CJForm<0, 0,
                    (outs), (ins brtarget:$dst),
                    "jmp\t$dst",
                    [(br bb:$dst)]>;
+  // Long branch
+  def B   : I16ri<0,
+                  (outs), (ins brtarget:$dst),
+                  "br\t$dst",
+                  []>;
+}
 
 // Conditional branches
 let Uses = [SRW] in
@@ -243,7 +250,7 @@ def MOV16ri : I16ri<0x0,
                     [(set GR16:$dst, imm:$src)]>;
 }
 
-let canFoldAsLoad = 1, isReMaterializable = 1, mayHaveSideEffects = 1 in {
+let canFoldAsLoad = 1, isReMaterializable = 1 in {
 def MOV8rm  : I8rm<0x0,
                    (outs GR8:$dst), (ins memsrc:$src),
                    "mov.b\t{$src, $dst}",
@@ -278,7 +285,7 @@ def MOV16rm_POST : IForm16<0x0, DstReg, SrcPostInc, Size2Bytes,
 // up to 16 bits.
 def def8 : PatLeaf<(i8 GR8:$src), [{
   return N->getOpcode() != ISD::TRUNCATE &&
-         N->getOpcode() != TargetInstrInfo::EXTRACT_SUBREG &&
+         N->getOpcode() != TargetOpcode::EXTRACT_SUBREG &&
          N->getOpcode() != ISD::CopyFromReg;
 }]>;