0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 //=- X86SchedSandyBridge.td - X86 Sandy Bridge Scheduling ----*- tablegen -*-=//
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 //
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 // The LLVM Compiler Infrastructure
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 //
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 // This file is distributed under the University of Illinois Open Source
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 // License. See LICENSE.TXT for details.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 //
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 //===----------------------------------------------------------------------===//
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 //
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 // This file defines the machine model for Sandy Bridge to support instruction
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 // scheduling and other instruction cost heuristics.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 //
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 //===----------------------------------------------------------------------===//
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 def SandyBridgeModel : SchedMachineModel {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 // All x86 instructions are modeled as a single micro-op, and SB can decode 4
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 // instructions per cycle.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18 // FIXME: Identify instructions that aren't a single fused micro-op.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 let IssueWidth = 4;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
20 let MicroOpBufferSize = 168; // Based on the reorder buffer.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
21 let LoadLatency = 4;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
22 let MispredictPenalty = 16;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
23
|
77
|
24 // Based on the LSD (loop-stream detector) queue size.
|
|
25 let LoopMicroOpBufferSize = 28;
|
|
26
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
27 // FIXME: SSE4 and AVX are unimplemented. This flag is set to allow
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
28 // the scheduler to assign a default model to unrecognized opcodes.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
29 let CompleteModel = 0;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
30 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
31
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
32 let SchedModel = SandyBridgeModel in {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
33
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
34 // Sandy Bridge can issue micro-ops to 6 different ports in one cycle.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
35
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
36 // Ports 0, 1, and 5 handle all computation.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
37 def SBPort0 : ProcResource<1>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
38 def SBPort1 : ProcResource<1>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
39 def SBPort5 : ProcResource<1>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
40
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
41 // Ports 2 and 3 are identical. They handle loads and the address half of
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
42 // stores.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
43 def SBPort23 : ProcResource<2>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
44
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
45 // Port 4 gets the data half of stores. Store data can be available later than
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
46 // the store address, but since we don't model the latency of stores, we can
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
47 // ignore that.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
48 def SBPort4 : ProcResource<1>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
49
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
50 // Many micro-ops are capable of issuing on multiple ports.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
51 def SBPort05 : ProcResGroup<[SBPort0, SBPort5]>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
52 def SBPort15 : ProcResGroup<[SBPort1, SBPort5]>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
53 def SBPort015 : ProcResGroup<[SBPort0, SBPort1, SBPort5]>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
54
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
55 // 54 Entry Unified Scheduler
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
56 def SBPortAny : ProcResGroup<[SBPort0, SBPort1, SBPort23, SBPort4, SBPort5]> {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
57 let BufferSize=54;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
58 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
59
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
60 // Integer division issued on port 0.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
61 def SBDivider : ProcResource<1>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
62
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
63 // Loads are 4 cycles, so ReadAfterLd registers needn't be available until 4
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
64 // cycles after the memory operand.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
65 def : ReadAdvance<ReadAfterLd, 4>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
66
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
67 // Many SchedWrites are defined in pairs with and without a folded load.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
68 // Instructions with folded loads are usually micro-fused, so they only appear
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
69 // as two micro-ops when queued in the reservation station.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
70 // This multiclass defines the resource usage for variants with and without
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
71 // folded loads.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
72 multiclass SBWriteResPair<X86FoldableSchedWrite SchedRW,
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
73 ProcResourceKind ExePort,
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
74 int Lat> {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
75 // Register variant is using a single cycle on ExePort.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
76 def : WriteRes<SchedRW, [ExePort]> { let Latency = Lat; }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
77
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
78 // Memory variant also uses a cycle on port 2/3 and adds 4 cycles to the
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
79 // latency.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
80 def : WriteRes<SchedRW.Folded, [SBPort23, ExePort]> {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
81 let Latency = !add(Lat, 4);
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
82 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
83 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
84
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
85 // A folded store needs a cycle on port 4 for the store data, but it does not
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
86 // need an extra port 2/3 cycle to recompute the address.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
87 def : WriteRes<WriteRMW, [SBPort4]>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
88
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
89 def : WriteRes<WriteStore, [SBPort23, SBPort4]>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
90 def : WriteRes<WriteLoad, [SBPort23]> { let Latency = 4; }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
91 def : WriteRes<WriteMove, [SBPort015]>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
92 def : WriteRes<WriteZero, []>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
93
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
94 defm : SBWriteResPair<WriteALU, SBPort015, 1>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
95 defm : SBWriteResPair<WriteIMul, SBPort1, 3>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
96 def : WriteRes<WriteIMulH, []> { let Latency = 3; }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
97 defm : SBWriteResPair<WriteShift, SBPort05, 1>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
98 defm : SBWriteResPair<WriteJump, SBPort5, 1>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
99
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
100 // This is for simple LEAs with one or two input operands.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
101 // The complex ones can only execute on port 1, and they require two cycles on
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
102 // the port to read all inputs. We don't model that.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
103 def : WriteRes<WriteLEA, [SBPort15]>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
104
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
105 // This is quite rough, latency depends on the dividend.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
106 def : WriteRes<WriteIDiv, [SBPort0, SBDivider]> {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
107 let Latency = 25;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
108 let ResourceCycles = [1, 10];
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
109 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
110 def : WriteRes<WriteIDivLd, [SBPort23, SBPort0, SBDivider]> {
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
111 let Latency = 29;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
112 let ResourceCycles = [1, 1, 10];
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
113 }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
114
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
115 // Scalar and vector floating point.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
116 defm : SBWriteResPair<WriteFAdd, SBPort1, 3>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
117 defm : SBWriteResPair<WriteFMul, SBPort0, 5>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
118 defm : SBWriteResPair<WriteFDiv, SBPort0, 12>; // 10-14 cycles.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
119 defm : SBWriteResPair<WriteFRcp, SBPort0, 5>;
|
83
|
120 defm : SBWriteResPair<WriteFRsqrt, SBPort0, 5>;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
121 defm : SBWriteResPair<WriteFSqrt, SBPort0, 15>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
122 defm : SBWriteResPair<WriteCvtF2I, SBPort1, 3>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
123 defm : SBWriteResPair<WriteCvtI2F, SBPort1, 4>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
124 defm : SBWriteResPair<WriteCvtF2F, SBPort1, 3>;
|
77
|
125 defm : SBWriteResPair<WriteFShuffle, SBPort5, 1>;
|
|
126 defm : SBWriteResPair<WriteFBlend, SBPort05, 1>;
|
|
127 def : WriteRes<WriteFVarBlend, [SBPort0, SBPort5]> {
|
|
128 let Latency = 2;
|
|
129 let ResourceCycles = [1, 1];
|
|
130 }
|
|
131 def : WriteRes<WriteFVarBlendLd, [SBPort0, SBPort5, SBPort23]> {
|
|
132 let Latency = 6;
|
|
133 let ResourceCycles = [1, 1, 1];
|
|
134 }
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
135
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
136 // Vector integer operations.
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
137 defm : SBWriteResPair<WriteVecShift, SBPort05, 1>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
138 defm : SBWriteResPair<WriteVecLogic, SBPort015, 1>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
139 defm : SBWriteResPair<WriteVecALU, SBPort15, 1>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
140 defm : SBWriteResPair<WriteVecIMul, SBPort0, 5>;
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
141 defm : SBWriteResPair<WriteShuffle, SBPort15, 1>;
|
77
|
142 defm : SBWriteResPair<WriteBlend, SBPort15, 1>;
|
|
143 def : WriteRes<WriteVarBlend, [SBPort1, SBPort5]> {
|
|
144 let Latency = 2;
|
|
145 let ResourceCycles = [1, 1];
|
|
146 }
|
|
147 def : WriteRes<WriteVarBlendLd, [SBPort1, SBPort5, SBPort23]> {
|
|
148 let Latency = 6;
|
|
149 let ResourceCycles = [1, 1, 1];
|
|
150 }
|
|
151 def : WriteRes<WriteMPSAD, [SBPort0, SBPort1, SBPort5]> {
|
|
152 let Latency = 6;
|
|
153 let ResourceCycles = [1, 1, 1];
|
|
154 }
|
|
155 def : WriteRes<WriteMPSADLd, [SBPort0, SBPort1, SBPort5, SBPort23]> {
|
|
156 let Latency = 6;
|
|
157 let ResourceCycles = [1, 1, 1, 1];
|
|
158 }
|
|
159
|
|
160 // String instructions.
|
|
161 // Packed Compare Implicit Length Strings, Return Mask
|
|
162 def : WriteRes<WritePCmpIStrM, [SBPort015]> {
|
|
163 let Latency = 11;
|
|
164 let ResourceCycles = [3];
|
|
165 }
|
|
166 def : WriteRes<WritePCmpIStrMLd, [SBPort015, SBPort23]> {
|
|
167 let Latency = 11;
|
|
168 let ResourceCycles = [3, 1];
|
|
169 }
|
|
170
|
|
171 // Packed Compare Explicit Length Strings, Return Mask
|
|
172 def : WriteRes<WritePCmpEStrM, [SBPort015]> {
|
|
173 let Latency = 11;
|
|
174 let ResourceCycles = [8];
|
|
175 }
|
|
176 def : WriteRes<WritePCmpEStrMLd, [SBPort015, SBPort23]> {
|
|
177 let Latency = 11;
|
|
178 let ResourceCycles = [7, 1];
|
|
179 }
|
|
180
|
|
181 // Packed Compare Implicit Length Strings, Return Index
|
|
182 def : WriteRes<WritePCmpIStrI, [SBPort015]> {
|
|
183 let Latency = 3;
|
|
184 let ResourceCycles = [3];
|
|
185 }
|
|
186 def : WriteRes<WritePCmpIStrILd, [SBPort015, SBPort23]> {
|
|
187 let Latency = 3;
|
|
188 let ResourceCycles = [3, 1];
|
|
189 }
|
|
190
|
|
191 // Packed Compare Explicit Length Strings, Return Index
|
|
192 def : WriteRes<WritePCmpEStrI, [SBPort015]> {
|
|
193 let Latency = 4;
|
|
194 let ResourceCycles = [8];
|
|
195 }
|
|
196 def : WriteRes<WritePCmpEStrILd, [SBPort015, SBPort23]> {
|
|
197 let Latency = 4;
|
|
198 let ResourceCycles = [7, 1];
|
|
199 }
|
|
200
|
|
201 // AES Instructions.
|
|
202 def : WriteRes<WriteAESDecEnc, [SBPort015]> {
|
|
203 let Latency = 8;
|
|
204 let ResourceCycles = [2];
|
|
205 }
|
|
206 def : WriteRes<WriteAESDecEncLd, [SBPort015, SBPort23]> {
|
|
207 let Latency = 8;
|
|
208 let ResourceCycles = [2, 1];
|
|
209 }
|
|
210
|
|
211 def : WriteRes<WriteAESIMC, [SBPort015]> {
|
|
212 let Latency = 8;
|
|
213 let ResourceCycles = [2];
|
|
214 }
|
|
215 def : WriteRes<WriteAESIMCLd, [SBPort015, SBPort23]> {
|
|
216 let Latency = 8;
|
|
217 let ResourceCycles = [2, 1];
|
|
218 }
|
|
219
|
|
220 def : WriteRes<WriteAESKeyGen, [SBPort015]> {
|
|
221 let Latency = 8;
|
|
222 let ResourceCycles = [11];
|
|
223 }
|
|
224 def : WriteRes<WriteAESKeyGenLd, [SBPort015, SBPort23]> {
|
|
225 let Latency = 8;
|
|
226 let ResourceCycles = [10, 1];
|
|
227 }
|
|
228
|
|
229 // Carry-less multiplication instructions.
|
|
230 def : WriteRes<WriteCLMul, [SBPort015]> {
|
|
231 let Latency = 14;
|
|
232 let ResourceCycles = [18];
|
|
233 }
|
|
234 def : WriteRes<WriteCLMulLd, [SBPort015, SBPort23]> {
|
|
235 let Latency = 14;
|
|
236 let ResourceCycles = [17, 1];
|
|
237 }
|
|
238
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
239
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
240 def : WriteRes<WriteSystem, [SBPort015]> { let Latency = 100; }
|
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
241 def : WriteRes<WriteMicrocoded, [SBPort015]> { let Latency = 100; }
|
77
|
242 def : WriteRes<WriteFence, [SBPort23, SBPort4]>;
|
|
243 def : WriteRes<WriteNop, []>;
|
|
244
|
|
245 // AVX2 is not supported on that architecture, but we should define the basic
|
|
246 // scheduling resources anyway.
|
|
247 defm : SBWriteResPair<WriteFShuffle256, SBPort0, 1>;
|
|
248 defm : SBWriteResPair<WriteShuffle256, SBPort0, 1>;
|
|
249 defm : SBWriteResPair<WriteVarVecShift, SBPort0, 1>;
|
0
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
250 } // SchedModel
|