1 //===- X86SchedAlderlakeP.td - X86 Alderlake-P Scheduling ----*- tablegen -*-=//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file defines the machine model for Alderlake-P core to support
10 // instruction scheduling and other instruction cost heuristics.
12 //===----------------------------------------------------------------------===//
14 def AlderlakePModel : SchedMachineModel {
15 // Alderlake-P core can allocate 6 uops per cycle.
16 let IssueWidth = 6; // Based on allocator width.
17 let MicroOpBufferSize = 512; // Based on the reorder buffer.
19 let MispredictPenalty = 14;
21 // Latency for microcoded instructions or instructions without latency info.
24 // Based on the LSD (loop-stream detector) queue size (ST).
25 let LoopMicroOpBufferSize = 72;
27 // This flag is set to allow the scheduler to assign a default model to
28 // unrecognized opcodes.
29 let CompleteModel = 0;
32 let SchedModel = AlderlakePModel in {
34 // Alderlake-P core can issue micro-ops to 12 different ports in one cycle.
35 def ADLPPort00 : ProcResource<1>;
36 def ADLPPort01 : ProcResource<1>;
37 def ADLPPort02 : ProcResource<1>;
38 def ADLPPort03 : ProcResource<1>;
39 def ADLPPort04 : ProcResource<1>;
40 def ADLPPort05 : ProcResource<1>;
41 def ADLPPort06 : ProcResource<1>;
42 def ADLPPort07 : ProcResource<1>;
43 def ADLPPort08 : ProcResource<1>;
44 def ADLPPort09 : ProcResource<1>;
45 def ADLPPort10 : ProcResource<1>;
46 def ADLPPort11 : ProcResource<1>;
48 // Workaround to represent invalid ports. WriteRes shouldn't use this resource.
49 def ADLPPortInvalid : ProcResource<1>;
51 // Many micro-ops are capable of issuing on multiple ports.
52 def ADLPPort00_01 : ProcResGroup<[ADLPPort00, ADLPPort01]>;
53 def ADLPPort00_01_05 : ProcResGroup<[ADLPPort00, ADLPPort01, ADLPPort05]>;
54 def ADLPPort00_01_05_06 : ProcResGroup<[ADLPPort00, ADLPPort01, ADLPPort05, ADLPPort06]>;
55 def ADLPPort00_05 : ProcResGroup<[ADLPPort00, ADLPPort05]>;
56 def ADLPPort00_05_06 : ProcResGroup<[ADLPPort00, ADLPPort05, ADLPPort06]>;
57 def ADLPPort00_06 : ProcResGroup<[ADLPPort00, ADLPPort06]>;
58 def ADLPPort01_05 : ProcResGroup<[ADLPPort01, ADLPPort05]>;
59 def ADLPPort01_05_11 : ProcResGroup<[ADLPPort01, ADLPPort05, ADLPPort11]>;
60 def ADLPPort02_03 : ProcResGroup<[ADLPPort02, ADLPPort03]>;
61 def ADLPPort02_03_07 : ProcResGroup<[ADLPPort02, ADLPPort03, ADLPPort07]>;
62 def ADLPPort02_03_10 : ProcResGroup<[ADLPPort02, ADLPPort03, ADLPPort10]>;
63 def ADLPPort07_08 : ProcResGroup<[ADLPPort07, ADLPPort08]>;
65 // EU has 112 reservation stations.
66 def ADLPPort00_01_05_06_11 : ProcResGroup<[ADLPPort00, ADLPPort01, ADLPPort05,
67 ADLPPort06, ADLPPort11]> {
71 // STD has 48 reservation stations.
72 def ADLPPort04_09 : ProcResGroup<[ADLPPort04, ADLPPort09]> {
76 // MEM has 72 reservation stations.
77 def ADLPPort02_03_07_08_10 : ProcResGroup<[ADLPPort02, ADLPPort03, ADLPPort07,
78 ADLPPort08, ADLPPort10]> {
82 def ADLPPortAny : ProcResGroup<[ADLPPort00, ADLPPort01, ADLPPort02, ADLPPort03,
83 ADLPPort04, ADLPPort05, ADLPPort06, ADLPPort07,
84 ADLPPort08, ADLPPort09, ADLPPort10, ADLPPort11]>;
86 // Integer loads are 5 cycles, so ReadAfterLd registers needn't be available
87 // until 5 cycles after the memory operand.
88 def : ReadAdvance<ReadAfterLd, 5>;
90 // Vector loads are 6 cycles, so ReadAfterVec*Ld registers needn't be available
91 // until 6 cycles after the memory operand.
92 def : ReadAdvance<ReadAfterVecLd, 6>;
93 def : ReadAdvance<ReadAfterVecXLd, 6>;
94 def : ReadAdvance<ReadAfterVecYLd, 6>;
96 def : ReadAdvance<ReadInt2Fpu, 0>;
98 // Many SchedWrites are defined in pairs with and without a folded load.
99 // Instructions with folded loads are usually micro-fused, so they only appear
100 // as two micro-ops when queued in the reservation station.
101 // This multiclass defines the resource usage for variants with and without
103 multiclass ADLPWriteResPair<X86FoldableSchedWrite SchedRW,
104 list<ProcResourceKind> ExePorts,
105 int Lat, list<int> Res = [1], int UOps = 1,
106 int LoadLat = 5, int LoadUOps = 1> {
107 // Register variant is using a single cycle on ExePort.
108 def : WriteRes<SchedRW, ExePorts> {
110 let ReleaseAtCycles = Res;
111 let NumMicroOps = UOps;
114 // Memory variant also uses a cycle on port 2/3/11 and adds LoadLat cycles to
115 // the latency (default = 5).
116 def : WriteRes<SchedRW.Folded, !listconcat([ADLPPort02_03_10], ExePorts)> {
117 let Latency = !add(Lat, LoadLat);
118 let ReleaseAtCycles = !listconcat([1], Res);
119 let NumMicroOps = !add(UOps, LoadUOps);
123 //===----------------------------------------------------------------------===//
124 // The following definitons are infered by smg.
125 //===----------------------------------------------------------------------===//
127 // Infered SchedWrite definition.
128 def : WriteRes<WriteADC, [ADLPPort00_06]>;
129 defm : X86WriteRes<WriteADCLd, [ADLPPort00_01_05_06_11, ADLPPort00_06], 11, [1, 1], 2>;
130 defm : ADLPWriteResPair<WriteAESDecEnc, [ADLPPort00_01], 5, [1], 1, 7>;
131 defm : ADLPWriteResPair<WriteAESIMC, [ADLPPort00_01], 8, [2], 2, 7>;
132 defm : X86WriteRes<WriteAESKeyGen, [ADLPPort00, ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01_05, ADLPPort05], 7, [4, 1, 1, 2, 3, 3], 14>;
133 defm : X86WriteRes<WriteAESKeyGenLd, [ADLPPort00, ADLPPort00_01, ADLPPort00_06, ADLPPort01_05, ADLPPort02_03_10, ADLPPort05], 12, [4, 1, 2, 3, 1, 3], 14>;
134 def : WriteRes<WriteALU, [ADLPPort00_01_05_06_11]>;
135 def : WriteRes<WriteALULd, [ADLPPort00_01_05_06_11]> {
138 defm : ADLPWriteResPair<WriteBEXTR, [ADLPPort00_06, ADLPPort01], 6, [1, 1], 2>;
139 defm : ADLPWriteResPair<WriteBLS, [ADLPPort01_05_11], 2, [1]>;
140 defm : ADLPWriteResPair<WriteBSF, [ADLPPort01], 3, [1]>;
141 defm : ADLPWriteResPair<WriteBSR, [ADLPPort01], 3, [1]>;
142 def : WriteRes<WriteBSWAP32, [ADLPPort01]>;
143 defm : X86WriteRes<WriteBSWAP64, [ADLPPort00_06, ADLPPort01], 2, [1, 1], 2>;
144 defm : ADLPWriteResPair<WriteBZHI, [ADLPPort01], 3, [1]>;
145 def : WriteRes<WriteBitTest, [ADLPPort01]>;
146 defm : X86WriteRes<WriteBitTestImmLd, [ADLPPort01, ADLPPort02_03_10], 6, [1, 1], 2>;
147 defm : X86WriteRes<WriteBitTestRegLd, [ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort02_03_10], 11, [4, 2, 1, 2, 1], 10>;
148 def : WriteRes<WriteBitTestSet, [ADLPPort01]>;
149 def : WriteRes<WriteBitTestSetImmLd, [ADLPPort01]> {
152 defm : X86WriteRes<WriteBitTestSetRegLd, [ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11], 17, [3, 2, 1, 2], 8>;
153 defm : ADLPWriteResPair<WriteBlend, [ADLPPort01_05], 1, [1], 1, 7>;
154 defm : ADLPWriteResPair<WriteBlendY, [ADLPPort00_01_05], 1, [1], 1, 8>;
155 defm : ADLPWriteResPair<WriteCLMul, [ADLPPort05], 3, [1], 1, 7>;
156 defm : ADLPWriteResPair<WriteCMOV, [ADLPPort00_06], 1, [1], 1, 6>;
157 defm : X86WriteRes<WriteCMPXCHG, [ADLPPort00_01_05_06_11, ADLPPort00_06], 3, [3, 2], 5>;
158 defm : X86WriteRes<WriteCMPXCHGRMW, [ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08], 12, [1, 2, 1, 1, 1], 6>;
159 defm : ADLPWriteResPair<WriteCRC32, [ADLPPort01], 3, [1]>;
160 defm : X86WriteRes<WriteCvtI2PD, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2>;
161 defm : X86WriteRes<WriteCvtI2PDLd, [ADLPPort00_01, ADLPPort02_03_10], 11, [1, 1], 2>;
162 defm : X86WriteRes<WriteCvtI2PDY, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2>;
163 defm : X86WriteRes<WriteCvtI2PDYLd, [ADLPPort00_01, ADLPPort02_03_10], 12, [1, 1], 2>;
164 defm : X86WriteResPairUnsupported<WriteCvtI2PDZ>;
165 defm : ADLPWriteResPair<WriteCvtI2PS, [ADLPPort00_01], 4, [1], 1, 7>;
166 defm : ADLPWriteResPair<WriteCvtI2PSY, [ADLPPort00_01], 4, [1], 1, 8>;
167 defm : X86WriteResPairUnsupported<WriteCvtI2PSZ>;
168 defm : X86WriteRes<WriteCvtI2SD, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2>;
169 defm : X86WriteRes<WriteCvtI2SDLd, [ADLPPort00_01, ADLPPort02_03_10], 11, [1, 1], 2>;
170 defm : X86WriteRes<WriteCvtI2SS, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2>;
171 defm : X86WriteRes<WriteCvtI2SSLd, [ADLPPort00_01, ADLPPort02_03_10], 11, [1, 1], 2>;
172 defm : ADLPWriteResPair<WriteCvtPD2I, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2, 7>;
173 defm : ADLPWriteResPair<WriteCvtPD2IY, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2, 8>;
174 defm : X86WriteResPairUnsupported<WriteCvtPD2IZ>;
175 defm : ADLPWriteResPair<WriteCvtPD2PS, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2, 7>;
176 defm : ADLPWriteResPair<WriteCvtPD2PSY, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2, 8>;
177 defm : X86WriteResPairUnsupported<WriteCvtPD2PSZ>;
178 defm : X86WriteRes<WriteCvtPH2PS, [ADLPPort00_01, ADLPPort05], 6, [1, 1], 2>;
179 defm : X86WriteRes<WriteCvtPH2PSLd, [ADLPPort00_01, ADLPPort02_03_10], 12, [1, 1], 2>;
180 defm : X86WriteRes<WriteCvtPH2PSY, [ADLPPort00_01, ADLPPort05], 8, [1, 1], 2>;
181 defm : X86WriteRes<WriteCvtPH2PSYLd, [ADLPPort00_01, ADLPPort02_03_10], 12, [1, 1], 2>;
182 defm : X86WriteResPairUnsupported<WriteCvtPH2PSZ>;
183 defm : ADLPWriteResPair<WriteCvtPS2I, [ADLPPort00_01], 4, [1], 1, 7>;
184 defm : ADLPWriteResPair<WriteCvtPS2IY, [ADLPPort00_01], 4, [1], 1, 8>;
185 defm : X86WriteResPairUnsupported<WriteCvtPS2IZ>;
186 defm : X86WriteRes<WriteCvtPS2PD, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2>;
187 defm : X86WriteRes<WriteCvtPS2PDLd, [ADLPPort00_01, ADLPPort02_03_10], 11, [1, 1], 2>;
188 defm : X86WriteRes<WriteCvtPS2PDY, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2>;
189 defm : X86WriteRes<WriteCvtPS2PDYLd, [ADLPPort00_01, ADLPPort02_03_10], 12, [1, 1], 2>;
190 defm : X86WriteResPairUnsupported<WriteCvtPS2PDZ>;
191 defm : X86WriteRes<WriteCvtPS2PH, [ADLPPort00_01, ADLPPort05], 6, [1, 1], 2>;
192 defm : X86WriteRes<WriteCvtPS2PHSt, [ADLPPort00_01, ADLPPort04_09, ADLPPort07_08], 12, [1, 1, 1], 3>;
193 defm : X86WriteRes<WriteCvtPS2PHY, [ADLPPort00_01, ADLPPort05], 8, [1, 1], 2>;
194 defm : X86WriteRes<WriteCvtPS2PHYSt, [ADLPPort00_01, ADLPPort04_09, ADLPPort07_08], 12, [1, 1, 1], 3>;
195 defm : X86WriteResUnsupported<WriteCvtPS2PHZ>;
196 defm : X86WriteResUnsupported<WriteCvtPS2PHZSt>;
197 defm : ADLPWriteResPair<WriteCvtSD2I, [ADLPPort00, ADLPPort00_01], 7, [1, 1], 2>;
198 defm : ADLPWriteResPair<WriteCvtSD2SS, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2, 7>;
199 defm : ADLPWriteResPair<WriteCvtSS2I, [ADLPPort00, ADLPPort00_01], 7, [1, 1], 2>;
200 defm : X86WriteRes<WriteCvtSS2SD, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2>;
201 defm : X86WriteRes<WriteCvtSS2SDLd, [ADLPPort00_01, ADLPPort02_03_10], 11, [1, 1], 2>;
202 defm : ADLPWriteResPair<WriteDPPD, [ADLPPort00_01, ADLPPort01_05], 9, [2, 1], 3, 7>;
203 defm : ADLPWriteResPair<WriteDPPS, [ADLPPort00_01, ADLPPort00_06, ADLPPort01_05, ADLPPort05], 14, [2, 1, 2, 1], 6, 7>;
204 defm : ADLPWriteResPair<WriteDPPSY, [ADLPPort00_01, ADLPPort00_06, ADLPPort01_05, ADLPPort05], 14, [2, 1, 2, 1], 6, 8>;
205 defm : ADLPWriteResPair<WriteDiv16, [ADLPPort00_01_05_06_11, ADLPPort01], 16, [1, 3], 4, 4>;
206 defm : ADLPWriteResPair<WriteDiv32, [ADLPPort00_01_05_06_11, ADLPPort01], 15, [1, 3], 4, 4>;
207 defm : ADLPWriteResPair<WriteDiv64, [ADLPPort01], 18, [3], 3>;
208 defm : X86WriteRes<WriteDiv8, [ADLPPort01], 17, [3], 3>;
209 defm : X86WriteRes<WriteDiv8Ld, [ADLPPort01], 22, [3], 3>;
210 defm : X86WriteRes<WriteEMMS, [ADLPPort00, ADLPPort00_05, ADLPPort00_06], 10, [1, 8, 1], 10>;
211 def : WriteRes<WriteFAdd, [ADLPPort05]> {
214 defm : X86WriteRes<WriteFAddLd, [ADLPPort01_05, ADLPPort02_03_10], 10, [1, 1], 2>;
215 defm : ADLPWriteResPair<WriteFAdd64, [ADLPPort01_05], 3, [1], 1, 7>;
216 defm : ADLPWriteResPair<WriteFAdd64X, [ADLPPort01_05], 3, [1], 1, 7>;
217 defm : ADLPWriteResPair<WriteFAdd64Y, [ADLPPort01_05], 3, [1], 1, 8>;
218 defm : X86WriteResPairUnsupported<WriteFAdd64Z>;
219 defm : ADLPWriteResPair<WriteFAddX, [ADLPPort01_05], 3, [1], 1, 7>;
220 defm : ADLPWriteResPair<WriteFAddY, [ADLPPort01_05], 3, [1], 1, 8>;
221 defm : X86WriteResPairUnsupported<WriteFAddZ>;
222 defm : ADLPWriteResPair<WriteFBlend, [ADLPPort00_01_05], 1, [1], 1, 7>;
223 defm : ADLPWriteResPair<WriteFBlendY, [ADLPPort00_01_05], 1, [1], 1, 8>;
224 def : WriteRes<WriteFCMOV, [ADLPPort01]> {
227 defm : ADLPWriteResPair<WriteFCmp, [ADLPPort00_01], 4, [1], 1, 7>;
228 defm : ADLPWriteResPair<WriteFCmp64, [ADLPPort00_01], 4, [1], 1, 7>;
229 defm : ADLPWriteResPair<WriteFCmp64X, [ADLPPort00_01], 4, [1], 1, 7>;
230 defm : ADLPWriteResPair<WriteFCmp64Y, [ADLPPort00_01], 4, [1], 1, 8>;
231 defm : X86WriteResPairUnsupported<WriteFCmp64Z>;
232 defm : ADLPWriteResPair<WriteFCmpX, [ADLPPort00_01], 4, [1], 1, 7>;
233 defm : ADLPWriteResPair<WriteFCmpY, [ADLPPort00_01], 4, [1], 1, 8>;
234 defm : X86WriteResPairUnsupported<WriteFCmpZ>;
235 def : WriteRes<WriteFCom, [ADLPPort05]>;
236 defm : X86WriteRes<WriteFComLd, [ADLPPort02_03, ADLPPort05], 8, [1, 1], 2>;
237 defm : ADLPWriteResPair<WriteFComX, [ADLPPort00], 3, [1]>;
238 defm : ADLPWriteResPair<WriteFDiv, [ADLPPort00], 11, [1], 1, 7>;
239 defm : ADLPWriteResPair<WriteFDiv64, [ADLPPort00], 14, [1]>;
240 defm : ADLPWriteResPair<WriteFDiv64X, [ADLPPort00], 14, [1], 1, 6>;
241 defm : ADLPWriteResPair<WriteFDiv64Y, [ADLPPort00], 14, [1], 1, 7>;
242 defm : X86WriteResPairUnsupported<WriteFDiv64Z>;
243 defm : ADLPWriteResPair<WriteFDivX, [ADLPPort00], 11, [1], 1, 7>;
244 defm : ADLPWriteResPair<WriteFDivY, [ADLPPort00], 11, [1], 1, 8>;
245 defm : X86WriteResPairUnsupported<WriteFDivZ>;
246 defm : ADLPWriteResPair<WriteFHAdd, [ADLPPort01_05, ADLPPort05], 6, [1, 2], 3, 6>;
247 defm : ADLPWriteResPair<WriteFHAddY, [ADLPPort01_05, ADLPPort05], 5, [1, 2], 3, 8>;
248 def : WriteRes<WriteFLD0, [ADLPPort00_05]>;
249 defm : X86WriteRes<WriteFLD1, [ADLPPort00_05], 1, [2], 2>;
250 defm : X86WriteRes<WriteFLDC, [ADLPPort00_05], 1, [2], 2>;
251 def : WriteRes<WriteFLoad, [ADLPPort02_03_10]> {
254 def : WriteRes<WriteFLoadX, [ADLPPort02_03_10]> {
257 def : WriteRes<WriteFLoadY, [ADLPPort02_03_10]> {
260 defm : ADLPWriteResPair<WriteFLogic, [ADLPPort00_01_05], 1, [1], 1, 7>;
261 defm : ADLPWriteResPair<WriteFLogicY, [ADLPPort00_01_05], 1, [1], 1, 8>;
262 defm : X86WriteResPairUnsupported<WriteFLogicZ>;
263 defm : ADLPWriteResPair<WriteFMA, [ADLPPort00_01], 4, [1], 1, 7>;
264 defm : ADLPWriteResPair<WriteFMAX, [ADLPPort00_01], 4, [1], 1, 7>;
265 defm : ADLPWriteResPair<WriteFMAY, [ADLPPort00_01], 4, [1], 1, 8>;
266 defm : X86WriteResPairUnsupported<WriteFMAZ>;
267 def : WriteRes<WriteFMOVMSK, [ADLPPort00]> {
270 defm : X86WriteRes<WriteFMaskedLoad, [ADLPPort00_01_05, ADLPPort02_03_10], 8, [1, 1], 2>;
271 defm : X86WriteRes<WriteFMaskedLoadY, [ADLPPort00_01_05, ADLPPort02_03_10], 9, [1, 1], 2>;
272 defm : X86WriteRes<WriteFMaskedStore32, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
273 defm : X86WriteRes<WriteFMaskedStore32Y, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
274 defm : X86WriteRes<WriteFMaskedStore64, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
275 defm : X86WriteRes<WriteFMaskedStore64Y, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
276 defm : X86WriteRes<WriteFMoveX, [], 1, [], 0>;
277 defm : X86WriteRes<WriteFMoveY, [], 1, [], 0>;
278 defm : X86WriteResUnsupported<WriteFMoveZ>;
279 defm : ADLPWriteResPair<WriteFMul, [ADLPPort00_01], 4, [1], 1, 7>;
280 defm : ADLPWriteResPair<WriteFMul64, [ADLPPort00_01], 4, [1], 1, 7>;
281 defm : ADLPWriteResPair<WriteFMul64X, [ADLPPort00_01], 4, [1], 1, 7>;
282 defm : ADLPWriteResPair<WriteFMul64Y, [ADLPPort00_01], 4, [1], 1, 8>;
283 defm : X86WriteResPairUnsupported<WriteFMul64Z>;
284 defm : ADLPWriteResPair<WriteFMulX, [ADLPPort00_01], 4, [1], 1, 7>;
285 defm : ADLPWriteResPair<WriteFMulY, [ADLPPort00_01], 4, [1], 1, 8>;
286 defm : X86WriteResPairUnsupported<WriteFMulZ>;
287 defm : ADLPWriteResPair<WriteFRcp, [ADLPPort00], 4, [1], 1, 7>;
288 defm : ADLPWriteResPair<WriteFRcpX, [ADLPPort00], 4, [1], 1, 7>;
289 defm : ADLPWriteResPair<WriteFRcpY, [ADLPPort00], 4, [1], 1, 8>;
290 defm : X86WriteResPairUnsupported<WriteFRcpZ>;
291 defm : ADLPWriteResPair<WriteFRnd, [ADLPPort00_01], 8, [2], 2, 7>;
292 defm : ADLPWriteResPair<WriteFRndY, [ADLPPort00_01], 8, [2], 2, 8>;
293 defm : X86WriteResPairUnsupported<WriteFRndZ>;
294 defm : ADLPWriteResPair<WriteFRsqrt, [ADLPPort00], 4, [1], 1, 7>;
295 defm : ADLPWriteResPair<WriteFRsqrtX, [ADLPPort00], 4, [1], 1, 7>;
296 defm : ADLPWriteResPair<WriteFRsqrtY, [ADLPPort00], 4, [1], 1, 8>;
297 defm : X86WriteResPairUnsupported<WriteFRsqrtZ>;
298 defm : ADLPWriteResPair<WriteFShuffle, [ADLPPort05], 1, [1], 1, 7>;
299 defm : ADLPWriteResPair<WriteFShuffle256, [ADLPPort05], 3, [1], 1, 8>;
300 defm : ADLPWriteResPair<WriteFShuffleY, [ADLPPort05], 1, [1], 1, 8>;
301 defm : X86WriteResPairUnsupported<WriteFShuffleZ>;
302 def : WriteRes<WriteFSign, [ADLPPort00]>;
303 defm : ADLPWriteResPair<WriteFSqrt, [ADLPPort00], 12, [1], 1, 7>;
304 defm : ADLPWriteResPair<WriteFSqrt64, [ADLPPort00], 18, [1]>;
305 defm : ADLPWriteResPair<WriteFSqrt64X, [ADLPPort00], 18, [1], 1, 6>;
306 defm : ADLPWriteResPair<WriteFSqrt64Y, [ADLPPort00], 18, [1], 1, 7>;
307 defm : X86WriteResPairUnsupported<WriteFSqrt64Z>;
308 def : WriteRes<WriteFSqrt80, [ADLPPortInvalid, ADLPPort00]> {
309 let ReleaseAtCycles = [7, 1];
312 defm : ADLPWriteResPair<WriteFSqrtX, [ADLPPort00], 12, [1], 1, 7>;
313 defm : ADLPWriteResPair<WriteFSqrtY, [ADLPPort00], 12, [1], 1, 8>;
314 defm : X86WriteResPairUnsupported<WriteFSqrtZ>;
315 defm : X86WriteRes<WriteFStore, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
316 defm : X86WriteResUnsupported<WriteFStoreNT>;
317 defm : X86WriteRes<WriteFStoreNTX, [ADLPPort04_09, ADLPPort07_08], 518, [1, 1], 2>;
318 defm : X86WriteRes<WriteFStoreNTY, [ADLPPort04_09, ADLPPort07_08], 542, [1, 1], 2>;
319 defm : X86WriteRes<WriteFStoreX, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
320 defm : X86WriteRes<WriteFStoreY, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
321 defm : ADLPWriteResPair<WriteFTest, [ADLPPort00], 3, [1]>;
322 defm : ADLPWriteResPair<WriteFTestY, [ADLPPort00], 5, [1], 1, 6>;
323 defm : ADLPWriteResPair<WriteFVarBlend, [ADLPPort00_01_05], 1, [1], 1, 7>;
324 defm : ADLPWriteResPair<WriteFVarBlendY, [ADLPPort00_01_05], 3, [3], 3, 7>;
325 defm : X86WriteResPairUnsupported<WriteFVarBlendZ>;
326 defm : ADLPWriteResPair<WriteFVarShuffle, [ADLPPort05], 1, [1], 1, 7>;
327 defm : ADLPWriteResPair<WriteFVarShuffle256, [ADLPPort05], 3, [1], 1, 8>;
328 defm : ADLPWriteResPair<WriteFVarShuffleY, [ADLPPort05], 1, [1], 1, 8>;
329 defm : X86WriteResPairUnsupported<WriteFVarShuffleZ>;
330 def : WriteRes<WriteFence, [ADLPPort00_06]> {
333 defm : ADLPWriteResPair<WriteIDiv16, [ADLPPort00_01_05_06_11, ADLPPort01], 16, [1, 3], 4, 4>;
334 defm : ADLPWriteResPair<WriteIDiv32, [ADLPPort00_01_05_06_11, ADLPPort01], 15, [1, 3], 4, 4>;
335 defm : ADLPWriteResPair<WriteIDiv64, [ADLPPort01], 18, [3], 3>;
336 defm : X86WriteRes<WriteIDiv8, [ADLPPort01], 17, [3], 3>;
337 defm : X86WriteRes<WriteIDiv8Ld, [ADLPPort01], 22, [3], 3>;
338 defm : ADLPWriteResPair<WriteIMul16, [ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01], 5, [2, 1, 1], 4>;
339 defm : ADLPWriteResPair<WriteIMul16Imm, [ADLPPort00_01_05_06_11, ADLPPort01], 4, [1, 1], 2>;
340 defm : ADLPWriteResPair<WriteIMul16Reg, [ADLPPort01], 3, [1]>;
341 defm : ADLPWriteResPair<WriteIMul32, [ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01], 4, [1, 1, 1], 3>;
342 defm : ADLPWriteResPair<WriteIMul32Imm, [ADLPPort01], 3, [1]>;
343 defm : ADLPWriteResPair<WriteIMul32Reg, [ADLPPort01], 3, [1]>;
344 defm : ADLPWriteResPair<WriteIMul64, [ADLPPort01, ADLPPort05], 4, [1, 1], 2>;
345 defm : ADLPWriteResPair<WriteIMul64Imm, [ADLPPort01], 3, [1]>;
346 defm : ADLPWriteResPair<WriteIMul64Reg, [ADLPPort01], 3, [1]>;
347 defm : ADLPWriteResPair<WriteIMul8, [ADLPPort01], 3, [1]>;
348 def : WriteRes<WriteIMulH, []> {
351 def : WriteRes<WriteIMulHLd, []> {
354 def : WriteRes<WriteJump, [ADLPPort00_06]>;
355 defm : X86WriteRes<WriteJumpLd, [ADLPPort00_06, ADLPPort02_03], 6, [1, 1], 2>;
356 def : WriteRes<WriteLAHFSAHF, [ADLPPort00_06]> {
359 defm : X86WriteRes<WriteLDMXCSR, [ADLPPort00, ADLPPort00_01_05, ADLPPort00_06, ADLPPort02_03_10], 7, [1, 1, 1, 1], 4>;
360 def : WriteRes<WriteLEA, [ADLPPort01]>;
361 defm : ADLPWriteResPair<WriteLZCNT, [ADLPPort01], 3, [1]>;
362 def : WriteRes<WriteLoad, [ADLPPort02_03_10]> {
365 def : WriteRes<WriteMMXMOVMSK, [ADLPPort00]> {
368 defm : ADLPWriteResPair<WriteMPSAD, [ADLPPort01_05, ADLPPort05], 4, [1, 1], 2, 7>;
369 defm : ADLPWriteResPair<WriteMPSADY, [ADLPPort01_05, ADLPPort05], 4, [1, 1], 2, 8>;
370 defm : ADLPWriteResPair<WriteMULX32, [ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01], 4, [1, 1, 1], 2>;
371 defm : ADLPWriteResPair<WriteMULX64, [ADLPPort01, ADLPPort05], 4, [1, 1]>;
372 def : WriteRes<WriteMicrocoded, [ADLPPort00_01_05_06]> {
373 let Latency = AlderlakePModel.MaxLatency;
375 def : WriteRes<WriteMove, [ADLPPort00_01_05_06_11]>;
376 defm : X86WriteRes<WriteNop, [], 1, [], 0>;
377 defm : X86WriteRes<WritePCmpEStrI, [ADLPPort00, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01, ADLPPort05], 16, [3, 2, 1, 1, 1], 8>;
378 defm : X86WriteRes<WritePCmpEStrILd, [ADLPPort00, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort05], 31, [3, 1, 1, 1, 1, 1], 8>;
379 defm : X86WriteRes<WritePCmpEStrM, [ADLPPort00, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01, ADLPPort05], 16, [3, 3, 1, 1, 1], 9>;
380 defm : X86WriteRes<WritePCmpEStrMLd, [ADLPPort00, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort05], 17, [3, 2, 1, 1, 1, 1], 9>;
381 defm : ADLPWriteResPair<WritePCmpIStrI, [ADLPPort00], 11, [3], 3, 20>;
382 defm : ADLPWriteResPair<WritePCmpIStrM, [ADLPPort00], 11, [3], 3>;
383 defm : ADLPWriteResPair<WritePHAdd, [ADLPPort00_05, ADLPPort05], 3, [1, 2], 3, 8>;
384 defm : ADLPWriteResPair<WritePHAddX, [ADLPPort00_01_05, ADLPPort01_05], 2, [1, 2], 3, 7>;
385 defm : ADLPWriteResPair<WritePHAddY, [ADLPPort00_01_05, ADLPPort01_05], 2, [1, 2], 3, 8>;
386 defm : ADLPWriteResPair<WritePHMINPOS, [ADLPPort00], 4, [1], 1, 7>;
387 defm : ADLPWriteResPair<WritePMULLD, [ADLPPort00_01], 10, [2], 2, 8>;
388 defm : ADLPWriteResPair<WritePMULLDY, [ADLPPort00_01], 10, [2], 2, 8>;
389 defm : X86WriteResPairUnsupported<WritePMULLDZ>;
390 defm : ADLPWriteResPair<WritePOPCNT, [ADLPPort01], 3, [1]>;
391 defm : ADLPWriteResPair<WritePSADBW, [ADLPPort05], 3, [1], 1, 8>;
392 defm : ADLPWriteResPair<WritePSADBWX, [ADLPPort05], 3, [1], 1, 7>;
393 defm : ADLPWriteResPair<WritePSADBWY, [ADLPPort05], 3, [1], 1, 8>;
394 defm : X86WriteResPairUnsupported<WritePSADBWZ>;
395 defm : X86WriteRes<WriteRMW, [ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08], 1, [1, 1, 1], 3>;
396 defm : X86WriteRes<WriteRotate, [ADLPPort00_01_05_06_11, ADLPPort00_06], 2, [1, 2], 3>;
397 defm : X86WriteRes<WriteRotateLd, [ADLPPort00_01_05_06_11, ADLPPort00_06], 12, [1, 2], 3>;
398 defm : X86WriteRes<WriteRotateCL, [ADLPPort00_06], 2, [2], 2>;
399 defm : X86WriteRes<WriteRotateCLLd, [ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01], 19, [2, 3, 2], 7>;
400 defm : X86WriteRes<WriteSETCC, [ADLPPort00_06], 2, [2], 2>;
401 defm : X86WriteRes<WriteSETCCStore, [ADLPPort00_06, ADLPPort04_09, ADLPPort07_08], 13, [2, 1, 1], 4>;
402 defm : X86WriteRes<WriteSHDmrcl, [ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08], 12, [1, 1, 1, 1, 1, 1], 6>;
403 defm : X86WriteRes<WriteSHDmri, [ADLPPort00_01_05_06_11, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08], 12, [1, 1, 1, 1, 1], 5>;
404 defm : X86WriteRes<WriteSHDrrcl, [ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01], 5, [1, 1, 1], 3>;
405 def : WriteRes<WriteSHDrri, [ADLPPort01]> {
408 defm : X86WriteRes<WriteSTMXCSR, [ADLPPort00, ADLPPort00_06, ADLPPort04_09, ADLPPort07_08], 12, [1, 1, 1, 1], 4>;
409 def : WriteRes<WriteShift, [ADLPPort00_06]>;
410 def : WriteRes<WriteShiftLd, [ADLPPort00_06]> {
413 defm : X86WriteRes<WriteShiftCL, [ADLPPort00_06], 2, [2], 2>;
414 defm : X86WriteRes<WriteShiftCLLd, [ADLPPort00_06], 12, [2], 2>;
415 defm : ADLPWriteResPair<WriteShuffle, [ADLPPort05], 1, [1], 1, 8>;
416 defm : ADLPWriteResPair<WriteShuffle256, [ADLPPort05], 3, [1], 1, 8>;
417 defm : ADLPWriteResPair<WriteShuffleX, [ADLPPort01_05], 1, [1], 1, 7>;
418 defm : ADLPWriteResPair<WriteShuffleY, [ADLPPort01_05], 1, [1], 1, 8>;
419 defm : X86WriteResPairUnsupported<WriteShuffleZ>;
420 defm : X86WriteRes<WriteStore, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
421 defm : X86WriteRes<WriteStoreNT, [ADLPPort04_09, ADLPPort07_08], 512, [1, 1], 2>;
422 def : WriteRes<WriteSystem, [ADLPPort00_01_05_06]> {
423 let Latency = AlderlakePModel.MaxLatency;
425 defm : ADLPWriteResPair<WriteTZCNT, [ADLPPort01], 3, [1]>;
426 defm : ADLPWriteResPair<WriteVPMOV256, [ADLPPort05], 3, [1], 1, 8>;
427 defm : ADLPWriteResPair<WriteVarBlend, [ADLPPort00_01_05], 1, [1], 1, 7>;
428 defm : ADLPWriteResPair<WriteVarBlendY, [ADLPPort00_01_05], 3, [3], 3, 7>;
429 defm : X86WriteResPairUnsupported<WriteVarBlendZ>;
430 defm : ADLPWriteResPair<WriteVarShuffle, [ADLPPort00, ADLPPort05], 3, [1, 1], 2, 8>;
431 defm : ADLPWriteResPair<WriteVarShuffle256, [ADLPPort05], 3, [1], 1, 8>;
432 defm : ADLPWriteResPair<WriteVarShuffleX, [ADLPPort01_05], 1, [1], 1, 7>;
433 defm : ADLPWriteResPair<WriteVarShuffleY, [ADLPPort01_05], 1, [1], 1, 8>;
434 defm : X86WriteResPairUnsupported<WriteVarShuffleZ>;
435 defm : ADLPWriteResPair<WriteVarVecShift, [ADLPPort00_01], 1, [1], 1, 7>;
436 defm : ADLPWriteResPair<WriteVarVecShiftY, [ADLPPort00_01], 1, [1], 1, 8>;
437 defm : X86WriteResPairUnsupported<WriteVarVecShiftZ>;
438 defm : ADLPWriteResPair<WriteVecALU, [ADLPPort00], 1, [1], 1, 8>;
439 defm : ADLPWriteResPair<WriteVecALUX, [ADLPPort00_01], 1, [1], 1, 7>;
440 defm : ADLPWriteResPair<WriteVecALUY, [ADLPPort00_01], 1, [1], 1, 8>;
441 defm : X86WriteResPairUnsupported<WriteVecALUZ>;
442 defm : X86WriteRes<WriteVecExtract, [ADLPPort00, ADLPPort01_05], 4, [1, 1], 2>;
443 defm : X86WriteRes<WriteVecExtractSt, [ADLPPort01_05, ADLPPort04_09, ADLPPort07_08], 19, [1, 1, 1], 3>;
444 defm : ADLPWriteResPair<WriteVecIMul, [ADLPPort00], 5, [1], 1, 8>;
445 defm : ADLPWriteResPair<WriteVecIMulX, [ADLPPort00_01], 5, [1], 1, 8>;
446 defm : ADLPWriteResPair<WriteVecIMulY, [ADLPPort00_01], 5, [1], 1, 8>;
447 defm : X86WriteResPairUnsupported<WriteVecIMulZ>;
448 defm : X86WriteRes<WriteVecInsert, [ADLPPort01_05, ADLPPort05], 4, [1, 1], 2>;
449 defm : X86WriteRes<WriteVecInsertLd, [ADLPPort01_05, ADLPPort02_03_10], 8, [1, 1], 2>;
450 def : WriteRes<WriteVecLoad, [ADLPPort02_03_10]> {
453 def : WriteRes<WriteVecLoadNT, [ADLPPort02_03_10]> {
456 def : WriteRes<WriteVecLoadNTY, [ADLPPort02_03_10]> {
459 def : WriteRes<WriteVecLoadX, [ADLPPort02_03_10]> {
462 def : WriteRes<WriteVecLoadY, [ADLPPort02_03_10]> {
465 defm : ADLPWriteResPair<WriteVecLogic, [ADLPPort00_05], 1, [1], 1, 8>;
466 defm : ADLPWriteResPair<WriteVecLogicX, [ADLPPort00_01_05], 1, [1], 1, 7>;
467 defm : ADLPWriteResPair<WriteVecLogicY, [ADLPPort00_01_05], 1, [1], 1, 8>;
468 defm : X86WriteResPairUnsupported<WriteVecLogicZ>;
469 def : WriteRes<WriteVecMOVMSK, [ADLPPort00]> {
472 def : WriteRes<WriteVecMOVMSKY, [ADLPPort00]> {
475 defm : X86WriteRes<WriteVecMaskedGatherWriteback, [], 5, [], 0>;
476 defm : X86WriteRes<WriteVecMaskedLoad, [ADLPPort00_01_05, ADLPPort02_03_10], 8, [1, 1], 2>;
477 defm : X86WriteRes<WriteVecMaskedLoadY, [ADLPPort00_01_05, ADLPPort02_03_10], 9, [1, 1], 2>;
478 defm : X86WriteRes<WriteVecMaskedStore32, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
479 defm : X86WriteRes<WriteVecMaskedStore32Y, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
480 defm : X86WriteRes<WriteVecMaskedStore64, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
481 defm : X86WriteRes<WriteVecMaskedStore64Y, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
482 def : WriteRes<WriteVecMove, [ADLPPort00_05]>;
483 def : WriteRes<WriteVecMoveFromGpr, [ADLPPort05]> {
486 def : WriteRes<WriteVecMoveToGpr, [ADLPPort00]> {
489 defm : X86WriteRes<WriteVecMoveX, [], 1, [], 0>;
490 defm : X86WriteRes<WriteVecMoveY, [], 1, [], 0>;
491 defm : X86WriteResUnsupported<WriteVecMoveZ>;
492 defm : ADLPWriteResPair<WriteVecShift, [ADLPPort00], 1, [1], 1, 8>;
493 def : WriteRes<WriteVecShiftImm, [ADLPPort00]>;
494 def : WriteRes<WriteVecShiftImmX, [ADLPPort00_01]>;
495 defm : X86WriteResUnsupported<WriteVecShiftImmXLd>;
496 def : WriteRes<WriteVecShiftImmY, [ADLPPort00_01]>;
497 defm : X86WriteResUnsupported<WriteVecShiftImmYLd>;
498 defm : X86WriteResPairUnsupported<WriteVecShiftImmZ>;
499 defm : X86WriteRes<WriteVecShiftX, [ADLPPort00_01, ADLPPort01_05], 2, [1, 1], 2>;
500 defm : X86WriteRes<WriteVecShiftXLd, [ADLPPort00_01, ADLPPort02_03_10], 8, [1, 1], 2>;
501 defm : X86WriteRes<WriteVecShiftY, [ADLPPort00_01, ADLPPort05], 4, [1, 1], 2>;
502 defm : X86WriteRes<WriteVecShiftYLd, [ADLPPort00_01, ADLPPort02_03_10], 9, [1, 1], 2>;
503 defm : X86WriteResPairUnsupported<WriteVecShiftZ>;
504 defm : X86WriteRes<WriteVecStore, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
505 defm : X86WriteRes<WriteVecStoreNT, [ADLPPort04_09, ADLPPort07_08], 511, [1, 1], 2>;
506 defm : X86WriteRes<WriteVecStoreNTY, [ADLPPort04_09, ADLPPort07_08], 507, [1, 1], 2>;
507 defm : X86WriteRes<WriteVecStoreX, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
508 defm : X86WriteRes<WriteVecStoreY, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
509 defm : ADLPWriteResPair<WriteVecTest, [ADLPPort00, ADLPPort05], 4, [1, 1], 2>;
510 defm : ADLPWriteResPair<WriteVecTestY, [ADLPPort00, ADLPPort05], 6, [1, 1], 2, 6>;
511 defm : X86WriteRes<WriteXCHG, [ADLPPort00_01_05_06_11], 2, [3], 3>;
512 def : WriteRes<WriteZero, []>;
514 // Infered SchedWriteRes and InstRW definition.
516 def ADLPWriteResGroup0 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort02_03, ADLPPort02_03_07, ADLPPort04]> {
520 def : InstRW<[ADLPWriteResGroup0], (instregex "^AA(D|N)D64mr$",
523 def ADLPWriteResGroup1 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
524 let ReleaseAtCycles = [2, 1, 1, 1, 1];
528 def : InstRW<[ADLPWriteResGroup1, ReadAfterLd, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^(ADC|SBB)(16|32|64)mr$")>;
530 def ADLPWriteResGroup2 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_10]> {
534 def : InstRW<[ADLPWriteResGroup2], (instregex "^JMP(16|32|64)m((_NT)?)$",
537 def : InstRW<[ADLPWriteResGroup2, ReadAfterLd, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^(ADC|SBB)(8|16|32|64)rm$",
538 "^AD(C|O)X(32|64)rm$")>;
540 def ADLPWriteResGroup3 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
544 def : InstRW<[ADLPWriteResGroup3], (instregex "^(ADC|SBB)8mi(8?)$")>;
546 def ADLPWriteResGroup4 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
547 let ReleaseAtCycles = [2, 1, 1, 1, 1];
551 def : InstRW<[ADLPWriteResGroup4, ReadAfterLd, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^(ADC|SBB)8mr$")>;
553 def ADLPWriteResGroup5 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10]> {
557 def : InstRW<[ADLPWriteResGroup5], (instregex "^CMP(8|16|32)mi$",
558 "^CMP(8|16|32|64)mi8$",
560 "^POP(16|32)r((mr)?)$")>;
561 def : InstRW<[ADLPWriteResGroup5], (instrs CMP64mi32,
564 def : InstRW<[ADLPWriteResGroup5, ReadAfterLd], (instregex "^(ADD|CMP|SUB)(8|16|32|64)rm$",
566 "^(X?)OR(8|16|32)rm$")>;
567 def : InstRW<[ADLPWriteResGroup5, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^CMP(8|16|32|64)mr$")>;
569 def ADLPWriteResGroup6 : SchedWriteRes<[]> {
572 def : InstRW<[ADLPWriteResGroup6], (instregex "^(ADD|SUB)64ri8$",
574 "^MOV64rr((_REV)?)$")>;
575 def : InstRW<[ADLPWriteResGroup6], (instrs CLC,
578 def ADLPWriteResGroup7 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
582 def : InstRW<[ADLPWriteResGroup7], (instregex "^A(D|N)D8mi(8?)$",
587 def : InstRW<[ADLPWriteResGroup7, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^A(D|N)D8mr$",
589 def : InstRW<[ADLPWriteResGroup7, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instrs SUB8mr)>;
591 def ADLPWriteResGroup8 : SchedWriteRes<[ADLPPort01_05]> {
594 def : InstRW<[ADLPWriteResGroup8], (instregex "^(V?)(ADD|SUB)SSrr((_Int)?)$")>;
596 def ADLPWriteResGroup9 : SchedWriteRes<[ADLPPort02_03, ADLPPort05]> {
600 def : InstRW<[ADLPWriteResGroup9], (instregex "^ADD_F(32|64)m$",
601 "^ILD_F(16|32|64)m$",
602 "^SUB(R?)_F(32|64)m$")>;
604 def ADLPWriteResGroup10 : SchedWriteRes<[ADLPPort02_03, ADLPPort05]> {
605 let ReleaseAtCycles = [1, 2];
609 def : InstRW<[ADLPWriteResGroup10], (instregex "^ADD_FI(16|32)m$",
610 "^SUB(R?)_FI(16|32)m$")>;
612 def ADLPWriteResGroup11 : SchedWriteRes<[ADLPPort00_01_05_06_11]> {
615 def : InstRW<[ADLPWriteResGroup11], (instregex "^AND(8|16|32|64)r(r|i8)$",
616 "^AND(8|16|32|64)rr_REV$",
617 "^(AND|TEST)(32|64)i32$",
618 "^(AND|TEST)(8|32)ri$",
619 "^(AND|TEST)64ri32$",
621 "^(X?)OR(8|16|32|64)r(r|i8)$",
622 "^(X?)OR(8|16|32|64)rr_REV$",
623 "^(X?)OR(32|64)i32$",
627 "^TEST(8|16|32|64)rr$")>;
628 def : InstRW<[ADLPWriteResGroup11], (instrs XOR8rr_NOREX)>;
630 def ADLPWriteResGroup12 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10]> {
634 def : InstRW<[ADLPWriteResGroup12], (instregex "^TEST(8|16|32)mi$")>;
635 def : InstRW<[ADLPWriteResGroup12], (instrs TEST64mi32)>;
636 def : InstRW<[ADLPWriteResGroup12, ReadAfterLd], (instregex "^(X?)OR64rm$")>;
637 def : InstRW<[ADLPWriteResGroup12, ReadAfterLd], (instrs AND64rm)>;
638 def : InstRW<[ADLPWriteResGroup12, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^TEST(8|16|32|64)mr$")>;
640 def ADLPWriteResGroup13 : SchedWriteRes<[ADLPPort01_05_11, ADLPPort02_03_10]> {
644 def : InstRW<[ADLPWriteResGroup13, ReadAfterLd], (instregex "^ANDN(32|64)rm$")>;
646 def ADLPWriteResGroup14 : SchedWriteRes<[ADLPPort01_05_11]> {
649 def : InstRW<[ADLPWriteResGroup14], (instregex "^ANDN(32|64)rr$")>;
651 def ADLPWriteResGroup15 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10]> {
652 let ReleaseAtCycles = [5, 2, 1, 1];
656 def : InstRW<[ADLPWriteResGroup15], (instrs BT64mr)>;
658 def ADLPWriteResGroup16 : SchedWriteRes<[ADLPPort01]> {
661 def : InstRW<[ADLPWriteResGroup16], (instregex "^BT((C|R|S)?)64rr$",
662 "^P(DEP|EXT)(32|64)rr$")>;
664 def ADLPWriteResGroup17 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
665 let ReleaseAtCycles = [4, 2, 1, 1, 1, 1];
667 let NumMicroOps = 10;
669 def : InstRW<[ADLPWriteResGroup17], (instregex "^BT(C|R|S)64mr$")>;
671 def ADLPWriteResGroup18 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
675 def : InstRW<[ADLPWriteResGroup18], (instregex "^CALL(16|32|64)m((_NT)?)$")>;
677 def ADLPWriteResGroup19 : SchedWriteRes<[ADLPPort00_06, ADLPPort04_09, ADLPPort07_08]> {
681 def : InstRW<[ADLPWriteResGroup19], (instregex "^CALL(16|32|64)r((_NT)?)$")>;
683 def ADLPWriteResGroup20 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
687 def : InstRW<[ADLPWriteResGroup20], (instrs CALL64pcrel32,
690 def ADLPWriteResGroup21 : SchedWriteRes<[ADLPPort01_05]>;
691 def : InstRW<[ADLPWriteResGroup21], (instregex "^C(DQ|WD)E$",
692 "^(V?)MOVS(H|L)DUPrr$",
693 "^(V?)SHUFP(D|S)rri$",
694 "^VMOVS(H|L)DUPYrr$",
695 "^VSHUFP(D|S)Yrri$")>;
696 def : InstRW<[ADLPWriteResGroup21], (instrs CBW,
699 def ADLPWriteResGroup22 : SchedWriteRes<[ADLPPort00_06]>;
700 def : InstRW<[ADLPWriteResGroup22], (instregex "^C(DQ|QO)$",
703 def ADLPWriteResGroup23 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06]> {
707 def : InstRW<[ADLPWriteResGroup23], (instrs CLD)>;
709 def ADLPWriteResGroup24 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort04_09, ADLPPort07_08]> {
713 def : InstRW<[ADLPWriteResGroup24], (instrs CLDEMOTE)>;
715 def ADLPWriteResGroup25 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort04_09, ADLPPort07_08]> {
719 def : InstRW<[ADLPWriteResGroup25], (instrs CLFLUSH)>;
721 def ADLPWriteResGroup26 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort04_09, ADLPPort07_08]> {
725 def : InstRW<[ADLPWriteResGroup26], (instrs CLFLUSHOPT)>;
727 def ADLPWriteResGroup27 : SchedWriteRes<[ADLPPort00_06, ADLPPort01]> {
728 let ReleaseAtCycles = [2, 1];
729 let Latency = AlderlakePModel.MaxLatency;
732 def : InstRW<[ADLPWriteResGroup27], (instrs CLI)>;
734 def ADLPWriteResGroup28 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort05]> {
735 let ReleaseAtCycles = [6, 1, 3];
736 let Latency = AlderlakePModel.MaxLatency;
737 let NumMicroOps = 10;
739 def : InstRW<[ADLPWriteResGroup28], (instrs CLTS)>;
741 def ADLPWriteResGroup29 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort04_09, ADLPPort07_08]> {
745 def : InstRW<[ADLPWriteResGroup29], (instregex "^MOV16o(16|32|64)a$")>;
746 def : InstRW<[ADLPWriteResGroup29], (instrs CLWB)>;
748 def ADLPWriteResGroup30 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10]> {
749 let ReleaseAtCycles = [5, 2];
753 def : InstRW<[ADLPWriteResGroup30], (instregex "^CMPS(B|L|Q|W)$")>;
755 def ADLPWriteResGroup31 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01_05, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
756 let ReleaseAtCycles = [2, 7, 6, 2, 1, 1, 2, 1];
758 let NumMicroOps = 22;
760 def : InstRW<[ADLPWriteResGroup31], (instrs CMPXCHG16B)>;
762 def ADLPWriteResGroup32 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
763 let ReleaseAtCycles = [4, 7, 2, 1, 1, 1];
765 let NumMicroOps = 16;
767 def : InstRW<[ADLPWriteResGroup32], (instrs CMPXCHG8B)>;
769 def ADLPWriteResGroup33 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
770 let ReleaseAtCycles = [1, 2, 1, 1, 1];
774 def : InstRW<[ADLPWriteResGroup33], (instrs CMPXCHG8rm)>;
776 def ADLPWriteResGroup34 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_06, ADLPPort01, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
777 let ReleaseAtCycles = [2, 1, 10, 6, 1, 5, 1];
779 let NumMicroOps = 26;
781 def : InstRW<[ADLPWriteResGroup34], (instrs CPUID)>;
783 def ADLPWriteResGroup35 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort02_03_10]> {
787 def : InstRW<[ADLPWriteResGroup35], (instregex "^(V?)CVT(T?)SD2SIrm((_Int)?)$")>;
789 def ADLPWriteResGroup36 : SchedWriteRes<[ADLPPort00_01, ADLPPort02_03_10, ADLPPort05]> {
793 def : InstRW<[ADLPWriteResGroup36], (instrs CVTSI642SSrm)>;
794 def : InstRW<[ADLPWriteResGroup36, ReadAfterVecLd], (instregex "^(V?)CVTSI642SSrm_Int$")>;
795 def : InstRW<[ADLPWriteResGroup36, ReadAfterVecLd], (instrs VCVTSI642SSrm)>;
797 def ADLPWriteResGroup37 : SchedWriteRes<[ADLPPort00_01, ADLPPort05]> {
798 let ReleaseAtCycles = [1, 2];
802 def : InstRW<[ADLPWriteResGroup37, ReadInt2Fpu], (instrs CVTSI642SSrr)>;
803 def : InstRW<[ADLPWriteResGroup37, ReadDefault, ReadInt2Fpu], (instregex "^(V?)CVTSI642SSrr_Int$")>;
804 def : InstRW<[ADLPWriteResGroup37, ReadDefault, ReadInt2Fpu], (instrs VCVTSI642SSrr)>;
806 def ADLPWriteResGroup38 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort05]> {
810 def : InstRW<[ADLPWriteResGroup38], (instregex "^(V?)CVT(T?)SS2SI64rr_Int$")>;
811 def : InstRW<[ADLPWriteResGroup38, ReadDefault], (instregex "^(V?)CVT(T?)SS2SI64rr$")>;
813 def ADLPWriteResGroup39 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06]> {
817 def : InstRW<[ADLPWriteResGroup39], (instregex "^J(E|R)CXZ$")>;
818 def : InstRW<[ADLPWriteResGroup39], (instrs CWD)>;
820 def ADLPWriteResGroup40 : SchedWriteRes<[ADLPPort00_01_05_06]>;
821 def : InstRW<[ADLPWriteResGroup40], (instregex "^(LD|ST)_Frr$",
824 def : InstRW<[ADLPWriteResGroup40], (instrs DEC16r_alt,
829 def ADLPWriteResGroup41 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
832 def : InstRW<[ADLPWriteResGroup41], (instrs DEC32r_alt)>;
834 def ADLPWriteResGroup42 : SchedWriteRes<[ADLPPort00, ADLPPort02_03]> {
838 def : InstRW<[ADLPWriteResGroup42], (instregex "^DIVR_F(32|64)m$")>;
840 def ADLPWriteResGroup43 : SchedWriteRes<[ADLPPort00, ADLPPort02_03, ADLPPort05]> {
844 def : InstRW<[ADLPWriteResGroup43], (instregex "^DIVR_FI(16|32)m$")>;
846 def ADLPWriteResGroup44 : SchedWriteRes<[ADLPPort00]> {
849 def : InstRW<[ADLPWriteResGroup44], (instregex "^DIVR_F(P?)rST0$")>;
850 def : InstRW<[ADLPWriteResGroup44], (instrs DIVR_FST0r)>;
852 def ADLPWriteResGroup45 : SchedWriteRes<[ADLPPort00, ADLPPort02_03_10]> {
856 def : InstRW<[ADLPWriteResGroup45, ReadAfterVecLd], (instregex "^(V?)DIVSDrm_Int$")>;
858 def ADLPWriteResGroup46 : SchedWriteRes<[ADLPPort00, ADLPPort02_03]> {
862 def : InstRW<[ADLPWriteResGroup46], (instregex "^DIV_F(32|64)m$")>;
864 def ADLPWriteResGroup47 : SchedWriteRes<[ADLPPort00, ADLPPort02_03, ADLPPort05]> {
868 def : InstRW<[ADLPWriteResGroup47], (instregex "^DIV_FI(16|32)m$")>;
870 def ADLPWriteResGroup48 : SchedWriteRes<[ADLPPort00]> {
873 def : InstRW<[ADLPWriteResGroup48], (instregex "^DIV_F(P?)rST0$")>;
874 def : InstRW<[ADLPWriteResGroup48], (instrs DIV_FST0r)>;
876 def ADLPWriteResGroup49 : SchedWriteRes<[ADLPPort00, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
877 let ReleaseAtCycles = [2, 21, 2, 14, 4, 9, 5];
879 let NumMicroOps = 57;
881 def : InstRW<[ADLPWriteResGroup49], (instrs ENTER)>;
883 def ADLPWriteResGroup50 : SchedWriteRes<[ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
887 def : InstRW<[ADLPWriteResGroup50], (instregex "^(V?)EXTRACTPSmri$")>;
888 def : InstRW<[ADLPWriteResGroup50], (instrs SMSW16m)>;
890 def ADLPWriteResGroup51 : SchedWriteRes<[ADLPPort00, ADLPPort05]> {
894 def : InstRW<[ADLPWriteResGroup51], (instregex "^(V?)EXTRACTPSrri$")>;
895 def : InstRW<[ADLPWriteResGroup51], (instrs MMX_PEXTRWrri)>;
897 def ADLPWriteResGroup52 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort02_03, ADLPPort02_03_07, ADLPPort04, ADLPPort06]> {
901 def : InstRW<[ADLPWriteResGroup52], (instrs FARCALL64m)>;
903 def ADLPWriteResGroup53 : SchedWriteRes<[ADLPPort02_03, ADLPPort06]> {
907 def : InstRW<[ADLPWriteResGroup53], (instrs FARJMP64m,
910 def ADLPWriteResGroup54 : SchedWriteRes<[ADLPPort02_03_07, ADLPPort04]> {
913 def : InstRW<[ADLPWriteResGroup54], (instregex "^(V?)MASKMOVDQU((64)?)$",
914 "^ST_FP(32|64|80)m$")>;
915 def : InstRW<[ADLPWriteResGroup54], (instrs FBSTPm,
918 def ADLPWriteResGroup55 : SchedWriteRes<[ADLPPort00_05]> {
919 let ReleaseAtCycles = [2];
923 def : InstRW<[ADLPWriteResGroup55], (instrs FDECSTP)>;
925 def ADLPWriteResGroup56 : SchedWriteRes<[ADLPPort02_03, ADLPPort05]> {
926 let ReleaseAtCycles = [1, 2];
930 def : InstRW<[ADLPWriteResGroup56], (instregex "^FICOM(P?)(16|32)m$")>;
932 def ADLPWriteResGroup57 : SchedWriteRes<[ADLPPort00_05]>;
933 def : InstRW<[ADLPWriteResGroup57], (instregex "^MMX_P(ADD|SUB)(B|D|Q|W)rr$")>;
934 def : InstRW<[ADLPWriteResGroup57], (instrs FINCSTP,
937 def ADLPWriteResGroup58 : SchedWriteRes<[ADLPPort00, ADLPPort00_05, ADLPPort02_03]> {
941 def : InstRW<[ADLPWriteResGroup58], (instrs FLDCW16m)>;
943 def ADLPWriteResGroup59 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06, ADLPPort00_05, ADLPPort00_06, ADLPPort02_03]> {
944 let ReleaseAtCycles = [2, 39, 5, 10, 8];
946 let NumMicroOps = 64;
948 def : InstRW<[ADLPWriteResGroup59], (instrs FLDENVm)>;
950 def ADLPWriteResGroup60 : SchedWriteRes<[ADLPPort00_01_05_06]> {
951 let ReleaseAtCycles = [4];
955 def : InstRW<[ADLPWriteResGroup60], (instrs FNCLEX)>;
957 def ADLPWriteResGroup61 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort00_05, ADLPPort05]> {
958 let ReleaseAtCycles = [6, 3, 6];
960 let NumMicroOps = 15;
962 def : InstRW<[ADLPWriteResGroup61], (instrs FNINIT)>;
964 def ADLPWriteResGroup62 : SchedWriteRes<[ADLPPort02_03_07, ADLPPort04, ADLPPort06]> {
968 def : InstRW<[ADLPWriteResGroup62], (instrs FNSTCW16m)>;
970 def ADLPWriteResGroup63 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06]> {
974 def : InstRW<[ADLPWriteResGroup63], (instrs FNSTSW16r)>;
976 def ADLPWriteResGroup64 : SchedWriteRes<[ADLPPort00, ADLPPort02_03_07, ADLPPort04]> {
980 def : InstRW<[ADLPWriteResGroup64], (instrs FNSTSWm)>;
982 def ADLPWriteResGroup65 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06, ADLPPort00_06, ADLPPort01, ADLPPort02_03_07, ADLPPort04, ADLPPort05, ADLPPort06]> {
983 let ReleaseAtCycles = [9, 30, 21, 1, 11, 11, 16, 1];
985 let NumMicroOps = 100;
987 def : InstRW<[ADLPWriteResGroup65], (instrs FSTENVm)>;
989 def ADLPWriteResGroup66 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06, ADLPPort00_05, ADLPPort00_06, ADLPPort01_05, ADLPPort02_03, ADLPPort06]> {
990 let ReleaseAtCycles = [4, 47, 1, 2, 1, 33, 2];
992 let NumMicroOps = 90;
994 def : InstRW<[ADLPWriteResGroup66], (instrs FXRSTOR)>;
996 def ADLPWriteResGroup67 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06, ADLPPort00_05, ADLPPort00_06, ADLPPort01_05, ADLPPort02_03, ADLPPort06]> {
997 let ReleaseAtCycles = [4, 45, 1, 2, 1, 31, 4];
999 let NumMicroOps = 88;
1001 def : InstRW<[ADLPWriteResGroup67], (instrs FXRSTOR64)>;
1003 def ADLPWriteResGroup68 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1004 let ReleaseAtCycles = [2, 5, 10, 10, 2, 38, 5, 38];
1005 let Latency = AlderlakePModel.MaxLatency;
1006 let NumMicroOps = 110;
1008 def : InstRW<[ADLPWriteResGroup68], (instregex "^FXSAVE((64)?)$")>;
1010 def ADLPWriteResGroup69 : SchedWriteRes<[ADLPPort00_01, ADLPPort02_03_10]> {
1012 let NumMicroOps = 2;
1014 def : InstRW<[ADLPWriteResGroup69, ReadAfterVecXLd], (instregex "^(V?)GF2P8AFFINE((INV)?)QBrmi$",
1015 "^(V?)GF2P8MULBrm$")>;
1016 def : InstRW<[ADLPWriteResGroup69, ReadAfterVecYLd], (instregex "^VGF2P8AFFINE((INV)?)QBYrmi$")>;
1017 def : InstRW<[ADLPWriteResGroup69, ReadAfterVecYLd], (instrs VGF2P8MULBYrm)>;
1019 def ADLPWriteResGroup70 : SchedWriteRes<[ADLPPort00_01]> {
1022 def : InstRW<[ADLPWriteResGroup70], (instregex "^(V?)GF2P8MULBrr$")>;
1023 def : InstRW<[ADLPWriteResGroup70], (instrs VGF2P8MULBYrr)>;
1025 def ADLPWriteResGroup71 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort02_03_10, ADLPPort05]> {
1026 let ReleaseAtCycles = [7, 5, 26, 19, 2, 7, 21];
1028 let NumMicroOps = 87;
1030 def : InstRW<[ADLPWriteResGroup71], (instrs IN16ri)>;
1032 def ADLPWriteResGroup72 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort02_03_10, ADLPPort05]> {
1033 let ReleaseAtCycles = [7, 1, 4, 26, 19, 3, 7, 20];
1035 let NumMicroOps = 87;
1037 def : InstRW<[ADLPWriteResGroup72], (instrs IN16rr)>;
1039 def ADLPWriteResGroup73 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort02_03_10, ADLPPort05]> {
1040 let ReleaseAtCycles = [7, 6, 28, 21, 2, 10, 20];
1042 let NumMicroOps = 94;
1044 def : InstRW<[ADLPWriteResGroup73], (instrs IN32ri)>;
1046 def ADLPWriteResGroup74 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort02_03_10, ADLPPort05]> {
1047 let ReleaseAtCycles = [7, 9, 28, 21, 2, 11, 21];
1048 let NumMicroOps = 99;
1050 def : InstRW<[ADLPWriteResGroup74], (instrs IN32rr)>;
1052 def ADLPWriteResGroup75 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort02_03_10, ADLPPort05]> {
1053 let ReleaseAtCycles = [7, 6, 25, 19, 2, 8, 20];
1055 let NumMicroOps = 87;
1057 def : InstRW<[ADLPWriteResGroup75], (instrs IN8ri)>;
1059 def ADLPWriteResGroup76 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort02_03_10, ADLPPort05]> {
1060 let ReleaseAtCycles = [7, 6, 25, 19, 2, 7, 20];
1062 let NumMicroOps = 86;
1064 def : InstRW<[ADLPWriteResGroup76], (instrs IN8rr)>;
1066 def ADLPWriteResGroup77 : SchedWriteRes<[ADLPPort00_06]> {
1067 let NumMicroOps = 4;
1069 def : InstRW<[ADLPWriteResGroup77], (instrs INC16r_alt)>;
1071 def ADLPWriteResGroup78 : SchedWriteRes<[ADLPPort02_03_10]> {
1074 def : InstRW<[ADLPWriteResGroup78], (instregex "^(V?)MOV(D|SH|SL)DUPrm$",
1075 "^VPBROADCAST(D|Q)rm$")>;
1076 def : InstRW<[ADLPWriteResGroup78], (instrs INC32r_alt,
1079 def ADLPWriteResGroup79 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1080 let ReleaseAtCycles = [7, 6, 24, 17, 8, 1, 19, 1];
1082 let NumMicroOps = 83;
1084 def : InstRW<[ADLPWriteResGroup79], (instrs INSB)>;
1086 def ADLPWriteResGroup80 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort00_01_05_06_11, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1087 let ReleaseAtCycles = [7, 1, 5, 1, 27, 17, 11, 1, 21, 1];
1089 let NumMicroOps = 92;
1091 def : InstRW<[ADLPWriteResGroup80], (instrs INSL)>;
1093 def ADLPWriteResGroup81 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort00_01_05_06_11, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1094 let ReleaseAtCycles = [7, 1, 4, 1, 25, 17, 1, 9, 1, 19, 1];
1096 let NumMicroOps = 86;
1098 def : InstRW<[ADLPWriteResGroup81], (instrs INSW)>;
1100 def ADLPWriteResGroup82 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1101 let ReleaseAtCycles = [5, 4, 8, 6, 2, 5, 7, 5];
1102 let Latency = AlderlakePModel.MaxLatency;
1103 let NumMicroOps = 42;
1105 def : InstRW<[ADLPWriteResGroup82], (instrs INVLPG)>;
1107 def ADLPWriteResGroup83 : SchedWriteRes<[ADLPPort02_03_07, ADLPPort04, ADLPPort05]> {
1109 let NumMicroOps = 3;
1111 def : InstRW<[ADLPWriteResGroup83], (instregex "^IST(T?)_FP(16|32|64)m$",
1112 "^IST_F(16|32)m$")>;
1114 def ADLPWriteResGroup84 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort00_06]> {
1116 let NumMicroOps = 2;
1118 def : InstRW<[ADLPWriteResGroup84], (instrs JCXZ)>;
1120 def ADLPWriteResGroup85 : SchedWriteRes<[ADLPPort06]>;
1121 def : InstRW<[ADLPWriteResGroup85], (instrs JMP64r_REX)>;
1123 def ADLPWriteResGroup86 : SchedWriteRes<[]> {
1125 let NumMicroOps = 0;
1127 def : InstRW<[ADLPWriteResGroup86], (instregex "^JMP_(1|4)$")>;
1128 def : InstRW<[ADLPWriteResGroup86], (instrs VZEROUPPER)>;
1130 def ADLPWriteResGroup87 : SchedWriteRes<[ADLPPort00, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort05]> {
1131 let ReleaseAtCycles = [8, 2, 14, 3, 1];
1133 let NumMicroOps = 81;
1135 def : InstRW<[ADLPWriteResGroup87], (instrs LAR16rm)>;
1137 def ADLPWriteResGroup88 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_10, ADLPPort05]> {
1138 let ReleaseAtCycles = [1, 3, 1, 8, 5, 1, 2, 1];
1140 let NumMicroOps = 22;
1142 def : InstRW<[ADLPWriteResGroup88], (instrs LAR16rr)>;
1144 def ADLPWriteResGroup89 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort05]> {
1145 let ReleaseAtCycles = [1, 2, 2, 9, 5, 3, 1];
1147 let NumMicroOps = 85;
1149 def : InstRW<[ADLPWriteResGroup89], (instrs LAR32rm)>;
1151 def ADLPWriteResGroup90 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_10, ADLPPort05]> {
1152 let ReleaseAtCycles = [1, 3, 1, 8, 5, 1, 2, 1];
1154 let NumMicroOps = 22;
1156 def : InstRW<[ADLPWriteResGroup90], (instregex "^LAR(32|64)rr$")>;
1158 def ADLPWriteResGroup91 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort05]> {
1159 let ReleaseAtCycles = [1, 2, 2, 9, 5, 3, 1];
1161 let NumMicroOps = 87;
1163 def : InstRW<[ADLPWriteResGroup91], (instrs LAR64rm)>;
1165 def ADLPWriteResGroup92 : SchedWriteRes<[ADLPPort02_03]> {
1168 def : InstRW<[ADLPWriteResGroup92], (instregex "^LD_F(32|64|80)m$")>;
1170 def ADLPWriteResGroup93 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort01]> {
1172 let NumMicroOps = 2;
1174 def : InstRW<[ADLPWriteResGroup93], (instrs LEA16r)>;
1176 def ADLPWriteResGroup94 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10]> {
1177 let ReleaseAtCycles = [3, 1];
1179 let NumMicroOps = 4;
1181 def : InstRW<[ADLPWriteResGroup94], (instregex "^LODS(B|W)$",
1182 "^SCAS(B|L|Q|W)$")>;
1183 def : InstRW<[ADLPWriteResGroup94], (instrs LEAVE)>;
1185 def ADLPWriteResGroup95 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10]> {
1186 let ReleaseAtCycles = [2, 1];
1188 let NumMicroOps = 3;
1190 def : InstRW<[ADLPWriteResGroup95], (instrs LEAVE64)>;
1192 def ADLPWriteResGroup96 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
1193 let ReleaseAtCycles = [1, 2, 4, 3, 2, 1, 1];
1194 let Latency = AlderlakePModel.MaxLatency;
1195 let NumMicroOps = 14;
1197 def : InstRW<[ADLPWriteResGroup96], (instrs LGDT64m)>;
1199 def ADLPWriteResGroup97 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
1200 let ReleaseAtCycles = [1, 1, 5, 3, 2, 1, 1];
1201 let Latency = AlderlakePModel.MaxLatency;
1202 let NumMicroOps = 14;
1204 def : InstRW<[ADLPWriteResGroup97], (instrs LIDT64m)>;
1206 def ADLPWriteResGroup98 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
1207 let ReleaseAtCycles = [5, 3, 2, 1, 1];
1208 let Latency = AlderlakePModel.MaxLatency;
1209 let NumMicroOps = 12;
1211 def : InstRW<[ADLPWriteResGroup98], (instrs LLDT16m)>;
1213 def ADLPWriteResGroup99 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
1214 let ReleaseAtCycles = [1, 4, 3, 1, 1, 1];
1215 let Latency = AlderlakePModel.MaxLatency;
1216 let NumMicroOps = 11;
1218 def : InstRW<[ADLPWriteResGroup99], (instrs LLDT16r)>;
1220 def ADLPWriteResGroup100 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1221 let ReleaseAtCycles = [1, 1, 2, 8, 3, 1, 2, 7, 2];
1222 let Latency = AlderlakePModel.MaxLatency;
1223 let NumMicroOps = 27;
1225 def : InstRW<[ADLPWriteResGroup100], (instrs LMSW16m)>;
1227 def ADLPWriteResGroup101 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1228 let ReleaseAtCycles = [5, 7, 1, 2, 5, 2];
1229 let Latency = AlderlakePModel.MaxLatency;
1230 let NumMicroOps = 22;
1232 def : InstRW<[ADLPWriteResGroup101], (instrs LMSW16r)>;
1234 def ADLPWriteResGroup102 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10]> {
1235 let ReleaseAtCycles = [2, 1];
1237 let NumMicroOps = 3;
1239 def : InstRW<[ADLPWriteResGroup102], (instregex "^LODS(L|Q)$")>;
1241 def ADLPWriteResGroup103 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01]> {
1242 let ReleaseAtCycles = [2, 4, 1];
1244 let NumMicroOps = 7;
1246 def : InstRW<[ADLPWriteResGroup103], (instrs LOOP)>;
1248 def ADLPWriteResGroup104 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01]> {
1249 let ReleaseAtCycles = [4, 6, 1];
1251 let NumMicroOps = 11;
1253 def : InstRW<[ADLPWriteResGroup104], (instrs LOOPE)>;
1255 def ADLPWriteResGroup105 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01]> {
1256 let ReleaseAtCycles = [4, 6, 1];
1258 let NumMicroOps = 11;
1260 def : InstRW<[ADLPWriteResGroup105], (instrs LOOPNE)>;
1262 def ADLPWriteResGroup106 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort02_03, ADLPPort06]> {
1264 let NumMicroOps = 3;
1266 def : InstRW<[ADLPWriteResGroup106], (instrs LRET64)>;
1268 def ADLPWriteResGroup107 : SchedWriteRes<[ADLPPort00, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort05]> {
1269 let ReleaseAtCycles = [1, 5, 3, 3, 1];
1271 let NumMicroOps = 13;
1273 def : InstRW<[ADLPWriteResGroup107], (instregex "^LSL(16|32|64)rm$")>;
1275 def ADLPWriteResGroup108 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort05]> {
1276 let ReleaseAtCycles = [1, 4, 4, 3, 2, 1];
1278 let NumMicroOps = 15;
1280 def : InstRW<[ADLPWriteResGroup108], (instregex "^LSL(16|32|64)rr$")>;
1282 def ADLPWriteResGroup109 : SchedWriteRes<[ADLPPort00_01, ADLPPort02_03_10, ADLPPort05]> {
1284 let NumMicroOps = 3;
1286 def : InstRW<[ADLPWriteResGroup109], (instregex "^MMX_CVT(T?)PD2PIrm$")>;
1288 def ADLPWriteResGroup110 : SchedWriteRes<[ADLPPort00_01, ADLPPort05]> {
1290 let NumMicroOps = 2;
1292 def : InstRW<[ADLPWriteResGroup110], (instregex "^MMX_CVT(T?)PD2PIrr$")>;
1294 def ADLPWriteResGroup111 : SchedWriteRes<[ADLPPort00_01, ADLPPort05]> {
1296 let NumMicroOps = 2;
1298 def : InstRW<[ADLPWriteResGroup111], (instrs MMX_CVTPI2PDrr)>;
1300 def ADLPWriteResGroup112 : SchedWriteRes<[ADLPPort00, ADLPPort00_01]> {
1302 let NumMicroOps = 2;
1304 def : InstRW<[ADLPWriteResGroup112], (instrs MMX_CVTPI2PSrr)>;
1306 def ADLPWriteResGroup113 : SchedWriteRes<[ADLPPort00, ADLPPort02_03_10]> {
1308 let NumMicroOps = 2;
1310 def : InstRW<[ADLPWriteResGroup113], (instregex "^MMX_CVT(T?)PS2PIrm$")>;
1312 def ADLPWriteResGroup114 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05]> {
1314 let NumMicroOps = 2;
1316 def : InstRW<[ADLPWriteResGroup114], (instregex "^MMX_CVT(T?)PS2PIrr$")>;
1318 def ADLPWriteResGroup115 : SchedWriteRes<[ADLPPort00, ADLPPort04_09, ADLPPort07_08]> {
1319 let ReleaseAtCycles = [2, 1, 1];
1321 let NumMicroOps = 4;
1323 def : InstRW<[ADLPWriteResGroup115], (instregex "^MMX_MASKMOVQ((64)?)$")>;
1325 def ADLPWriteResGroup116 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
1327 let NumMicroOps = 2;
1329 def : InstRW<[ADLPWriteResGroup116], (instrs MMX_MOVD64mr)>;
1331 def ADLPWriteResGroup117 : SchedWriteRes<[ADLPPort02_03_10]> {
1334 def : InstRW<[ADLPWriteResGroup117], (instregex "^MMX_MOV(D|Q)64rm$",
1335 "^VBROADCAST(F|I)128rm$",
1336 "^VBROADCASTS(D|S)Yrm$",
1337 "^VMOV(D|SH|SL)DUPYrm$",
1338 "^VPBROADCAST(D|Q)Yrm$")>;
1339 def : InstRW<[ADLPWriteResGroup117], (instrs MMX_MOVD64to64rm)>;
1341 def ADLPWriteResGroup118 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort00_05]> {
1343 let NumMicroOps = 2;
1345 def : InstRW<[ADLPWriteResGroup118], (instregex "^MMX_MOV(DQ|FR64)2Qrr$")>;
1347 def ADLPWriteResGroup119 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05]> {
1349 let NumMicroOps = 2;
1351 def : InstRW<[ADLPWriteResGroup119], (instregex "^MMX_MOVQ2(DQ|FR64)rr$")>;
1353 def ADLPWriteResGroup120 : SchedWriteRes<[ADLPPort02_03_10, ADLPPort05]> {
1354 let ReleaseAtCycles = [1, 2];
1356 let NumMicroOps = 3;
1358 def : InstRW<[ADLPWriteResGroup120, ReadAfterVecLd], (instregex "^MMX_PACKSS(DW|WB)rm$")>;
1359 def : InstRW<[ADLPWriteResGroup120, ReadAfterVecLd], (instrs MMX_PACKUSWBrm)>;
1361 def ADLPWriteResGroup121 : SchedWriteRes<[ADLPPort05]> {
1362 let ReleaseAtCycles = [2];
1364 let NumMicroOps = 2;
1366 def : InstRW<[ADLPWriteResGroup121], (instregex "^MMX_PACKSS(DW|WB)rr$")>;
1367 def : InstRW<[ADLPWriteResGroup121], (instrs MMX_PACKUSWBrr)>;
1368 def : InstRW<[ADLPWriteResGroup121, ReadDefault, ReadInt2Fpu], (instrs MMX_PINSRWrri)>;
1370 def ADLPWriteResGroup122 : SchedWriteRes<[ADLPPort00_05, ADLPPort02_03_10]> {
1372 let NumMicroOps = 2;
1374 def : InstRW<[ADLPWriteResGroup122, ReadAfterVecLd], (instregex "^MMX_P(ADD|SUB)(B|D|Q|W)rm$")>;
1376 def ADLPWriteResGroup123 : SchedWriteRes<[ADLPPort00, ADLPPort02_03_10, ADLPPort05]> {
1377 let ReleaseAtCycles = [1, 1, 2];
1379 let NumMicroOps = 4;
1381 def : InstRW<[ADLPWriteResGroup123, ReadAfterVecLd], (instregex "^MMX_PH(ADD|SUB)SWrm$")>;
1383 def ADLPWriteResGroup124 : SchedWriteRes<[ADLPPort00, ADLPPort05]> {
1384 let ReleaseAtCycles = [1, 2];
1386 let NumMicroOps = 3;
1388 def : InstRW<[ADLPWriteResGroup124], (instregex "^MMX_PH(ADD|SUB)SWrr$")>;
1390 def ADLPWriteResGroup125 : SchedWriteRes<[ADLPPort02_03_10, ADLPPort05]> {
1392 let NumMicroOps = 2;
1394 def : InstRW<[ADLPWriteResGroup125], (instregex "^VPBROADCAST(B|W)Yrm$")>;
1395 def : InstRW<[ADLPWriteResGroup125, ReadAfterLd], (instrs MMX_PINSRWrmi)>;
1396 def : InstRW<[ADLPWriteResGroup125, ReadAfterVecYLd], (instrs VPALIGNRYrmi)>;
1398 def ADLPWriteResGroup126 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10]> {
1400 let NumMicroOps = 2;
1402 def : InstRW<[ADLPWriteResGroup126], (instregex "^MOV16ao(16|32|64)$")>;
1404 def ADLPWriteResGroup127 : SchedWriteRes<[ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
1406 let NumMicroOps = 3;
1408 def : InstRW<[ADLPWriteResGroup127], (instregex "^PUSH(F|G)S(16|32)$")>;
1409 def : InstRW<[ADLPWriteResGroup127], (instrs MOV16ms,
1412 def ADLPWriteResGroup128 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort01]> {
1413 let NumMicroOps = 2;
1415 def : InstRW<[ADLPWriteResGroup128], (instregex "^MOV(16|32|64)rs$",
1418 def ADLPWriteResGroup129 : SchedWriteRes<[ADLPPort02_03_10]>;
1419 def : InstRW<[ADLPWriteResGroup129], (instregex "^MOV32ao(16|32|64)$")>;
1420 def : InstRW<[ADLPWriteResGroup129], (instrs MOV64ao64)>;
1422 def ADLPWriteResGroup130 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort04_09, ADLPPort07_08]> {
1423 let NumMicroOps = 3;
1425 def : InstRW<[ADLPWriteResGroup130], (instregex "^MOV(8|32)o(16|32)a$",
1426 "^MOV(8|32|64)o64a$")>;
1428 def ADLPWriteResGroup131 : SchedWriteRes<[ADLPPort00_01_05_06_11]> {
1431 def : InstRW<[ADLPWriteResGroup131], (instregex "^MOV32rr((_REV)?)$",
1432 "^MOVZX(32|64)rr8$")>;
1433 def : InstRW<[ADLPWriteResGroup131], (instrs MOVZX32rr8_NOREX)>;
1435 def ADLPWriteResGroup132 : SchedWriteRes<[ADLPPort02_03_10]> {
1438 def : InstRW<[ADLPWriteResGroup132], (instrs MOV64ao32)>;
1440 def ADLPWriteResGroup133 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1441 let ReleaseAtCycles = [1, 2, 4, 16, 7, 2, 2, 12, 2];
1443 let NumMicroOps = 48;
1445 def : InstRW<[ADLPWriteResGroup133], (instrs MOV64dr)>;
1447 def ADLPWriteResGroup134 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
1449 let NumMicroOps = 2;
1451 def : InstRW<[ADLPWriteResGroup134], (instrs MOV64o32a)>;
1453 def ADLPWriteResGroup135 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort05]> {
1454 let Latency = AlderlakePModel.MaxLatency;
1455 let NumMicroOps = 3;
1457 def : InstRW<[ADLPWriteResGroup135], (instrs MOV64rc)>;
1459 def ADLPWriteResGroup136 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort05]> {
1460 let ReleaseAtCycles = [3, 4, 8, 4, 2, 3];
1462 let NumMicroOps = 24;
1464 def : InstRW<[ADLPWriteResGroup136], (instrs MOV64rd)>;
1466 def ADLPWriteResGroup137 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10]> {
1467 let NumMicroOps = 2;
1469 def : InstRW<[ADLPWriteResGroup137], (instregex "^MOV8ao(16|32|64)$")>;
1471 def ADLPWriteResGroup138 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
1473 let NumMicroOps = 2;
1475 def : InstRW<[ADLPWriteResGroup138], (instregex "^MOV8m(i|r)$")>;
1476 def : InstRW<[ADLPWriteResGroup138], (instrs MOV8mr_NOREX)>;
1478 def ADLPWriteResGroup139 : SchedWriteRes<[ADLPPort00_06, ADLPPort04_09, ADLPPort07_08]> {
1480 let NumMicroOps = 3;
1482 def : InstRW<[ADLPWriteResGroup139], (instrs MOVBE16mr)>;
1484 def ADLPWriteResGroup140 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort02_03_10]> {
1486 let NumMicroOps = 3;
1488 def : InstRW<[ADLPWriteResGroup140], (instrs MOVBE16rm)>;
1490 def ADLPWriteResGroup141 : SchedWriteRes<[ADLPPort01, ADLPPort02_03_10]> {
1492 let NumMicroOps = 2;
1494 def : InstRW<[ADLPWriteResGroup141], (instrs MOVBE32rm)>;
1496 def ADLPWriteResGroup142 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
1498 let NumMicroOps = 4;
1500 def : InstRW<[ADLPWriteResGroup142], (instrs MOVBE64mr,
1505 def ADLPWriteResGroup143 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort02_03_10]> {
1507 let NumMicroOps = 3;
1509 def : InstRW<[ADLPWriteResGroup143], (instrs MOVBE64rm)>;
1511 def ADLPWriteResGroup144 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
1512 let NumMicroOps = 4;
1514 def : InstRW<[ADLPWriteResGroup144], (instregex "^MOVDIR64B(16|32|64)$")>;
1516 def ADLPWriteResGroup145 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
1518 let NumMicroOps = 2;
1520 def : InstRW<[ADLPWriteResGroup145], (instrs MOVDIRI32)>;
1522 def ADLPWriteResGroup146 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
1524 let NumMicroOps = 2;
1526 def : InstRW<[ADLPWriteResGroup146], (instrs MOVDIRI64)>;
1528 def ADLPWriteResGroup147 : SchedWriteRes<[ADLPPort01_05, ADLPPort02_03_10]> {
1530 let NumMicroOps = 2;
1532 def : InstRW<[ADLPWriteResGroup147, ReadAfterVecXLd], (instregex "^(V?)MOVLP(D|S)rm$",
1533 "^(V?)SHUFP(D|S)rmi$")>;
1535 def ADLPWriteResGroup148 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
1537 let NumMicroOps = 2;
1539 def : InstRW<[ADLPWriteResGroup148], (instrs MOVNTDQmr)>;
1541 def ADLPWriteResGroup149 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
1543 let NumMicroOps = 2;
1545 def : InstRW<[ADLPWriteResGroup149], (instrs MOVNTImr)>;
1547 def ADLPWriteResGroup150 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
1548 let ReleaseAtCycles = [4, 1, 1, 1];
1550 let NumMicroOps = 7;
1552 def : InstRW<[ADLPWriteResGroup150], (instrs MOVSB)>;
1554 def ADLPWriteResGroup151 : SchedWriteRes<[ADLPPort00_01_05]>;
1555 def : InstRW<[ADLPWriteResGroup151], (instregex "^(V?)MOVS(D|S)rr((_REV)?)$",
1556 "^(V?)P(ADD|SUB)(B|D|Q|W)rr$",
1557 "^VP(ADD|SUB)(B|D|Q|W)Yrr$")>;
1558 def : InstRW<[ADLPWriteResGroup151], (instrs VPBLENDDrri)>;
1560 def ADLPWriteResGroup152 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
1561 let ReleaseAtCycles = [4, 1, 1, 1];
1563 let NumMicroOps = 7;
1565 def : InstRW<[ADLPWriteResGroup152], (instregex "^MOVS(L|Q|W)$")>;
1567 def ADLPWriteResGroup153 : SchedWriteRes<[ADLPPort02_03_10]> {
1570 def : InstRW<[ADLPWriteResGroup153], (instregex "^MOVSX(16|32|64)rm(16|32)$",
1571 "^MOVSX(32|64)rm8$")>;
1572 def : InstRW<[ADLPWriteResGroup153], (instrs MOVSX32rm8_NOREX)>;
1574 def ADLPWriteResGroup154 : SchedWriteRes<[ADLPPort01_05_11, ADLPPort02_03_10]> {
1576 let NumMicroOps = 2;
1578 def : InstRW<[ADLPWriteResGroup154], (instrs MOVSX16rm8)>;
1580 def ADLPWriteResGroup155 : SchedWriteRes<[ADLPPort01_05_11]>;
1581 def : InstRW<[ADLPWriteResGroup155], (instregex "^MOVSX(16|32|64)rr(8|16|32)$")>;
1582 def : InstRW<[ADLPWriteResGroup155], (instrs MOVSX32rr8_NOREX)>;
1584 def ADLPWriteResGroup156 : SchedWriteRes<[ADLPPort00, ADLPPort02_03]> {
1586 let NumMicroOps = 2;
1588 def : InstRW<[ADLPWriteResGroup156], (instregex "^MUL_F(32|64)m$")>;
1590 def ADLPWriteResGroup157 : SchedWriteRes<[ADLPPort00, ADLPPort02_03, ADLPPort05]> {
1592 let NumMicroOps = 3;
1594 def : InstRW<[ADLPWriteResGroup157], (instregex "^MUL_FI(16|32)m$")>;
1596 def ADLPWriteResGroup158 : SchedWriteRes<[ADLPPort00]> {
1599 def : InstRW<[ADLPWriteResGroup158], (instregex "^MUL_F(P?)rST0$")>;
1600 def : InstRW<[ADLPWriteResGroup158], (instrs MUL_FST0r)>;
1602 def ADLPWriteResGroup159 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort05, ADLPPort06]> {
1603 let ReleaseAtCycles = [7, 1, 2];
1605 let NumMicroOps = 10;
1607 def : InstRW<[ADLPWriteResGroup159], (instrs MWAITrr)>;
1609 def ADLPWriteResGroup160 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1610 let ReleaseAtCycles = [6, 4, 1, 28, 15, 7, 1, 16, 1];
1612 let NumMicroOps = 79;
1614 def : InstRW<[ADLPWriteResGroup160], (instrs OUT16ir)>;
1616 def ADLPWriteResGroup161 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1617 let ReleaseAtCycles = [6, 6, 27, 15, 7, 1, 16, 1];
1619 let NumMicroOps = 79;
1621 def : InstRW<[ADLPWriteResGroup161], (instrs OUT16rr)>;
1623 def ADLPWriteResGroup162 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1624 let ReleaseAtCycles = [6, 4, 1, 30, 15, 9, 1, 18, 1];
1626 let NumMicroOps = 85;
1628 def : InstRW<[ADLPWriteResGroup162], (instrs OUT32ir)>;
1630 def ADLPWriteResGroup163 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1631 let ReleaseAtCycles = [6, 6, 29, 15, 9, 1, 18, 1];
1633 let NumMicroOps = 85;
1635 def : InstRW<[ADLPWriteResGroup163], (instrs OUT32rr)>;
1637 def ADLPWriteResGroup164 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1638 let ReleaseAtCycles = [5, 5, 1, 25, 15, 5, 1, 15, 1];
1640 let NumMicroOps = 73;
1642 def : InstRW<[ADLPWriteResGroup164], (instrs OUT8ir)>;
1644 def ADLPWriteResGroup165 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1645 let ReleaseAtCycles = [5, 5, 26, 15, 5, 1, 15, 1];
1647 let NumMicroOps = 73;
1649 def : InstRW<[ADLPWriteResGroup165], (instrs OUT8rr)>;
1651 def ADLPWriteResGroup166 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1652 let ReleaseAtCycles = [7, 6, 25, 16, 7, 1, 17, 1];
1653 let Latency = AlderlakePModel.MaxLatency;
1654 let NumMicroOps = 80;
1656 def : InstRW<[ADLPWriteResGroup166], (instrs OUTSB)>;
1658 def ADLPWriteResGroup167 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1659 let ReleaseAtCycles = [7, 6, 28, 16, 10, 1, 20, 1];
1660 let Latency = AlderlakePModel.MaxLatency;
1661 let NumMicroOps = 89;
1663 def : InstRW<[ADLPWriteResGroup167], (instrs OUTSL)>;
1665 def ADLPWriteResGroup168 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
1666 let ReleaseAtCycles = [6, 1, 5, 27, 16, 8, 1, 18, 1];
1667 let Latency = AlderlakePModel.MaxLatency;
1668 let NumMicroOps = 83;
1670 def : InstRW<[ADLPWriteResGroup168], (instrs OUTSW)>;
1672 def ADLPWriteResGroup169 : SchedWriteRes<[ADLPPort02_03_10, ADLPPort05]> {
1674 let NumMicroOps = 2;
1676 def : InstRW<[ADLPWriteResGroup169, ReadAfterVecXLd], (instregex "^(V?)PACK(S|U)S(DW|WB)rm$",
1677 "^(V?)PCMPGTQrm$")>;
1679 def ADLPWriteResGroup170 : SchedWriteRes<[ADLPPort05]> {
1682 def : InstRW<[ADLPWriteResGroup170], (instregex "^(V?)PACK(S|U)S(DW|WB)rr$",
1684 "^VPACK(S|U)S(DW|WB)Yrr$")>;
1685 def : InstRW<[ADLPWriteResGroup170], (instrs VPCMPGTQYrr)>;
1687 def ADLPWriteResGroup171 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort02_03_10]> {
1689 let NumMicroOps = 2;
1691 def : InstRW<[ADLPWriteResGroup171, ReadAfterVecXLd], (instregex "^(V?)P(ADD|SUB)(B|D|Q|W)rm$")>;
1692 def : InstRW<[ADLPWriteResGroup171, ReadAfterVecXLd], (instrs VPBLENDDrmi)>;
1694 def ADLPWriteResGroup172 : SchedWriteRes<[ADLPPort02_03_10, ADLPPort05]> {
1696 let NumMicroOps = 2;
1698 def : InstRW<[ADLPWriteResGroup172], (instregex "^VPBROADCAST(B|W)rm$")>;
1699 def : InstRW<[ADLPWriteResGroup172, ReadAfterVecXLd], (instregex "^(V?)PALIGNRrmi$")>;
1701 def ADLPWriteResGroup173 : SchedWriteRes<[ADLPPort05]>;
1702 def : InstRW<[ADLPWriteResGroup173], (instregex "^(V?)PALIGNRrri$",
1703 "^VPBROADCAST(B|D|Q|W)rr$")>;
1704 def : InstRW<[ADLPWriteResGroup173], (instrs VPALIGNRYrri)>;
1706 def ADLPWriteResGroup174 : SchedWriteRes<[ADLPPort00_06, ADLPPort05]> {
1708 let NumMicroOps = 2;
1710 def : InstRW<[ADLPWriteResGroup174], (instrs PAUSE)>;
1712 def ADLPWriteResGroup175 : SchedWriteRes<[ADLPPort01, ADLPPort02_03_10]> {
1714 let NumMicroOps = 2;
1716 def : InstRW<[ADLPWriteResGroup175, ReadAfterLd], (instregex "^P(DEP|EXT)(32|64)rm$")>;
1718 def ADLPWriteResGroup176 : SchedWriteRes<[ADLPPort01_05, ADLPPort04_09, ADLPPort07_08]> {
1720 let NumMicroOps = 3;
1722 def : InstRW<[ADLPWriteResGroup176], (instregex "^(V?)PEXTR(D|Q)mri$")>;
1724 def ADLPWriteResGroup177 : SchedWriteRes<[ADLPPort00_01, ADLPPort01_05, ADLPPort02_03_10]> {
1725 let ReleaseAtCycles = [1, 2, 1];
1727 let NumMicroOps = 4;
1729 def : InstRW<[ADLPWriteResGroup177, ReadAfterVecXLd], (instregex "^(V?)PH(ADD|SUB)SWrm$")>;
1731 def ADLPWriteResGroup178 : SchedWriteRes<[ADLPPort00_01, ADLPPort01_05]> {
1732 let ReleaseAtCycles = [1, 2];
1734 let NumMicroOps = 3;
1736 def : InstRW<[ADLPWriteResGroup178], (instregex "^(V?)PH(ADD|SUB)SWrr$",
1737 "^VPH(ADD|SUB)SWYrr$")>;
1739 def ADLPWriteResGroup179 : SchedWriteRes<[ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
1741 let NumMicroOps = 3;
1743 def : InstRW<[ADLPWriteResGroup179], (instregex "^POP(16|32|64)rmm$",
1744 "^PUSH(16|32)rmm$")>;
1746 def ADLPWriteResGroup180 : SchedWriteRes<[ADLPPort02_03]> {
1749 def : InstRW<[ADLPWriteResGroup180], (instregex "^POPA(16|32)$",
1750 "^PREFETCHIT(0|1)$")>;
1751 def : InstRW<[ADLPWriteResGroup180], (instrs POPF32)>;
1753 def ADLPWriteResGroup181 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10]> {
1754 let ReleaseAtCycles = [6, 2, 1, 1];
1756 let NumMicroOps = 10;
1758 def : InstRW<[ADLPWriteResGroup181], (instrs POPF16)>;
1760 def ADLPWriteResGroup182 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort02_03_10]> {
1761 let ReleaseAtCycles = [2, 1, 1];
1763 let NumMicroOps = 7;
1765 def : InstRW<[ADLPWriteResGroup182], (instrs POPF64)>;
1767 def ADLPWriteResGroup183 : SchedWriteRes<[ADLPPort02_03_10]> {
1770 def : InstRW<[ADLPWriteResGroup183], (instregex "^PREFETCHT(0|1|2)$")>;
1771 def : InstRW<[ADLPWriteResGroup183], (instrs PREFETCHNTA)>;
1773 def ADLPWriteResGroup184 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10, ADLPPort06]> {
1774 let ReleaseAtCycles = [1, 1, 2];
1775 let Latency = AlderlakePModel.MaxLatency;
1776 let NumMicroOps = 4;
1778 def : InstRW<[ADLPWriteResGroup184], (instregex "^PTWRITE((64)?)m$")>;
1780 def ADLPWriteResGroup185 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort06]> {
1781 let ReleaseAtCycles = [1, 2];
1782 let Latency = AlderlakePModel.MaxLatency;
1783 let NumMicroOps = 3;
1785 def : InstRW<[ADLPWriteResGroup185], (instrs PTWRITE64r)>;
1787 def ADLPWriteResGroup186 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort06]> {
1788 let ReleaseAtCycles = [2, 2];
1789 let Latency = AlderlakePModel.MaxLatency;
1790 let NumMicroOps = 4;
1792 def : InstRW<[ADLPWriteResGroup186], (instrs PTWRITEr)>;
1794 def ADLPWriteResGroup187 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
1795 let NumMicroOps = 2;
1797 def : InstRW<[ADLPWriteResGroup187], (instregex "^PUSH64r((mr)?)$")>;
1799 def ADLPWriteResGroup188 : SchedWriteRes<[ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
1800 let NumMicroOps = 3;
1802 def : InstRW<[ADLPWriteResGroup188], (instrs PUSH64rmm)>;
1804 def ADLPWriteResGroup189 : SchedWriteRes<[ADLPPort02_03_07, ADLPPort04]>;
1805 def : InstRW<[ADLPWriteResGroup189], (instregex "^PUSHA(16|32)$",
1807 def : InstRW<[ADLPWriteResGroup189], (instrs PUSHF32)>;
1809 def ADLPWriteResGroup190 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
1811 let NumMicroOps = 4;
1813 def : InstRW<[ADLPWriteResGroup190], (instrs PUSHF64)>;
1815 def ADLPWriteResGroup191 : SchedWriteRes<[ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
1816 let NumMicroOps = 3;
1818 def : InstRW<[ADLPWriteResGroup191], (instregex "^PUSH(F|G)S64$")>;
1820 def ADLPWriteResGroup192 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01]> {
1821 let ReleaseAtCycles = [2, 3, 2];
1823 let NumMicroOps = 7;
1825 def : InstRW<[ADLPWriteResGroup192], (instregex "^RC(L|R)(16|32|64)rCL$")>;
1827 def ADLPWriteResGroup193 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06]> {
1828 let ReleaseAtCycles = [1, 2];
1830 let NumMicroOps = 3;
1832 def : InstRW<[ADLPWriteResGroup193, WriteRMW], (instregex "^RC(L|R)8m(1|i)$")>;
1834 def ADLPWriteResGroup194 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01]> {
1835 let ReleaseAtCycles = [1, 5, 2];
1837 let NumMicroOps = 8;
1839 def : InstRW<[ADLPWriteResGroup194, WriteRMW], (instrs RCL8mCL)>;
1841 def ADLPWriteResGroup195 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01]> {
1842 let ReleaseAtCycles = [2, 5, 2];
1844 let NumMicroOps = 9;
1846 def : InstRW<[ADLPWriteResGroup195], (instrs RCL8rCL)>;
1848 def ADLPWriteResGroup196 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01]> {
1849 let ReleaseAtCycles = [2, 4, 3];
1851 let NumMicroOps = 9;
1853 def : InstRW<[ADLPWriteResGroup196, WriteRMW], (instrs RCR8mCL)>;
1855 def ADLPWriteResGroup197 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01]> {
1856 let ReleaseAtCycles = [3, 4, 3];
1858 let NumMicroOps = 10;
1860 def : InstRW<[ADLPWriteResGroup197], (instrs RCR8rCL)>;
1862 def ADLPWriteResGroup198 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_05, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort01_05_11, ADLPPort05]> {
1863 let ReleaseAtCycles = [1, 6, 1, 10, 20, 8, 5, 1, 2];
1864 let Latency = AlderlakePModel.MaxLatency;
1865 let NumMicroOps = 54;
1867 def : InstRW<[ADLPWriteResGroup198], (instrs RDMSR)>;
1869 def ADLPWriteResGroup199 : SchedWriteRes<[ADLPPort01]> {
1870 let Latency = AlderlakePModel.MaxLatency;
1872 def : InstRW<[ADLPWriteResGroup199], (instrs RDPID64)>;
1874 def ADLPWriteResGroup200 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01]> {
1875 let Latency = AlderlakePModel.MaxLatency;
1876 let NumMicroOps = 3;
1878 def : InstRW<[ADLPWriteResGroup200], (instrs RDPKRUr)>;
1880 def ADLPWriteResGroup201 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort05]> {
1881 let ReleaseAtCycles = [9, 6, 2, 1];
1882 let Latency = AlderlakePModel.MaxLatency;
1883 let NumMicroOps = 18;
1885 def : InstRW<[ADLPWriteResGroup201], (instrs RDPMC)>;
1887 def ADLPWriteResGroup202 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_10, ADLPPort05]> {
1888 let ReleaseAtCycles = [2, 3, 2, 5, 7, 3, 1, 2];
1890 let NumMicroOps = 25;
1892 def : InstRW<[ADLPWriteResGroup202], (instrs RDRAND16r)>;
1894 def ADLPWriteResGroup203 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_11, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_10, ADLPPort05]> {
1895 let ReleaseAtCycles = [2, 3, 2, 5, 7, 3, 1, 2];
1896 let Latency = AlderlakePModel.MaxLatency;
1897 let NumMicroOps = 25;
1899 def : InstRW<[ADLPWriteResGroup203], (instregex "^RDRAND(32|64)r$")>;
1901 def ADLPWriteResGroup204 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort05]> {
1902 let ReleaseAtCycles = [2, 3, 3, 5, 7, 1, 4];
1904 let NumMicroOps = 25;
1906 def : InstRW<[ADLPWriteResGroup204], (instrs RDSEED16r)>;
1908 def ADLPWriteResGroup205 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort05]> {
1909 let ReleaseAtCycles = [2, 3, 3, 5, 7, 1, 4];
1910 let Latency = AlderlakePModel.MaxLatency;
1911 let NumMicroOps = 25;
1913 def : InstRW<[ADLPWriteResGroup205], (instregex "^RDSEED(32|64)r$")>;
1915 def ADLPWriteResGroup206 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort05]> {
1916 let ReleaseAtCycles = [5, 6, 3, 1];
1918 let NumMicroOps = 15;
1920 def : InstRW<[ADLPWriteResGroup206], (instrs RDTSC)>;
1922 def ADLPWriteResGroup207 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort05]> {
1923 let ReleaseAtCycles = [2, 2, 1, 2, 7, 4, 3];
1925 let NumMicroOps = 21;
1927 def : InstRW<[ADLPWriteResGroup207], (instrs RDTSCP)>;
1929 def ADLPWriteResGroup208 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_10]> {
1931 let NumMicroOps = 2;
1933 def : InstRW<[ADLPWriteResGroup208], (instrs RET64)>;
1935 def ADLPWriteResGroup209 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_10]> {
1936 let ReleaseAtCycles = [2, 1];
1938 let NumMicroOps = 3;
1940 def : InstRW<[ADLPWriteResGroup209], (instregex "^RETI(16|32|64)$")>;
1942 def ADLPWriteResGroup210 : SchedWriteRes<[]>;
1943 def : InstRW<[ADLPWriteResGroup210], (instrs REX64_PREFIX)>;
1945 def ADLPWriteResGroup211 : SchedWriteRes<[ADLPPort00_06]> {
1946 let ReleaseAtCycles = [2];
1948 let NumMicroOps = 2;
1950 def : InstRW<[ADLPWriteResGroup211, WriteRMW], (instregex "^RO(L|R)(16|32|64)m(1|i|CL)$")>;
1952 def ADLPWriteResGroup212 : SchedWriteRes<[ADLPPort00_06]> {
1953 let ReleaseAtCycles = [2];
1954 let NumMicroOps = 2;
1956 def : InstRW<[ADLPWriteResGroup212], (instregex "^RO(L|R)(8|16|32|64)r(1|i)$")>;
1958 def ADLPWriteResGroup213 : SchedWriteRes<[ADLPPort00_06]> {
1959 let ReleaseAtCycles = [2];
1961 let NumMicroOps = 2;
1963 def : InstRW<[ADLPWriteResGroup213, WriteRMW], (instregex "^RO(L|R)8m(1|i)$",
1965 "^(RO|SA|SH)R8mCL$")>;
1967 def ADLPWriteResGroup214 : SchedWriteRes<[ADLPPort00_06]> {
1968 let ReleaseAtCycles = [2];
1970 let NumMicroOps = 2;
1972 def : InstRW<[ADLPWriteResGroup214], (instrs SAHF)>;
1974 def ADLPWriteResGroup215 : SchedWriteRes<[ADLPPort00_06]> {
1977 def : InstRW<[ADLPWriteResGroup215, WriteRMW], (instregex "^S(A|H)R8m(1|i)$",
1980 def ADLPWriteResGroup216 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_10]> {
1982 let NumMicroOps = 2;
1984 def : InstRW<[ADLPWriteResGroup216, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^S(A|H)RX(32|64)rm$",
1985 "^SHLX(32|64)rm$")>;
1987 def ADLPWriteResGroup217 : SchedWriteRes<[ADLPPort00_06]> {
1990 def : InstRW<[ADLPWriteResGroup217], (instregex "^S(A|H)RX(32|64)rr$",
1991 "^SHLX(32|64)rr$")>;
1993 def ADLPWriteResGroup218 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
1994 let ReleaseAtCycles = [2, 2, 1, 1, 1];
1995 let Latency = AlderlakePModel.MaxLatency;
1996 let NumMicroOps = 7;
1998 def : InstRW<[ADLPWriteResGroup218], (instrs SERIALIZE)>;
2000 def ADLPWriteResGroup219 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
2002 let NumMicroOps = 2;
2004 def : InstRW<[ADLPWriteResGroup219], (instrs SFENCE)>;
2006 def ADLPWriteResGroup220 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
2007 let ReleaseAtCycles = [1, 2, 2, 2];
2009 let NumMicroOps = 7;
2011 def : InstRW<[ADLPWriteResGroup220], (instregex "^S(G|I)DT64m$")>;
2013 def ADLPWriteResGroup221 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort02_03_10, ADLPPort05]> {
2015 let NumMicroOps = 3;
2017 def : InstRW<[ADLPWriteResGroup221, ReadAfterVecXLd], (instrs SHA1MSG1rm)>;
2019 def ADLPWriteResGroup222 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort05]> {
2021 let NumMicroOps = 2;
2023 def : InstRW<[ADLPWriteResGroup222], (instrs SHA1MSG1rr)>;
2025 def ADLPWriteResGroup223 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01_05, ADLPPort02_03_10]> {
2026 let ReleaseAtCycles = [2, 2, 1, 2, 1];
2028 let NumMicroOps = 8;
2030 def : InstRW<[ADLPWriteResGroup223, ReadAfterVecXLd], (instrs SHA1MSG2rm)>;
2032 def ADLPWriteResGroup224 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01_05]> {
2033 let ReleaseAtCycles = [2, 2, 1, 2];
2035 let NumMicroOps = 7;
2037 def : InstRW<[ADLPWriteResGroup224], (instrs SHA1MSG2rr)>;
2039 def ADLPWriteResGroup225 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort01_05, ADLPPort02_03_10]> {
2041 let NumMicroOps = 4;
2043 def : InstRW<[ADLPWriteResGroup225, ReadAfterVecXLd], (instrs SHA1NEXTErm)>;
2045 def ADLPWriteResGroup226 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort01_05]> {
2047 let NumMicroOps = 3;
2049 def : InstRW<[ADLPWriteResGroup226], (instrs SHA1NEXTErr)>;
2051 def ADLPWriteResGroup227 : SchedWriteRes<[ADLPPort02_03_10, ADLPPort05]> {
2053 let NumMicroOps = 2;
2055 def : InstRW<[ADLPWriteResGroup227, ReadAfterVecXLd], (instrs SHA1RNDS4rmi,
2058 def ADLPWriteResGroup228 : SchedWriteRes<[ADLPPort05]> {
2061 def : InstRW<[ADLPWriteResGroup228], (instrs SHA1RNDS4rri,
2064 def ADLPWriteResGroup229 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_06, ADLPPort02_03_10, ADLPPort05]> {
2065 let ReleaseAtCycles = [3, 2, 1, 1, 1];
2067 let NumMicroOps = 8;
2069 def : InstRW<[ADLPWriteResGroup229, ReadAfterVecXLd], (instrs SHA256MSG1rm)>;
2071 def ADLPWriteResGroup230 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_06, ADLPPort05]> {
2072 let ReleaseAtCycles = [3, 2, 1, 1];
2074 let NumMicroOps = 7;
2076 def : InstRW<[ADLPWriteResGroup230], (instrs SHA256MSG1rr)>;
2078 def ADLPWriteResGroup231 : SchedWriteRes<[ADLPPort02_03_10, ADLPPort05]> {
2079 let ReleaseAtCycles = [1, 2];
2081 let NumMicroOps = 3;
2083 def : InstRW<[ADLPWriteResGroup231, ReadAfterVecXLd], (instrs SHA256MSG2rm)>;
2085 def ADLPWriteResGroup232 : SchedWriteRes<[ADLPPort05]> {
2086 let ReleaseAtCycles = [2];
2088 let NumMicroOps = 2;
2090 def : InstRW<[ADLPWriteResGroup232], (instrs SHA256MSG2rr)>;
2092 def ADLPWriteResGroup233 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort07_08]> {
2094 let NumMicroOps = 5;
2096 def : InstRW<[ADLPWriteResGroup233], (instrs SHRD16mri8)>;
2098 def ADLPWriteResGroup234 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort01]> {
2100 let NumMicroOps = 2;
2102 def : InstRW<[ADLPWriteResGroup234], (instregex "^SLDT(32|64)r$")>;
2104 def ADLPWriteResGroup235 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort05]> {
2105 let NumMicroOps = 2;
2107 def : InstRW<[ADLPWriteResGroup235], (instrs SMSW16r)>;
2109 def ADLPWriteResGroup236 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort05]> {
2110 let Latency = AlderlakePModel.MaxLatency;
2111 let NumMicroOps = 2;
2113 def : InstRW<[ADLPWriteResGroup236], (instregex "^SMSW(32|64)r$")>;
2115 def ADLPWriteResGroup237 : SchedWriteRes<[ADLPPort00, ADLPPort02_03_10]> {
2117 let NumMicroOps = 2;
2119 def : InstRW<[ADLPWriteResGroup237, ReadAfterVecLd], (instregex "^(V?)SQRTSDm_Int$")>;
2121 def ADLPWriteResGroup238 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06]> {
2123 let NumMicroOps = 2;
2125 def : InstRW<[ADLPWriteResGroup238], (instrs STD)>;
2127 def ADLPWriteResGroup239 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01]> {
2128 let ReleaseAtCycles = [1, 4, 1];
2129 let Latency = AlderlakePModel.MaxLatency;
2130 let NumMicroOps = 6;
2132 def : InstRW<[ADLPWriteResGroup239], (instrs STI)>;
2134 def ADLPWriteResGroup240 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort04_09, ADLPPort07_08]> {
2135 let ReleaseAtCycles = [2, 1, 1];
2137 let NumMicroOps = 4;
2139 def : InstRW<[ADLPWriteResGroup240], (instrs STOSB)>;
2141 def ADLPWriteResGroup241 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort04_09, ADLPPort07_08]> {
2142 let ReleaseAtCycles = [2, 1, 1];
2144 let NumMicroOps = 4;
2146 def : InstRW<[ADLPWriteResGroup241], (instregex "^STOS(L|Q|W)$")>;
2148 def ADLPWriteResGroup242 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort01]> {
2150 let NumMicroOps = 2;
2152 def : InstRW<[ADLPWriteResGroup242], (instregex "^STR(32|64)r$")>;
2154 def ADLPWriteResGroup243 : SchedWriteRes<[ADLPPort00]> {
2157 def : InstRW<[ADLPWriteResGroup243], (instregex "^(TST|XAM)_F$")>;
2158 def : InstRW<[ADLPWriteResGroup243], (instrs UCOM_FPPr)>;
2160 def ADLPWriteResGroup244 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort02_03_10]> {
2161 let ReleaseAtCycles = [3, 1];
2163 let NumMicroOps = 4;
2165 def : InstRW<[ADLPWriteResGroup244, ReadAfterVecXLd, ReadAfterVecXLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^VBLENDVP(D|S)rmr$")>;
2166 def : InstRW<[ADLPWriteResGroup244, ReadAfterVecXLd, ReadAfterVecXLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instrs VPBLENDVBrmr)>;
2168 def ADLPWriteResGroup245 : SchedWriteRes<[ADLPPort00_01_05]> {
2169 let ReleaseAtCycles = [3];
2171 let NumMicroOps = 3;
2173 def : InstRW<[ADLPWriteResGroup245], (instregex "^VBLENDVP(D|S)rrr$")>;
2174 def : InstRW<[ADLPWriteResGroup245], (instrs VPBLENDVBrrr)>;
2176 def ADLPWriteResGroup246 : SchedWriteRes<[ADLPPort00, ADLPPort01, ADLPPort02_03_10]> {
2177 let ReleaseAtCycles = [6, 7, 18];
2179 let NumMicroOps = 31;
2181 def : InstRW<[ADLPWriteResGroup246], (instrs VERRm)>;
2183 def ADLPWriteResGroup247 : SchedWriteRes<[ADLPPort00, ADLPPort01, ADLPPort02_03_10]> {
2184 let ReleaseAtCycles = [6, 7, 17];
2186 let NumMicroOps = 30;
2188 def : InstRW<[ADLPWriteResGroup247], (instrs VERRr)>;
2190 def ADLPWriteResGroup248 : SchedWriteRes<[ADLPPort00, ADLPPort01, ADLPPort02_03_10]> {
2191 let ReleaseAtCycles = [5, 8, 21];
2193 let NumMicroOps = 34;
2195 def : InstRW<[ADLPWriteResGroup248], (instrs VERWm)>;
2197 def ADLPWriteResGroup249 : SchedWriteRes<[ADLPPort00, ADLPPort01, ADLPPort02_03_10]> {
2198 let ReleaseAtCycles = [5, 8, 20];
2200 let NumMicroOps = 33;
2202 def : InstRW<[ADLPWriteResGroup249], (instrs VERWr)>;
2204 def ADLPWriteResGroup250 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort01_05, ADLPPort02_03_10]> {
2205 let ReleaseAtCycles = [1, 1, 2, 4];
2207 let NumMicroOps = 8;
2209 def : InstRW<[ADLPWriteResGroup250, WriteVecMaskedGatherWriteback], (instregex "^VGATHER(D|Q)PDYrm$",
2210 "^VPGATHER(D|Q)QYrm$")>;
2211 def : InstRW<[ADLPWriteResGroup250, WriteVecMaskedGatherWriteback], (instrs VGATHERQPSYrm,
2214 def ADLPWriteResGroup251 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort01_05, ADLPPort02_03_10]> {
2215 let ReleaseAtCycles = [1, 1, 1, 2];
2217 let NumMicroOps = 5;
2219 def : InstRW<[ADLPWriteResGroup251, WriteVecMaskedGatherWriteback], (instregex "^VGATHER(D|Q)PDrm$",
2220 "^VPGATHER(D|Q)Qrm$")>;
2221 def : InstRW<[ADLPWriteResGroup251, WriteVecMaskedGatherWriteback], (instrs VGATHERQPSrm,
2224 def ADLPWriteResGroup252 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort01_05, ADLPPort02_03_10]> {
2225 let ReleaseAtCycles = [1, 1, 2, 8];
2227 let NumMicroOps = 12;
2229 def : InstRW<[ADLPWriteResGroup252, WriteVecMaskedGatherWriteback], (instrs VGATHERDPSYrm,
2232 def ADLPWriteResGroup253 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort01_05, ADLPPort02_03_10]> {
2233 let ReleaseAtCycles = [1, 1, 2, 4];
2235 let NumMicroOps = 8;
2237 def : InstRW<[ADLPWriteResGroup253, WriteVecMaskedGatherWriteback], (instrs VGATHERDPSrm,
2240 def ADLPWriteResGroup254 : SchedWriteRes<[ADLPPort01_05, ADLPPort05]> {
2241 let ReleaseAtCycles = [1, 2];
2243 let NumMicroOps = 3;
2245 def : InstRW<[ADLPWriteResGroup254], (instregex "^VH(ADD|SUB)P(D|S)rr$")>;
2247 def ADLPWriteResGroup255 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort02_03_10]> {
2249 let NumMicroOps = 2;
2251 def : InstRW<[ADLPWriteResGroup255, ReadAfterVecYLd], (instregex "^VINSERT(F|I)128rmi$",
2252 "^VP(ADD|SUB)(B|D|Q|W)Yrm$")>;
2254 def ADLPWriteResGroup256 : SchedWriteRes<[ADLPPort00, ADLPPort00_06, ADLPPort02_03_10]> {
2256 let NumMicroOps = 3;
2258 def : InstRW<[ADLPWriteResGroup256], (instrs VLDMXCSR)>;
2260 def ADLPWriteResGroup257 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03, ADLPPort02_03_07, ADLPPort04, ADLPPort05, ADLPPort06]> {
2261 let ReleaseAtCycles = [8, 1, 1, 1, 1, 1, 2, 3];
2263 let NumMicroOps = 18;
2265 def : InstRW<[ADLPWriteResGroup257], (instrs VMCLEARm)>;
2267 def ADLPWriteResGroup258 : SchedWriteRes<[ADLPPort00]> {
2270 def : InstRW<[ADLPWriteResGroup258], (instregex "^VMOVMSKP(D|S)Yrr$")>;
2272 def ADLPWriteResGroup259 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
2274 let NumMicroOps = 2;
2276 def : InstRW<[ADLPWriteResGroup259], (instrs VMOVNTDQmr)>;
2278 def ADLPWriteResGroup260 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
2280 let NumMicroOps = 2;
2282 def : InstRW<[ADLPWriteResGroup260], (instrs VMOVNTPDmr)>;
2284 def ADLPWriteResGroup261 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
2286 let NumMicroOps = 2;
2288 def : InstRW<[ADLPWriteResGroup261], (instrs VMOVNTPSYmr)>;
2290 def ADLPWriteResGroup262 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
2292 let NumMicroOps = 2;
2294 def : InstRW<[ADLPWriteResGroup262], (instrs VMOVNTPSmr)>;
2296 def ADLPWriteResGroup263 : SchedWriteRes<[ADLPPort02_03_10, ADLPPort05]> {
2298 let NumMicroOps = 2;
2300 def : InstRW<[ADLPWriteResGroup263, ReadAfterVecYLd], (instregex "^VPACK(S|U)S(DW|WB)Yrm$")>;
2301 def : InstRW<[ADLPWriteResGroup263, ReadAfterVecYLd], (instrs VPCMPGTQYrm)>;
2302 def : InstRW<[ADLPWriteResGroup263, ReadAfterVecXLd], (instrs VPCLMULQDQYrmi)>;
2304 def ADLPWriteResGroup264 : SchedWriteRes<[ADLPPort01_05, ADLPPort02_03_10]> {
2306 let NumMicroOps = 2;
2308 def : InstRW<[ADLPWriteResGroup264, ReadAfterVecYLd], (instregex "^VSHUFP(D|S)Yrmi$")>;
2309 def : InstRW<[ADLPWriteResGroup264, ReadAfterVecYLd], (instrs VPBLENDWYrmi)>;
2311 def ADLPWriteResGroup266 : SchedWriteRes<[ADLPPort00_01, ADLPPort01_05, ADLPPort02_03_10]> {
2312 let ReleaseAtCycles = [1, 2, 1];
2314 let NumMicroOps = 4;
2316 def : InstRW<[ADLPWriteResGroup266, ReadAfterVecYLd], (instregex "^VPH(ADD|SUB)SWYrm$")>;
2318 def ADLPWriteResGroup267 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11]> {
2319 let ReleaseAtCycles = [1, 2, 3, 3, 1];
2321 let NumMicroOps = 10;
2323 def : InstRW<[ADLPWriteResGroup267], (instrs VZEROALL)>;
2325 def ADLPWriteResGroup268 : SchedWriteRes<[ADLPPort00_01_05_06]> {
2326 let ReleaseAtCycles = [2];
2328 let NumMicroOps = 2;
2330 def : InstRW<[ADLPWriteResGroup268], (instrs WAIT)>;
2332 def ADLPWriteResGroup269 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
2333 let ReleaseAtCycles = [8, 6, 19, 63, 21, 15, 1, 10, 1];
2334 let Latency = AlderlakePModel.MaxLatency;
2335 let NumMicroOps = 144;
2337 def : InstRW<[ADLPWriteResGroup269], (instrs WRMSR)>;
2339 def ADLPWriteResGroup270 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06, ADLPPort01, ADLPPort05]> {
2340 let ReleaseAtCycles = [2, 1, 4, 1];
2341 let Latency = AlderlakePModel.MaxLatency;
2342 let NumMicroOps = 8;
2344 def : InstRW<[ADLPWriteResGroup270], (instrs WRPKRUr)>;
2346 def ADLPWriteResGroup271 : SchedWriteRes<[ADLPPort00_01_05_06_11]> {
2347 let ReleaseAtCycles = [2];
2349 let NumMicroOps = 2;
2351 def : InstRW<[ADLPWriteResGroup271, WriteRMW], (instregex "^XADD(16|32|64)rm$")>;
2353 def ADLPWriteResGroup272 : SchedWriteRes<[ADLPPort00_01_05_06_11]> {
2354 let ReleaseAtCycles = [2];
2356 let NumMicroOps = 2;
2358 def : InstRW<[ADLPWriteResGroup272, WriteRMW], (instrs XADD8rm)>;
2360 def ADLPWriteResGroup273 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06]> {
2361 let ReleaseAtCycles = [4, 1];
2363 let NumMicroOps = 5;
2365 def : InstRW<[ADLPWriteResGroup273, WriteRMW], (instregex "^XCHG(16|32)rm$")>;
2367 def ADLPWriteResGroup274 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06]> {
2368 let ReleaseAtCycles = [5, 1];
2370 let NumMicroOps = 6;
2372 def : InstRW<[ADLPWriteResGroup274, WriteRMW], (instrs XCHG64rm)>;
2374 def ADLPWriteResGroup275 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_06]> {
2375 let ReleaseAtCycles = [4, 1];
2377 let NumMicroOps = 5;
2379 def : InstRW<[ADLPWriteResGroup275, WriteRMW], (instrs XCHG8rm)>;
2381 def ADLPWriteResGroup276 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06, ADLPPort00_05, ADLPPort01, ADLPPort05, ADLPPort06]> {
2382 let ReleaseAtCycles = [2, 4, 2, 1, 2, 4];
2384 let NumMicroOps = 15;
2386 def : InstRW<[ADLPWriteResGroup276], (instrs XCH_F)>;
2388 def ADLPWriteResGroup277 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01]> {
2389 let ReleaseAtCycles = [7, 3, 8, 5];
2391 let NumMicroOps = 23;
2393 def : InstRW<[ADLPWriteResGroup277], (instrs XGETBV)>;
2395 def ADLPWriteResGroup278 : SchedWriteRes<[ADLPPort00_01_05_06_11, ADLPPort02_03_10]> {
2396 let ReleaseAtCycles = [2, 1];
2398 let NumMicroOps = 3;
2400 def : InstRW<[ADLPWriteResGroup278], (instrs XLAT)>;
2402 def ADLPWriteResGroup279 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort01, ADLPPort02_03, ADLPPort06]> {
2403 let ReleaseAtCycles = [21, 1, 1, 8];
2405 let NumMicroOps = 31;
2407 def : InstRW<[ADLPWriteResGroup279], (instregex "^XRSTOR((S|64)?)$")>;
2408 def : InstRW<[ADLPWriteResGroup279], (instrs XRSTORS64)>;
2410 def ADLPWriteResGroup280 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
2411 let ReleaseAtCycles = [14, 25, 44, 21, 21, 4, 1, 9, 1];
2413 let NumMicroOps = 140;
2415 def : InstRW<[ADLPWriteResGroup280], (instrs XSAVE)>;
2417 def ADLPWriteResGroup281 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
2418 let ReleaseAtCycles = [14, 25, 44, 21, 21, 4, 1, 9, 1];
2420 let NumMicroOps = 140;
2422 def : InstRW<[ADLPWriteResGroup281], (instrs XSAVE64)>;
2424 def ADLPWriteResGroup282 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
2425 let ReleaseAtCycles = [1, 19, 36, 52, 23, 4, 2, 12, 2];
2427 let NumMicroOps = 151;
2429 def : InstRW<[ADLPWriteResGroup282], (instrs XSAVEC)>;
2431 def ADLPWriteResGroup283 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
2432 let ReleaseAtCycles = [1, 19, 36, 53, 23, 4, 2, 12, 2];
2434 let NumMicroOps = 152;
2436 def : InstRW<[ADLPWriteResGroup283], (instrs XSAVEC64)>;
2438 def ADLPWriteResGroup284 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
2439 let ReleaseAtCycles = [25, 35, 52, 27, 4, 1, 10, 1];
2441 let NumMicroOps = 155;
2443 def : InstRW<[ADLPWriteResGroup284], (instrs XSAVEOPT)>;
2445 def ADLPWriteResGroup285 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
2446 let ReleaseAtCycles = [25, 35, 53, 27, 4, 1, 10, 1];
2448 let NumMicroOps = 156;
2450 def : InstRW<[ADLPWriteResGroup285], (instrs XSAVEOPT64)>;
2452 def ADLPWriteResGroup286 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
2453 let ReleaseAtCycles = [23, 32, 53, 29, 30, 4, 2, 9, 2];
2455 let NumMicroOps = 184;
2457 def : InstRW<[ADLPWriteResGroup286], (instrs XSAVES)>;
2459 def ADLPWriteResGroup287 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
2460 let ReleaseAtCycles = [23, 33, 53, 29, 32, 4, 2, 8, 2];
2462 let NumMicroOps = 186;
2464 def : InstRW<[ADLPWriteResGroup287], (instrs XSAVES64)>;
2466 def ADLPWriteResGroup288 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort00_01_05_06_11, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05_11, ADLPPort05]> {
2467 let ReleaseAtCycles = [4, 23, 2, 14, 8, 1, 2];
2469 let NumMicroOps = 54;
2471 def : InstRW<[ADLPWriteResGroup288], (instrs XSETBV)>;