Fix the encoding of OR, AND and many other instructions
authorChris Lattner <sabre@nondot.org>
Tue, 23 Nov 2004 21:17:35 +0000 (21:17 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 23 Nov 2004 21:17:35 +0000 (21:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18174 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrFormats.td

index f1da7bdbeb3d51e5dd8fbfa2d6290ddf7d2c7dfc..c5ad77a958fa9127462738441d85c201a0948644 100644 (file)
@@ -218,7 +218,17 @@ class XForm_5<bits<6> opcode, bits<10> xo, bit ppc64, bit vmx,
 
 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>