blob: 915283bd259b894b1dfdbe8f37427f4f87a492ce [file] [log] [blame]
Anton Korobeynikove1676012010-04-07 18:22:11 +00001//=- ARMScheduleA8.td - ARM Cortex-A8 Scheduling Definitions -*- tablegen -*-=//
Jim Grosbache9e3f202010-06-28 04:27:01 +00002//
Anton Korobeynikove1676012010-04-07 18:22:11 +00003// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Jim Grosbache9e3f202010-06-28 04:27:01 +00007//
Anton Korobeynikove1676012010-04-07 18:22:11 +00008//===----------------------------------------------------------------------===//
9//
10// This file defines the itinerary class data for the ARM Cortex A8 processors.
11//
12//===----------------------------------------------------------------------===//
13
14//
15// Scheduling information derived from "Cortex-A8 Technical Reference Manual".
Anton Korobeynikov928eb492010-04-18 20:31:01 +000016// Functional Units.
17def A8_Issue : FuncUnit; // issue
18def A8_Pipe0 : FuncUnit; // pipeline 0
19def A8_Pipe1 : FuncUnit; // pipeline 1
20def A8_LdSt0 : FuncUnit; // pipeline 0 load/store
21def A8_LdSt1 : FuncUnit; // pipeline 1 load/store
22def A8_NPipe : FuncUnit; // NEON ALU/MUL pipe
23def A8_NLSPipe : FuncUnit; // NEON LS pipe
Anton Korobeynikove1676012010-04-07 18:22:11 +000024//
Anton Korobeynikov928eb492010-04-18 20:31:01 +000025// Dual issue pipeline represented by A8_Pipe0 | A8_Pipe1
Anton Korobeynikove1676012010-04-07 18:22:11 +000026//
Anton Korobeynikov928eb492010-04-18 20:31:01 +000027def CortexA8Itineraries : ProcessorItineraries<
Evan Cheng63d66ee2010-09-28 23:50:49 +000028 [A8_Issue, A8_Pipe0, A8_Pipe1, A8_LdSt0, A8_LdSt1, A8_NPipe, A8_NLSPipe],
29 [], [
Anton Korobeynikove1676012010-04-07 18:22:11 +000030 // Two fully-pipelined integer ALU pipelines
31 //
32 // No operand cycles
Anton Korobeynikov928eb492010-04-18 20:31:01 +000033 InstrItinData<IIC_iALUx , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000034 //
35 // Binary Instructions that produce a result
Jim Grosbache9e3f202010-06-28 04:27:01 +000036 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]>,
Evan Cheng3881cb72010-09-29 22:42:35 +000039 InstrItinData<IIC_iALUsir,[InstrStage<1,[A8_Pipe0, A8_Pipe1]>], [2, 1, 2]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +000040 InstrItinData<IIC_iALUsr,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000041 //
Evan Cheng7e1bf302010-09-29 00:27:46 +000042 // 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]>,
47 //
Anton Korobeynikove1676012010-04-07 18:22:11 +000048 // Unary Instructions that produce a result
Jim Grosbache9e3f202010-06-28 04:27:01 +000049 InstrItinData<IIC_iUNAr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
50 InstrItinData<IIC_iUNAsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000051 //
Evan Cheng576a3962010-09-25 00:49:35 +000052 // 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]>,
Evan Cheng7e1bf302010-09-29 00:27:46 +000055 InstrItinData<IIC_iEXTAsr,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>],[2, 2, 1, 1]>,
Evan Cheng576a3962010-09-25 00:49:35 +000056 //
Anton Korobeynikove1676012010-04-07 18:22:11 +000057 // Compare instructions
Jim Grosbache9e3f202010-06-28 04:27:01 +000058 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000062 //
Evan Cheng5d42c562010-09-29 00:49:25 +000063 // Test instructions
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]>,
68 //
Anton Korobeynikove1676012010-04-07 18:22:11 +000069 // Move instructions, unconditional
Jim Grosbache9e3f202010-06-28 04:27:01 +000070 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]>,
Evan Cheng5d42c562010-09-29 00:49:25 +000074 InstrItinData<IIC_iMOVix2,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
75 InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000076 //
77 // Move instructions, conditional
Jim Grosbache9e3f202010-06-28 04:27:01 +000078 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]>,
Evan Cheng5d42c562010-09-29 00:49:25 +000082 //
83 // MVN instructions
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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000088
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
92 //
Anton Korobeynikov928eb492010-04-18 20:31:01 +000093 InstrItinData<IIC_iMUL16 , [InstrStage<1, [A8_Pipe0]>], [5, 1, 1]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +000094 InstrItinData<IIC_iMAC16 , [InstrStage<1, [A8_Pipe1], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +000095 InstrStage<2, [A8_Pipe0]>], [6, 1, 1, 4]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +000096 InstrItinData<IIC_iMUL32 , [InstrStage<1, [A8_Pipe1], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +000097 InstrStage<2, [A8_Pipe0]>], [6, 1, 1]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +000098 InstrItinData<IIC_iMAC32 , [InstrStage<1, [A8_Pipe1], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +000099 InstrStage<2, [A8_Pipe0]>], [6, 1, 1, 4]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000100 InstrItinData<IIC_iMUL64 , [InstrStage<2, [A8_Pipe1], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000101 InstrStage<3, [A8_Pipe0]>], [6, 6, 1, 1]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000102 InstrItinData<IIC_iMAC64 , [InstrStage<2, [A8_Pipe1], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000103 InstrStage<3, [A8_Pipe0]>], [6, 6, 1, 1]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000104
Anton Korobeynikove1676012010-04-07 18:22:11 +0000105 // Integer load pipeline
106 //
107 // loads have an extra cycle of latency, but are fully pipelined
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000108 // use A8_Issue to enforce the 1 load/store per cycle limit
Anton Korobeynikove1676012010-04-07 18:22:11 +0000109 //
110 // Immediate offset
Evan Cheng0e55fd62010-09-30 01:08:25 +0000111 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000120 //
121 // Register offset
Evan Cheng0e55fd62010-09-30 01:08:25 +0000122 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000131 //
132 // Scaled register offset, issues over 2 cycles
Evan Cheng0e55fd62010-09-30 01:08:25 +0000133 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000143 //
144 // Immediate offset with update
Evan Cheng0e55fd62010-09-30 01:08:25 +0000145 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000151 //
152 // Register offset with update
Evan Cheng0e55fd62010-09-30 01:08:25 +0000153 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000162 //
163 // Scaled register offset with update, issues over 2 cycles
Evan Cheng0e55fd62010-09-30 01:08:25 +0000164 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000174 //
175 // Load multiple
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000176 InstrItinData<IIC_iLoadm , [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]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000181
Evan Cheng7602acb2010-09-08 22:57:08 +0000182 //
183 // Load multiple plus branch
184 InstrItinData<IIC_iLoadmBr , [InstrStage<2, [A8_Issue], 0>,
185 InstrStage<2, [A8_Pipe0], 0>,
186 InstrStage<2, [A8_Pipe1]>,
187 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
188 InstrStage<1, [A8_LdSt0]>,
189 InstrStage<1, [A8_Pipe0, A8_Pipe1]>]>,
190
Evan Chengbd30ce42010-09-24 22:41:41 +0000191 //
192 // iLoadi + iALUr for t2LDRpci_pic.
193 InstrItinData<IIC_iLoadiALU, [InstrStage<1, [A8_Issue], 0>,
194 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
195 InstrStage<1, [A8_LdSt0]>,
196 InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [4, 1]>,
197
198
Anton Korobeynikove1676012010-04-07 18:22:11 +0000199 // Integer store pipeline
200 //
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000201 // use A8_Issue to enforce the 1 load/store per cycle limit
Anton Korobeynikove1676012010-04-07 18:22:11 +0000202 //
203 // Immediate offset
Evan Cheng0e55fd62010-09-30 01:08:25 +0000204 InstrItinData<IIC_iStore_i , [InstrStage<1, [A8_Issue], 0>,
205 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
206 InstrStage<1, [A8_LdSt0]>], [3, 1]>,
207 InstrItinData<IIC_iStore_bh_i,[InstrStage<1, [A8_Issue], 0>,
208 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
209 InstrStage<1, [A8_LdSt0]>], [3, 1]>,
210 InstrItinData<IIC_iStore_d_i, [InstrStage<1, [A8_Issue], 0>,
211 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
212 InstrStage<1, [A8_LdSt0]>], [3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000213 //
214 // Register offset
Evan Cheng0e55fd62010-09-30 01:08:25 +0000215 InstrItinData<IIC_iStore_r , [InstrStage<1, [A8_Issue], 0>,
216 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
217 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
218 InstrItinData<IIC_iStore_bh_r,[InstrStage<1, [A8_Issue], 0>,
219 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
220 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
221 InstrItinData<IIC_iStore_d_r, [InstrStage<1, [A8_Issue], 0>,
222 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
223 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000224 //
225 // Scaled register offset, issues over 2 cycles
Evan Cheng0e55fd62010-09-30 01:08:25 +0000226 InstrItinData<IIC_iStore_si , [InstrStage<2, [A8_Issue], 0>,
227 InstrStage<1, [A8_Pipe0], 0>,
228 InstrStage<1, [A8_Pipe1]>,
229 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
230 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
231 InstrItinData<IIC_iStore_bh_si,[InstrStage<2, [A8_Issue], 0>,
232 InstrStage<1, [A8_Pipe0], 0>,
233 InstrStage<1, [A8_Pipe1]>,
234 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
235 InstrStage<1, [A8_LdSt0]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000236 //
237 // Immediate offset with update
Evan Cheng0e55fd62010-09-30 01:08:25 +0000238 InstrItinData<IIC_iStore_iu , [InstrStage<1, [A8_Issue], 0>,
239 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
240 InstrStage<1, [A8_LdSt0]>], [2, 3, 1]>,
241 InstrItinData<IIC_iStore_bh_iu,[InstrStage<1, [A8_Issue], 0>,
242 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
243 InstrStage<1, [A8_LdSt0]>], [2, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000244 //
245 // Register offset with update
Evan Cheng0e55fd62010-09-30 01:08:25 +0000246 InstrItinData<IIC_iStore_ru , [InstrStage<1, [A8_Issue], 0>,
247 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
248 InstrStage<1, [A8_LdSt0]>], [2, 3, 1, 1]>,
249 InstrItinData<IIC_iStore_bh_ru,[InstrStage<1, [A8_Issue], 0>,
250 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
251 InstrStage<1, [A8_LdSt0]>], [2, 3, 1, 1]>,
252 InstrItinData<IIC_iStore_d_ru, [InstrStage<1, [A8_Issue], 0>,
253 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
254 InstrStage<1, [A8_LdSt0]>], [2, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000255 //
256 // Scaled register offset with update, issues over 2 cycles
Evan Cheng0e55fd62010-09-30 01:08:25 +0000257 InstrItinData<IIC_iStore_siu, [InstrStage<2, [A8_Issue], 0>,
258 InstrStage<1, [A8_Pipe0], 0>,
259 InstrStage<1, [A8_Pipe1]>,
260 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
261 InstrStage<1, [A8_LdSt0]>], [3, 3, 1, 1]>,
262 InstrItinData<IIC_iStore_bh_siu,[InstrStage<2, [A8_Issue], 0>,
263 InstrStage<1, [A8_Pipe0], 0>,
264 InstrStage<1, [A8_Pipe1]>,
265 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
266 InstrStage<1, [A8_LdSt0]>], [3, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000267 //
268 // Store multiple
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000269 InstrItinData<IIC_iStorem , [InstrStage<2, [A8_Issue], 0>,
270 InstrStage<2, [A8_Pipe0], 0>,
271 InstrStage<2, [A8_Pipe1]>,
272 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
273 InstrStage<1, [A8_LdSt0]>]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000274
Anton Korobeynikove1676012010-04-07 18:22:11 +0000275 // Branch
276 //
277 // no delay slots, so the latency of a branch is unimportant
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000278 InstrItinData<IIC_Br , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000279
280 // VFP
281 // Issue through integer pipeline, and execute in NEON unit. We assume
282 // RunFast mode so that NFP pipeline is used for single-precision when
283 // possible.
284 //
285 // FP Special Register to Integer Register File Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000286 InstrItinData<IIC_fpSTAT , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
287 InstrStage<1, [A8_NLSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000288 //
289 // Single-precision FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000290 InstrItinData<IIC_fpUNA32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
291 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000292 //
293 // Double-precision FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000294 InstrItinData<IIC_fpUNA64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
295 InstrStage<4, [A8_NPipe], 0>,
296 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000297 //
298 // Single-precision FP Compare
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000299 InstrItinData<IIC_fpCMP32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
300 InstrStage<1, [A8_NPipe]>], [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000301 //
302 // Double-precision FP Compare
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000303 InstrItinData<IIC_fpCMP64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
304 InstrStage<4, [A8_NPipe], 0>,
305 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000306 //
307 // Single to Double FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000308 InstrItinData<IIC_fpCVTSD , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
309 InstrStage<7, [A8_NPipe], 0>,
310 InstrStage<7, [A8_NLSPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000311 //
312 // Double to Single FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000313 InstrItinData<IIC_fpCVTDS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
314 InstrStage<5, [A8_NPipe], 0>,
315 InstrStage<5, [A8_NLSPipe]>], [5, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000316 //
317 // Single-Precision FP to Integer Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000318 InstrItinData<IIC_fpCVTSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
319 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000320 //
321 // Double-Precision FP to Integer Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000322 InstrItinData<IIC_fpCVTDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
323 InstrStage<8, [A8_NPipe], 0>,
324 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000325 //
326 // Integer to Single-Precision FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000327 InstrItinData<IIC_fpCVTIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
328 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000329 //
330 // Integer to Double-Precision FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000331 InstrItinData<IIC_fpCVTID , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
332 InstrStage<8, [A8_NPipe], 0>,
333 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000334 //
335 // Single-precision FP ALU
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000336 InstrItinData<IIC_fpALU32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
337 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000338 //
339 // Double-precision FP ALU
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000340 InstrItinData<IIC_fpALU64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
341 InstrStage<9, [A8_NPipe], 0>,
342 InstrStage<9, [A8_NLSPipe]>], [9, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000343 //
344 // Single-precision FP Multiply
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000345 InstrItinData<IIC_fpMUL32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
346 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000347 //
348 // Double-precision FP Multiply
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000349 InstrItinData<IIC_fpMUL64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
350 InstrStage<11, [A8_NPipe], 0>,
351 InstrStage<11, [A8_NLSPipe]>], [11, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000352 //
353 // Single-precision FP MAC
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000354 InstrItinData<IIC_fpMAC32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
355 InstrStage<1, [A8_NPipe]>], [7, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000356 //
357 // Double-precision FP MAC
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000358 InstrItinData<IIC_fpMAC64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
359 InstrStage<19, [A8_NPipe], 0>,
360 InstrStage<19, [A8_NLSPipe]>], [19, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000361 //
362 // Single-precision FP DIV
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000363 InstrItinData<IIC_fpDIV32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
364 InstrStage<20, [A8_NPipe], 0>,
365 InstrStage<20, [A8_NLSPipe]>], [20, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000366 //
367 // Double-precision FP DIV
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000368 InstrItinData<IIC_fpDIV64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
369 InstrStage<29, [A8_NPipe], 0>,
370 InstrStage<29, [A8_NLSPipe]>], [29, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000371 //
372 // Single-precision FP SQRT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000373 InstrItinData<IIC_fpSQRT32, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
374 InstrStage<19, [A8_NPipe], 0>,
375 InstrStage<19, [A8_NLSPipe]>], [19, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000376 //
377 // Double-precision FP SQRT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000378 InstrItinData<IIC_fpSQRT64, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
379 InstrStage<29, [A8_NPipe], 0>,
380 InstrStage<29, [A8_NLSPipe]>], [29, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000381 //
382 // Single-precision FP Load
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000383 // use A8_Issue to enforce the 1 load/store per cycle limit
Jim Grosbache9e3f202010-06-28 04:27:01 +0000384 InstrItinData<IIC_fpLoad32, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000385 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
386 InstrStage<1, [A8_LdSt0], 0>,
Evan Chengdf9da6a2010-10-01 21:40:30 +0000387 InstrStage<1, [A8_NLSPipe]>],
388 [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000389 //
390 // Double-precision FP Load
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000391 // use A8_Issue to enforce the 1 load/store per cycle limit
Jim Grosbache9e3f202010-06-28 04:27:01 +0000392 InstrItinData<IIC_fpLoad64, [InstrStage<2, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000393 InstrStage<1, [A8_Pipe0], 0>,
394 InstrStage<1, [A8_Pipe1]>,
395 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
396 InstrStage<1, [A8_LdSt0], 0>,
Evan Chengdf9da6a2010-10-01 21:40:30 +0000397 InstrStage<1, [A8_NLSPipe]>],
398 [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000399 //
400 // FP Load Multiple
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000401 // use A8_Issue to enforce the 1 load/store per cycle limit
Jim Grosbache9e3f202010-06-28 04:27:01 +0000402 InstrItinData<IIC_fpLoadm, [InstrStage<3, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000403 InstrStage<2, [A8_Pipe0], 0>,
404 InstrStage<2, [A8_Pipe1]>,
405 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
406 InstrStage<1, [A8_LdSt0], 0>,
407 InstrStage<1, [A8_NLSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000408 //
409 // Single-precision FP Store
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000410 // use A8_Issue to enforce the 1 load/store per cycle limit
Jim Grosbache9e3f202010-06-28 04:27:01 +0000411 InstrItinData<IIC_fpStore32,[InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000412 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
413 InstrStage<1, [A8_LdSt0], 0>,
Evan Chengdf9da6a2010-10-01 21:40:30 +0000414 InstrStage<1, [A8_NLSPipe]>],
415 [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000416 //
417 // Double-precision FP Store
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000418 // use A8_Issue to enforce the 1 load/store per cycle limit
Jim Grosbache9e3f202010-06-28 04:27:01 +0000419 InstrItinData<IIC_fpStore64,[InstrStage<2, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000420 InstrStage<1, [A8_Pipe0], 0>,
421 InstrStage<1, [A8_Pipe1]>,
422 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
423 InstrStage<1, [A8_LdSt0], 0>,
Evan Chengdf9da6a2010-10-01 21:40:30 +0000424 InstrStage<1, [A8_NLSPipe]>],
425 [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000426 //
427 // FP Store Multiple
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000428 // use A8_Issue to enforce the 1 load/store per cycle limit
Jim Grosbache9e3f202010-06-28 04:27:01 +0000429 InstrItinData<IIC_fpStorem, [InstrStage<3, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000430 InstrStage<2, [A8_Pipe0], 0>,
431 InstrStage<2, [A8_Pipe1]>,
432 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
433 InstrStage<1, [A8_LdSt0], 0>,
434 InstrStage<1, [A8_NLSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000435
436 // NEON
437 // Issue through integer pipeline, and execute in NEON unit.
438 //
439 // VLD1
440 // FIXME: We don't model this instruction properly
Jim Grosbache9e3f202010-06-28 04:27:01 +0000441 InstrItinData<IIC_VLD1, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000442 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
443 InstrStage<1, [A8_LdSt0], 0>,
444 InstrStage<1, [A8_NLSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000445 //
446 // VLD2
447 // FIXME: We don't model this instruction properly
Jim Grosbache9e3f202010-06-28 04:27:01 +0000448 InstrItinData<IIC_VLD2, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000449 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
450 InstrStage<1, [A8_LdSt0], 0>,
451 InstrStage<1, [A8_NLSPipe]>], [2, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000452 //
453 // VLD3
454 // FIXME: We don't model this instruction properly
Jim Grosbache9e3f202010-06-28 04:27:01 +0000455 InstrItinData<IIC_VLD3, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000456 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
457 InstrStage<1, [A8_LdSt0], 0>,
458 InstrStage<1, [A8_NLSPipe]>], [2, 2, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000459 //
460 // VLD4
461 // FIXME: We don't model this instruction properly
Jim Grosbache9e3f202010-06-28 04:27:01 +0000462 InstrItinData<IIC_VLD4, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000463 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
464 InstrStage<1, [A8_LdSt0], 0>,
465 InstrStage<1, [A8_NLSPipe]>], [2, 2, 2, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000466 //
467 // VST
468 // FIXME: We don't model this instruction properly
Jim Grosbache9e3f202010-06-28 04:27:01 +0000469 InstrItinData<IIC_VST, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000470 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
471 InstrStage<1, [A8_LdSt0], 0>,
472 InstrStage<1, [A8_NLSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000473 //
474 // Double-register FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000475 InstrItinData<IIC_VUNAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
476 InstrStage<1, [A8_NPipe]>], [5, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000477 //
478 // Quad-register FP Unary
479 // Result written in N5, but that is relative to the last cycle of multicycle,
480 // so we use 6 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000481 InstrItinData<IIC_VUNAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
482 InstrStage<2, [A8_NPipe]>], [6, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000483 //
484 // Double-register FP Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000485 InstrItinData<IIC_VBIND, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
486 InstrStage<1, [A8_NPipe]>], [5, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000487 //
488 // Quad-register FP Binary
489 // Result written in N5, but that is relative to the last cycle of multicycle,
490 // so we use 6 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000491 InstrItinData<IIC_VBINQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
492 InstrStage<2, [A8_NPipe]>], [6, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000493 //
Evan Chengcae6a122010-10-01 20:50:58 +0000494 // Move
495 InstrItinData<IIC_VMOV, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
496 InstrStage<1, [A8_NPipe]>], [1, 1]>,
497 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000498 // Move Immediate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000499 InstrItinData<IIC_VMOVImm, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
500 InstrStage<1, [A8_NPipe]>], [3]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000501 //
502 // Double-register Permute Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000503 InstrItinData<IIC_VMOVD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
504 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000505 //
506 // Quad-register Permute Move
507 // Result written in N2, but that is relative to the last cycle of multicycle,
508 // so we use 3 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000509 InstrItinData<IIC_VMOVQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
510 InstrStage<2, [A8_NLSPipe]>], [3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000511 //
512 // Integer to Single-precision Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000513 InstrItinData<IIC_VMOVIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
514 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000515 //
516 // Integer to Double-precision Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000517 InstrItinData<IIC_VMOVID , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
518 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000519 //
520 // Single-precision to Integer Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000521 InstrItinData<IIC_VMOVSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
522 InstrStage<1, [A8_NLSPipe]>], [20, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000523 //
524 // Double-precision to Integer Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000525 InstrItinData<IIC_VMOVDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
526 InstrStage<1, [A8_NLSPipe]>], [20, 20, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000527 //
528 // Integer to Lane Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000529 InstrItinData<IIC_VMOVISL , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
530 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000531 //
Evan Chengcae6a122010-10-01 20:50:58 +0000532 // Vector narrow move
533 InstrItinData<IIC_VMOVN , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Chengef0ccad2010-10-01 21:48:06 +0000534 InstrStage<1, [A8_NPipe]>], [2, 1]>,
Evan Chengcae6a122010-10-01 20:50:58 +0000535 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000536 // Double-register Permute
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000537 InstrItinData<IIC_VPERMD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
538 InstrStage<1, [A8_NLSPipe]>], [2, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000539 //
540 // Quad-register Permute
541 // Result written in N2, but that is relative to the last cycle of multicycle,
542 // so we use 3 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000543 InstrItinData<IIC_VPERMQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
544 InstrStage<2, [A8_NLSPipe]>], [3, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000545 //
546 // Quad-register Permute (3 cycle issue)
547 // Result written in N2, but that is relative to the last cycle of multicycle,
548 // so we use 4 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000549 InstrItinData<IIC_VPERMQ3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
550 InstrStage<1, [A8_NLSPipe]>,
551 InstrStage<1, [A8_NPipe], 0>,
552 InstrStage<2, [A8_NLSPipe]>], [4, 4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000553 //
554 // Double-register FP Multiple-Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000555 InstrItinData<IIC_VMACD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
556 InstrStage<1, [A8_NPipe]>], [9, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000557 //
558 // Quad-register FP Multiple-Accumulate
559 // Result written in N9, but that is relative to the last cycle of multicycle,
560 // so we use 10 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000561 InstrItinData<IIC_VMACQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
562 InstrStage<2, [A8_NPipe]>], [10, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000563 //
564 // Double-register Reciprical Step
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000565 InstrItinData<IIC_VRECSD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
566 InstrStage<1, [A8_NPipe]>], [9, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000567 //
568 // Quad-register Reciprical Step
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000569 InstrItinData<IIC_VRECSQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
570 InstrStage<2, [A8_NPipe]>], [10, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000571 //
572 // Double-register Integer Count
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000573 InstrItinData<IIC_VCNTiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
574 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000575 //
576 // Quad-register Integer Count
577 // Result written in N3, but that is relative to the last cycle of multicycle,
578 // so we use 4 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000579 InstrItinData<IIC_VCNTiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
580 InstrStage<2, [A8_NPipe]>], [4, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000581 //
582 // Double-register Integer Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000583 InstrItinData<IIC_VUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
584 InstrStage<1, [A8_NPipe]>], [4, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000585 //
586 // Quad-register Integer Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000587 InstrItinData<IIC_VUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
588 InstrStage<1, [A8_NPipe]>], [4, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000589 //
590 // Double-register Integer Q-Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000591 InstrItinData<IIC_VQUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
592 InstrStage<1, [A8_NPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000593 //
594 // Quad-register Integer CountQ-Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000595 InstrItinData<IIC_VQUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
596 InstrStage<1, [A8_NPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000597 //
598 // Double-register Integer Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000599 InstrItinData<IIC_VBINiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
600 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000601 //
602 // Quad-register Integer Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000603 InstrItinData<IIC_VBINiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
604 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000605 //
606 // Double-register Integer Binary (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000607 InstrItinData<IIC_VBINi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
608 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000609 //
610 // Quad-register Integer Binary (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000611 InstrItinData<IIC_VBINi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
612 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000613
614 //
615 // Double-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000616 InstrItinData<IIC_VSUBiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
617 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000618 //
619 // Quad-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000620 InstrItinData<IIC_VSUBiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
621 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000622 //
623 // Double-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000624 InstrItinData<IIC_VSUBi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
625 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000626 //
627 // Quad-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000628 InstrItinData<IIC_VSUBi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
629 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000630 //
631 // Double-register Integer Shift
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000632 InstrItinData<IIC_VSHLiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
633 InstrStage<1, [A8_NPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000634 //
635 // Quad-register Integer Shift
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000636 InstrItinData<IIC_VSHLiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
637 InstrStage<2, [A8_NPipe]>], [4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000638 //
639 // Double-register Integer Shift (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000640 InstrItinData<IIC_VSHLi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
641 InstrStage<1, [A8_NPipe]>], [4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000642 //
643 // Quad-register Integer Shift (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000644 InstrItinData<IIC_VSHLi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
645 InstrStage<2, [A8_NPipe]>], [5, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000646 //
647 // Double-register Integer Pair Add Long
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000648 InstrItinData<IIC_VPALiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
649 InstrStage<1, [A8_NPipe]>], [6, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000650 //
651 // Quad-register Integer Pair Add Long
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000652 InstrItinData<IIC_VPALiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
653 InstrStage<2, [A8_NPipe]>], [7, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000654 //
655 // Double-register Absolute Difference and Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000656 InstrItinData<IIC_VABAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
657 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000658 //
659 // Quad-register Absolute Difference and Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000660 InstrItinData<IIC_VABAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
661 InstrStage<2, [A8_NPipe]>], [6, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000662
663 //
664 // Double-register Integer Multiply (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000665 InstrItinData<IIC_VMULi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
666 InstrStage<1, [A8_NPipe]>], [6, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000667 //
668 // Double-register Integer Multiply (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000669 InstrItinData<IIC_VMULi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
670 InstrStage<2, [A8_NPipe]>], [7, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000671 //
672 // Quad-register Integer Multiply (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000673 InstrItinData<IIC_VMULi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
674 InstrStage<2, [A8_NPipe]>], [7, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000675 //
676 // Quad-register Integer Multiply (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000677 InstrItinData<IIC_VMULi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
678 InstrStage<1, [A8_NPipe]>,
679 InstrStage<2, [A8_NLSPipe], 0>,
680 InstrStage<3, [A8_NPipe]>], [9, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000681 //
682 // Double-register Integer Multiply-Accumulate (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000683 InstrItinData<IIC_VMACi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
684 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000685 //
686 // Double-register Integer Multiply-Accumulate (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000687 InstrItinData<IIC_VMACi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
688 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000689 //
690 // Quad-register Integer Multiply-Accumulate (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000691 InstrItinData<IIC_VMACi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
692 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000693 //
694 // Quad-register Integer Multiply-Accumulate (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000695 InstrItinData<IIC_VMACi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
696 InstrStage<1, [A8_NPipe]>,
697 InstrStage<2, [A8_NLSPipe], 0>,
698 InstrStage<3, [A8_NPipe]>], [9, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000699 //
700 // Double-register VEXT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000701 InstrItinData<IIC_VEXTD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
702 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000703 //
704 // Quad-register VEXT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000705 InstrItinData<IIC_VEXTQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
706 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000707 //
708 // VTB
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000709 InstrItinData<IIC_VTB1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
710 InstrStage<2, [A8_NLSPipe]>], [3, 2, 1]>,
711 InstrItinData<IIC_VTB2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
712 InstrStage<2, [A8_NLSPipe]>], [3, 2, 2, 1]>,
713 InstrItinData<IIC_VTB3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
714 InstrStage<1, [A8_NLSPipe]>,
715 InstrStage<1, [A8_NPipe], 0>,
716 InstrStage<2, [A8_NLSPipe]>], [4, 2, 2, 3, 1]>,
717 InstrItinData<IIC_VTB4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
718 InstrStage<1, [A8_NLSPipe]>,
719 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000720 InstrStage<2, [A8_NLSPipe]>],[4, 2, 2, 3, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000721 //
722 // VTBX
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000723 InstrItinData<IIC_VTBX1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
724 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 1]>,
725 InstrItinData<IIC_VTBX2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
726 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 2, 1]>,
727 InstrItinData<IIC_VTBX3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
728 InstrStage<1, [A8_NLSPipe]>,
729 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000730 InstrStage<2, [A8_NLSPipe]>],[4, 1, 2, 2, 3, 1]>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000731 InstrItinData<IIC_VTBX4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
732 InstrStage<1, [A8_NLSPipe]>,
733 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000734 InstrStage<2, [A8_NLSPipe]>], [4, 1, 2, 2, 3, 3, 1]>
Anton Korobeynikove1676012010-04-07 18:22:11 +0000735]>;