diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-04-19 05:21:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-04-19 05:21:30 +0000 |
| commit | 14522e31d98fd44bbc2b0584aa8f2cbbd9104f43 (patch) | |
| tree | 05c9d16a5cec7a2852f8198f279fde0a84e5d356 /lib/Target/PowerPC/PPCInstrFormats.td | |
| parent | 883059fb583c9bd2d88d31d20e5615a1cf1e979a (diff) | |
switch over the rest of the formats that use RC to use isDOT
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21352 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrFormats.td')
| -rw-r--r-- | lib/Target/PowerPC/PPCInstrFormats.td | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/lib/Target/PowerPC/PPCInstrFormats.td b/lib/Target/PowerPC/PPCInstrFormats.td index 0a68dd44ea..ca4f612be5 100644 --- a/lib/Target/PowerPC/PPCInstrFormats.td +++ b/lib/Target/PowerPC/PPCInstrFormats.td @@ -418,96 +418,101 @@ class XSForm_1<bits<6> opcode, bits<9> xo, dag OL, string asmstr> } // 1.7.11 XO-Form -class XOForm_1<bits<6> opcode, bits<9> xo, bit oe, bit rc, - dag OL, string asmstr> : I<opcode, OL, asmstr> { +class XOForm_1<bits<6> opcode, bits<9> xo, bit oe, dag OL, string asmstr> + : I<opcode, OL, asmstr> { bits<5> RT; bits<5> RA; bits<5> RB; + bit RC = 0; // set by isDOT + let Inst{6-10} = RT; let Inst{11-15} = RA; let Inst{16-20} = RB; let Inst{21} = oe; let Inst{22-30} = xo; - let Inst{31} = rc; + let Inst{31} = RC; } -class XOForm_1r<bits<6> opcode, bits<9> xo, bit oe, bit rc, - dag OL, string asmstr> - : XOForm_1<opcode, xo, oe, rc, OL, asmstr> { +class XOForm_1r<bits<6> opcode, bits<9> xo, bit oe, dag OL, string asmstr> + : XOForm_1<opcode, xo, oe, OL, asmstr> { let Inst{11-15} = RB; let Inst{16-20} = RA; } -class XOForm_3<bits<6> opcode, bits<9> xo, bit oe, bit rc, +class XOForm_3<bits<6> opcode, bits<9> xo, bit oe, dag OL, string asmstr> - : XOForm_1<opcode, xo, oe, rc, OL, asmstr> { + : XOForm_1<opcode, xo, oe, OL, asmstr> { let RB = 0; } // 1.7.12 A-Form -class AForm_1<bits<6> opcode, bits<5> xo, bit rc, dag OL, string asmstr> +class AForm_1<bits<6> opcode, bits<5> xo, dag OL, string asmstr> : I<opcode, OL, asmstr> { bits<5> FRT; bits<5> FRA; bits<5> FRC; bits<5> FRB; + bit RC = 0; // set by isDOT + let Inst{6-10} = FRT; let Inst{11-15} = FRA; let Inst{16-20} = FRB; let Inst{21-25} = FRC; let Inst{26-30} = xo; - let Inst{31} = rc; + let Inst{31} = RC; } -class AForm_2<bits<6> opcode, bits<5> xo, bit rc, dag OL, string asmstr> - : AForm_1<opcode, xo, rc, OL, asmstr> { +class AForm_2<bits<6> opcode, bits<5> xo, dag OL, string asmstr> + : AForm_1<opcode, xo, OL, asmstr> { let FRC = 0; } -class AForm_3<bits<6> opcode, bits<5> xo, bit rc, dag OL, - string asmstr> - : AForm_1<opcode, xo, rc, OL, asmstr> { +class AForm_3<bits<6> opcode, bits<5> xo, dag OL, string asmstr> + : AForm_1<opcode, xo, OL, asmstr> { let FRB = 0; } // 1.7.13 M-Form -class MForm_1<bits<6> opcode, bit rc, dag OL, string asmstr> - : I<opcode, OL, asmstr> { +class MForm_1<bits<6> opcode, dag OL, string asmstr> : I<opcode, OL, asmstr> { bits<5> RA; bits<5> RS; bits<5> RB; bits<5> MB; bits<5> ME; + bit RC = 0; // set by isDOT + let Inst{6-10} = RS; let Inst{11-15} = RA; let Inst{16-20} = RB; let Inst{21-25} = MB; let Inst{26-30} = ME; - let Inst{31} = rc; + let Inst{31} = RC; } -class MForm_2<bits<6> opcode, bit rc, dag OL, string asmstr> - : MForm_1<opcode, rc, OL, asmstr> { +class MForm_2<bits<6> opcode, dag OL, string asmstr> + : MForm_1<opcode, OL, asmstr> { } // 1.7.14 MD-Form -class MDForm_1<bits<6> opcode, bits<3> xo, bit rc, - dag OL, string asmstr> : I<opcode, OL, asmstr> { +class MDForm_1<bits<6> opcode, bits<3> xo, dag OL, string asmstr> + : I<opcode, OL, asmstr> { bits<5> RS; bits<5> RA; bits<6> SH; bits<6> MBE; + bit RC = 0; // set by isDOT + let Inst{6-10} = RS; let Inst{11-15} = RA; let Inst{16-20} = SH{1-5}; let Inst{21-26} = MBE; let Inst{27-29} = xo; let Inst{30} = SH{0}; - let Inst{31} = rc; + let Inst{31} = RC; } //===----------------------------------------------------------------------===// |
