blob: d4d2118bc27e02dc9e9bfbc11fc29d8c4a647a8c [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]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +000092 InstrItinData<IIC_iMAC16 , [InstrStage<1, [A8_Pipe1], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +000093 InstrStage<2, [A8_Pipe0]>], [6, 1, 1, 4]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +000094 InstrItinData<IIC_iMUL32 , [InstrStage<1, [A8_Pipe1], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +000095 InstrStage<2, [A8_Pipe0]>], [6, 1, 1]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +000096 InstrItinData<IIC_iMAC32 , [InstrStage<1, [A8_Pipe1], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +000097 InstrStage<2, [A8_Pipe0]>], [6, 1, 1, 4]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +000098 InstrItinData<IIC_iMUL64 , [InstrStage<2, [A8_Pipe1], 0>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +000099 InstrStage<3, [A8_Pipe0]>], [6, 6, 1, 1]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000100 InstrItinData<IIC_iMAC64 , [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
Anton Korobeynikove1676012010-04-07 18:22:11 +0000103 // Integer load pipeline
104 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000105 // Immediate offset
Evan Chengd2ca8132010-10-09 01:03:04 +0000106 InstrItinData<IIC_iLoad_i , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
107 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
108 InstrItinData<IIC_iLoad_bh_i, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
109 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
110 InstrItinData<IIC_iLoad_d_i, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
111 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000112 //
113 // Register offset
Evan Chengd2ca8132010-10-09 01:03:04 +0000114 InstrItinData<IIC_iLoad_r , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
115 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
116 InstrItinData<IIC_iLoad_bh_r, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
117 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
118 InstrItinData<IIC_iLoad_d_r , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
119 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000120 //
121 // Scaled register offset, issues over 2 cycles
Evan Chengd2ca8132010-10-09 01:03:04 +0000122 // FIXME: lsl by 2 takes 1 cycle.
123 InstrItinData<IIC_iLoad_si , [InstrStage<2, [A8_Pipe0, A8_Pipe1]>,
124 InstrStage<1, [A8_LSPipe]>], [4, 1, 1]>,
125 InstrItinData<IIC_iLoad_bh_si,[InstrStage<2, [A8_Pipe0, A8_Pipe1]>,
126 InstrStage<1, [A8_LSPipe]>], [4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000127 //
128 // Immediate offset with update
Evan Chengd2ca8132010-10-09 01:03:04 +0000129 InstrItinData<IIC_iLoad_iu , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
130 InstrStage<1, [A8_LSPipe]>], [3, 2, 1]>,
131 InstrItinData<IIC_iLoad_bh_iu,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
132 InstrStage<1, [A8_LSPipe]>], [3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000133 //
134 // Register offset with update
Evan Chengd2ca8132010-10-09 01:03:04 +0000135 InstrItinData<IIC_iLoad_ru , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
136 InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>,
137 InstrItinData<IIC_iLoad_bh_ru,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
138 InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>,
139 InstrItinData<IIC_iLoad_d_ru, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
140 InstrStage<1, [A8_LSPipe]>], [3, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000141 //
142 // Scaled register offset with update, issues over 2 cycles
Evan Chengd2ca8132010-10-09 01:03:04 +0000143 InstrItinData<IIC_iLoad_siu , [InstrStage<2, [A8_Pipe0, A8_Pipe1]>,
144 InstrStage<1, [A8_LSPipe]>], [4, 3, 1, 1]>,
145 InstrItinData<IIC_iLoad_bh_siu,[InstrStage<2, [A8_Pipe0, A8_Pipe1]>,
146 InstrStage<1, [A8_LSPipe]>], [4, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000147 //
Evan Chengd2ca8132010-10-09 01:03:04 +0000148 // Load multiple, def is the 5th operand. Pipeline 0 only.
149 // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers.
150 InstrItinData<IIC_iLoad_m , [InstrStage<1, [A8_Pipe0]>,
151 InstrStage<2, [A8_LSPipe]>], [1, 1, 1, 1, 3]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000152 //
153 // Load multiple + update, defs are the 1st and 5th operands.
Evan Chengd2ca8132010-10-09 01:03:04 +0000154 InstrItinData<IIC_iLoad_mu , [InstrStage<1, [A8_Pipe0]>,
155 InstrStage<3, [A8_LSPipe]>], [2, 1, 1, 1, 3]>,
Evan Cheng7602acb2010-09-08 22:57:08 +0000156 //
157 // Load multiple plus branch
Evan Chengd2ca8132010-10-09 01:03:04 +0000158 InstrItinData<IIC_iLoad_mBr, [InstrStage<1, [A8_Pipe0]>,
159 InstrStage<3, [A8_LSPipe]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000160 InstrStage<1, [A8_Pipe0, A8_Pipe1]>],
161 [1, 2, 1, 1, 3]>,
162 //
163 // Pop, def is the 3rd operand.
Evan Chengd2ca8132010-10-09 01:03:04 +0000164 InstrItinData<IIC_iPop , [InstrStage<1, [A8_Pipe0]>,
165 InstrStage<3, [A8_LSPipe]>], [1, 1, 3]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000166 //
167 // Push, def is the 3th operand.
Evan Chengd2ca8132010-10-09 01:03:04 +0000168 InstrItinData<IIC_iPop_Br, [InstrStage<1, [A8_Pipe0]>,
169 InstrStage<3, [A8_LSPipe]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000170 InstrStage<1, [A8_Pipe0, A8_Pipe1]>],
171 [1, 1, 3]>,
Evan Cheng7602acb2010-09-08 22:57:08 +0000172
Evan Chengbd30ce42010-09-24 22:41:41 +0000173 //
174 // iLoadi + iALUr for t2LDRpci_pic.
Evan Chengd2ca8132010-10-09 01:03:04 +0000175 InstrItinData<IIC_iLoadiALU, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
176 InstrStage<1, [A8_LSPipe]>,
Evan Chengbd30ce42010-09-24 22:41:41 +0000177 InstrStage<1, [A8_Pipe0, A8_Pipe1]>], [4, 1]>,
178
179
Anton Korobeynikove1676012010-04-07 18:22:11 +0000180 // Integer store pipeline
181 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000182 // Immediate offset
Evan Chengd2ca8132010-10-09 01:03:04 +0000183 InstrItinData<IIC_iStore_i , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
184 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
185 InstrItinData<IIC_iStore_bh_i,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
186 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
187 InstrItinData<IIC_iStore_d_i, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
188 InstrStage<1, [A8_LSPipe]>], [3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000189 //
190 // Register offset
Evan Chengd2ca8132010-10-09 01:03:04 +0000191 InstrItinData<IIC_iStore_r , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
192 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
193 InstrItinData<IIC_iStore_bh_r,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
194 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
195 InstrItinData<IIC_iStore_d_r, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
196 InstrStage<1, [A8_LSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000197 //
198 // Scaled register offset, issues over 2 cycles
Evan Chengd2ca8132010-10-09 01:03:04 +0000199 InstrItinData<IIC_iStore_si , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
200 InstrStage<2, [A8_LSPipe]>], [3, 1, 1]>,
201 InstrItinData<IIC_iStore_bh_si,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
202 InstrStage<2, [A8_LSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000203 //
204 // Immediate offset with update
Evan Chengd2ca8132010-10-09 01:03:04 +0000205 InstrItinData<IIC_iStore_iu , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
206 InstrStage<1, [A8_LSPipe]>], [2, 3, 1]>,
207 InstrItinData<IIC_iStore_bh_iu,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
208 InstrStage<1, [A8_LSPipe]>], [2, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000209 //
210 // Register offset with update
Evan Chengd2ca8132010-10-09 01:03:04 +0000211 InstrItinData<IIC_iStore_ru , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
212 InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>,
213 InstrItinData<IIC_iStore_bh_ru,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
214 InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>,
215 InstrItinData<IIC_iStore_d_ru, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
216 InstrStage<1, [A8_LSPipe]>], [2, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000217 //
218 // Scaled register offset with update, issues over 2 cycles
Evan Chengd2ca8132010-10-09 01:03:04 +0000219 InstrItinData<IIC_iStore_siu, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
220 InstrStage<2, [A8_LSPipe]>], [3, 3, 1, 1]>,
221 InstrItinData<IIC_iStore_bh_siu,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
222 InstrStage<2, [A8_LSPipe]>], [3, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000223 //
Evan Chengd2ca8132010-10-09 01:03:04 +0000224 // Store multiple. Pipeline 0 only.
225 // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers.
226 InstrItinData<IIC_iStore_m , [InstrStage<1, [A8_Pipe0]>,
227 InstrStage<2, [A8_LSPipe]>]>,
Evan Chenga0792de2010-10-06 06:27:31 +0000228 //
229 // Store multiple + update
Evan Chengd2ca8132010-10-09 01:03:04 +0000230 InstrItinData<IIC_iStore_mu, [InstrStage<1, [A8_Pipe0]>,
231 InstrStage<2, [A8_LSPipe]>], [2]>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000232
Anton Korobeynikove1676012010-04-07 18:22:11 +0000233 // Branch
234 //
235 // no delay slots, so the latency of a branch is unimportant
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000236 InstrItinData<IIC_Br , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000237
238 // VFP
239 // Issue through integer pipeline, and execute in NEON unit. We assume
240 // RunFast mode so that NFP pipeline is used for single-precision when
241 // possible.
242 //
243 // FP Special Register to Integer Register File Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000244 InstrItinData<IIC_fpSTAT , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
245 InstrStage<1, [A8_NLSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000246 //
247 // Single-precision FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000248 InstrItinData<IIC_fpUNA32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
249 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000250 //
251 // Double-precision FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000252 InstrItinData<IIC_fpUNA64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
253 InstrStage<4, [A8_NPipe], 0>,
254 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000255 //
256 // Single-precision FP Compare
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000257 InstrItinData<IIC_fpCMP32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
258 InstrStage<1, [A8_NPipe]>], [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000259 //
260 // Double-precision FP Compare
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000261 InstrItinData<IIC_fpCMP64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
262 InstrStage<4, [A8_NPipe], 0>,
263 InstrStage<4, [A8_NLSPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000264 //
265 // Single to Double FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000266 InstrItinData<IIC_fpCVTSD , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
267 InstrStage<7, [A8_NPipe], 0>,
268 InstrStage<7, [A8_NLSPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000269 //
270 // Double to Single FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000271 InstrItinData<IIC_fpCVTDS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
272 InstrStage<5, [A8_NPipe], 0>,
273 InstrStage<5, [A8_NLSPipe]>], [5, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000274 //
275 // Single-Precision FP to Integer Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000276 InstrItinData<IIC_fpCVTSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
277 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000278 //
279 // Double-Precision FP to Integer Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000280 InstrItinData<IIC_fpCVTDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
281 InstrStage<8, [A8_NPipe], 0>,
282 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000283 //
284 // Integer to Single-Precision FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000285 InstrItinData<IIC_fpCVTIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
286 InstrStage<1, [A8_NPipe]>], [7, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000287 //
288 // Integer to Double-Precision FP Convert
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000289 InstrItinData<IIC_fpCVTID , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
290 InstrStage<8, [A8_NPipe], 0>,
291 InstrStage<8, [A8_NLSPipe]>], [8, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000292 //
293 // Single-precision FP ALU
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000294 InstrItinData<IIC_fpALU32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
295 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000296 //
297 // Double-precision FP ALU
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000298 InstrItinData<IIC_fpALU64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
299 InstrStage<9, [A8_NPipe], 0>,
300 InstrStage<9, [A8_NLSPipe]>], [9, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000301 //
302 // Single-precision FP Multiply
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000303 InstrItinData<IIC_fpMUL32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
304 InstrStage<1, [A8_NPipe]>], [7, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000305 //
306 // Double-precision FP Multiply
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000307 InstrItinData<IIC_fpMUL64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
308 InstrStage<11, [A8_NPipe], 0>,
309 InstrStage<11, [A8_NLSPipe]>], [11, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000310 //
311 // Single-precision FP MAC
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000312 InstrItinData<IIC_fpMAC32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
313 InstrStage<1, [A8_NPipe]>], [7, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000314 //
315 // Double-precision FP MAC
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000316 InstrItinData<IIC_fpMAC64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
317 InstrStage<19, [A8_NPipe], 0>,
318 InstrStage<19, [A8_NLSPipe]>], [19, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000319 //
320 // Single-precision FP DIV
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000321 InstrItinData<IIC_fpDIV32 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
322 InstrStage<20, [A8_NPipe], 0>,
323 InstrStage<20, [A8_NLSPipe]>], [20, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000324 //
325 // Double-precision FP DIV
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000326 InstrItinData<IIC_fpDIV64 , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
327 InstrStage<29, [A8_NPipe], 0>,
328 InstrStage<29, [A8_NLSPipe]>], [29, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000329 //
330 // Single-precision FP SQRT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000331 InstrItinData<IIC_fpSQRT32, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
332 InstrStage<19, [A8_NPipe], 0>,
333 InstrStage<19, [A8_NLSPipe]>], [19, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000334 //
335 // Double-precision FP SQRT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000336 InstrItinData<IIC_fpSQRT64, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
337 InstrStage<29, [A8_NPipe], 0>,
338 InstrStage<29, [A8_NLSPipe]>], [29, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000339 //
340 // Single-precision FP Load
Evan Chengd2ca8132010-10-09 01:03:04 +0000341 InstrItinData<IIC_fpLoad32, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
342 InstrStage<1, [A8_NLSPipe]>,
343 InstrStage<1, [A8_LSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000344 [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000345 //
346 // Double-precision FP Load
Evan Chengd2ca8132010-10-09 01:03:04 +0000347 InstrItinData<IIC_fpLoad64, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
348 InstrStage<1, [A8_NLSPipe]>,
349 InstrStage<1, [A8_LSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000350 [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000351 //
352 // FP Load Multiple
Evan Chengd2ca8132010-10-09 01:03:04 +0000353 // FIXME: A8_LSPipe cycle time is dynamic, this assumes 3 to 4 registers.
354 InstrItinData<IIC_fpLoad_m, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
355 InstrStage<1, [A8_NLSPipe]>,
356 InstrStage<1, [A8_LSPipe]>,
357 InstrStage<1, [A8_NLSPipe]>,
358 InstrStage<1, [A8_LSPipe]>], [1, 1, 1, 2]>,
Evan Cheng5a50cee2010-10-07 01:50:48 +0000359 //
360 // FP Load Multiple + update
Evan Chengd2ca8132010-10-09 01:03:04 +0000361 InstrItinData<IIC_fpLoad_mu,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
362 InstrStage<1, [A8_NLSPipe]>,
363 InstrStage<1, [A8_LSPipe]>,
364 InstrStage<1, [A8_NLSPipe]>,
365 InstrStage<1, [A8_LSPipe]>], [2, 1, 1, 1, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000366 //
367 // Single-precision FP Store
Evan Chengd2ca8132010-10-09 01:03:04 +0000368 InstrItinData<IIC_fpStore32,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
369 InstrStage<1, [A8_NLSPipe]>,
370 InstrStage<1, [A8_LSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000371 [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000372 //
373 // Double-precision FP Store
Evan Chengd2ca8132010-10-09 01:03:04 +0000374 InstrItinData<IIC_fpStore64,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
375 InstrStage<1, [A8_NLSPipe]>,
376 InstrStage<1, [A8_LSPipe]>],
Evan Chengdf9da6a2010-10-01 21:40:30 +0000377 [1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000378 //
379 // FP Store Multiple
Evan Chengd2ca8132010-10-09 01:03:04 +0000380 InstrItinData<IIC_fpStore_m,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
381 InstrStage<1, [A8_NLSPipe]>,
382 InstrStage<1, [A8_LSPipe]>,
383 InstrStage<1, [A8_NLSPipe]>,
384 InstrStage<1, [A8_LSPipe]>], [1, 1, 1, 1]>,
Evan Cheng5a50cee2010-10-07 01:50:48 +0000385 //
386 // FP Store Multiple + update
Evan Chengd2ca8132010-10-09 01:03:04 +0000387 InstrItinData<IIC_fpStore_mu,[InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
388 InstrStage<1, [A8_NLSPipe]>,
389 InstrStage<1, [A8_LSPipe]>,
390 InstrStage<1, [A8_NLSPipe]>,
391 InstrStage<1, [A8_LSPipe]>], [2, 1, 1, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000392
393 // NEON
394 // Issue through integer pipeline, and execute in NEON unit.
395 //
396 // VLD1
Evan Chengd2ca8132010-10-09 01:03:04 +0000397 InstrItinData<IIC_VLD1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
398 InstrStage<1, [A8_NLSPipe]>,
399 InstrStage<1, [A8_LSPipe]>]>,
400 // VLD1x2
401 InstrItinData<IIC_VLD1x2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
402 InstrStage<2, [A8_NLSPipe], 1>,
403 InstrStage<2, [A8_LSPipe]>],
404 [2, 2, 1]>,
405 //
406 // VLD1x3
407 InstrItinData<IIC_VLD1x3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
408 InstrStage<3, [A8_NLSPipe], 1>,
409 InstrStage<3, [A8_LSPipe]>],
410 [2, 2, 3, 1]>,
411 //
412 // VLD1x4
413 InstrItinData<IIC_VLD1x4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
414 InstrStage<3, [A8_NLSPipe], 1>,
415 InstrStage<3, [A8_LSPipe]>],
416 [2, 2, 3, 3, 1]>,
417 //
418 // VLD1u
419 InstrItinData<IIC_VLD1u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
420 InstrStage<1, [A8_NLSPipe]>,
421 InstrStage<1, [A8_LSPipe]>],
422 [2, 2, 1]>,
423 //
424 // VLD1x2u
425 InstrItinData<IIC_VLD1x2u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
426 InstrStage<2, [A8_NLSPipe], 1>,
427 InstrStage<2, [A8_LSPipe]>],
428 [2, 2, 2, 1]>,
429 //
430 // VLD1x3u
431 InstrItinData<IIC_VLD1x3u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
432 InstrStage<3, [A8_NLSPipe], 1>,
433 InstrStage<3, [A8_LSPipe]>],
434 [2, 2, 3, 2, 1]>,
435 //
436 // VLD1x4u
437 InstrItinData<IIC_VLD1x4u, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
438 InstrStage<3, [A8_NLSPipe], 1>,
439 InstrStage<3, [A8_LSPipe]>],
440 [2, 2, 3, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000441 //
442 // VLD2
Evan Chengd2ca8132010-10-09 01:03:04 +0000443 InstrItinData<IIC_VLD2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
444 InstrStage<1, [A8_NLSPipe]>,
445 InstrStage<1, [A8_LSPipe]>], [2, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000446 //
447 // VLD3
Evan Chengd2ca8132010-10-09 01:03:04 +0000448 InstrItinData<IIC_VLD3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
449 InstrStage<1, [A8_NLSPipe]>,
450 InstrStage<1, [A8_LSPipe]>], [2, 2, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000451 //
452 // VLD4
Evan Chengd2ca8132010-10-09 01:03:04 +0000453 InstrItinData<IIC_VLD4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
454 InstrStage<1, [A8_NLSPipe]>,
455 InstrStage<1, [A8_LSPipe]>], [2, 2, 2, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000456 //
457 // VST
458 // FIXME: We don't model this instruction properly
Evan Chengd2ca8132010-10-09 01:03:04 +0000459 InstrItinData<IIC_VST, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
460 InstrStage<1, [A8_NLSPipe]>,
461 InstrStage<1, [A8_LSPipe]>]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000462 //
463 // Double-register FP Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000464 InstrItinData<IIC_VUNAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
465 InstrStage<1, [A8_NPipe]>], [5, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000466 //
467 // Quad-register FP Unary
468 // Result written in N5, but that is relative to the last cycle of multicycle,
469 // so we use 6 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000470 InstrItinData<IIC_VUNAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
471 InstrStage<2, [A8_NPipe]>], [6, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000472 //
473 // Double-register FP Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000474 InstrItinData<IIC_VBIND, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
475 InstrStage<1, [A8_NPipe]>], [5, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000476 //
477 // Quad-register FP Binary
478 // Result written in N5, but that is relative to the last cycle of multicycle,
479 // so we use 6 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000480 InstrItinData<IIC_VBINQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
481 InstrStage<2, [A8_NPipe]>], [6, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000482 //
Evan Chengcae6a122010-10-01 20:50:58 +0000483 // Move
484 InstrItinData<IIC_VMOV, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
485 InstrStage<1, [A8_NPipe]>], [1, 1]>,
486 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000487 // Move Immediate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000488 InstrItinData<IIC_VMOVImm, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
489 InstrStage<1, [A8_NPipe]>], [3]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000490 //
491 // Double-register Permute Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000492 InstrItinData<IIC_VMOVD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
493 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000494 //
495 // Quad-register Permute Move
496 // Result written in N2, but that is relative to the last cycle of multicycle,
497 // so we use 3 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000498 InstrItinData<IIC_VMOVQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
499 InstrStage<2, [A8_NLSPipe]>], [3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000500 //
501 // Integer to Single-precision Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000502 InstrItinData<IIC_VMOVIS , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
503 InstrStage<1, [A8_NLSPipe]>], [2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000504 //
505 // Integer to Double-precision Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000506 InstrItinData<IIC_VMOVID , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
507 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000508 //
509 // Single-precision to Integer Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000510 InstrItinData<IIC_VMOVSI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
511 InstrStage<1, [A8_NLSPipe]>], [20, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000512 //
513 // Double-precision to Integer Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000514 InstrItinData<IIC_VMOVDI , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
515 InstrStage<1, [A8_NLSPipe]>], [20, 20, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000516 //
517 // Integer to Lane Move
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000518 InstrItinData<IIC_VMOVISL , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
519 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000520 //
Evan Chengcae6a122010-10-01 20:50:58 +0000521 // Vector narrow move
522 InstrItinData<IIC_VMOVN , [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
Evan Chengef0ccad2010-10-01 21:48:06 +0000523 InstrStage<1, [A8_NPipe]>], [2, 1]>,
Evan Chengcae6a122010-10-01 20:50:58 +0000524 //
Anton Korobeynikove1676012010-04-07 18:22:11 +0000525 // Double-register Permute
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000526 InstrItinData<IIC_VPERMD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
527 InstrStage<1, [A8_NLSPipe]>], [2, 2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000528 //
529 // Quad-register Permute
530 // Result written in N2, but that is relative to the last cycle of multicycle,
531 // so we use 3 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000532 InstrItinData<IIC_VPERMQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
533 InstrStage<2, [A8_NLSPipe]>], [3, 3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000534 //
535 // Quad-register Permute (3 cycle issue)
536 // Result written in N2, but that is relative to the last cycle of multicycle,
537 // so we use 4 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000538 InstrItinData<IIC_VPERMQ3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
539 InstrStage<1, [A8_NLSPipe]>,
540 InstrStage<1, [A8_NPipe], 0>,
541 InstrStage<2, [A8_NLSPipe]>], [4, 4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000542 //
543 // Double-register FP Multiple-Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000544 InstrItinData<IIC_VMACD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
545 InstrStage<1, [A8_NPipe]>], [9, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000546 //
547 // Quad-register FP Multiple-Accumulate
548 // Result written in N9, but that is relative to the last cycle of multicycle,
549 // so we use 10 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000550 InstrItinData<IIC_VMACQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
551 InstrStage<2, [A8_NPipe]>], [10, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000552 //
553 // Double-register Reciprical Step
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000554 InstrItinData<IIC_VRECSD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
555 InstrStage<1, [A8_NPipe]>], [9, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000556 //
557 // Quad-register Reciprical Step
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000558 InstrItinData<IIC_VRECSQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
559 InstrStage<2, [A8_NPipe]>], [10, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000560 //
561 // Double-register Integer Count
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000562 InstrItinData<IIC_VCNTiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
563 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000564 //
565 // Quad-register Integer Count
566 // Result written in N3, but that is relative to the last cycle of multicycle,
567 // so we use 4 for those cases
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000568 InstrItinData<IIC_VCNTiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
569 InstrStage<2, [A8_NPipe]>], [4, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000570 //
571 // Double-register Integer Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000572 InstrItinData<IIC_VUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
573 InstrStage<1, [A8_NPipe]>], [4, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000574 //
575 // Quad-register Integer Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000576 InstrItinData<IIC_VUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
577 InstrStage<1, [A8_NPipe]>], [4, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000578 //
579 // Double-register Integer Q-Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000580 InstrItinData<IIC_VQUNAiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
581 InstrStage<1, [A8_NPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000582 //
583 // Quad-register Integer CountQ-Unary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000584 InstrItinData<IIC_VQUNAiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
585 InstrStage<1, [A8_NPipe]>], [4, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000586 //
587 // Double-register Integer Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000588 InstrItinData<IIC_VBINiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
589 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000590 //
591 // Quad-register Integer Binary
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000592 InstrItinData<IIC_VBINiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
593 InstrStage<1, [A8_NPipe]>], [3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000594 //
595 // Double-register Integer Binary (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000596 InstrItinData<IIC_VBINi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
597 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000598 //
599 // Quad-register Integer Binary (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000600 InstrItinData<IIC_VBINi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
601 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000602
603 //
604 // Double-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000605 InstrItinData<IIC_VSUBiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
606 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000607 //
608 // Quad-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000609 InstrItinData<IIC_VSUBiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
610 InstrStage<1, [A8_NPipe]>], [3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000611 //
612 // Double-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000613 InstrItinData<IIC_VSUBi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
614 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000615 //
616 // Quad-register Integer Subtract
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000617 InstrItinData<IIC_VSUBi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
618 InstrStage<1, [A8_NPipe]>], [4, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000619 //
620 // Double-register Integer Shift
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000621 InstrItinData<IIC_VSHLiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
622 InstrStage<1, [A8_NPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000623 //
624 // Quad-register Integer Shift
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000625 InstrItinData<IIC_VSHLiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
626 InstrStage<2, [A8_NPipe]>], [4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000627 //
628 // Double-register Integer Shift (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000629 InstrItinData<IIC_VSHLi4D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
630 InstrStage<1, [A8_NPipe]>], [4, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000631 //
632 // Quad-register Integer Shift (4 cycle)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000633 InstrItinData<IIC_VSHLi4Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
634 InstrStage<2, [A8_NPipe]>], [5, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000635 //
636 // Double-register Integer Pair Add Long
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000637 InstrItinData<IIC_VPALiD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
638 InstrStage<1, [A8_NPipe]>], [6, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000639 //
640 // Quad-register Integer Pair Add Long
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000641 InstrItinData<IIC_VPALiQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
642 InstrStage<2, [A8_NPipe]>], [7, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000643 //
644 // Double-register Absolute Difference and Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000645 InstrItinData<IIC_VABAD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
646 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000647 //
648 // Quad-register Absolute Difference and Accumulate
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000649 InstrItinData<IIC_VABAQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
650 InstrStage<2, [A8_NPipe]>], [6, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000651
652 //
653 // Double-register Integer Multiply (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000654 InstrItinData<IIC_VMULi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
655 InstrStage<1, [A8_NPipe]>], [6, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000656 //
657 // Double-register Integer Multiply (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000658 InstrItinData<IIC_VMULi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
659 InstrStage<2, [A8_NPipe]>], [7, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000660 //
661 // Quad-register Integer Multiply (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000662 InstrItinData<IIC_VMULi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
663 InstrStage<2, [A8_NPipe]>], [7, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000664 //
665 // Quad-register Integer Multiply (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000666 InstrItinData<IIC_VMULi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
667 InstrStage<1, [A8_NPipe]>,
668 InstrStage<2, [A8_NLSPipe], 0>,
669 InstrStage<3, [A8_NPipe]>], [9, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000670 //
671 // Double-register Integer Multiply-Accumulate (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000672 InstrItinData<IIC_VMACi16D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
673 InstrStage<1, [A8_NPipe]>], [6, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000674 //
675 // Double-register Integer Multiply-Accumulate (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000676 InstrItinData<IIC_VMACi32D, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
677 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000678 //
679 // Quad-register Integer Multiply-Accumulate (.8, .16)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000680 InstrItinData<IIC_VMACi16Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
681 InstrStage<2, [A8_NPipe]>], [7, 3, 2, 2]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000682 //
683 // Quad-register Integer Multiply-Accumulate (.32)
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000684 InstrItinData<IIC_VMACi32Q, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
685 InstrStage<1, [A8_NPipe]>,
686 InstrStage<2, [A8_NLSPipe], 0>,
687 InstrStage<3, [A8_NPipe]>], [9, 3, 2, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000688 //
689 // Double-register VEXT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000690 InstrItinData<IIC_VEXTD, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
691 InstrStage<1, [A8_NLSPipe]>], [2, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000692 //
693 // Quad-register VEXT
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000694 InstrItinData<IIC_VEXTQ, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
695 InstrStage<2, [A8_NLSPipe]>], [3, 1, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000696 //
697 // VTB
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000698 InstrItinData<IIC_VTB1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
699 InstrStage<2, [A8_NLSPipe]>], [3, 2, 1]>,
700 InstrItinData<IIC_VTB2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
701 InstrStage<2, [A8_NLSPipe]>], [3, 2, 2, 1]>,
702 InstrItinData<IIC_VTB3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
703 InstrStage<1, [A8_NLSPipe]>,
704 InstrStage<1, [A8_NPipe], 0>,
705 InstrStage<2, [A8_NLSPipe]>], [4, 2, 2, 3, 1]>,
706 InstrItinData<IIC_VTB4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
707 InstrStage<1, [A8_NLSPipe]>,
708 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000709 InstrStage<2, [A8_NLSPipe]>],[4, 2, 2, 3, 3, 1]>,
Anton Korobeynikove1676012010-04-07 18:22:11 +0000710 //
711 // VTBX
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000712 InstrItinData<IIC_VTBX1, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
713 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 1]>,
714 InstrItinData<IIC_VTBX2, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
715 InstrStage<2, [A8_NLSPipe]>], [3, 1, 2, 2, 1]>,
716 InstrItinData<IIC_VTBX3, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
717 InstrStage<1, [A8_NLSPipe]>,
718 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000719 InstrStage<2, [A8_NLSPipe]>],[4, 1, 2, 2, 3, 1]>,
Anton Korobeynikov928eb492010-04-18 20:31:01 +0000720 InstrItinData<IIC_VTBX4, [InstrStage<1, [A8_Pipe0, A8_Pipe1]>,
721 InstrStage<1, [A8_NLSPipe]>,
722 InstrStage<1, [A8_NPipe], 0>,
Jim Grosbache9e3f202010-06-28 04:27:01 +0000723 InstrStage<2, [A8_NLSPipe]>], [4, 1, 2, 2, 3, 3, 1]>
Anton Korobeynikove1676012010-04-07 18:22:11 +0000724]>;