AArch64SchedTSV110.td 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  1. //==- AArch64SchedTSV110.td - Huawei TSV110 Scheduling Definitions -*- 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 Huawei TSV110 to support
  10. // instruction scheduling and other instruction cost heuristics.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. // ===---------------------------------------------------------------------===//
  14. // The following definitions describe the simpler per-operand machine model.
  15. // This works with MachineScheduler. See llvm/MC/MCSchedule.h for details.
  16. // Huawei TSV110 scheduling machine model.
  17. def TSV110Model : SchedMachineModel {
  18. let IssueWidth = 4; // 4 micro-ops dispatched per cycle.
  19. let MicroOpBufferSize = 128; // 128 micro-op re-order buffer
  20. let LoopMicroOpBufferSize = 16;
  21. let LoadLatency = 4; // Optimistic load latency.
  22. let MispredictPenalty = 14; // Fetch + Decode/Rename/Dispatch + Branch
  23. let CompleteModel = 1;
  24. list<Predicate> UnsupportedFeatures = !listconcat(SVEUnsupported.F,
  25. PAUnsupported.F);
  26. }
  27. // Define each kind of processor resource and number available on the TSV110,
  28. // which has 8 pipelines, each with its own queue where micro-ops wait for
  29. // their operands and issue out-of-order to one of eight execution pipelines.
  30. let SchedModel = TSV110Model in {
  31. def TSV110UnitALU : ProcResource<1>; // Int ALU
  32. def TSV110UnitAB : ProcResource<2>; // Int ALU/BRU
  33. def TSV110UnitMDU : ProcResource<1>; // Multi-Cycle
  34. def TSV110UnitFSU1 : ProcResource<1>; // FP/ASIMD
  35. def TSV110UnitFSU2 : ProcResource<1>; // FP/ASIMD
  36. def TSV110UnitLdSt : ProcResource<2>; // Load/Store
  37. def TSV110UnitF : ProcResGroup<[TSV110UnitFSU1, TSV110UnitFSU2]>;
  38. def TSV110UnitALUAB : ProcResGroup<[TSV110UnitALU, TSV110UnitAB]>;
  39. def TSV110UnitFLdSt : ProcResGroup<[TSV110UnitFSU1, TSV110UnitFSU2, TSV110UnitLdSt]>;
  40. }
  41. let SchedModel = TSV110Model in {
  42. //===----------------------------------------------------------------------===//
  43. // Map the target-defined scheduler read/write resources and latency for
  44. // TSV110
  45. // Integer ALU
  46. def : WriteRes<WriteImm, [TSV110UnitALUAB]> { let Latency = 1; }
  47. def : WriteRes<WriteI, [TSV110UnitALUAB]> { let Latency = 1; }
  48. def : WriteRes<WriteISReg, [TSV110UnitMDU]> { let Latency = 2; }
  49. def : WriteRes<WriteIEReg, [TSV110UnitMDU]> { let Latency = 2; }
  50. def : WriteRes<WriteExtr, [TSV110UnitALUAB]> { let Latency = 1; }
  51. def : WriteRes<WriteIS, [TSV110UnitALUAB]> { let Latency = 1; }
  52. // Integer Mul/MAC/Div
  53. def : WriteRes<WriteID32, [TSV110UnitMDU]> { let Latency = 12;
  54. let ResourceCycles = [12]; }
  55. def : WriteRes<WriteID64, [TSV110UnitMDU]> { let Latency = 20;
  56. let ResourceCycles = [20]; }
  57. def : WriteRes<WriteIM32, [TSV110UnitMDU]> { let Latency = 3; }
  58. def : WriteRes<WriteIM64, [TSV110UnitMDU]> { let Latency = 4; }
  59. // Load
  60. def : WriteRes<WriteLD, [TSV110UnitLdSt]> { let Latency = 4; }
  61. def : WriteRes<WriteLDIdx, [TSV110UnitLdSt]> { let Latency = 4; }
  62. def : WriteRes<WriteLDHi, []> { let Latency = 4; }
  63. // Pre/Post Indexing
  64. def : WriteRes<WriteAdr, [TSV110UnitALUAB]> { let Latency = 1; }
  65. // Store
  66. def : WriteRes<WriteST, [TSV110UnitLdSt]> { let Latency = 1; }
  67. def : WriteRes<WriteSTP, [TSV110UnitLdSt]> { let Latency = 1; }
  68. def : WriteRes<WriteSTIdx, [TSV110UnitLdSt]> { let Latency = 1; }
  69. // FP
  70. def : WriteRes<WriteF, [TSV110UnitF]> { let Latency = 2; }
  71. def : WriteRes<WriteFCmp, [TSV110UnitF]> { let Latency = 3; }
  72. def : WriteRes<WriteFCvt, [TSV110UnitF]> { let Latency = 3; }
  73. def : WriteRes<WriteFCopy, [TSV110UnitF]> { let Latency = 2; }
  74. def : WriteRes<WriteFImm, [TSV110UnitF]> { let Latency = 2; }
  75. def : WriteRes<WriteFMul, [TSV110UnitF]> { let Latency = 5; }
  76. // FP Div, Sqrt
  77. def : WriteRes<WriteFDiv, [TSV110UnitFSU1]> { let Latency = 18; }
  78. def : WriteRes<WriteVd, [TSV110UnitF]> { let Latency = 4; }
  79. def : WriteRes<WriteVq, [TSV110UnitF]> { let Latency = 4; }
  80. def : WriteRes<WriteVLD, [TSV110UnitFLdSt]> { let Latency = 5; }
  81. def : WriteRes<WriteVST, [TSV110UnitF]> { let Latency = 1; }
  82. // Branch
  83. def : WriteRes<WriteBr, [TSV110UnitAB]> { let Latency = 1; }
  84. def : WriteRes<WriteBrReg, [TSV110UnitAB]> { let Latency = 1; }
  85. def : WriteRes<WriteSys, []> { let Latency = 1; }
  86. def : WriteRes<WriteBarrier, []> { let Latency = 1; }
  87. def : WriteRes<WriteHint, []> { let Latency = 1; }
  88. def : WriteRes<WriteAtomic, []> { let Unsupported = 1; }
  89. // Forwarding logic is modeled only for multiply and accumulate.
  90. def : ReadAdvance<ReadI, 0>;
  91. def : ReadAdvance<ReadISReg, 0>;
  92. def : ReadAdvance<ReadIEReg, 0>;
  93. def : ReadAdvance<ReadIM, 0>;
  94. def : ReadAdvance<ReadIMA, 2, [WriteIM32, WriteIM64]>;
  95. def : ReadAdvance<ReadID, 0>;
  96. def : ReadAdvance<ReadExtrHi, 0>;
  97. def : ReadAdvance<ReadAdrBase, 0>;
  98. def : ReadAdvance<ReadVLD, 0>;
  99. def : ReadAdvance<ReadST, 0>;
  100. def : InstRW<[WriteI], (instrs COPY)>;
  101. // Detailed Refinements
  102. //===----------------------------------------------------------------------===//
  103. // Contains all of the TSV110 specific SchedWriteRes types. The approach
  104. // below is to define a generic SchedWriteRes for every combination of
  105. // latency and microOps. The naming conventions is to use a prefix, one field
  106. // for latency, and one or more microOp count/type designators.
  107. // Prefix: TSV110Wr
  108. // Latency: #cyc
  109. // MicroOp Count/Types: #(ALU|AB|MDU|FSU1|FSU2|LdSt|ALUAB|F|FLdSt)
  110. //
  111. // e.g. TSV110Wr_6cyc_1ALU_6MDU_4LdSt means the total latency is 6 and there are
  112. // 1 micro-ops to be issued down one ALU pipe, six MDU pipes and four LdSt pipes.
  113. //
  114. //===----------------------------------------------------------------------===//
  115. // Define Generic 1 micro-op types
  116. def TSV110Wr_1cyc_1AB : SchedWriteRes<[TSV110UnitAB]> { let Latency = 1; }
  117. def TSV110Wr_1cyc_1ALU : SchedWriteRes<[TSV110UnitALU]> { let Latency = 1; }
  118. def TSV110Wr_1cyc_1ALUAB : SchedWriteRes<[TSV110UnitALUAB]> { let Latency = 1; }
  119. def TSV110Wr_1cyc_1LdSt : SchedWriteRes<[TSV110UnitLdSt]> { let Latency = 1; }
  120. def TSV110Wr_2cyc_1AB : SchedWriteRes<[TSV110UnitAB]> { let Latency = 2; }
  121. def TSV110Wr_2cyc_1ALU : SchedWriteRes<[TSV110UnitALU]> { let Latency = 2; }
  122. def TSV110Wr_2cyc_1LdSt : SchedWriteRes<[TSV110UnitLdSt]> { let Latency = 2; }
  123. def TSV110Wr_2cyc_1MDU : SchedWriteRes<[TSV110UnitMDU]> { let Latency = 2; }
  124. def TSV110Wr_2cyc_1FSU1 : SchedWriteRes<[TSV110UnitFSU1]> { let Latency = 2; }
  125. def TSV110Wr_2cyc_1F : SchedWriteRes<[TSV110UnitF]> { let Latency = 2; }
  126. def TSV110Wr_3cyc_1F : SchedWriteRes<[TSV110UnitF]> { let Latency = 3; }
  127. def TSV110Wr_3cyc_1FSU1 : SchedWriteRes<[TSV110UnitFSU1]> { let Latency = 3; }
  128. def TSV110Wr_3cyc_1MDU : SchedWriteRes<[TSV110UnitMDU]> { let Latency = 3; }
  129. def TSV110Wr_4cyc_1FSU1 : SchedWriteRes<[TSV110UnitFSU1]> { let Latency = 4; }
  130. def TSV110Wr_4cyc_1F : SchedWriteRes<[TSV110UnitF]> { let Latency = 4; }
  131. def TSV110Wr_4cyc_1LdSt : SchedWriteRes<[TSV110UnitLdSt]> { let Latency = 4; }
  132. def TSV110Wr_4cyc_1MDU : SchedWriteRes<[TSV110UnitMDU]> { let Latency = 4; }
  133. def TSV110Wr_5cyc_1F : SchedWriteRes<[TSV110UnitF]> { let Latency = 5; }
  134. def TSV110Wr_5cyc_1FSU1 : SchedWriteRes<[TSV110UnitFSU1]> { let Latency = 5; }
  135. def TSV110Wr_5cyc_1FSU2 : SchedWriteRes<[TSV110UnitFSU2]> { let Latency = 5; }
  136. def TSV110Wr_5cyc_1LdSt : SchedWriteRes<[TSV110UnitLdSt]> { let Latency = 5; }
  137. def TSV110Wr_6cyc_1F : SchedWriteRes<[TSV110UnitF]> { let Latency = 6; }
  138. def TSV110Wr_7cyc_1F : SchedWriteRes<[TSV110UnitF]> { let Latency = 7; }
  139. def TSV110Wr_8cyc_1F : SchedWriteRes<[TSV110UnitF]> { let Latency = 8; }
  140. def TSV110Wr_11cyc_1FSU1 : SchedWriteRes<[TSV110UnitFSU1]> { let Latency = 11; }
  141. def TSV110Wr_12cyc_1MDU : SchedWriteRes<[TSV110UnitMDU]> { let Latency = 12; }
  142. def TSV110Wr_17cyc_1FSU2 : SchedWriteRes<[TSV110UnitFSU2]> { let Latency = 17; }
  143. def TSV110Wr_18cyc_1FSU1 : SchedWriteRes<[TSV110UnitFSU1]> { let Latency = 18; }
  144. def TSV110Wr_20cyc_1MDU : SchedWriteRes<[TSV110UnitMDU]> { let Latency = 20; }
  145. def TSV110Wr_24cyc_1FSU1 : SchedWriteRes<[TSV110UnitFSU1]> { let Latency = 24; }
  146. def TSV110Wr_31cyc_1FSU2 : SchedWriteRes<[TSV110UnitFSU2]> { let Latency = 31; }
  147. def TSV110Wr_36cyc_1FSU2 : SchedWriteRes<[TSV110UnitFSU2]> { let Latency = 36; }
  148. def TSV110Wr_38cyc_1FSU1 : SchedWriteRes<[TSV110UnitFSU1]> { let Latency = 38; }
  149. def TSV110Wr_64cyc_1FSU2 : SchedWriteRes<[TSV110UnitFSU2]> { let Latency = 64; }
  150. //===----------------------------------------------------------------------===//
  151. // Define Generic 2 micro-op types
  152. def TSV110Wr_1cyc_1LdSt_1ALUAB : SchedWriteRes<[TSV110UnitLdSt,
  153. TSV110UnitALUAB]> {
  154. let Latency = 1;
  155. let NumMicroOps = 2;
  156. }
  157. def TSV110Wr_2cyc_1LdSt_1ALUAB : SchedWriteRes<[TSV110UnitLdSt,
  158. TSV110UnitALUAB]> {
  159. let Latency = 2;
  160. let NumMicroOps = 2;
  161. }
  162. def TSV110Wr_2cyc_2LdSt : SchedWriteRes<[TSV110UnitLdSt,
  163. TSV110UnitLdSt]> {
  164. let Latency = 2;
  165. let NumMicroOps = 2;
  166. }
  167. def TSV110Wr_2cyc_2F : SchedWriteRes<[TSV110UnitF,
  168. TSV110UnitF]> {
  169. let Latency = 2;
  170. let NumMicroOps = 2;
  171. }
  172. def TSV110Wr_2cyc_1FSU1_1FSU2 : SchedWriteRes<[TSV110UnitFSU1,
  173. TSV110UnitFSU2]> {
  174. let Latency = 2;
  175. let NumMicroOps = 2;
  176. }
  177. def TSV110Wr_4cyc_2F : SchedWriteRes<[TSV110UnitF,
  178. TSV110UnitF]> {
  179. let Latency = 4;
  180. let NumMicroOps = 2;
  181. }
  182. def TSV110Wr_4cyc_1FSU1_1FSU2 : SchedWriteRes<[TSV110UnitFSU1,
  183. TSV110UnitFSU2]> {
  184. let Latency = 4;
  185. let NumMicroOps = 2;
  186. }
  187. def TSV110Wr_4cyc_1LdSt_1ALUAB : SchedWriteRes<[TSV110UnitLdSt,
  188. TSV110UnitALUAB]> {
  189. let Latency = 4;
  190. let NumMicroOps = 2;
  191. }
  192. def TSV110Wr_5cyc_1ALU_1F : SchedWriteRes<[TSV110UnitALU,
  193. TSV110UnitF]> {
  194. let Latency = 5;
  195. let NumMicroOps = 2;
  196. }
  197. def TSV110Wr_6cyc_2LdSt : SchedWriteRes<[TSV110UnitLdSt,
  198. TSV110UnitLdSt]> {
  199. let Latency = 6;
  200. let NumMicroOps = 2;
  201. }
  202. def TSV110Wr_6cyc_1LdSt_1ALUAB : SchedWriteRes<[TSV110UnitLdSt,
  203. TSV110UnitALUAB]> {
  204. let Latency = 6;
  205. let NumMicroOps = 2;
  206. }
  207. def TSV110Wr_7cyc_1F_1LdSt : SchedWriteRes<[TSV110UnitF,
  208. TSV110UnitLdSt]> {
  209. let Latency = 7;
  210. let NumMicroOps = 2;
  211. }
  212. def TSV110Wr_8cyc_2FSU1 : SchedWriteRes<[TSV110UnitFSU1,
  213. TSV110UnitFSU1]> {
  214. let Latency = 8;
  215. let NumMicroOps = 2;
  216. }
  217. def TSV110Wr_8cyc_1FSU1_1FSU2 : SchedWriteRes<[TSV110UnitFSU1,
  218. TSV110UnitFSU2]> {
  219. let Latency = 8;
  220. let NumMicroOps = 2;
  221. }
  222. //===----------------------------------------------------------------------===//
  223. // Define Generic 3 micro-op types
  224. def TSV110Wr_6cyc_3F : SchedWriteRes<[TSV110UnitF, TSV110UnitF,
  225. TSV110UnitF]> {
  226. let Latency = 6;
  227. let NumMicroOps = 3;
  228. }
  229. def TSV110Wr_6cyc_3LdSt : SchedWriteRes<[TSV110UnitLdSt, TSV110UnitLdSt,
  230. TSV110UnitLdSt]> {
  231. let Latency = 6;
  232. let NumMicroOps = 3;
  233. }
  234. def TSV110Wr_7cyc_2F_1LdSt : SchedWriteRes<[TSV110UnitF, TSV110UnitF,
  235. TSV110UnitLdSt]> {
  236. let Latency = 7;
  237. let NumMicroOps = 3;
  238. }
  239. //===----------------------------------------------------------------------===//
  240. // Define Generic 4 micro-op types
  241. def TSV110Wr_8cyc_4F : SchedWriteRes<[TSV110UnitF, TSV110UnitF,
  242. TSV110UnitF, TSV110UnitF]> {
  243. let Latency = 8;
  244. let NumMicroOps = 4;
  245. }
  246. def TSV110Wr_8cyc_3F_1LdSt : SchedWriteRes<[TSV110UnitF, TSV110UnitF,
  247. TSV110UnitF, TSV110UnitLdSt]> {
  248. let Latency = 8;
  249. let NumMicroOps = 4;
  250. }
  251. //===----------------------------------------------------------------------===//
  252. // Define Generic 5 micro-op types
  253. def TSV110Wr_8cyc_3F_2LdSt : SchedWriteRes<[TSV110UnitF, TSV110UnitF, TSV110UnitF,
  254. TSV110UnitLdSt, TSV110UnitLdSt]> {
  255. let Latency = 8;
  256. let NumMicroOps = 5;
  257. }
  258. //===----------------------------------------------------------------------===//
  259. // Define Generic 8 micro-op types
  260. def TSV110Wr_10cyc_4F_4LdSt : SchedWriteRes<[TSV110UnitF, TSV110UnitF,
  261. TSV110UnitF, TSV110UnitF,
  262. TSV110UnitLdSt, TSV110UnitLdSt,
  263. TSV110UnitLdSt, TSV110UnitLdSt]> {
  264. let Latency = 10;
  265. let NumMicroOps = 8;
  266. }
  267. // Branch Instructions
  268. // -----------------------------------------------------------------------------
  269. def : InstRW<[TSV110Wr_1cyc_1AB], (instrs B)>;
  270. def : InstRW<[TSV110Wr_1cyc_1AB], (instrs BL)>;
  271. def : InstRW<[TSV110Wr_1cyc_1AB], (instrs BLR)>;
  272. def : InstRW<[TSV110Wr_1cyc_1AB], (instregex "^(BR|RET|(CBZ|CBNZ|TBZ|TBNZ))$")>;
  273. // Cryptography Extensions
  274. // -----------------------------------------------------------------------------
  275. def : InstRW<[TSV110Wr_3cyc_1FSU1], (instregex "^AES[DE]")>;
  276. def : InstRW<[TSV110Wr_3cyc_1FSU1], (instregex "^AESI?MC")>;
  277. def : InstRW<[TSV110Wr_2cyc_1FSU1], (instregex "^SHA1SU1")>;
  278. def : InstRW<[TSV110Wr_2cyc_2F], (instregex "^SHA1(H|SU0)")>;
  279. def : InstRW<[TSV110Wr_5cyc_1FSU1], (instregex "^SHA1[CMP]")>;
  280. def : InstRW<[TSV110Wr_2cyc_1FSU1], (instregex "^SHA256SU0")>;
  281. def : InstRW<[TSV110Wr_3cyc_1FSU1], (instregex "^SHA256SU1")>;
  282. def : InstRW<[TSV110Wr_5cyc_1FSU1], (instregex "^SHA256(H|H2)")>;
  283. def TSV110ReadCRC: SchedReadAdvance<1, [TSV110Wr_2cyc_1MDU]>;
  284. def : InstRW<[TSV110Wr_2cyc_1MDU, TSV110ReadCRC], (instregex "^CRC32.*$")>;
  285. // Arithmetic and Logical Instructions
  286. // -----------------------------------------------------------------------------
  287. def : InstRW<[TSV110Wr_1cyc_1ALUAB], (instregex "(BIC|EON|ORN)[WX]rr")>;
  288. def : InstRW<[TSV110Wr_1cyc_1AB], (instregex "(BIC)S[WX]rr")>;
  289. def : InstRW<[TSV110Wr_1cyc_1ALUAB], (instregex "(ADD|AND|EOR|ORR|SUB)[WX]r(r|i)")>;
  290. def : InstRW<[TSV110Wr_1cyc_1AB], (instregex "(ADD|AND|EOR|ORR|SUB)S[WX]r(r|i)")>;
  291. def : InstRW<[TSV110Wr_1cyc_1ALUAB], (instregex "^(ADC|SBC|BIC)[WX]r$")>;
  292. def : InstRW<[TSV110Wr_1cyc_1AB], (instregex "^(ADC|SBC)S[WX]r$")>;
  293. def : InstRW<[TSV110Wr_2cyc_1MDU], (instregex "^(AND|BIC|EON|EOR|ORN|ORR)[WX]rs$")>;
  294. def : InstRW<[TSV110Wr_2cyc_1AB], (instregex "^(AND|BIC|EON|EOR|ORN|ORR)S[WX]rs$")>;
  295. def : InstRW<[TSV110Wr_2cyc_1MDU], (instregex "^(ADD|SUB)[WX]r(s|x|x64)$")>;
  296. def : InstRW<[TSV110Wr_2cyc_1AB], (instregex "^(ADD|SUB)S[WX]r(s|x|x64)$")>;
  297. def : InstRW<[TSV110Wr_1cyc_1AB], (instregex "^(CCMN|CCMP)(W|X)(r|i)$")>;
  298. def : InstRW<[TSV110Wr_1cyc_1ALUAB], (instregex "^(CSEL|CSINC|CSINV|CSNEG)(W|X)r$")>;
  299. // Move and Shift Instructions
  300. // -----------------------------------------------------------------------------
  301. def : InstRW<[TSV110Wr_1cyc_1ALUAB], (instrs ADR, ADRP)>;
  302. def : InstRW<[TSV110Wr_1cyc_1ALUAB], (instregex "^MOV[NZK][WX]i")>;
  303. def : InstRW<[TSV110Wr_1cyc_1ALUAB], (instregex "(LSLV|LSRV|ASRV|RORV)(W|X)r")>;
  304. // Divide and Multiply Instructions
  305. // -----------------------------------------------------------------------------
  306. def : InstRW<[TSV110Wr_12cyc_1MDU], (instregex "^(S|U)DIVWr$")>;
  307. def : InstRW<[TSV110Wr_20cyc_1MDU], (instregex "^(S|U)DIVXr$")>;
  308. def TSV110ReadMAW : SchedReadAdvance<2, [TSV110Wr_3cyc_1MDU]>;
  309. def : InstRW<[TSV110Wr_3cyc_1MDU, TSV110ReadMAW], (instrs MADDWrrr, MSUBWrrr)>;
  310. def TSV110ReadMAQ : SchedReadAdvance<3, [TSV110Wr_4cyc_1MDU]>;
  311. def : InstRW<[TSV110Wr_4cyc_1MDU, TSV110ReadMAQ], (instrs MADDXrrr, MSUBXrrr)>;
  312. def : InstRW<[TSV110Wr_3cyc_1MDU, TSV110ReadMAW], (instregex "(S|U)(MADDL|MSUBL)rrr")>;
  313. def : InstRW<[TSV110Wr_4cyc_1MDU], (instregex "^(S|U)MULHrr$")>;
  314. // Miscellaneous Data-Processing Instructions
  315. // -----------------------------------------------------------------------------
  316. def : InstRW<[TSV110Wr_1cyc_1ALUAB], (instregex "^EXTR(W|X)rri$")>;
  317. def : InstRW<[TSV110Wr_1cyc_1ALUAB], (instregex "^(S|U)?BFM(W|X)ri$")>;
  318. def : InstRW<[TSV110Wr_1cyc_1ALUAB], (instregex "^(CLS|CLZ|RBIT|REV(16|32)?)(W|X)r$")>;
  319. // Load Instructions
  320. // -----------------------------------------------------------------------------
  321. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instregex "^LDR(W|X)l$")>;
  322. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instrs LDRSWl)>;
  323. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instregex "^LDR(BB|HH|W|X)ui$")>;
  324. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instregex "^LDRS(BW|BX|HW|HX|W)ui$")>;
  325. def : InstRW<[TSV110Wr_4cyc_1LdSt, WriteAdr], (instregex "^LDR(BB|HH|W|X)(post|pre)$")>;
  326. def : InstRW<[TSV110Wr_4cyc_1LdSt, WriteAdr], (instregex "^LDRS(BW|BX|HW|HX|W)(post|pre)$")>;
  327. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instregex "^LDTR(B|H|W|X)i$")>;
  328. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instregex "^LDUR(BB|HH|W|X)i$")>;
  329. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instregex "^LDTRS(BW|BX|HW|HX|W)i$")>;
  330. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instregex "^LDURS(BW|BX|HW|HX|W)i$")>;
  331. def : InstRW<[TSV110Wr_4cyc_1LdSt, WriteLDHi], (instregex "^LDNP(W|X)i$")>;
  332. def : InstRW<[TSV110Wr_4cyc_1LdSt, WriteLDHi], (instregex "^LDP(W|X)i$")>;
  333. def : InstRW<[TSV110Wr_4cyc_1LdSt_1ALUAB, WriteLDHi, WriteAdr],(instregex "^LDP(W|X)(post|pre)$")>;
  334. def : InstRW<[TSV110Wr_4cyc_1LdSt, WriteLDHi], (instrs LDPSWi)>;
  335. def : InstRW<[TSV110Wr_4cyc_1LdSt, WriteLDHi, WriteAdr], (instrs LDPSWpost)>;
  336. def : InstRW<[TSV110Wr_4cyc_1LdSt, WriteLDHi, WriteAdr], (instrs LDPSWpre)>;
  337. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instrs PRFMl)>;
  338. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instrs PRFUMi)>;
  339. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instregex "^PRFMui$")>;
  340. def : InstRW<[TSV110Wr_4cyc_1LdSt], (instregex "^PRFMro(W|X)$")>;
  341. // Store Instructions
  342. // -----------------------------------------------------------------------------
  343. def : InstRW<[TSV110Wr_1cyc_1LdSt], (instregex "^STN?P(W|X)i$")>;
  344. def : InstRW<[TSV110Wr_1cyc_1LdSt, WriteAdr], (instregex "^STP(W|X)(post|pre)$")>;
  345. def : InstRW<[TSV110Wr_1cyc_1LdSt], (instregex "^STUR(BB|HH|W|X)i$")>;
  346. def : InstRW<[TSV110Wr_1cyc_1LdSt], (instregex "^STTR(B|H|W|X)i$")>;
  347. def : InstRW<[TSV110Wr_1cyc_1LdSt], (instregex "^STR(BB|HH|W|X)ui$")>;
  348. def : InstRW<[TSV110Wr_1cyc_1LdSt, WriteAdr], (instregex "^STR(BB|HH|W|X)(post|pre)$")>;
  349. def : InstRW<[TSV110Wr_1cyc_1LdSt, WriteAdr], (instregex "^STR(BB|HH|W|X)ro(W|X)$")>;
  350. // FP Data Processing Instructions
  351. // -----------------------------------------------------------------------------
  352. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "F(ABS|NEG)(D|S)r")>;
  353. def : InstRW<[TSV110Wr_3cyc_1F], (instregex "^FCCMP(E)?(S|D)rr$")>;
  354. def : InstRW<[TSV110Wr_3cyc_1F], (instregex "^FCMP(E)?(S|D)r(r|i)$")>;
  355. def : InstRW<[TSV110Wr_3cyc_1F], (instregex "^FCSEL(S|D)rrr$")>;
  356. def : InstRW<[TSV110Wr_11cyc_1FSU1], (instrs FDIVSrr)>;
  357. def : InstRW<[TSV110Wr_18cyc_1FSU1], (instrs FDIVDrr)>;
  358. def : InstRW<[TSV110Wr_17cyc_1FSU2], (instrs FSQRTSr)>;
  359. def : InstRW<[TSV110Wr_31cyc_1FSU2], (instrs FSQRTDr)>;
  360. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "^F(MAX|MIN).+rr")>;
  361. def : InstRW<[TSV110Wr_4cyc_1F], (instregex "^FN?M(ADD|SUB)Hrrr")>;
  362. def : InstRW<[TSV110Wr_5cyc_1F], (instregex "^FN?M(ADD|SUB)Srrr")>;
  363. def : InstRW<[TSV110Wr_7cyc_1F], (instregex "^FN?M(ADD|SUB)Drrr")>;
  364. def : InstRW<[TSV110Wr_4cyc_1F], (instregex "^F(ADD|SUB)Hrr")>;
  365. def : InstRW<[TSV110Wr_5cyc_1F], (instregex "^F(ADD|SUB)Srr")>;
  366. def : InstRW<[TSV110Wr_4cyc_1F], (instregex "^F(ADD|SUB)Drr")>;
  367. def : InstRW<[TSV110Wr_4cyc_1F], (instregex "^F(N)?MULHrr$")>;
  368. def : InstRW<[TSV110Wr_5cyc_1F], (instregex "^F(N)?MULSrr$")>;
  369. def : InstRW<[TSV110Wr_5cyc_1F], (instregex "^F(N)?MULDrr$")>;
  370. def : InstRW<[TSV110Wr_3cyc_1F], (instregex "^FRINT.+r")>;
  371. // FP Miscellaneous Instructions
  372. // -----------------------------------------------------------------------------
  373. def : InstRW<[TSV110Wr_5cyc_1ALU_1F], (instregex "^[SU]CVTF[SU][WX][SD]ri")>;
  374. def : InstRW<[TSV110Wr_4cyc_1FSU1], (instregex "^FCVT(A|M|N|P|Z)(S|U)U(W|X)(S|D)r$")>;
  375. def : InstRW<[TSV110Wr_3cyc_1F], (instregex "^FCVT[HSD][HSD]r")>;
  376. def : InstRW<[TSV110Wr_2cyc_1FSU1], (instregex "^FMOV(DX|WS|XD|SW|DXHigh|XDHigh)r$")>;
  377. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "^FMOV[SD][ir]$")>;
  378. // FP Load Instructions
  379. // -----------------------------------------------------------------------------
  380. def : InstRW<[TSV110Wr_5cyc_1LdSt], (instregex "^LDR[DSQ]l")>;
  381. def : InstRW<[TSV110Wr_5cyc_1LdSt], (instregex "^LDUR[BDHSQ]i")>;
  382. def : InstRW<[TSV110Wr_5cyc_1LdSt, WriteAdr], (instregex "^LDR[BDHSQ](post|pre)")>;
  383. def : InstRW<[TSV110Wr_5cyc_1LdSt], (instregex "^LDR[BDHSQ]ui")>;
  384. def : InstRW<[TSV110Wr_6cyc_1LdSt_1ALUAB, ReadAdrBase], (instregex "^LDR(Q|D|H|S|B)ro(W|X)$")>;
  385. def : InstRW<[TSV110Wr_5cyc_1LdSt, WriteLDHi], (instregex "^LDN?P[DQS]i")>;
  386. def : InstRW<[TSV110Wr_5cyc_1LdSt, WriteLDHi, WriteAdr], (instregex "^LDP[DQS](post|pre)")>;
  387. // FP Store Instructions
  388. // -----------------------------------------------------------------------------
  389. def : InstRW<[TSV110Wr_1cyc_1LdSt], (instregex "^STUR[BHSDQ]i")>;
  390. def : InstRW<[TSV110Wr_1cyc_1LdSt_1ALUAB, ReadAdrBase], (instregex "^STR[BHSDQ](post|pre)")>;
  391. def : InstRW<[TSV110Wr_1cyc_1LdSt], (instregex "^STR[BHSDQ]ui")>;
  392. def : InstRW<[TSV110Wr_2cyc_1LdSt_1ALUAB, ReadAdrBase], (instregex "^STR[BHSDQ]ro[WX]")>;
  393. def : InstRW<[TSV110Wr_2cyc_2LdSt], (instregex "^STN?P[SDQ]i")>;
  394. def : InstRW<[TSV110Wr_2cyc_2LdSt, WriteAdr], (instregex "^STP[SDQ](post|pre)")>;
  395. // ASIMD Integer Instructions
  396. // -----------------------------------------------------------------------------
  397. // Reference for forms in this group
  398. // D form - v8i8, v4i16, v2i32
  399. // Q form - v16i8, v8i16, v4i32
  400. // D form - v1i8, v1i16, v1i32, v1i64
  401. // Q form - v16i8, v8i16, v4i32, v2i64
  402. // D form - v8i8_v8i16, v4i16_v4i32, v2i32_v2i64
  403. // Q form - v16i8_v8i16, v8i16_v4i32, v4i32_v2i64
  404. // ASIMD simple arithmetic
  405. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^(ABS|ADD(P)?|NEG|SUB)v")>;
  406. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^[SU](ADD(L|LP|W)|SUB(L|W))v")>;
  407. // ASIMD complex arithmetic
  408. def : InstRW<[TSV110Wr_4cyc_1FSU1_1FSU2], (instregex "^[SU]H(ADD|SUB)v")>;
  409. def : InstRW<[TSV110Wr_4cyc_1FSU1_1FSU2], (instregex "^R?(ADD|SUB)HN2?v")>;
  410. def : InstRW<[TSV110Wr_4cyc_1FSU1_1FSU2], (instregex "^[SU]Q(ADD|SUB)v")>;
  411. def : InstRW<[TSV110Wr_4cyc_1FSU1_1FSU2], (instregex "^(SU|US)QADDv")>;
  412. def : InstRW<[TSV110Wr_4cyc_1FSU1_1FSU2], (instregex "^[SU]RHADDv")>;
  413. def : InstRW<[TSV110Wr_4cyc_1FSU1_1FSU2], (instregex "^[SU]ABAL?v")>;
  414. def : InstRW<[TSV110Wr_4cyc_1FSU1_1FSU2], (instregex "^[SU]ABDL?v")>;
  415. def : InstRW<[TSV110Wr_4cyc_1FSU1_1FSU2], (instregex "^[SU]ADALPv")>;
  416. def : InstRW<[TSV110Wr_4cyc_1FSU1_1FSU2], (instregex "^((SQ)(ABS|NEG))v")>;
  417. // ASIMD compare
  418. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^CM(EQ|GE|GT|HI|HS|LE|LT|TST)v")>;
  419. // ASIMD max/min
  420. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^[SU](MIN|MAX)P?v")>;
  421. // ASIMD logical
  422. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^(AND|BIC|BIF|BIT|BSL|EOR|MVN|NOT|ORN|ORR)v")>;
  423. // ASIMD multiply accumulate, D-form
  424. def : InstRW<[TSV110Wr_4cyc_1FSU1], (instregex "^(MUL|ML[AS]|SQR?D(MULH))(v8i8|v4i16|v2i32|v1i8|v1i16|v1i32|v1i64)")>;
  425. // ASIMD multiply accumulate, Q-form
  426. def : InstRW<[TSV110Wr_8cyc_2FSU1], (instregex "^(MUL|ML[AS]|SQR?D(MULH))(v16i8|v8i16|v4i32)")>;
  427. // ASIMD multiply accumulate long
  428. def : InstRW<[TSV110Wr_4cyc_1FSU1], (instregex "(S|U|SQD)(MLAL|MLSL|MULL)v.*")>;
  429. def : InstRW<[TSV110Wr_2cyc_1FSU1], (instregex "^PMULL(v8i8|v16i8)")>;
  430. def : InstRW<[TSV110Wr_2cyc_1FSU1], (instregex "^PMULL(v1i64|v2i64)")>;
  431. // ASIMD shift
  432. // ASIMD shift accumulate
  433. def : InstRW<[TSV110Wr_4cyc_1FSU1], (instregex "^(S|SR|U|UR)SRA")>;
  434. // ASIMD shift by immed, basic
  435. def : InstRW<[TSV110Wr_4cyc_1FSU1],
  436. (instregex "SHLv","SLIv","SRIv","SHRNv","SQXTNv","SQXTUNv","UQXTNv")>;
  437. // ASIMD shift by immed, complex
  438. def : InstRW<[TSV110Wr_4cyc_1FSU1], (instregex "^[SU]?(Q|R){1,2}SHR")>;
  439. def : InstRW<[TSV110Wr_4cyc_1FSU1], (instregex "^SQSHLU")>;
  440. // ASIMD shift by register, basic, Q-form
  441. def : InstRW<[TSV110Wr_4cyc_1FSU1], (instregex "^[SU]SHL(v16i8|v8i16|v4i32|v2i64)")>;
  442. // ASIMD shift by register, complex, D-form
  443. def : InstRW<[TSV110Wr_4cyc_1FSU1], (instregex "^[SU][QR]{1,2}SHL(v1i8|v1i16|v1i32|v1i64|v8i8|v4i16|v2i32|b|d|h|s)")>;
  444. // ASIMD shift by register, complex, Q-form
  445. def : InstRW<[TSV110Wr_4cyc_1FSU1], (instregex "^[SU][QR]{1,2}SHL(v16i8|v8i16|v4i32|v2i64)")>;
  446. // ASIMD reduction
  447. // ASIMD arith, reduce, 4H/4S
  448. def : InstRW<[TSV110Wr_4cyc_1FSU1_1FSU2], (instregex "^[SU]?ADDL?V(v8i8|v4i16|v2i32)v$")>;
  449. // ASIMD arith, reduce, 8B/8H
  450. def : InstRW<[TSV110Wr_8cyc_1FSU1_1FSU2], (instregex "^[SU]?ADDL?V(v8i16|v4i32)v$")>;
  451. // ASIMD arith, reduce, 16B
  452. def : InstRW<[TSV110Wr_8cyc_1FSU1_1FSU2], (instregex "^[SU]?ADDL?Vv16i8v$")>;
  453. // ASIMD max/min, reduce, 4H/4S
  454. def : InstRW<[TSV110Wr_4cyc_1FSU1_1FSU2], (instregex "^[SU](MIN|MAX)V(v4i16|v4i32)v$")>;
  455. // ASIMD max/min, reduce, 8B/8H
  456. def : InstRW<[TSV110Wr_8cyc_1FSU1_1FSU2], (instregex "^[SU](MIN|MAX)V(v8i8|v8i16)v$")>;
  457. // ASIMD max/min, reduce, 16B
  458. def : InstRW<[TSV110Wr_8cyc_1FSU1_1FSU2], (instregex "^[SU](MIN|MAX)Vv16i8v$")>;
  459. // Vector - Floating Point
  460. // -----------------------------------------------------------------------------
  461. // Reference for forms in this group
  462. // D form - v2f32
  463. // Q form - v4f32, v2f64
  464. // D form - 32, 64
  465. // D form - v1i32, v1i64
  466. // D form - v2i32
  467. // Q form - v4i32, v2i64
  468. // ASIMD FP sign manipulation
  469. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "^FABSv")>;
  470. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "^FNEGv")>;
  471. // ASIMD FP compare
  472. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "^F(AC|CM)(EQ|GE|GT|LE|LT)v")>;
  473. // ASIMD FP convert
  474. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "^FCVT[AMNPZ][SU]v")>;
  475. def : InstRW<[TSV110Wr_3cyc_1F], (instregex "^FCVT(L)v")>;
  476. def : InstRW<[TSV110Wr_5cyc_1F], (instregex "^FCVT(N|XN)v")>;
  477. // ASIMD FP divide, D-form, F32
  478. def : InstRW<[TSV110Wr_11cyc_1FSU1], (instregex "FDIVv2f32")>;
  479. // ASIMD FP divide, Q-form, F32
  480. def : InstRW<[TSV110Wr_24cyc_1FSU1], (instregex "FDIVv4f32")>;
  481. // ASIMD FP divide, Q-form, F64
  482. def : InstRW<[TSV110Wr_38cyc_1FSU1], (instregex "FDIVv2f64")>;
  483. // ASIMD FP SQRT
  484. def : InstRW<[TSV110Wr_17cyc_1FSU2], (instrs FSQRTv2f32)>;
  485. def : InstRW<[TSV110Wr_36cyc_1FSU2], (instrs FSQRTv4f32)>;
  486. def : InstRW<[TSV110Wr_64cyc_1FSU2], (instrs FSQRTv2f64)>;
  487. // ASIMD FP max,min
  488. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "^F(MAX|MIN)(NM)?v")>;
  489. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "^F(MAX|MIN)(NM)?Pv")>;
  490. def : InstRW<[TSV110Wr_4cyc_1F], (instregex "^F(MAX|MIN)(NM)?Vv")>;
  491. // ASIMD FP add
  492. def : InstRW<[TSV110Wr_5cyc_1F], (instregex "^F(ADD|ADDP|SUB)v")>;
  493. // ASIMD FP multiply
  494. def : InstRW<[TSV110Wr_5cyc_1F], (instregex "^FMULX?v")>;
  495. // ASIMD Miscellaneous Instructions
  496. // -----------------------------------------------------------------------------
  497. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^(CLS|CLZ|CNT)v")>;
  498. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^(DUP|INS)v.+lane")>;
  499. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^REV(16|32|64)v")>;
  500. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^(UZP|ZIP)[12]v")>;
  501. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^EXTv")>;
  502. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^XTNv")>;
  503. def : InstRW<[TSV110Wr_2cyc_1FSU1_1FSU2], (instregex "^RBITv")>;
  504. def : InstRW<[TSV110Wr_4cyc_1F], (instregex "^(INS|DUP)v.+gpr")>;
  505. def : InstRW<[TSV110Wr_3cyc_1FSU1], (instregex "^[SU]MOVv")>;
  506. // ASIMD table lookup, D-form
  507. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "^TB[LX]v8i8One")>;
  508. def : InstRW<[TSV110Wr_4cyc_2F], (instregex "^TB[LX]v8i8Two")>;
  509. def : InstRW<[TSV110Wr_6cyc_3F], (instregex "^TB[LX]v8i8Three")>;
  510. def : InstRW<[TSV110Wr_8cyc_4F], (instregex "^TB[LX]v8i8Four")>;
  511. // ASIMD table lookup, Q-form
  512. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "^TB[LX]v16i8One")>;
  513. def : InstRW<[TSV110Wr_4cyc_2F], (instregex "^TB[LX]v16i8Two")>;
  514. def : InstRW<[TSV110Wr_6cyc_3F], (instregex "^TB[LX]v16i8Three")>;
  515. def : InstRW<[TSV110Wr_8cyc_4F], (instregex "^TB[LX]v16i8Four")>;
  516. def : InstRW<[TSV110Wr_2cyc_1F], (instregex "^FMOVv")>;
  517. def : InstRW<[TSV110Wr_3cyc_1F], (instregex "^FRINT[AIMNPXZ]v")>;
  518. def : InstRW<[TSV110Wr_3cyc_1F], (instregex "^[SU]CVTFv")>;
  519. def : InstRW<[TSV110Wr_3cyc_1F], (instregex "^[FU](RECP|RSQRT)(E|X)v")>;
  520. // ASIMD Load Instructions
  521. // -----------------------------------------------------------------------------
  522. def : InstRW<[TSV110Wr_7cyc_1F_1LdSt], (instregex "^LD1Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  523. def : InstRW<[TSV110Wr_7cyc_1F_1LdSt, WriteAdr], (instregex "^LD1Rv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  524. def : InstRW<[TSV110Wr_7cyc_2F_1LdSt], (instregex "^LD2Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  525. def : InstRW<[TSV110Wr_7cyc_2F_1LdSt, WriteAdr], (instregex "^LD2Rv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  526. def : InstRW<[TSV110Wr_8cyc_3F_1LdSt], (instregex "^LD3Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  527. def : InstRW<[TSV110Wr_8cyc_3F_1LdSt, WriteAdr], (instregex "^LD3Rv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  528. def : InstRW<[TSV110Wr_8cyc_3F_2LdSt], (instregex "^LD4Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  529. def : InstRW<[TSV110Wr_8cyc_3F_2LdSt, WriteAdr], (instregex "^LD4Rv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  530. def : InstRW<[TSV110Wr_7cyc_1F_1LdSt], (instregex "LD1i(8|16|32|64)$")>;
  531. def : InstRW<[TSV110Wr_7cyc_1F_1LdSt, WriteAdr], (instregex "LD1i(8|16|32|64)_POST$")>;
  532. def : InstRW<[TSV110Wr_7cyc_2F_1LdSt], (instregex "LD2i(8|16|32|64)$")>;
  533. def : InstRW<[TSV110Wr_7cyc_2F_1LdSt, WriteAdr], (instregex "LD2i(8|16|32|64)_POST$")>;
  534. def : InstRW<[TSV110Wr_8cyc_3F_1LdSt], (instregex "LD3i(8|16|32|64)$")>;
  535. def : InstRW<[TSV110Wr_8cyc_3F_1LdSt, WriteAdr], (instregex "LD3i(8|16|32|64)_POST$")>;
  536. def : InstRW<[TSV110Wr_8cyc_3F_2LdSt], (instregex "LD4i(8|16|32|64)$")>;
  537. def : InstRW<[TSV110Wr_8cyc_3F_2LdSt, WriteAdr], (instregex "LD4i(8|16|32|64)_POST$")>;
  538. def : InstRW<[TSV110Wr_5cyc_1LdSt], (instregex "^LD1Onev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  539. def : InstRW<[TSV110Wr_5cyc_1LdSt, WriteAdr], (instregex "^LD1Onev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  540. def : InstRW<[TSV110Wr_5cyc_1LdSt], (instregex "^LD1Twov(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  541. def : InstRW<[TSV110Wr_5cyc_1LdSt, WriteAdr], (instregex "^LD1Twov(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  542. def : InstRW<[TSV110Wr_6cyc_3LdSt], (instregex "^LD1Threev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  543. def : InstRW<[TSV110Wr_6cyc_3LdSt, WriteAdr], (instregex "^LD1Threev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  544. def : InstRW<[TSV110Wr_6cyc_2LdSt], (instregex "^LD1Fourv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  545. def : InstRW<[TSV110Wr_6cyc_2LdSt, WriteAdr], (instregex "^LD1Fourv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  546. def : InstRW<[TSV110Wr_7cyc_2F_1LdSt], (instregex "^LD2Twov(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  547. def : InstRW<[TSV110Wr_7cyc_2F_1LdSt, WriteAdr], (instregex "^LD2Twov(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  548. def : InstRW<[TSV110Wr_8cyc_3F_1LdSt], (instregex "^LD3Threev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  549. def : InstRW<[TSV110Wr_8cyc_3F_1LdSt, WriteAdr], (instregex "^LD3Threev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  550. def : InstRW<[TSV110Wr_10cyc_4F_4LdSt], (instregex "^LD4Fourv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  551. def : InstRW<[TSV110Wr_10cyc_4F_4LdSt, WriteAdr], (instregex "^LD4Fourv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  552. // ASIMD Store Instructions
  553. // -----------------------------------------------------------------------------
  554. def : InstRW<[TSV110Wr_3cyc_1F], (instregex "ST1i(8|16|32|64)$")>;
  555. def : InstRW<[TSV110Wr_3cyc_1F, WriteAdr], (instregex "ST1i(8|16|32|64)_POST$")>;
  556. def : InstRW<[TSV110Wr_4cyc_1F], (instregex "ST2i(8|16|32|64)$")>;
  557. def : InstRW<[TSV110Wr_4cyc_1F, WriteAdr], (instregex "ST2i(8|16|32|64)_POST$")>;
  558. def : InstRW<[TSV110Wr_5cyc_1F], (instregex "ST3i(8|16|32|64)$")>;
  559. def : InstRW<[TSV110Wr_5cyc_1F, WriteAdr], (instregex "ST3i(8|16|32|64)_POST$")>;
  560. def : InstRW<[TSV110Wr_6cyc_1F], (instregex "ST4i(8|16|32|64)$")>;
  561. def : InstRW<[TSV110Wr_6cyc_1F, WriteAdr], (instregex "ST4i(8|16|32|64)_POST$")>;
  562. def : InstRW<[TSV110Wr_3cyc_1F], (instregex "^ST1Onev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  563. def : InstRW<[TSV110Wr_3cyc_1F, WriteAdr], (instregex "^ST1Onev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  564. def : InstRW<[TSV110Wr_4cyc_1F], (instregex "^ST1Twov(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  565. def : InstRW<[TSV110Wr_4cyc_1F, WriteAdr], (instregex "^ST1Twov(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  566. def : InstRW<[TSV110Wr_5cyc_1F], (instregex "^ST1Threev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  567. def : InstRW<[TSV110Wr_5cyc_1F, WriteAdr], (instregex "^ST1Threev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  568. def : InstRW<[TSV110Wr_6cyc_1F], (instregex "^ST1Fourv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  569. def : InstRW<[TSV110Wr_6cyc_1F, WriteAdr], (instregex "^ST1Fourv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  570. def : InstRW<[TSV110Wr_4cyc_1F], (instregex "^ST2Twov(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  571. def : InstRW<[TSV110Wr_4cyc_1F, WriteAdr], (instregex "^ST2Twov(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  572. def : InstRW<[TSV110Wr_5cyc_1F], (instregex "^ST3Threev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  573. def : InstRW<[TSV110Wr_5cyc_1F, WriteAdr], (instregex "^ST3Threev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  574. def : InstRW<[TSV110Wr_8cyc_1F], (instregex "^ST4Fourv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  575. def : InstRW<[TSV110Wr_8cyc_1F, WriteAdr], (instregex "^ST4Fourv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  576. } // SchedModel = TSV110Model