1 //=- ARMScheduleA8.td - ARM Cortex-A8 Scheduling Definitions -*- tablegen -*-=//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the itinerary class data for the ARM Cortex A8 processors.
12 //===----------------------------------------------------------------------===//
15 // Scheduling information derived from "Cortex-A8 Technical Reference Manual".
17 def A8_Issue : FuncUnit; // issue
18 def A8_Pipe0 : FuncUnit; // pipeline 0
19 def A8_Pipe1 : FuncUnit; // pipeline 1
20 def A8_LdSt0 : FuncUnit; // pipeline 0 load/store
21 def A8_LdSt1 : FuncUnit; // pipeline 1 load/store
22 def A8_NPipe : FuncUnit; // NEON ALU/MUL pipe
23 def A8_NLSPipe : FuncUnit; // NEON LS pipe
25 // Dual issue pipeline represented by A8_Pipe0 | A8_Pipe1
27 def CortexA8Itineraries : ProcessorItineraries<
28 [A8_Issue, A8_Pipe0, A8_Pipe1, A8_LdSt0, A8_LdSt1, A8_NPipe, A8_NLSPipe],
30 // Two fully-pipelined integer ALU pipelines
33 InstrItinData<IIC_iALUx , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>]>,
35 // Binary Instructions that produce a result
36 InstrItinData<IIC_iALUi ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
37 InstrItinData<IIC_iALUr ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 2]>,
38 InstrItinData<IIC_iALUsi,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1]>,
39 InstrItinData<IIC_iALUsir,[InstrStage<1,[A8_Pipe0, A8_Pipe1]>], [2, 1, 2]>,
40 InstrItinData<IIC_iALUsr,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1, 1]>,
42 // Bitwise Instructions that produce a result
43 InstrItinData<IIC_iBITi ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
44 InstrItinData<IIC_iBITr ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 2]>,
45 InstrItinData<IIC_iBITsi,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1]>,
46 InstrItinData<IIC_iBITsr,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1, 1]>,
48 // Unary Instructions that produce a result
49 InstrItinData<IIC_iUNAr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
50 InstrItinData<IIC_iUNAsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
52 // Zero and sign extension instructions
53 InstrItinData<IIC_iEXTr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
54 InstrItinData<IIC_iEXTAr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1]>,
55 InstrItinData<IIC_iEXTAsr,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>],[2, 2, 1, 1]>,
57 // Compare instructions
58 InstrItinData<IIC_iCMPi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
59 InstrItinData<IIC_iCMPr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
60 InstrItinData<IIC_iCMPsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
61 InstrItinData<IIC_iCMPsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1, 1]>,
64 InstrItinData<IIC_iTSTi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
65 InstrItinData<IIC_iTSTr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
66 InstrItinData<IIC_iTSTsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
67 InstrItinData<IIC_iTSTsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1, 1]>,
69 // Move instructions, unconditional
70 InstrItinData<IIC_iMOVi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1]>,
71 InstrItinData<IIC_iMOVr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
72 InstrItinData<IIC_iMOVsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
73 InstrItinData<IIC_iMOVsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1, 1]>,
74 InstrItinData<IIC_iMOVix2,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
75 InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
77 // Move instructions, conditional
78 InstrItinData<IIC_iCMOVi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
79 InstrItinData<IIC_iCMOVr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
80 InstrItinData<IIC_iCMOVsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
81 InstrItinData<IIC_iCMOVsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1, 1]>,
84 InstrItinData<IIC_iMVNi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1]>,
85 InstrItinData<IIC_iMVNr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
86 InstrItinData<IIC_iMVNsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
87 InstrItinData<IIC_iMVNsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1, 1]>,
89 // Integer multiply pipeline
90 // Result written in E5, but that is relative to the last cycle of multicycle,
91 // so we use 6 for those cases
93 InstrItinData<IIC_iMUL16 , [InstrStage<1, [A8_Pipe0]>], [5, 1, 1]>,
94 InstrItinData<IIC_iMAC16 , [InstrStage<1, [A8_Pipe1], 0>,
95 InstrStage<2, [A8_Pipe0]>], [6, 1, 1, 4]>,
96 InstrItinData<IIC_iMUL32 , [InstrStage<1, [A8_Pipe1], 0>,
97 InstrStage<2, [A8_Pipe0]>], [6, 1, 1]>,
98 InstrItinData<IIC_iMAC32 , [InstrStage<1, [A8_Pipe1], 0>,
99 InstrStage<2, [A8_Pipe0]>], [6, 1, 1, 4]>,
100 InstrItinData<IIC_iMUL64 , [InstrStage<2, [A8_Pipe1], 0>,
101 InstrStage<3, [A8_Pipe0]>], [6, 6, 1, 1]>,
102 InstrItinData<IIC_iMAC64 , [InstrStage<2, [A8_Pipe1], 0>,
103 InstrStage<3, [A8_Pipe0]>], [6, 6, 1, 1]>,
105 // Integer load pipeline
107 // loads have an extra cycle of latency, but are fully pipelined
108 // use A8_Issue to enforce the 1 load/store per cycle limit
111 InstrItinData<IIC_iLoad_i , [InstrStage<1, [A8_Issue], 0>,
112 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
113 InstrStage<1, [A8_LdSt0]>], [3, 1]>,
114 InstrItinData<IIC_iLoad_bh_i, [InstrStage<1, [A8_Issue], 0>,
115 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
116 InstrStage<1, [A8_LdSt0]>], [3, 1]>,
117 InstrItinData<IIC_iLoad_d_i, [InstrStage<1, [A8_Issue], 0>,
118 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
119 InstrStage<1, [A8_LdSt0]>], [3, 1]>,
122 InstrItinData<IIC_iLoad_r , [InstrStage<1, [A8_Issue], 0>,
123 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
124 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
125 InstrItinData<IIC_iLoad_bh_r, [InstrStage<1, [A8_Issue], 0>,
126 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
127 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
128 InstrItinData<IIC_iLoad_d_r , [InstrStage<1, [A8_Issue], 0>,
129 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
130 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
132 // Scaled register offset, issues over 2 cycles
133 InstrItinData<IIC_iLoad_si , [InstrStage<2, [A8_Issue], 0>,
134 InstrStage<1, [A8_Pipe0], 0>,
135 InstrStage<1, [A8_Pipe1]>,
136 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
137 InstrStage<1, [A8_LdSt0]>], [4, 1, 1]>,
138 InstrItinData<IIC_iLoad_bh_si,[InstrStage<2, [A8_Issue], 0>,
139 InstrStage<1, [A8_Pipe0], 0>,
140 InstrStage<1, [A8_Pipe1]>,
141 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
142 InstrStage<1, [A8_LdSt0]>], [4, 1, 1]>,
144 // Immediate offset with update
145 InstrItinData<IIC_iLoad_iu , [InstrStage<1, [A8_Issue], 0>,
146 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
147 InstrStage<1, [A8_LdSt0]>], [3, 2, 1]>,
148 InstrItinData<IIC_iLoad_bh_iu,[InstrStage<1, [A8_Issue], 0>,
149 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
150 InstrStage<1, [A8_LdSt0]>], [3, 2, 1]>,
152 // Register offset with update
153 InstrItinData<IIC_iLoad_ru , [InstrStage<1, [A8_Issue], 0>,
154 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
155 InstrStage<1, [A8_LdSt0]>], [3, 2, 1, 1]>,
156 InstrItinData<IIC_iLoad_bh_ru,[InstrStage<1, [A8_Issue], 0>,
157 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
158 InstrStage<1, [A8_LdSt0]>], [3, 2, 1, 1]>,
159 InstrItinData<IIC_iLoad_d_ru, [InstrStage<1, [A8_Issue], 0>,
160 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
161 InstrStage<1, [A8_LdSt0]>], [3, 2, 1, 1]>,
163 // Scaled register offset with update, issues over 2 cycles
164 InstrItinData<IIC_iLoad_siu , [InstrStage<2, [A8_Issue], 0>,
165 InstrStage<1, [A8_Pipe0], 0>,
166 InstrStage<1, [A8_Pipe1]>,
167 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
168 InstrStage<1, [A8_LdSt0]>], [4, 3, 1, 1]>,
169 InstrItinData<IIC_iLoad_bh_siu,[InstrStage<2, [A8_Issue], 0>,
170 InstrStage<1, [A8_Pipe0], 0>,
171 InstrStage<1, [A8_Pipe1]>,
172 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
173 InstrStage<1, [A8_LdSt0]>], [4, 3, 1, 1]>,
175 // Load multiple, def is the 5th operand.
176 InstrItinData<IIC_iLoad_m , [InstrStage<2, [A8_Issue], 0>,
177 InstrStage<2, [A8_Pipe0], 0>,
178 InstrStage<2, [A8_Pipe1]>,
179 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
180 InstrStage<1, [A8_LdSt0]>], [1, 1, 1, 1, 3]>,
182 // Load multiple + update, defs are the 1st and 5th operands.
183 InstrItinData<IIC_iLoad_mu , [InstrStage<2, [A8_Issue], 0>,
184 InstrStage<2, [A8_Pipe0], 0>,
185 InstrStage<2, [A8_Pipe1]>,
186 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
187 InstrStage<1, [A8_LdSt0]>], [2, 1, 1, 1, 3]>,
189 // Load multiple plus branch
190 InstrItinData<IIC_iLoad_mBr, [InstrStage<2, [A8_Issue], 0>,
191 InstrStage<2, [A8_Pipe0], 0>,
192 InstrStage<2, [A8_Pipe1]>,
193 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
194 InstrStage<1, [A8_LdSt0]>,
195 InstrStage<1, [A8_Pipe0, A8_Pipe1]>],
198 // Pop, def is the 3rd operand.
199 InstrItinData<IIC_iPop , [InstrStage<2, [A8_Issue], 0>,
200 InstrStage<2, [A8_Pipe0], 0>,
201 InstrStage<2, [A8_Pipe1]>,
202 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
203 InstrStage<1, [A8_LdSt0]>], [1, 1, 3]>,
205 // Push, def is the 3th operand.
206 InstrItinData<IIC_iPop_Br, [InstrStage<2, [A8_Issue], 0>,
207 InstrStage<2, [A8_Pipe0], 0>,
208 InstrStage<2, [A8_Pipe1]>,
209 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
210 InstrStage<1, [A8_LdSt0]>,
211 InstrStage<1, [A8_Pipe0, A8_Pipe1]>],
215 // iLoadi + iALUr for t2LDRpci_pic.
216 InstrItinData<IIC_iLoadiALU, [InstrStage<1, [A8_Issue], 0>,
217 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
218 InstrStage<1, [A8_LdSt0]>,
219 InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [4, 1]>,
222 // Integer store pipeline
224 // use A8_Issue to enforce the 1 load/store per cycle limit
227 InstrItinData<IIC_iStore_i , [InstrStage<1, [A8_Issue], 0>,
228 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
229 InstrStage<1, [A8_LdSt0]>], [3, 1]>,
230 InstrItinData<IIC_iStore_bh_i,[InstrStage<1, [A8_Issue], 0>,
231 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
232 InstrStage<1, [A8_LdSt0]>], [3, 1]>,
233 InstrItinData<IIC_iStore_d_i, [InstrStage<1, [A8_Issue], 0>,
234 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
235 InstrStage<1, [A8_LdSt0]>], [3, 1]>,
238 InstrItinData<IIC_iStore_r , [InstrStage<1, [A8_Issue], 0>,
239 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
240 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
241 InstrItinData<IIC_iStore_bh_r,[InstrStage<1, [A8_Issue], 0>,
242 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
243 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
244 InstrItinData<IIC_iStore_d_r, [InstrStage<1, [A8_Issue], 0>,
245 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
246 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
248 // Scaled register offset, issues over 2 cycles
249 InstrItinData<IIC_iStore_si , [InstrStage<2, [A8_Issue], 0>,
250 InstrStage<1, [A8_Pipe0], 0>,
251 InstrStage<1, [A8_Pipe1]>,
252 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
253 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
254 InstrItinData<IIC_iStore_bh_si,[InstrStage<2, [A8_Issue], 0>,
255 InstrStage<1, [A8_Pipe0], 0>,
256 InstrStage<1, [A8_Pipe1]>,
257 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
258 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
260 // Immediate offset with update
261 InstrItinData<IIC_iStore_iu , [InstrStage<1, [A8_Issue], 0>,
262 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
263 InstrStage<1, [A8_LdSt0]>], [2, 3, 1]>,
264 InstrItinData<IIC_iStore_bh_iu,[InstrStage<1, [A8_Issue], 0>,
265 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
266 InstrStage<1, [A8_LdSt0]>], [2, 3, 1]>,
268 // Register offset with update
269 InstrItinData<IIC_iStore_ru , [InstrStage<1, [A8_Issue], 0>,
270 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
271 InstrStage<1, [A8_LdSt0]>], [2, 3, 1, 1]>,
272 InstrItinData<IIC_iStore_bh_ru,[InstrStage<1, [A8_Issue], 0>,
273 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
274 InstrStage<1, [A8_LdSt0]>], [2, 3, 1, 1]>,
275 InstrItinData<IIC_iStore_d_ru, [InstrStage<1, [A8_Issue], 0>,
276 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
277 InstrStage<1, [A8_LdSt0]>], [2, 3, 1, 1]>,
279 // Scaled register offset with update, issues over 2 cycles
280 InstrItinData<IIC_iStore_siu, [InstrStage<2, [A8_Issue], 0>,
281 InstrStage<1, [A8_Pipe0], 0>,
282 InstrStage<1, [A8_Pipe1]>,
283 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
284 InstrStage<1, [A8_LdSt0]>], [3, 3, 1, 1]>,
285 InstrItinData<IIC_iStore_bh_siu,[InstrStage<2, [A8_Issue], 0>,
286 InstrStage<1, [A8_Pipe0], 0>,
287 InstrStage<1, [A8_Pipe1]>,
288 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
289 InstrStage<1, [A8_LdSt0]>], [3, 3, 1, 1]>,
292 InstrItinData<IIC_iStore_m , [InstrStage<2, [A8_Issue], 0>,
293 InstrStage<2, [A8_Pipe0], 0>,
294 InstrStage<2, [A8_Pipe1]>,
295 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
296 InstrStage<1, [A8_LdSt0]>]>,
298 // Store multiple + update
299 InstrItinData<IIC_iStore_mu, [InstrStage<2, [A8_Issue], 0>,
300 InstrStage<2, [A8_Pipe0], 0>,
301 InstrStage<2, [A8_Pipe1]>,
302 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
303 InstrStage<1, [A8_LdSt0]>], [2]>,
307 // no delay slots, so the latency of a branch is unimportant
308 InstrItinData<IIC_Br , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>]>,
311 // Issue through integer pipeline, and execute in NEON unit. We assume
312 // RunFast mode so that NFP pipeline is used for single-precision when
315 // FP Special Register to Integer Register File Move
316 InstrItinData<IIC_fpSTAT , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
317 InstrStage<1, [A8_NLSPipe]>]>,
319 // Single-precision FP Unary
320 InstrItinData<IIC_fpUNA32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
321 InstrStage<1, [A8_NPipe]>], [7, 1]>,
323 // Double-precision FP Unary
324 InstrItinData<IIC_fpUNA64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
325 InstrStage<4, [A8_NPipe], 0>,
326 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
328 // Single-precision FP Compare
329 InstrItinData<IIC_fpCMP32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
330 InstrStage<1, [A8_NPipe]>], [1, 1]>,
332 // Double-precision FP Compare
333 InstrItinData<IIC_fpCMP64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
334 InstrStage<4, [A8_NPipe], 0>,
335 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
337 // Single to Double FP Convert
338 InstrItinData<IIC_fpCVTSD , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
339 InstrStage<7, [A8_NPipe], 0>,
340 InstrStage<7, [A8_NLSPipe]>], [7, 1]>,
342 // Double to Single FP Convert
343 InstrItinData<IIC_fpCVTDS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
344 InstrStage<5, [A8_NPipe], 0>,
345 InstrStage<5, [A8_NLSPipe]>], [5, 1]>,
347 // Single-Precision FP to Integer Convert
348 InstrItinData<IIC_fpCVTSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
349 InstrStage<1, [A8_NPipe]>], [7, 1]>,
351 // Double-Precision FP to Integer Convert
352 InstrItinData<IIC_fpCVTDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
353 InstrStage<8, [A8_NPipe], 0>,
354 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
356 // Integer to Single-Precision FP Convert
357 InstrItinData<IIC_fpCVTIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
358 InstrStage<1, [A8_NPipe]>], [7, 1]>,
360 // Integer to Double-Precision FP Convert
361 InstrItinData<IIC_fpCVTID , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
362 InstrStage<8, [A8_NPipe], 0>,
363 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
365 // Single-precision FP ALU
366 InstrItinData<IIC_fpALU32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
367 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
369 // Double-precision FP ALU
370 InstrItinData<IIC_fpALU64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
371 InstrStage<9, [A8_NPipe], 0>,
372 InstrStage<9, [A8_NLSPipe]>], [9, 1, 1]>,
374 // Single-precision FP Multiply
375 InstrItinData<IIC_fpMUL32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
376 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
378 // Double-precision FP Multiply
379 InstrItinData<IIC_fpMUL64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
380 InstrStage<11, [A8_NPipe], 0>,
381 InstrStage<11, [A8_NLSPipe]>], [11, 1, 1]>,
383 // Single-precision FP MAC
384 InstrItinData<IIC_fpMAC32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
385 InstrStage<1, [A8_NPipe]>], [7, 2, 1, 1]>,
387 // Double-precision FP MAC
388 InstrItinData<IIC_fpMAC64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
389 InstrStage<19, [A8_NPipe], 0>,
390 InstrStage<19, [A8_NLSPipe]>], [19, 2, 1, 1]>,
392 // Single-precision FP DIV
393 InstrItinData<IIC_fpDIV32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
394 InstrStage<20, [A8_NPipe], 0>,
395 InstrStage<20, [A8_NLSPipe]>], [20, 1, 1]>,
397 // Double-precision FP DIV
398 InstrItinData<IIC_fpDIV64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
399 InstrStage<29, [A8_NPipe], 0>,
400 InstrStage<29, [A8_NLSPipe]>], [29, 1, 1]>,
402 // Single-precision FP SQRT
403 InstrItinData<IIC_fpSQRT32, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
404 InstrStage<19, [A8_NPipe], 0>,
405 InstrStage<19, [A8_NLSPipe]>], [19, 1]>,
407 // Double-precision FP SQRT
408 InstrItinData<IIC_fpSQRT64, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
409 InstrStage<29, [A8_NPipe], 0>,
410 InstrStage<29, [A8_NLSPipe]>], [29, 1]>,
412 // Single-precision FP Load
413 // use A8_Issue to enforce the 1 load/store per cycle limit
414 InstrItinData<IIC_fpLoad32, [InstrStage<1, [A8_Issue], 0>,
415 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
416 InstrStage<1, [A8_LdSt0], 0>,
417 InstrStage<1, [A8_NLSPipe]>],
420 // Double-precision FP Load
421 // use A8_Issue to enforce the 1 load/store per cycle limit
422 InstrItinData<IIC_fpLoad64, [InstrStage<2, [A8_Issue], 0>,
423 InstrStage<1, [A8_Pipe0], 0>,
424 InstrStage<1, [A8_Pipe1]>,
425 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
426 InstrStage<1, [A8_LdSt0], 0>,
427 InstrStage<1, [A8_NLSPipe]>],
431 // use A8_Issue to enforce the 1 load/store per cycle limit
432 InstrItinData<IIC_fpLoadm, [InstrStage<3, [A8_Issue], 0>,
433 InstrStage<2, [A8_Pipe0], 0>,
434 InstrStage<2, [A8_Pipe1]>,
435 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
436 InstrStage<1, [A8_LdSt0], 0>,
437 InstrStage<1, [A8_NLSPipe]>]>,
439 // Single-precision FP Store
440 // use A8_Issue to enforce the 1 load/store per cycle limit
441 InstrItinData<IIC_fpStore32,[InstrStage<1, [A8_Issue], 0>,
442 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
443 InstrStage<1, [A8_LdSt0], 0>,
444 InstrStage<1, [A8_NLSPipe]>],
447 // Double-precision FP Store
448 // use A8_Issue to enforce the 1 load/store per cycle limit
449 InstrItinData<IIC_fpStore64,[InstrStage<2, [A8_Issue], 0>,
450 InstrStage<1, [A8_Pipe0], 0>,
451 InstrStage<1, [A8_Pipe1]>,
452 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
453 InstrStage<1, [A8_LdSt0], 0>,
454 InstrStage<1, [A8_NLSPipe]>],
458 // use A8_Issue to enforce the 1 load/store per cycle limit
459 InstrItinData<IIC_fpStorem, [InstrStage<3, [A8_Issue], 0>,
460 InstrStage<2, [A8_Pipe0], 0>,
461 InstrStage<2, [A8_Pipe1]>,
462 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
463 InstrStage<1, [A8_LdSt0], 0>,
464 InstrStage<1, [A8_NLSPipe]>]>,
467 // Issue through integer pipeline, and execute in NEON unit.
470 // FIXME: We don't model this instruction properly
471 InstrItinData<IIC_VLD1, [InstrStage<1, [A8_Issue], 0>,
472 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
473 InstrStage<1, [A8_LdSt0], 0>,
474 InstrStage<1, [A8_NLSPipe]>]>,
477 // FIXME: We don't model this instruction properly
478 InstrItinData<IIC_VLD2, [InstrStage<1, [A8_Issue], 0>,
479 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
480 InstrStage<1, [A8_LdSt0], 0>,
481 InstrStage<1, [A8_NLSPipe]>], [2, 2, 1]>,
484 // FIXME: We don't model this instruction properly
485 InstrItinData<IIC_VLD3, [InstrStage<1, [A8_Issue], 0>,
486 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
487 InstrStage<1, [A8_LdSt0], 0>,
488 InstrStage<1, [A8_NLSPipe]>], [2, 2, 2, 1]>,
491 // FIXME: We don't model this instruction properly
492 InstrItinData<IIC_VLD4, [InstrStage<1, [A8_Issue], 0>,
493 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
494 InstrStage<1, [A8_LdSt0], 0>,
495 InstrStage<1, [A8_NLSPipe]>], [2, 2, 2, 2, 1]>,
498 // FIXME: We don't model this instruction properly
499 InstrItinData<IIC_VST, [InstrStage<1, [A8_Issue], 0>,
500 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
501 InstrStage<1, [A8_LdSt0], 0>,
502 InstrStage<1, [A8_NLSPipe]>]>,
504 // Double-register FP Unary
505 InstrItinData<IIC_VUNAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
506 InstrStage<1, [A8_NPipe]>], [5, 2]>,
508 // Quad-register FP Unary
509 // Result written in N5, but that is relative to the last cycle of multicycle,
510 // so we use 6 for those cases
511 InstrItinData<IIC_VUNAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
512 InstrStage<2, [A8_NPipe]>], [6, 2]>,
514 // Double-register FP Binary
515 InstrItinData<IIC_VBIND, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
516 InstrStage<1, [A8_NPipe]>], [5, 2, 2]>,
518 // Quad-register FP Binary
519 // Result written in N5, but that is relative to the last cycle of multicycle,
520 // so we use 6 for those cases
521 InstrItinData<IIC_VBINQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
522 InstrStage<2, [A8_NPipe]>], [6, 2, 2]>,
525 InstrItinData<IIC_VMOV, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
526 InstrStage<1, [A8_NPipe]>], [1, 1]>,
529 InstrItinData<IIC_VMOVImm, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
530 InstrStage<1, [A8_NPipe]>], [3]>,
532 // Double-register Permute Move
533 InstrItinData<IIC_VMOVD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
534 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
536 // Quad-register Permute Move
537 // Result written in N2, but that is relative to the last cycle of multicycle,
538 // so we use 3 for those cases
539 InstrItinData<IIC_VMOVQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
540 InstrStage<2, [A8_NLSPipe]>], [3, 1]>,
542 // Integer to Single-precision Move
543 InstrItinData<IIC_VMOVIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
544 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
546 // Integer to Double-precision Move
547 InstrItinData<IIC_VMOVID , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
548 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
550 // Single-precision to Integer Move
551 InstrItinData<IIC_VMOVSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
552 InstrStage<1, [A8_NLSPipe]>], [20, 1]>,
554 // Double-precision to Integer Move
555 InstrItinData<IIC_VMOVDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
556 InstrStage<1, [A8_NLSPipe]>], [20, 20, 1]>,
558 // Integer to Lane Move
559 InstrItinData<IIC_VMOVISL , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
560 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
562 // Vector narrow move
563 InstrItinData<IIC_VMOVN , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
564 InstrStage<1, [A8_NPipe]>], [2, 1]>,
566 // Double-register Permute
567 InstrItinData<IIC_VPERMD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
568 InstrStage<1, [A8_NLSPipe]>], [2, 2, 1, 1]>,
570 // Quad-register Permute
571 // Result written in N2, but that is relative to the last cycle of multicycle,
572 // so we use 3 for those cases
573 InstrItinData<IIC_VPERMQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
574 InstrStage<2, [A8_NLSPipe]>], [3, 3, 1, 1]>,
576 // Quad-register Permute (3 cycle issue)
577 // Result written in N2, but that is relative to the last cycle of multicycle,
578 // so we use 4 for those cases
579 InstrItinData<IIC_VPERMQ3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
580 InstrStage<1, [A8_NLSPipe]>,
581 InstrStage<1, [A8_NPipe], 0>,
582 InstrStage<2, [A8_NLSPipe]>], [4, 4, 1, 1]>,
584 // Double-register FP Multiple-Accumulate
585 InstrItinData<IIC_VMACD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
586 InstrStage<1, [A8_NPipe]>], [9, 3, 2, 2]>,
588 // Quad-register FP Multiple-Accumulate
589 // Result written in N9, but that is relative to the last cycle of multicycle,
590 // so we use 10 for those cases
591 InstrItinData<IIC_VMACQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
592 InstrStage<2, [A8_NPipe]>], [10, 3, 2, 2]>,
594 // Double-register Reciprical Step
595 InstrItinData<IIC_VRECSD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
596 InstrStage<1, [A8_NPipe]>], [9, 2, 2]>,
598 // Quad-register Reciprical Step
599 InstrItinData<IIC_VRECSQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
600 InstrStage<2, [A8_NPipe]>], [10, 2, 2]>,
602 // Double-register Integer Count
603 InstrItinData<IIC_VCNTiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
604 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
606 // Quad-register Integer Count
607 // Result written in N3, but that is relative to the last cycle of multicycle,
608 // so we use 4 for those cases
609 InstrItinData<IIC_VCNTiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
610 InstrStage<2, [A8_NPipe]>], [4, 2, 2]>,
612 // Double-register Integer Unary
613 InstrItinData<IIC_VUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
614 InstrStage<1, [A8_NPipe]>], [4, 2]>,
616 // Quad-register Integer Unary
617 InstrItinData<IIC_VUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
618 InstrStage<1, [A8_NPipe]>], [4, 2]>,
620 // Double-register Integer Q-Unary
621 InstrItinData<IIC_VQUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
622 InstrStage<1, [A8_NPipe]>], [4, 1]>,
624 // Quad-register Integer CountQ-Unary
625 InstrItinData<IIC_VQUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
626 InstrStage<1, [A8_NPipe]>], [4, 1]>,
628 // Double-register Integer Binary
629 InstrItinData<IIC_VBINiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
630 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
632 // Quad-register Integer Binary
633 InstrItinData<IIC_VBINiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
634 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
636 // Double-register Integer Binary (4 cycle)
637 InstrItinData<IIC_VBINi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
638 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
640 // Quad-register Integer Binary (4 cycle)
641 InstrItinData<IIC_VBINi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
642 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
645 // Double-register Integer Subtract
646 InstrItinData<IIC_VSUBiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
647 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
649 // Quad-register Integer Subtract
650 InstrItinData<IIC_VSUBiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
651 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
653 // Double-register Integer Subtract
654 InstrItinData<IIC_VSUBi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
655 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
657 // Quad-register Integer Subtract
658 InstrItinData<IIC_VSUBi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
659 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
661 // Double-register Integer Shift
662 InstrItinData<IIC_VSHLiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
663 InstrStage<1, [A8_NPipe]>], [3, 1, 1]>,
665 // Quad-register Integer Shift
666 InstrItinData<IIC_VSHLiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
667 InstrStage<2, [A8_NPipe]>], [4, 1, 1]>,
669 // Double-register Integer Shift (4 cycle)
670 InstrItinData<IIC_VSHLi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
671 InstrStage<1, [A8_NPipe]>], [4, 1, 1]>,
673 // Quad-register Integer Shift (4 cycle)
674 InstrItinData<IIC_VSHLi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
675 InstrStage<2, [A8_NPipe]>], [5, 1, 1]>,
677 // Double-register Integer Pair Add Long
678 InstrItinData<IIC_VPALiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
679 InstrStage<1, [A8_NPipe]>], [6, 3, 1]>,
681 // Quad-register Integer Pair Add Long
682 InstrItinData<IIC_VPALiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
683 InstrStage<2, [A8_NPipe]>], [7, 3, 1]>,
685 // Double-register Absolute Difference and Accumulate
686 InstrItinData<IIC_VABAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
687 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 1]>,
689 // Quad-register Absolute Difference and Accumulate
690 InstrItinData<IIC_VABAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
691 InstrStage<2, [A8_NPipe]>], [6, 3, 2, 1]>,
694 // Double-register Integer Multiply (.8, .16)
695 InstrItinData<IIC_VMULi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
696 InstrStage<1, [A8_NPipe]>], [6, 2, 2]>,
698 // Double-register Integer Multiply (.32)
699 InstrItinData<IIC_VMULi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
700 InstrStage<2, [A8_NPipe]>], [7, 2, 1]>,
702 // Quad-register Integer Multiply (.8, .16)
703 InstrItinData<IIC_VMULi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
704 InstrStage<2, [A8_NPipe]>], [7, 2, 2]>,
706 // Quad-register Integer Multiply (.32)
707 InstrItinData<IIC_VMULi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
708 InstrStage<1, [A8_NPipe]>,
709 InstrStage<2, [A8_NLSPipe], 0>,
710 InstrStage<3, [A8_NPipe]>], [9, 2, 1]>,
712 // Double-register Integer Multiply-Accumulate (.8, .16)
713 InstrItinData<IIC_VMACi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
714 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 2]>,
716 // Double-register Integer Multiply-Accumulate (.32)
717 InstrItinData<IIC_VMACi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
718 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 1]>,
720 // Quad-register Integer Multiply-Accumulate (.8, .16)
721 InstrItinData<IIC_VMACi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
722 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 2]>,
724 // Quad-register Integer Multiply-Accumulate (.32)
725 InstrItinData<IIC_VMACi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
726 InstrStage<1, [A8_NPipe]>,
727 InstrStage<2, [A8_NLSPipe], 0>,
728 InstrStage<3, [A8_NPipe]>], [9, 3, 2, 1]>,
730 // Double-register VEXT
731 InstrItinData<IIC_VEXTD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
732 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
734 // Quad-register VEXT
735 InstrItinData<IIC_VEXTQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
736 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
739 InstrItinData<IIC_VTB1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
740 InstrStage<2, [A8_NLSPipe]>], [3, 2, 1]>,
741 InstrItinData<IIC_VTB2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
742 InstrStage<2, [A8_NLSPipe]>], [3, 2, 2, 1]>,
743 InstrItinData<IIC_VTB3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
744 InstrStage<1, [A8_NLSPipe]>,
745 InstrStage<1, [A8_NPipe], 0>,
746 InstrStage<2, [A8_NLSPipe]>], [4, 2, 2, 3, 1]>,
747 InstrItinData<IIC_VTB4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
748 InstrStage<1, [A8_NLSPipe]>,
749 InstrStage<1, [A8_NPipe], 0>,
750 InstrStage<2, [A8_NLSPipe]>],[4, 2, 2, 3, 3, 1]>,
753 InstrItinData<IIC_VTBX1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
754 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 1]>,
755 InstrItinData<IIC_VTBX2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
756 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 2, 1]>,
757 InstrItinData<IIC_VTBX3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
758 InstrStage<1, [A8_NLSPipe]>,
759 InstrStage<1, [A8_NPipe], 0>,
760 InstrStage<2, [A8_NLSPipe]>],[4, 1, 2, 2, 3, 1]>,
761 InstrItinData<IIC_VTBX4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
762 InstrStage<1, [A8_NLSPipe]>,
763 InstrStage<1, [A8_NPipe], 0>,
764 InstrStage<2, [A8_NLSPipe]>], [4, 1, 2, 2, 3, 3, 1]>