From 310a75287291b8a06d27c14849f184716e2aa666 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 24 Nov 2004 01:15:19 +0000 Subject: [PATCH] Branch instructions explicitly represent CRx in them. bEcause of this, encode 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 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Target/PowerPC/PPCInstrFormats.td b/lib/Target/PowerPC/PPCInstrFormats.td index c5ad77a958f..4053136e836 100644 --- a/lib/Target/PowerPC/PPCInstrFormats.td +++ b/lib/Target/PowerPC/PPCInstrFormats.td @@ -70,21 +70,23 @@ class IForm opcode, bit aa, bit lk, bit ppc64, bit vmx, class BForm opcode, bit aa, bit lk, bit ppc64, bit vmx, dag OL, string asmstr> : I { 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 opcode, bit aa, bit lk, bits<5> bo, bits<5> bi, +class BForm_ext opcode, bit aa, bit lk, bits<5> bo, bits<2> bicode, bit ppc64, bit vmx, dag OL, string asmstr> : BForm { let BO = bo; - let BI = bi; + let BICode = bicode; } // 1.7.4 D-Form -- 2.34.1