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

Chris Lattner lattner at cs.uiuc.edu
Tue Nov 23 13:17:49 PST 2004



Changes in directory llvm/lib/Target/PowerPC:

PowerPCInstrFormats.td updated: 1.24 -> 1.25
---
Log message:

Fix the encoding of OR, AND and many other instructions


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

Index: llvm/lib/Target/PowerPC/PowerPCInstrFormats.td
diff -u llvm/lib/Target/PowerPC/PowerPCInstrFormats.td:1.24 llvm/lib/Target/PowerPC/PowerPCInstrFormats.td:1.25
--- llvm/lib/Target/PowerPC/PowerPCInstrFormats.td:1.24	Tue Nov 23 14:41:34 2004
+++ llvm/lib/Target/PowerPC/PowerPCInstrFormats.td	Tue Nov 23 15:17:35 2004
@@ -218,7 +218,17 @@
 
 class XForm_6<bits<6> opcode, bits<10> xo, bit rc, bit ppc64, bit vmx,
               dag OL, string asmstr> 
-  : XForm_base_r3xo<opcode, xo, rc, ppc64, vmx, OL, asmstr>;
+  : I<opcode, ppc64, vmx, OL, asmstr> {
+  bits<5> A;
+  bits<5> RST;
+  bits<5> B;
+
+  let Inst{6-10}  = RST;
+  let Inst{11-15} = A;
+  let Inst{16-20} = B;
+  let Inst{21-30} = xo;
+  let Inst{31}    = rc;
+}
 
 class XForm_8<bits<6> opcode, bits<10> xo, bit ppc64, bit vmx,
               dag OL, string asmstr> 






More information about the llvm-commits mailing list