From: Chris Lattner Date: Wed, 12 Jul 2006 22:08:13 +0000 (+0000) Subject: Fix encoding of rotates, such as rldicl X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b2c0650ad363b7e7621cb0e1dffe89316e74166e;p=oota-llvm.git Fix encoding of rotates, such as rldicl git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29128 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCInstrFormats.td b/lib/Target/PowerPC/PPCInstrFormats.td index ae92c4388da..94eedc3bddc 100644 --- a/lib/Target/PowerPC/PPCInstrFormats.td +++ b/lib/Target/PowerPC/PPCInstrFormats.td @@ -619,10 +619,10 @@ class MDForm_1 opcode, bits<3> xo, dag OL, string asmstr, let Inst{6-10} = RS; let Inst{11-15} = RA; - let Inst{16-20} = SH{1-5}; - let Inst{21-26} = MBE; + let Inst{16-20} = { SH{4}, SH{3}, SH{2}, SH{1}, SH{0} }; + let Inst{21-26} = { MBE{4}, MBE{3}, MBE{2}, MBE{1}, MBE{0}, MBE{5} }; let Inst{27-29} = xo; - let Inst{30} = SH{0}; + let Inst{30} = SH{5}; let Inst{31} = RC; }