convert over bform and iform instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2005-04-19 05:00:59 +00:00
parent 57226fbc7b
commit a611ab72ca
2 changed files with 17 additions and 17 deletions

View File

@@ -57,8 +57,8 @@ class I<bits<6> opcode, bit ppc64, bit vmx, dag OL, string asmstr>
}
// 1.7.1 I-Form
class IForm<bits<6> opcode, bit aa, bit lk, bit ppc64, bit vmx,
dag OL, string asmstr> : I<opcode, ppc64, vmx, OL, asmstr> {
class IForm<bits<6> opcode, bit aa, bit lk, dag OL, string asmstr>
: I<opcode, 0, 0, OL, asmstr> {
bits<24> LI;
let Inst{6-29} = LI;
@@ -67,8 +67,8 @@ class IForm<bits<6> opcode, bit aa, bit lk, bit ppc64, bit vmx,
}
// 1.7.2 B-Form
class BForm<bits<6> opcode, bit aa, bit lk, bit ppc64, bit vmx,
dag OL, string asmstr> : I<opcode, ppc64, vmx, OL, asmstr> {
class BForm<bits<6> opcode, bit aa, bit lk,
dag OL, string asmstr> : I<opcode, 0, 0, OL, asmstr> {
bits<5> BO;
bits<3> CRNum;
bits<2> BICode;
@@ -83,8 +83,8 @@ class BForm<bits<6> opcode, bit aa, bit lk, bit ppc64, bit vmx,
}
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> {
dag OL, string asmstr>
: BForm<opcode, aa, lk, OL, asmstr> {
let BO = bo;
let BICode = bicode;
}