Branch instructions explicitly represent CRx in them. bEcause of this, encode
authorChris Lattner <sabre@nondot.org>
Wed, 24 Nov 2004 01:15:19 +0000 (01:15 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 24 Nov 2004 01:15:19 +0000 (01:15 +0000)
them explicitly as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18193 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrFormats.td

index c5ad77a958fa9127462738441d85c201a0948644..4053136e8365e923ec8833efb3daf4d129e635e9 100644 (file)
@@ -70,21 +70,23 @@ class IForm<bits<6> opcode, bit aa, bit lk, bit ppc64, bit vmx,
 class BForm<bits<6> opcode, bit aa, bit lk, bit ppc64, bit vmx,
             dag OL, string asmstr> : I<opcode, ppc64, vmx, OL, asmstr> {
   bits<5>  BO;
-  bits<5>  BI;
+  bits<3>  CRNum;
+  bits<2>  BICode;
   bits<14> BD;
 
   let Inst{6-10}  = BO;
-  let Inst{11-15} = BI;
+  let Inst{11-13} = CRNum;
+  let Inst{14-15} = BICode;
   let Inst{16-29} = BD;
   let Inst{30}    = aa;
   let Inst{31}    = lk;
 }
 
-class BForm_ext<bits<6> opcode, bit aa, bit lk, bits<5> bo, bits<5> bi
+class BForm_ext<bits<6> opcode, bit aa, bit lk, bits<5> bo, bits<2> bicode
                 bit ppc64, bit vmx, dag OL, string asmstr>
   : BForm<opcode, aa, lk, ppc64, vmx, OL, asmstr> {
   let BO = bo;
-  let BI = bi;
+  let BICode = bicode;
 }
 
 // 1.7.4 D-Form