[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCInstrFormats.td
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 23 18:15:56 PST 2004
Changes in directory llvm/lib/Target/PowerPC:
PowerPCInstrFormats.td updated: 1.26 -> 1.27
---
Log message:
Fix the encoding of ORi and other DForm4 instructions. This brings us to
36/42 SingleSource/UnitTests passing!
---
Diffs of the changes: (+9 -1)
Index: llvm/lib/Target/PowerPC/PowerPCInstrFormats.td
diff -u llvm/lib/Target/PowerPC/PowerPCInstrFormats.td:1.26 llvm/lib/Target/PowerPC/PowerPCInstrFormats.td:1.27
--- llvm/lib/Target/PowerPC/PowerPCInstrFormats.td:1.26 Tue Nov 23 19:15:19 2004
+++ llvm/lib/Target/PowerPC/PowerPCInstrFormats.td Tue Nov 23 20:15:41 2004
@@ -130,7 +130,15 @@
: DForm_1<opcode, ppc64, vmx, OL, asmstr>;
class DForm_4<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> B;
+ bits<5> A;
+ bits<16> C;
+
+ let Inst{6-10} = A;
+ let Inst{11-15} = B;
+ let Inst{16-31} = C;
+}
class DForm_4_zero<bits<6> opcode, bit ppc64, bit vmx, dag OL, string asmstr>
: DForm_1<opcode, ppc64, vmx, OL, asmstr> {
More information about the llvm-commits
mailing list