| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 1 | //=- ARMScheduleA9.td - ARM Cortex-A9 Scheduling Definitions -*- tablegen -*-=// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file defines the itinerary class data for the ARM Cortex A9 processors. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | // |
| 15 | // Ad-hoc scheduling information derived from pretty vague "Cortex-A9 Technical |
| 16 | // Reference Manual". |
| 17 | // |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 18 | // Functional units |
| 19 | def A9_Issue : FuncUnit; // issue |
| 20 | def A9_Pipe0 : FuncUnit; // pipeline 0 |
| 21 | def A9_Pipe1 : FuncUnit; // pipeline 1 |
| 22 | def A9_LSPipe : FuncUnit; // LS pipe |
| 23 | def A9_NPipe : FuncUnit; // NEON ALU/MUL pipe |
| 24 | def A9_DRegsVFP: FuncUnit; // FP register set, VFP side |
| 25 | def A9_DRegsN : FuncUnit; // FP register set, NEON side |
| 26 | |
| 27 | // Dual issue pipeline represented by A9_Pipe0 | A9_Pipe1 |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 28 | // |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 29 | def CortexA9Itineraries : ProcessorItineraries< |
| 30 | [A9_NPipe, A9_DRegsN, A9_DRegsVFP, A9_LSPipe, A9_Pipe0, A9_Pipe1, A9_Issue], [ |
| Anton Korobeynikov | 94d7fd8 | 2010-05-29 19:25:17 +0000 | [diff] [blame^] | 31 | // Two fully-pipelined integer ALU pipelines |
| 32 | // FIXME: There are no operand latencies for these instructions at all! |
| 33 | // |
| 34 | // Move instructions, unconditional |
| 35 | InstrItinData<IIC_iMOVi , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>], [1]>, |
| 36 | InstrItinData<IIC_iMOVr , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>], [1, 1]>, |
| 37 | InstrItinData<IIC_iMOVsi , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>], [1, 1]>, |
| 38 | InstrItinData<IIC_iMOVsr , [InstrStage<2, [A9_Pipe0, A9_Pipe1]>], [2, 2, 1]>, |
| 39 | // |
| 40 | // No operand cycles |
| 41 | InstrItinData<IIC_iALUx , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>]>, |
| 42 | // |
| 43 | // Binary Instructions that produce a result |
| 44 | InstrItinData<IIC_iALUi , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>], [2, 2]>, |
| 45 | InstrItinData<IIC_iALUr , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>], [2, 2, 2]>, |
| 46 | InstrItinData<IIC_iALUsi , [InstrStage<2, [A9_Pipe0, A9_Pipe1]>], [2, 2, 1]>, |
| 47 | InstrItinData<IIC_iALUsr , [InstrStage<3, [A9_Pipe0, A9_Pipe1]>], [2, 2, 1, 1]>, |
| 48 | // |
| 49 | // Unary Instructions that produce a result |
| 50 | InstrItinData<IIC_iUNAr , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>], [2, 2]>, |
| 51 | InstrItinData<IIC_iUNAsi , [InstrStage<2, [A9_Pipe0, A9_Pipe1]>], [2, 1]>, |
| 52 | InstrItinData<IIC_iUNAsr , [InstrStage<3, [A9_Pipe0, A9_Pipe1]>], [2, 1, 1]>, |
| 53 | // |
| 54 | // Compare instructions |
| 55 | InstrItinData<IIC_iCMPi , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>], [2]>, |
| 56 | InstrItinData<IIC_iCMPr , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>], [2, 2]>, |
| 57 | InstrItinData<IIC_iCMPsi , [InstrStage<2, [A9_Pipe0, A9_Pipe1]>], [2, 1]>, |
| 58 | InstrItinData<IIC_iCMPsr , [InstrStage<3, [A9_Pipe0, A9_Pipe1]>], [2, 1, 1]>, |
| 59 | // |
| 60 | // Move instructions, conditional |
| 61 | InstrItinData<IIC_iCMOVi , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>], [2]>, |
| 62 | InstrItinData<IIC_iCMOVr , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>], [2, 1]>, |
| 63 | InstrItinData<IIC_iCMOVsi , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>], [2, 1]>, |
| 64 | InstrItinData<IIC_iCMOVsr , [InstrStage<2, [A9_Pipe0, A9_Pipe1]>], [2, 1, 1]>, |
| 65 | |
| 66 | // Integer multiply pipeline |
| 67 | // |
| 68 | InstrItinData<IIC_iMUL16 , [InstrStage<1, [A9_Pipe1], 0>, |
| 69 | InstrStage<2, [A9_Pipe0]>], [4, 1, 1]>, |
| 70 | InstrItinData<IIC_iMAC16 , [InstrStage<1, [A9_Pipe1], 0>, |
| 71 | InstrStage<2, [A9_Pipe0]>], [4, 1, 1, 2]>, |
| 72 | InstrItinData<IIC_iMUL32 , [InstrStage<1, [A9_Pipe1], 0>, |
| 73 | InstrStage<2, [A9_Pipe0]>], [4, 1, 1]>, |
| 74 | InstrItinData<IIC_iMAC32 , [InstrStage<1, [A9_Pipe1], 0>, |
| 75 | InstrStage<2, [A9_Pipe0]>], [4, 1, 1, 2]>, |
| 76 | InstrItinData<IIC_iMUL64 , [InstrStage<2, [A9_Pipe1], 0>, |
| 77 | InstrStage<3, [A9_Pipe0]>], [4, 5, 1, 1]>, |
| 78 | InstrItinData<IIC_iMAC64 , [InstrStage<2, [A9_Pipe1], 0>, |
| 79 | InstrStage<3, [A9_Pipe0]>], [4, 5, 1, 1]>, |
| 80 | |
| 81 | // Branch |
| 82 | // |
| 83 | // no delay slots, so the latency of a branch is unimportant |
| 84 | InstrItinData<IIC_Br , [InstrStage<1, [A9_Pipe0, A9_Pipe1]>]>, |
| 85 | |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 86 | // VFP and NEON shares the same register file. This means that every VFP |
| 87 | // instruction should wait for full completion of the consecutive NEON |
| 88 | // instruction and vice-versa. We model this behavior with two artificial FUs: |
| 89 | // DRegsVFP and DRegsVFP. |
| 90 | // |
| 91 | // Every VFP instruction: |
| 92 | // - Acquires DRegsVFP resource for 1 cycle |
| 93 | // - Reserves DRegsN resource for the whole duration (including time to |
| 94 | // register file writeback!). |
| 95 | // Every NEON instruction does the same but with FUs swapped. |
| 96 | // |
| 97 | // Since the reserved FU cannot be acquired this models precisly "cross-domain" |
| 98 | // stalls. |
| 99 | |
| 100 | // VFP |
| 101 | // Issue through integer pipeline, and execute in NEON unit. |
| 102 | |
| 103 | // FP Special Register to Integer Register File Move |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 104 | InstrItinData<IIC_fpSTAT , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 105 | InstrStage<2, [A9_DRegsN], 0, Reserved>, |
| 106 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 107 | InstrStage<1, [A9_NPipe]>]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 108 | // |
| 109 | // Single-precision FP Unary |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 110 | InstrItinData<IIC_fpUNA32 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 111 | // Extra latency cycles since wbck is 2 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 112 | InstrStage<3, [A9_DRegsN], 0, Reserved>, |
| 113 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 114 | InstrStage<1, [A9_NPipe]>], [1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 115 | // |
| 116 | // Double-precision FP Unary |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 117 | InstrItinData<IIC_fpUNA64 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 118 | // Extra latency cycles since wbck is 2 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 119 | InstrStage<3, [A9_DRegsN], 0, Reserved>, |
| 120 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 121 | InstrStage<1, [A9_NPipe]>], [1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 122 | |
| 123 | // |
| 124 | // Single-precision FP Compare |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 125 | InstrItinData<IIC_fpCMP32 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 126 | // Extra latency cycles since wbck is 4 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 127 | InstrStage<5, [A9_DRegsN], 0, Reserved>, |
| 128 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 129 | InstrStage<1, [A9_NPipe]>], [1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 130 | // |
| 131 | // Double-precision FP Compare |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 132 | InstrItinData<IIC_fpCMP64 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 133 | // Extra latency cycles since wbck is 4 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 134 | InstrStage<5, [A9_DRegsN], 0, Reserved>, |
| 135 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 136 | InstrStage<1, [A9_NPipe]>], [1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 137 | // |
| 138 | // Single to Double FP Convert |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 139 | InstrItinData<IIC_fpCVTSD , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 140 | InstrStage<5, [A9_DRegsN], 0, Reserved>, |
| 141 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 142 | InstrStage<1, [A9_NPipe]>], [4, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 143 | // |
| 144 | // Double to Single FP Convert |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 145 | InstrItinData<IIC_fpCVTDS , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 146 | InstrStage<5, [A9_DRegsN], 0, Reserved>, |
| 147 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 148 | InstrStage<1, [A9_NPipe]>], [4, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 149 | |
| 150 | // |
| 151 | // Single to Half FP Convert |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 152 | InstrItinData<IIC_fpCVTSH , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 153 | InstrStage<5, [A9_DRegsN], 0, Reserved>, |
| 154 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 155 | InstrStage<1, [A9_NPipe]>], [4, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 156 | // |
| 157 | // Half to Single FP Convert |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 158 | InstrItinData<IIC_fpCVTHS , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 159 | InstrStage<3, [A9_DRegsN], 0, Reserved>, |
| 160 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 161 | InstrStage<1, [A9_NPipe]>], [2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 162 | |
| 163 | // |
| 164 | // Single-Precision FP to Integer Convert |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 165 | InstrItinData<IIC_fpCVTSI , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 166 | InstrStage<5, [A9_DRegsN], 0, Reserved>, |
| 167 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 168 | InstrStage<1, [A9_NPipe]>], [4, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 169 | // |
| 170 | // Double-Precision FP to Integer Convert |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 171 | InstrItinData<IIC_fpCVTDI , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 172 | InstrStage<5, [A9_DRegsN], 0, Reserved>, |
| 173 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 174 | InstrStage<1, [A9_NPipe]>], [4, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 175 | // |
| 176 | // Integer to Single-Precision FP Convert |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 177 | InstrItinData<IIC_fpCVTIS , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 178 | InstrStage<5, [A9_DRegsN], 0, Reserved>, |
| 179 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 180 | InstrStage<1, [A9_NPipe]>], [4, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 181 | // |
| 182 | // Integer to Double-Precision FP Convert |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 183 | InstrItinData<IIC_fpCVTID , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 184 | InstrStage<5, [A9_DRegsN], 0, Reserved>, |
| 185 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 186 | InstrStage<1, [A9_NPipe]>], [4, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 187 | // |
| 188 | // Single-precision FP ALU |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 189 | InstrItinData<IIC_fpALU32 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 190 | InstrStage<5, [A9_DRegsN], 0, Reserved>, |
| 191 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 192 | InstrStage<1, [A9_NPipe]>], [4, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 193 | // |
| 194 | // Double-precision FP ALU |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 195 | InstrItinData<IIC_fpALU64 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 196 | InstrStage<5, [A9_DRegsN], 0, Reserved>, |
| 197 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 198 | InstrStage<1, [A9_NPipe]>], [4, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 199 | // |
| 200 | // Single-precision FP Multiply |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 201 | InstrItinData<IIC_fpMUL32 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 202 | InstrStage<6, [A9_DRegsN], 0, Reserved>, |
| 203 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 204 | InstrStage<1, [A9_NPipe]>], [5, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 205 | // |
| 206 | // Double-precision FP Multiply |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 207 | InstrItinData<IIC_fpMUL64 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 208 | InstrStage<7, [A9_DRegsN], 0, Reserved>, |
| 209 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 210 | InstrStage<2, [A9_NPipe]>], [6, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 211 | // |
| 212 | // Single-precision FP MAC |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 213 | InstrItinData<IIC_fpMAC32 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 214 | InstrStage<9, [A9_DRegsN], 0, Reserved>, |
| 215 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 216 | InstrStage<1, [A9_NPipe]>], [8, 0, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 217 | // |
| 218 | // Double-precision FP MAC |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 219 | InstrItinData<IIC_fpMAC64 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 220 | InstrStage<10, [A9_DRegsN], 0, Reserved>, |
| 221 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 222 | InstrStage<2, [A9_NPipe]>], [9, 0, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 223 | // |
| 224 | // Single-precision FP DIV |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 225 | InstrItinData<IIC_fpDIV32 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 226 | InstrStage<16, [A9_DRegsN], 0, Reserved>, |
| 227 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 228 | InstrStage<10, [A9_NPipe]>], [15, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 229 | // |
| 230 | // Double-precision FP DIV |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 231 | InstrItinData<IIC_fpDIV64 , [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 232 | InstrStage<26, [A9_DRegsN], 0, Reserved>, |
| 233 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 234 | InstrStage<20, [A9_NPipe]>], [25, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 235 | // |
| 236 | // Single-precision FP SQRT |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 237 | InstrItinData<IIC_fpSQRT32, [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 238 | InstrStage<18, [A9_DRegsN], 0, Reserved>, |
| 239 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 240 | InstrStage<13, [A9_NPipe]>], [17, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 241 | // |
| 242 | // Double-precision FP SQRT |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 243 | InstrItinData<IIC_fpSQRT64, [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 244 | InstrStage<33, [A9_DRegsN], 0, Reserved>, |
| 245 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 246 | InstrStage<28, [A9_NPipe]>], [32, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 247 | |
| 248 | // |
| 249 | // Integer to Single-precision Move |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 250 | InstrItinData<IIC_fpMOVIS, [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 251 | // Extra 1 latency cycle since wbck is 2 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 252 | InstrStage<3, [A9_DRegsN], 0, Reserved>, |
| 253 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 254 | InstrStage<1, [A9_NPipe]>], [1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 255 | // |
| 256 | // Integer to Double-precision Move |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 257 | InstrItinData<IIC_fpMOVID, [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 258 | // Extra 1 latency cycle since wbck is 2 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 259 | InstrStage<3, [A9_DRegsN], 0, Reserved>, |
| 260 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 261 | InstrStage<1, [A9_NPipe]>], [1, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 262 | // |
| 263 | // Single-precision to Integer Move |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 264 | InstrItinData<IIC_fpMOVSI, [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 265 | InstrStage<2, [A9_DRegsN], 0, Reserved>, |
| 266 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 267 | InstrStage<1, [A9_NPipe]>], [1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 268 | // |
| 269 | // Double-precision to Integer Move |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 270 | InstrItinData<IIC_fpMOVDI, [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 271 | InstrStage<2, [A9_DRegsN], 0, Reserved>, |
| 272 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 273 | InstrStage<1, [A9_NPipe]>], [1, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 274 | // |
| 275 | // Single-precision FP Load |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 276 | // use A9_Issue to enforce the 1 load/store per cycle limit |
| 277 | InstrItinData<IIC_fpLoad32, [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 278 | InstrStage<2, [A9_DRegsN], 0, Reserved>, |
| 279 | InstrStage<1, [A9_Issue], 0>, |
| 280 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 281 | InstrStage<1, [A9_LSPipe], 0>, |
| 282 | InstrStage<1, [A9_NPipe]>]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 283 | // |
| 284 | // Double-precision FP Load |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 285 | // use A9_Issue to enforce the 1 load/store per cycle limit |
| 286 | InstrItinData<IIC_fpLoad64, [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 287 | InstrStage<2, [A9_DRegsN], 0, Reserved>, |
| 288 | InstrStage<1, [A9_Issue], 0>, |
| 289 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 290 | InstrStage<1, [A9_LSPipe], 0>, |
| 291 | InstrStage<1, [A9_NPipe]>]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 292 | // |
| 293 | // FP Load Multiple |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 294 | // use A9_Issue to enforce the 1 load/store per cycle limit |
| 295 | InstrItinData<IIC_fpLoadm, [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 296 | InstrStage<2, [A9_DRegsN], 0, Reserved>, |
| 297 | InstrStage<1, [A9_Issue], 0>, |
| 298 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 299 | InstrStage<1, [A9_LSPipe], 0>, |
| 300 | InstrStage<1, [A9_NPipe]>]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 301 | // |
| 302 | // Single-precision FP Store |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 303 | // use A9_Issue to enforce the 1 load/store per cycle limit |
| 304 | InstrItinData<IIC_fpStore32,[InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 305 | InstrStage<2, [A9_DRegsN], 0, Reserved>, |
| 306 | InstrStage<1, [A9_Issue], 0>, |
| 307 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 308 | InstrStage<1, [A9_LSPipe], 0>, |
| 309 | InstrStage<1, [A9_NPipe]>]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 310 | // |
| 311 | // Double-precision FP Store |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 312 | // use A9_Issue to enforce the 1 load/store per cycle limit |
| 313 | InstrItinData<IIC_fpStore64,[InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 314 | InstrStage<2, [A9_DRegsN], 0, Reserved>, |
| 315 | InstrStage<1, [A9_Issue], 0>, |
| 316 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 317 | InstrStage<1, [A9_LSPipe], 0>, |
| 318 | InstrStage<1, [A9_NPipe]>]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 319 | // |
| 320 | // FP Store Multiple |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 321 | // use A9_Issue to enforce the 1 load/store per cycle limit |
| 322 | InstrItinData<IIC_fpStorem, [InstrStage<1, [A9_DRegsVFP], 0, Required>, |
| 323 | InstrStage<2, [A9_DRegsN], 0, Reserved>, |
| 324 | InstrStage<1, [A9_Issue], 0>, |
| 325 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 326 | InstrStage<1, [A9_LSPipe], 0>, |
| 327 | InstrStage<1, [A9_NPipe]>]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 328 | // NEON |
| 329 | // Issue through integer pipeline, and execute in NEON unit. |
| 330 | // FIXME: Neon pipeline and LdSt unit are multiplexed. |
| 331 | // Add some syntactic sugar to model this! |
| 332 | // VLD1 |
| 333 | // FIXME: We don't model this instruction properly |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 334 | InstrItinData<IIC_VLD1, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| 335 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 336 | InstrStage<1, [A9_Issue], 0>, |
| 337 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 338 | InstrStage<1, [A9_LSPipe], 0>, |
| 339 | InstrStage<1, [A9_NPipe]>]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 340 | // |
| 341 | // VLD2 |
| 342 | // FIXME: We don't model this instruction properly |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 343 | InstrItinData<IIC_VLD2, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 344 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 345 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 346 | InstrStage<1, [A9_Issue], 0>, |
| 347 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 348 | InstrStage<1, [A9_LSPipe], 0>, |
| 349 | InstrStage<1, [A9_NPipe]>], [2, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 350 | // |
| 351 | // VLD3 |
| 352 | // FIXME: We don't model this instruction properly |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 353 | InstrItinData<IIC_VLD3, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 354 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 355 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 356 | InstrStage<1, [A9_Issue], 0>, |
| 357 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 358 | InstrStage<1, [A9_LSPipe], 0>, |
| 359 | InstrStage<1, [A9_NPipe]>], [2, 2, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 360 | // |
| 361 | // VLD4 |
| 362 | // FIXME: We don't model this instruction properly |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 363 | InstrItinData<IIC_VLD4, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 364 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 365 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 366 | InstrStage<1, [A9_Issue], 0>, |
| 367 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 368 | InstrStage<1, [A9_LSPipe], 0>, |
| 369 | InstrStage<1, [A9_NPipe]>], [2, 2, 2, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 370 | // |
| 371 | // VST |
| 372 | // FIXME: We don't model this instruction properly |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 373 | InstrItinData<IIC_VST, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 374 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 375 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 376 | InstrStage<1, [A9_Issue], 0>, |
| 377 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 378 | InstrStage<1, [A9_LSPipe], 0>, |
| 379 | InstrStage<1, [A9_NPipe]>]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 380 | // |
| 381 | // Double-register Integer Unary |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 382 | InstrItinData<IIC_VUNAiD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 383 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 384 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 385 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 386 | InstrStage<1, [A9_NPipe]>], [4, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 387 | // |
| 388 | // Quad-register Integer Unary |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 389 | InstrItinData<IIC_VUNAiQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 390 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 391 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 392 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 393 | InstrStage<1, [A9_NPipe]>], [4, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 394 | // |
| 395 | // Double-register Integer Q-Unary |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 396 | InstrItinData<IIC_VQUNAiD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 397 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 398 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 399 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 400 | InstrStage<1, [A9_NPipe]>], [4, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 401 | // |
| 402 | // Quad-register Integer CountQ-Unary |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 403 | InstrItinData<IIC_VQUNAiQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 404 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 405 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 406 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 407 | InstrStage<1, [A9_NPipe]>], [4, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 408 | // |
| 409 | // Double-register Integer Binary |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 410 | InstrItinData<IIC_VBINiD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 411 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 412 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 413 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 414 | InstrStage<1, [A9_NPipe]>], [3, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 415 | // |
| 416 | // Quad-register Integer Binary |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 417 | InstrItinData<IIC_VBINiQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 418 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 419 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 420 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 421 | InstrStage<1, [A9_NPipe]>], [3, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 422 | // |
| 423 | // Double-register Integer Subtract |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 424 | InstrItinData<IIC_VSUBiD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 425 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 426 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 427 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 428 | InstrStage<1, [A9_NPipe]>], [3, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 429 | // |
| 430 | // Quad-register Integer Subtract |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 431 | InstrItinData<IIC_VSUBiQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 432 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 433 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 434 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 435 | InstrStage<1, [A9_NPipe]>], [3, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 436 | // |
| 437 | // Double-register Integer Shift |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 438 | InstrItinData<IIC_VSHLiD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 439 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 440 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 441 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 442 | InstrStage<1, [A9_NPipe]>], [3, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 443 | // |
| 444 | // Quad-register Integer Shift |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 445 | InstrItinData<IIC_VSHLiQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 446 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 447 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 448 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 449 | InstrStage<1, [A9_NPipe]>], [3, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 450 | // |
| 451 | // Double-register Integer Shift (4 cycle) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 452 | InstrItinData<IIC_VSHLi4D, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 453 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 454 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 455 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 456 | InstrStage<1, [A9_NPipe]>], [4, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 457 | // |
| 458 | // Quad-register Integer Shift (4 cycle) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 459 | InstrItinData<IIC_VSHLi4Q, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 460 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 461 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 462 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 463 | InstrStage<1, [A9_NPipe]>], [4, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 464 | // |
| 465 | // Double-register Integer Binary (4 cycle) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 466 | InstrItinData<IIC_VBINi4D, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 467 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 468 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 469 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 470 | InstrStage<1, [A9_NPipe]>], [4, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 471 | // |
| 472 | // Quad-register Integer Binary (4 cycle) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 473 | InstrItinData<IIC_VBINi4Q, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 474 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 475 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 476 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 477 | InstrStage<1, [A9_NPipe]>], [4, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 478 | // |
| 479 | // Double-register Integer Subtract (4 cycle) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 480 | InstrItinData<IIC_VSUBiD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 481 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 482 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 483 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 484 | InstrStage<1, [A9_NPipe]>], [4, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 485 | // |
| 486 | // Quad-register Integer Subtract (4 cycle) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 487 | InstrItinData<IIC_VSUBiQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 488 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 489 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 490 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 491 | InstrStage<1, [A9_NPipe]>], [4, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 492 | |
| 493 | // |
| 494 | // Double-register Integer Count |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 495 | InstrItinData<IIC_VCNTiD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 496 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 497 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 498 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 499 | InstrStage<1, [A9_NPipe]>], [3, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 500 | // |
| 501 | // Quad-register Integer Count |
| 502 | // Result written in N3, but that is relative to the last cycle of multicycle, |
| 503 | // so we use 4 for those cases |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 504 | InstrItinData<IIC_VCNTiQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 505 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 506 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 507 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 508 | InstrStage<2, [A9_NPipe]>], [4, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 509 | // |
| 510 | // Double-register Absolute Difference and Accumulate |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 511 | InstrItinData<IIC_VABAD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 512 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 513 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 514 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 515 | InstrStage<1, [A9_NPipe]>], [6, 3, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 516 | // |
| 517 | // Quad-register Absolute Difference and Accumulate |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 518 | InstrItinData<IIC_VABAQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 519 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 520 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 521 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 522 | InstrStage<2, [A9_NPipe]>], [6, 3, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 523 | // |
| 524 | // Double-register Integer Pair Add Long |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 525 | InstrItinData<IIC_VPALiD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 526 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 527 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 528 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 529 | InstrStage<1, [A9_NPipe]>], [6, 3, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 530 | // |
| 531 | // Quad-register Integer Pair Add Long |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 532 | InstrItinData<IIC_VPALiQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 533 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 534 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 535 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 536 | InstrStage<2, [A9_NPipe]>], [6, 3, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 537 | |
| 538 | // |
| 539 | // Double-register Integer Multiply (.8, .16) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 540 | InstrItinData<IIC_VMULi16D, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 541 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 542 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 543 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 544 | InstrStage<1, [A9_NPipe]>], [6, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 545 | // |
| 546 | // Quad-register Integer Multiply (.8, .16) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 547 | InstrItinData<IIC_VMULi16Q, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 548 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 549 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 550 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 551 | InstrStage<2, [A9_NPipe]>], [7, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 552 | |
| 553 | // |
| 554 | // Double-register Integer Multiply (.32) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 555 | InstrItinData<IIC_VMULi32D, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 556 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 557 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 558 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 559 | InstrStage<2, [A9_NPipe]>], [7, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 560 | // |
| 561 | // Quad-register Integer Multiply (.32) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 562 | InstrItinData<IIC_VMULi32Q, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 563 | // Extra latency cycles since wbck is 9 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 564 | InstrStage<10, [A9_DRegsVFP], 0, Reserved>, |
| 565 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 566 | InstrStage<4, [A9_NPipe]>], [9, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 567 | // |
| 568 | // Double-register Integer Multiply-Accumulate (.8, .16) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 569 | InstrItinData<IIC_VMACi16D, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 570 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 571 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 572 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 573 | InstrStage<1, [A9_NPipe]>], [6, 3, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 574 | // |
| 575 | // Double-register Integer Multiply-Accumulate (.32) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 576 | InstrItinData<IIC_VMACi32D, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 577 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 578 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 579 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 580 | InstrStage<2, [A9_NPipe]>], [7, 3, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 581 | // |
| 582 | // Quad-register Integer Multiply-Accumulate (.8, .16) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 583 | InstrItinData<IIC_VMACi16Q, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 584 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 585 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 586 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 587 | InstrStage<2, [A9_NPipe]>], [7, 3, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 588 | // |
| 589 | // Quad-register Integer Multiply-Accumulate (.32) |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 590 | InstrItinData<IIC_VMACi32Q, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 591 | // Extra latency cycles since wbck is 9 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 592 | InstrStage<10, [A9_DRegsVFP], 0, Reserved>, |
| 593 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 594 | InstrStage<4, [A9_NPipe]>], [9, 3, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 595 | // |
| 596 | // Move Immediate |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 597 | InstrItinData<IIC_VMOVImm, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 598 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 599 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 600 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 601 | InstrStage<1, [A9_NPipe]>], [3]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 602 | // |
| 603 | // Double-register Permute Move |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 604 | InstrItinData<IIC_VMOVD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 605 | // FIXME: all latencies are arbitrary, no information is available |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 606 | InstrStage<3, [A9_DRegsVFP], 0, Reserved>, |
| 607 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 608 | InstrStage<1, [A9_LSPipe]>], [2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 609 | // |
| 610 | // Quad-register Permute Move |
| 611 | // Result written in N2, but that is relative to the last cycle of multicycle, |
| 612 | // so we use 3 for those cases |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 613 | InstrItinData<IIC_VMOVQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 614 | // FIXME: all latencies are arbitrary, no information is available |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 615 | InstrStage<4, [A9_DRegsVFP], 0, Reserved>, |
| 616 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 617 | InstrStage<2, [A9_NPipe]>], [3, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 618 | // |
| 619 | // Integer to Single-precision Move |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 620 | InstrItinData<IIC_VMOVIS , [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 621 | // FIXME: all latencies are arbitrary, no information is available |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 622 | InstrStage<3, [A9_DRegsVFP], 0, Reserved>, |
| 623 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 624 | InstrStage<1, [A9_NPipe]>], [2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 625 | // |
| 626 | // Integer to Double-precision Move |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 627 | InstrItinData<IIC_VMOVID , [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 628 | // FIXME: all latencies are arbitrary, no information is available |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 629 | InstrStage<3, [A9_DRegsVFP], 0, Reserved>, |
| 630 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 631 | InstrStage<1, [A9_NPipe]>], [2, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 632 | // |
| 633 | // Single-precision to Integer Move |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 634 | InstrItinData<IIC_VMOVSI , [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 635 | // FIXME: all latencies are arbitrary, no information is available |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 636 | InstrStage<3, [A9_DRegsVFP], 0, Reserved>, |
| 637 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 638 | InstrStage<1, [A9_NPipe]>], [2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 639 | // |
| 640 | // Double-precision to Integer Move |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 641 | InstrItinData<IIC_VMOVDI , [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 642 | // FIXME: all latencies are arbitrary, no information is available |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 643 | InstrStage<3, [A9_DRegsVFP], 0, Reserved>, |
| 644 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 645 | InstrStage<1, [A9_NPipe]>], [2, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 646 | // |
| 647 | // Integer to Lane Move |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 648 | InstrItinData<IIC_VMOVISL , [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 649 | // FIXME: all latencies are arbitrary, no information is available |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 650 | InstrStage<4, [A9_DRegsVFP], 0, Reserved>, |
| 651 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 652 | InstrStage<2, [A9_NPipe]>], [3, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 653 | |
| 654 | // |
| 655 | // Double-register FP Unary |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 656 | InstrItinData<IIC_VUNAD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 657 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 658 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 659 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 660 | InstrStage<1, [A9_NPipe]>], [5, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 661 | // |
| 662 | // Quad-register FP Unary |
| 663 | // Result written in N5, but that is relative to the last cycle of multicycle, |
| 664 | // so we use 6 for those cases |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 665 | InstrItinData<IIC_VUNAQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 666 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 667 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 668 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 669 | InstrStage<2, [A9_NPipe]>], [6, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 670 | // |
| 671 | // Double-register FP Binary |
| 672 | // FIXME: We're using this itin for many instructions and [2, 2] here is too |
| 673 | // optimistic. |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 674 | InstrItinData<IIC_VBIND, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 675 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 676 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 677 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 678 | InstrStage<1, [A9_NPipe]>], [5, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 679 | // |
| 680 | // Quad-register FP Binary |
| 681 | // Result written in N5, but that is relative to the last cycle of multicycle, |
| 682 | // so we use 6 for those cases |
| 683 | // FIXME: We're using this itin for many instructions and [2, 2] here is too |
| 684 | // optimistic. |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 685 | InstrItinData<IIC_VBINQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 686 | // Extra latency cycles since wbck is 8 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 687 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 688 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 689 | InstrStage<2, [A9_NPipe]>], [6, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 690 | // |
| 691 | // Double-register FP Multiple-Accumulate |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 692 | InstrItinData<IIC_VMACD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 693 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 694 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 695 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 696 | InstrStage<2, [A9_NPipe]>], [6, 3, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 697 | // |
| 698 | // Quad-register FP Multiple-Accumulate |
| 699 | // Result written in N9, but that is relative to the last cycle of multicycle, |
| 700 | // so we use 10 for those cases |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 701 | InstrItinData<IIC_VMACQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 702 | // Extra latency cycles since wbck is 9 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 703 | InstrStage<10, [A9_DRegsVFP], 0, Reserved>, |
| 704 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 705 | InstrStage<4, [A9_NPipe]>], [8, 4, 2, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 706 | // |
| 707 | // Double-register Reciprical Step |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 708 | InstrItinData<IIC_VRECSD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 709 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 710 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 711 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 712 | InstrStage<2, [A9_NPipe]>], [6, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 713 | // |
| 714 | // Quad-register Reciprical Step |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 715 | InstrItinData<IIC_VRECSQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 716 | // Extra latency cycles since wbck is 9 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 717 | InstrStage<10, [A9_DRegsVFP], 0, Reserved>, |
| 718 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 719 | InstrStage<4, [A9_NPipe]>], [8, 2, 2]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 720 | // |
| 721 | // Double-register Permute |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 722 | InstrItinData<IIC_VPERMD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 723 | // Extra latency cycles since wbck is 6 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 724 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 725 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 726 | InstrStage<1, [A9_NPipe]>], [2, 2, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 727 | // |
| 728 | // Quad-register Permute |
| 729 | // Result written in N2, but that is relative to the last cycle of multicycle, |
| 730 | // so we use 3 for those cases |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 731 | InstrItinData<IIC_VPERMQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 732 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 733 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 734 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 735 | InstrStage<2, [A9_NPipe]>], [3, 3, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 736 | // |
| 737 | // Quad-register Permute (3 cycle issue) |
| 738 | // Result written in N2, but that is relative to the last cycle of multicycle, |
| 739 | // so we use 4 for those cases |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 740 | InstrItinData<IIC_VPERMQ3, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 741 | // Extra latency cycles since wbck is 8 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 742 | InstrStage<9, [A9_DRegsVFP], 0, Reserved>, |
| 743 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 744 | InstrStage<3, [A9_LSPipe]>], [4, 4, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 745 | |
| 746 | // |
| 747 | // Double-register VEXT |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 748 | InstrItinData<IIC_VEXTD, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 749 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 750 | InstrStage<7, [A9_DRegsVFP], 0, Reserved>, |
| 751 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 752 | InstrStage<1, [A9_NPipe]>], [2, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 753 | // |
| 754 | // Quad-register VEXT |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 755 | InstrItinData<IIC_VEXTQ, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 756 | // Extra latency cycles since wbck is 9 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 757 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 758 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 759 | InstrStage<2, [A9_NPipe]>], [3, 1, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 760 | // |
| 761 | // VTB |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 762 | InstrItinData<IIC_VTB1, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 763 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 764 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 765 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 766 | InstrStage<2, [A9_NPipe]>], [3, 2, 1]>, |
| 767 | InstrItinData<IIC_VTB2, [InstrStage<2, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 768 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 769 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 770 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 771 | InstrStage<2, [A9_NPipe]>], [3, 2, 2, 1]>, |
| 772 | InstrItinData<IIC_VTB3, [InstrStage<2, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 773 | // Extra latency cycles since wbck is 8 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 774 | InstrStage<9, [A9_DRegsVFP], 0, Reserved>, |
| 775 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 776 | InstrStage<3, [A9_NPipe]>], [4, 2, 2, 3, 1]>, |
| 777 | InstrItinData<IIC_VTB4, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 778 | // Extra latency cycles since wbck is 8 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 779 | InstrStage<9, [A9_DRegsVFP], 0, Reserved>, |
| 780 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 781 | InstrStage<3, [A9_NPipe]>], [4, 2, 2, 3, 3, 1]>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 782 | // |
| 783 | // VTBX |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 784 | InstrItinData<IIC_VTBX1, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 785 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 786 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 787 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 788 | InstrStage<2, [A9_NPipe]>], [3, 1, 2, 1]>, |
| 789 | InstrItinData<IIC_VTBX2, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 790 | // Extra latency cycles since wbck is 7 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 791 | InstrStage<8, [A9_DRegsVFP], 0, Reserved>, |
| 792 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 793 | InstrStage<2, [A9_NPipe]>], [3, 1, 2, 2, 1]>, |
| 794 | InstrItinData<IIC_VTBX3, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 795 | // Extra latency cycles since wbck is 8 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 796 | InstrStage<9, [A9_DRegsVFP], 0, Reserved>, |
| 797 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 798 | InstrStage<3, [A9_NPipe]>], [4, 1, 2, 2, 3, 1]>, |
| 799 | InstrItinData<IIC_VTBX4, [InstrStage<1, [A9_DRegsN], 0, Required>, |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 800 | // Extra latency cycles since wbck is 8 cycles |
| Anton Korobeynikov | 7d62e33 | 2010-04-18 20:31:01 +0000 | [diff] [blame] | 801 | InstrStage<9, [A9_DRegsVFP], 0, Reserved>, |
| 802 | InstrStage<1, [A9_Pipe0, A9_Pipe1]>, |
| 803 | InstrStage<2, [A9_NPipe]>], [4, 1, 2, 2, 3, 3, 1]> |
| Anton Korobeynikov | 090323a | 2010-04-07 18:22:11 +0000 | [diff] [blame] | 804 | ]>; |