blob: ac4da75e960760dd3c3892fcf0f7f34eae876b0f [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 //
Evan Chenga0792de2010-10-06 06:27:31 +0000175 // Load multiple, def is the 5th operand.
176 InstrItinData<IIC_iLoad_m , [InstrStage<2, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000177 InstrStage<2, [A8_Pipe0], 0>,
178 InstrStage<2, [A8_Pipe1]>,
179 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000180 InstrStage<1, [A8_LdSt0]>], [1, 1, 1, 1, 3]>,
181 //
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]>,
Evan Cheng7602acb2010-09-08 22:57:08 +0000188 //
189 // Load multiple plus branch
Evan Chenga0792de2010-10-06 06:27:31 +0000190 InstrItinData<IIC_iLoad_mBr, [InstrStage<2, [A8_Issue], 0>,
Evan Cheng7602acb2010-09-08 22:57:08 +0000191 InstrStage<2, [A8_Pipe0], 0>,
192 InstrStage<2, [A8_Pipe1]>,
193 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
194 InstrStage<1, [A8_LdSt0]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000195 InstrStage<1, [A8_Pipe0, A8_Pipe1]>],
196 [1, 2, 1, 1, 3]>,
197 //
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]>,
204 //
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]>],
212 [1, 1, 3]>,
Evan Cheng7602acb2010-09-08 22:57:08 +0000213
Evan Chengbd30ce42010-09-24 22:41:41 +0000214 //
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]>,
220
221
Anton Korobeynikove1676012010-04-07 18:22:11 +0000222 // Integer store pipeline
223 //
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000224 // use A8_Issue to enforce the 1 load/store per cycle limit
Anton Korobeynikove1676012010-04-07 18:22:11 +0000225 //
226 // Immediate offset
Evan Cheng0e55fd62010-09-30 01:08:25 +0000227 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000236 //
237 // Register offset
Evan Cheng0e55fd62010-09-30 01:08:25 +0000238 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000247 //
248 // Scaled register offset, issues over 2 cycles
Evan Cheng0e55fd62010-09-30 01:08:25 +0000249 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000259 //
260 // Immediate offset with update
Evan Cheng0e55fd62010-09-30 01:08:25 +0000261 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000267 //
268 // Register offset with update
Evan Cheng0e55fd62010-09-30 01:08:25 +0000269 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000278 //
279 // Scaled register offset with update, issues over 2 cycles
Evan Cheng0e55fd62010-09-30 01:08:25 +0000280 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]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000290 //
291 // Store multiple
Evan Chenga0792de2010-10-06 06:27:31 +0000292 InstrItinData<IIC_iStore_m , [InstrStage<2, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000293 InstrStage<2, [A8_Pipe0], 0>,
294 InstrStage<2, [A8_Pipe1]>,
295 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
296 InstrStage<1, [A8_LdSt0]>]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000297 //
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]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000304
Anton Korobeynikove1676012010-04-07 18:22:11 +0000305 // Branch
306 //
307 // no delay slots, so the latency of a branch is unimportant
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000308 InstrItinData<IIC_Br , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000309
310 // VFP
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
313 // possible.
314 //
315 // FP Special Register to Integer Register File Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000316 InstrItinData<IIC_fpSTAT , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
317 InstrStage<1, [A8_NLSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000318 //
319 // Single-precision FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000320 InstrItinData<IIC_fpUNA32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
321 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000322 //
323 // Double-precision FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000324 InstrItinData<IIC_fpUNA64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
325 InstrStage<4, [A8_NPipe], 0>,
326 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000327 //
328 // Single-precision FP Compare
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000329 InstrItinData<IIC_fpCMP32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
330 InstrStage<1, [A8_NPipe]>], [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000331 //
332 // Double-precision FP Compare
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000333 InstrItinData<IIC_fpCMP64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
334 InstrStage<4, [A8_NPipe], 0>,
335 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000336 //
337 // Single to Double FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000338 InstrItinData<IIC_fpCVTSD , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
339 InstrStage<7, [A8_NPipe], 0>,
340 InstrStage<7, [A8_NLSPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000341 //
342 // Double to Single FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000343 InstrItinData<IIC_fpCVTDS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
344 InstrStage<5, [A8_NPipe], 0>,
345 InstrStage<5, [A8_NLSPipe]>], [5, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000346 //
347 // Single-Precision FP to Integer Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000348 InstrItinData<IIC_fpCVTSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
349 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000350 //
351 // Double-Precision FP to Integer Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000352 InstrItinData<IIC_fpCVTDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
353 InstrStage<8, [A8_NPipe], 0>,
354 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000355 //
356 // Integer to Single-Precision FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000357 InstrItinData<IIC_fpCVTIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
358 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000359 //
360 // Integer to Double-Precision FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000361 InstrItinData<IIC_fpCVTID , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
362 InstrStage<8, [A8_NPipe], 0>,
363 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000364 //
365 // Single-precision FP ALU
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000366 InstrItinData<IIC_fpALU32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
367 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000368 //
369 // Double-precision FP ALU
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000370 InstrItinData<IIC_fpALU64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
371 InstrStage<9, [A8_NPipe], 0>,
372 InstrStage<9, [A8_NLSPipe]>], [9, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000373 //
374 // Single-precision FP Multiply
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000375 InstrItinData<IIC_fpMUL32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
376 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000377 //
378 // Double-precision FP Multiply
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000379 InstrItinData<IIC_fpMUL64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
380 InstrStage<11, [A8_NPipe], 0>,
381 InstrStage<11, [A8_NLSPipe]>], [11, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000382 //
383 // Single-precision FP MAC
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000384 InstrItinData<IIC_fpMAC32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
385 InstrStage<1, [A8_NPipe]>], [7, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000386 //
387 // Double-precision FP MAC
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000388 InstrItinData<IIC_fpMAC64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
389 InstrStage<19, [A8_NPipe], 0>,
390 InstrStage<19, [A8_NLSPipe]>], [19, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000391 //
392 // Single-precision FP DIV
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000393 InstrItinData<IIC_fpDIV32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
394 InstrStage<20, [A8_NPipe], 0>,
395 InstrStage<20, [A8_NLSPipe]>], [20, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000396 //
397 // Double-precision FP DIV
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000398 InstrItinData<IIC_fpDIV64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
399 InstrStage<29, [A8_NPipe], 0>,
400 InstrStage<29, [A8_NLSPipe]>], [29, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000401 //
402 // Single-precision FP SQRT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000403 InstrItinData<IIC_fpSQRT32, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
404 InstrStage<19, [A8_NPipe], 0>,
405 InstrStage<19, [A8_NLSPipe]>], [19, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000406 //
407 // Double-precision FP SQRT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000408 InstrItinData<IIC_fpSQRT64, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
409 InstrStage<29, [A8_NPipe], 0>,
410 InstrStage<29, [A8_NLSPipe]>], [29, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000411 //
412 // Single-precision FP Load
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000413 // use A8_Issue to enforce the 1 load/store per cycle limit
Jim Grosbache9e3f202010-06-28 04:27:01 +0000414 InstrItinData<IIC_fpLoad32, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000415 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
416 InstrStage<1, [A8_LdSt0], 0>,
Evan Cheng5a50cee2010-10-07 01:50:48 +0000417 InstrStage<2, [A8_NLSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000418 [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000419 //
420 // Double-precision FP Load
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000421 // use A8_Issue to enforce the 1 load/store per cycle limit
Jim Grosbache9e3f202010-06-28 04:27:01 +0000422 InstrItinData<IIC_fpLoad64, [InstrStage<2, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000423 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
424 InstrStage<1, [A8_LdSt0], 0>,
Evan Cheng5a50cee2010-10-07 01:50:48 +0000425 InstrStage<2, [A8_NLSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000426 [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000427 //
428 // FP Load Multiple
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000429 // use A8_Issue to enforce the 1 load/store per cycle limit
Evan Cheng5a50cee2010-10-07 01:50:48 +0000430 InstrItinData<IIC_fpLoad_m, [InstrStage<3, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000431 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
432 InstrStage<1, [A8_LdSt0], 0>,
Evan Cheng5a50cee2010-10-07 01:50:48 +0000433 InstrStage<1, [A8_NLSPipe]>], [1, 1, 1, 2]>,
434 //
435 // FP Load Multiple + update
436 InstrItinData<IIC_fpLoad_mu,[InstrStage<3, [A8_Issue], 0>,
437 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
438 InstrStage<1, [A8_LdSt0], 0>,
439 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1, 1, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000440 //
441 // Single-precision FP Store
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000442 // use A8_Issue to enforce the 1 load/store per cycle limit
Jim Grosbache9e3f202010-06-28 04:27:01 +0000443 InstrItinData<IIC_fpStore32,[InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000444 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
445 InstrStage<1, [A8_LdSt0], 0>,
Evan Cheng5a50cee2010-10-07 01:50:48 +0000446 InstrStage<2, [A8_NLSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000447 [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000448 //
449 // Double-precision FP Store
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000450 // use A8_Issue to enforce the 1 load/store per cycle limit
Jim Grosbache9e3f202010-06-28 04:27:01 +0000451 InstrItinData<IIC_fpStore64,[InstrStage<2, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000452 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
453 InstrStage<1, [A8_LdSt0], 0>,
Evan Cheng5a50cee2010-10-07 01:50:48 +0000454 InstrStage<2, [A8_NLSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000455 [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000456 //
457 // FP Store Multiple
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000458 // use A8_Issue to enforce the 1 load/store per cycle limit
Evan Cheng5a50cee2010-10-07 01:50:48 +0000459 InstrItinData<IIC_fpStore_m,[InstrStage<3, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000460 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
461 InstrStage<1, [A8_LdSt0], 0>,
Evan Cheng5a50cee2010-10-07 01:50:48 +0000462 InstrStage<1, [A8_NLSPipe]>], [1, 1, 1, 1]>,
463 //
464 // FP Store Multiple + update
465 InstrItinData<IIC_fpStore_mu,[InstrStage<3, [A8_Issue], 0>,
466 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
467 InstrStage<1, [A8_LdSt0], 0>,
468 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000469
470 // NEON
471 // Issue through integer pipeline, and execute in NEON unit.
472 //
473 // VLD1
474 // FIXME: We don't model this instruction properly
Jim Grosbache9e3f202010-06-28 04:27:01 +0000475 InstrItinData<IIC_VLD1, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000476 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
477 InstrStage<1, [A8_LdSt0], 0>,
478 InstrStage<1, [A8_NLSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000479 //
480 // VLD2
481 // FIXME: We don't model this instruction properly
Jim Grosbache9e3f202010-06-28 04:27:01 +0000482 InstrItinData<IIC_VLD2, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000483 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
484 InstrStage<1, [A8_LdSt0], 0>,
485 InstrStage<1, [A8_NLSPipe]>], [2, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000486 //
487 // VLD3
488 // FIXME: We don't model this instruction properly
Jim Grosbache9e3f202010-06-28 04:27:01 +0000489 InstrItinData<IIC_VLD3, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000490 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
491 InstrStage<1, [A8_LdSt0], 0>,
492 InstrStage<1, [A8_NLSPipe]>], [2, 2, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000493 //
494 // VLD4
495 // FIXME: We don't model this instruction properly
Jim Grosbache9e3f202010-06-28 04:27:01 +0000496 InstrItinData<IIC_VLD4, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000497 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
498 InstrStage<1, [A8_LdSt0], 0>,
499 InstrStage<1, [A8_NLSPipe]>], [2, 2, 2, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000500 //
501 // VST
502 // FIXME: We don't model this instruction properly
Jim Grosbache9e3f202010-06-28 04:27:01 +0000503 InstrItinData<IIC_VST, [InstrStage<1, [A8_Issue], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000504 InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
505 InstrStage<1, [A8_LdSt0], 0>,
506 InstrStage<1, [A8_NLSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000507 //
508 // Double-register FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000509 InstrItinData<IIC_VUNAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
510 InstrStage<1, [A8_NPipe]>], [5, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000511 //
512 // Quad-register FP Unary
513 // Result written in N5, but that is relative to the last cycle of multicycle,
514 // so we use 6 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000515 InstrItinData<IIC_VUNAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
516 InstrStage<2, [A8_NPipe]>], [6, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000517 //
518 // Double-register FP Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000519 InstrItinData<IIC_VBIND, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
520 InstrStage<1, [A8_NPipe]>], [5, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000521 //
522 // Quad-register FP Binary
523 // Result written in N5, but that is relative to the last cycle of multicycle,
524 // so we use 6 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000525 InstrItinData<IIC_VBINQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
526 InstrStage<2, [A8_NPipe]>], [6, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000527 //
Evan Chengcae6a122010-10-01 20:50:58 +0000528 // Move
529 InstrItinData<IIC_VMOV, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
530 InstrStage<1, [A8_NPipe]>], [1, 1]>,
531 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000532 // Move Immediate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000533 InstrItinData<IIC_VMOVImm, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
534 InstrStage<1, [A8_NPipe]>], [3]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000535 //
536 // Double-register Permute Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000537 InstrItinData<IIC_VMOVD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
538 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000539 //
540 // Quad-register Permute Move
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_VMOVQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
544 InstrStage<2, [A8_NLSPipe]>], [3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000545 //
546 // Integer to Single-precision Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000547 InstrItinData<IIC_VMOVIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
548 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000549 //
550 // Integer to Double-precision Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000551 InstrItinData<IIC_VMOVID , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
552 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000553 //
554 // Single-precision to Integer Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000555 InstrItinData<IIC_VMOVSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
556 InstrStage<1, [A8_NLSPipe]>], [20, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000557 //
558 // Double-precision to Integer Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000559 InstrItinData<IIC_VMOVDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
560 InstrStage<1, [A8_NLSPipe]>], [20, 20, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000561 //
562 // Integer to Lane Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000563 InstrItinData<IIC_VMOVISL , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
564 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000565 //
Evan Chengcae6a122010-10-01 20:50:58 +0000566 // Vector narrow move
567 InstrItinData<IIC_VMOVN , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Chengef0ccad2010-10-01 21:48:06 +0000568 InstrStage<1, [A8_NPipe]>], [2, 1]>,
Evan Chengcae6a122010-10-01 20:50:58 +0000569 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000570 // Double-register Permute
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000571 InstrItinData<IIC_VPERMD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
572 InstrStage<1, [A8_NLSPipe]>], [2, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000573 //
574 // Quad-register Permute
575 // Result written in N2, but that is relative to the last cycle of multicycle,
576 // so we use 3 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000577 InstrItinData<IIC_VPERMQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
578 InstrStage<2, [A8_NLSPipe]>], [3, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000579 //
580 // Quad-register Permute (3 cycle issue)
581 // Result written in N2, but that is relative to the last cycle of multicycle,
582 // so we use 4 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000583 InstrItinData<IIC_VPERMQ3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
584 InstrStage<1, [A8_NLSPipe]>,
585 InstrStage<1, [A8_NPipe], 0>,
586 InstrStage<2, [A8_NLSPipe]>], [4, 4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000587 //
588 // Double-register FP Multiple-Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000589 InstrItinData<IIC_VMACD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
590 InstrStage<1, [A8_NPipe]>], [9, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000591 //
592 // Quad-register FP Multiple-Accumulate
593 // Result written in N9, but that is relative to the last cycle of multicycle,
594 // so we use 10 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000595 InstrItinData<IIC_VMACQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
596 InstrStage<2, [A8_NPipe]>], [10, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000597 //
598 // Double-register Reciprical Step
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000599 InstrItinData<IIC_VRECSD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
600 InstrStage<1, [A8_NPipe]>], [9, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000601 //
602 // Quad-register Reciprical Step
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000603 InstrItinData<IIC_VRECSQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
604 InstrStage<2, [A8_NPipe]>], [10, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000605 //
606 // Double-register Integer Count
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000607 InstrItinData<IIC_VCNTiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
608 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000609 //
610 // Quad-register Integer Count
611 // Result written in N3, but that is relative to the last cycle of multicycle,
612 // so we use 4 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000613 InstrItinData<IIC_VCNTiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
614 InstrStage<2, [A8_NPipe]>], [4, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000615 //
616 // Double-register Integer Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000617 InstrItinData<IIC_VUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
618 InstrStage<1, [A8_NPipe]>], [4, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000619 //
620 // Quad-register Integer Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000621 InstrItinData<IIC_VUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
622 InstrStage<1, [A8_NPipe]>], [4, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000623 //
624 // Double-register Integer Q-Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000625 InstrItinData<IIC_VQUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
626 InstrStage<1, [A8_NPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000627 //
628 // Quad-register Integer CountQ-Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000629 InstrItinData<IIC_VQUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
630 InstrStage<1, [A8_NPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000631 //
632 // Double-register Integer Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000633 InstrItinData<IIC_VBINiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
634 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000635 //
636 // Quad-register Integer Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000637 InstrItinData<IIC_VBINiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
638 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000639 //
640 // Double-register Integer Binary (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000641 InstrItinData<IIC_VBINi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
642 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000643 //
644 // Quad-register Integer Binary (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000645 InstrItinData<IIC_VBINi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
646 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000647
648 //
649 // Double-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000650 InstrItinData<IIC_VSUBiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
651 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000652 //
653 // Quad-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000654 InstrItinData<IIC_VSUBiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
655 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000656 //
657 // Double-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000658 InstrItinData<IIC_VSUBi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
659 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000660 //
661 // Quad-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000662 InstrItinData<IIC_VSUBi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
663 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000664 //
665 // Double-register Integer Shift
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000666 InstrItinData<IIC_VSHLiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
667 InstrStage<1, [A8_NPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000668 //
669 // Quad-register Integer Shift
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000670 InstrItinData<IIC_VSHLiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
671 InstrStage<2, [A8_NPipe]>], [4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000672 //
673 // Double-register Integer Shift (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000674 InstrItinData<IIC_VSHLi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
675 InstrStage<1, [A8_NPipe]>], [4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000676 //
677 // Quad-register Integer Shift (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000678 InstrItinData<IIC_VSHLi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
679 InstrStage<2, [A8_NPipe]>], [5, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000680 //
681 // Double-register Integer Pair Add Long
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000682 InstrItinData<IIC_VPALiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
683 InstrStage<1, [A8_NPipe]>], [6, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000684 //
685 // Quad-register Integer Pair Add Long
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000686 InstrItinData<IIC_VPALiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
687 InstrStage<2, [A8_NPipe]>], [7, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000688 //
689 // Double-register Absolute Difference and Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000690 InstrItinData<IIC_VABAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
691 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000692 //
693 // Quad-register Absolute Difference and Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000694 InstrItinData<IIC_VABAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
695 InstrStage<2, [A8_NPipe]>], [6, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000696
697 //
698 // Double-register Integer Multiply (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000699 InstrItinData<IIC_VMULi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
700 InstrStage<1, [A8_NPipe]>], [6, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000701 //
702 // Double-register Integer Multiply (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000703 InstrItinData<IIC_VMULi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
704 InstrStage<2, [A8_NPipe]>], [7, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000705 //
706 // Quad-register Integer Multiply (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000707 InstrItinData<IIC_VMULi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
708 InstrStage<2, [A8_NPipe]>], [7, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000709 //
710 // Quad-register Integer Multiply (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000711 InstrItinData<IIC_VMULi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
712 InstrStage<1, [A8_NPipe]>,
713 InstrStage<2, [A8_NLSPipe], 0>,
714 InstrStage<3, [A8_NPipe]>], [9, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000715 //
716 // Double-register Integer Multiply-Accumulate (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000717 InstrItinData<IIC_VMACi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
718 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000719 //
720 // Double-register Integer Multiply-Accumulate (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000721 InstrItinData<IIC_VMACi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
722 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000723 //
724 // Quad-register Integer Multiply-Accumulate (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000725 InstrItinData<IIC_VMACi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
726 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000727 //
728 // Quad-register Integer Multiply-Accumulate (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000729 InstrItinData<IIC_VMACi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
730 InstrStage<1, [A8_NPipe]>,
731 InstrStage<2, [A8_NLSPipe], 0>,
732 InstrStage<3, [A8_NPipe]>], [9, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000733 //
734 // Double-register VEXT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000735 InstrItinData<IIC_VEXTD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
736 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000737 //
738 // Quad-register VEXT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000739 InstrItinData<IIC_VEXTQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
740 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000741 //
742 // VTB
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000743 InstrItinData<IIC_VTB1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
744 InstrStage<2, [A8_NLSPipe]>], [3, 2, 1]>,
745 InstrItinData<IIC_VTB2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
746 InstrStage<2, [A8_NLSPipe]>], [3, 2, 2, 1]>,
747 InstrItinData<IIC_VTB3, [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, 1]>,
751 InstrItinData<IIC_VTB4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
752 InstrStage<1, [A8_NLSPipe]>,
753 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000754 InstrStage<2, [A8_NLSPipe]>],[4, 2, 2, 3, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000755 //
756 // VTBX
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000757 InstrItinData<IIC_VTBX1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
758 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 1]>,
759 InstrItinData<IIC_VTBX2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
760 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 2, 1]>,
761 InstrItinData<IIC_VTBX3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
762 InstrStage<1, [A8_NLSPipe]>,
763 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000764 InstrStage<2, [A8_NLSPipe]>],[4, 1, 2, 2, 3, 1]>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000765 InstrItinData<IIC_VTBX4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
766 InstrStage<1, [A8_NLSPipe]>,
767 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000768 InstrStage<2, [A8_NLSPipe]>], [4, 1, 2, 2, 3, 3, 1]>
Anton Korobeynikove1676012010-04-07 18:22:11 +0000769]>;