1 //=- ARMScheduleA8.td - ARM Cortex-A8 Scheduling Definitions -*- 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 itinerary class data for the ARM Cortex A8 processors.
11 //===----------------------------------------------------------------------===//
14 // Scheduling information derived from "Cortex-A8 Technical Reference Manual".
16 def A8_Pipe0 : FuncUnit; // pipeline 0
17 def A8_Pipe1 : FuncUnit; // pipeline 1
18 def A8_LSPipe : FuncUnit; // Load / store pipeline
19 def A8_NPipe : FuncUnit; // NEON ALU/MUL pipe
20 def A8_NLSPipe : FuncUnit; // NEON LS pipe
22 // Dual issue pipeline represented by A8_Pipe0 | A8_Pipe1
24 def CortexA8Itineraries : ProcessorItineraries<
25 [A8_Pipe0, A8_Pipe1, A8_LSPipe, A8_NPipe, A8_NLSPipe],
27 // Two fully-pipelined integer ALU pipelines
30 InstrItinData<IIC_iALUx , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>]>,
32 // Binary Instructions that produce a result
33 InstrItinData<IIC_iALUi ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
34 InstrItinData<IIC_iALUr ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 2]>,
35 InstrItinData<IIC_iALUsi,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1]>,
36 InstrItinData<IIC_iALUsir,[InstrStage<1,[A8_Pipe0, A8_Pipe1]>], [2, 1, 2]>,
37 InstrItinData<IIC_iALUsr,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1, 1]>,
39 // Bitwise Instructions that produce a result
40 InstrItinData<IIC_iBITi ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
41 InstrItinData<IIC_iBITr ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 2]>,
42 InstrItinData<IIC_iBITsi,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1]>,
43 InstrItinData<IIC_iBITsr,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1, 1]>,
45 // Unary Instructions that produce a result
46 InstrItinData<IIC_iUNAr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
47 InstrItinData<IIC_iUNAsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
49 // Zero and sign extension instructions
50 InstrItinData<IIC_iEXTr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
51 InstrItinData<IIC_iEXTAr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1]>,
52 InstrItinData<IIC_iEXTAsr,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>],[2, 2, 1, 1]>,
54 // Compare instructions
55 InstrItinData<IIC_iCMPi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
56 InstrItinData<IIC_iCMPr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
57 InstrItinData<IIC_iCMPsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
58 InstrItinData<IIC_iCMPsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1, 1]>,
61 InstrItinData<IIC_iTSTi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
62 InstrItinData<IIC_iTSTr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
63 InstrItinData<IIC_iTSTsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
64 InstrItinData<IIC_iTSTsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1, 1]>,
66 // Move instructions, unconditional
67 InstrItinData<IIC_iMOVi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1]>,
68 InstrItinData<IIC_iMOVr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
69 InstrItinData<IIC_iMOVsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
70 InstrItinData<IIC_iMOVsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1, 1]>,
71 InstrItinData<IIC_iMOVix2,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
72 InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
73 InstrItinData<IIC_iMOVix2addpc,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
74 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
75 InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [3]>,
76 InstrItinData<IIC_iMOVix2ld,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
77 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
78 InstrStage<1, [A8_LSPipe]>], [5]>,
80 // Move instructions, conditional
81 InstrItinData<IIC_iCMOVi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
82 InstrItinData<IIC_iCMOVr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
83 InstrItinData<IIC_iCMOVsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
84 InstrItinData<IIC_iCMOVsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1, 1]>,
85 InstrItinData<IIC_iCMOVix2,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
86 InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [3, 1]>,
89 InstrItinData<IIC_iMVNi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1]>,
90 InstrItinData<IIC_iMVNr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
91 InstrItinData<IIC_iMVNsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
92 InstrItinData<IIC_iMVNsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1, 1]>,
94 // Integer multiply pipeline
95 // Result written in E5, but that is relative to the last cycle of multicycle,
96 // so we use 6 for those cases
98 InstrItinData<IIC_iMUL16 , [InstrStage<1, [A8_Pipe0]>], [5, 1, 1]>,
99 InstrItinData<IIC_iMAC16 , [InstrStage<2, [A8_Pipe0]>], [6, 1, 1, 4]>,
100 InstrItinData<IIC_iMUL32 , [InstrStage<2, [A8_Pipe0]>], [6, 1, 1]>,
101 InstrItinData<IIC_iMAC32 , [InstrStage<2, [A8_Pipe0]>], [6, 1, 1, 4]>,
102 InstrItinData<IIC_iMUL64 , [InstrStage<3, [A8_Pipe0]>], [6, 6, 1, 1]>,
103 InstrItinData<IIC_iMAC64 , [InstrStage<3, [A8_Pipe0]>], [6, 6, 1, 1]>,
105 // Integer load pipeline
108 InstrItinData<IIC_iLoad_i , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
109 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
110 InstrItinData<IIC_iLoad_bh_i, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
111 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
112 InstrItinData<IIC_iLoad_d_i, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
113 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
116 InstrItinData<IIC_iLoad_r , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
117 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
118 InstrItinData<IIC_iLoad_bh_r, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
119 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
120 InstrItinData<IIC_iLoad_d_r , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
121 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
123 // Scaled register offset, issues over 2 cycles
124 // FIXME: lsl by 2 takes 1 cycle.
125 InstrItinData<IIC_iLoad_si , [InstrStage<2, [A8_Pipe0, A8_Pipe1], 0>,
126 InstrStage<1, [A8_LSPipe]>], [4, 1, 1]>,
127 InstrItinData<IIC_iLoad_bh_si,[InstrStage<2, [A8_Pipe0, A8_Pipe1], 0>,
128 InstrStage<1, [A8_LSPipe]>], [4, 1, 1]>,
130 // Immediate offset with update
131 InstrItinData<IIC_iLoad_iu , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
132 InstrStage<1, [A8_LSPipe]>], [3, 2, 1]>,
133 InstrItinData<IIC_iLoad_bh_iu,[InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
134 InstrStage<1, [A8_LSPipe]>], [3, 2, 1]>,
136 // Register offset with update
137 InstrItinData<IIC_iLoad_ru , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
138 InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>,
139 InstrItinData<IIC_iLoad_bh_ru,[InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
140 InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>,
141 InstrItinData<IIC_iLoad_d_ru, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
142 InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>,
144 // Scaled register offset with update, issues over 2 cycles
145 InstrItinData<IIC_iLoad_siu , [InstrStage<2, [A8_Pipe0, A8_Pipe1], 0>,
146 InstrStage<2, [A8_LSPipe]>], [4, 3, 1, 1]>,
147 InstrItinData<IIC_iLoad_bh_siu,[InstrStage<2, [A8_Pipe0, A8_Pipe1], 0>,
148 InstrStage<2, [A8_LSPipe]>], [4, 3, 1, 1]>,
150 // Load multiple, def is the 5th operand. Pipeline 0 only.
151 // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers.
152 InstrItinData<IIC_iLoad_m , [InstrStage<2, [A8_Pipe0], 0>,
153 InstrStage<2, [A8_LSPipe]>],
154 [1, 1, 1, 1, 3], [], -1>, // dynamic uops
156 // Load multiple + update, defs are the 1st and 5th operands.
157 InstrItinData<IIC_iLoad_mu , [InstrStage<3, [A8_Pipe0], 0>,
158 InstrStage<3, [A8_LSPipe]>],
159 [2, 1, 1, 1, 3], [], -1>, // dynamic uops
161 // Load multiple plus branch
162 InstrItinData<IIC_iLoad_mBr, [InstrStage<3, [A8_Pipe0], 0>,
163 InstrStage<3, [A8_LSPipe]>,
164 InstrStage<1, [A8_Pipe0, A8_Pipe1]>],
165 [1, 2, 1, 1, 3], [], -1>, // dynamic uops
167 // Pop, def is the 3rd operand.
168 InstrItinData<IIC_iPop , [InstrStage<3, [A8_Pipe0], 0>,
169 InstrStage<3, [A8_LSPipe]>],
170 [1, 1, 3], [], -1>, // dynamic uops
172 // Push, def is the 3th operand.
173 InstrItinData<IIC_iPop_Br, [InstrStage<3, [A8_Pipe0], 0>,
174 InstrStage<3, [A8_LSPipe]>,
175 InstrStage<1, [A8_Pipe0, A8_Pipe1]>],
176 [1, 1, 3], [], -1>, // dynamic uops
178 // iLoadi + iALUr for t2LDRpci_pic.
179 InstrItinData<IIC_iLoadiALU, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
180 InstrStage<1, [A8_LSPipe]>,
181 InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [4, 1]>,
184 // Integer store pipeline
187 InstrItinData<IIC_iStore_i , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
188 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
189 InstrItinData<IIC_iStore_bh_i,[InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
190 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
191 InstrItinData<IIC_iStore_d_i, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
192 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
195 InstrItinData<IIC_iStore_r , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
196 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
197 InstrItinData<IIC_iStore_bh_r,[InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
198 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
199 InstrItinData<IIC_iStore_d_r, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
200 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
202 // Scaled register offset, issues over 2 cycles
203 InstrItinData<IIC_iStore_si , [InstrStage<2, [A8_Pipe0, A8_Pipe1], 0>,
204 InstrStage<2, [A8_LSPipe]>], [3, 1, 1]>,
205 InstrItinData<IIC_iStore_bh_si,[InstrStage<2, [A8_Pipe0, A8_Pipe1], 0>,
206 InstrStage<2, [A8_LSPipe]>], [3, 1, 1]>,
208 // Immediate offset with update
209 InstrItinData<IIC_iStore_iu , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
210 InstrStage<1, [A8_LSPipe]>], [2, 3, 1]>,
211 InstrItinData<IIC_iStore_bh_iu,[InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
212 InstrStage<1, [A8_LSPipe]>], [2, 3, 1]>,
214 // Register offset with update
215 InstrItinData<IIC_iStore_ru , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
216 InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>,
217 InstrItinData<IIC_iStore_bh_ru,[InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
218 InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>,
219 InstrItinData<IIC_iStore_d_ru, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
220 InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>,
222 // Scaled register offset with update, issues over 2 cycles
223 InstrItinData<IIC_iStore_siu, [InstrStage<2, [A8_Pipe0, A8_Pipe1], 0>,
224 InstrStage<2, [A8_LSPipe]>], [3, 3, 1, 1]>,
225 InstrItinData<IIC_iStore_bh_siu,[InstrStage<2, [A8_Pipe0, A8_Pipe1], 0>,
226 InstrStage<2, [A8_LSPipe]>], [3, 3, 1, 1]>,
228 // Store multiple. Pipeline 0 only.
229 // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers.
230 InstrItinData<IIC_iStore_m , [InstrStage<2, [A8_Pipe0], 0>,
231 InstrStage<2, [A8_LSPipe]>],
232 [], [], -1>, // dynamic uops
234 // Store multiple + update
235 InstrItinData<IIC_iStore_mu, [InstrStage<2, [A8_Pipe0], 0>,
236 InstrStage<2, [A8_LSPipe]>],
237 [2], [], -1>, // dynamic uops
240 InstrItinData<IIC_Preload, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
244 // no delay slots, so the latency of a branch is unimportant
245 InstrItinData<IIC_Br , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>]>,
248 // Issue through integer pipeline, and execute in NEON unit. We assume
249 // RunFast mode so that NFP pipeline is used for single-precision when
252 // FP Special Register to Integer Register File Move
253 InstrItinData<IIC_fpSTAT , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
254 InstrStage<1, [A8_NLSPipe]>], [20]>,
256 // Single-precision FP Unary
257 InstrItinData<IIC_fpUNA32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
258 InstrStage<1, [A8_NPipe]>], [7, 1]>,
260 // Double-precision FP Unary
261 InstrItinData<IIC_fpUNA64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
262 InstrStage<4, [A8_NPipe], 0>,
263 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
265 // Single-precision FP Compare
266 InstrItinData<IIC_fpCMP32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
267 InstrStage<1, [A8_NPipe]>], [1, 1]>,
269 // Double-precision FP Compare
270 InstrItinData<IIC_fpCMP64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
271 InstrStage<4, [A8_NPipe], 0>,
272 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
274 // Single to Double FP Convert
275 InstrItinData<IIC_fpCVTSD , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
276 InstrStage<7, [A8_NPipe], 0>,
277 InstrStage<7, [A8_NLSPipe]>], [7, 1]>,
279 // Double to Single FP Convert
280 InstrItinData<IIC_fpCVTDS , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
281 InstrStage<5, [A8_NPipe], 0>,
282 InstrStage<5, [A8_NLSPipe]>], [5, 1]>,
284 // Single-Precision FP to Integer Convert
285 InstrItinData<IIC_fpCVTSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
286 InstrStage<1, [A8_NPipe]>], [7, 1]>,
288 // Double-Precision FP to Integer Convert
289 InstrItinData<IIC_fpCVTDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
290 InstrStage<8, [A8_NPipe], 0>,
291 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
293 // Integer to Single-Precision FP Convert
294 InstrItinData<IIC_fpCVTIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
295 InstrStage<1, [A8_NPipe]>], [7, 1]>,
297 // Integer to Double-Precision FP Convert
298 InstrItinData<IIC_fpCVTID , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
299 InstrStage<8, [A8_NPipe], 0>,
300 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
302 // Single-precision FP ALU
303 InstrItinData<IIC_fpALU32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
304 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
306 // Double-precision FP ALU
307 InstrItinData<IIC_fpALU64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
308 InstrStage<9, [A8_NPipe], 0>,
309 InstrStage<9, [A8_NLSPipe]>], [9, 1, 1]>,
311 // Single-precision FP Multiply
312 InstrItinData<IIC_fpMUL32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
313 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
315 // Double-precision FP Multiply
316 InstrItinData<IIC_fpMUL64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
317 InstrStage<11, [A8_NPipe], 0>,
318 InstrStage<11, [A8_NLSPipe]>], [11, 1, 1]>,
320 // Single-precision FP MAC
321 InstrItinData<IIC_fpMAC32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
322 InstrStage<1, [A8_NPipe]>], [7, 2, 1, 1]>,
324 // Double-precision FP MAC
325 InstrItinData<IIC_fpMAC64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
326 InstrStage<19, [A8_NPipe], 0>,
327 InstrStage<19, [A8_NLSPipe]>], [19, 2, 1, 1]>,
329 // Single-precision Fused FP MAC
330 InstrItinData<IIC_fpFMAC32, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
331 InstrStage<1, [A8_NPipe]>], [7, 2, 1, 1]>,
333 // Double-precision Fused FP MAC
334 InstrItinData<IIC_fpFMAC64, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
335 InstrStage<19, [A8_NPipe], 0>,
336 InstrStage<19, [A8_NLSPipe]>], [19, 2, 1, 1]>,
338 // Single-precision FP DIV
339 InstrItinData<IIC_fpDIV32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
340 InstrStage<20, [A8_NPipe], 0>,
341 InstrStage<20, [A8_NLSPipe]>], [20, 1, 1]>,
343 // Double-precision FP DIV
344 InstrItinData<IIC_fpDIV64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
345 InstrStage<29, [A8_NPipe], 0>,
346 InstrStage<29, [A8_NLSPipe]>], [29, 1, 1]>,
348 // Single-precision FP SQRT
349 InstrItinData<IIC_fpSQRT32, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
350 InstrStage<19, [A8_NPipe], 0>,
351 InstrStage<19, [A8_NLSPipe]>], [19, 1]>,
353 // Double-precision FP SQRT
354 InstrItinData<IIC_fpSQRT64, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
355 InstrStage<29, [A8_NPipe], 0>,
356 InstrStage<29, [A8_NLSPipe]>], [29, 1]>,
359 // Integer to Single-precision Move
360 InstrItinData<IIC_fpMOVIS, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
361 InstrStage<1, [A8_NPipe]>],
364 // Integer to Double-precision Move
365 InstrItinData<IIC_fpMOVID, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
366 InstrStage<1, [A8_NPipe]>],
369 // Single-precision to Integer Move
370 InstrItinData<IIC_fpMOVSI, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
371 InstrStage<1, [A8_NPipe]>],
374 // Double-precision to Integer Move
375 InstrItinData<IIC_fpMOVDI, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
376 InstrStage<1, [A8_NPipe]>],
380 // Single-precision FP Load
381 InstrItinData<IIC_fpLoad32, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
382 InstrStage<1, [A8_NLSPipe], 0>,
383 InstrStage<1, [A8_LSPipe]>],
386 // Double-precision FP Load
387 InstrItinData<IIC_fpLoad64, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
388 InstrStage<1, [A8_NLSPipe], 0>,
389 InstrStage<1, [A8_LSPipe]>],
393 // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers.
394 InstrItinData<IIC_fpLoad_m, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
395 InstrStage<1, [A8_NLSPipe], 0>,
396 InstrStage<1, [A8_LSPipe]>,
397 InstrStage<1, [A8_NLSPipe], 0>,
398 InstrStage<1, [A8_LSPipe]>],
399 [1, 1, 1, 2], [], -1>, // dynamic uops
401 // FP Load Multiple + update
402 InstrItinData<IIC_fpLoad_mu,[InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
403 InstrStage<1, [A8_NLSPipe], 0>,
404 InstrStage<1, [A8_LSPipe]>,
405 InstrStage<1, [A8_NLSPipe], 0>,
406 InstrStage<1, [A8_LSPipe]>],
407 [2, 1, 1, 1, 2], [], -1>, // dynamic uops
409 // Single-precision FP Store
410 InstrItinData<IIC_fpStore32,[InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
411 InstrStage<1, [A8_NLSPipe], 0>,
412 InstrStage<1, [A8_LSPipe]>],
415 // Double-precision FP Store
416 InstrItinData<IIC_fpStore64,[InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
417 InstrStage<1, [A8_NLSPipe], 0>,
418 InstrStage<1, [A8_LSPipe]>],
422 InstrItinData<IIC_fpStore_m,[InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
423 InstrStage<1, [A8_NLSPipe], 0>,
424 InstrStage<1, [A8_LSPipe]>,
425 InstrStage<1, [A8_NLSPipe], 0>,
426 InstrStage<1, [A8_LSPipe]>],
427 [1, 1, 1, 1], [], -1>, // dynamic uops
429 // FP Store Multiple + update
430 InstrItinData<IIC_fpStore_mu,[InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
431 InstrStage<1, [A8_NLSPipe], 0>,
432 InstrStage<1, [A8_LSPipe]>,
433 InstrStage<1, [A8_NLSPipe], 0>,
434 InstrStage<1, [A8_LSPipe]>],
435 [2, 1, 1, 1, 1], [], -1>, // dynamic uops
437 // Issue through integer pipeline, and execute in NEON unit.
440 InstrItinData<IIC_VLD1, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
441 InstrStage<2, [A8_NLSPipe], 0>,
442 InstrStage<2, [A8_LSPipe]>],
445 InstrItinData<IIC_VLD1x2, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
446 InstrStage<2, [A8_NLSPipe], 0>,
447 InstrStage<2, [A8_LSPipe]>],
451 InstrItinData<IIC_VLD1x3, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
452 InstrStage<3, [A8_NLSPipe], 0>,
453 InstrStage<3, [A8_LSPipe]>],
457 InstrItinData<IIC_VLD1x4, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
458 InstrStage<3, [A8_NLSPipe], 0>,
459 InstrStage<3, [A8_LSPipe]>],
463 InstrItinData<IIC_VLD1u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
464 InstrStage<2, [A8_NLSPipe], 0>,
465 InstrStage<2, [A8_LSPipe]>],
469 InstrItinData<IIC_VLD1x2u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
470 InstrStage<2, [A8_NLSPipe], 0>,
471 InstrStage<2, [A8_LSPipe]>],
475 InstrItinData<IIC_VLD1x3u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
476 InstrStage<3, [A8_NLSPipe], 0>,
477 InstrStage<3, [A8_LSPipe]>],
481 InstrItinData<IIC_VLD1x4u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
482 InstrStage<3, [A8_NLSPipe], 0>,
483 InstrStage<3, [A8_LSPipe]>],
487 InstrItinData<IIC_VLD1ln, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
488 InstrStage<3, [A8_NLSPipe], 0>,
489 InstrStage<3, [A8_LSPipe]>],
493 InstrItinData<IIC_VLD1lnu, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
494 InstrStage<3, [A8_NLSPipe], 0>,
495 InstrStage<3, [A8_LSPipe]>],
499 InstrItinData<IIC_VLD1dup, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
500 InstrStage<2, [A8_NLSPipe], 0>,
501 InstrStage<2, [A8_LSPipe]>],
505 InstrItinData<IIC_VLD1dupu, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
506 InstrStage<2, [A8_NLSPipe], 0>,
507 InstrStage<2, [A8_LSPipe]>],
511 InstrItinData<IIC_VLD2, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
512 InstrStage<2, [A8_NLSPipe], 0>,
513 InstrStage<2, [A8_LSPipe]>],
517 InstrItinData<IIC_VLD2x2, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
518 InstrStage<3, [A8_NLSPipe], 0>,
519 InstrStage<3, [A8_LSPipe]>],
523 InstrItinData<IIC_VLD2ln, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
524 InstrStage<3, [A8_NLSPipe], 0>,
525 InstrStage<3, [A8_LSPipe]>],
529 InstrItinData<IIC_VLD2u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
530 InstrStage<2, [A8_NLSPipe], 0>,
531 InstrStage<2, [A8_LSPipe]>],
535 InstrItinData<IIC_VLD2x2u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
536 InstrStage<3, [A8_NLSPipe], 0>,
537 InstrStage<3, [A8_LSPipe]>],
541 InstrItinData<IIC_VLD2lnu, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
542 InstrStage<3, [A8_NLSPipe], 0>,
543 InstrStage<3, [A8_LSPipe]>],
544 [3, 3, 2, 1, 1, 1, 1, 1]>,
547 InstrItinData<IIC_VLD2dup, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
548 InstrStage<2, [A8_NLSPipe], 0>,
549 InstrStage<2, [A8_LSPipe]>],
553 InstrItinData<IIC_VLD2dupu, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
554 InstrStage<2, [A8_NLSPipe], 0>,
555 InstrStage<2, [A8_LSPipe]>],
559 InstrItinData<IIC_VLD3, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
560 InstrStage<4, [A8_NLSPipe], 0>,
561 InstrStage<4, [A8_LSPipe]>],
565 InstrItinData<IIC_VLD3ln, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
566 InstrStage<5, [A8_NLSPipe], 0>,
567 InstrStage<5, [A8_LSPipe]>],
568 [4, 4, 5, 1, 1, 1, 1, 2]>,
571 InstrItinData<IIC_VLD3u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
572 InstrStage<4, [A8_NLSPipe], 0>,
573 InstrStage<4, [A8_LSPipe]>],
577 InstrItinData<IIC_VLD3lnu, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
578 InstrStage<5, [A8_NLSPipe], 0>,
579 InstrStage<5, [A8_LSPipe]>],
580 [4, 4, 5, 2, 1, 1, 1, 1, 1, 2]>,
583 InstrItinData<IIC_VLD3dup, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
584 InstrStage<3, [A8_NLSPipe], 0>,
585 InstrStage<3, [A8_LSPipe]>],
589 InstrItinData<IIC_VLD3dupu, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
590 InstrStage<3, [A8_NLSPipe], 0>,
591 InstrStage<3, [A8_LSPipe]>],
595 InstrItinData<IIC_VLD4, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
596 InstrStage<4, [A8_NLSPipe], 0>,
597 InstrStage<4, [A8_LSPipe]>],
601 InstrItinData<IIC_VLD4ln, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
602 InstrStage<5, [A8_NLSPipe], 0>,
603 InstrStage<5, [A8_LSPipe]>],
604 [4, 4, 5, 5, 1, 1, 1, 1, 2, 2]>,
607 InstrItinData<IIC_VLD4u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
608 InstrStage<4, [A8_NLSPipe], 0>,
609 InstrStage<4, [A8_LSPipe]>],
613 InstrItinData<IIC_VLD4lnu, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
614 InstrStage<5, [A8_NLSPipe], 0>,
615 InstrStage<5, [A8_LSPipe]>],
616 [4, 4, 5, 5, 2, 1, 1, 1, 1, 1, 2, 2]>,
619 InstrItinData<IIC_VLD4dup, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
620 InstrStage<3, [A8_NLSPipe], 0>,
621 InstrStage<3, [A8_LSPipe]>],
625 InstrItinData<IIC_VLD4dupu, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
626 InstrStage<3, [A8_NLSPipe], 0>,
627 InstrStage<3, [A8_LSPipe]>],
628 [2, 2, 3, 3, 2, 1, 1]>,
631 InstrItinData<IIC_VST1, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
632 InstrStage<2, [A8_NLSPipe], 0>,
633 InstrStage<2, [A8_LSPipe]>],
637 InstrItinData<IIC_VST1x2, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
638 InstrStage<2, [A8_NLSPipe], 0>,
639 InstrStage<2, [A8_LSPipe]>],
643 InstrItinData<IIC_VST1x3, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
644 InstrStage<3, [A8_NLSPipe], 0>,
645 InstrStage<3, [A8_LSPipe]>],
649 InstrItinData<IIC_VST1x4, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
650 InstrStage<3, [A8_NLSPipe], 0>,
651 InstrStage<3, [A8_LSPipe]>],
655 InstrItinData<IIC_VST1u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
656 InstrStage<2, [A8_NLSPipe], 0>,
657 InstrStage<2, [A8_LSPipe]>],
661 InstrItinData<IIC_VST1x2u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
662 InstrStage<2, [A8_NLSPipe], 0>,
663 InstrStage<2, [A8_LSPipe]>],
667 InstrItinData<IIC_VST1x3u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
668 InstrStage<3, [A8_NLSPipe], 0>,
669 InstrStage<3, [A8_LSPipe]>],
670 [2, 1, 1, 1, 1, 1, 2]>,
673 InstrItinData<IIC_VST1x4u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
674 InstrStage<3, [A8_NLSPipe], 0>,
675 InstrStage<3, [A8_LSPipe]>],
676 [2, 1, 1, 1, 1, 1, 2, 2]>,
679 InstrItinData<IIC_VST1ln, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
680 InstrStage<2, [A8_NLSPipe], 0>,
681 InstrStage<2, [A8_LSPipe]>],
685 InstrItinData<IIC_VST1lnu, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
686 InstrStage<2, [A8_NLSPipe], 0>,
687 InstrStage<2, [A8_LSPipe]>],
691 InstrItinData<IIC_VST2, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
692 InstrStage<2, [A8_NLSPipe], 0>,
693 InstrStage<2, [A8_LSPipe]>],
697 InstrItinData<IIC_VST2x2, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
698 InstrStage<4, [A8_NLSPipe], 0>,
699 InstrStage<4, [A8_LSPipe]>],
703 InstrItinData<IIC_VST2u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
704 InstrStage<2, [A8_NLSPipe], 0>,
705 InstrStage<2, [A8_LSPipe]>],
709 InstrItinData<IIC_VST2x2u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
710 InstrStage<4, [A8_NLSPipe], 0>,
711 InstrStage<4, [A8_LSPipe]>],
712 [2, 1, 1, 1, 1, 1, 2, 2]>,
715 InstrItinData<IIC_VST2ln, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
716 InstrStage<2, [A8_NLSPipe], 0>,
717 InstrStage<2, [A8_LSPipe]>],
721 InstrItinData<IIC_VST2lnu, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
722 InstrStage<2, [A8_NLSPipe], 0>,
723 InstrStage<2, [A8_LSPipe]>],
727 InstrItinData<IIC_VST3, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
728 InstrStage<3, [A8_NLSPipe], 0>,
729 InstrStage<3, [A8_LSPipe]>],
733 InstrItinData<IIC_VST3u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
734 InstrStage<3, [A8_NLSPipe], 0>,
735 InstrStage<3, [A8_LSPipe]>],
736 [2, 1, 1, 1, 1, 1, 2]>,
739 InstrItinData<IIC_VST3ln, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
740 InstrStage<3, [A8_NLSPipe], 0>,
741 InstrStage<3, [A8_LSPipe]>],
745 InstrItinData<IIC_VST3lnu, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
746 InstrStage<3, [A8_NLSPipe], 0>,
747 InstrStage<3, [A8_LSPipe]>],
748 [2, 1, 1, 1, 1, 1, 2]>,
751 InstrItinData<IIC_VST4, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
752 InstrStage<4, [A8_NLSPipe], 0>,
753 InstrStage<4, [A8_LSPipe]>],
757 InstrItinData<IIC_VST4u, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
758 InstrStage<4, [A8_NLSPipe], 0>,
759 InstrStage<4, [A8_LSPipe]>],
760 [2, 1, 1, 1, 1, 1, 2, 2]>,
763 InstrItinData<IIC_VST4ln, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
764 InstrStage<4, [A8_NLSPipe], 0>,
765 InstrStage<4, [A8_LSPipe]>],
769 InstrItinData<IIC_VST4lnu, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
770 InstrStage<4, [A8_NLSPipe], 0>,
771 InstrStage<4, [A8_LSPipe]>],
772 [2, 1, 1, 1, 1, 1, 2, 2]>,
774 // Double-register FP Unary
775 InstrItinData<IIC_VUNAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
776 InstrStage<1, [A8_NPipe]>], [5, 2]>,
778 // Quad-register FP Unary
779 // Result written in N5, but that is relative to the last cycle of multicycle,
780 // so we use 6 for those cases
781 InstrItinData<IIC_VUNAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
782 InstrStage<2, [A8_NPipe]>], [6, 2]>,
784 // Double-register FP Binary
785 InstrItinData<IIC_VBIND, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
786 InstrStage<1, [A8_NPipe]>], [5, 2, 2]>,
789 InstrItinData<IIC_VPBIND, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
790 InstrStage<1, [A8_NPipe]>], [5, 2, 2]>,
792 // Double-register FP VMUL
793 InstrItinData<IIC_VFMULD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
794 InstrStage<1, [A8_NPipe]>], [5, 2, 1]>,
797 // Quad-register FP Binary
798 // Result written in N5, but that is relative to the last cycle of multicycle,
799 // so we use 6 for those cases
800 InstrItinData<IIC_VBINQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
801 InstrStage<2, [A8_NPipe]>], [6, 2, 2]>,
803 // Quad-register FP VMUL
804 InstrItinData<IIC_VFMULQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
805 InstrStage<1, [A8_NPipe]>], [6, 2, 1]>,
808 InstrItinData<IIC_VMOV, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
809 InstrStage<1, [A8_NPipe]>], [1, 1]>,
812 InstrItinData<IIC_VMOVImm, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
813 InstrStage<1, [A8_NPipe]>], [3]>,
815 // Double-register Permute Move
816 InstrItinData<IIC_VMOVD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
817 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
819 // Quad-register Permute Move
820 // Result written in N2, but that is relative to the last cycle of multicycle,
821 // so we use 3 for those cases
822 InstrItinData<IIC_VMOVQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
823 InstrStage<2, [A8_NLSPipe]>], [3, 1]>,
825 // Integer to Single-precision Move
826 InstrItinData<IIC_VMOVIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
827 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
829 // Integer to Double-precision Move
830 InstrItinData<IIC_VMOVID , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
831 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
833 // Single-precision to Integer Move
834 InstrItinData<IIC_VMOVSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
835 InstrStage<1, [A8_NLSPipe]>], [20, 1]>,
837 // Double-precision to Integer Move
838 InstrItinData<IIC_VMOVDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
839 InstrStage<1, [A8_NLSPipe]>], [20, 20, 1]>,
841 // Integer to Lane Move
842 InstrItinData<IIC_VMOVISL , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
843 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
845 // Vector narrow move
846 InstrItinData<IIC_VMOVN , [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
847 InstrStage<1, [A8_NPipe]>], [2, 1]>,
849 // Double-register Permute
850 InstrItinData<IIC_VPERMD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
851 InstrStage<1, [A8_NLSPipe]>], [2, 2, 1, 1]>,
853 // Quad-register Permute
854 // Result written in N2, but that is relative to the last cycle of multicycle,
855 // so we use 3 for those cases
856 InstrItinData<IIC_VPERMQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
857 InstrStage<2, [A8_NLSPipe]>], [3, 3, 1, 1]>,
859 // Quad-register Permute (3 cycle issue)
860 // Result written in N2, but that is relative to the last cycle of multicycle,
861 // so we use 4 for those cases
862 InstrItinData<IIC_VPERMQ3, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
863 InstrStage<1, [A8_NLSPipe]>,
864 InstrStage<1, [A8_NPipe], 0>,
865 InstrStage<2, [A8_NLSPipe]>], [4, 4, 1, 1]>,
867 // Double-register FP Multiple-Accumulate
868 InstrItinData<IIC_VMACD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
869 InstrStage<1, [A8_NPipe]>], [9, 3, 2, 2]>,
871 // Quad-register FP Multiple-Accumulate
872 // Result written in N9, but that is relative to the last cycle of multicycle,
873 // so we use 10 for those cases
874 InstrItinData<IIC_VMACQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
875 InstrStage<2, [A8_NPipe]>], [10, 3, 2, 2]>,
877 // Double-register Fused FP Multiple-Accumulate
878 InstrItinData<IIC_VFMACD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
879 InstrStage<1, [A8_NPipe]>], [9, 3, 2, 2]>,
881 // Quad-register Fused FP Multiple-Accumulate
882 // Result written in N9, but that is relative to the last cycle of multicycle,
883 // so we use 10 for those cases
884 InstrItinData<IIC_VFMACQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
885 InstrStage<2, [A8_NPipe]>], [10, 3, 2, 2]>,
887 // Double-register Reciprical Step
888 InstrItinData<IIC_VRECSD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
889 InstrStage<1, [A8_NPipe]>], [9, 2, 2]>,
891 // Quad-register Reciprical Step
892 InstrItinData<IIC_VRECSQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
893 InstrStage<2, [A8_NPipe]>], [10, 2, 2]>,
895 // Double-register Integer Count
896 InstrItinData<IIC_VCNTiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
897 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
899 // Quad-register Integer Count
900 // Result written in N3, but that is relative to the last cycle of multicycle,
901 // so we use 4 for those cases
902 InstrItinData<IIC_VCNTiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
903 InstrStage<2, [A8_NPipe]>], [4, 2, 2]>,
905 // Double-register Integer Unary
906 InstrItinData<IIC_VUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
907 InstrStage<1, [A8_NPipe]>], [4, 2]>,
909 // Quad-register Integer Unary
910 InstrItinData<IIC_VUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
911 InstrStage<1, [A8_NPipe]>], [4, 2]>,
913 // Double-register Integer Q-Unary
914 InstrItinData<IIC_VQUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
915 InstrStage<1, [A8_NPipe]>], [4, 1]>,
917 // Quad-register Integer CountQ-Unary
918 InstrItinData<IIC_VQUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
919 InstrStage<1, [A8_NPipe]>], [4, 1]>,
921 // Double-register Integer Binary
922 InstrItinData<IIC_VBINiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
923 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
925 // Quad-register Integer Binary
926 InstrItinData<IIC_VBINiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
927 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
929 // Double-register Integer Binary (4 cycle)
930 InstrItinData<IIC_VBINi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
931 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
933 // Quad-register Integer Binary (4 cycle)
934 InstrItinData<IIC_VBINi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
935 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
938 // Double-register Integer Subtract
939 InstrItinData<IIC_VSUBiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
940 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
942 // Quad-register Integer Subtract
943 InstrItinData<IIC_VSUBiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
944 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
946 // Double-register Integer Subtract
947 InstrItinData<IIC_VSUBi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
948 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
950 // Quad-register Integer Subtract
951 InstrItinData<IIC_VSUBi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
952 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
954 // Double-register Integer Shift
955 InstrItinData<IIC_VSHLiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
956 InstrStage<1, [A8_NPipe]>], [3, 1, 1]>,
958 // Quad-register Integer Shift
959 InstrItinData<IIC_VSHLiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
960 InstrStage<2, [A8_NPipe]>], [4, 1, 1]>,
962 // Double-register Integer Shift (4 cycle)
963 InstrItinData<IIC_VSHLi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
964 InstrStage<1, [A8_NPipe]>], [4, 1, 1]>,
966 // Quad-register Integer Shift (4 cycle)
967 InstrItinData<IIC_VSHLi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
968 InstrStage<2, [A8_NPipe]>], [5, 1, 1]>,
970 // Double-register Integer Pair Add Long
971 InstrItinData<IIC_VPALiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
972 InstrStage<1, [A8_NPipe]>], [6, 3, 1]>,
974 // Quad-register Integer Pair Add Long
975 InstrItinData<IIC_VPALiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
976 InstrStage<2, [A8_NPipe]>], [7, 3, 1]>,
978 // Double-register Absolute Difference and Accumulate
979 InstrItinData<IIC_VABAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
980 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 1]>,
982 // Quad-register Absolute Difference and Accumulate
983 InstrItinData<IIC_VABAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
984 InstrStage<2, [A8_NPipe]>], [6, 3, 2, 1]>,
987 // Double-register Integer Multiply (.8, .16)
988 InstrItinData<IIC_VMULi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
989 InstrStage<1, [A8_NPipe]>], [6, 2, 2]>,
991 // Double-register Integer Multiply (.32)
992 InstrItinData<IIC_VMULi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
993 InstrStage<2, [A8_NPipe]>], [7, 2, 1]>,
995 // Quad-register Integer Multiply (.8, .16)
996 InstrItinData<IIC_VMULi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
997 InstrStage<2, [A8_NPipe]>], [7, 2, 2]>,
999 // Quad-register Integer Multiply (.32)
1000 InstrItinData<IIC_VMULi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1001 InstrStage<1, [A8_NPipe]>,
1002 InstrStage<2, [A8_NLSPipe], 0>,
1003 InstrStage<3, [A8_NPipe]>], [9, 2, 1]>,
1005 // Double-register Integer Multiply-Accumulate (.8, .16)
1006 InstrItinData<IIC_VMACi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1007 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 2]>,
1009 // Double-register Integer Multiply-Accumulate (.32)
1010 InstrItinData<IIC_VMACi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1011 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 1]>,
1013 // Quad-register Integer Multiply-Accumulate (.8, .16)
1014 InstrItinData<IIC_VMACi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1015 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 2]>,
1017 // Quad-register Integer Multiply-Accumulate (.32)
1018 InstrItinData<IIC_VMACi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1019 InstrStage<1, [A8_NPipe]>,
1020 InstrStage<2, [A8_NLSPipe], 0>,
1021 InstrStage<3, [A8_NPipe]>], [9, 3, 2, 1]>,
1023 // Double-register VEXT
1024 InstrItinData<IIC_VEXTD, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1025 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
1027 // Quad-register VEXT
1028 InstrItinData<IIC_VEXTQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1029 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
1032 InstrItinData<IIC_VTB1, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1033 InstrStage<2, [A8_NLSPipe]>], [3, 2, 1]>,
1034 InstrItinData<IIC_VTB2, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1035 InstrStage<2, [A8_NLSPipe]>], [3, 2, 2, 1]>,
1036 InstrItinData<IIC_VTB3, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1037 InstrStage<1, [A8_NLSPipe]>,
1038 InstrStage<1, [A8_NPipe], 0>,
1039 InstrStage<2, [A8_NLSPipe]>], [4, 2, 2, 3, 1]>,
1040 InstrItinData<IIC_VTB4, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1041 InstrStage<1, [A8_NLSPipe]>,
1042 InstrStage<1, [A8_NPipe], 0>,
1043 InstrStage<2, [A8_NLSPipe]>],[4, 2, 2, 3, 3, 1]>,
1046 InstrItinData<IIC_VTBX1, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1047 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 1]>,
1048 InstrItinData<IIC_VTBX2, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1049 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 2, 1]>,
1050 InstrItinData<IIC_VTBX3, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1051 InstrStage<1, [A8_NLSPipe]>,
1052 InstrStage<1, [A8_NPipe], 0>,
1053 InstrStage<2, [A8_NLSPipe]>],[4, 1, 2, 2, 3, 1]>,
1054 InstrItinData<IIC_VTBX4, [InstrStage<1, [A8_Pipe0, A8_Pipe1], 0>,
1055 InstrStage<1, [A8_NLSPipe]>,
1056 InstrStage<1, [A8_NPipe], 0>,
1057 InstrStage<2, [A8_NLSPipe]>], [4, 1, 2, 2, 3, 3, 1]>
1060 // ===---------------------------------------------------------------------===//
1061 // This following definitions describe the simple machine model which
1062 // will replace itineraries.
1064 // Cortex-A8 machine model for scheduling and other instruction cost heuristics.
1065 def CortexA8Model : SchedMachineModel {
1066 let IssueWidth = 2; // 2 micro-ops are dispatched per cycle.
1067 let LoadLatency = 2; // Optimistic load latency assuming bypass.
1068 // This is overriden by OperandCycles if the
1069 // Itineraries are queried instead.
1070 let MispredictPenalty = 13; // Based on estimate of pipeline depth.
1071 let CompleteModel = 0;
1073 let Itineraries = CortexA8Itineraries;