Add BA, BL, and BLA opcodes
authorMisha Brukman <brukman+llvm@gmail.com>
Sat, 23 Oct 2004 20:29:24 +0000 (20:29 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Sat, 23 Oct 2004 20:29:24 +0000 (20:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17193 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrInfo.td

index 8d539b859a6d907a1e4c27b46e281b1096dd9ff0..69cc55fc796d3f7af2b49469c7412225e831ad2d 100644 (file)
@@ -53,7 +53,10 @@ def MovePCtoLR : Pseudo<(ops piclabel:$label), "bl $label">;
 
 let isBranch = 1, isTerminator = 1 in {
   def COND_BRANCH : Pseudo<(ops), "; COND_BRANCH">;
-  def B : IForm<18, 0, 0, 0, 0, (ops target:$func), "b $func">;
+  def B   : IForm<18, 0, 0, 0, 0, (ops target:$func), "b $func">;
+  def BA  : IForm<18, 1, 0, 0, 0, (ops target:$func), "ba $func">;
+  def BL  : IForm<18, 0, 1, 0, 0, (ops target:$func), "bl $func">;
+  def BLA : IForm<18, 1, 1, 0, 0, (ops target:$func), "bla $func">;
   // FIXME: 4*CR# needs to be added to the BI field!
   // This will only work for CR0 as it stands now
   def BLT : BForm_ext<16, 0, 0, 12, 0, 0, 0, (ops CRRC:$crS, target:$block),