[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCInstrFormats.td

Misha Brukman brukman at cs.uiuc.edu
Fri Oct 22 23:08:49 PDT 2004



Changes in directory llvm/lib/Target/PowerPC:

PowerPCInstrFormats.td updated: 1.21 -> 1.22
---
Log message:

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


---
Diffs of the changes:  (+13 -1)

Index: llvm/lib/Target/PowerPC/PowerPCInstrFormats.td
diff -u llvm/lib/Target/PowerPC/PowerPCInstrFormats.td:1.21 llvm/lib/Target/PowerPC/PowerPCInstrFormats.td:1.22
--- llvm/lib/Target/PowerPC/PowerPCInstrFormats.td:1.21	Thu Oct 14 00:55:37 2004
+++ llvm/lib/Target/PowerPC/PowerPCInstrFormats.td	Sat Oct 23 01:08:38 2004
@@ -131,9 +131,21 @@
 }
 
 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>






More information about the llvm-commits mailing list