1 //-- SystemZScheduleZ13.td - SystemZ Scheduling Definitions ----*- tblgen -*-=//
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 Z13 to support instruction
10 // scheduling and other instruction cost heuristics.
12 // Pseudos expanded right after isel do not need to be modelled here.
14 //===----------------------------------------------------------------------===//
16 def Z13Model : SchedMachineModel {
18 let UnsupportedFeatures = Arch11UnsupportedFeatures.List;
20 let IssueWidth = 6; // Number of instructions decoded per cycle.
21 let MicroOpBufferSize = 60; // Issue queues
22 let LoadLatency = 1; // Optimistic load latency.
24 let PostRAScheduler = 1;
26 // Extra cycles for a mispredicted branch.
27 let MispredictPenalty = 20;
30 let SchedModel = Z13Model in {
31 // These definitions need the SchedModel value. They could be put in a
32 // subtarget common include file, but it seems the include system in Tablegen
33 // currently (2016) rejects multiple includes of same file.
35 // Decoder grouping rules
36 let NumMicroOps = 1 in {
37 def : WriteRes<NormalGr, []>;
38 def : WriteRes<BeginGroup, []> { let BeginGroup = 1; }
39 def : WriteRes<EndGroup, []> { let EndGroup = 1; }
41 def : WriteRes<Cracked, []> {
45 def : WriteRes<GroupAlone, []> {
50 def : WriteRes<GroupAlone2, []> {
55 def : WriteRes<GroupAlone3, []> {
61 // Incoming latency removed from the register operand which is used together
62 // with a memory operand by the instruction.
63 def : ReadAdvance<RegReadAdv, 4>;
65 // LoadLatency (above) is not used for instructions in this file. This is
66 // instead the role of LSULatency, which is the latency value added to the
67 // result of loads and instructions with folded memory operands.
68 def : WriteRes<LSULatency, []> { let Latency = 4; let NumMicroOps = 0; }
70 let NumMicroOps = 0 in {
72 def : WriteRes<!cast<SchedWrite>("WLat"#L), []> { let Latency = L; }
76 def Z13_FXaUnit : ProcResource<2>;
77 def Z13_FXbUnit : ProcResource<2>;
78 def Z13_LSUnit : ProcResource<2>;
79 def Z13_VecUnit : ProcResource<2>;
80 def Z13_VecFPdUnit : ProcResource<2> { let BufferSize = 1; /* blocking */ }
81 def Z13_VBUnit : ProcResource<2>;
82 def Z13_MCD : ProcResource<1>;
84 // Subtarget specific definitions of scheduling resources.
85 let NumMicroOps = 0 in {
86 def : WriteRes<FXa, [Z13_FXaUnit]>;
87 def : WriteRes<FXb, [Z13_FXbUnit]>;
88 def : WriteRes<LSU, [Z13_LSUnit]>;
89 def : WriteRes<VecBF, [Z13_VecUnit]>;
90 def : WriteRes<VecDF, [Z13_VecUnit]>;
91 def : WriteRes<VecDFX, [Z13_VecUnit]>;
92 def : WriteRes<VecMul, [Z13_VecUnit]>;
93 def : WriteRes<VecStr, [Z13_VecUnit]>;
94 def : WriteRes<VecXsPm, [Z13_VecUnit]>;
95 foreach Num = 2-5 in { let ResourceCycles = [Num] in {
96 def : WriteRes<!cast<SchedWrite>("FXa"#Num), [Z13_FXaUnit]>;
97 def : WriteRes<!cast<SchedWrite>("FXb"#Num), [Z13_FXbUnit]>;
98 def : WriteRes<!cast<SchedWrite>("LSU"#Num), [Z13_LSUnit]>;
99 def : WriteRes<!cast<SchedWrite>("VecBF"#Num), [Z13_VecUnit]>;
100 def : WriteRes<!cast<SchedWrite>("VecDF"#Num), [Z13_VecUnit]>;
101 def : WriteRes<!cast<SchedWrite>("VecDFX"#Num), [Z13_VecUnit]>;
102 def : WriteRes<!cast<SchedWrite>("VecMul"#Num), [Z13_VecUnit]>;
103 def : WriteRes<!cast<SchedWrite>("VecStr"#Num), [Z13_VecUnit]>;
104 def : WriteRes<!cast<SchedWrite>("VecXsPm"#Num), [Z13_VecUnit]>;
107 def : WriteRes<VecFPd, [Z13_VecFPdUnit]> { let ResourceCycles = [30]; }
109 def : WriteRes<VBU, [Z13_VBUnit]>; // Virtual Branching Unit
112 def : WriteRes<MCD, [Z13_MCD]> { let NumMicroOps = 3;
116 // -------------------------- INSTRUCTIONS ---------------------------------- //
118 // InstRW constructs have been used in order to preserve the
119 // readability of the InstrInfo files.
121 // For each instruction, as matched by a regexp, provide a list of
122 // resources that it needs. These will be combined into a SchedClass.
124 //===----------------------------------------------------------------------===//
126 //===----------------------------------------------------------------------===//
128 // Pseudo -> LA / LAY
129 def : InstRW<[WLat1, FXa, NormalGr], (instregex "ADJDYNALLOC$")>;
131 //===----------------------------------------------------------------------===//
132 // Branch instructions
133 //===----------------------------------------------------------------------===//
136 def : InstRW<[WLat1, VBU, NormalGr], (instregex "(Call)?BRC(L)?(Asm.*)?$")>;
137 def : InstRW<[WLat1, VBU, NormalGr], (instregex "(Call)?J(G)?(Asm.*)?$")>;
138 def : InstRW<[WLat1, FXb, NormalGr], (instregex "(Call)?BC(R)?(Asm.*)?$")>;
139 def : InstRW<[WLat1, FXb, NormalGr], (instregex "(Call)?B(R)?(Asm.*)?$")>;
140 def : InstRW<[WLat1, FXa, EndGroup], (instregex "BRCT(G)?$")>;
141 def : InstRW<[WLat1, FXa, FXb, GroupAlone], (instregex "BRCTH$")>;
142 def : InstRW<[WLat1, FXa, FXb, GroupAlone], (instregex "BCT(G)?(R)?$")>;
143 def : InstRW<[WLat1, FXa2, FXb2, GroupAlone2],
144 (instregex "B(R)?X(H|L).*$")>;
146 // Compare and branch
147 def : InstRW<[WLat1, FXb, NormalGr], (instregex "C(L)?(G)?(I|R)J(Asm.*)?$")>;
148 def : InstRW<[WLat1, FXb2, GroupAlone],
149 (instregex "C(L)?(G)?(I|R)B(Call|Return|Asm.*)?$")>;
151 //===----------------------------------------------------------------------===//
153 //===----------------------------------------------------------------------===//
156 def : InstRW<[WLat1, VBU, NormalGr], (instregex "(Cond)?Trap$")>;
159 def : InstRW<[WLat1, FXb, NormalGr], (instregex "C(G)?(I|R)T(Asm.*)?$")>;
160 def : InstRW<[WLat1, FXb, NormalGr], (instregex "CL(G)?RT(Asm.*)?$")>;
161 def : InstRW<[WLat1, FXb, NormalGr], (instregex "CL(F|G)IT(Asm.*)?$")>;
162 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "CL(G)?T(Asm.*)?$")>;
164 //===----------------------------------------------------------------------===//
165 // Call and return instructions
166 //===----------------------------------------------------------------------===//
169 def : InstRW<[WLat1, VBU, FXa2, GroupAlone], (instregex "(Call)?BRAS$")>;
170 def : InstRW<[WLat1, FXa2, FXb, GroupAlone], (instregex "(Call)?BRASL$")>;
171 def : InstRW<[WLat1, FXa2, FXb, GroupAlone], (instregex "(Call)?BAS(R)?$")>;
172 def : InstRW<[WLat1, FXa2, FXb, GroupAlone], (instregex "TLS_(G|L)DCALL$")>;
175 def : InstRW<[WLat1, FXb, EndGroup], (instregex "Return$")>;
176 def : InstRW<[WLat1, FXb, NormalGr], (instregex "CondReturn$")>;
178 //===----------------------------------------------------------------------===//
180 //===----------------------------------------------------------------------===//
183 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "MV(G|H)?HI$")>;
184 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "MVI(Y)?$")>;
187 def : InstRW<[WLat1, FXb, LSU3, GroupAlone], (instregex "MVC$")>;
188 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "MVCL(E|U)?$")>;
190 // Pseudo -> reg move
191 def : InstRW<[WLat1, FXa, NormalGr], (instregex "COPY(_TO_REGCLASS)?$")>;
192 def : InstRW<[WLat1, FXa, NormalGr], (instregex "EXTRACT_SUBREG$")>;
193 def : InstRW<[WLat1, FXa, NormalGr], (instregex "INSERT_SUBREG$")>;
194 def : InstRW<[WLat1, FXa, NormalGr], (instregex "REG_SEQUENCE$")>;
197 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "L(Y|FH|RL|Mux)?$")>;
198 def : InstRW<[LSULatency, LSULatency, LSU, NormalGr], (instregex "LCBB$")>;
199 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "LG(RL)?$")>;
200 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "L128$")>;
202 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LLIH(F|H|L)$")>;
203 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LLIL(F|H|L)$")>;
205 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LG(F|H)I$")>;
206 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LHI(Mux)?$")>;
207 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LR(Mux)?$")>;
209 // Load and zero rightmost byte
210 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "LZR(F|G)$")>;
213 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "L(FH|G)?AT$")>;
216 def : InstRW<[WLat1LSU, WLat1LSU, LSU, FXa, NormalGr], (instregex "LT(G)?$")>;
217 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LT(G)?R$")>;
220 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "STG(RL)?$")>;
221 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "ST128$")>;
222 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "ST(Y|FH|RL|Mux)?$")>;
225 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "MVST$")>;
227 //===----------------------------------------------------------------------===//
228 // Conditional move instructions
229 //===----------------------------------------------------------------------===//
231 def : InstRW<[WLat2, FXa, NormalGr], (instregex "LOCRMux$")>;
232 def : InstRW<[WLat2, FXa, NormalGr], (instregex "LOC(G|FH)?R(Asm.*)?$")>;
233 def : InstRW<[WLat2, FXa, NormalGr], (instregex "LOC(G|H)?HI(Mux|(Asm.*))?$")>;
234 def : InstRW<[WLat2LSU, RegReadAdv, FXa, LSU, NormalGr],
235 (instregex "LOC(G|FH|Mux)?(Asm.*)?$")>;
236 def : InstRW<[WLat1, FXb, LSU, NormalGr],
237 (instregex "STOC(G|FH|Mux)?(Asm.*)?$")>;
239 //===----------------------------------------------------------------------===//
241 //===----------------------------------------------------------------------===//
243 def : InstRW<[WLat1, FXa, NormalGr], (instregex "L(B|H|G)R$")>;
244 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LG(B|H|F)R$")>;
246 def : InstRW<[WLat1LSU, WLat1LSU, FXa, LSU, NormalGr], (instregex "LTGF$")>;
247 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LTGFR$")>;
249 def : InstRW<[WLat1LSU, FXa, LSU, NormalGr], (instregex "LB(H|Mux)?$")>;
250 def : InstRW<[WLat1LSU, FXa, LSU, NormalGr], (instregex "LH(Y)?$")>;
251 def : InstRW<[WLat1LSU, FXa, LSU, NormalGr], (instregex "LH(H|Mux|RL)$")>;
252 def : InstRW<[WLat1LSU, FXa, LSU, NormalGr], (instregex "LG(B|H|F)$")>;
253 def : InstRW<[WLat1LSU, FXa, LSU, NormalGr], (instregex "LG(H|F)RL$")>;
255 //===----------------------------------------------------------------------===//
257 //===----------------------------------------------------------------------===//
259 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LLCR(Mux)?$")>;
260 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LLHR(Mux)?$")>;
261 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LLG(C|H|F|T)R$")>;
262 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "LLC(Mux)?$")>;
263 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "LLH(Mux)?$")>;
264 def : InstRW<[WLat1LSU, FXa, LSU, NormalGr], (instregex "LL(C|H)H$")>;
265 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "LLHRL$")>;
266 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "LLG(C|H|F|T|HRL|FRL)$")>;
268 // Load and zero rightmost byte
269 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "LLZRGF$")>;
272 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "LLG(F|T)?AT$")>;
274 //===----------------------------------------------------------------------===//
276 //===----------------------------------------------------------------------===//
278 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "STC(H|Y|Mux)?$")>;
279 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "STH(H|Y|RL|Mux)?$")>;
280 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "STCM(H|Y)?$")>;
282 //===----------------------------------------------------------------------===//
283 // Multi-register moves
284 //===----------------------------------------------------------------------===//
286 // Load multiple (estimated average of 5 ops)
287 def : InstRW<[WLat10, WLat10, LSU5, GroupAlone], (instregex "LM(H|Y|G)?$")>;
289 // Load multiple disjoint
290 def : InstRW<[WLat30, WLat30, MCD], (instregex "LMD$")>;
293 def : InstRW<[WLat1, LSU2, FXb3, GroupAlone], (instregex "STM(G|H|Y)?$")>;
295 //===----------------------------------------------------------------------===//
297 //===----------------------------------------------------------------------===//
299 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LRV(G)?R$")>;
300 def : InstRW<[WLat1LSU, FXa, LSU, NormalGr], (instregex "LRV(G|H)?$")>;
301 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "STRV(G|H)?$")>;
302 def : InstRW<[WLat30, MCD], (instregex "MVCIN$")>;
304 //===----------------------------------------------------------------------===//
305 // Load address instructions
306 //===----------------------------------------------------------------------===//
308 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LA(Y|RL)?$")>;
310 // Load the Global Offset Table address ( -> larl )
311 def : InstRW<[WLat1, FXa, NormalGr], (instregex "GOT$")>;
313 //===----------------------------------------------------------------------===//
314 // Absolute and Negation
315 //===----------------------------------------------------------------------===//
317 def : InstRW<[WLat2, WLat2, FXa, NormalGr], (instregex "LP(G)?R$")>;
318 def : InstRW<[WLat3, WLat3, FXa2, Cracked], (instregex "L(N|P)GFR$")>;
319 def : InstRW<[WLat2, WLat2, FXa, NormalGr], (instregex "LN(R|GR)$")>;
320 def : InstRW<[WLat1, FXa, NormalGr], (instregex "LC(R|GR)$")>;
321 def : InstRW<[WLat2, WLat2, FXa2, Cracked], (instregex "LCGFR$")>;
323 //===----------------------------------------------------------------------===//
325 //===----------------------------------------------------------------------===//
327 def : InstRW<[WLat1LSU, RegReadAdv, FXa, LSU, NormalGr], (instregex "IC(Y)?$")>;
328 def : InstRW<[WLat1LSU, RegReadAdv, FXa, LSU, NormalGr],
329 (instregex "IC32(Y)?$")>;
330 def : InstRW<[WLat1LSU, RegReadAdv, WLat1LSU, FXa, LSU, NormalGr],
331 (instregex "ICM(H|Y)?$")>;
332 def : InstRW<[WLat1, FXa, NormalGr], (instregex "II(F|H|L)Mux$")>;
333 def : InstRW<[WLat1, FXa, NormalGr], (instregex "IIHF(64)?$")>;
334 def : InstRW<[WLat1, FXa, NormalGr], (instregex "IIHH(64)?$")>;
335 def : InstRW<[WLat1, FXa, NormalGr], (instregex "IIHL(64)?$")>;
336 def : InstRW<[WLat1, FXa, NormalGr], (instregex "IILF(64)?$")>;
337 def : InstRW<[WLat1, FXa, NormalGr], (instregex "IILH(64)?$")>;
338 def : InstRW<[WLat1, FXa, NormalGr], (instregex "IILL(64)?$")>;
340 //===----------------------------------------------------------------------===//
342 //===----------------------------------------------------------------------===//
344 def : InstRW<[WLat1LSU, WLat1LSU, RegReadAdv, FXa, LSU, NormalGr],
345 (instregex "A(Y)?$")>;
346 def : InstRW<[WLat2LSU, WLat2LSU, RegReadAdv, FXa, LSU, NormalGr],
347 (instregex "AH(Y)?$")>;
348 def : InstRW<[WLat1, FXa, NormalGr], (instregex "AIH$")>;
349 def : InstRW<[WLat1, FXa, NormalGr], (instregex "AFI(Mux)?$")>;
350 def : InstRW<[WLat1LSU, WLat1LSU, RegReadAdv, FXa, LSU, NormalGr],
352 def : InstRW<[WLat1, FXa, NormalGr], (instregex "AGFI$")>;
353 def : InstRW<[WLat1, FXa, NormalGr], (instregex "AGHI(K)?$")>;
354 def : InstRW<[WLat1, FXa, NormalGr], (instregex "AGR(K)?$")>;
355 def : InstRW<[WLat1, FXa, NormalGr], (instregex "AHI(K)?$")>;
356 def : InstRW<[WLat1, FXa, NormalGr], (instregex "AHIMux(K)?$")>;
357 def : InstRW<[WLat1LSU, WLat1LSU, RegReadAdv, FXa, LSU, NormalGr],
358 (instregex "AL(Y)?$")>;
359 def : InstRW<[WLat1, FXa, NormalGr], (instregex "AL(FI|HSIK)$")>;
360 def : InstRW<[WLat1LSU, WLat1LSU, RegReadAdv, FXa, LSU, NormalGr],
361 (instregex "ALG(F)?$")>;
362 def : InstRW<[WLat1, FXa, NormalGr], (instregex "ALGHSIK$")>;
363 def : InstRW<[WLat1, FXa, NormalGr], (instregex "ALGF(I|R)$")>;
364 def : InstRW<[WLat1, FXa, NormalGr], (instregex "ALGR(K)?$")>;
365 def : InstRW<[WLat1, FXa, NormalGr], (instregex "ALR(K)?$")>;
366 def : InstRW<[WLat1, FXa, NormalGr], (instregex "AR(K)?$")>;
367 def : InstRW<[WLat1, FXa, NormalGr], (instregex "A(L)?HHHR$")>;
368 def : InstRW<[WLat2, WLat2, FXa, NormalGr], (instregex "A(L)?HHLR$")>;
369 def : InstRW<[WLat1, FXa, NormalGr], (instregex "ALSIH(N)?$")>;
370 def : InstRW<[WLat2LSU, FXb, LSU, NormalGr], (instregex "A(L)?(G)?SI$")>;
372 // Logical addition with carry
373 def : InstRW<[WLat2LSU, WLat2LSU, RegReadAdv, FXa, LSU, GroupAlone],
374 (instregex "ALC(G)?$")>;
375 def : InstRW<[WLat2, WLat2, FXa, GroupAlone], (instregex "ALC(G)?R$")>;
377 // Add with sign extension (32 -> 64)
378 def : InstRW<[WLat2LSU, WLat2LSU, RegReadAdv, FXa, LSU, NormalGr],
380 def : InstRW<[WLat2, WLat2, FXa, NormalGr], (instregex "AGFR$")>;
382 //===----------------------------------------------------------------------===//
384 //===----------------------------------------------------------------------===//
386 def : InstRW<[WLat1LSU, WLat1LSU, RegReadAdv, FXa, LSU, NormalGr],
387 (instregex "S(G|Y)?$")>;
388 def : InstRW<[WLat2LSU, WLat2LSU, RegReadAdv, FXa, LSU, NormalGr],
389 (instregex "SH(Y)?$")>;
390 def : InstRW<[WLat1, FXa, NormalGr], (instregex "SGR(K)?$")>;
391 def : InstRW<[WLat1, FXa, NormalGr], (instregex "SLFI$")>;
392 def : InstRW<[WLat1LSU, WLat1LSU, RegReadAdv, FXa, LSU, NormalGr],
393 (instregex "SL(G|GF|Y)?$")>;
394 def : InstRW<[WLat1, FXa, NormalGr], (instregex "SLGF(I|R)$")>;
395 def : InstRW<[WLat1, FXa, NormalGr], (instregex "SLGR(K)?$")>;
396 def : InstRW<[WLat1, FXa, NormalGr], (instregex "SLR(K)?$")>;
397 def : InstRW<[WLat1, FXa, NormalGr], (instregex "SR(K)?$")>;
398 def : InstRW<[WLat1, FXa, NormalGr], (instregex "S(L)?HHHR$")>;
399 def : InstRW<[WLat2, WLat2, FXa, NormalGr], (instregex "S(L)?HHLR$")>;
401 // Subtraction with borrow
402 def : InstRW<[WLat2LSU, WLat2LSU, RegReadAdv, FXa, LSU, GroupAlone],
403 (instregex "SLB(G)?$")>;
404 def : InstRW<[WLat2, WLat2, FXa, GroupAlone], (instregex "SLB(G)?R$")>;
406 // Subtraction with sign extension (32 -> 64)
407 def : InstRW<[WLat2LSU, WLat2LSU, RegReadAdv, FXa, LSU, NormalGr],
409 def : InstRW<[WLat2, WLat2, FXa, NormalGr], (instregex "SGFR$")>;
411 //===----------------------------------------------------------------------===//
413 //===----------------------------------------------------------------------===//
415 def : InstRW<[WLat1LSU, WLat1LSU, RegReadAdv, FXa, LSU, NormalGr],
416 (instregex "N(G|Y)?$")>;
417 def : InstRW<[WLat1, FXa, NormalGr], (instregex "NGR(K)?$")>;
418 def : InstRW<[WLat1, FXa, NormalGr], (instregex "NI(FMux|HMux|LMux)$")>;
419 def : InstRW<[WLat2LSU, FXb, LSU, NormalGr], (instregex "NI(Y)?$")>;
420 def : InstRW<[WLat1, FXa, NormalGr], (instregex "NIHF(64)?$")>;
421 def : InstRW<[WLat1, FXa, NormalGr], (instregex "NIHH(64)?$")>;
422 def : InstRW<[WLat1, FXa, NormalGr], (instregex "NIHL(64)?$")>;
423 def : InstRW<[WLat1, FXa, NormalGr], (instregex "NILF(64)?$")>;
424 def : InstRW<[WLat1, FXa, NormalGr], (instregex "NILH(64)?$")>;
425 def : InstRW<[WLat1, FXa, NormalGr], (instregex "NILL(64)?$")>;
426 def : InstRW<[WLat1, FXa, NormalGr], (instregex "NR(K)?$")>;
427 def : InstRW<[WLat3LSU, LSU2, FXb, Cracked], (instregex "NC$")>;
429 //===----------------------------------------------------------------------===//
431 //===----------------------------------------------------------------------===//
433 def : InstRW<[WLat1LSU, WLat1LSU, RegReadAdv, FXa, LSU, NormalGr],
434 (instregex "O(G|Y)?$")>;
435 def : InstRW<[WLat1, FXa, NormalGr], (instregex "OGR(K)?$")>;
436 def : InstRW<[WLat2LSU, FXb, LSU, NormalGr], (instregex "OI(Y)?$")>;
437 def : InstRW<[WLat1, FXa, NormalGr], (instregex "OI(FMux|HMux|LMux)$")>;
438 def : InstRW<[WLat1, FXa, NormalGr], (instregex "OIHF(64)?$")>;
439 def : InstRW<[WLat1, FXa, NormalGr], (instregex "OIHH(64)?$")>;
440 def : InstRW<[WLat1, FXa, NormalGr], (instregex "OIHL(64)?$")>;
441 def : InstRW<[WLat1, FXa, NormalGr], (instregex "OILF(64)?$")>;
442 def : InstRW<[WLat1, FXa, NormalGr], (instregex "OILH(64)?$")>;
443 def : InstRW<[WLat1, FXa, NormalGr], (instregex "OILL(64)?$")>;
444 def : InstRW<[WLat1, FXa, NormalGr], (instregex "OR(K)?$")>;
445 def : InstRW<[WLat3LSU, LSU2, FXb, Cracked], (instregex "OC$")>;
447 //===----------------------------------------------------------------------===//
449 //===----------------------------------------------------------------------===//
451 def : InstRW<[WLat1LSU, WLat1LSU, RegReadAdv, FXa, LSU, NormalGr],
452 (instregex "X(G|Y)?$")>;
453 def : InstRW<[WLat2LSU, FXb, LSU, NormalGr], (instregex "XI(Y)?$")>;
454 def : InstRW<[WLat1, FXa, NormalGr], (instregex "XIFMux$")>;
455 def : InstRW<[WLat1, FXa, NormalGr], (instregex "XGR(K)?$")>;
456 def : InstRW<[WLat1, FXa, NormalGr], (instregex "XIHF(64)?$")>;
457 def : InstRW<[WLat1, FXa, NormalGr], (instregex "XILF(64)?$")>;
458 def : InstRW<[WLat1, FXa, NormalGr], (instregex "XR(K)?$")>;
459 def : InstRW<[WLat3LSU, LSU2, FXb, Cracked], (instregex "XC$")>;
461 //===----------------------------------------------------------------------===//
463 //===----------------------------------------------------------------------===//
465 def : InstRW<[WLat6LSU, RegReadAdv, FXa, LSU, NormalGr],
466 (instregex "MS(GF|Y)?$")>;
467 def : InstRW<[WLat6, FXa, NormalGr], (instregex "MS(R|FI)$")>;
468 def : InstRW<[WLat8LSU, RegReadAdv, FXa, LSU, NormalGr], (instregex "MSG$")>;
469 def : InstRW<[WLat8, FXa, NormalGr], (instregex "MSGR$")>;
470 def : InstRW<[WLat6, FXa, NormalGr], (instregex "MSGF(I|R)$")>;
471 def : InstRW<[WLat11LSU, RegReadAdv, FXa2, LSU, GroupAlone],
473 def : InstRW<[WLat9, FXa2, GroupAlone], (instregex "MLGR$")>;
474 def : InstRW<[WLat5, FXa, NormalGr], (instregex "MGHI$")>;
475 def : InstRW<[WLat5, FXa, NormalGr], (instregex "MHI$")>;
476 def : InstRW<[WLat5LSU, RegReadAdv, FXa, LSU, NormalGr], (instregex "MH(Y)?$")>;
477 def : InstRW<[WLat7, FXa2, GroupAlone], (instregex "M(L)?R$")>;
478 def : InstRW<[WLat7LSU, RegReadAdv, FXa2, LSU, GroupAlone],
479 (instregex "M(FY|L)?$")>;
481 //===----------------------------------------------------------------------===//
482 // Division and remainder
483 //===----------------------------------------------------------------------===//
485 def : InstRW<[WLat20, FXa4, GroupAlone], (instregex "DR$")>;
486 def : InstRW<[WLat30, RegReadAdv, FXa4, LSU, GroupAlone2], (instregex "D$")>;
487 def : InstRW<[WLat30, FXa2, GroupAlone], (instregex "DSG(F)?R$")>;
488 def : InstRW<[WLat30, RegReadAdv, FXa2, LSU, GroupAlone2],
489 (instregex "DSG(F)?$")>;
490 def : InstRW<[WLat20, FXa4, GroupAlone], (instregex "DLR$")>;
491 def : InstRW<[WLat30, FXa4, GroupAlone], (instregex "DLGR$")>;
492 def : InstRW<[WLat30, RegReadAdv, FXa4, LSU, GroupAlone2], (instregex "DL(G)?$")>;
494 //===----------------------------------------------------------------------===//
496 //===----------------------------------------------------------------------===//
498 def : InstRW<[WLat1, FXa, NormalGr], (instregex "SLL(G|K)?$")>;
499 def : InstRW<[WLat1, FXa, NormalGr], (instregex "SRL(G|K)?$")>;
500 def : InstRW<[WLat1, FXa, NormalGr], (instregex "SRA(G|K)?$")>;
501 def : InstRW<[WLat1, FXa, NormalGr], (instregex "SLA(G|K)?$")>;
502 def : InstRW<[WLat5LSU, WLat5LSU, FXa4, LSU, GroupAlone2],
503 (instregex "S(L|R)D(A|L)$")>;
506 def : InstRW<[WLat2LSU, FXa, LSU, NormalGr], (instregex "RLL(G)?$")>;
509 def : InstRW<[WLat1, FXa, NormalGr], (instregex "RISBG(N|32)?$")>;
510 def : InstRW<[WLat1, FXa, NormalGr], (instregex "RISBH(G|H|L)$")>;
511 def : InstRW<[WLat1, FXa, NormalGr], (instregex "RISBL(G|H|L)$")>;
512 def : InstRW<[WLat1, FXa, NormalGr], (instregex "RISBMux$")>;
515 def : InstRW<[WLat3, WLat3, FXa2, Cracked], (instregex "R(N|O|X)SBG$")>;
517 //===----------------------------------------------------------------------===//
519 //===----------------------------------------------------------------------===//
521 def : InstRW<[WLat1LSU, RegReadAdv, FXb, LSU, NormalGr],
522 (instregex "C(G|Y|Mux)?$")>;
523 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "CRL$")>;
524 def : InstRW<[WLat1, FXb, NormalGr], (instregex "C(F|H)I(Mux)?$")>;
525 def : InstRW<[WLat1, FXb, NormalGr], (instregex "CG(F|H)I$")>;
526 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "CG(HSI|RL)$")>;
527 def : InstRW<[WLat1, FXb, NormalGr], (instregex "C(G)?R$")>;
528 def : InstRW<[WLat1, FXb, NormalGr], (instregex "CIH$")>;
529 def : InstRW<[WLat1LSU, RegReadAdv, FXb, LSU, NormalGr], (instregex "CHF$")>;
530 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "CHSI$")>;
531 def : InstRW<[WLat1LSU, RegReadAdv, FXb, LSU, NormalGr],
532 (instregex "CL(Y|Mux)?$")>;
533 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "CLFHSI$")>;
534 def : InstRW<[WLat1, FXb, NormalGr], (instregex "CLFI(Mux)?$")>;
535 def : InstRW<[WLat1LSU, RegReadAdv, FXb, LSU, NormalGr], (instregex "CLG$")>;
536 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "CLG(HRL|HSI)$")>;
537 def : InstRW<[WLat1LSU, RegReadAdv, FXb, LSU, NormalGr], (instregex "CLGF$")>;
538 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "CLGFRL$")>;
539 def : InstRW<[WLat1, FXb, NormalGr], (instregex "CLGF(I|R)$")>;
540 def : InstRW<[WLat1, FXb, NormalGr], (instregex "CLGR$")>;
541 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "CLGRL$")>;
542 def : InstRW<[WLat1LSU, RegReadAdv, FXb, LSU, NormalGr], (instregex "CLHF$")>;
543 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "CLH(RL|HSI)$")>;
544 def : InstRW<[WLat1, FXb, NormalGr], (instregex "CLIH$")>;
545 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "CLI(Y)?$")>;
546 def : InstRW<[WLat1, FXb, NormalGr], (instregex "CLR$")>;
547 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "CLRL$")>;
548 def : InstRW<[WLat1, FXb, NormalGr], (instregex "C(L)?HHR$")>;
549 def : InstRW<[WLat2, FXb, NormalGr], (instregex "C(L)?HLR$")>;
552 def : InstRW<[WLat2LSU, RegReadAdv, FXb, LSU, NormalGr], (instregex "CH(Y)?$")>;
553 def : InstRW<[WLat2LSU, FXb, LSU, NormalGr], (instregex "CHRL$")>;
554 def : InstRW<[WLat2LSU, RegReadAdv, FXb, LSU, NormalGr], (instregex "CGH$")>;
555 def : InstRW<[WLat2LSU, FXb, LSU, NormalGr], (instregex "CGHRL$")>;
556 def : InstRW<[WLat2LSU, FXa, FXb, LSU, Cracked], (instregex "CHHSI$")>;
558 // Compare with sign extension (32 -> 64)
559 def : InstRW<[WLat2LSU, RegReadAdv, FXb, LSU, NormalGr], (instregex "CGF$")>;
560 def : InstRW<[WLat2LSU, FXb, LSU, NormalGr], (instregex "CGFRL$")>;
561 def : InstRW<[WLat2, FXb, NormalGr], (instregex "CGFR$")>;
563 // Compare logical character
564 def : InstRW<[WLat6, FXb, LSU2, Cracked], (instregex "CLC$")>;
565 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "CLCL(E|U)?$")>;
566 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "CLST$")>;
569 def : InstRW<[WLat1LSU, FXb, LSU, NormalGr], (instregex "TM(Y)?$")>;
570 def : InstRW<[WLat1, FXb, NormalGr], (instregex "TM(H|L)Mux$")>;
571 def : InstRW<[WLat1, FXb, NormalGr], (instregex "TMHH(64)?$")>;
572 def : InstRW<[WLat1, FXb, NormalGr], (instregex "TMHL(64)?$")>;
573 def : InstRW<[WLat1, FXb, NormalGr], (instregex "TMLH(64)?$")>;
574 def : InstRW<[WLat1, FXb, NormalGr], (instregex "TMLL(64)?$")>;
576 // Compare logical characters under mask
577 def : InstRW<[WLat2LSU, RegReadAdv, FXb, LSU, NormalGr],
578 (instregex "CLM(H|Y)?$")>;
580 //===----------------------------------------------------------------------===//
581 // Prefetch and execution hint
582 //===----------------------------------------------------------------------===//
584 def : InstRW<[WLat1, LSU, NormalGr], (instregex "PFD(RL)?$")>;
585 def : InstRW<[WLat1, FXb, NormalGr], (instregex "BPP$")>;
586 def : InstRW<[FXb, EndGroup], (instregex "BPRP$")>;
587 def : InstRW<[WLat1, FXb, NormalGr], (instregex "NIAI$")>;
589 //===----------------------------------------------------------------------===//
591 //===----------------------------------------------------------------------===//
593 def : InstRW<[WLat1, FXb, EndGroup], (instregex "Serialize$")>;
595 def : InstRW<[WLat2LSU, WLat2LSU, FXb, LSU, NormalGr], (instregex "LAA(G)?$")>;
596 def : InstRW<[WLat2LSU, WLat2LSU, FXb, LSU, NormalGr], (instregex "LAAL(G)?$")>;
597 def : InstRW<[WLat2LSU, WLat2LSU, FXb, LSU, NormalGr], (instregex "LAN(G)?$")>;
598 def : InstRW<[WLat2LSU, WLat2LSU, FXb, LSU, NormalGr], (instregex "LAO(G)?$")>;
599 def : InstRW<[WLat2LSU, WLat2LSU, FXb, LSU, NormalGr], (instregex "LAX(G)?$")>;
602 def : InstRW<[WLat2LSU, FXb, LSU, EndGroup], (instregex "TS$")>;
605 def : InstRW<[WLat3LSU, WLat3LSU, FXa, FXb, LSU, GroupAlone],
606 (instregex "CS(G|Y)?$")>;
608 // Compare double and swap
609 def : InstRW<[WLat6LSU, WLat6LSU, FXa3, FXb2, LSU, GroupAlone2],
610 (instregex "CDS(Y)?$")>;
611 def : InstRW<[WLat15, WLat15, FXa2, FXb4, LSU3, GroupAlone3],
612 (instregex "CDSG$")>;
614 // Compare and swap and store
615 def : InstRW<[WLat30, MCD], (instregex "CSST$")>;
617 // Perform locked operation
618 def : InstRW<[WLat30, MCD], (instregex "PLO$")>;
620 // Load/store pair from/to quadword
621 def : InstRW<[WLat4LSU, LSU2, GroupAlone], (instregex "LPQ$")>;
622 def : InstRW<[WLat1, FXb2, LSU, GroupAlone], (instregex "STPQ$")>;
624 // Load pair disjoint
625 def : InstRW<[WLat1LSU, WLat1LSU, LSU2, GroupAlone], (instregex "LPD(G)?$")>;
627 //===----------------------------------------------------------------------===//
628 // Translate and convert
629 //===----------------------------------------------------------------------===//
631 def : InstRW<[WLat1, LSU5, GroupAlone], (instregex "TR$")>;
632 def : InstRW<[WLat30, WLat30, WLat30, FXa3, LSU2, GroupAlone2],
634 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "TRTR$")>;
635 def : InstRW<[WLat30, WLat30, MCD], (instregex "TRE$")>;
636 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "TRT(R)?E(Opt)?$")>;
637 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "TR(T|O)(T|O)(Opt)?$")>;
638 def : InstRW<[WLat30, WLat30, WLat30, MCD],
639 (instregex "CU(12|14|21|24|41|42)(Opt)?$")>;
640 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "(CUUTF|CUTFU)(Opt)?$")>;
642 //===----------------------------------------------------------------------===//
643 // Message-security assist
644 //===----------------------------------------------------------------------===//
646 def : InstRW<[WLat30, WLat30, WLat30, WLat30, MCD],
647 (instregex "KM(C|F|O|CTR)?$")>;
648 def : InstRW<[WLat30, WLat30, WLat30, MCD],
649 (instregex "(KIMD|KLMD|KMAC|PCC|PPNO)$")>;
651 //===----------------------------------------------------------------------===//
652 // Decimal arithmetic
653 //===----------------------------------------------------------------------===//
655 def : InstRW<[WLat30, RegReadAdv, FXb, VecDF2, LSU2, GroupAlone2],
656 (instregex "CVBG$")>;
657 def : InstRW<[WLat30, RegReadAdv, FXb, VecDF, LSU, GroupAlone2],
658 (instregex "CVB(Y)?$")>;
659 def : InstRW<[WLat1, FXb3, VecDF4, LSU, GroupAlone3], (instregex "CVDG$")>;
660 def : InstRW<[WLat1, FXb2, VecDF, LSU, GroupAlone2], (instregex "CVD(Y)?$")>;
661 def : InstRW<[WLat1, LSU5, GroupAlone], (instregex "MV(N|O|Z)$")>;
662 def : InstRW<[WLat1, LSU5, GroupAlone], (instregex "(PACK|PKA|PKU)$")>;
663 def : InstRW<[WLat12, LSU5, GroupAlone], (instregex "UNPK(A|U)$")>;
664 def : InstRW<[WLat1, FXb, LSU2, Cracked], (instregex "UNPK$")>;
666 def : InstRW<[WLat5LSU, FXb, VecDFX, LSU3, GroupAlone2],
667 (instregex "(A|S|ZA)P$")>;
668 def : InstRW<[WLat1, FXb, VecDFX4, LSU3, GroupAlone2], (instregex "(M|D)P$")>;
669 def : InstRW<[WLat15, FXb, VecDFX2, LSU2, GroupAlone3], (instregex "SRP$")>;
670 def : InstRW<[WLat8, VecDFX, LSU, LSU, GroupAlone], (instregex "CP$")>;
671 def : InstRW<[WLat3LSU, VecDFX, LSU, Cracked], (instregex "TP$")>;
672 def : InstRW<[WLat30, MCD], (instregex "ED(MK)?$")>;
674 //===----------------------------------------------------------------------===//
676 //===----------------------------------------------------------------------===//
678 // Extract/set/copy access register
679 def : InstRW<[WLat3, LSU, NormalGr], (instregex "(EAR|SAR|CPYA)$")>;
681 // Load address extended
682 def : InstRW<[WLat5, LSU, FXa, Cracked], (instregex "LAE(Y)?$")>;
684 // Load/store access multiple (not modeled precisely)
685 def : InstRW<[WLat20, WLat20, LSU5, GroupAlone], (instregex "LAM(Y)?$")>;
686 def : InstRW<[WLat1, LSU5, FXb, GroupAlone2], (instregex "STAM(Y)?$")>;
688 //===----------------------------------------------------------------------===//
689 // Program mask and addressing mode
690 //===----------------------------------------------------------------------===//
692 // Insert Program Mask
693 def : InstRW<[WLat3, FXa, EndGroup], (instregex "IPM$")>;
696 def : InstRW<[WLat3, LSU, EndGroup], (instregex "SPM$")>;
699 def : InstRW<[WLat1, FXa2, FXb, GroupAlone], (instregex "BAL(R)?$")>;
701 // Test addressing mode
702 def : InstRW<[WLat1, FXb, NormalGr], (instregex "TAM$")>;
704 // Set addressing mode
705 def : InstRW<[WLat1, FXb, EndGroup], (instregex "SAM(24|31|64)$")>;
707 // Branch (and save) and set mode.
708 def : InstRW<[WLat1, FXa, FXb, GroupAlone], (instregex "BSM$")>;
709 def : InstRW<[WLat1, FXa2, FXb, GroupAlone], (instregex "BASSM$")>;
711 //===----------------------------------------------------------------------===//
712 // Transactional execution
713 //===----------------------------------------------------------------------===//
716 def : InstRW<[WLat9, LSU2, FXb5, GroupAlone2], (instregex "TBEGIN(C)?$")>;
719 def : InstRW<[WLat1, FXb, GroupAlone], (instregex "TEND$")>;
722 def : InstRW<[WLat30, MCD], (instregex "TABORT$")>;
724 // Extract Transaction Nesting Depth
725 def : InstRW<[WLat1, FXa, NormalGr], (instregex "ETND$")>;
727 // Nontransactional store
728 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "NTSTG$")>;
730 //===----------------------------------------------------------------------===//
732 //===----------------------------------------------------------------------===//
734 def : InstRW<[WLat30, MCD], (instregex "PPA$")>;
736 //===----------------------------------------------------------------------===//
737 // Miscellaneous Instructions.
738 //===----------------------------------------------------------------------===//
741 def : InstRW<[WLat7, WLat7, FXa2, GroupAlone], (instregex "FLOGR$")>;
744 def : InstRW<[WLat3, WLat3, FXa, NormalGr], (instregex "POPCNT$")>;
746 // String instructions
747 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "SRST(U)?$")>;
748 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "CUSE$")>;
750 // Various complex instructions
751 def : InstRW<[WLat30, WLat30, WLat30, WLat30, MCD], (instregex "CFC$")>;
752 def : InstRW<[WLat30, WLat30, WLat30, WLat30, WLat30, WLat30, MCD],
754 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "CKSM$")>;
755 def : InstRW<[WLat30, WLat30, WLat30, WLat30, MCD], (instregex "CMPSC$")>;
758 def : InstRW<[WLat1, FXb, GroupAlone], (instregex "EX(RL)?$")>;
760 //===----------------------------------------------------------------------===//
761 // .insn directive instructions
762 //===----------------------------------------------------------------------===//
764 // An "empty" sched-class will be assigned instead of the "invalid sched-class".
765 // getNumDecoderSlots() will then return 1 instead of 0.
766 def : InstRW<[], (instregex "Insn.*")>;
769 // ----------------------------- Floating point ----------------------------- //
771 //===----------------------------------------------------------------------===//
772 // FP: Move instructions
773 //===----------------------------------------------------------------------===//
776 def : InstRW<[WLat1, FXb, NormalGr], (instregex "LZ(DR|ER)$")>;
777 def : InstRW<[WLat2, FXb2, Cracked], (instregex "LZXR$")>;
780 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "LER$")>;
781 def : InstRW<[WLat1, FXb, NormalGr], (instregex "LD(R|R32|GR)$")>;
782 def : InstRW<[WLat3, FXb, NormalGr], (instregex "LGDR$")>;
783 def : InstRW<[WLat2, FXb2, GroupAlone], (instregex "LXR$")>;
786 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "LT(E|D)BR$")>;
787 def : InstRW<[WLat3, VecXsPm, NormalGr], (instregex "LT(E|D)BRCompare$")>;
788 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone],
789 (instregex "LTXBR(Compare)?$")>;
792 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "CPSDR(d|s)(d|s)$")>;
794 //===----------------------------------------------------------------------===//
795 // FP: Load instructions
796 //===----------------------------------------------------------------------===//
798 def : InstRW<[WLat2LSU, VecXsPm, LSU, NormalGr], (instregex "LE(Y)?$")>;
799 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "LD(Y|E32)?$")>;
800 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "LX$")>;
802 //===----------------------------------------------------------------------===//
803 // FP: Store instructions
804 //===----------------------------------------------------------------------===//
806 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "ST(E|D)(Y)?$")>;
807 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "STX$")>;
809 //===----------------------------------------------------------------------===//
810 // FP: Conversion instructions
811 //===----------------------------------------------------------------------===//
814 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "LEDBR(A)?$")>;
815 def : InstRW<[WLat9, VecDF2, NormalGr], (instregex "L(E|D)XBR(A)?$")>;
818 def : InstRW<[WLat7LSU, VecBF, LSU, NormalGr], (instregex "LDEB$")>;
819 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "LDEBR$")>;
820 def : InstRW<[WLat8LSU, VecBF4, LSU, GroupAlone], (instregex "LX(E|D)B$")>;
821 def : InstRW<[WLat8, VecBF4, GroupAlone], (instregex "LX(E|D)BR$")>;
823 // Convert from fixed / logical
824 def : InstRW<[WLat8, FXb, VecBF, Cracked], (instregex "C(E|D)(F|G)BR(A)?$")>;
825 def : InstRW<[WLat11, FXb, VecDF4, GroupAlone2], (instregex "CX(F|G)BR(A)?$")>;
826 def : InstRW<[WLat8, FXb, VecBF, Cracked], (instregex "C(E|D)L(F|G)BR$")>;
827 def : InstRW<[WLat11, FXb, VecDF4, GroupAlone2], (instregex "CXL(F|G)BR$")>;
829 // Convert to fixed / logical
830 def : InstRW<[WLat10, WLat10, FXb, VecBF, Cracked],
831 (instregex "C(F|G)(E|D)BR(A)?$")>;
832 def : InstRW<[WLat12, WLat12, FXb, VecDF2, Cracked],
833 (instregex "C(F|G)XBR(A)?$")>;
834 def : InstRW<[WLat10, WLat10, FXb, VecBF, GroupAlone], (instregex "CLFEBR$")>;
835 def : InstRW<[WLat10, WLat10, FXb, VecBF, Cracked], (instregex "CLFDBR$")>;
836 def : InstRW<[WLat10, WLat10, FXb, VecBF, Cracked], (instregex "CLG(E|D)BR$")>;
837 def : InstRW<[WLat12, WLat12, FXb, VecDF2, Cracked], (instregex "CL(F|G)XBR$")>;
839 //===----------------------------------------------------------------------===//
840 // FP: Unary arithmetic
841 //===----------------------------------------------------------------------===//
843 // Load Complement / Negative / Positive
844 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "L(C|N|P)(E|D)BR$")>;
845 def : InstRW<[WLat1, FXb, NormalGr], (instregex "L(C|N|P)DFR(_32)?$")>;
846 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone], (instregex "L(C|N|P)XBR$")>;
849 def : InstRW<[WLat30, VecFPd, LSU, NormalGr], (instregex "SQ(E|D)B$")>;
850 def : InstRW<[WLat30, VecFPd, NormalGr], (instregex "SQ(E|D)BR$")>;
851 def : InstRW<[WLat30, VecFPd, GroupAlone], (instregex "SQXBR$")>;
854 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "FI(E|D)BR(A)?$")>;
855 def : InstRW<[WLat10, VecDF4, GroupAlone], (instregex "FIXBR(A)?$")>;
857 //===----------------------------------------------------------------------===//
858 // FP: Binary arithmetic
859 //===----------------------------------------------------------------------===//
862 def : InstRW<[WLat7LSU, WLat7LSU, RegReadAdv, VecBF, LSU, NormalGr],
863 (instregex "A(E|D)B$")>;
864 def : InstRW<[WLat7, WLat7, VecBF, NormalGr], (instregex "A(E|D)BR$")>;
865 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone], (instregex "AXBR$")>;
868 def : InstRW<[WLat7LSU, WLat7LSU, RegReadAdv, VecBF, LSU, NormalGr],
869 (instregex "S(E|D)B$")>;
870 def : InstRW<[WLat7, WLat7, VecBF, NormalGr], (instregex "S(E|D)BR$")>;
871 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone], (instregex "SXBR$")>;
874 def : InstRW<[WLat7LSU, RegReadAdv, VecBF, LSU, NormalGr],
875 (instregex "M(D|DE|EE)B$")>;
876 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "M(D|DE|EE)BR$")>;
877 def : InstRW<[WLat8LSU, RegReadAdv, VecBF4, LSU, GroupAlone],
878 (instregex "MXDB$")>;
879 def : InstRW<[WLat8, VecBF4, GroupAlone], (instregex "MXDBR$")>;
880 def : InstRW<[WLat20, VecDF4, GroupAlone], (instregex "MXBR$")>;
882 // Multiply and add / subtract
883 def : InstRW<[WLat7LSU, RegReadAdv, RegReadAdv, VecBF2, LSU, GroupAlone],
884 (instregex "M(A|S)EB$")>;
885 def : InstRW<[WLat7, VecBF, GroupAlone], (instregex "M(A|S)EBR$")>;
886 def : InstRW<[WLat7LSU, RegReadAdv, RegReadAdv, VecBF2, LSU, GroupAlone],
887 (instregex "M(A|S)DB$")>;
888 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "M(A|S)DBR$")>;
891 def : InstRW<[WLat30, RegReadAdv, VecFPd, LSU, NormalGr],
892 (instregex "D(E|D)B$")>;
893 def : InstRW<[WLat30, VecFPd, NormalGr], (instregex "D(E|D)BR$")>;
894 def : InstRW<[WLat30, VecFPd, GroupAlone], (instregex "DXBR$")>;
897 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "DI(E|D)BR$")>;
899 //===----------------------------------------------------------------------===//
901 //===----------------------------------------------------------------------===//
904 def : InstRW<[WLat3LSU, RegReadAdv, VecXsPm, LSU, NormalGr],
905 (instregex "(K|C)(E|D)B$")>;
906 def : InstRW<[WLat3, VecXsPm, NormalGr], (instregex "(K|C)(E|D)BR$")>;
907 def : InstRW<[WLat9, VecDF2, GroupAlone], (instregex "(K|C)XBR$")>;
910 def : InstRW<[WLat5, LSU, VecXsPm, NormalGr], (instregex "TC(E|D)B$")>;
911 def : InstRW<[WLat10, LSU, VecDF4, GroupAlone], (instregex "TCXB$")>;
913 //===----------------------------------------------------------------------===//
914 // FP: Floating-point control register instructions
915 //===----------------------------------------------------------------------===//
917 def : InstRW<[WLat4, FXa, LSU, GroupAlone], (instregex "EFPC$")>;
918 def : InstRW<[WLat1, FXb, LSU, GroupAlone], (instregex "STFPC$")>;
919 def : InstRW<[WLat3, LSU, GroupAlone], (instregex "SFPC$")>;
920 def : InstRW<[WLat3LSU, LSU2, GroupAlone], (instregex "LFPC$")>;
921 def : InstRW<[WLat30, MCD], (instregex "SFASR$")>;
922 def : InstRW<[WLat30, MCD], (instregex "LFAS$")>;
923 def : InstRW<[WLat3, FXb, GroupAlone], (instregex "SRNM(B|T)?$")>;
926 // --------------------- Hexadecimal floating point ------------------------- //
928 //===----------------------------------------------------------------------===//
929 // HFP: Move instructions
930 //===----------------------------------------------------------------------===//
933 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "LT(E|D)R$")>;
934 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone], (instregex "LTXR$")>;
936 //===----------------------------------------------------------------------===//
937 // HFP: Conversion instructions
938 //===----------------------------------------------------------------------===//
941 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "(LEDR|LRER)$")>;
942 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "LEXR$")>;
943 def : InstRW<[WLat9, VecDF2, NormalGr], (instregex "(LDXR|LRDR)$")>;
946 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "LDE$")>;
947 def : InstRW<[WLat1, FXb, NormalGr], (instregex "LDER$")>;
948 def : InstRW<[WLat8LSU, VecBF4, LSU, GroupAlone], (instregex "LX(E|D)$")>;
949 def : InstRW<[WLat8, VecBF4, GroupAlone], (instregex "LX(E|D)R$")>;
951 // Convert from fixed
952 def : InstRW<[WLat8, FXb, VecBF, Cracked], (instregex "C(E|D)(F|G)R$")>;
953 def : InstRW<[WLat11, FXb, VecDF4, GroupAlone2], (instregex "CX(F|G)R$")>;
956 def : InstRW<[WLat10, WLat10, FXb, VecBF, Cracked], (instregex "C(F|G)(E|D)R$")>;
957 def : InstRW<[WLat12, WLat12, FXb, VecDF2, Cracked], (instregex "C(F|G)XR$")>;
959 // Convert BFP to HFP / HFP to BFP.
960 def : InstRW<[WLat7, WLat7, VecBF, NormalGr], (instregex "THD(E)?R$")>;
961 def : InstRW<[WLat7, WLat7, VecBF, NormalGr], (instregex "TB(E)?DR$")>;
963 //===----------------------------------------------------------------------===//
964 // HFP: Unary arithmetic
965 //===----------------------------------------------------------------------===//
967 // Load Complement / Negative / Positive
968 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "L(C|N|P)(E|D)R$")>;
969 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone], (instregex "L(C|N|P)XR$")>;
972 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "H(E|D)R$")>;
975 def : InstRW<[WLat30, VecFPd, LSU, NormalGr], (instregex "SQ(E|D)$")>;
976 def : InstRW<[WLat30, VecFPd, NormalGr], (instregex "SQ(E|D)R$")>;
977 def : InstRW<[WLat30, VecFPd, GroupAlone], (instregex "SQXR$")>;
980 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "FI(E|D)R$")>;
981 def : InstRW<[WLat10, VecDF4, GroupAlone], (instregex "FIXR$")>;
983 //===----------------------------------------------------------------------===//
984 // HFP: Binary arithmetic
985 //===----------------------------------------------------------------------===//
988 def : InstRW<[WLat7LSU, WLat7LSU, RegReadAdv, VecBF, LSU, NormalGr],
989 (instregex "A(E|D|U|W)$")>;
990 def : InstRW<[WLat7, WLat7, VecBF, NormalGr], (instregex "A(E|D|U|W)R$")>;
991 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone], (instregex "AXR$")>;
994 def : InstRW<[WLat7LSU, WLat7LSU, RegReadAdv, VecBF, LSU, NormalGr],
995 (instregex "S(E|D|U|W)$")>;
996 def : InstRW<[WLat7, WLat7, VecBF, NormalGr], (instregex "S(E|D|U|W)R$")>;
997 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone], (instregex "SXR$")>;
1000 def : InstRW<[WLat7LSU, RegReadAdv, VecBF, LSU, NormalGr],
1001 (instregex "M(D|DE|E|EE)$")>;
1002 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "M(D|DE|E|EE)R$")>;
1003 def : InstRW<[WLat8LSU, RegReadAdv, VecBF4, LSU, GroupAlone],
1004 (instregex "MXD$")>;
1005 def : InstRW<[WLat8, VecBF4, GroupAlone], (instregex "MXDR$")>;
1006 def : InstRW<[WLat30, VecDF4, GroupAlone], (instregex "MXR$")>;
1007 def : InstRW<[WLat8LSU, RegReadAdv, VecBF4, LSU, GroupAlone],
1009 def : InstRW<[WLat7LSU, RegReadAdv, VecBF2, LSU, GroupAlone],
1010 (instregex "MY(H|L)$")>;
1011 def : InstRW<[WLat8, VecBF4, GroupAlone], (instregex "MYR$")>;
1012 def : InstRW<[WLat7, VecBF, GroupAlone], (instregex "MY(H|L)R$")>;
1014 // Multiply and add / subtract
1015 def : InstRW<[WLat7LSU, RegReadAdv, RegReadAdv, VecBF2, LSU, GroupAlone],
1016 (instregex "M(A|S)(E|D)$")>;
1017 def : InstRW<[WLat7, VecBF, GroupAlone], (instregex "M(A|S)(E|D)R$")>;
1018 def : InstRW<[WLat8LSU, RegReadAdv, RegReadAdv, VecBF4, LSU, GroupAlone],
1019 (instregex "MAY$")>;
1020 def : InstRW<[WLat7LSU, RegReadAdv, RegReadAdv, VecBF2, LSU, GroupAlone],
1021 (instregex "MAY(H|L)$")>;
1022 def : InstRW<[WLat8, VecBF4, GroupAlone], (instregex "MAYR$")>;
1023 def : InstRW<[WLat7, VecBF, GroupAlone], (instregex "MAY(H|L)R$")>;
1026 def : InstRW<[WLat30, RegReadAdv, VecFPd, LSU, NormalGr],
1027 (instregex "D(E|D)$")>;
1028 def : InstRW<[WLat30, VecFPd, NormalGr], (instregex "D(E|D)R$")>;
1029 def : InstRW<[WLat30, VecFPd, GroupAlone], (instregex "DXR$")>;
1031 //===----------------------------------------------------------------------===//
1033 //===----------------------------------------------------------------------===//
1036 def : InstRW<[WLat7LSU, RegReadAdv, VecBF, LSU, NormalGr],
1037 (instregex "C(E|D)$")>;
1038 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "C(E|D)R$")>;
1039 def : InstRW<[WLat10, VecDF2, GroupAlone], (instregex "CXR$")>;
1042 // ------------------------ Decimal floating point -------------------------- //
1044 //===----------------------------------------------------------------------===//
1045 // DFP: Move instructions
1046 //===----------------------------------------------------------------------===//
1049 def : InstRW<[WLat8, WLat8, VecDF, NormalGr], (instregex "LTDTR$")>;
1050 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone], (instregex "LTXTR$")>;
1052 //===----------------------------------------------------------------------===//
1053 // DFP: Conversion instructions
1054 //===----------------------------------------------------------------------===//
1057 def : InstRW<[WLat15, VecDF, NormalGr], (instregex "LEDTR$")>;
1058 def : InstRW<[WLat15, VecDF2, NormalGr], (instregex "LDXTR$")>;
1061 def : InstRW<[WLat8, VecDF, NormalGr], (instregex "LDETR$")>;
1062 def : InstRW<[WLat10, VecDF4, GroupAlone], (instregex "LXDTR$")>;
1064 // Convert from fixed / logical
1065 def : InstRW<[WLat30, FXb, VecDF, Cracked], (instregex "CD(F|G)TR(A)?$")>;
1066 def : InstRW<[WLat30, FXb, VecDF4, GroupAlone2], (instregex "CX(F|G)TR(A)?$")>;
1067 def : InstRW<[WLat30, FXb, VecDF, Cracked], (instregex "CDL(F|G)TR$")>;
1068 def : InstRW<[WLat30, FXb, VecDF4, GroupAlone2], (instregex "CXL(F|G)TR$")>;
1070 // Convert to fixed / logical
1071 def : InstRW<[WLat30, WLat30, FXb, VecDF, Cracked],
1072 (instregex "C(F|G)DTR(A)?$")>;
1073 def : InstRW<[WLat30, WLat30, FXb, VecDF2, Cracked],
1074 (instregex "C(F|G)XTR(A)?$")>;
1075 def : InstRW<[WLat30, WLat30, FXb, VecDF, Cracked], (instregex "CL(F|G)DTR$")>;
1076 def : InstRW<[WLat30, WLat30, FXb, VecDF2, Cracked], (instregex "CL(F|G)XTR$")>;
1078 // Convert from / to signed / unsigned packed
1079 def : InstRW<[WLat9, FXb, VecDF, Cracked], (instregex "CD(S|U)TR$")>;
1080 def : InstRW<[WLat12, FXb2, VecDF4, GroupAlone2], (instregex "CX(S|U)TR$")>;
1081 def : InstRW<[WLat11, FXb, VecDF, Cracked], (instregex "C(S|U)DTR$")>;
1082 def : InstRW<[WLat15, FXb2, VecDF4, GroupAlone2], (instregex "C(S|U)XTR$")>;
1084 // Convert from / to zoned
1085 def : InstRW<[WLat8LSU, LSU, VecDF, Cracked], (instregex "CDZT$")>;
1086 def : InstRW<[WLat16LSU, LSU2, VecDF4, GroupAlone3], (instregex "CXZT$")>;
1087 def : InstRW<[WLat1, FXb, LSU, VecDF, Cracked], (instregex "CZDT$")>;
1088 def : InstRW<[WLat1, FXb, LSU, VecDF2, GroupAlone], (instregex "CZXT$")>;
1090 // Convert from / to packed
1091 def : InstRW<[WLat8LSU, LSU, VecDF, Cracked], (instregex "CDPT$")>;
1092 def : InstRW<[WLat16LSU, LSU2, VecDF4, GroupAlone3], (instregex "CXPT$")>;
1093 def : InstRW<[WLat1, FXb, LSU, VecDF, Cracked], (instregex "CPDT$")>;
1094 def : InstRW<[WLat1, FXb, LSU, VecDF2, GroupAlone], (instregex "CPXT$")>;
1096 // Perform floating-point operation
1097 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "PFPO$")>;
1099 //===----------------------------------------------------------------------===//
1100 // DFP: Unary arithmetic
1101 //===----------------------------------------------------------------------===//
1104 def : InstRW<[WLat8, VecDF, NormalGr], (instregex "FIDTR$")>;
1105 def : InstRW<[WLat10, VecDF4, GroupAlone], (instregex "FIXTR$")>;
1107 // Extract biased exponent
1108 def : InstRW<[WLat11, FXb, VecDF, Cracked], (instregex "EEDTR$")>;
1109 def : InstRW<[WLat11, FXb, VecDF, Cracked], (instregex "EEXTR$")>;
1111 // Extract significance
1112 def : InstRW<[WLat11, FXb, VecDF, Cracked], (instregex "ESDTR$")>;
1113 def : InstRW<[WLat12, FXb, VecDF2, Cracked], (instregex "ESXTR$")>;
1115 //===----------------------------------------------------------------------===//
1116 // DFP: Binary arithmetic
1117 //===----------------------------------------------------------------------===//
1120 def : InstRW<[WLat8, WLat8, VecDF, NormalGr], (instregex "ADTR(A)?$")>;
1121 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone], (instregex "AXTR(A)?$")>;
1124 def : InstRW<[WLat8, WLat8, VecDF, NormalGr], (instregex "SDTR(A)?$")>;
1125 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone], (instregex "SXTR(A)?$")>;
1128 def : InstRW<[WLat30, VecDF, NormalGr], (instregex "MDTR(A)?$")>;
1129 def : InstRW<[WLat30, VecDF4, GroupAlone], (instregex "MXTR(A)?$")>;
1132 def : InstRW<[WLat30, VecDF, NormalGr], (instregex "DDTR(A)?$")>;
1133 def : InstRW<[WLat30, VecDF4, GroupAlone], (instregex "DXTR(A)?$")>;
1136 def : InstRW<[WLat8, WLat8, VecDF, NormalGr], (instregex "QADTR$")>;
1137 def : InstRW<[WLat10, WLat10, VecDF4, GroupAlone], (instregex "QAXTR$")>;
1140 def : InstRW<[WLat9, WLat9, FXb, VecDF, Cracked], (instregex "RRDTR$")>;
1141 def : InstRW<[WLat11, WLat11, FXb, VecDF4, GroupAlone2], (instregex "RRXTR$")>;
1143 // Shift significand left/right
1144 def : InstRW<[WLat11LSU, LSU, VecDF, GroupAlone], (instregex "S(L|R)DT$")>;
1145 def : InstRW<[WLat11LSU, LSU, VecDF4, GroupAlone], (instregex "S(L|R)XT$")>;
1147 // Insert biased exponent
1148 def : InstRW<[WLat9, FXb, VecDF, Cracked], (instregex "IEDTR$")>;
1149 def : InstRW<[WLat11, FXb, VecDF4, GroupAlone2], (instregex "IEXTR$")>;
1151 //===----------------------------------------------------------------------===//
1153 //===----------------------------------------------------------------------===//
1156 def : InstRW<[WLat8, VecDF, NormalGr], (instregex "(K|C)DTR$")>;
1157 def : InstRW<[WLat9, VecDF2, GroupAlone], (instregex "(K|C)XTR$")>;
1159 // Compare biased exponent
1160 def : InstRW<[WLat8, VecDF, NormalGr], (instregex "CEDTR$")>;
1161 def : InstRW<[WLat8, VecDF, NormalGr], (instregex "CEXTR$")>;
1163 // Test Data Class/Group
1164 def : InstRW<[WLat15, LSU, VecDF, NormalGr], (instregex "TD(C|G)(E|D)T$")>;
1165 def : InstRW<[WLat15, LSU, VecDF2, GroupAlone], (instregex "TD(C|G)XT$")>;
1168 // --------------------------------- Vector --------------------------------- //
1170 //===----------------------------------------------------------------------===//
1171 // Vector: Move instructions
1172 //===----------------------------------------------------------------------===//
1174 def : InstRW<[WLat1, FXb, NormalGr], (instregex "VLR(32|64)?$")>;
1175 def : InstRW<[WLat4, FXb, NormalGr], (instregex "VLGV(B|F|G|H)?$")>;
1176 def : InstRW<[WLat1, FXb, NormalGr], (instregex "VLVG(B|F|G|H)?$")>;
1177 def : InstRW<[WLat3, FXb, NormalGr], (instregex "VLVGP(32)?$")>;
1179 //===----------------------------------------------------------------------===//
1180 // Vector: Immediate instructions
1181 //===----------------------------------------------------------------------===//
1183 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VZERO$")>;
1184 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VONE$")>;
1185 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VGBM$")>;
1186 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VGM(B|F|G|H)?$")>;
1187 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VREPI(B|F|G|H)?$")>;
1188 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VLEI(B|F|G|H)$")>;
1190 //===----------------------------------------------------------------------===//
1192 //===----------------------------------------------------------------------===//
1194 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "VL(Align)?$")>;
1195 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "VL(L|BB)$")>;
1196 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "VL(32|64)$")>;
1197 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "VLLEZ(B|F|G|H)?$")>;
1198 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "VLREP(B|F|G|H)?$")>;
1199 def : InstRW<[WLat2LSU, RegReadAdv, VecXsPm, LSU, NormalGr],
1200 (instregex "VLE(B|F|G|H)$")>;
1201 def : InstRW<[WLat6LSU, RegReadAdv, FXb, LSU, VecXsPm, Cracked],
1202 (instregex "VGE(F|G)$")>;
1203 def : InstRW<[WLat4LSU, WLat4LSU, LSU5, GroupAlone],
1204 (instregex "VLM(Align)?$")>;
1206 //===----------------------------------------------------------------------===//
1208 //===----------------------------------------------------------------------===//
1210 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "VST(Align|L|32|64)?$")>;
1211 def : InstRW<[WLat1, FXb, LSU, NormalGr], (instregex "VSTE(F|G)$")>;
1212 def : InstRW<[WLat1, FXb, LSU, VecXsPm, Cracked], (instregex "VSTE(B|H)$")>;
1213 def : InstRW<[WLat1, LSU2, FXb3, GroupAlone2], (instregex "VSTM(Align)?$")>;
1214 def : InstRW<[WLat1, FXb2, LSU, Cracked], (instregex "VSCE(F|G)$")>;
1216 //===----------------------------------------------------------------------===//
1217 // Vector: Selects and permutes
1218 //===----------------------------------------------------------------------===//
1220 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VMRH(B|F|G|H)?$")>;
1221 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VMRL(B|F|G|H)?$")>;
1222 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VPERM$")>;
1223 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VPDI$")>;
1224 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VREP(B|F|G|H)?$")>;
1225 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VSEL$")>;
1227 //===----------------------------------------------------------------------===//
1228 // Vector: Widening and narrowing
1229 //===----------------------------------------------------------------------===//
1231 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VPK(F|G|H)?$")>;
1232 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VPKS(F|G|H)?$")>;
1233 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "VPKS(F|G|H)S$")>;
1234 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VPKLS(F|G|H)?$")>;
1235 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "VPKLS(F|G|H)S$")>;
1236 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VSEG(B|F|H)?$")>;
1237 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VUPH(B|F|H)?$")>;
1238 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VUPL(B|F)?$")>;
1239 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VUPLH(B|F|H|W)?$")>;
1240 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VUPLL(B|F|H)?$")>;
1242 //===----------------------------------------------------------------------===//
1243 // Vector: Integer arithmetic
1244 //===----------------------------------------------------------------------===//
1246 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VA(B|F|G|H|Q|C|CQ)?$")>;
1247 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VACC(B|F|G|H|Q|C|CQ)?$")>;
1248 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VAVG(B|F|G|H)?$")>;
1249 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VAVGL(B|F|G|H)?$")>;
1250 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VN(C|O)?$")>;
1251 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VO$")>;
1252 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VCKSM$")>;
1253 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VCLZ(B|F|G|H)?$")>;
1254 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VCTZ(B|F|G|H)?$")>;
1255 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VX$")>;
1256 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VGFM?$")>;
1257 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VGFMA(B|F|G|H)?$")>;
1258 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VGFM(B|F|G|H)$")>;
1259 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VLC(B|F|G|H)?$")>;
1260 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VLP(B|F|G|H)?$")>;
1261 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VMX(B|F|G|H)?$")>;
1262 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VMXL(B|F|G|H)?$")>;
1263 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VMN(B|F|G|H)?$")>;
1264 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VMNL(B|F|G|H)?$")>;
1265 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMAL(B|F)?$")>;
1266 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMALE(B|F|H)?$")>;
1267 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMALH(B|F|H|W)?$")>;
1268 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMALO(B|F|H)?$")>;
1269 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMAO(B|F|H)?$")>;
1270 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMAE(B|F|H)?$")>;
1271 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMAH(B|F|H)?$")>;
1272 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VME(B|F|H)?$")>;
1273 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMH(B|F|H)?$")>;
1274 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VML(B|F)?$")>;
1275 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMLE(B|F|H)?$")>;
1276 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMLH(B|F|H|W)?$")>;
1277 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMLO(B|F|H)?$")>;
1278 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VMO(B|F|H)?$")>;
1280 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VPOPCT$")>;
1282 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VERLL(B|F|G|H)?$")>;
1283 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VERLLV(B|F|G|H)?$")>;
1284 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VERIM(B|F|G|H)?$")>;
1285 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VESL(B|F|G|H)?$")>;
1286 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VESLV(B|F|G|H)?$")>;
1287 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VESRA(B|F|G|H)?$")>;
1288 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VESRAV(B|F|G|H)?$")>;
1289 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VESRL(B|F|G|H)?$")>;
1290 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VESRLV(B|F|G|H)?$")>;
1292 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VSL(DB)?$")>;
1293 def : InstRW<[WLat3, VecXsPm2, NormalGr], (instregex "VSLB$")>;
1294 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VSR(A|L)$")>;
1295 def : InstRW<[WLat3, VecXsPm2, NormalGr], (instregex "VSR(A|L)B$")>;
1297 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VSB(I|IQ|CBI|CBIQ)?$")>;
1298 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VSCBI(B|F|G|H|Q)?$")>;
1299 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VS(F|G|H|Q)?$")>;
1301 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VSUM(B|H)?$")>;
1302 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VSUMG(F|H)?$")>;
1303 def : InstRW<[WLat4, VecMul, NormalGr], (instregex "VSUMQ(F|G)?$")>;
1305 //===----------------------------------------------------------------------===//
1306 // Vector: Integer comparison
1307 //===----------------------------------------------------------------------===//
1309 def : InstRW<[WLat3, VecXsPm, NormalGr], (instregex "VEC(B|F|G|H)?$")>;
1310 def : InstRW<[WLat3, VecXsPm, NormalGr], (instregex "VECL(B|F|G|H)?$")>;
1311 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VCEQ(B|F|G|H)?$")>;
1312 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "VCEQ(B|F|G|H)S$")>;
1313 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VCH(B|F|G|H)?$")>;
1314 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "VCH(B|F|G|H)S$")>;
1315 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VCHL(B|F|G|H)?$")>;
1316 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "VCHL(B|F|G|H)S$")>;
1317 def : InstRW<[WLat4, VecStr, NormalGr], (instregex "VTM$")>;
1319 //===----------------------------------------------------------------------===//
1320 // Vector: Floating-point arithmetic
1321 //===----------------------------------------------------------------------===//
1323 // Conversion and rounding
1324 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VCD(L)?G$")>;
1325 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VCD(L)?GB$")>;
1326 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "WCD(L)?GB$")>;
1327 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VC(L)?GD$")>;
1328 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VC(L)?GDB$")>;
1329 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "WC(L)?GDB$")>;
1330 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VL(DE|ED)$")>;
1331 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VL(DE|ED)B$")>;
1332 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "WL(DE|ED)B$")>;
1333 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VFI$")>;
1334 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VFIDB$")>;
1335 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "WFIDB$")>;
1338 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "VFPSO$")>;
1339 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "(V|W)FPSODB$")>;
1340 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "(V|W)FL(C|N|P)DB$")>;
1343 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "VFTCI$")>;
1344 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "(V|W)FTCIDB$")>;
1347 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VF(A|S)$")>;
1348 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VF(A|S)DB$")>;
1349 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "WF(A|S)DB$")>;
1351 // Multiply / multiply-and-add/subtract
1352 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VFM$")>;
1353 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VFMDB$")>;
1354 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "WFMDB$")>;
1355 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VFM(A|S)$")>;
1356 def : InstRW<[WLat8, VecBF2, NormalGr], (instregex "VFM(A|S)DB$")>;
1357 def : InstRW<[WLat7, VecBF, NormalGr], (instregex "WFM(A|S)DB$")>;
1359 // Divide / square root
1360 def : InstRW<[WLat30, VecFPd, NormalGr], (instregex "VFD$")>;
1361 def : InstRW<[WLat30, VecFPd, NormalGr], (instregex "(V|W)FDDB$")>;
1362 def : InstRW<[WLat30, VecFPd, NormalGr], (instregex "VFSQ$")>;
1363 def : InstRW<[WLat30, VecFPd, NormalGr], (instregex "(V|W)FSQDB$")>;
1365 //===----------------------------------------------------------------------===//
1366 // Vector: Floating-point comparison
1367 //===----------------------------------------------------------------------===//
1369 def : InstRW<[WLat2, WLat2, VecXsPm, NormalGr], (instregex "VFC(E|H|HE)$")>;
1370 def : InstRW<[WLat2, WLat2, VecXsPm, NormalGr], (instregex "VFC(E|H|HE)DB$")>;
1371 def : InstRW<[WLat2, VecXsPm, NormalGr], (instregex "WFC(E|H|HE)DB$")>;
1372 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "VFC(E|H|HE)DBS$")>;
1373 def : InstRW<[WLat3, WLat3, VecXsPm, NormalGr], (instregex "WFC(E|H|HE)DBS$")>;
1374 def : InstRW<[WLat3, VecXsPm, NormalGr], (instregex "WF(C|K)$")>;
1375 def : InstRW<[WLat3, VecXsPm, NormalGr], (instregex "WF(C|K)DB$")>;
1377 //===----------------------------------------------------------------------===//
1378 // Vector: Floating-point insertion and extraction
1379 //===----------------------------------------------------------------------===//
1381 def : InstRW<[WLat1, FXb, NormalGr], (instregex "LEFR$")>;
1382 def : InstRW<[WLat4, FXb, NormalGr], (instregex "LFER$")>;
1384 //===----------------------------------------------------------------------===//
1385 // Vector: String instructions
1386 //===----------------------------------------------------------------------===//
1388 def : InstRW<[WLat3, VecStr, NormalGr], (instregex "VFAE(B)?$")>;
1389 def : InstRW<[WLat3, VecStr, NormalGr], (instregex "VFAE(F|H)$")>;
1390 def : InstRW<[WLat4, WLat4, VecStr, NormalGr], (instregex "VFAE(B|F|H)S$")>;
1391 def : InstRW<[WLat3, VecStr, NormalGr], (instregex "VFAEZ(B|F|H)$")>;
1392 def : InstRW<[WLat4, WLat4, VecStr, NormalGr], (instregex "VFAEZ(B|F|H)S$")>;
1393 def : InstRW<[WLat3, VecStr, NormalGr], (instregex "VFEE(B|F|H|ZB|ZF|ZH)?$")>;
1394 def : InstRW<[WLat4, WLat4, VecStr, NormalGr],
1395 (instregex "VFEE(B|F|H|ZB|ZF|ZH)S$")>;
1396 def : InstRW<[WLat3, VecStr, NormalGr], (instregex "VFENE(B|F|H|ZB|ZF|ZH)?$")>;
1397 def : InstRW<[WLat4, WLat4, VecStr, NormalGr],
1398 (instregex "VFENE(B|F|H|ZB|ZF|ZH)S$")>;
1399 def : InstRW<[WLat3, VecStr, NormalGr], (instregex "VISTR(B|F|H)?$")>;
1400 def : InstRW<[WLat4, WLat4, VecStr, NormalGr], (instregex "VISTR(B|F|H)S$")>;
1401 def : InstRW<[WLat3, VecStr, NormalGr], (instregex "VSTRC(B|F|H)?$")>;
1402 def : InstRW<[WLat4, WLat4, VecStr, NormalGr], (instregex "VSTRC(B|F|H)S$")>;
1403 def : InstRW<[WLat3, VecStr, NormalGr], (instregex "VSTRCZ(B|F|H)$")>;
1404 def : InstRW<[WLat4, WLat4, VecStr, NormalGr], (instregex "VSTRCZ(B|F|H)S$")>;
1407 // -------------------------------- System ---------------------------------- //
1409 //===----------------------------------------------------------------------===//
1410 // System: Program-Status Word Instructions
1411 //===----------------------------------------------------------------------===//
1413 def : InstRW<[WLat30, WLat30, MCD], (instregex "EPSW$")>;
1414 def : InstRW<[WLat30, MCD], (instregex "LPSW(E)?$")>;
1415 def : InstRW<[WLat3, FXa, GroupAlone], (instregex "IPK$")>;
1416 def : InstRW<[WLat1, LSU, EndGroup], (instregex "SPKA$")>;
1417 def : InstRW<[WLat1, LSU, EndGroup], (instregex "SSM$")>;
1418 def : InstRW<[WLat1, FXb, LSU, GroupAlone], (instregex "ST(N|O)SM$")>;
1419 def : InstRW<[WLat3, FXa, NormalGr], (instregex "IAC$")>;
1420 def : InstRW<[WLat1, LSU, EndGroup], (instregex "SAC(F)?$")>;
1422 //===----------------------------------------------------------------------===//
1423 // System: Control Register Instructions
1424 //===----------------------------------------------------------------------===//
1426 def : InstRW<[WLat4LSU, WLat4LSU, LSU2, GroupAlone], (instregex "LCTL(G)?$")>;
1427 def : InstRW<[WLat1, LSU5, FXb, GroupAlone2], (instregex "STCT(L|G)$")>;
1428 def : InstRW<[LSULatency, LSU, NormalGr], (instregex "E(P|S)A(I)?R$")>;
1429 def : InstRW<[WLat30, MCD], (instregex "SSA(I)?R$")>;
1430 def : InstRW<[WLat30, MCD], (instregex "ESEA$")>;
1432 //===----------------------------------------------------------------------===//
1433 // System: Prefix-Register Instructions
1434 //===----------------------------------------------------------------------===//
1436 def : InstRW<[WLat30, MCD], (instregex "S(T)?PX$")>;
1438 //===----------------------------------------------------------------------===//
1439 // System: Storage-Key and Real Memory Instructions
1440 //===----------------------------------------------------------------------===//
1442 def : InstRW<[WLat30, MCD], (instregex "ISKE$")>;
1443 def : InstRW<[WLat30, MCD], (instregex "IVSK$")>;
1444 def : InstRW<[WLat30, MCD], (instregex "SSKE(Opt)?$")>;
1445 def : InstRW<[WLat30, MCD], (instregex "RRB(E|M)$")>;
1446 def : InstRW<[WLat30, MCD], (instregex "PFMF$")>;
1447 def : InstRW<[WLat30, WLat30, MCD], (instregex "TB$")>;
1448 def : InstRW<[WLat30, MCD], (instregex "PGIN$")>;
1449 def : InstRW<[WLat30, MCD], (instregex "PGOUT$")>;
1451 //===----------------------------------------------------------------------===//
1452 // System: Dynamic-Address-Translation Instructions
1453 //===----------------------------------------------------------------------===//
1455 def : InstRW<[WLat30, MCD], (instregex "IPTE(Opt)?(Opt)?$")>;
1456 def : InstRW<[WLat30, MCD], (instregex "IDTE(Opt)?$")>;
1457 def : InstRW<[WLat30, MCD], (instregex "CRDTE(Opt)?$")>;
1458 def : InstRW<[WLat30, MCD], (instregex "PTLB$")>;
1459 def : InstRW<[WLat30, WLat30, MCD], (instregex "CSP(G)?$")>;
1460 def : InstRW<[WLat30, WLat30, WLat30, MCD], (instregex "LPTEA$")>;
1461 def : InstRW<[WLat30, WLat30, MCD], (instregex "LRA(Y|G)?$")>;
1462 def : InstRW<[WLat30, MCD], (instregex "STRAG$")>;
1463 def : InstRW<[WLat30, MCD], (instregex "LURA(G)?$")>;
1464 def : InstRW<[WLat30, MCD], (instregex "STUR(A|G)$")>;
1465 def : InstRW<[WLat30, MCD], (instregex "TPROT$")>;
1467 //===----------------------------------------------------------------------===//
1468 // System: Memory-move Instructions
1469 //===----------------------------------------------------------------------===//
1471 def : InstRW<[WLat4LSU, FXa2, FXb, LSU5, GroupAlone2], (instregex "MVC(K|P|S)$")>;
1472 def : InstRW<[WLat1, FXa, LSU5, GroupAlone2], (instregex "MVC(S|D)K$")>;
1473 def : InstRW<[WLat30, MCD], (instregex "MVCOS$")>;
1474 def : InstRW<[WLat30, MCD], (instregex "MVPG$")>;
1476 //===----------------------------------------------------------------------===//
1477 // System: Address-Space Instructions
1478 //===----------------------------------------------------------------------===//
1480 def : InstRW<[WLat30, MCD], (instregex "LASP$")>;
1481 def : InstRW<[WLat1, LSU, GroupAlone], (instregex "PALB$")>;
1482 def : InstRW<[WLat30, MCD], (instregex "PC$")>;
1483 def : InstRW<[WLat30, MCD], (instregex "PR$")>;
1484 def : InstRW<[WLat30, MCD], (instregex "PT(I)?$")>;
1485 def : InstRW<[WLat30, MCD], (instregex "RP$")>;
1486 def : InstRW<[WLat30, MCD], (instregex "BS(G|A)$")>;
1487 def : InstRW<[WLat30, MCD], (instregex "TAR$")>;
1489 //===----------------------------------------------------------------------===//
1490 // System: Linkage-Stack Instructions
1491 //===----------------------------------------------------------------------===//
1493 def : InstRW<[WLat30, MCD], (instregex "BAKR$")>;
1494 def : InstRW<[WLat30, MCD], (instregex "EREG(G)?$")>;
1495 def : InstRW<[WLat30, WLat30, MCD], (instregex "(E|M)STA$")>;
1497 //===----------------------------------------------------------------------===//
1498 // System: Time-Related Instructions
1499 //===----------------------------------------------------------------------===//
1501 def : InstRW<[WLat30, MCD], (instregex "PTFF$")>;
1502 def : InstRW<[WLat30, MCD], (instregex "SCK(PF|C)?$")>;
1503 def : InstRW<[WLat1, LSU2, GroupAlone], (instregex "SPT$")>;
1504 def : InstRW<[WLat15, LSU3, FXa2, FXb, GroupAlone2], (instregex "STCK(F)?$")>;
1505 def : InstRW<[WLat20, LSU4, FXa2, FXb2, GroupAlone3], (instregex "STCKE$")>;
1506 def : InstRW<[WLat30, MCD], (instregex "STCKC$")>;
1507 def : InstRW<[WLat1, LSU2, FXb, Cracked], (instregex "STPT$")>;
1509 //===----------------------------------------------------------------------===//
1510 // System: CPU-Related Instructions
1511 //===----------------------------------------------------------------------===//
1513 def : InstRW<[WLat30, MCD], (instregex "STAP$")>;
1514 def : InstRW<[WLat30, MCD], (instregex "STIDP$")>;
1515 def : InstRW<[WLat30, WLat30, MCD], (instregex "STSI$")>;
1516 def : InstRW<[WLat30, WLat30, MCD], (instregex "STFL(E)?$")>;
1517 def : InstRW<[WLat30, MCD], (instregex "ECAG$")>;
1518 def : InstRW<[WLat30, WLat30, MCD], (instregex "ECTG$")>;
1519 def : InstRW<[WLat30, MCD], (instregex "PTF$")>;
1520 def : InstRW<[WLat30, MCD], (instregex "PCKMO$")>;
1522 //===----------------------------------------------------------------------===//
1523 // System: Miscellaneous Instructions
1524 //===----------------------------------------------------------------------===//
1526 def : InstRW<[WLat30, MCD], (instregex "SVC$")>;
1527 def : InstRW<[WLat1, FXb, GroupAlone], (instregex "MC$")>;
1528 def : InstRW<[WLat30, MCD], (instregex "DIAG$")>;
1529 def : InstRW<[WLat1, FXb, NormalGr], (instregex "TRAC(E|G)$")>;
1530 def : InstRW<[WLat30, MCD], (instregex "TRAP(2|4)$")>;
1531 def : InstRW<[WLat30, MCD], (instregex "SIG(P|A)$")>;
1532 def : InstRW<[WLat30, MCD], (instregex "SIE$")>;
1534 //===----------------------------------------------------------------------===//
1535 // System: CPU-Measurement Facility Instructions
1536 //===----------------------------------------------------------------------===//
1538 def : InstRW<[WLat1, FXb, NormalGr], (instregex "LPP$")>;
1539 def : InstRW<[WLat30, WLat30, MCD], (instregex "ECPGA$")>;
1540 def : InstRW<[WLat30, WLat30, MCD], (instregex "E(C|P)CTR$")>;
1541 def : InstRW<[WLat30, MCD], (instregex "LCCTL$")>;
1542 def : InstRW<[WLat30, MCD], (instregex "L(P|S)CTL$")>;
1543 def : InstRW<[WLat30, MCD], (instregex "Q(S|CTR)I$")>;
1544 def : InstRW<[WLat30, MCD], (instregex "S(C|P)CTR$")>;
1546 //===----------------------------------------------------------------------===//
1547 // System: I/O Instructions
1548 //===----------------------------------------------------------------------===//
1550 def : InstRW<[WLat30, MCD], (instregex "(C|H|R|X)SCH$")>;
1551 def : InstRW<[WLat30, MCD], (instregex "(M|S|ST|T)SCH$")>;
1552 def : InstRW<[WLat30, MCD], (instregex "RCHP$")>;
1553 def : InstRW<[WLat30, MCD], (instregex "SCHM$")>;
1554 def : InstRW<[WLat30, MCD], (instregex "STC(PS|RW)$")>;
1555 def : InstRW<[WLat30, MCD], (instregex "TPI$")>;
1556 def : InstRW<[WLat30, MCD], (instregex "SAL$")>;