DForm_1, particularly used by store instructions, needs the immediate operand to

be listed second as that is how the instructions are usually created (and is the
correct asm syntax) so that it's assembled correctly from its constituents

llvm-svn: 17183
This commit is contained in:
Misha Brukman 2004-10-23 06:08:38 +00:00
parent e882d30aa1
commit 15b0fb5678
1 changed files with 13 additions and 1 deletions

View File

@ -131,9 +131,21 @@ class DForm_base<bits<6> opcode, bit ppc64, bit vmx, dag OL, string asmstr>
}
class DForm_1<bits<6> opcode, bit ppc64, bit vmx, dag OL, string asmstr>
: DForm_base<opcode, ppc64, vmx, OL, asmstr> {
: I<opcode, ppc64, vmx, OL, asmstr> {
bits<5> A;
bits<16> C;
bits<5> B;
let ArgCount = 3;
let Arg0Type = Gpr.Value;
let Arg1Type = Disimm16.Value;
let Arg2Type = Gpr.Value;
let Arg3Type = 0;
let Arg4Type = 0;
let Inst{6-10} = A;
let Inst{11-15} = B;
let Inst{16-31} = C;
}
class DForm_2<bits<6> opcode, bit ppc64, bit vmx, dag OL, string asmstr>