blob: fc6ad340051c4fb5903a13a30747f2f135dd74ff [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.
Anton Korobeynikov928eb492010-04-18 20:31:01 +000017def A8_Pipe0 : FuncUnit; // pipeline 0
18def A8_Pipe1 : FuncUnit; // pipeline 1
Evan Chengd2ca8132010-10-09 01:03:04 +000019def A8_LSPipe : FuncUnit; // Load / store pipeline
Anton Korobeynikov928eb492010-04-18 20:31:01 +000020def A8_NPipe : FuncUnit; // NEON ALU/MUL pipe
21def A8_NLSPipe : FuncUnit; // NEON LS pipe
Anton Korobeynikove1676012010-04-07 18:22:11 +000022//
Anton Korobeynikov928eb492010-04-18 20:31:01 +000023// Dual issue pipeline represented by A8_Pipe0 | A8_Pipe1
Anton Korobeynikove1676012010-04-07 18:22:11 +000024//
Anton Korobeynikov928eb492010-04-18 20:31:01 +000025def CortexA8Itineraries : ProcessorItineraries<
Evan Chengd2ca8132010-10-09 01:03:04 +000026 [A8_Pipe0, A8_Pipe1, A8_LSPipe, A8_NPipe, A8_NLSPipe],
Evan Cheng63d66ee2010-09-28 23:50:49 +000027 [], [
Anton Korobeynikove1676012010-04-07 18:22:11 +000028 // Two fully-pipelined integer ALU pipelines
29 //
30 // No operand cycles
Anton Korobeynikov928eb492010-04-18 20:31:01 +000031 InstrItinData<IIC_iALUx , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000032 //
33 // Binary Instructions that produce a result
Jim Grosbache9e3f202010-06-28 04:27:01 +000034 InstrItinData<IIC_iALUi ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
35 InstrItinData<IIC_iALUr ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 2]>,
36 InstrItinData<IIC_iALUsi,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1]>,
Evan Cheng3881cb72010-09-29 22:42:35 +000037 InstrItinData<IIC_iALUsir,[InstrStage<1,[A8_Pipe0, A8_Pipe1]>], [2, 1, 2]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +000038 InstrItinData<IIC_iALUsr,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000039 //
Evan Cheng7e1bf302010-09-29 00:27:46 +000040 // Bitwise Instructions that produce a result
41 InstrItinData<IIC_iBITi ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
42 InstrItinData<IIC_iBITr ,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 2]>,
43 InstrItinData<IIC_iBITsi,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1]>,
44 InstrItinData<IIC_iBITsr,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1, 1]>,
45 //
Anton Korobeynikove1676012010-04-07 18:22:11 +000046 // Unary Instructions that produce a result
Jim Grosbache9e3f202010-06-28 04:27:01 +000047 InstrItinData<IIC_iUNAr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
48 InstrItinData<IIC_iUNAsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000049 //
Evan Cheng576a3962010-09-25 00:49:35 +000050 // Zero and sign extension instructions
51 InstrItinData<IIC_iEXTr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
52 InstrItinData<IIC_iEXTAr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2, 1]>,
Evan Cheng7e1bf302010-09-29 00:27:46 +000053 InstrItinData<IIC_iEXTAsr,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>],[2, 2, 1, 1]>,
Evan Cheng576a3962010-09-25 00:49:35 +000054 //
Anton Korobeynikove1676012010-04-07 18:22:11 +000055 // Compare instructions
Jim Grosbache9e3f202010-06-28 04:27:01 +000056 InstrItinData<IIC_iCMPi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
57 InstrItinData<IIC_iCMPr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
58 InstrItinData<IIC_iCMPsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
59 InstrItinData<IIC_iCMPsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000060 //
Evan Cheng5d42c562010-09-29 00:49:25 +000061 // Test instructions
62 InstrItinData<IIC_iTSTi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
63 InstrItinData<IIC_iTSTr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 2]>,
64 InstrItinData<IIC_iTSTsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
65 InstrItinData<IIC_iTSTsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1, 1]>,
66 //
Anton Korobeynikove1676012010-04-07 18:22:11 +000067 // Move instructions, unconditional
Jim Grosbache9e3f202010-06-28 04:27:01 +000068 InstrItinData<IIC_iMOVi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1]>,
69 InstrItinData<IIC_iMOVr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
70 InstrItinData<IIC_iMOVsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
71 InstrItinData<IIC_iMOVsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1, 1]>,
Evan Cheng5d42c562010-09-29 00:49:25 +000072 InstrItinData<IIC_iMOVix2,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
73 InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000074 //
75 // Move instructions, conditional
Jim Grosbache9e3f202010-06-28 04:27:01 +000076 InstrItinData<IIC_iCMOVi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2]>,
77 InstrItinData<IIC_iCMOVr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
78 InstrItinData<IIC_iCMOVsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1]>,
79 InstrItinData<IIC_iCMOVsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [2, 1, 1]>,
Evan Cheng5d42c562010-09-29 00:49:25 +000080 //
81 // MVN instructions
82 InstrItinData<IIC_iMVNi , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1]>,
83 InstrItinData<IIC_iMVNr , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
84 InstrItinData<IIC_iMVNsi, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1]>,
85 InstrItinData<IIC_iMVNsr, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [1, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +000086
87 // Integer multiply pipeline
88 // Result written in E5, but that is relative to the last cycle of multicycle,
89 // so we use 6 for those cases
90 //
Anton Korobeynikov928eb492010-04-18 20:31:01 +000091 InstrItinData<IIC_iMUL16 , [InstrStage<1, [A8_Pipe0]>], [5, 1, 1]>,
Evan Cheng8ae6ffa2010-10-09 01:15:04 +000092 InstrItinData<IIC_iMAC16 , [InstrStage<2, [A8_Pipe0]>], [6, 1, 1, 4]>,
93 InstrItinData<IIC_iMUL32 , [InstrStage<2, [A8_Pipe0]>], [6, 1, 1]>,
94 InstrItinData<IIC_iMAC32 , [InstrStage<2, [A8_Pipe0]>], [6, 1, 1, 4]>,
95 InstrItinData<IIC_iMUL64 , [InstrStage<3, [A8_Pipe0]>], [6, 6, 1, 1]>,
96 InstrItinData<IIC_iMAC64 , [InstrStage<3, [A8_Pipe0]>], [6, 6, 1, 1]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +000097
Anton Korobeynikove1676012010-04-07 18:22:11 +000098 // Integer load pipeline
99 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000100 // Immediate offset
Evan Chengd2ca8132010-10-09 01:03:04 +0000101 InstrItinData<IIC_iLoad_i , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
102 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
103 InstrItinData<IIC_iLoad_bh_i, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
104 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
105 InstrItinData<IIC_iLoad_d_i, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
106 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000107 //
108 // Register offset
Evan Chengd2ca8132010-10-09 01:03:04 +0000109 InstrItinData<IIC_iLoad_r , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
110 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
111 InstrItinData<IIC_iLoad_bh_r, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
112 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
113 InstrItinData<IIC_iLoad_d_r , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
114 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000115 //
116 // Scaled register offset, issues over 2 cycles
Evan Chengd2ca8132010-10-09 01:03:04 +0000117 // FIXME: lsl by 2 takes 1 cycle.
118 InstrItinData<IIC_iLoad_si , [InstrStage<2, [A8_Pipe0, A8_Pipe1]>,
119 InstrStage<1, [A8_LSPipe]>], [4, 1, 1]>,
120 InstrItinData<IIC_iLoad_bh_si,[InstrStage<2, [A8_Pipe0, A8_Pipe1]>,
121 InstrStage<1, [A8_LSPipe]>], [4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000122 //
123 // Immediate offset with update
Evan Chengd2ca8132010-10-09 01:03:04 +0000124 InstrItinData<IIC_iLoad_iu , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
125 InstrStage<1, [A8_LSPipe]>], [3, 2, 1]>,
126 InstrItinData<IIC_iLoad_bh_iu,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
127 InstrStage<1, [A8_LSPipe]>], [3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000128 //
129 // Register offset with update
Evan Chengd2ca8132010-10-09 01:03:04 +0000130 InstrItinData<IIC_iLoad_ru , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
131 InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>,
132 InstrItinData<IIC_iLoad_bh_ru,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
133 InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>,
134 InstrItinData<IIC_iLoad_d_ru, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
135 InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000136 //
137 // Scaled register offset with update, issues over 2 cycles
Evan Chengd2ca8132010-10-09 01:03:04 +0000138 InstrItinData<IIC_iLoad_siu , [InstrStage<2, [A8_Pipe0, A8_Pipe1]>,
139 InstrStage<1, [A8_LSPipe]>], [4, 3, 1, 1]>,
140 InstrItinData<IIC_iLoad_bh_siu,[InstrStage<2, [A8_Pipe0, A8_Pipe1]>,
141 InstrStage<1, [A8_LSPipe]>], [4, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000142 //
Evan Chengd2ca8132010-10-09 01:03:04 +0000143 // Load multiple, def is the 5th operand. Pipeline 0 only.
144 // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers.
145 InstrItinData<IIC_iLoad_m , [InstrStage<1, [A8_Pipe0]>,
146 InstrStage<2, [A8_LSPipe]>], [1, 1, 1, 1, 3]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000147 //
148 // Load multiple + update, defs are the 1st and 5th operands.
Evan Chengd2ca8132010-10-09 01:03:04 +0000149 InstrItinData<IIC_iLoad_mu , [InstrStage<1, [A8_Pipe0]>,
150 InstrStage<3, [A8_LSPipe]>], [2, 1, 1, 1, 3]>,
Evan Cheng7602acb2010-09-08 22:57:08 +0000151 //
152 // Load multiple plus branch
Evan Chengd2ca8132010-10-09 01:03:04 +0000153 InstrItinData<IIC_iLoad_mBr, [InstrStage<1, [A8_Pipe0]>,
154 InstrStage<3, [A8_LSPipe]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000155 InstrStage<1, [A8_Pipe0, A8_Pipe1]>],
156 [1, 2, 1, 1, 3]>,
157 //
158 // Pop, def is the 3rd operand.
Evan Chengd2ca8132010-10-09 01:03:04 +0000159 InstrItinData<IIC_iPop , [InstrStage<1, [A8_Pipe0]>,
160 InstrStage<3, [A8_LSPipe]>], [1, 1, 3]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000161 //
162 // Push, def is the 3th operand.
Evan Chengd2ca8132010-10-09 01:03:04 +0000163 InstrItinData<IIC_iPop_Br, [InstrStage<1, [A8_Pipe0]>,
164 InstrStage<3, [A8_LSPipe]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000165 InstrStage<1, [A8_Pipe0, A8_Pipe1]>],
166 [1, 1, 3]>,
Evan Cheng7602acb2010-09-08 22:57:08 +0000167
Evan Chengbd30ce42010-09-24 22:41:41 +0000168 //
169 // iLoadi + iALUr for t2LDRpci_pic.
Evan Chengd2ca8132010-10-09 01:03:04 +0000170 InstrItinData<IIC_iLoadiALU, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
171 InstrStage<1, [A8_LSPipe]>,
Evan Chengbd30ce42010-09-24 22:41:41 +0000172 InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [4, 1]>,
173
174
Anton Korobeynikove1676012010-04-07 18:22:11 +0000175 // Integer store pipeline
176 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000177 // Immediate offset
Evan Chengd2ca8132010-10-09 01:03:04 +0000178 InstrItinData<IIC_iStore_i , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
179 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
180 InstrItinData<IIC_iStore_bh_i,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
181 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
182 InstrItinData<IIC_iStore_d_i, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
183 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000184 //
185 // Register offset
Evan Chengd2ca8132010-10-09 01:03:04 +0000186 InstrItinData<IIC_iStore_r , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
187 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
188 InstrItinData<IIC_iStore_bh_r,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
189 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
190 InstrItinData<IIC_iStore_d_r, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
191 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000192 //
193 // Scaled register offset, issues over 2 cycles
Evan Chengd2ca8132010-10-09 01:03:04 +0000194 InstrItinData<IIC_iStore_si , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
195 InstrStage<2, [A8_LSPipe]>], [3, 1, 1]>,
196 InstrItinData<IIC_iStore_bh_si,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
197 InstrStage<2, [A8_LSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000198 //
199 // Immediate offset with update
Evan Chengd2ca8132010-10-09 01:03:04 +0000200 InstrItinData<IIC_iStore_iu , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
201 InstrStage<1, [A8_LSPipe]>], [2, 3, 1]>,
202 InstrItinData<IIC_iStore_bh_iu,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
203 InstrStage<1, [A8_LSPipe]>], [2, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000204 //
205 // Register offset with update
Evan Chengd2ca8132010-10-09 01:03:04 +0000206 InstrItinData<IIC_iStore_ru , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
207 InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>,
208 InstrItinData<IIC_iStore_bh_ru,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
209 InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>,
210 InstrItinData<IIC_iStore_d_ru, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
211 InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000212 //
213 // Scaled register offset with update, issues over 2 cycles
Evan Chengd2ca8132010-10-09 01:03:04 +0000214 InstrItinData<IIC_iStore_siu, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
215 InstrStage<2, [A8_LSPipe]>], [3, 3, 1, 1]>,
216 InstrItinData<IIC_iStore_bh_siu,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
217 InstrStage<2, [A8_LSPipe]>], [3, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000218 //
Evan Chengd2ca8132010-10-09 01:03:04 +0000219 // Store multiple. Pipeline 0 only.
220 // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers.
221 InstrItinData<IIC_iStore_m , [InstrStage<1, [A8_Pipe0]>,
222 InstrStage<2, [A8_LSPipe]>]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000223 //
224 // Store multiple + update
Evan Chengd2ca8132010-10-09 01:03:04 +0000225 InstrItinData<IIC_iStore_mu, [InstrStage<1, [A8_Pipe0]>,
226 InstrStage<2, [A8_LSPipe]>], [2]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000227
Anton Korobeynikove1676012010-04-07 18:22:11 +0000228 // Branch
229 //
230 // no delay slots, so the latency of a branch is unimportant
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000231 InstrItinData<IIC_Br , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000232
233 // VFP
234 // Issue through integer pipeline, and execute in NEON unit. We assume
235 // RunFast mode so that NFP pipeline is used for single-precision when
236 // possible.
237 //
238 // FP Special Register to Integer Register File Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000239 InstrItinData<IIC_fpSTAT , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
240 InstrStage<1, [A8_NLSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000241 //
242 // Single-precision FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000243 InstrItinData<IIC_fpUNA32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
244 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000245 //
246 // Double-precision FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000247 InstrItinData<IIC_fpUNA64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
248 InstrStage<4, [A8_NPipe], 0>,
249 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000250 //
251 // Single-precision FP Compare
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000252 InstrItinData<IIC_fpCMP32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
253 InstrStage<1, [A8_NPipe]>], [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000254 //
255 // Double-precision FP Compare
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000256 InstrItinData<IIC_fpCMP64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
257 InstrStage<4, [A8_NPipe], 0>,
258 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000259 //
260 // Single to Double FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000261 InstrItinData<IIC_fpCVTSD , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
262 InstrStage<7, [A8_NPipe], 0>,
263 InstrStage<7, [A8_NLSPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000264 //
265 // Double to Single FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000266 InstrItinData<IIC_fpCVTDS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
267 InstrStage<5, [A8_NPipe], 0>,
268 InstrStage<5, [A8_NLSPipe]>], [5, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000269 //
270 // Single-Precision FP to Integer Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000271 InstrItinData<IIC_fpCVTSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
272 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000273 //
274 // Double-Precision FP to Integer Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000275 InstrItinData<IIC_fpCVTDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
276 InstrStage<8, [A8_NPipe], 0>,
277 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000278 //
279 // Integer to Single-Precision FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000280 InstrItinData<IIC_fpCVTIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
281 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000282 //
283 // Integer to Double-Precision FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000284 InstrItinData<IIC_fpCVTID , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
285 InstrStage<8, [A8_NPipe], 0>,
286 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000287 //
288 // Single-precision FP ALU
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000289 InstrItinData<IIC_fpALU32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
290 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000291 //
292 // Double-precision FP ALU
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000293 InstrItinData<IIC_fpALU64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
294 InstrStage<9, [A8_NPipe], 0>,
295 InstrStage<9, [A8_NLSPipe]>], [9, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000296 //
297 // Single-precision FP Multiply
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000298 InstrItinData<IIC_fpMUL32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
299 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000300 //
301 // Double-precision FP Multiply
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000302 InstrItinData<IIC_fpMUL64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
303 InstrStage<11, [A8_NPipe], 0>,
304 InstrStage<11, [A8_NLSPipe]>], [11, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000305 //
306 // Single-precision FP MAC
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000307 InstrItinData<IIC_fpMAC32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
308 InstrStage<1, [A8_NPipe]>], [7, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000309 //
310 // Double-precision FP MAC
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000311 InstrItinData<IIC_fpMAC64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
312 InstrStage<19, [A8_NPipe], 0>,
313 InstrStage<19, [A8_NLSPipe]>], [19, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000314 //
315 // Single-precision FP DIV
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000316 InstrItinData<IIC_fpDIV32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
317 InstrStage<20, [A8_NPipe], 0>,
318 InstrStage<20, [A8_NLSPipe]>], [20, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000319 //
320 // Double-precision FP DIV
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000321 InstrItinData<IIC_fpDIV64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
322 InstrStage<29, [A8_NPipe], 0>,
323 InstrStage<29, [A8_NLSPipe]>], [29, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000324 //
325 // Single-precision FP SQRT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000326 InstrItinData<IIC_fpSQRT32, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
327 InstrStage<19, [A8_NPipe], 0>,
328 InstrStage<19, [A8_NLSPipe]>], [19, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000329 //
330 // Double-precision FP SQRT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000331 InstrItinData<IIC_fpSQRT64, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
332 InstrStage<29, [A8_NPipe], 0>,
333 InstrStage<29, [A8_NLSPipe]>], [29, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000334 //
335 // Single-precision FP Load
Evan Chengd2ca8132010-10-09 01:03:04 +0000336 InstrItinData<IIC_fpLoad32, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
337 InstrStage<1, [A8_NLSPipe]>,
338 InstrStage<1, [A8_LSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000339 [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000340 //
341 // Double-precision FP Load
Evan Chengd2ca8132010-10-09 01:03:04 +0000342 InstrItinData<IIC_fpLoad64, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
343 InstrStage<1, [A8_NLSPipe]>,
344 InstrStage<1, [A8_LSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000345 [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000346 //
347 // FP Load Multiple
Evan Chengd2ca8132010-10-09 01:03:04 +0000348 // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers.
349 InstrItinData<IIC_fpLoad_m, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
350 InstrStage<1, [A8_NLSPipe]>,
351 InstrStage<1, [A8_LSPipe]>,
352 InstrStage<1, [A8_NLSPipe]>,
353 InstrStage<1, [A8_LSPipe]>], [1, 1, 1, 2]>,
Evan Cheng5a50cee2010-10-07 01:50:48 +0000354 //
355 // FP Load Multiple + update
Evan Chengd2ca8132010-10-09 01:03:04 +0000356 InstrItinData<IIC_fpLoad_mu,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
357 InstrStage<1, [A8_NLSPipe]>,
358 InstrStage<1, [A8_LSPipe]>,
359 InstrStage<1, [A8_NLSPipe]>,
360 InstrStage<1, [A8_LSPipe]>], [2, 1, 1, 1, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000361 //
362 // Single-precision FP Store
Evan Chengd2ca8132010-10-09 01:03:04 +0000363 InstrItinData<IIC_fpStore32,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
364 InstrStage<1, [A8_NLSPipe]>,
365 InstrStage<1, [A8_LSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000366 [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000367 //
368 // Double-precision FP Store
Evan Chengd2ca8132010-10-09 01:03:04 +0000369 InstrItinData<IIC_fpStore64,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
370 InstrStage<1, [A8_NLSPipe]>,
371 InstrStage<1, [A8_LSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000372 [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000373 //
374 // FP Store Multiple
Evan Chengd2ca8132010-10-09 01:03:04 +0000375 InstrItinData<IIC_fpStore_m,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
376 InstrStage<1, [A8_NLSPipe]>,
377 InstrStage<1, [A8_LSPipe]>,
378 InstrStage<1, [A8_NLSPipe]>,
379 InstrStage<1, [A8_LSPipe]>], [1, 1, 1, 1]>,
Evan Cheng5a50cee2010-10-07 01:50:48 +0000380 //
381 // FP Store Multiple + update
Evan Chengd2ca8132010-10-09 01:03:04 +0000382 InstrItinData<IIC_fpStore_mu,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
383 InstrStage<1, [A8_NLSPipe]>,
384 InstrStage<1, [A8_LSPipe]>,
385 InstrStage<1, [A8_NLSPipe]>,
386 InstrStage<1, [A8_LSPipe]>], [2, 1, 1, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000387
388 // NEON
389 // Issue through integer pipeline, and execute in NEON unit.
390 //
391 // VLD1
Evan Chengd2ca8132010-10-09 01:03:04 +0000392 InstrItinData<IIC_VLD1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Cheng10dc63f2010-10-09 04:07:58 +0000393 InstrStage<1, [A8_NLSPipe], 1>,
Evan Chengd2ca8132010-10-09 01:03:04 +0000394 InstrStage<1, [A8_LSPipe]>]>,
395 // VLD1x2
396 InstrItinData<IIC_VLD1x2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
397 InstrStage<2, [A8_NLSPipe], 1>,
398 InstrStage<2, [A8_LSPipe]>],
399 [2, 2, 1]>,
400 //
401 // VLD1x3
402 InstrItinData<IIC_VLD1x3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
403 InstrStage<3, [A8_NLSPipe], 1>,
404 InstrStage<3, [A8_LSPipe]>],
405 [2, 2, 3, 1]>,
406 //
407 // VLD1x4
408 InstrItinData<IIC_VLD1x4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
409 InstrStage<3, [A8_NLSPipe], 1>,
410 InstrStage<3, [A8_LSPipe]>],
411 [2, 2, 3, 3, 1]>,
412 //
413 // VLD1u
414 InstrItinData<IIC_VLD1u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Cheng40bb6832010-10-09 01:26:12 +0000415 InstrStage<1, [A8_NLSPipe], 1>,
Evan Chengd2ca8132010-10-09 01:03:04 +0000416 InstrStage<1, [A8_LSPipe]>],
417 [2, 2, 1]>,
418 //
419 // VLD1x2u
420 InstrItinData<IIC_VLD1x2u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
421 InstrStage<2, [A8_NLSPipe], 1>,
422 InstrStage<2, [A8_LSPipe]>],
423 [2, 2, 2, 1]>,
424 //
425 // VLD1x3u
426 InstrItinData<IIC_VLD1x3u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
427 InstrStage<3, [A8_NLSPipe], 1>,
428 InstrStage<3, [A8_LSPipe]>],
429 [2, 2, 3, 2, 1]>,
430 //
431 // VLD1x4u
432 InstrItinData<IIC_VLD1x4u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
433 InstrStage<3, [A8_NLSPipe], 1>,
434 InstrStage<3, [A8_LSPipe]>],
435 [2, 2, 3, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000436 //
437 // VLD2
Evan Chengd2ca8132010-10-09 01:03:04 +0000438 InstrItinData<IIC_VLD2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Cheng40bb6832010-10-09 01:26:12 +0000439 InstrStage<1, [A8_NLSPipe], 1>,
440 InstrStage<1, [A8_LSPipe]>],
441 [2, 2, 1]>,
442 //
443 // VLD2x2
Evan Cheng84f69e82010-10-09 01:45:34 +0000444 InstrItinData<IIC_VLD2x2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Cheng40bb6832010-10-09 01:26:12 +0000445 InstrStage<3, [A8_NLSPipe], 1>,
446 InstrStage<3, [A8_LSPipe]>],
447 [2, 2, 3, 3, 1]>,
448 //
449 // VLD2ln
Evan Cheng84f69e82010-10-09 01:45:34 +0000450 InstrItinData<IIC_VLD2ln, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Cheng40bb6832010-10-09 01:26:12 +0000451 InstrStage<3, [A8_NLSPipe], 1>,
452 InstrStage<3, [A8_LSPipe]>],
453 [3, 3, 1, 1, 1, 1]>,
454 //
455 // VLD2u
Evan Cheng84f69e82010-10-09 01:45:34 +0000456 InstrItinData<IIC_VLD2u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Cheng40bb6832010-10-09 01:26:12 +0000457 InstrStage<1, [A8_NLSPipe], 1>,
458 InstrStage<1, [A8_LSPipe]>],
459 [2, 2, 2, 1, 1, 1]>,
460 //
461 // VLD2x2u
Evan Cheng84f69e82010-10-09 01:45:34 +0000462 InstrItinData<IIC_VLD2x2u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Cheng40bb6832010-10-09 01:26:12 +0000463 InstrStage<3, [A8_NLSPipe], 1>,
464 InstrStage<3, [A8_LSPipe]>],
465 [2, 2, 3, 3, 2, 1]>,
466 //
467 // VLD2lnu
Evan Cheng84f69e82010-10-09 01:45:34 +0000468 InstrItinData<IIC_VLD2lnu, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Cheng40bb6832010-10-09 01:26:12 +0000469 InstrStage<3, [A8_NLSPipe], 1>,
470 InstrStage<3, [A8_LSPipe]>],
471 [3, 3, 2, 1, 1, 1, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000472 //
473 // VLD3
Evan Chengd2ca8132010-10-09 01:03:04 +0000474 InstrItinData<IIC_VLD3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Cheng84f69e82010-10-09 01:45:34 +0000475 InstrStage<4, [A8_NLSPipe], 1>,
476 InstrStage<4, [A8_LSPipe]>],
477 [3, 3, 4, 1]>,
478 //
479 // VLD3ln
480 InstrItinData<IIC_VLD3ln, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
481 InstrStage<5, [A8_NLSPipe], 1>,
482 InstrStage<5, [A8_LSPipe]>],
483 [4, 4, 5, 1, 1, 1, 1, 2]>,
484 //
485 // VLD3u
486 InstrItinData<IIC_VLD3u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
487 InstrStage<4, [A8_NLSPipe], 1>,
488 InstrStage<4, [A8_LSPipe]>],
489 [3, 3, 4, 2, 1]>,
490 //
491 // VLD3lnu
492 InstrItinData<IIC_VLD3lnu, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
493 InstrStage<5, [A8_NLSPipe], 1>,
494 InstrStage<5, [A8_LSPipe]>],
495 [4, 4, 5, 2, 1, 1, 1, 1, 1, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000496 //
497 // VLD4
Evan Chengd2ca8132010-10-09 01:03:04 +0000498 InstrItinData<IIC_VLD4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Cheng10dc63f2010-10-09 04:07:58 +0000499 InstrStage<4, [A8_NLSPipe], 1>,
500 InstrStage<4, [A8_LSPipe]>],
501 [3, 3, 4, 4, 1]>,
502 //
503 // VLD4ln
504 InstrItinData<IIC_VLD4ln, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
505 InstrStage<5, [A8_NLSPipe], 1>,
506 InstrStage<5, [A8_LSPipe]>],
507 [4, 4, 5, 5, 1, 1, 1, 1, 2, 2]>,
508 //
509 // VLD4u
510 InstrItinData<IIC_VLD4u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
511 InstrStage<4, [A8_NLSPipe], 1>,
512 InstrStage<4, [A8_LSPipe]>],
513 [3, 3, 4, 4, 2, 1]>,
514 //
515 // VLD4lnu
516 InstrItinData<IIC_VLD4lnu, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
517 InstrStage<5, [A8_NLSPipe], 1>,
518 InstrStage<5, [A8_LSPipe]>],
519 [4, 4, 5, 5, 2, 1, 1, 1, 1, 1, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000520 //
521 // VST
522 // FIXME: We don't model this instruction properly
Evan Chengd2ca8132010-10-09 01:03:04 +0000523 InstrItinData<IIC_VST, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
524 InstrStage<1, [A8_NLSPipe]>,
525 InstrStage<1, [A8_LSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000526 //
527 // Double-register FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000528 InstrItinData<IIC_VUNAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
529 InstrStage<1, [A8_NPipe]>], [5, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000530 //
531 // Quad-register FP Unary
532 // Result written in N5, but that is relative to the last cycle of multicycle,
533 // so we use 6 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000534 InstrItinData<IIC_VUNAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
535 InstrStage<2, [A8_NPipe]>], [6, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000536 //
537 // Double-register FP Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000538 InstrItinData<IIC_VBIND, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
539 InstrStage<1, [A8_NPipe]>], [5, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000540 //
541 // Quad-register FP Binary
542 // Result written in N5, but that is relative to the last cycle of multicycle,
543 // so we use 6 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000544 InstrItinData<IIC_VBINQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
545 InstrStage<2, [A8_NPipe]>], [6, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000546 //
Evan Chengcae6a122010-10-01 20:50:58 +0000547 // Move
548 InstrItinData<IIC_VMOV, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
549 InstrStage<1, [A8_NPipe]>], [1, 1]>,
550 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000551 // Move Immediate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000552 InstrItinData<IIC_VMOVImm, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
553 InstrStage<1, [A8_NPipe]>], [3]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000554 //
555 // Double-register Permute Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000556 InstrItinData<IIC_VMOVD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
557 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000558 //
559 // Quad-register Permute Move
560 // Result written in N2, but that is relative to the last cycle of multicycle,
561 // so we use 3 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000562 InstrItinData<IIC_VMOVQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
563 InstrStage<2, [A8_NLSPipe]>], [3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000564 //
565 // Integer to Single-precision Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000566 InstrItinData<IIC_VMOVIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
567 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000568 //
569 // Integer to Double-precision Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000570 InstrItinData<IIC_VMOVID , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
571 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000572 //
573 // Single-precision to Integer Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000574 InstrItinData<IIC_VMOVSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
575 InstrStage<1, [A8_NLSPipe]>], [20, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000576 //
577 // Double-precision to Integer Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000578 InstrItinData<IIC_VMOVDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
579 InstrStage<1, [A8_NLSPipe]>], [20, 20, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000580 //
581 // Integer to Lane Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000582 InstrItinData<IIC_VMOVISL , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
583 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000584 //
Evan Chengcae6a122010-10-01 20:50:58 +0000585 // Vector narrow move
586 InstrItinData<IIC_VMOVN , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Chengef0ccad2010-10-01 21:48:06 +0000587 InstrStage<1, [A8_NPipe]>], [2, 1]>,
Evan Chengcae6a122010-10-01 20:50:58 +0000588 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000589 // Double-register Permute
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000590 InstrItinData<IIC_VPERMD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
591 InstrStage<1, [A8_NLSPipe]>], [2, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000592 //
593 // Quad-register Permute
594 // Result written in N2, but that is relative to the last cycle of multicycle,
595 // so we use 3 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000596 InstrItinData<IIC_VPERMQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
597 InstrStage<2, [A8_NLSPipe]>], [3, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000598 //
599 // Quad-register Permute (3 cycle issue)
600 // Result written in N2, but that is relative to the last cycle of multicycle,
601 // so we use 4 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000602 InstrItinData<IIC_VPERMQ3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
603 InstrStage<1, [A8_NLSPipe]>,
604 InstrStage<1, [A8_NPipe], 0>,
605 InstrStage<2, [A8_NLSPipe]>], [4, 4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000606 //
607 // Double-register FP Multiple-Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000608 InstrItinData<IIC_VMACD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
609 InstrStage<1, [A8_NPipe]>], [9, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000610 //
611 // Quad-register FP Multiple-Accumulate
612 // Result written in N9, but that is relative to the last cycle of multicycle,
613 // so we use 10 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000614 InstrItinData<IIC_VMACQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
615 InstrStage<2, [A8_NPipe]>], [10, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000616 //
617 // Double-register Reciprical Step
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000618 InstrItinData<IIC_VRECSD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
619 InstrStage<1, [A8_NPipe]>], [9, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000620 //
621 // Quad-register Reciprical Step
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000622 InstrItinData<IIC_VRECSQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
623 InstrStage<2, [A8_NPipe]>], [10, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000624 //
625 // Double-register Integer Count
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000626 InstrItinData<IIC_VCNTiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
627 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000628 //
629 // Quad-register Integer Count
630 // Result written in N3, but that is relative to the last cycle of multicycle,
631 // so we use 4 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000632 InstrItinData<IIC_VCNTiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
633 InstrStage<2, [A8_NPipe]>], [4, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000634 //
635 // Double-register Integer Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000636 InstrItinData<IIC_VUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
637 InstrStage<1, [A8_NPipe]>], [4, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000638 //
639 // Quad-register Integer Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000640 InstrItinData<IIC_VUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
641 InstrStage<1, [A8_NPipe]>], [4, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000642 //
643 // Double-register Integer Q-Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000644 InstrItinData<IIC_VQUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
645 InstrStage<1, [A8_NPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000646 //
647 // Quad-register Integer CountQ-Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000648 InstrItinData<IIC_VQUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
649 InstrStage<1, [A8_NPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000650 //
651 // Double-register Integer Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000652 InstrItinData<IIC_VBINiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
653 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000654 //
655 // Quad-register Integer Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000656 InstrItinData<IIC_VBINiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
657 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000658 //
659 // Double-register Integer Binary (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000660 InstrItinData<IIC_VBINi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
661 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000662 //
663 // Quad-register Integer Binary (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000664 InstrItinData<IIC_VBINi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
665 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000666
667 //
668 // Double-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000669 InstrItinData<IIC_VSUBiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
670 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000671 //
672 // Quad-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000673 InstrItinData<IIC_VSUBiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
674 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000675 //
676 // Double-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000677 InstrItinData<IIC_VSUBi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
678 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000679 //
680 // Quad-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000681 InstrItinData<IIC_VSUBi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
682 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000683 //
684 // Double-register Integer Shift
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000685 InstrItinData<IIC_VSHLiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
686 InstrStage<1, [A8_NPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000687 //
688 // Quad-register Integer Shift
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000689 InstrItinData<IIC_VSHLiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
690 InstrStage<2, [A8_NPipe]>], [4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000691 //
692 // Double-register Integer Shift (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000693 InstrItinData<IIC_VSHLi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
694 InstrStage<1, [A8_NPipe]>], [4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000695 //
696 // Quad-register Integer Shift (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000697 InstrItinData<IIC_VSHLi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
698 InstrStage<2, [A8_NPipe]>], [5, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000699 //
700 // Double-register Integer Pair Add Long
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000701 InstrItinData<IIC_VPALiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
702 InstrStage<1, [A8_NPipe]>], [6, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000703 //
704 // Quad-register Integer Pair Add Long
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000705 InstrItinData<IIC_VPALiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
706 InstrStage<2, [A8_NPipe]>], [7, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000707 //
708 // Double-register Absolute Difference and Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000709 InstrItinData<IIC_VABAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
710 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000711 //
712 // Quad-register Absolute Difference and Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000713 InstrItinData<IIC_VABAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
714 InstrStage<2, [A8_NPipe]>], [6, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000715
716 //
717 // Double-register Integer Multiply (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000718 InstrItinData<IIC_VMULi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
719 InstrStage<1, [A8_NPipe]>], [6, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000720 //
721 // Double-register Integer Multiply (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000722 InstrItinData<IIC_VMULi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
723 InstrStage<2, [A8_NPipe]>], [7, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000724 //
725 // Quad-register Integer Multiply (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000726 InstrItinData<IIC_VMULi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
727 InstrStage<2, [A8_NPipe]>], [7, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000728 //
729 // Quad-register Integer Multiply (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000730 InstrItinData<IIC_VMULi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
731 InstrStage<1, [A8_NPipe]>,
732 InstrStage<2, [A8_NLSPipe], 0>,
733 InstrStage<3, [A8_NPipe]>], [9, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000734 //
735 // Double-register Integer Multiply-Accumulate (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000736 InstrItinData<IIC_VMACi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
737 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000738 //
739 // Double-register Integer Multiply-Accumulate (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000740 InstrItinData<IIC_VMACi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
741 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000742 //
743 // Quad-register Integer Multiply-Accumulate (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000744 InstrItinData<IIC_VMACi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
745 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000746 //
747 // Quad-register Integer Multiply-Accumulate (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000748 InstrItinData<IIC_VMACi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
749 InstrStage<1, [A8_NPipe]>,
750 InstrStage<2, [A8_NLSPipe], 0>,
751 InstrStage<3, [A8_NPipe]>], [9, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000752 //
753 // Double-register VEXT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000754 InstrItinData<IIC_VEXTD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
755 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000756 //
757 // Quad-register VEXT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000758 InstrItinData<IIC_VEXTQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
759 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000760 //
761 // VTB
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000762 InstrItinData<IIC_VTB1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
763 InstrStage<2, [A8_NLSPipe]>], [3, 2, 1]>,
764 InstrItinData<IIC_VTB2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
765 InstrStage<2, [A8_NLSPipe]>], [3, 2, 2, 1]>,
766 InstrItinData<IIC_VTB3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
767 InstrStage<1, [A8_NLSPipe]>,
768 InstrStage<1, [A8_NPipe], 0>,
769 InstrStage<2, [A8_NLSPipe]>], [4, 2, 2, 3, 1]>,
770 InstrItinData<IIC_VTB4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
771 InstrStage<1, [A8_NLSPipe]>,
772 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000773 InstrStage<2, [A8_NLSPipe]>],[4, 2, 2, 3, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000774 //
775 // VTBX
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000776 InstrItinData<IIC_VTBX1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
777 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 1]>,
778 InstrItinData<IIC_VTBX2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
779 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 2, 1]>,
780 InstrItinData<IIC_VTBX3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
781 InstrStage<1, [A8_NLSPipe]>,
782 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000783 InstrStage<2, [A8_NLSPipe]>],[4, 1, 2, 2, 3, 1]>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000784 InstrItinData<IIC_VTBX4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
785 InstrStage<1, [A8_NLSPipe]>,
786 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000787 InstrStage<2, [A8_NLSPipe]>], [4, 1, 2, 2, 3, 3, 1]>
Anton Korobeynikove1676012010-04-07 18:22:11 +0000788]>;