1 //=- AArch64SchedExynosM3.td - Samsung Exynos M3 Sched Defs --*- 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 the Samsung Exynos M3 to support
10 // instruction scheduling and other instruction cost heuristics.
12 //===----------------------------------------------------------------------===//
14 //===----------------------------------------------------------------------===//
15 // The Exynos-M3 is an advanced superscalar microprocessor with a 6-wide
16 // in-order stage for decode and dispatch and a wider issue stage.
17 // The execution units and loads and stores are out-of-order.
19 def ExynosM3Model : SchedMachineModel {
20 let IssueWidth = 6; // Up to 6 uops per cycle.
21 let MicroOpBufferSize = 228; // ROB size.
22 let LoopMicroOpBufferSize = 40; // Based on the instruction queue size.
23 let LoadLatency = 4; // Optimistic load cases.
24 let MispredictPenalty = 16; // Minimum branch misprediction penalty.
25 let CompleteModel = 1; // Use the default model otherwise.
27 list<Predicate> UnsupportedFeatures = !listconcat(SVEUnsupported.F,
33 //===----------------------------------------------------------------------===//
34 // Define each kind of processor resource and number available on the Exynos-M3,
35 // which has 12 pipelines, each with its own queue with out-of-order dispatch.
37 let SchedModel = ExynosM3Model in {
39 def M3UnitA : ProcResource<2>; // Simple integer
40 def M3UnitC : ProcResource<2>; // Simple and complex integer
41 def M3UnitD : ProcResource<1>; // Integer division (inside C0, serialized)
42 def M3UnitB : ProcResource<2>; // Branch
43 def M3UnitL : ProcResource<2>; // Load
44 def M3UnitS : ProcResource<1>; // Store
45 def M3PipeF0 : ProcResource<1>; // FP #0
46 let Super = M3PipeF0 in {
47 def M3UnitFMAC0 : ProcResource<1>; // FP multiplication
48 def M3UnitFADD0 : ProcResource<1>; // Simple FP
49 def M3UnitFCVT0 : ProcResource<1>; // FP conversion
50 def M3UnitFSQR : ProcResource<2>; // FP square root (serialized)
51 def M3UnitNALU0 : ProcResource<1>; // Simple vector
52 def M3UnitNMSC : ProcResource<1>; // FP and vector miscellanea
53 def M3UnitNSHT0 : ProcResource<1>; // Vector shifting
54 def M3UnitNSHF0 : ProcResource<1>; // Vector shuffling
56 def M3PipeF1 : ProcResource<1>; // FP #1
57 let Super = M3PipeF1 in {
58 def M3UnitFMAC1 : ProcResource<1>; // FP multiplication
59 def M3UnitFADD1 : ProcResource<1>; // Simple FP
60 def M3UnitFDIV0 : ProcResource<2>; // FP division (serialized)
61 def M3UnitFCVT1 : ProcResource<1>; // FP conversion
62 def M3UnitFST0 : ProcResource<1>; // FP store
63 def M3UnitNALU1 : ProcResource<1>; // Simple vector
64 def M3UnitNCRY0 : ProcResource<1>; // Cryptographic
65 def M3UnitNMUL : ProcResource<1>; // Vector multiplication
66 def M3UnitNSHT1 : ProcResource<1>; // Vector shifting
67 def M3UnitNSHF1 : ProcResource<1>; // Vector shuffling
69 def M3PipeF2 : ProcResource<1>; // FP #2
70 let Super = M3PipeF2 in {
71 def M3UnitFMAC2 : ProcResource<1>; // FP multiplication
72 def M3UnitFADD2 : ProcResource<1>; // Simple FP
73 def M3UnitFDIV1 : ProcResource<2>; // FP division (serialized)
74 def M3UnitFST1 : ProcResource<1>; // FP store
75 def M3UnitNALU2 : ProcResource<1>; // Simple vector
76 def M3UnitNCRY1 : ProcResource<1>; // Cryptographic
77 def M3UnitNSHT2 : ProcResource<1>; // Vector shifting
78 def M3UnitNSHF2 : ProcResource<1>; // Vector shuffling
82 def M3UnitALU : ProcResGroup<[M3UnitA,
84 def M3UnitFMAC : ProcResGroup<[M3UnitFMAC0,
87 def M3UnitFADD : ProcResGroup<[M3UnitFADD0,
90 def M3UnitFDIV : ProcResGroup<[M3UnitFDIV0,
92 def M3UnitFCVT : ProcResGroup<[M3UnitFCVT0,
94 def M3UnitFST : ProcResGroup<[M3UnitFST0,
96 def M3UnitNALU : ProcResGroup<[M3UnitNALU0,
99 def M3UnitNCRY : ProcResGroup<[M3UnitNCRY0,
101 def M3UnitNSHT : ProcResGroup<[M3UnitNSHT0,
104 def M3UnitNSHF : ProcResGroup<[M3UnitNSHF0,
108 //===----------------------------------------------------------------------===//
109 // Coarse scheduling model.
111 def M3WriteZ0 : SchedWriteRes<[]> { let Latency = 0;
112 let NumMicroOps = 1; }
113 def M3WriteZ1 : SchedWriteRes<[]> { let Latency = 1;
114 let NumMicroOps = 0; }
116 def M3WriteA1 : SchedWriteRes<[M3UnitALU]> { let Latency = 1; }
117 def M3WriteAA : SchedWriteRes<[M3UnitALU]> { let Latency = 2;
118 let ReleaseAtCycles = [2]; }
119 def M3WriteAB : SchedWriteRes<[M3UnitALU,
120 M3UnitC]> { let Latency = 1;
121 let NumMicroOps = 2; }
122 def M3WriteAC : SchedWriteRes<[M3UnitALU,
124 M3UnitC]> { let Latency = 2;
125 let NumMicroOps = 3; }
126 def M3WriteAD : SchedWriteRes<[M3UnitALU,
127 M3UnitC]> { let Latency = 2;
128 let NumMicroOps = 2; }
129 def M3WriteC1 : SchedWriteRes<[M3UnitC]> { let Latency = 1; }
130 def M3WriteC2 : SchedWriteRes<[M3UnitC]> { let Latency = 2; }
131 def M3WriteAU : SchedWriteVariant<[SchedVar<IsCopyIdiomPred, [M3WriteZ0]>,
132 SchedVar<ExynosArithPred, [M3WriteA1]>,
133 SchedVar<ExynosLogicPred, [M3WriteA1]>,
134 SchedVar<NoSchedPred, [M3WriteAA]>]>;
135 def M3WriteAV : SchedWriteVariant<[SchedVar<IsCopyIdiomPred, [M3WriteZ0]>,
136 SchedVar<ExynosArithPred, [M3WriteA1]>,
137 SchedVar<NoSchedPred, [M3WriteAA]>]>;
138 def M3WriteAW : SchedWriteVariant<[SchedVar<IsZeroIdiomPred, [M3WriteZ0]>,
139 SchedVar<ExynosLogicPred, [M3WriteA1]>,
140 SchedVar<NoSchedPred, [M3WriteAA]>]>;
141 def M3WriteAX : SchedWriteVariant<[SchedVar<ExynosArithPred, [M3WriteA1]>,
142 SchedVar<ExynosLogicPred, [M3WriteA1]>,
143 SchedVar<NoSchedPred, [M3WriteAA]>]>;
144 def M3WriteAY : SchedWriteVariant<[SchedVar<IsRORImmIdiomPred, [M3WriteA1]>,
145 SchedVar<NoSchedPred, [M3WriteAA]>]>;
147 def M3WriteB1 : SchedWriteRes<[M3UnitB]> { let Latency = 1; }
148 def M3WriteBX : SchedWriteVariant<[SchedVar<ExynosBranchLinkLRPred, [M3WriteAC]>,
149 SchedVar<NoSchedPred, [M3WriteAB]>]>;
151 def M3WriteL4 : SchedWriteRes<[M3UnitL]> { let Latency = 4; }
152 def M3WriteL5 : SchedWriteRes<[M3UnitL]> { let Latency = 5; }
153 def M3WriteLA : SchedWriteRes<[M3UnitL,
154 M3UnitL]> { let Latency = 5;
155 let NumMicroOps = 1; }
156 def M3WriteLB : SchedWriteRes<[M3UnitA,
157 M3UnitL]> { let Latency = 5;
158 let NumMicroOps = 2; }
159 def M3WriteLC : SchedWriteRes<[M3UnitA,
161 M3UnitL]> { let Latency = 5;
162 let NumMicroOps = 2; }
163 def M3WriteLD : SchedWriteRes<[M3UnitA,
164 M3UnitL]> { let Latency = 4;
165 let NumMicroOps = 2; }
166 def M3WriteLE : SchedWriteRes<[M3UnitA,
167 M3UnitL]> { let Latency = 6;
168 let NumMicroOps = 2; }
169 def M3WriteLH : SchedWriteRes<[]> { let Latency = 5;
170 let NumMicroOps = 0; }
171 def M3WriteLX : SchedWriteVariant<[SchedVar<ExynosScaledIdxPred, [M3WriteL5]>,
172 SchedVar<NoSchedPred, [M3WriteL4]>]>;
173 def M3WriteLY : SchedWriteVariant<[SchedVar<ExynosScaledIdxPred, [M3WriteLE]>,
174 SchedVar<NoSchedPred, [M3WriteL5]>]>;
176 def M3WriteS1 : SchedWriteRes<[M3UnitS]> { let Latency = 1; }
177 def M3WriteSA : SchedWriteRes<[M3UnitA,
179 M3UnitFST]> { let Latency = 3;
180 let NumMicroOps = 2; }
181 def M3WriteSB : SchedWriteRes<[M3UnitA,
182 M3UnitS]> { let Latency = 2;
183 let NumMicroOps = 2; }
184 def M3WriteSC : SchedWriteRes<[M3UnitA,
186 M3UnitFST]> { let Latency = 1;
187 let NumMicroOps = 2; }
188 def M3WriteSY : SchedWriteVariant<[SchedVar<ExynosScaledIdxPred, [M3WriteSA]>,
189 SchedVar<NoSchedPred, [WriteVST]>]>;
191 def M3ReadAdrBase : SchedReadVariant<[SchedVar<ExynosScaledIdxPred, [ReadDefault]>,
192 SchedVar<NoSchedPred, [ReadDefault]>]>;
194 // Branch instructions.
195 def : SchedAlias<WriteBr, M3WriteZ0>;
196 def : SchedAlias<WriteBrReg, M3WriteC1>;
198 // Arithmetic and logical integer instructions.
199 def : SchedAlias<WriteI, M3WriteA1>;
200 def : SchedAlias<WriteISReg, M3WriteA1>;
201 def : SchedAlias<WriteIEReg, M3WriteA1>;
202 def : SchedAlias<WriteIS, M3WriteA1>;
204 // Move instructions.
205 def : SchedAlias<WriteImm, M3WriteA1>;
207 // Divide and multiply instructions.
208 def : WriteRes<WriteID32, [M3UnitC,
209 M3UnitD]> { let Latency = 12;
210 let ReleaseAtCycles = [1, 12]; }
211 def : WriteRes<WriteID64, [M3UnitC,
212 M3UnitD]> { let Latency = 21;
213 let ReleaseAtCycles = [1, 21]; }
214 def : WriteRes<WriteIM32, [M3UnitC]> { let Latency = 3; }
215 def : WriteRes<WriteIM64, [M3UnitC]> { let Latency = 4;
216 let ReleaseAtCycles = [2]; }
218 // Miscellaneous instructions.
219 def : SchedAlias<WriteExtr, M3WriteAY>;
222 def : SchedAlias<WriteAdr, M3WriteZ1>;
223 def : SchedAlias<ReadAdrBase, M3ReadAdrBase>;
225 // Load instructions.
226 def : SchedAlias<WriteLD, M3WriteL4>;
227 def : WriteRes<WriteLDHi, []> { let Latency = 4;
228 let NumMicroOps = 0; }
229 def : SchedAlias<WriteLDIdx, M3WriteLB>;
231 // Store instructions.
232 def : SchedAlias<WriteST, M3WriteS1>;
233 def : SchedAlias<WriteSTP, M3WriteS1>;
234 def : SchedAlias<WriteSTX, M3WriteS1>;
235 def : SchedAlias<WriteSTIdx, M3WriteSB>;
237 // FP data instructions.
238 def : WriteRes<WriteF, [M3UnitFADD]> { let Latency = 2; }
239 def : WriteRes<WriteFCmp, [M3UnitNMSC]> { let Latency = 2; }
240 def : WriteRes<WriteFDiv, [M3UnitFDIV]> { let Latency = 12;
241 let ReleaseAtCycles = [12]; }
242 def : WriteRes<WriteFMul, [M3UnitFMAC]> { let Latency = 4; }
244 // FP miscellaneous instructions.
245 def : WriteRes<WriteFCvt, [M3UnitFCVT]> { let Latency = 3; }
246 def : WriteRes<WriteFImm, [M3UnitNALU]> { let Latency = 1; }
247 def : WriteRes<WriteFCopy, [M3UnitNALU]> { let Latency = 1; }
249 // FP load instructions.
250 def : SchedAlias<WriteVLD, M3WriteL5>;
252 // FP store instructions.
253 def : WriteRes<WriteVST, [M3UnitS,
254 M3UnitFST]> { let Latency = 1;
255 let NumMicroOps = 1; }
257 // ASIMD FP instructions.
258 def : WriteRes<WriteVd, [M3UnitNALU]> { let Latency = 3; }
259 def : WriteRes<WriteVq, [M3UnitNALU]> { let Latency = 3; }
261 // Other miscellaneous instructions.
262 def : WriteRes<WriteAtomic, []> { let Unsupported = 1; }
263 def : WriteRes<WriteBarrier, []> { let Latency = 1; }
264 def : WriteRes<WriteHint, []> { let Latency = 1; }
265 def : WriteRes<WriteSys, []> { let Latency = 1; }
267 //===----------------------------------------------------------------------===//
268 // Generic fast forwarding.
270 // TODO: Add FP register forwarding rules.
272 def : ReadAdvance<ReadI, 0>;
273 def : ReadAdvance<ReadISReg, 0>;
274 def : ReadAdvance<ReadIEReg, 0>;
275 def : ReadAdvance<ReadIM, 0>;
276 // TODO: The forwarding for 32 bits actually saves 2 cycles.
277 def : ReadAdvance<ReadIMA, 3, [WriteIM32, WriteIM64]>;
278 def : ReadAdvance<ReadID, 0>;
279 def : ReadAdvance<ReadExtrHi, 0>;
280 def : ReadAdvance<ReadAdrBase, 0>;
281 def : ReadAdvance<ReadVLD, 0>;
282 def : ReadAdvance<ReadST, 0>;
284 //===----------------------------------------------------------------------===//
285 // Finer scheduling model.
287 def M3WriteNEONA : SchedWriteRes<[M3UnitNSHF,
288 M3UnitFADD]> { let Latency = 3;
289 let NumMicroOps = 2; }
290 def M3WriteNEONB : SchedWriteRes<[M3UnitNALU,
291 M3UnitFST]> { let Latency = 10;
292 let NumMicroOps = 2; }
293 def M3WriteNEOND : SchedWriteRes<[M3UnitNSHF,
294 M3UnitFST]> { let Latency = 6;
295 let NumMicroOps = 2; }
296 def M3WriteNEONH : SchedWriteRes<[M3UnitNALU,
297 M3UnitS]> { let Latency = 5;
298 let NumMicroOps = 2; }
299 def M3WriteNEONI : SchedWriteRes<[M3UnitNSHF,
300 M3UnitS]> { let Latency = 5;
301 let NumMicroOps = 2; }
302 def M3WriteNEONV : SchedWriteRes<[M3UnitFDIV0,
303 M3UnitFDIV1]> { let Latency = 7;
305 let ReleaseAtCycles = [8, 8]; }
306 def M3WriteNEONW : SchedWriteRes<[M3UnitFDIV0,
307 M3UnitFDIV1]> { let Latency = 12;
309 let ReleaseAtCycles = [13, 13]; }
310 def M3WriteNEONX : SchedWriteRes<[M3UnitFSQR,
311 M3UnitFSQR]> { let Latency = 18;
313 let ReleaseAtCycles = [19, 19]; }
314 def M3WriteNEONY : SchedWriteRes<[M3UnitFSQR,
315 M3UnitFSQR]> { let Latency = 25;
317 let ReleaseAtCycles = [26, 26]; }
318 def M3WriteNEONZ : SchedWriteRes<[M3UnitNMSC,
319 M3UnitNMSC]> { let Latency = 5;
320 let NumMicroOps = 2; }
321 def M3WriteFADD2 : SchedWriteRes<[M3UnitFADD]> { let Latency = 2; }
322 def M3WriteFCVT2 : SchedWriteRes<[M3UnitFCVT]> { let Latency = 2; }
323 def M3WriteFCVT3 : SchedWriteRes<[M3UnitFCVT]> { let Latency = 3; }
324 def M3WriteFCVT3A : SchedWriteRes<[M3UnitFCVT0]> { let Latency = 3; }
325 def M3WriteFCVT4A : SchedWriteRes<[M3UnitFCVT0]> { let Latency = 4; }
326 def M3WriteFCVT4 : SchedWriteRes<[M3UnitFCVT]> { let Latency = 4; }
327 def M3WriteFDIV10 : SchedWriteRes<[M3UnitFDIV]> { let Latency = 7;
328 let ReleaseAtCycles = [8]; }
329 def M3WriteFDIV12 : SchedWriteRes<[M3UnitFDIV]> { let Latency = 12;
330 let ReleaseAtCycles = [13]; }
331 def M3WriteFMAC3 : SchedWriteRes<[M3UnitFMAC]> { let Latency = 3; }
332 def M3WriteFMAC4 : SchedWriteRes<[M3UnitFMAC]> { let Latency = 4; }
333 def M3WriteFMAC5 : SchedWriteRes<[M3UnitFMAC]> { let Latency = 5; }
334 def M3WriteFSQR17 : SchedWriteRes<[M3UnitFSQR]> { let Latency = 18;
335 let ReleaseAtCycles = [19]; }
336 def M3WriteFSQR25 : SchedWriteRes<[M3UnitFSQR]> { let Latency = 25;
337 let ReleaseAtCycles = [26]; }
338 def M3WriteNALU1 : SchedWriteRes<[M3UnitNALU]> { let Latency = 1; }
339 def M3WriteNCRY1A : SchedWriteRes<[M3UnitNCRY0]> { let Latency = 1; }
340 def M3WriteNCRY3A : SchedWriteRes<[M3UnitNCRY0]> { let Latency = 3; }
341 def M3WriteNCRY5A : SchedWriteRes<[M3UnitNCRY]> { let Latency = 5; }
342 def M3WriteNMSC1 : SchedWriteRes<[M3UnitNMSC]> { let Latency = 1; }
343 def M3WriteNMSC2 : SchedWriteRes<[M3UnitNMSC]> { let Latency = 2; }
344 def M3WriteNMSC3 : SchedWriteRes<[M3UnitNMSC]> { let Latency = 3; }
345 def M3WriteNMUL3 : SchedWriteRes<[M3UnitNMUL]> { let Latency = 3; }
346 def M3WriteNSHF1 : SchedWriteRes<[M3UnitNSHF]> { let Latency = 1; }
347 def M3WriteNSHF3 : SchedWriteRes<[M3UnitNSHF]> { let Latency = 3; }
348 def M3WriteNSHT1 : SchedWriteRes<[M3UnitNSHT]> { let Latency = 1; }
349 def M3WriteNSHT2 : SchedWriteRes<[M3UnitNSHT]> { let Latency = 2; }
350 def M3WriteNSHT3 : SchedWriteRes<[M3UnitNSHT]> { let Latency = 3; }
351 def M3WriteVLDA : SchedWriteRes<[M3UnitL,
352 M3UnitL]> { let Latency = 5;
353 let NumMicroOps = 2; }
354 def M3WriteVLDB : SchedWriteRes<[M3UnitL,
356 M3UnitL]> { let Latency = 6;
357 let NumMicroOps = 3; }
358 def M3WriteVLDC : SchedWriteRes<[M3UnitL,
361 M3UnitL]> { let Latency = 6;
362 let NumMicroOps = 4; }
363 def M3WriteVLDD : SchedWriteRes<[M3UnitL,
364 M3UnitNALU]> { let Latency = 7;
366 let ReleaseAtCycles = [2, 1]; }
367 def M3WriteVLDE : SchedWriteRes<[M3UnitL,
368 M3UnitNALU]> { let Latency = 6;
370 let ReleaseAtCycles = [2, 1]; }
371 def M3WriteVLDF : SchedWriteRes<[M3UnitL,
372 M3UnitL]> { let Latency = 10;
374 let ReleaseAtCycles = [5, 5]; }
375 def M3WriteVLDG : SchedWriteRes<[M3UnitL,
377 M3UnitNALU]> { let Latency = 7;
379 let ReleaseAtCycles = [2, 1, 1]; }
380 def M3WriteVLDH : SchedWriteRes<[M3UnitL,
382 M3UnitNALU]> { let Latency = 6;
384 let ReleaseAtCycles = [2, 1, 1]; }
385 def M3WriteVLDI : SchedWriteRes<[M3UnitL,
387 M3UnitL]> { let Latency = 12;
389 let ReleaseAtCycles = [6, 6, 6]; }
390 def M3WriteVLDJ : SchedWriteRes<[M3UnitL,
393 M3UnitNALU]> { let Latency = 7;
395 let ReleaseAtCycles = [2, 1, 1, 1]; }
396 def M3WriteVLDK : SchedWriteRes<[M3UnitL,
400 M3UnitNALU]> { let Latency = 9;
402 let ReleaseAtCycles = [4, 1, 1, 1, 1]; }
403 def M3WriteVLDL : SchedWriteRes<[M3UnitL,
407 M3UnitNALU]> { let Latency = 6;
409 let ReleaseAtCycles = [6, 1, 1, 6, 1]; }
410 def M3WriteVLDM : SchedWriteRes<[M3UnitL,
415 M3UnitNALU]> { let Latency = 7;
417 let ReleaseAtCycles = [6, 1, 1, 6, 1, 1]; }
418 def M3WriteVLDN : SchedWriteRes<[M3UnitL,
421 M3UnitL]> { let Latency = 14;
423 let ReleaseAtCycles = [6, 6, 6, 6]; }
424 def M3WriteVSTA : WriteSequence<[WriteVST], 2>;
425 def M3WriteVSTB : WriteSequence<[WriteVST], 3>;
426 def M3WriteVSTC : WriteSequence<[WriteVST], 4>;
427 def M3WriteVSTD : SchedWriteRes<[M3UnitS,
430 M3UnitFST]> { let Latency = 7;
432 let ReleaseAtCycles = [1, 3, 1, 3]; }
433 def M3WriteVSTE : SchedWriteRes<[M3UnitS,
438 M3UnitFST]> { let Latency = 8;
440 let ReleaseAtCycles = [1, 3, 1, 3, 1, 3]; }
441 def M3WriteVSTF : SchedWriteRes<[M3UnitNALU,
447 M3UnitFST]> { let Latency = 15;
449 let ReleaseAtCycles = [1, 3, 3, 1, 3, 1, 3]; }
450 def M3WriteVSTG : SchedWriteRes<[M3UnitNALU,
458 M3UnitFST]> { let Latency = 16;
460 let ReleaseAtCycles = [1, 3, 3, 1, 3, 1, 3, 1, 3]; }
461 def M3WriteVSTH : SchedWriteRes<[M3UnitNALU,
465 M3UnitFST]> { let Latency = 14;
467 let ReleaseAtCycles = [1, 3, 3, 1, 3]; }
468 def M3WriteVSTI : SchedWriteRes<[M3UnitNALU,
476 M3UnitFST]> { let Latency = 17;
478 let ReleaseAtCycles = [1, 3, 3, 1, 3, 1, 3, 1, 3]; }
481 def M3WriteAES : SchedWriteRes<[M3UnitNCRY]> { let Latency = 1; }
482 def M3WriteCOPY : SchedWriteVariant<[SchedVar<ExynosFPPred, [M3WriteNALU1]>,
483 SchedVar<NoSchedPred, [M3WriteZ0]>]>;
484 def M3WriteMOVI : SchedWriteVariant<[SchedVar<IsZeroFPIdiomPred, [M3WriteZ0]>,
485 SchedVar<NoSchedPred, [M3WriteNALU1]>]>;
488 def M3ReadAES : SchedReadAdvance<1, [M3WriteAES]>;
489 def M3ReadFMAC : SchedReadAdvance<1, [M3WriteFMAC4,
491 def M3ReadNMUL : SchedReadAdvance<1, [M3WriteNMUL3]>;
493 // Branch instructions
494 def : InstRW<[M3WriteB1], (instrs Bcc)>;
495 def : InstRW<[M3WriteA1], (instrs BL)>;
496 def : InstRW<[M3WriteBX], (instrs BLR)>;
497 def : InstRW<[M3WriteC1], (instregex "^CBN?Z[WX]")>;
498 def : InstRW<[M3WriteAD], (instregex "^TBN?Z[WX]")>;
500 // Arithmetic and logical integer instructions.
501 def : InstRW<[M3WriteAX], (instregex "^(ADD|AND|BIC|EON|EOR|ORN|SUB)[WX]rs$")>;
502 def : InstRW<[M3WriteAU], (instrs ORRWrs, ORRXrs)>;
503 def : InstRW<[M3WriteAX], (instregex "^(ADD|SUB)S?[WX]rx(64)?$")>;
504 def : InstRW<[M3WriteAX], (instregex "^(ADD|AND|BIC|SUB)S[WX]rs$")>;
505 def : InstRW<[M3WriteAV], (instrs ADDWri, ADDXri)>;
506 def : InstRW<[M3WriteAW], (instrs ORRWri, ORRXri)>;
508 // Move instructions.
509 def : InstRW<[M3WriteCOPY], (instrs COPY)>;
510 def : InstRW<[M3WriteZ0], (instrs ADR, ADRP)>;
511 def : InstRW<[M3WriteZ0], (instregex "^MOV[NZ][WX]i")>;
513 // Divide and multiply instructions.
515 // Miscellaneous instructions.
517 // Load instructions.
518 def : InstRW<[M3WriteLD,
520 WriteAdr], (instregex "^LDP(SW|W|X)(post|pre)")>;
521 def : InstRW<[M3WriteLB,
522 ReadAdrBase], (instregex "^LDR(BB|SBW|SBX|HH|SHW|SHX|SW|W|X)roW")>;
523 def : InstRW<[M3WriteLX,
524 ReadAdrBase], (instregex "^LDR(BB|SBW|SBX|HH|SHW|SHX|SW|W|X)roX")>;
525 def : InstRW<[M3WriteLB,
526 ReadAdrBase], (instrs PRFMroW)>;
527 def : InstRW<[M3WriteLX,
528 ReadAdrBase], (instrs PRFMroX)>;
530 // Store instructions.
531 def : InstRW<[M3WriteSB,
532 ReadAdrBase], (instregex "^STR(BB|HH|W|X)roW")>;
533 def : InstRW<[WriteST,
534 ReadAdrBase], (instregex "^STR(BB|HH|W|X)roX")>;
536 // FP data instructions.
537 def : InstRW<[M3WriteNSHF1], (instregex "^FABS[DS]r")>;
538 def : InstRW<[M3WriteFADD2], (instregex "^F(ADD|SUB)[DS]rr")>;
539 def : InstRW<[M3WriteFDIV10], (instrs FDIVSrr)>;
540 def : InstRW<[M3WriteFDIV12], (instrs FDIVDrr)>;
541 def : InstRW<[M3WriteNMSC1], (instregex "^F(MAX|MIN).+rr")>;
542 def : InstRW<[M3WriteFMAC3], (instregex "^FN?MUL[DS]rr")>;
543 def : InstRW<[M3WriteFMAC4,
544 M3ReadFMAC], (instregex "^FN?M(ADD|SUB)[DS]rrr")>;
545 def : InstRW<[M3WriteNALU1], (instregex "^FNEG[DS]r")>;
546 def : InstRW<[M3WriteFCVT3A], (instregex "^FRINT.+r")>;
547 def : InstRW<[M3WriteNEONH], (instregex "^FCSEL[DS]rrr")>;
548 def : InstRW<[M3WriteFSQR17], (instrs FSQRTSr)>;
549 def : InstRW<[M3WriteFSQR25], (instrs FSQRTDr)>;
551 // FP miscellaneous instructions.
552 def : InstRW<[M3WriteFCVT3], (instregex "^FCVT[DHS][DHS]r")>;
553 def : InstRW<[M3WriteFCVT4A], (instregex "^[SU]CVTF[SU][XW][DHS]ri")>;
554 def : InstRW<[M3WriteFCVT3A], (instregex "^FCVT[AMNPZ][SU]U[XW][DHS]r")>;
555 def : InstRW<[M3WriteFCVT3A], (instregex "^FCVTZ[SU][dhs]")>;
556 def : InstRW<[M3WriteNALU1], (instregex "^FMOV[DS][ir]")>;
557 def : InstRW<[M3WriteFCVT4], (instregex "^[FU](RECP|RSQRT)Ev1")>;
558 def : InstRW<[M3WriteNMSC1], (instregex "^FRECPXv1")>;
559 def : InstRW<[M3WriteFMAC4,
560 M3ReadFMAC], (instregex "^F(RECP|RSQRT)S(16|32|64)")>;
561 def : InstRW<[M3WriteNALU1], (instregex "^FMOV[WX][DS]r")>;
562 def : InstRW<[M3WriteNALU1], (instregex "^FMOV[DS][WX]r")>;
563 def : InstRW<[M3WriteNEONI], (instregex "^FMOV(DX|XD)Highr")>;
565 // FP load instructions.
566 def : InstRW<[WriteVLD], (instregex "^LDR[DSQ]l")>;
567 def : InstRW<[WriteVLD], (instregex "^LDUR[BDHSQ]i")>;
568 def : InstRW<[WriteVLD,
569 WriteAdr], (instregex "^LDR[BDHSQ](post|pre)")>;
570 def : InstRW<[WriteVLD], (instregex "^LDR[BDHSQ]ui")>;
571 def : InstRW<[M3WriteLE,
572 ReadAdrBase], (instregex "^LDR[BDHS]roW")>;
573 def : InstRW<[WriteVLD,
574 ReadAdrBase], (instregex "^LDR[BDHS]roX")>;
575 def : InstRW<[M3WriteLY,
576 ReadAdrBase], (instregex "^LDRQro[WX]")>;
577 def : InstRW<[WriteVLD,
578 M3WriteLH], (instregex "^LDN?P[DS]i")>;
579 def : InstRW<[M3WriteLA,
580 M3WriteLH], (instregex "^LDN?PQi")>;
581 def : InstRW<[M3WriteLB,
583 WriteAdr], (instregex "^LDP[DS](post|pre)")>;
584 def : InstRW<[M3WriteLC,
586 WriteAdr], (instregex "^LDPQ(post|pre)")>;
588 // FP store instructions.
589 def : InstRW<[WriteVST], (instregex "^STUR[BDHSQ]i")>;
590 def : InstRW<[WriteVST,
591 WriteAdr], (instregex "^STR[BDHSQ](post|pre)")>;
592 def : InstRW<[WriteVST], (instregex "^STR[BDHSQ]ui")>;
593 def : InstRW<[M3WriteSA,
594 ReadAdrBase], (instregex "^STR[BDHS]roW")>;
595 def : InstRW<[M3WriteSA,
596 ReadAdrBase], (instregex "^STRQroW")>;
597 def : InstRW<[WriteVST,
598 ReadAdrBase], (instregex "^STR[BDHS]roX")>;
599 def : InstRW<[M3WriteSY,
600 ReadAdrBase], (instregex "^STRQroX")>;
601 def : InstRW<[WriteVST], (instregex "^STN?P[DSQ]i")>;
602 def : InstRW<[WriteVST,
603 WriteAdr], (instregex "^STP[DS](post|pre)")>;
604 def : InstRW<[M3WriteSC,
605 WriteAdr], (instregex "^STPQ(post|pre)")>;
607 // ASIMD instructions.
608 def : InstRW<[M3WriteNMSC3], (instregex "^[SU]ABAL?v")>;
609 def : InstRW<[M3WriteNMSC1], (instregex "^[SU]ABDL?v")>;
610 def : InstRW<[M3WriteNMSC1], (instregex "^((SQ)?ABS|SQNEG)v")>;
611 def : InstRW<[M3WriteNALU1], (instregex "^(ADD|NEG|SUB)v")>;
612 def : InstRW<[M3WriteNMSC3], (instregex "^[SU]?ADDL?Pv")>;
613 def : InstRW<[M3WriteNMSC3], (instregex "^[SU]H(ADD|SUB)v")>;
614 def : InstRW<[M3WriteNMSC3], (instregex "^[SU](ADD|SUB)[LW]V?v")>;
615 def : InstRW<[M3WriteNMSC3], (instregex "^R?(ADD|SUB)HN2?v")>;
616 def : InstRW<[M3WriteNMSC3], (instregex "^[SU]Q(ADD|SUB)v")>;
617 def : InstRW<[M3WriteNMSC3], (instregex "^(SU|US)QADDv")>;
618 def : InstRW<[M3WriteNMSC3], (instregex "^[SU]RHADDv")>;
619 def : InstRW<[M3WriteNMSC1], (instregex "^CM(EQ|GE|GT|HI|HS|LE|LT)v")>;
620 def : InstRW<[M3WriteNALU1], (instregex "^CMTSTv")>;
621 def : InstRW<[M3WriteNALU1], (instregex "^(AND|BIC|EOR|MVNI|NOT|ORN|ORR)v")>;
622 def : InstRW<[M3WriteNMSC1], (instregex "^[SU](MIN|MAX)v")>;
623 def : InstRW<[M3WriteNMSC2], (instregex "^[SU](MIN|MAX)Pv")>;
624 def : InstRW<[M3WriteNMSC3], (instregex "^[SU](MIN|MAX)Vv")>;
625 def : InstRW<[M3WriteNMUL3], (instregex "^(MUL|SQR?DMULH)v")>;
626 def : InstRW<[M3WriteNMUL3,
627 M3ReadNMUL], (instregex "^ML[AS]v")>;
628 def : InstRW<[M3WriteNMUL3], (instregex "^[SU]ML[AS]Lv")>;
629 def : InstRW<[M3WriteNMUL3], (instregex "^SQDML[AS]L")>;
630 def : InstRW<[M3WriteNMUL3], (instregex "^(S|U|SQD)MULLv")>;
631 def : InstRW<[M3WriteNMSC3], (instregex "^[SU]ADALPv")>;
632 def : InstRW<[M3WriteNSHT3], (instregex "^[SU]R?SRAv")>;
633 def : InstRW<[M3WriteNSHT1], (instregex "^SHL[dv]")>;
634 def : InstRW<[M3WriteNSHT1], (instregex "^[SU]SH[LR][dv]")>;
635 def : InstRW<[M3WriteNSHT1], (instregex "^S[RS]I[dv]")>;
636 def : InstRW<[M3WriteNSHT2], (instregex "^[SU]?SHLLv")>;
637 def : InstRW<[M3WriteNSHT3], (instregex "^(([SU]Q)?R)?SHRU?N[bhsv]")>;
638 def : InstRW<[M3WriteNSHT3], (instregex "^[SU]RSH[LR][dv]")>;
639 def : InstRW<[M3WriteNSHT3], (instregex "^[SU]QR?SHLU?[bdhsv]")>;
641 // ASIMD FP instructions.
642 def : InstRW<[M3WriteNSHF1], (instregex "^FABSv")>;
643 def : InstRW<[M3WriteFADD2], (instregex "^F(ABD|ADD|SUB)v")>;
644 def : InstRW<[M3WriteNEONA], (instregex "^FADDP")>;
645 def : InstRW<[M3WriteNMSC1], (instregex "^F(AC|CM)(EQ|GE|GT|LE|LT)v[^1]")>;
646 def : InstRW<[M3WriteFCVT3], (instregex "^FCVT(L|N|XN)v")>;
647 def : InstRW<[M3WriteFCVT2], (instregex "^FCVT[AMNPZ][SU]v")>;
648 def : InstRW<[M3WriteFCVT2], (instregex "^[SU]CVTFv")>;
649 def : InstRW<[M3WriteFDIV10], (instrs FDIVv2f32)>;
650 def : InstRW<[M3WriteNEONV], (instrs FDIVv4f32)>;
651 def : InstRW<[M3WriteNEONW], (instrs FDIVv2f64)>;
652 def : InstRW<[M3WriteNMSC1], (instregex "^F(MAX|MIN)(NM)?v")>;
653 def : InstRW<[M3WriteNMSC2], (instregex "^F(MAX|MIN)(NM)?Pv")>;
654 def : InstRW<[M3WriteNEONZ], (instregex "^F(MAX|MIN)(NM)?Vv")>;
655 def : InstRW<[M3WriteFMAC3], (instregex "^FMULX?v.[fi]")>;
656 def : InstRW<[M3WriteFMAC4,
657 M3ReadFMAC], (instregex "^FML[AS]v.f")>;
658 def : InstRW<[M3WriteFMAC5,
659 M3ReadFMAC], (instregex "^FML[AS]v.i")>;
660 def : InstRW<[M3WriteNALU1], (instregex "^FNEGv")>;
661 def : InstRW<[M3WriteFCVT3A], (instregex "^FRINT[AIMNPXZ]v")>;
662 def : InstRW<[M3WriteFSQR17], (instrs FSQRTv2f32)>;
663 def : InstRW<[M3WriteNEONX], (instrs FSQRTv4f32)>;
664 def : InstRW<[M3WriteNEONY], (instrs FSQRTv2f64)>;
666 // ASIMD miscellaneous instructions.
667 def : InstRW<[M3WriteNALU1], (instregex "^RBITv")>;
668 def : InstRW<[M3WriteNALU1], (instregex "^(BIF|BIT|BSL|BSP)v")>;
669 def : InstRW<[M3WriteNEONB], (instregex "^DUPv.+gpr")>;
670 def : InstRW<[M3WriteNSHF1], (instregex "^DUPv.+lane")>;
671 def : InstRW<[M3WriteNSHF1], (instregex "^EXTv")>;
672 def : InstRW<[M3WriteNSHF1], (instregex "^[SU]?Q?XTU?Nv")>;
673 def : InstRW<[M3WriteNSHF1], (instregex "^DUP(i8|i16|i32|i64)$")>;
674 def : InstRW<[M3WriteNSHF1], (instregex "^INSv.+lane")>;
675 def : InstRW<[M3WriteMOVI], (instregex "^MOVI")>;
676 def : InstRW<[M3WriteNALU1], (instregex "^FMOVv")>;
677 def : InstRW<[M3WriteFCVT4], (instregex "^[FU](RECP|RSQRT)Ev[248]")>;
678 def : InstRW<[M3WriteFMAC4,
679 M3ReadFMAC], (instregex "^F(RECP|RSQRT)Sv")>;
680 def : InstRW<[M3WriteNSHF1], (instregex "^REV(16|32|64)v")>;
681 def : InstRW<[M3WriteNSHF1], (instregex "^TB[LX]v")>;
682 def : InstRW<[M3WriteNEOND], (instregex "^[SU]MOVv")>;
683 def : InstRW<[M3WriteNSHF3], (instregex "^INSv.+gpr")>;
684 def : InstRW<[M3WriteNSHF1], (instregex "^(TRN|UZP|ZIP)[12]v")>;
686 // ASIMD load instructions.
687 def : InstRW<[M3WriteL5], (instregex "LD1Onev(8b|4h|2s|1d)$")>;
688 def : InstRW<[M3WriteL5,
689 M3WriteA1], (instregex "LD1Onev(8b|4h|2s|1d)_POST")>;
690 def : InstRW<[M3WriteL5], (instregex "LD1Onev(16b|8h|4s|2d)$")>;
691 def : InstRW<[M3WriteL5,
692 M3WriteA1], (instregex "LD1Onev(16b|8h|4s|2d)_POST")>;
694 def : InstRW<[M3WriteVLDA], (instregex "LD1Twov(8b|4h|2s|1d)$")>;
695 def : InstRW<[M3WriteVLDA,
696 M3WriteA1], (instregex "LD1Twov(8b|4h|2s|1d)_POST")>;
697 def : InstRW<[M3WriteVLDA], (instregex "LD1Twov(16b|8h|4s|2d)$")>;
698 def : InstRW<[M3WriteVLDA,
699 M3WriteA1], (instregex "LD1Twov(16b|8h|4s|2d)_POST")>;
701 def : InstRW<[M3WriteVLDB], (instregex "LD1Threev(8b|4h|2s|1d)$")>;
702 def : InstRW<[M3WriteVLDB,
703 M3WriteA1], (instregex "LD1Threev(8b|4h|2s|1d)_POST")>;
704 def : InstRW<[M3WriteVLDB], (instregex "LD1Threev(16b|8h|4s|2d)$")>;
705 def : InstRW<[M3WriteVLDB,
706 M3WriteA1], (instregex "LD1Threev(16b|8h|4s|2d)_POST")>;
708 def : InstRW<[M3WriteVLDC], (instregex "LD1Fourv(8b|4h|2s|1d)$")>;
709 def : InstRW<[M3WriteVLDC,
710 M3WriteA1], (instregex "LD1Fourv(8b|4h|2s|1d)_POST")>;
711 def : InstRW<[M3WriteVLDC], (instregex "LD1Fourv(16b|8h|4s|2d)$")>;
712 def : InstRW<[M3WriteVLDC,
713 M3WriteA1], (instregex "LD1Fourv(16b|8h|4s|2d)_POST")>;
715 def : InstRW<[M3WriteVLDD], (instregex "LD1i(8|16|32)$")>;
716 def : InstRW<[M3WriteVLDD,
717 M3WriteA1], (instregex "LD1i(8|16|32)_POST")>;
718 def : InstRW<[M3WriteVLDE], (instregex "LD1i(64)$")>;
719 def : InstRW<[M3WriteVLDE,
720 M3WriteA1], (instregex "LD1i(64)_POST")>;
722 def : InstRW<[M3WriteL5], (instregex "LD1Rv(8b|4h|2s|1d)$")>;
723 def : InstRW<[M3WriteL5,
724 M3WriteA1], (instregex "LD1Rv(8b|4h|2s|1d)_POST")>;
725 def : InstRW<[M3WriteL5], (instregex "LD1Rv(16b|8h|4s|2d)$")>;
726 def : InstRW<[M3WriteL5,
727 M3WriteA1], (instregex "LD1Rv(16b|8h|4s|2d)_POST")>;
729 def : InstRW<[M3WriteVLDF], (instregex "LD2Twov(8b|4h|2s)$")>;
730 def : InstRW<[M3WriteVLDF,
731 M3WriteA1], (instregex "LD2Twov(8b|4h|2s)_POST")>;
732 def : InstRW<[M3WriteVLDF], (instregex "LD2Twov(16b|8h|4s|2d)$")>;
733 def : InstRW<[M3WriteVLDF,
734 M3WriteA1], (instregex "LD2Twov(16b|8h|4s|2d)_POST")>;
736 def : InstRW<[M3WriteVLDG], (instregex "LD2i(8|16|32)$")>;
737 def : InstRW<[M3WriteVLDG,
738 M3WriteA1], (instregex "LD2i(8|16|32)_POST")>;
739 def : InstRW<[M3WriteVLDH], (instregex "LD2i(64)$")>;
740 def : InstRW<[M3WriteVLDH,
741 M3WriteA1], (instregex "LD2i(64)_POST")>;
743 def : InstRW<[M3WriteVLDA], (instregex "LD2Rv(8b|4h|2s|1d)$")>;
744 def : InstRW<[M3WriteVLDA,
745 M3WriteA1], (instregex "LD2Rv(8b|4h|2s|1d)_POST")>;
746 def : InstRW<[M3WriteVLDA], (instregex "LD2Rv(16b|8h|4s|2d)$")>;
747 def : InstRW<[M3WriteVLDA,
748 M3WriteA1], (instregex "LD2Rv(16b|8h|4s|2d)_POST")>;
750 def : InstRW<[M3WriteVLDI], (instregex "LD3Threev(8b|4h|2s)$")>;
751 def : InstRW<[M3WriteVLDI,
752 M3WriteA1], (instregex "LD3Threev(8b|4h|2s)_POST")>;
753 def : InstRW<[M3WriteVLDI], (instregex "LD3Threev(16b|8h|4s|2d)$")>;
754 def : InstRW<[M3WriteVLDI,
755 M3WriteA1], (instregex "LD3Threev(16b|8h|4s|2d)_POST")>;
757 def : InstRW<[M3WriteVLDJ], (instregex "LD3i(8|16|32)$")>;
758 def : InstRW<[M3WriteVLDJ,
759 M3WriteA1], (instregex "LD3i(8|16|32)_POST")>;
760 def : InstRW<[M3WriteVLDL], (instregex "LD3i(64)$")>;
761 def : InstRW<[M3WriteVLDL,
762 M3WriteA1], (instregex "LD3i(64)_POST")>;
764 def : InstRW<[M3WriteVLDB], (instregex "LD3Rv(8b|4h|2s|1d)$")>;
765 def : InstRW<[M3WriteVLDB,
766 M3WriteA1], (instregex "LD3Rv(8b|4h|2s|1d)_POST")>;
767 def : InstRW<[M3WriteVLDB], (instregex "LD3Rv(16b|8h|4s|2d)$")>;
768 def : InstRW<[M3WriteVLDB,
769 M3WriteA1], (instregex "LD3Rv(16b|8h|4s|2d)_POST")>;
771 def : InstRW<[M3WriteVLDN], (instregex "LD4Fourv(8b|4h|2s)$")>;
772 def : InstRW<[M3WriteVLDN,
773 M3WriteA1], (instregex "LD4Fourv(8b|4h|2s)_POST")>;
774 def : InstRW<[M3WriteVLDN], (instregex "LD4Fourv(16b|8h|4s|2d)$")>;
775 def : InstRW<[M3WriteVLDN,
776 M3WriteA1], (instregex "LD4Fourv(16b|8h|4s|2d)_POST")>;
778 def : InstRW<[M3WriteVLDK], (instregex "LD4i(8|16|32)$")>;
779 def : InstRW<[M3WriteVLDK,
780 M3WriteA1], (instregex "LD4i(8|16|32)_POST")>;
781 def : InstRW<[M3WriteVLDM], (instregex "LD4i(64)$")>;
782 def : InstRW<[M3WriteVLDM,
783 M3WriteA1], (instregex "LD4i(64)_POST")>;
785 def : InstRW<[M3WriteVLDC], (instregex "LD4Rv(8b|4h|2s|1d)$")>;
786 def : InstRW<[M3WriteVLDC,
787 M3WriteA1], (instregex "LD4Rv(8b|4h|2s|1d)_POST")>;
788 def : InstRW<[M3WriteVLDC], (instregex "LD4Rv(16b|8h|4s|2d)$")>;
789 def : InstRW<[M3WriteVLDC,
790 M3WriteA1], (instregex "LD4Rv(16b|8h|4s|2d)_POST")>;
792 // ASIMD store instructions.
793 def : InstRW<[WriteVST], (instregex "ST1Onev(8b|4h|2s|1d)$")>;
794 def : InstRW<[WriteVST,
795 WriteAdr], (instregex "ST1Onev(8b|4h|2s|1d)_POST")>;
796 def : InstRW<[WriteVST], (instregex "ST1Onev(16b|8h|4s|2d)$")>;
797 def : InstRW<[WriteVST,
798 WriteAdr], (instregex "ST1Onev(16b|8h|4s|2d)_POST")>;
800 def : InstRW<[M3WriteVSTA], (instregex "ST1Twov(8b|4h|2s|1d)$")>;
801 def : InstRW<[M3WriteVSTA,
802 WriteAdr], (instregex "ST1Twov(8b|4h|2s|1d)_POST")>;
803 def : InstRW<[M3WriteVSTA], (instregex "ST1Twov(16b|8h|4s|2d)$")>;
804 def : InstRW<[M3WriteVSTA,
805 WriteAdr], (instregex "ST1Twov(16b|8h|4s|2d)_POST")>;
807 def : InstRW<[M3WriteVSTB], (instregex "ST1Threev(8b|4h|2s|1d)$")>;
808 def : InstRW<[M3WriteVSTB,
809 WriteAdr], (instregex "ST1Threev(8b|4h|2s|1d)_POST")>;
810 def : InstRW<[M3WriteVSTB], (instregex "ST1Threev(16b|8h|4s|2d)$")>;
811 def : InstRW<[M3WriteVSTB,
812 WriteAdr], (instregex "ST1Threev(16b|8h|4s|2d)_POST")>;
814 def : InstRW<[M3WriteVSTC], (instregex "ST1Fourv(8b|4h|2s|1d)$")>;
815 def : InstRW<[M3WriteVSTC,
816 WriteAdr], (instregex "ST1Fourv(8b|4h|2s|1d)_POST")>;
817 def : InstRW<[M3WriteVSTC], (instregex "ST1Fourv(16b|8h|4s|2d)$")>;
818 def : InstRW<[M3WriteVSTC,
819 WriteAdr], (instregex "ST1Fourv(16b|8h|4s|2d)_POST")>;
821 def : InstRW<[M3WriteVSTD], (instregex "ST1i(8|16|32|64)$")>;
822 def : InstRW<[M3WriteVSTD,
823 WriteAdr], (instregex "ST1i(8|16|32|64)_POST")>;
825 def : InstRW<[M3WriteVSTD], (instregex "ST2Twov(8b|4h|2s)$")>;
826 def : InstRW<[M3WriteVSTD,
827 WriteAdr], (instregex "ST2Twov(8b|4h|2s)_POST")>;
828 def : InstRW<[M3WriteVSTE], (instregex "ST2Twov(16b|8h|4s|2d)$")>;
829 def : InstRW<[M3WriteVSTE,
830 WriteAdr], (instregex "ST2Twov(16b|8h|4s|2d)_POST")>;
832 def : InstRW<[M3WriteVSTD], (instregex "ST2i(8|16|32)$")>;
833 def : InstRW<[M3WriteVSTD,
834 WriteAdr], (instregex "ST2i(8|16|32)_POST")>;
835 def : InstRW<[M3WriteVSTD], (instregex "ST2i(64)$")>;
836 def : InstRW<[M3WriteVSTD,
837 WriteAdr], (instregex "ST2i(64)_POST")>;
839 def : InstRW<[M3WriteVSTF], (instregex "ST3Threev(8b|4h|2s)$")>;
840 def : InstRW<[M3WriteVSTF,
841 WriteAdr], (instregex "ST3Threev(8b|4h|2s)_POST")>;
842 def : InstRW<[M3WriteVSTG], (instregex "ST3Threev(16b|8h|4s|2d)$")>;
843 def : InstRW<[M3WriteVSTG,
844 WriteAdr], (instregex "ST3Threev(16b|8h|4s|2d)_POST")>;
846 def : InstRW<[M3WriteVSTH], (instregex "ST3i(8|16|32)$")>;
847 def : InstRW<[M3WriteVSTH,
848 WriteAdr], (instregex "ST3i(8|16|32)_POST")>;
849 def : InstRW<[M3WriteVSTF], (instregex "ST3i(64)$")>;
850 def : InstRW<[M3WriteVSTF,
851 WriteAdr], (instregex "ST3i(64)_POST")>;
853 def : InstRW<[M3WriteVSTF], (instregex "ST4Fourv(8b|4h|2s)$")>;
854 def : InstRW<[M3WriteVSTF,
855 WriteAdr], (instregex "ST4Fourv(8b|4h|2s)_POST")>;
856 def : InstRW<[M3WriteVSTI], (instregex "ST4Fourv(16b|8h|4s|2d)$")>;
857 def : InstRW<[M3WriteVSTI,
858 WriteAdr], (instregex "ST4Fourv(16b|8h|4s|2d)_POST")>;
860 def : InstRW<[M3WriteVSTF], (instregex "ST4i(8|16|32|64)$")>;
861 def : InstRW<[M3WriteVSTF,
862 WriteAdr], (instregex "ST4i(8|16|32|64)_POST")>;
864 // Cryptography instructions.
865 def : InstRW<[M3WriteAES], (instregex "^AES[DE]")>;
866 def : InstRW<[M3WriteAES,
867 M3ReadAES], (instregex "^AESI?MC")>;
869 def : InstRW<[M3WriteNCRY3A], (instregex "^PMULL?v")>;
871 def : InstRW<[M3WriteNCRY1A], (instregex "^SHA1([CHMP]|SU[01])")>;
872 def : InstRW<[M3WriteNCRY1A], (instregex "^SHA256SU0")>;
873 def : InstRW<[M3WriteNCRY5A], (instregex "^SHA256(H2?|SU1)")>;
876 def : InstRW<[M3WriteC2], (instregex "^CRC32")>;
878 } // SchedModel = ExynosM3Model