summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCInstrFormats.td
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-08-26 04:11:42 +0000
committerNate Begeman <natebegeman@mac.com>2005-08-26 04:11:42 +0000
commit6718f11febbc4ded0a8f3964306442ad44c0fb98 (patch)
tree09cf368bc7467277a574ecdc5336c53f29f0b145 /lib/Target/PowerPC/PPCInstrFormats.td
parente4bc9ea0a560d8a0ba42f5a2da617e1f1f834710 (diff)
downloadllvm-6718f11febbc4ded0a8f3964306442ad44c0fb98.tar.gz
llvm-6718f11febbc4ded0a8f3964306442ad44c0fb98.tar.bz2
llvm-6718f11febbc4ded0a8f3964306442ad44c0fb98.tar.xz
Fix JIT encoding of conditional branches
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrFormats.td')
-rw-r--r--lib/Target/PowerPC/PPCInstrFormats.td22
1 files changed, 7 insertions, 15 deletions
diff --git a/lib/Target/PowerPC/PPCInstrFormats.td b/lib/Target/PowerPC/PPCInstrFormats.td
index a52bda249a..dfbbbe49e7 100644
--- a/lib/Target/PowerPC/PPCInstrFormats.td
+++ b/lib/Target/PowerPC/PPCInstrFormats.td
@@ -66,28 +66,20 @@ class IForm<bits<6> opcode, bit aa, bit lk, dag OL, string asmstr>
}
// 1.7.2 B-Form
-class BForm<bits<6> opcode, bit aa, bit lk, dag OL, string asmstr>
- : I<opcode, OL, asmstr> {
- bits<5> BO;
- bits<3> CRNum;
- bits<2> BICode;
+class BForm<bits<6> opcode, bit aa, bit lk, bits<5> bo, bits<2> bicode, dag OL,
+ string asmstr>
+ : I<opcode, OL, asmstr> {
+ bits<3> CR;
bits<14> BD;
- let Inst{6-10} = BO;
- let Inst{11-13} = CRNum;
- let Inst{14-15} = BICode;
+ let Inst{6-10} = bo;
+ let Inst{11-13} = CR;
+ 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<2> bicode,
- dag OL, string asmstr>
- : BForm<opcode, aa, lk, OL, asmstr> {
- let BO = bo;
- let BICode = bicode;
-}
-
// 1.7.4 D-Form
class DForm_base<bits<6> opcode, dag OL, string asmstr> : I<opcode, OL, asmstr>{
bits<5> A;