diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-06 20:02:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-06 20:02:54 +0000 |
commit | c5e241b40aa9ea1426a8f7df637cea7b20603030 (patch) | |
tree | 020f65b4dbe2ee86c177809bc538c36a680d4806 /lib | |
parent | fae2c19de91ae9a31046aaed27d1e5afa8d3e158 (diff) |
fix the jit encoding of sradi, simplify the MDForm1 description.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/PowerPC/PPCInstrFormats.td | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/PowerPC/PPCInstrFormats.td b/lib/Target/PowerPC/PPCInstrFormats.td index 2b19bc6d1d..4b211c4b7f 100644 --- a/lib/Target/PowerPC/PPCInstrFormats.td +++ b/lib/Target/PowerPC/PPCInstrFormats.td @@ -498,7 +498,7 @@ class XFXForm_7_ext<bits<6> opcode, bits<10> xo, bits<10> spr, let SPR = spr; } -// 1.7.10 XS-Form +// 1.7.10 XS-Form - SRADI. class XSForm_1<bits<6> opcode, bits<9> xo, dag OL, string asmstr, InstrItinClass itin, list<dag> pattern> : I<opcode, OL, asmstr, itin> { @@ -511,9 +511,9 @@ class XSForm_1<bits<6> opcode, bits<9> xo, dag OL, string asmstr, let Inst{6-10} = RS; let Inst{11-15} = A; - let Inst{16-20} = SH{1-5}; + let Inst{16-20} = SH{4,3,2,1,0}; let Inst{21-29} = xo; - let Inst{30} = SH{0}; + let Inst{30} = SH{5}; let Inst{31} = RC; } @@ -618,8 +618,8 @@ class MDForm_1<bits<6> opcode, bits<3> xo, dag OL, string asmstr, let Inst{6-10} = RS; let Inst{11-15} = RA; - 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{16-20} = SH{4,3,2,1,0}; + let Inst{21-26} = MBE{4,3,2,1,0,5}; let Inst{27-29} = xo; let Inst{30} = SH{5}; let Inst{31} = RC; |