1//=- AArch64SchedA57.td - ARM Cortex-A57 Scheduling Defs -----*- tablegen -*-=// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8// 9// This file defines the machine model for ARM Cortex-A57 to support 10// instruction scheduling and other instruction cost heuristics. 11// 12//===----------------------------------------------------------------------===// 13 14//===----------------------------------------------------------------------===// 15// The Cortex-A57 is a traditional superscalar microprocessor with a 16// conservative 3-wide in-order stage for decode and dispatch. Combined with the 17// much wider out-of-order issue stage, this produced a need to carefully 18// schedule micro-ops so that all three decoded each cycle are successfully 19// issued as the reservation station(s) simply don't stay occupied for long. 20// Therefore, IssueWidth is set to the narrower of the two at three, while still 21// modeling the machine as out-of-order. 22 23def CortexA57Model : SchedMachineModel { 24 let IssueWidth = 3; // 3-way decode and dispatch 25 let MicroOpBufferSize = 128; // 128 micro-op re-order buffer 26 let LoadLatency = 4; // Optimistic load latency 27 let MispredictPenalty = 14; // Fetch + Decode/Rename/Dispatch + Branch 28 29 // Enable partial & runtime unrolling. The magic number is chosen based on 30 // experiments and benchmarking data. 31 let LoopMicroOpBufferSize = 16; 32 let CompleteModel = 1; 33 34 list<Predicate> UnsupportedFeatures = !listconcat(SVEUnsupported.F, 35 PAUnsupported.F, 36 SMEUnsupported.F); 37} 38 39//===----------------------------------------------------------------------===// 40// Define each kind of processor resource and number available on Cortex-A57. 41// Cortex A-57 has 8 pipelines that each has its own 8-entry queue where 42// micro-ops wait for their operands and then issue out-of-order. 43 44def A57UnitB : ProcResource<1>; // Type B micro-ops 45def A57UnitI : ProcResource<2>; // Type I micro-ops 46def A57UnitM : ProcResource<1>; // Type M micro-ops 47def A57UnitL : ProcResource<1>; // Type L micro-ops 48def A57UnitS : ProcResource<1>; // Type S micro-ops 49def A57UnitX : ProcResource<1>; // Type X micro-ops 50def A57UnitW : ProcResource<1>; // Type W micro-ops 51let SchedModel = CortexA57Model in { 52 def A57UnitV : ProcResGroup<[A57UnitX, A57UnitW]>; // Type V micro-ops 53} 54 55let SchedModel = CortexA57Model in { 56 57//===----------------------------------------------------------------------===// 58// Define customized scheduler read/write types specific to the Cortex-A57. 59 60include "AArch64SchedA57WriteRes.td" 61 62//===----------------------------------------------------------------------===// 63// Map the target-defined scheduler read/write resources and latency for 64// Cortex-A57. The Cortex-A57 types are directly associated with resources, so 65// defining the aliases precludes the need for mapping them using WriteRes. The 66// aliases are sufficient for creating a coarse, working model. As the model 67// evolves, InstRWs will be used to override some of these SchedAliases. 68// 69// WARNING: Using SchedAliases is convenient and works well for latency and 70// resource lookup for instructions. However, this creates an entry in 71// AArch64WriteLatencyTable with a WriteResourceID of 0, breaking 72// any SchedReadAdvance since the lookup will fail. 73 74def : SchedAlias<WriteImm, A57Write_1cyc_1I>; 75def : SchedAlias<WriteI, A57Write_1cyc_1I>; 76def : SchedAlias<WriteISReg, A57Write_2cyc_1M>; 77def : SchedAlias<WriteIEReg, A57Write_2cyc_1M>; 78def : SchedAlias<WriteExtr, A57Write_1cyc_1I>; 79def : SchedAlias<WriteIS, A57Write_1cyc_1I>; 80def : SchedAlias<WriteID32, A57Write_19cyc_1M>; 81def : SchedAlias<WriteID64, A57Write_35cyc_1M>; 82def : WriteRes<WriteIM32, [A57UnitM]> { let Latency = 3; } 83def : WriteRes<WriteIM64, [A57UnitM]> { let Latency = 5; } 84def : SchedAlias<WriteBr, A57Write_1cyc_1B>; 85def : SchedAlias<WriteBrReg, A57Write_1cyc_1B>; 86def : SchedAlias<WriteLD, A57Write_4cyc_1L>; 87def : SchedAlias<WriteST, A57Write_1cyc_1S>; 88def : SchedAlias<WriteSTP, A57Write_1cyc_1S>; 89def : SchedAlias<WriteAdr, A57Write_1cyc_1I>; 90def : SchedAlias<WriteLDIdx, A57Write_4cyc_1I_1L>; 91def : SchedAlias<WriteSTIdx, A57Write_1cyc_1I_1S>; 92def : SchedAlias<WriteF, A57Write_3cyc_1V>; 93def : SchedAlias<WriteFCmp, A57Write_3cyc_1V>; 94def : SchedAlias<WriteFCvt, A57Write_5cyc_1V>; 95def : SchedAlias<WriteFCopy, A57Write_5cyc_1L>; 96def : SchedAlias<WriteFImm, A57Write_3cyc_1V>; 97def : WriteRes<WriteFMul, [A57UnitV]> { let Latency = 5;} 98def : SchedAlias<WriteFDiv, A57Write_17cyc_1W>; 99def : SchedAlias<WriteV, A57Write_3cyc_1V>; 100def : SchedAlias<WriteVLD, A57Write_5cyc_1L>; 101def : SchedAlias<WriteVST, A57Write_1cyc_1S>; 102 103def : WriteRes<WriteAtomic, []> { let Unsupported = 1; } 104 105def : WriteRes<WriteSys, []> { let Latency = 1; } 106def : WriteRes<WriteBarrier, []> { let Latency = 1; } 107def : WriteRes<WriteHint, []> { let Latency = 1; } 108 109def : WriteRes<WriteLDHi, []> { let Latency = 4; } 110 111// Forwarding logic is only modeled for multiply and accumulate 112def : ReadAdvance<ReadI, 0>; 113def : ReadAdvance<ReadISReg, 0>; 114def : ReadAdvance<ReadIEReg, 0>; 115def : ReadAdvance<ReadIM, 0>; 116def : ReadAdvance<ReadIMA, 2, [WriteIM32, WriteIM64]>; 117def : ReadAdvance<ReadID, 0>; 118def : ReadAdvance<ReadExtrHi, 0>; 119def : ReadAdvance<ReadAdrBase, 0>; 120def : ReadAdvance<ReadVLD, 0>; 121 122 123//===----------------------------------------------------------------------===// 124// Specialize the coarse model by associating instruction groups with the 125// subtarget-defined types. As the modeled is refined, this will override most 126// of the above ShchedAlias mappings. 127 128// Miscellaneous 129// ----------------------------------------------------------------------------- 130 131def : InstRW<[WriteI], (instrs COPY)>; 132 133 134// Branch Instructions 135// ----------------------------------------------------------------------------- 136 137def : InstRW<[A57Write_1cyc_1B_1I], (instrs BL)>; 138def : InstRW<[A57Write_2cyc_1B_1I], (instrs BLR)>; 139 140 141// Shifted Register with Shift == 0 142// ---------------------------------------------------------------------------- 143 144def A57WriteISReg : SchedWriteVariant<[ 145 SchedVar<RegShiftedPred, [WriteISReg]>, 146 SchedVar<NoSchedPred, [WriteI]>]>; 147def : InstRW<[A57WriteISReg], (instregex ".*rs$")>; 148 149 150// Divide and Multiply Instructions 151// ----------------------------------------------------------------------------- 152 153// Multiply high 154def : InstRW<[A57Write_6cyc_1M], (instrs SMULHrr, UMULHrr)>; 155 156 157// Miscellaneous Data-Processing Instructions 158// ----------------------------------------------------------------------------- 159 160def : InstRW<[A57Write_1cyc_1I], (instrs EXTRWrri)>; 161def : InstRW<[A57Write_3cyc_1I_1M], (instrs EXTRXrri)>; 162def : InstRW<[A57Write_2cyc_1M], (instregex "BFM")>; 163 164 165// Cryptography Extensions 166// ----------------------------------------------------------------------------- 167 168def A57ReadAES : SchedReadAdvance<3, [A57Write_3cyc_1W]>; 169def : InstRW<[A57Write_3cyc_1W], (instregex "^AES[DE]")>; 170def : InstRW<[A57Write_3cyc_1W, A57ReadAES], (instregex "^AESI?MC")>; 171def : InstRW<[A57Write_6cyc_2V], (instregex "^SHA1SU0")>; 172def : InstRW<[A57Write_3cyc_1W], (instregex "^SHA1(H|SU1)")>; 173def : InstRW<[A57Write_6cyc_2W], (instregex "^SHA1[CMP]")>; 174def : InstRW<[A57Write_3cyc_1W], (instregex "^SHA256SU0")>; 175def : InstRW<[A57Write_6cyc_2W], (instregex "^SHA256(H|H2|SU1)")>; 176def : InstRW<[A57Write_3cyc_1W], (instregex "^CRC32")>; 177 178 179// Vector Load 180// ----------------------------------------------------------------------------- 181 182def : InstRW<[A57Write_8cyc_1L_1V], (instregex "LD1i(8|16|32)$")>; 183def : InstRW<[A57Write_8cyc_1L_1V, WriteAdr], (instregex "LD1i(8|16|32)_POST$")>; 184def : InstRW<[A57Write_5cyc_1L], (instregex "LD1i(64)$")>; 185def : InstRW<[A57Write_5cyc_1L, WriteAdr], (instregex "LD1i(64)_POST$")>; 186 187def : InstRW<[A57Write_8cyc_1L_1V], (instregex "LD1Rv(8b|4h|2s)$")>; 188def : InstRW<[A57Write_8cyc_1L_1V, WriteAdr], (instregex "LD1Rv(8b|4h|2s)_POST$")>; 189def : InstRW<[A57Write_5cyc_1L], (instregex "LD1Rv(1d)$")>; 190def : InstRW<[A57Write_5cyc_1L, WriteAdr], (instregex "LD1Rv(1d)_POST$")>; 191def : InstRW<[A57Write_8cyc_1L_1V], (instregex "LD1Rv(16b|8h|4s|2d)$")>; 192def : InstRW<[A57Write_8cyc_1L_1V, WriteAdr], (instregex "LD1Rv(16b|8h|4s|2d)_POST$")>; 193 194def : InstRW<[A57Write_5cyc_1L], (instregex "LD1Onev(8b|4h|2s|1d)$")>; 195def : InstRW<[A57Write_5cyc_1L, WriteAdr], (instregex "LD1Onev(8b|4h|2s|1d)_POST$")>; 196def : InstRW<[A57Write_5cyc_1L], (instregex "LD1Onev(16b|8h|4s|2d)$")>; 197def : InstRW<[A57Write_5cyc_1L, WriteAdr], (instregex "LD1Onev(16b|8h|4s|2d)_POST$")>; 198def : InstRW<[A57Write_5cyc_1L], (instregex "LD1Twov(8b|4h|2s|1d)$")>; 199def : InstRW<[A57Write_5cyc_1L, WriteAdr], (instregex "LD1Twov(8b|4h|2s|1d)_POST$")>; 200def : InstRW<[A57Write_6cyc_2L], (instregex "LD1Twov(16b|8h|4s|2d)$")>; 201def : InstRW<[A57Write_6cyc_2L, WriteAdr], (instregex "LD1Twov(16b|8h|4s|2d)_POST$")>; 202def : InstRW<[A57Write_6cyc_2L], (instregex "LD1Threev(8b|4h|2s|1d)$")>; 203def : InstRW<[A57Write_6cyc_2L, WriteAdr], (instregex "LD1Threev(8b|4h|2s|1d)_POST$")>; 204def : InstRW<[A57Write_7cyc_3L], (instregex "LD1Threev(16b|8h|4s|2d)$")>; 205def : InstRW<[A57Write_7cyc_3L, WriteAdr], (instregex "LD1Threev(16b|8h|4s|2d)_POST$")>; 206def : InstRW<[A57Write_6cyc_2L], (instregex "LD1Fourv(8b|4h|2s|1d)$")>; 207def : InstRW<[A57Write_6cyc_2L, WriteAdr], (instregex "LD1Fourv(8b|4h|2s|1d)_POST$")>; 208def : InstRW<[A57Write_8cyc_4L], (instregex "LD1Fourv(16b|8h|4s|2d)$")>; 209def : InstRW<[A57Write_8cyc_4L, WriteAdr], (instregex "LD1Fourv(16b|8h|4s|2d)_POST$")>; 210 211def : InstRW<[A57Write_8cyc_1L_2V], (instregex "LD2i(8|16)$")>; 212def : InstRW<[A57Write_8cyc_1L_2V, WriteAdr], (instregex "LD2i(8|16)_POST$")>; 213def : InstRW<[A57Write_6cyc_2L], (instregex "LD2i(32)$")>; 214def : InstRW<[A57Write_6cyc_2L, WriteAdr], (instregex "LD2i(32)_POST$")>; 215def : InstRW<[A57Write_8cyc_1L_1V], (instregex "LD2i(64)$")>; 216def : InstRW<[A57Write_8cyc_1L_1V, WriteAdr], (instregex "LD2i(64)_POST$")>; 217 218def : InstRW<[A57Write_8cyc_1L_1V], (instregex "LD2Rv(8b|4h|2s)$")>; 219def : InstRW<[A57Write_8cyc_1L_1V, WriteAdr], (instregex "LD2Rv(8b|4h|2s)_POST$")>; 220def : InstRW<[A57Write_5cyc_1L], (instregex "LD2Rv(1d)$")>; 221def : InstRW<[A57Write_5cyc_1L, WriteAdr], (instregex "LD2Rv(1d)_POST$")>; 222def : InstRW<[A57Write_8cyc_1L_2V], (instregex "LD2Rv(16b|8h|4s|2d)$")>; 223def : InstRW<[A57Write_8cyc_1L_2V, WriteAdr], (instregex "LD2Rv(16b|8h|4s|2d)_POST$")>; 224 225def : InstRW<[A57Write_8cyc_1L_1V], (instregex "LD2Twov(8b|4h|2s)$")>; 226def : InstRW<[A57Write_8cyc_1L_1V, WriteAdr], (instregex "LD2Twov(8b|4h|2s)_POST$")>; 227def : InstRW<[A57Write_9cyc_2L_2V], (instregex "LD2Twov(16b|8h|4s)$")>; 228def : InstRW<[A57Write_9cyc_2L_2V, WriteAdr], (instregex "LD2Twov(16b|8h|4s)_POST$")>; 229def : InstRW<[A57Write_6cyc_2L], (instregex "LD2Twov(2d)$")>; 230def : InstRW<[A57Write_6cyc_2L, WriteAdr], (instregex "LD2Twov(2d)_POST$")>; 231 232def : InstRW<[A57Write_9cyc_1L_3V], (instregex "LD3i(8|16)$")>; 233def : InstRW<[A57Write_9cyc_1L_3V, WriteAdr], (instregex "LD3i(8|16)_POST$")>; 234def : InstRW<[A57Write_8cyc_1L_2V], (instregex "LD3i(32)$")>; 235def : InstRW<[A57Write_8cyc_1L_2V, WriteAdr], (instregex "LD3i(32)_POST$")>; 236def : InstRW<[A57Write_6cyc_2L], (instregex "LD3i(64)$")>; 237def : InstRW<[A57Write_6cyc_2L, WriteAdr], (instregex "LD3i(64)_POST$")>; 238 239def : InstRW<[A57Write_8cyc_1L_2V], (instregex "LD3Rv(8b|4h|2s)$")>; 240def : InstRW<[A57Write_8cyc_1L_2V, WriteAdr], (instregex "LD3Rv(8b|4h|2s)_POST$")>; 241def : InstRW<[A57Write_6cyc_2L], (instregex "LD3Rv(1d)$")>; 242def : InstRW<[A57Write_6cyc_2L, WriteAdr], (instregex "LD3Rv(1d)_POST$")>; 243def : InstRW<[A57Write_9cyc_1L_3V], (instregex "LD3Rv(16b|8h|4s)$")>; 244def : InstRW<[A57Write_9cyc_1L_3V, WriteAdr], (instregex "LD3Rv(16b|8h|4s)_POST$")>; 245def : InstRW<[A57Write_9cyc_2L_3V], (instregex "LD3Rv(2d)$")>; 246def : InstRW<[A57Write_9cyc_2L_3V, WriteAdr], (instregex "LD3Rv(2d)_POST$")>; 247 248def : InstRW<[A57Write_9cyc_2L_2V], (instregex "LD3Threev(8b|4h|2s)$")>; 249def : InstRW<[A57Write_9cyc_2L_2V, WriteAdr], (instregex "LD3Threev(8b|4h|2s)_POST$")>; 250def : InstRW<[A57Write_10cyc_3L_4V], (instregex "LD3Threev(16b|8h|4s)$")>; 251def : InstRW<[A57Write_10cyc_3L_4V, WriteAdr], (instregex "LD3Threev(16b|8h|4s)_POST$")>; 252def : InstRW<[A57Write_8cyc_4L], (instregex "LD3Threev(2d)$")>; 253def : InstRW<[A57Write_8cyc_4L, WriteAdr], (instregex "LD3Threev(2d)_POST$")>; 254 255def : InstRW<[A57Write_9cyc_2L_3V], (instregex "LD4i(8|16)$")>; 256def : InstRW<[A57Write_9cyc_2L_3V, WriteAdr], (instregex "LD4i(8|16)_POST$")>; 257def : InstRW<[A57Write_8cyc_1L_2V], (instregex "LD4i(32)$")>; 258def : InstRW<[A57Write_8cyc_1L_2V, WriteAdr], (instregex "LD4i(32)_POST$")>; 259def : InstRW<[A57Write_9cyc_2L_3V], (instregex "LD4i(64)$")>; 260def : InstRW<[A57Write_9cyc_2L_3V, WriteAdr], (instregex "LD4i(64)_POST$")>; 261 262def : InstRW<[A57Write_8cyc_1L_2V], (instregex "LD4Rv(8b|4h|2s)$")>; 263def : InstRW<[A57Write_8cyc_1L_2V, WriteAdr], (instregex "LD4Rv(8b|4h|2s)_POST$")>; 264def : InstRW<[A57Write_6cyc_2L], (instregex "LD4Rv(1d)$")>; 265def : InstRW<[A57Write_6cyc_2L, WriteAdr], (instregex "LD4Rv(1d)_POST$")>; 266def : InstRW<[A57Write_9cyc_2L_3V], (instregex "LD4Rv(16b|8h|4s)$")>; 267def : InstRW<[A57Write_9cyc_2L_3V, WriteAdr], (instregex "LD4Rv(16b|8h|4s)_POST$")>; 268def : InstRW<[A57Write_9cyc_2L_4V], (instregex "LD4Rv(2d)$")>; 269def : InstRW<[A57Write_9cyc_2L_4V, WriteAdr], (instregex "LD4Rv(2d)_POST$")>; 270 271def : InstRW<[A57Write_9cyc_2L_2V], (instregex "LD4Fourv(8b|4h|2s)$")>; 272def : InstRW<[A57Write_9cyc_2L_2V, WriteAdr], (instregex "LD4Fourv(8b|4h|2s)_POST$")>; 273def : InstRW<[A57Write_11cyc_4L_4V], (instregex "LD4Fourv(16b|8h|4s)$")>; 274def : InstRW<[A57Write_11cyc_4L_4V, WriteAdr], (instregex "LD4Fourv(16b|8h|4s)_POST$")>; 275def : InstRW<[A57Write_8cyc_4L], (instregex "LD4Fourv(2d)$")>; 276def : InstRW<[A57Write_8cyc_4L, WriteAdr], (instregex "LD4Fourv(2d)_POST$")>; 277 278// Vector Store 279// ----------------------------------------------------------------------------- 280 281def : InstRW<[A57Write_1cyc_1S], (instregex "ST1i(8|16|32)$")>; 282def : InstRW<[A57Write_1cyc_1S, WriteAdr], (instregex "ST1i(8|16|32)_POST$")>; 283def : InstRW<[A57Write_3cyc_1S_1V], (instregex "ST1i(64)$")>; 284def : InstRW<[A57Write_3cyc_1S_1V, WriteAdr], (instregex "ST1i(64)_POST$")>; 285 286def : InstRW<[A57Write_1cyc_1S], (instregex "ST1Onev(8b|4h|2s|1d)$")>; 287def : InstRW<[A57Write_1cyc_1S, WriteAdr], (instregex "ST1Onev(8b|4h|2s|1d)_POST$")>; 288def : InstRW<[A57Write_2cyc_2S], (instregex "ST1Onev(16b|8h|4s|2d)$")>; 289def : InstRW<[A57Write_2cyc_2S, WriteAdr], (instregex "ST1Onev(16b|8h|4s|2d)_POST$")>; 290def : InstRW<[A57Write_2cyc_2S], (instregex "ST1Twov(8b|4h|2s|1d)$")>; 291def : InstRW<[A57Write_2cyc_2S, WriteAdr], (instregex "ST1Twov(8b|4h|2s|1d)_POST$")>; 292def : InstRW<[A57Write_4cyc_4S], (instregex "ST1Twov(16b|8h|4s|2d)$")>; 293def : InstRW<[A57Write_4cyc_4S, WriteAdr], (instregex "ST1Twov(16b|8h|4s|2d)_POST$")>; 294def : InstRW<[A57Write_3cyc_3S], (instregex "ST1Threev(8b|4h|2s|1d)$")>; 295def : InstRW<[A57Write_3cyc_3S, WriteAdr], (instregex "ST1Threev(8b|4h|2s|1d)_POST$")>; 296def : InstRW<[A57Write_6cyc_6S], (instregex "ST1Threev(16b|8h|4s|2d)$")>; 297def : InstRW<[A57Write_6cyc_6S, WriteAdr], (instregex "ST1Threev(16b|8h|4s|2d)_POST$")>; 298def : InstRW<[A57Write_4cyc_4S], (instregex "ST1Fourv(8b|4h|2s|1d)$")>; 299def : InstRW<[A57Write_4cyc_4S, WriteAdr], (instregex "ST1Fourv(8b|4h|2s|1d)_POST$")>; 300def : InstRW<[A57Write_8cyc_8S], (instregex "ST1Fourv(16b|8h|4s|2d)$")>; 301def : InstRW<[A57Write_8cyc_8S, WriteAdr], (instregex "ST1Fourv(16b|8h|4s|2d)_POST$")>; 302 303def : InstRW<[A57Write_3cyc_1S_1V], (instregex "ST2i(8|16|32)$")>; 304def : InstRW<[A57Write_3cyc_1S_1V, WriteAdr], (instregex "ST2i(8|16|32)_POST$")>; 305def : InstRW<[A57Write_2cyc_2S], (instregex "ST2i(64)$")>; 306def : InstRW<[A57Write_2cyc_2S, WriteAdr], (instregex "ST2i(64)_POST$")>; 307 308def : InstRW<[A57Write_3cyc_2S_1V], (instregex "ST2Twov(8b|4h|2s)$")>; 309def : InstRW<[A57Write_3cyc_2S_1V, WriteAdr], (instregex "ST2Twov(8b|4h|2s)_POST$")>; 310def : InstRW<[A57Write_4cyc_4S_2V], (instregex "ST2Twov(16b|8h|4s)$")>; 311def : InstRW<[A57Write_4cyc_4S_2V, WriteAdr], (instregex "ST2Twov(16b|8h|4s)_POST$")>; 312def : InstRW<[A57Write_4cyc_4S], (instregex "ST2Twov(2d)$")>; 313def : InstRW<[A57Write_4cyc_4S, WriteAdr], (instregex "ST2Twov(2d)_POST$")>; 314 315def : InstRW<[A57Write_3cyc_1S_1V], (instregex "ST3i(8|16)$")>; 316def : InstRW<[A57Write_3cyc_1S_1V, WriteAdr], (instregex "ST3i(8|16)_POST$")>; 317def : InstRW<[A57Write_3cyc_3S], (instregex "ST3i(32)$")>; 318def : InstRW<[A57Write_3cyc_3S, WriteAdr], (instregex "ST3i(32)_POST$")>; 319def : InstRW<[A57Write_3cyc_2S_1V], (instregex "ST3i(64)$")>; 320def : InstRW<[A57Write_3cyc_2S_1V, WriteAdr], (instregex "ST3i(64)_POST$")>; 321 322def : InstRW<[A57Write_3cyc_3S_2V], (instregex "ST3Threev(8b|4h|2s)$")>; 323def : InstRW<[A57Write_3cyc_3S_2V, WriteAdr], (instregex "ST3Threev(8b|4h|2s)_POST$")>; 324def : InstRW<[A57Write_6cyc_6S_4V], (instregex "ST3Threev(16b|8h|4s)$")>; 325def : InstRW<[A57Write_6cyc_6S_4V, WriteAdr], (instregex "ST3Threev(16b|8h|4s)_POST$")>; 326def : InstRW<[A57Write_6cyc_6S], (instregex "ST3Threev(2d)$")>; 327def : InstRW<[A57Write_6cyc_6S, WriteAdr], (instregex "ST3Threev(2d)_POST$")>; 328 329def : InstRW<[A57Write_3cyc_1S_1V], (instregex "ST4i(8|16)$")>; 330def : InstRW<[A57Write_3cyc_1S_1V, WriteAdr], (instregex "ST4i(8|16)_POST$")>; 331def : InstRW<[A57Write_4cyc_4S], (instregex "ST4i(32)$")>; 332def : InstRW<[A57Write_4cyc_4S, WriteAdr], (instregex "ST4i(32)_POST$")>; 333def : InstRW<[A57Write_3cyc_2S_1V], (instregex "ST4i(64)$")>; 334def : InstRW<[A57Write_3cyc_2S_1V, WriteAdr], (instregex "ST4i(64)_POST$")>; 335 336def : InstRW<[A57Write_4cyc_4S_2V], (instregex "ST4Fourv(8b|4h|2s)$")>; 337def : InstRW<[A57Write_4cyc_4S_2V, WriteAdr], (instregex "ST4Fourv(8b|4h|2s)_POST$")>; 338def : InstRW<[A57Write_8cyc_8S_4V], (instregex "ST4Fourv(16b|8h|4s)$")>; 339def : InstRW<[A57Write_8cyc_8S_4V, WriteAdr], (instregex "ST4Fourv(16b|8h|4s)_POST$")>; 340def : InstRW<[A57Write_8cyc_8S], (instregex "ST4Fourv(2d)$")>; 341def : InstRW<[A57Write_8cyc_8S, WriteAdr], (instregex "ST4Fourv(2d)_POST$")>; 342 343// Vector - Integer 344// ----------------------------------------------------------------------------- 345 346// Reference for forms in this group 347// D form - v8i8, v4i16, v2i32 348// Q form - v16i8, v8i16, v4i32 349// D form - v1i8, v1i16, v1i32, v1i64 350// Q form - v16i8, v8i16, v4i32, v2i64 351// D form - v8i8_v8i16, v4i16_v4i32, v2i32_v2i64 352// Q form - v16i8_v8i16, v8i16_v4i32, v4i32_v2i64 353 354// Cortex A57 Software Optimization Guide Sec 3.14 355// Advance for absolute diff accum, pairwise add and accumulate, shift accumulate 356def A57ReadIVA3 : SchedReadAdvance<3, [A57Write_4cyc_1X_NonMul_Forward, A57Write_5cyc_2X_NonMul_Forward]>; 357 358// ASIMD absolute diff accum, D-form 359def : InstRW<[A57Write_4cyc_1X_NonMul_Forward, A57ReadIVA3], (instregex "^[SU]ABA(v8i8|v4i16|v2i32)$")>; 360// ASIMD absolute diff accum, Q-form 361def : InstRW<[A57Write_5cyc_2X_NonMul_Forward, A57ReadIVA3], (instregex "^[SU]ABA(v16i8|v8i16|v4i32)$")>; 362// ASIMD absolute diff accum long 363def : InstRW<[A57Write_4cyc_1X_NonMul_Forward, A57ReadIVA3], (instregex "^[SU]ABAL")>; 364 365// ASIMD arith, reduce, 4H/4S 366def : InstRW<[A57Write_4cyc_1X], (instregex "^[SU]?ADDL?V(v8i8|v4i16|v2i32)v$")>; 367// ASIMD arith, reduce, 8B/8H 368def : InstRW<[A57Write_7cyc_1V_1X], (instregex "^[SU]?ADDL?V(v8i16|v4i32)v$")>; 369// ASIMD arith, reduce, 16B 370def : InstRW<[A57Write_8cyc_2X], (instregex "^[SU]?ADDL?Vv16i8v$")>; 371 372// ASIMD max/min, reduce, 4H/4S 373def : InstRW<[A57Write_4cyc_1X], (instregex "^[SU](MIN|MAX)V(v4i16|v4i32)v$")>; 374// ASIMD max/min, reduce, 8B/8H 375def : InstRW<[A57Write_7cyc_1V_1X], (instregex "^[SU](MIN|MAX)V(v8i8|v8i16)v$")>; 376// ASIMD max/min, reduce, 16B 377def : InstRW<[A57Write_8cyc_2X], (instregex "^[SU](MIN|MAX)Vv16i8v$")>; 378 379// ASIMD multiply, D-form 380// MUL 381def : InstRW<[A57Write_5cyc_1W_Mul_Forward], (instregex "^MUL(v8i8|v4i16|v2i32|v1i8|v1i16|v1i32|v1i64)(_indexed)?$")>; 382// PMUL, SQDMULH, SQRDMULH 383def : InstRW<[A57Write_5cyc_1W], (instregex "^(PMUL|SQR?DMULH)(v8i8|v4i16|v2i32|v1i8|v1i16|v1i32|v1i64)(_indexed)?$")>; 384 385// ASIMD multiply, Q-form 386// MUL 387def : InstRW<[A57Write_6cyc_2W_Mul_Forward], (instregex "^MUL(v16i8|v8i16|v4i32)(_indexed)?$")>; 388// PMUL, SQDMULH, SQRDMULH 389def : InstRW<[A57Write_6cyc_2W], (instregex "^(PMUL|SQR?DMULH)(v16i8|v8i16|v4i32)(_indexed)?$")>; 390 391// Cortex A57 Software Optimization Guide Sec 3.14 392def A57ReadIVMA4 : SchedReadAdvance<4 , [A57Write_5cyc_1W_Mul_Forward, A57Write_6cyc_2W_Mul_Forward]>; 393def A57ReadIVMA3 : SchedReadAdvance<3 , [A57Write_5cyc_1W_Mul_Forward, A57Write_6cyc_2W_Mul_Forward]>; 394 395// ASIMD multiply accumulate, D-form 396def : InstRW<[A57Write_5cyc_1W_Mul_Forward, A57ReadIVMA4], (instregex "^ML[AS](v8i8|v4i16|v2i32)(_indexed)?$")>; 397// ASIMD multiply accumulate, Q-form 398def : InstRW<[A57Write_6cyc_2W_Mul_Forward, A57ReadIVMA4], (instregex "^ML[AS](v16i8|v8i16|v4i32)(_indexed)?$")>; 399 400// ASIMD multiply accumulate long 401// ASIMD multiply accumulate saturating long 402def : InstRW<[A57Write_5cyc_1W_Mul_Forward, A57ReadIVMA4], (instregex "^(S|U)ML[AS]L")>; 403def : InstRW<[A57Write_5cyc_1W_Mul_Forward, A57ReadIVMA3], (instregex "^SQDML[AS]L")>; 404 405// ASIMD multiply long 406def : InstRW<[A57Write_5cyc_1W_Mul_Forward], (instregex "^(S|U)MULL")>; 407def : InstRW<[A57Write_5cyc_1W], (instregex "^SQDMULL")>; 408def : InstRW<[A57Write_5cyc_1W], (instregex "^PMULL(v8i8|v16i8)")>; 409def : InstRW<[A57Write_3cyc_1W], (instregex "^PMULL(v1i64|v2i64)")>; 410 411// ASIMD pairwise add and accumulate 412// ASIMD shift accumulate 413def : InstRW<[A57Write_4cyc_1X_NonMul_Forward, A57ReadIVA3], (instregex "^[SU]ADALP")>; 414def : InstRW<[A57Write_4cyc_1X_NonMul_Forward, A57ReadIVA3], (instregex "^(S|SR|U|UR)SRA")>; 415 416// ASIMD shift by immed, complex 417def : InstRW<[A57Write_4cyc_1X], (instregex "^[SU]?(Q|R){1,2}SHR")>; 418def : InstRW<[A57Write_4cyc_1X], (instregex "^SQSHLU")>; 419 420 421// ASIMD shift by register, basic, Q-form 422def : InstRW<[A57Write_4cyc_2X], (instregex "^[SU]SHL(v16i8|v8i16|v4i32|v2i64)")>; 423 424// ASIMD shift by register, complex, D-form 425def : InstRW<[A57Write_4cyc_1X], (instregex "^[SU][QR]{1,2}SHL(v1i8|v1i16|v1i32|v1i64|v8i8|v4i16|v2i32|b|d|h|s)")>; 426 427// ASIMD shift by register, complex, Q-form 428def : InstRW<[A57Write_5cyc_2X], (instregex "^[SU][QR]{1,2}SHL(v16i8|v8i16|v4i32|v2i64)")>; 429 430 431// Vector - Floating Point 432// ----------------------------------------------------------------------------- 433 434// Reference for forms in this group 435// D form - v2f32 436// Q form - v4f32, v2f64 437// D form - 32, 64 438// D form - v1i32, v1i64 439// D form - v2i32 440// Q form - v4i32, v2i64 441 442// ASIMD FP arith, normal, D-form 443def : InstRW<[A57Write_5cyc_1V], (instregex "^(FABD|FADD|FSUB)(v2f32|32|64|v2i32p)")>; 444// ASIMD FP arith, normal, Q-form 445def : InstRW<[A57Write_5cyc_2V], (instregex "^(FABD|FADD|FSUB)(v4f32|v2f64|v2i64p)")>; 446 447// ASIMD FP arith, pairwise, D-form 448def : InstRW<[A57Write_5cyc_1V], (instregex "^FADDP(v2f32|32|64|v2i32)")>; 449// ASIMD FP arith, pairwise, Q-form 450def : InstRW<[A57Write_9cyc_3V], (instregex "^FADDP(v4f32|v2f64|v2i64)")>; 451 452// ASIMD FP compare, D-form 453def : InstRW<[A57Write_5cyc_1V], (instregex "^(FACGE|FACGT|FCMEQ|FCMGE|FCMGT|FCMLE|FCMLT)(v2f32|32|64|v1i32|v2i32|v1i64)")>; 454// ASIMD FP compare, Q-form 455def : InstRW<[A57Write_5cyc_2V], (instregex "^(FACGE|FACGT|FCMEQ|FCMGE|FCMGT|FCMLE|FCMLT)(v4f32|v2f64|v4i32|v2i64)")>; 456 457// ASIMD FP convert, long and narrow 458def : InstRW<[A57Write_8cyc_3V], (instregex "^FCVT(L|N|XN)v")>; 459// ASIMD FP convert, other, D-form 460def : InstRW<[A57Write_5cyc_1V], (instregex "^[FVSU]CVT([AMNPZ][SU])?(_Int)?(v2f32|v1i32|v2i32|v1i64)")>; 461// ASIMD FP convert, other, Q-form 462def : InstRW<[A57Write_5cyc_2V], (instregex "^[FVSU]CVT([AMNPZ][SU])?(_Int)?(v4f32|v2f64|v4i32|v2i64)")>; 463 464// ASIMD FP divide, D-form, F32 465def : InstRW<[A57Write_17cyc_1W], (instregex "FDIVv2f32")>; 466// ASIMD FP divide, Q-form, F32 467def : InstRW<[A57Write_34cyc_2W], (instregex "FDIVv4f32")>; 468// ASIMD FP divide, Q-form, F64 469def : InstRW<[A57Write_64cyc_2W], (instregex "FDIVv2f64")>; 470 471// Note: These were simply duplicated from ASIMD FDIV because of missing documentation 472// ASIMD FP square root, D-form, F32 473def : InstRW<[A57Write_17cyc_1W], (instregex "FSQRTv2f32")>; 474// ASIMD FP square root, Q-form, F32 475def : InstRW<[A57Write_34cyc_2W], (instregex "FSQRTv4f32")>; 476// ASIMD FP square root, Q-form, F64 477def : InstRW<[A57Write_64cyc_2W], (instregex "FSQRTv2f64")>; 478 479// ASIMD FP max/min, normal, D-form 480def : InstRW<[A57Write_5cyc_1V], (instregex "^(FMAX|FMIN)(NM)?(v2f32)")>; 481// ASIMD FP max/min, normal, Q-form 482def : InstRW<[A57Write_5cyc_2V], (instregex "^(FMAX|FMIN)(NM)?(v4f32|v2f64)")>; 483// ASIMD FP max/min, pairwise, D-form 484def : InstRW<[A57Write_5cyc_1V], (instregex "^(FMAX|FMIN)(NM)?P(v2f32|v2i32)")>; 485// ASIMD FP max/min, pairwise, Q-form 486def : InstRW<[A57Write_9cyc_3V], (instregex "^(FMAX|FMIN)(NM)?P(v4f32|v2f64|v2i64)")>; 487// ASIMD FP max/min, reduce 488def : InstRW<[A57Write_10cyc_3V], (instregex "^(FMAX|FMIN)(NM)?Vv")>; 489 490// ASIMD FP multiply, D-form, FZ 491def : InstRW<[A57Write_5cyc_1V_FP_Forward], (instregex "^FMULX?(v2f32|v1i32|v2i32|v1i64|32|64)")>; 492// ASIMD FP multiply, Q-form, FZ 493def : InstRW<[A57Write_5cyc_2V_FP_Forward], (instregex "^FMULX?(v4f32|v2f64|v4i32|v2i64)")>; 494 495// ASIMD FP multiply accumulate, D-form, FZ 496// ASIMD FP multiply accumulate, Q-form, FZ 497def A57WriteFPVMAD : SchedWriteRes<[A57UnitV]> { let Latency = 9; } 498def A57WriteFPVMAQ : SchedWriteRes<[A57UnitV, A57UnitV]> { let Latency = 10; } 499 500// Cortex A57 Software Optimization Guide Sec 3.15 501// Advances from FP mul and mul-accum to mul-accum 502def A57ReadFPVMA5 : SchedReadAdvance<5, [A57WriteFPVMAD, A57WriteFPVMAQ, A57Write_5cyc_1V_FP_Forward, A57Write_5cyc_2V_FP_Forward]>; 503def A57ReadFPVMA6 : SchedReadAdvance<6, [A57WriteFPVMAD, A57WriteFPVMAQ, A57Write_5cyc_1V_FP_Forward, A57Write_5cyc_2V_FP_Forward]>; 504 505def : InstRW<[A57WriteFPVMAD, A57ReadFPVMA5], (instregex "^FML[AS](v2f32|v1i32|v2i32|v1i64)")>; 506def : InstRW<[A57WriteFPVMAQ, A57ReadFPVMA6], (instregex "^FML[AS](v4f32|v2f64|v4i32|v2i64)")>; 507 508// ASIMD FP round, D-form 509def : InstRW<[A57Write_5cyc_1V], (instregex "^FRINT[AIMNPXZ](v2f32)")>; 510// ASIMD FP round, Q-form 511def : InstRW<[A57Write_5cyc_2V], (instregex "^FRINT[AIMNPXZ](v4f32|v2f64)")>; 512 513 514// Vector - Miscellaneous 515// ----------------------------------------------------------------------------- 516 517// Reference for forms in this group 518// D form - v8i8, v4i16, v2i32 519// Q form - v16i8, v8i16, v4i32 520// D form - v1i8, v1i16, v1i32, v1i64 521// Q form - v16i8, v8i16, v4i32, v2i64 522 523// ASIMD bitwise insert, Q-form 524def : InstRW<[A57Write_3cyc_2V], (instregex "^(BIF|BIT|BSL|BSP)v16i8")>; 525 526// ASIMD duplicate, gen reg, D-form and Q-form 527def : InstRW<[A57Write_8cyc_1L_1V], (instregex "^CPY")>; 528def : InstRW<[A57Write_8cyc_1L_1V], (instregex "^DUPv.+gpr")>; 529 530// ASIMD move, saturating 531def : InstRW<[A57Write_4cyc_1X], (instregex "^[SU]QXTU?N")>; 532 533// ASIMD reciprocal estimate, D-form 534def : InstRW<[A57Write_5cyc_1V], (instregex "^[FU](RECP|RSQRT)(E|X)(v2f32|v1i32|v2i32|v1i64)")>; 535// ASIMD reciprocal estimate, Q-form 536def : InstRW<[A57Write_5cyc_2V], (instregex "^[FU](RECP|RSQRT)(E|X)(v2f64|v4f32|v4i32)")>; 537 538// ASIMD reciprocal step, D-form, FZ 539def : InstRW<[A57Write_9cyc_1V], (instregex "^F(RECP|RSQRT)S(v2f32|v1i32|v2i32|v1i64|32|64)")>; 540// ASIMD reciprocal step, Q-form, FZ 541def : InstRW<[A57Write_9cyc_2V], (instregex "^F(RECP|RSQRT)S(v2f64|v4f32|v4i32)")>; 542 543// ASIMD table lookup, D-form 544def : InstRW<[A57Write_3cyc_1V], (instregex "^TB[LX]v8i8One")>; 545def : InstRW<[A57Write_6cyc_2V], (instregex "^TB[LX]v8i8Two")>; 546def : InstRW<[A57Write_9cyc_3V], (instregex "^TB[LX]v8i8Three")>; 547def : InstRW<[A57Write_12cyc_4V], (instregex "^TB[LX]v8i8Four")>; 548// ASIMD table lookup, Q-form 549def : InstRW<[A57Write_6cyc_3V], (instregex "^TB[LX]v16i8One")>; 550def : InstRW<[A57Write_9cyc_5V], (instregex "^TB[LX]v16i8Two")>; 551def : InstRW<[A57Write_12cyc_7V], (instregex "^TB[LX]v16i8Three")>; 552def : InstRW<[A57Write_15cyc_9V], (instregex "^TB[LX]v16i8Four")>; 553 554// ASIMD transfer, element to gen reg 555def : InstRW<[A57Write_6cyc_1I_1L], (instregex "^[SU]MOVv")>; 556 557// ASIMD transfer, gen reg to element 558def : InstRW<[A57Write_8cyc_1L_1V], (instregex "^INSv")>; 559 560// ASIMD unzip/zip, Q-form 561def : InstRW<[A57Write_6cyc_3V], (instregex "^(UZP|ZIP)(1|2)(v16i8|v8i16|v4i32|v2i64)")>; 562 563 564// Remainder 565// ----------------------------------------------------------------------------- 566 567def : InstRW<[A57Write_5cyc_1V], (instregex "^F(ADD|SUB)[DS]rr")>; 568 569// Cortex A57 Software Optimization Guide Sec 3.10 570def A57WriteFPMA : SchedWriteRes<[A57UnitV]> { let Latency = 9; } 571def A57ReadFPMA5 : SchedReadAdvance<5, [A57WriteFPMA, WriteFMul]>; 572def A57ReadFPM : SchedReadAdvance<0>; 573def : InstRW<[A57WriteFPMA, A57ReadFPM, A57ReadFPM, A57ReadFPMA5], (instregex "^FN?M(ADD|SUB)[DS]rrr")>; 574 575def : InstRW<[A57Write_10cyc_1L_1V], (instregex "^[FSU]CVT[AMNPZ][SU](_Int)?[SU]?[XW]?[DS]?[rds]i?")>; 576def : InstRW<[A57Write_10cyc_1L_1V], (instregex "^[SU]CVTF")>; 577 578def : InstRW<[A57Write_32cyc_1W], (instrs FDIVDrr)>; 579def : InstRW<[A57Write_17cyc_1W], (instrs FDIVSrr)>; 580 581def : InstRW<[A57Write_5cyc_1V], (instregex "^F(MAX|MIN).+rr")>; 582 583def : InstRW<[A57Write_5cyc_1V], (instregex "^FRINT.+r")>; 584 585def : InstRW<[A57Write_32cyc_1W], (instrs FSQRTDr)>; 586def : InstRW<[A57Write_17cyc_1W], (instrs FSQRTSr)>; 587 588def : InstRW<[A57Write_5cyc_1L, WriteLDHi], (instrs LDNPDi)>; 589def : InstRW<[A57Write_6cyc_2L, WriteLDHi], (instrs LDNPQi)>; 590def : InstRW<[A57Write_5cyc_1L, WriteLDHi], (instrs LDNPSi)>; 591def : InstRW<[A57Write_5cyc_1L, WriteLDHi], (instrs LDPDi)>; 592def : InstRW<[A57Write_5cyc_1L, WriteLDHi, WriteAdr], (instrs LDPDpost)>; 593def : InstRW<[A57Write_5cyc_1L, WriteLDHi, WriteAdr], (instrs LDPDpre)>; 594def : InstRW<[A57Write_6cyc_2L, WriteLDHi], (instrs LDPQi)>; 595def : InstRW<[A57Write_6cyc_2L, WriteLDHi, WriteAdr], (instrs LDPQpost)>; 596def : InstRW<[A57Write_6cyc_2L, WriteLDHi, WriteAdr], (instrs LDPQpre)>; 597def : InstRW<[A57Write_5cyc_1I_2L, WriteLDHi], (instrs LDPSWi)>; 598def : InstRW<[A57Write_5cyc_1I_2L, WriteLDHi, WriteAdr], (instrs LDPSWpost)>; 599def : InstRW<[A57Write_5cyc_1I_2L, WriteLDHi, WriteAdr], (instrs LDPSWpre)>; 600def : InstRW<[A57Write_5cyc_1L, WriteLDHi], (instrs LDPSi)>; 601def : InstRW<[A57Write_5cyc_1L, WriteLDHi, WriteAdr], (instrs LDPSpost)>; 602def : InstRW<[A57Write_5cyc_1L, WriteLDHi, WriteAdr], (instrs LDPSpre)>; 603def : InstRW<[A57Write_5cyc_1L, WriteI], (instrs LDRBpost)>; 604def : InstRW<[A57Write_5cyc_1L, WriteAdr], (instrs LDRBpre)>; 605def : InstRW<[A57Write_5cyc_1L, ReadAdrBase], (instrs LDRBroW)>; 606def : InstRW<[A57Write_5cyc_1L, ReadAdrBase], (instrs LDRBroX)>; 607def : InstRW<[A57Write_5cyc_1L], (instrs LDRBui)>; 608def : InstRW<[A57Write_5cyc_1L], (instrs LDRDl)>; 609def : InstRW<[A57Write_5cyc_1L, WriteI], (instrs LDRDpost)>; 610def : InstRW<[A57Write_5cyc_1L, WriteAdr], (instrs LDRDpre)>; 611def : InstRW<[A57Write_5cyc_1L, ReadAdrBase], (instrs LDRDroW)>; 612def : InstRW<[A57Write_5cyc_1L, ReadAdrBase], (instrs LDRDroX)>; 613def : InstRW<[A57Write_5cyc_1L], (instrs LDRDui)>; 614def : InstRW<[A57Write_5cyc_1I_1L, ReadAdrBase], (instrs LDRHHroW)>; 615def : InstRW<[A57Write_5cyc_1I_1L, ReadAdrBase], (instrs LDRHHroX)>; 616def : InstRW<[A57Write_5cyc_1L, WriteI], (instrs LDRHpost)>; 617def : InstRW<[A57Write_5cyc_1L, WriteAdr], (instrs LDRHpre)>; 618def : InstRW<[A57Write_6cyc_1I_1L, ReadAdrBase], (instrs LDRHroW)>; 619def : InstRW<[A57Write_6cyc_1I_1L, ReadAdrBase], (instrs LDRHroX)>; 620def : InstRW<[A57Write_5cyc_1L], (instrs LDRHui)>; 621def : InstRW<[A57Write_5cyc_1L], (instrs LDRQl)>; 622def : InstRW<[A57Write_5cyc_1L, WriteI], (instrs LDRQpost)>; 623def : InstRW<[A57Write_5cyc_1L, WriteAdr], (instrs LDRQpre)>; 624def : InstRW<[A57Write_6cyc_1I_1L, ReadAdrBase], (instrs LDRQroW)>; 625def : InstRW<[A57Write_6cyc_1I_1L, ReadAdrBase], (instrs LDRQroX)>; 626def : InstRW<[A57Write_5cyc_1L], (instrs LDRQui)>; 627def : InstRW<[A57Write_5cyc_1I_1L, ReadAdrBase], (instrs LDRSHWroW)>; 628def : InstRW<[A57Write_5cyc_1I_1L, ReadAdrBase], (instrs LDRSHWroX)>; 629def : InstRW<[A57Write_5cyc_1I_1L, ReadAdrBase], (instrs LDRSHXroW)>; 630def : InstRW<[A57Write_5cyc_1I_1L, ReadAdrBase], (instrs LDRSHXroX)>; 631def : InstRW<[A57Write_5cyc_1L], (instrs LDRSl)>; 632def : InstRW<[A57Write_5cyc_1L, WriteI], (instrs LDRSpost)>; 633def : InstRW<[A57Write_5cyc_1L, WriteAdr], (instrs LDRSpre)>; 634def : InstRW<[A57Write_5cyc_1L, ReadAdrBase], (instrs LDRSroW)>; 635def : InstRW<[A57Write_5cyc_1L, ReadAdrBase], (instrs LDRSroX)>; 636def : InstRW<[A57Write_5cyc_1L], (instrs LDRSui)>; 637def : InstRW<[A57Write_5cyc_1L], (instrs LDURBi)>; 638def : InstRW<[A57Write_5cyc_1L], (instrs LDURDi)>; 639def : InstRW<[A57Write_5cyc_1L], (instrs LDURHi)>; 640def : InstRW<[A57Write_5cyc_1L], (instrs LDURQi)>; 641def : InstRW<[A57Write_5cyc_1L], (instrs LDURSi)>; 642 643def : InstRW<[A57Write_2cyc_2S], (instrs STNPDi)>; 644def : InstRW<[A57Write_4cyc_1I_4S], (instrs STNPQi)>; 645def : InstRW<[A57Write_2cyc_2S], (instrs STNPXi)>; 646def : InstRW<[A57Write_2cyc_2S], (instrs STPDi)>; 647def : InstRW<[WriteAdr, A57Write_2cyc_1I_2S], (instrs STPDpost)>; 648def : InstRW<[WriteAdr, A57Write_2cyc_1I_2S], (instrs STPDpre)>; 649def : InstRW<[A57Write_4cyc_1I_4S], (instrs STPQi)>; 650def : InstRW<[WriteAdr, A57Write_4cyc_1I_4S], (instrs STPQpost)>; 651def : InstRW<[WriteAdr, A57Write_4cyc_2I_4S], (instrs STPQpre)>; 652def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S], (instrs STPSpost)>; 653def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S], (instrs STPSpre)>; 654def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S], (instrs STPWpost)>; 655def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S], (instrs STPWpre)>; 656def : InstRW<[A57Write_2cyc_2S], (instrs STPXi)>; 657def : InstRW<[WriteAdr, A57Write_2cyc_1I_2S], (instrs STPXpost)>; 658def : InstRW<[WriteAdr, A57Write_2cyc_1I_2S], (instrs STPXpre)>; 659def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRBBpost)>; 660def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRBBpre)>; 661def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRBpost)>; 662def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S], (instrs STRBpre)>; 663def : InstRW<[A57Write_3cyc_1I_1S, ReadAdrBase], (instrs STRBroW)>; 664def : InstRW<[A57Write_3cyc_1I_1S, ReadAdrBase], (instrs STRBroX)>; 665def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRDpost)>; 666def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S], (instrs STRDpre)>; 667def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRHHpost)>; 668def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRHHpre)>; 669def : InstRW<[A57Write_3cyc_1I_1S, ReadAdrBase], (instrs STRHHroW)>; 670def : InstRW<[A57Write_3cyc_1I_1S, ReadAdrBase], (instrs STRHHroX)>; 671def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRHpost)>; 672def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S], (instrs STRHpre)>; 673def : InstRW<[A57Write_3cyc_1I_1S, ReadAdrBase], (instrs STRHroW)>; 674def : InstRW<[A57Write_3cyc_1I_1S, ReadAdrBase], (instrs STRHroX)>; 675def : InstRW<[WriteAdr, A57Write_2cyc_1I_2S, ReadAdrBase], (instrs STRQpost)>; 676def : InstRW<[WriteAdr, A57Write_2cyc_1I_2S], (instrs STRQpre)>; 677def : InstRW<[A57Write_2cyc_1I_2S, ReadAdrBase], (instrs STRQroW)>; 678def : InstRW<[A57Write_2cyc_1I_2S, ReadAdrBase], (instrs STRQroX)>; 679def : InstRW<[A57Write_2cyc_1I_2S], (instrs STRQui)>; 680def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRSpost)>; 681def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S], (instrs STRSpre)>; 682def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRWpost)>; 683def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRWpre)>; 684def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRXpost)>; 685def : InstRW<[WriteAdr, A57Write_1cyc_1I_1S, ReadAdrBase], (instrs STRXpre)>; 686def : InstRW<[A57Write_2cyc_2S], (instrs STURQi)>; 687 688} // SchedModel = CortexA57Model 689