Fix the encoding of ORi and other DForm4 instructions. This brings us to
authorChris Lattner <sabre@nondot.org>
Wed, 24 Nov 2004 02:15:41 +0000 (02:15 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 24 Nov 2004 02:15:41 +0000 (02:15 +0000)
36/42 SingleSource/UnitTests passing!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18199 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrFormats.td

index 4053136e8365e923ec8833efb3daf4d129e635e9..52159dc040139a18a304570a48c523576d4d369f 100644 (file)
@@ -130,7 +130,15 @@ class DForm_3<bits<6> opcode, bit ppc64, bit vmx, dag OL, string asmstr>
   : 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> {