X86SchedSkylakeClient.td 76 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942
  1. //=- X86SchedSkylake.td - X86 Skylake Client Scheduling ------*- 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 Skylake Client to support
  10. // instruction scheduling and other instruction cost heuristics.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. def SkylakeClientModel : SchedMachineModel {
  14. // All x86 instructions are modeled as a single micro-op, and SKylake can
  15. // decode 6 instructions per cycle.
  16. let IssueWidth = 6;
  17. let MicroOpBufferSize = 224; // Based on the reorder buffer.
  18. let LoadLatency = 5;
  19. let MispredictPenalty = 14;
  20. // Based on the LSD (loop-stream detector) queue size and benchmarking data.
  21. let LoopMicroOpBufferSize = 50;
  22. // This flag is set to allow the scheduler to assign a default model to
  23. // unrecognized opcodes.
  24. let CompleteModel = 0;
  25. }
  26. let SchedModel = SkylakeClientModel in {
  27. // Skylake Client can issue micro-ops to 8 different ports in one cycle.
  28. // Ports 0, 1, 5, and 6 handle all computation.
  29. // Port 4 gets the data half of stores. Store data can be available later than
  30. // the store address, but since we don't model the latency of stores, we can
  31. // ignore that.
  32. // Ports 2 and 3 are identical. They handle loads and the address half of
  33. // stores. Port 7 can handle address calculations.
  34. def SKLPort0 : ProcResource<1>;
  35. def SKLPort1 : ProcResource<1>;
  36. def SKLPort2 : ProcResource<1>;
  37. def SKLPort3 : ProcResource<1>;
  38. def SKLPort4 : ProcResource<1>;
  39. def SKLPort5 : ProcResource<1>;
  40. def SKLPort6 : ProcResource<1>;
  41. def SKLPort7 : ProcResource<1>;
  42. // Many micro-ops are capable of issuing on multiple ports.
  43. def SKLPort01 : ProcResGroup<[SKLPort0, SKLPort1]>;
  44. def SKLPort23 : ProcResGroup<[SKLPort2, SKLPort3]>;
  45. def SKLPort237 : ProcResGroup<[SKLPort2, SKLPort3, SKLPort7]>;
  46. def SKLPort04 : ProcResGroup<[SKLPort0, SKLPort4]>;
  47. def SKLPort05 : ProcResGroup<[SKLPort0, SKLPort5]>;
  48. def SKLPort06 : ProcResGroup<[SKLPort0, SKLPort6]>;
  49. def SKLPort15 : ProcResGroup<[SKLPort1, SKLPort5]>;
  50. def SKLPort16 : ProcResGroup<[SKLPort1, SKLPort6]>;
  51. def SKLPort56 : ProcResGroup<[SKLPort5, SKLPort6]>;
  52. def SKLPort015 : ProcResGroup<[SKLPort0, SKLPort1, SKLPort5]>;
  53. def SKLPort056 : ProcResGroup<[SKLPort0, SKLPort5, SKLPort6]>;
  54. def SKLPort0156: ProcResGroup<[SKLPort0, SKLPort1, SKLPort5, SKLPort6]>;
  55. def SKLDivider : ProcResource<1>; // Integer division issued on port 0.
  56. // FP division and sqrt on port 0.
  57. def SKLFPDivider : ProcResource<1>;
  58. // 60 Entry Unified Scheduler
  59. def SKLPortAny : ProcResGroup<[SKLPort0, SKLPort1, SKLPort2, SKLPort3, SKLPort4,
  60. SKLPort5, SKLPort6, SKLPort7]> {
  61. let BufferSize=60;
  62. }
  63. // Integer loads are 5 cycles, so ReadAfterLd registers needn't be available until 5
  64. // cycles after the memory operand.
  65. def : ReadAdvance<ReadAfterLd, 5>;
  66. // Vector loads are 5/6/7 cycles, so ReadAfterVec*Ld registers needn't be available
  67. // until 5/6/7 cycles after the memory operand.
  68. def : ReadAdvance<ReadAfterVecLd, 5>;
  69. def : ReadAdvance<ReadAfterVecXLd, 6>;
  70. def : ReadAdvance<ReadAfterVecYLd, 7>;
  71. def : ReadAdvance<ReadInt2Fpu, 0>;
  72. // Many SchedWrites are defined in pairs with and without a folded load.
  73. // Instructions with folded loads are usually micro-fused, so they only appear
  74. // as two micro-ops when queued in the reservation station.
  75. // This multiclass defines the resource usage for variants with and without
  76. // folded loads.
  77. multiclass SKLWriteResPair<X86FoldableSchedWrite SchedRW,
  78. list<ProcResourceKind> ExePorts,
  79. int Lat, list<int> Res = [1], int UOps = 1,
  80. int LoadLat = 5> {
  81. // Register variant is using a single cycle on ExePort.
  82. def : WriteRes<SchedRW, ExePorts> {
  83. let Latency = Lat;
  84. let ResourceCycles = Res;
  85. let NumMicroOps = UOps;
  86. }
  87. // Memory variant also uses a cycle on port 2/3 and adds LoadLat cycles to
  88. // the latency (default = 5).
  89. def : WriteRes<SchedRW.Folded, !listconcat([SKLPort23], ExePorts)> {
  90. let Latency = !add(Lat, LoadLat);
  91. let ResourceCycles = !listconcat([1], Res);
  92. let NumMicroOps = !add(UOps, 1);
  93. }
  94. }
  95. // A folded store needs a cycle on port 4 for the store data, and an extra port
  96. // 2/3/7 cycle to recompute the address.
  97. def : WriteRes<WriteRMW, [SKLPort237,SKLPort4]>;
  98. // Arithmetic.
  99. defm : SKLWriteResPair<WriteALU, [SKLPort0156], 1>; // Simple integer ALU op.
  100. defm : SKLWriteResPair<WriteADC, [SKLPort06], 1>; // Integer ALU + flags op.
  101. // Integer multiplication.
  102. defm : SKLWriteResPair<WriteIMul8, [SKLPort1], 3>;
  103. defm : SKLWriteResPair<WriteIMul16, [SKLPort1,SKLPort06,SKLPort0156], 4, [1,1,2], 4>;
  104. defm : X86WriteRes<WriteIMul16Imm, [SKLPort1,SKLPort0156], 4, [1,1], 2>;
  105. defm : X86WriteRes<WriteIMul16ImmLd, [SKLPort1,SKLPort0156,SKLPort23], 8, [1,1,1], 3>;
  106. defm : SKLWriteResPair<WriteIMul16Reg, [SKLPort1], 3>;
  107. defm : SKLWriteResPair<WriteIMul32, [SKLPort1,SKLPort06,SKLPort0156], 4, [1,1,1], 3>;
  108. defm : SKLWriteResPair<WriteMULX32, [SKLPort1,SKLPort06,SKLPort0156], 3, [1,1,1], 3>;
  109. defm : SKLWriteResPair<WriteIMul32Imm, [SKLPort1], 3>;
  110. defm : SKLWriteResPair<WriteIMul32Reg, [SKLPort1], 3>;
  111. defm : SKLWriteResPair<WriteIMul64, [SKLPort1,SKLPort5], 4, [1,1], 2>;
  112. defm : SKLWriteResPair<WriteMULX64, [SKLPort1,SKLPort5], 3, [1,1], 2>;
  113. defm : SKLWriteResPair<WriteIMul64Imm, [SKLPort1], 3>;
  114. defm : SKLWriteResPair<WriteIMul64Reg, [SKLPort1], 3>;
  115. def SKLWriteIMulH : WriteRes<WriteIMulH, []> { let Latency = 4; }
  116. def : WriteRes<WriteIMulHLd, []> {
  117. let Latency = !add(SKLWriteIMulH.Latency, SkylakeClientModel.LoadLatency);
  118. }
  119. defm : X86WriteRes<WriteBSWAP32, [SKLPort15], 1, [1], 1>;
  120. defm : X86WriteRes<WriteBSWAP64, [SKLPort06, SKLPort15], 2, [1,1], 2>;
  121. defm : X86WriteRes<WriteCMPXCHG,[SKLPort06, SKLPort0156], 5, [2,3], 5>;
  122. defm : X86WriteRes<WriteCMPXCHGRMW,[SKLPort23,SKLPort06,SKLPort0156,SKLPort237,SKLPort4], 8, [1,2,1,1,1], 6>;
  123. defm : X86WriteRes<WriteXCHG, [SKLPort0156], 2, [3], 3>;
  124. // TODO: Why isn't the SKLDivider used?
  125. defm : SKLWriteResPair<WriteDiv8, [SKLPort0,SKLDivider], 25, [1,10], 1, 4>;
  126. defm : X86WriteRes<WriteDiv16, [SKLPort0,SKLPort1,SKLPort5,SKLPort6,SKLPort05,SKLPort0156], 76, [7,2,8,3,1,11], 32>;
  127. defm : X86WriteRes<WriteDiv32, [SKLPort0,SKLPort1,SKLPort5,SKLPort6,SKLPort05,SKLPort0156], 76, [7,2,8,3,1,11], 32>;
  128. defm : X86WriteRes<WriteDiv64, [SKLPort0,SKLPort1,SKLPort5,SKLPort6,SKLPort05,SKLPort0156], 76, [7,2,8,3,1,11], 32>;
  129. defm : X86WriteRes<WriteDiv16Ld, [SKLPort0,SKLPort23,SKLDivider], 29, [1,1,10], 2>;
  130. defm : X86WriteRes<WriteDiv32Ld, [SKLPort0,SKLPort23,SKLDivider], 29, [1,1,10], 2>;
  131. defm : X86WriteRes<WriteDiv64Ld, [SKLPort0,SKLPort23,SKLDivider], 29, [1,1,10], 2>;
  132. defm : X86WriteRes<WriteIDiv8, [SKLPort0,SKLDivider], 25, [1,10], 1>;
  133. defm : X86WriteRes<WriteIDiv16, [SKLPort0,SKLPort1,SKLPort5,SKLPort6,SKLPort06,SKLPort0156], 102, [4,2,4,8,14,34], 66>;
  134. defm : X86WriteRes<WriteIDiv32, [SKLPort0,SKLPort1,SKLPort5,SKLPort6,SKLPort06,SKLPort0156], 102, [4,2,4,8,14,34], 66>;
  135. defm : X86WriteRes<WriteIDiv64, [SKLPort0,SKLPort1,SKLPort5,SKLPort6,SKLPort06,SKLPort0156], 102, [4,2,4,8,14,34], 66>;
  136. defm : X86WriteRes<WriteIDiv8Ld, [SKLPort0,SKLPort5,SKLPort23,SKLPort0156], 28, [2,4,1,1], 8>;
  137. defm : X86WriteRes<WriteIDiv16Ld, [SKLPort0,SKLPort5,SKLPort23,SKLPort0156], 28, [2,4,1,1], 8>;
  138. defm : X86WriteRes<WriteIDiv32Ld, [SKLPort0,SKLPort5,SKLPort23,SKLPort0156], 28, [2,4,1,1], 8>;
  139. defm : X86WriteRes<WriteIDiv64Ld, [SKLPort0,SKLPort5,SKLPort23,SKLPort0156], 28, [2,4,1,1], 8>;
  140. defm : SKLWriteResPair<WriteCRC32, [SKLPort1], 3>;
  141. def : WriteRes<WriteLEA, [SKLPort15]>; // LEA instructions can't fold loads.
  142. defm : SKLWriteResPair<WriteCMOV, [SKLPort06], 1, [1], 1>; // Conditional move.
  143. defm : X86WriteRes<WriteFCMOV, [SKLPort1], 3, [1], 1>; // x87 conditional move.
  144. def : WriteRes<WriteSETCC, [SKLPort06]>; // Setcc.
  145. def : WriteRes<WriteSETCCStore, [SKLPort06,SKLPort4,SKLPort237]> {
  146. let Latency = 2;
  147. let NumMicroOps = 3;
  148. }
  149. defm : X86WriteRes<WriteLAHFSAHF, [SKLPort06], 1, [1], 1>;
  150. defm : X86WriteRes<WriteBitTest, [SKLPort06], 1, [1], 1>;
  151. defm : X86WriteRes<WriteBitTestImmLd, [SKLPort06,SKLPort23], 6, [1,1], 2>;
  152. defm : X86WriteRes<WriteBitTestRegLd, [SKLPort0156,SKLPort23], 6, [1,1], 2>;
  153. defm : X86WriteRes<WriteBitTestSet, [SKLPort06], 1, [1], 1>;
  154. defm : X86WriteRes<WriteBitTestSetImmLd, [SKLPort06,SKLPort23], 5, [1,1], 3>;
  155. defm : X86WriteRes<WriteBitTestSetRegLd, [SKLPort0156,SKLPort23], 5, [1,1], 2>;
  156. // Bit counts.
  157. defm : SKLWriteResPair<WriteBSF, [SKLPort1], 3>;
  158. defm : SKLWriteResPair<WriteBSR, [SKLPort1], 3>;
  159. defm : SKLWriteResPair<WriteLZCNT, [SKLPort1], 3>;
  160. defm : SKLWriteResPair<WriteTZCNT, [SKLPort1], 3>;
  161. defm : SKLWriteResPair<WritePOPCNT, [SKLPort1], 3>;
  162. // Integer shifts and rotates.
  163. defm : SKLWriteResPair<WriteShift, [SKLPort06], 1>;
  164. defm : SKLWriteResPair<WriteShiftCL, [SKLPort06], 3, [3], 3>;
  165. defm : SKLWriteResPair<WriteRotate, [SKLPort06], 1, [1], 1>;
  166. defm : SKLWriteResPair<WriteRotateCL, [SKLPort06], 3, [3], 3>;
  167. // SHLD/SHRD.
  168. defm : X86WriteRes<WriteSHDrri, [SKLPort1], 3, [1], 1>;
  169. defm : X86WriteRes<WriteSHDrrcl,[SKLPort1,SKLPort06,SKLPort0156], 6, [1, 2, 1], 4>;
  170. defm : X86WriteRes<WriteSHDmri, [SKLPort1,SKLPort23,SKLPort237,SKLPort0156], 9, [1, 1, 1, 1], 4>;
  171. defm : X86WriteRes<WriteSHDmrcl,[SKLPort1,SKLPort23,SKLPort237,SKLPort06,SKLPort0156], 11, [1, 1, 1, 2, 1], 6>;
  172. // BMI1 BEXTR/BLS, BMI2 BZHI
  173. defm : SKLWriteResPair<WriteBEXTR, [SKLPort06,SKLPort15], 2, [1,1], 2>;
  174. defm : SKLWriteResPair<WriteBLS, [SKLPort15], 1>;
  175. defm : SKLWriteResPair<WriteBZHI, [SKLPort15], 1>;
  176. // Loads, stores, and moves, not folded with other operations.
  177. defm : X86WriteRes<WriteLoad, [SKLPort23], 5, [1], 1>;
  178. defm : X86WriteRes<WriteStore, [SKLPort237, SKLPort4], 1, [1,1], 1>;
  179. defm : X86WriteRes<WriteStoreNT, [SKLPort237, SKLPort4], 1, [1,1], 2>;
  180. defm : X86WriteRes<WriteMove, [SKLPort0156], 1, [1], 1>;
  181. // Model the effect of clobbering the read-write mask operand of the GATHER operation.
  182. // Does not cost anything by itself, only has latency, matching that of the WriteLoad,
  183. defm : X86WriteRes<WriteVecMaskedGatherWriteback, [], 5, [], 0>;
  184. // Idioms that clear a register, like xorps %xmm0, %xmm0.
  185. // These can often bypass execution ports completely.
  186. def : WriteRes<WriteZero, []>;
  187. // Branches don't produce values, so they have no latency, but they still
  188. // consume resources. Indirect branches can fold loads.
  189. defm : SKLWriteResPair<WriteJump, [SKLPort06], 1>;
  190. // Floating point. This covers both scalar and vector operations.
  191. defm : X86WriteRes<WriteFLD0, [SKLPort05], 1, [1], 1>;
  192. defm : X86WriteRes<WriteFLD1, [SKLPort05], 1, [2], 2>;
  193. defm : X86WriteRes<WriteFLDC, [SKLPort05], 1, [2], 2>;
  194. defm : X86WriteRes<WriteFLoad, [SKLPort23], 5, [1], 1>;
  195. defm : X86WriteRes<WriteFLoadX, [SKLPort23], 6, [1], 1>;
  196. defm : X86WriteRes<WriteFLoadY, [SKLPort23], 7, [1], 1>;
  197. defm : X86WriteRes<WriteFMaskedLoad, [SKLPort23,SKLPort015], 7, [1,1], 2>;
  198. defm : X86WriteRes<WriteFMaskedLoadY, [SKLPort23,SKLPort015], 8, [1,1], 2>;
  199. defm : X86WriteRes<WriteFStore, [SKLPort237,SKLPort4], 1, [1,1], 2>;
  200. defm : X86WriteRes<WriteFStoreX, [SKLPort237,SKLPort4], 1, [1,1], 2>;
  201. defm : X86WriteRes<WriteFStoreY, [SKLPort237,SKLPort4], 1, [1,1], 2>;
  202. defm : X86WriteRes<WriteFStoreNT, [SKLPort237,SKLPort4], 1, [1,1], 2>;
  203. defm : X86WriteRes<WriteFStoreNTX, [SKLPort237,SKLPort4], 1, [1,1], 2>;
  204. defm : X86WriteRes<WriteFStoreNTY, [SKLPort237,SKLPort4], 1, [1,1], 2>;
  205. defm : X86WriteRes<WriteFMaskedStore32, [SKLPort237,SKLPort0], 2, [1,1], 2>;
  206. defm : X86WriteRes<WriteFMaskedStore32Y, [SKLPort237,SKLPort0], 2, [1,1], 2>;
  207. defm : X86WriteRes<WriteFMaskedStore64, [SKLPort237,SKLPort0], 2, [1,1], 2>;
  208. defm : X86WriteRes<WriteFMaskedStore64Y, [SKLPort237,SKLPort0], 2, [1,1], 2>;
  209. defm : X86WriteRes<WriteFMove, [SKLPort015], 1, [1], 1>;
  210. defm : X86WriteRes<WriteFMoveX, [SKLPort015], 1, [1], 1>;
  211. defm : X86WriteRes<WriteFMoveY, [SKLPort015], 1, [1], 1>;
  212. defm : X86WriteResUnsupported<WriteFMoveZ>;
  213. defm : X86WriteRes<WriteEMMS, [SKLPort05,SKLPort0156], 10, [9,1], 10>;
  214. defm : SKLWriteResPair<WriteFAdd, [SKLPort01], 4, [1], 1, 5>; // Floating point add/sub.
  215. defm : SKLWriteResPair<WriteFAddX, [SKLPort01], 4, [1], 1, 6>;
  216. defm : SKLWriteResPair<WriteFAddY, [SKLPort01], 4, [1], 1, 7>;
  217. defm : X86WriteResPairUnsupported<WriteFAddZ>;
  218. defm : SKLWriteResPair<WriteFAdd64, [SKLPort01], 4, [1], 1, 5>; // Floating point double add/sub.
  219. defm : SKLWriteResPair<WriteFAdd64X, [SKLPort01], 4, [1], 1, 6>;
  220. defm : SKLWriteResPair<WriteFAdd64Y, [SKLPort01], 4, [1], 1, 7>;
  221. defm : X86WriteResPairUnsupported<WriteFAdd64Z>;
  222. defm : SKLWriteResPair<WriteFCmp, [SKLPort01], 4, [1], 1, 5>; // Floating point compare.
  223. defm : SKLWriteResPair<WriteFCmpX, [SKLPort01], 4, [1], 1, 6>;
  224. defm : SKLWriteResPair<WriteFCmpY, [SKLPort01], 4, [1], 1, 7>;
  225. defm : X86WriteResPairUnsupported<WriteFCmpZ>;
  226. defm : SKLWriteResPair<WriteFCmp64, [SKLPort01], 4, [1], 1, 5>; // Floating point double compare.
  227. defm : SKLWriteResPair<WriteFCmp64X, [SKLPort01], 4, [1], 1, 6>;
  228. defm : SKLWriteResPair<WriteFCmp64Y, [SKLPort01], 4, [1], 1, 7>;
  229. defm : X86WriteResPairUnsupported<WriteFCmp64Z>;
  230. defm : SKLWriteResPair<WriteFCom, [SKLPort0], 2>; // Floating point compare to flags (X87).
  231. defm : SKLWriteResPair<WriteFComX, [SKLPort0], 2>; // Floating point compare to flags (SSE).
  232. defm : SKLWriteResPair<WriteFMul, [SKLPort01], 4, [1], 1, 5>; // Floating point multiplication.
  233. defm : SKLWriteResPair<WriteFMulX, [SKLPort01], 4, [1], 1, 6>;
  234. defm : SKLWriteResPair<WriteFMulY, [SKLPort01], 4, [1], 1, 7>;
  235. defm : X86WriteResPairUnsupported<WriteFMulZ>;
  236. defm : SKLWriteResPair<WriteFMul64, [SKLPort01], 4, [1], 1, 5>; // Floating point double multiplication.
  237. defm : SKLWriteResPair<WriteFMul64X, [SKLPort01], 4, [1], 1, 6>;
  238. defm : SKLWriteResPair<WriteFMul64Y, [SKLPort01], 4, [1], 1, 7>;
  239. defm : X86WriteResPairUnsupported<WriteFMul64Z>;
  240. defm : SKLWriteResPair<WriteFDiv, [SKLPort0,SKLFPDivider], 11, [1,3], 1, 5>; // Floating point division.
  241. //defm : SKLWriteResPair<WriteFDivX, [SKLPort0,SKLFPDivider], 11, [1,3], 1, 6>;
  242. defm : SKLWriteResPair<WriteFDivY, [SKLPort0,SKLFPDivider], 11, [1,5], 1, 7>;
  243. defm : X86WriteResPairUnsupported<WriteFDivZ>;
  244. //defm : SKLWriteResPair<WriteFDiv64, [SKLPort0,SKLFPDivider], 14, [1,3], 1, 5>; // Floating point double division.
  245. //defm : SKLWriteResPair<WriteFDiv64X, [SKLPort0,SKLFPDivider], 14, [1,3], 1, 6>;
  246. //defm : SKLWriteResPair<WriteFDiv64Y, [SKLPort0,SKLFPDivider], 14, [1,5], 1, 7>;
  247. defm : X86WriteResPairUnsupported<WriteFDiv64Z>;
  248. defm : SKLWriteResPair<WriteFSqrt, [SKLPort0,SKLFPDivider], 12, [1,3], 1, 5>; // Floating point square root.
  249. defm : SKLWriteResPair<WriteFSqrtX, [SKLPort0,SKLFPDivider], 12, [1,3], 1, 6>;
  250. defm : SKLWriteResPair<WriteFSqrtY, [SKLPort0,SKLFPDivider], 12, [1,6], 1, 7>;
  251. defm : X86WriteResPairUnsupported<WriteFSqrtZ>;
  252. defm : SKLWriteResPair<WriteFSqrt64, [SKLPort0,SKLFPDivider], 18, [1,6], 1, 5>; // Floating point double square root.
  253. defm : SKLWriteResPair<WriteFSqrt64X, [SKLPort0,SKLFPDivider], 18, [1,6], 1, 6>;
  254. defm : SKLWriteResPair<WriteFSqrt64Y, [SKLPort0,SKLFPDivider], 18, [1,12],1, 7>;
  255. defm : X86WriteResPairUnsupported<WriteFSqrt64Z>;
  256. defm : SKLWriteResPair<WriteFSqrt80, [SKLPort0,SKLFPDivider], 21, [1,7]>; // Floating point long double square root.
  257. defm : SKLWriteResPair<WriteFRcp, [SKLPort0], 4, [1], 1, 5>; // Floating point reciprocal estimate.
  258. defm : SKLWriteResPair<WriteFRcpX, [SKLPort0], 4, [1], 1, 6>;
  259. defm : SKLWriteResPair<WriteFRcpY, [SKLPort0], 4, [1], 1, 7>;
  260. defm : X86WriteResPairUnsupported<WriteFRcpZ>;
  261. defm : SKLWriteResPair<WriteFRsqrt, [SKLPort0], 4, [1], 1, 5>; // Floating point reciprocal square root estimate.
  262. defm : SKLWriteResPair<WriteFRsqrtX,[SKLPort0], 4, [1], 1, 6>;
  263. defm : SKLWriteResPair<WriteFRsqrtY,[SKLPort0], 4, [1], 1, 7>;
  264. defm : X86WriteResPairUnsupported<WriteFRsqrtZ>;
  265. defm : SKLWriteResPair<WriteFMA, [SKLPort01], 4, [1], 1, 5>; // Fused Multiply Add.
  266. defm : SKLWriteResPair<WriteFMAX, [SKLPort01], 4, [1], 1, 6>;
  267. defm : SKLWriteResPair<WriteFMAY, [SKLPort01], 4, [1], 1, 7>;
  268. defm : X86WriteResPairUnsupported<WriteFMAZ>;
  269. defm : SKLWriteResPair<WriteDPPD, [SKLPort5,SKLPort01], 9, [1,2], 3, 6>; // Floating point double dot product.
  270. defm : SKLWriteResPair<WriteDPPS, [SKLPort5,SKLPort01], 13, [1,3], 4, 6>;
  271. defm : SKLWriteResPair<WriteDPPSY, [SKLPort5,SKLPort01], 13, [1,3], 4, 7>;
  272. defm : X86WriteResPairUnsupported<WriteDPPSZ>;
  273. defm : SKLWriteResPair<WriteFSign, [SKLPort0], 1>; // Floating point fabs/fchs.
  274. defm : SKLWriteResPair<WriteFRnd, [SKLPort01], 8, [2], 2, 6>; // Floating point rounding.
  275. defm : SKLWriteResPair<WriteFRndY, [SKLPort01], 8, [2], 2, 7>;
  276. defm : X86WriteResPairUnsupported<WriteFRndZ>;
  277. defm : SKLWriteResPair<WriteFLogic, [SKLPort015], 1, [1], 1, 6>; // Floating point and/or/xor logicals.
  278. defm : SKLWriteResPair<WriteFLogicY, [SKLPort015], 1, [1], 1, 7>;
  279. defm : X86WriteResPairUnsupported<WriteFLogicZ>;
  280. defm : SKLWriteResPair<WriteFTest, [SKLPort0], 2, [1], 1, 6>; // Floating point TEST instructions.
  281. defm : SKLWriteResPair<WriteFTestY, [SKLPort0], 2, [1], 1, 7>;
  282. defm : X86WriteResPairUnsupported<WriteFTestZ>;
  283. defm : SKLWriteResPair<WriteFShuffle, [SKLPort5], 1, [1], 1, 6>; // Floating point vector shuffles.
  284. defm : SKLWriteResPair<WriteFShuffleY, [SKLPort5], 1, [1], 1, 7>;
  285. defm : X86WriteResPairUnsupported<WriteFShuffleZ>;
  286. defm : SKLWriteResPair<WriteFVarShuffle, [SKLPort5], 1, [1], 1, 6>; // Floating point vector shuffles.
  287. defm : SKLWriteResPair<WriteFVarShuffleY, [SKLPort5], 1, [1], 1, 7>;
  288. defm : X86WriteResPairUnsupported<WriteFVarShuffleZ>;
  289. defm : SKLWriteResPair<WriteFBlend, [SKLPort015], 1, [1], 1, 6>; // Floating point vector blends.
  290. defm : SKLWriteResPair<WriteFBlendY, [SKLPort015], 1, [1], 1, 7>;
  291. defm : X86WriteResPairUnsupported<WriteFBlendZ>;
  292. defm : SKLWriteResPair<WriteFVarBlend, [SKLPort015], 2, [2], 2, 6>; // Fp vector variable blends.
  293. defm : SKLWriteResPair<WriteFVarBlendY,[SKLPort015], 2, [2], 2, 7>;
  294. defm : X86WriteResPairUnsupported<WriteFVarBlendZ>;
  295. // FMA Scheduling helper class.
  296. // class FMASC { X86FoldableSchedWrite Sched = WriteFAdd; }
  297. // Vector integer operations.
  298. defm : X86WriteRes<WriteVecLoad, [SKLPort23], 5, [1], 1>;
  299. defm : X86WriteRes<WriteVecLoadX, [SKLPort23], 6, [1], 1>;
  300. defm : X86WriteRes<WriteVecLoadY, [SKLPort23], 7, [1], 1>;
  301. defm : X86WriteRes<WriteVecLoadNT, [SKLPort23], 6, [1], 1>;
  302. defm : X86WriteRes<WriteVecLoadNTY, [SKLPort23], 7, [1], 1>;
  303. defm : X86WriteRes<WriteVecMaskedLoad, [SKLPort23,SKLPort015], 7, [1,1], 2>;
  304. defm : X86WriteRes<WriteVecMaskedLoadY, [SKLPort23,SKLPort015], 8, [1,1], 2>;
  305. defm : X86WriteRes<WriteVecStore, [SKLPort237,SKLPort4], 1, [1,1], 2>;
  306. defm : X86WriteRes<WriteVecStoreX, [SKLPort237,SKLPort4], 1, [1,1], 2>;
  307. defm : X86WriteRes<WriteVecStoreY, [SKLPort237,SKLPort4], 1, [1,1], 2>;
  308. defm : X86WriteRes<WriteVecStoreNT, [SKLPort237,SKLPort4], 1, [1,1], 2>;
  309. defm : X86WriteRes<WriteVecStoreNTY, [SKLPort237,SKLPort4], 1, [1,1], 2>;
  310. defm : X86WriteRes<WriteVecMaskedStore32, [SKLPort237,SKLPort0], 2, [1,1], 2>;
  311. defm : X86WriteRes<WriteVecMaskedStore32Y, [SKLPort237,SKLPort0], 2, [1,1], 2>;
  312. defm : X86WriteRes<WriteVecMaskedStore64, [SKLPort237,SKLPort0], 2, [1,1], 2>;
  313. defm : X86WriteRes<WriteVecMaskedStore64Y, [SKLPort237,SKLPort0], 2, [1,1], 2>;
  314. defm : X86WriteRes<WriteVecMove, [SKLPort05], 1, [1], 1>;
  315. defm : X86WriteRes<WriteVecMoveX, [SKLPort015], 1, [1], 1>;
  316. defm : X86WriteRes<WriteVecMoveY, [SKLPort015], 1, [1], 1>;
  317. defm : X86WriteResUnsupported<WriteVecMoveZ>;
  318. defm : X86WriteRes<WriteVecMoveToGpr, [SKLPort0], 2, [1], 1>;
  319. defm : X86WriteRes<WriteVecMoveFromGpr, [SKLPort5], 1, [1], 1>;
  320. defm : SKLWriteResPair<WriteVecALU, [SKLPort05], 1, [1], 1, 5>; // Vector integer ALU op, no logicals.
  321. defm : SKLWriteResPair<WriteVecALUX, [SKLPort01], 1, [1], 1, 6>;
  322. defm : SKLWriteResPair<WriteVecALUY, [SKLPort01], 1, [1], 1, 7>;
  323. defm : X86WriteResPairUnsupported<WriteVecALUZ>;
  324. defm : SKLWriteResPair<WriteVecLogic, [SKLPort05], 1, [1], 1, 5>; // Vector integer and/or/xor.
  325. defm : SKLWriteResPair<WriteVecLogicX,[SKLPort015], 1, [1], 1, 6>;
  326. defm : SKLWriteResPair<WriteVecLogicY,[SKLPort015], 1, [1], 1, 7>;
  327. defm : X86WriteResPairUnsupported<WriteVecLogicZ>;
  328. defm : SKLWriteResPair<WriteVecTest, [SKLPort0,SKLPort5], 3, [1,1], 2, 6>; // Vector integer TEST instructions.
  329. defm : SKLWriteResPair<WriteVecTestY, [SKLPort0,SKLPort5], 3, [1,1], 2, 7>;
  330. defm : X86WriteResPairUnsupported<WriteVecTestZ>;
  331. defm : SKLWriteResPair<WriteVecIMul, [SKLPort0] , 5, [1], 1, 5>; // Vector integer multiply.
  332. defm : SKLWriteResPair<WriteVecIMulX, [SKLPort01], 5, [1], 1, 6>;
  333. defm : SKLWriteResPair<WriteVecIMulY, [SKLPort01], 5, [1], 1, 7>;
  334. defm : X86WriteResPairUnsupported<WriteVecIMulZ>;
  335. defm : SKLWriteResPair<WritePMULLD, [SKLPort01], 10, [2], 2, 6>; // Vector PMULLD.
  336. defm : SKLWriteResPair<WritePMULLDY, [SKLPort01], 10, [2], 2, 7>;
  337. defm : X86WriteResPairUnsupported<WritePMULLDZ>;
  338. defm : SKLWriteResPair<WriteShuffle, [SKLPort5], 1, [1], 1, 5>; // Vector shuffles.
  339. defm : SKLWriteResPair<WriteShuffleX, [SKLPort5], 1, [1], 1, 6>;
  340. defm : SKLWriteResPair<WriteShuffleY, [SKLPort5], 1, [1], 1, 7>;
  341. defm : X86WriteResPairUnsupported<WriteShuffleZ>;
  342. defm : SKLWriteResPair<WriteVarShuffle, [SKLPort5], 1, [1], 1, 5>; // Vector shuffles.
  343. defm : SKLWriteResPair<WriteVarShuffleX, [SKLPort5], 1, [1], 1, 6>;
  344. defm : SKLWriteResPair<WriteVarShuffleY, [SKLPort5], 1, [1], 1, 7>;
  345. defm : X86WriteResPairUnsupported<WriteVarShuffleZ>;
  346. defm : SKLWriteResPair<WriteBlend, [SKLPort5], 1, [1], 1, 6>; // Vector blends.
  347. defm : SKLWriteResPair<WriteBlendY, [SKLPort5], 1, [1], 1, 7>;
  348. defm : X86WriteResPairUnsupported<WriteBlendZ>;
  349. defm : SKLWriteResPair<WriteVarBlend, [SKLPort015], 2, [2], 2, 6>; // Vector variable blends.
  350. defm : SKLWriteResPair<WriteVarBlendY, [SKLPort015], 2, [2], 2, 6>;
  351. defm : X86WriteResPairUnsupported<WriteVarBlendZ>;
  352. defm : SKLWriteResPair<WriteMPSAD, [SKLPort5], 4, [2], 2, 6>; // Vector MPSAD.
  353. defm : SKLWriteResPair<WriteMPSADY, [SKLPort5], 4, [2], 2, 7>;
  354. defm : X86WriteResPairUnsupported<WriteMPSADZ>;
  355. defm : SKLWriteResPair<WritePSADBW, [SKLPort5], 3, [1], 1, 5>; // Vector PSADBW.
  356. defm : SKLWriteResPair<WritePSADBWX, [SKLPort5], 3, [1], 1, 6>;
  357. defm : SKLWriteResPair<WritePSADBWY, [SKLPort5], 3, [1], 1, 7>;
  358. defm : X86WriteResPairUnsupported<WritePSADBWZ>;
  359. defm : SKLWriteResPair<WritePHMINPOS, [SKLPort01], 4, [1], 1, 6>; // Vector PHMINPOS.
  360. // Vector integer shifts.
  361. defm : SKLWriteResPair<WriteVecShift, [SKLPort0], 1, [1], 1, 5>;
  362. defm : X86WriteRes<WriteVecShiftX, [SKLPort5,SKLPort01], 2, [1,1], 2>;
  363. defm : X86WriteRes<WriteVecShiftY, [SKLPort5,SKLPort01], 4, [1,1], 2>;
  364. defm : X86WriteRes<WriteVecShiftXLd, [SKLPort01,SKLPort23], 7, [1,1], 2>;
  365. defm : X86WriteRes<WriteVecShiftYLd, [SKLPort01,SKLPort23], 8, [1,1], 2>;
  366. defm : X86WriteResPairUnsupported<WriteVecShiftZ>;
  367. defm : SKLWriteResPair<WriteVecShiftImm, [SKLPort0], 1, [1], 1, 5>; // Vector integer immediate shifts.
  368. defm : SKLWriteResPair<WriteVecShiftImmX, [SKLPort01], 1, [1], 1, 6>;
  369. defm : SKLWriteResPair<WriteVecShiftImmY, [SKLPort01], 1, [1], 1, 7>;
  370. defm : X86WriteResPairUnsupported<WriteVecShiftImmZ>;
  371. defm : SKLWriteResPair<WriteVarVecShift, [SKLPort01], 1, [1], 1, 6>; // Variable vector shifts.
  372. defm : SKLWriteResPair<WriteVarVecShiftY, [SKLPort01], 1, [1], 1, 7>;
  373. defm : X86WriteResPairUnsupported<WriteVarVecShiftZ>;
  374. // Vector insert/extract operations.
  375. def : WriteRes<WriteVecInsert, [SKLPort5]> {
  376. let Latency = 2;
  377. let NumMicroOps = 2;
  378. let ResourceCycles = [2];
  379. }
  380. def : WriteRes<WriteVecInsertLd, [SKLPort5,SKLPort23]> {
  381. let Latency = 6;
  382. let NumMicroOps = 2;
  383. }
  384. def: InstRW<[WriteVecInsertLd], (instregex "(V?)MOV(H|L)(PD|PS)rm")>;
  385. def : WriteRes<WriteVecExtract, [SKLPort0,SKLPort5]> {
  386. let Latency = 3;
  387. let NumMicroOps = 2;
  388. }
  389. def : WriteRes<WriteVecExtractSt, [SKLPort4,SKLPort5,SKLPort237]> {
  390. let Latency = 2;
  391. let NumMicroOps = 3;
  392. }
  393. // Conversion between integer and float.
  394. defm : SKLWriteResPair<WriteCvtSS2I, [SKLPort1], 3>;
  395. defm : SKLWriteResPair<WriteCvtPS2I, [SKLPort1], 3>;
  396. defm : SKLWriteResPair<WriteCvtPS2IY, [SKLPort1], 3>;
  397. defm : X86WriteResPairUnsupported<WriteCvtPS2IZ>;
  398. defm : SKLWriteResPair<WriteCvtSD2I, [SKLPort1], 3>;
  399. defm : SKLWriteResPair<WriteCvtPD2I, [SKLPort1], 3>;
  400. defm : SKLWriteResPair<WriteCvtPD2IY, [SKLPort1], 3>;
  401. defm : X86WriteResPairUnsupported<WriteCvtPD2IZ>;
  402. defm : SKLWriteResPair<WriteCvtI2SS, [SKLPort1], 4>;
  403. defm : SKLWriteResPair<WriteCvtI2PS, [SKLPort1], 4>;
  404. defm : SKLWriteResPair<WriteCvtI2PSY, [SKLPort1], 4>;
  405. defm : X86WriteResPairUnsupported<WriteCvtI2PSZ>;
  406. defm : SKLWriteResPair<WriteCvtI2SD, [SKLPort1], 4>;
  407. defm : SKLWriteResPair<WriteCvtI2PD, [SKLPort1], 4>;
  408. defm : SKLWriteResPair<WriteCvtI2PDY, [SKLPort1], 4>;
  409. defm : X86WriteResPairUnsupported<WriteCvtI2PDZ>;
  410. defm : SKLWriteResPair<WriteCvtSS2SD, [SKLPort1], 3>;
  411. defm : SKLWriteResPair<WriteCvtPS2PD, [SKLPort1], 3>;
  412. defm : SKLWriteResPair<WriteCvtPS2PDY, [SKLPort1], 3>;
  413. defm : X86WriteResPairUnsupported<WriteCvtPS2PDZ>;
  414. defm : SKLWriteResPair<WriteCvtSD2SS, [SKLPort1], 3>;
  415. defm : SKLWriteResPair<WriteCvtPD2PS, [SKLPort1], 3>;
  416. defm : SKLWriteResPair<WriteCvtPD2PSY, [SKLPort1], 3>;
  417. defm : X86WriteResPairUnsupported<WriteCvtPD2PSZ>;
  418. defm : X86WriteRes<WriteCvtPH2PS, [SKLPort5,SKLPort015], 5, [1,1], 2>;
  419. defm : X86WriteRes<WriteCvtPH2PSY, [SKLPort5,SKLPort01], 7, [1,1], 2>;
  420. defm : X86WriteResUnsupported<WriteCvtPH2PSZ>;
  421. defm : X86WriteRes<WriteCvtPH2PSLd, [SKLPort23,SKLPort01], 9, [1,1], 2>;
  422. defm : X86WriteRes<WriteCvtPH2PSYLd, [SKLPort23,SKLPort01], 10, [1,1], 2>;
  423. defm : X86WriteResUnsupported<WriteCvtPH2PSZLd>;
  424. defm : X86WriteRes<WriteCvtPS2PH, [SKLPort5,SKLPort015], 5, [1,1], 2>;
  425. defm : X86WriteRes<WriteCvtPS2PHY, [SKLPort5,SKLPort01], 7, [1,1], 2>;
  426. defm : X86WriteResUnsupported<WriteCvtPS2PHZ>;
  427. defm : X86WriteRes<WriteCvtPS2PHSt, [SKLPort4,SKLPort5,SKLPort237,SKLPort01], 6, [1,1,1,1], 4>;
  428. defm : X86WriteRes<WriteCvtPS2PHYSt, [SKLPort4,SKLPort5,SKLPort237,SKLPort01], 8, [1,1,1,1], 4>;
  429. defm : X86WriteResUnsupported<WriteCvtPS2PHZSt>;
  430. // Strings instructions.
  431. // Packed Compare Implicit Length Strings, Return Mask
  432. def : WriteRes<WritePCmpIStrM, [SKLPort0]> {
  433. let Latency = 10;
  434. let NumMicroOps = 3;
  435. let ResourceCycles = [3];
  436. }
  437. def : WriteRes<WritePCmpIStrMLd, [SKLPort0, SKLPort23]> {
  438. let Latency = 16;
  439. let NumMicroOps = 4;
  440. let ResourceCycles = [3,1];
  441. }
  442. // Packed Compare Explicit Length Strings, Return Mask
  443. def : WriteRes<WritePCmpEStrM, [SKLPort0, SKLPort5, SKLPort015, SKLPort0156]> {
  444. let Latency = 19;
  445. let NumMicroOps = 9;
  446. let ResourceCycles = [4,3,1,1];
  447. }
  448. def : WriteRes<WritePCmpEStrMLd, [SKLPort0, SKLPort5,SKLPort23, SKLPort015, SKLPort0156]> {
  449. let Latency = 25;
  450. let NumMicroOps = 10;
  451. let ResourceCycles = [4,3,1,1,1];
  452. }
  453. // Packed Compare Implicit Length Strings, Return Index
  454. def : WriteRes<WritePCmpIStrI, [SKLPort0]> {
  455. let Latency = 10;
  456. let NumMicroOps = 3;
  457. let ResourceCycles = [3];
  458. }
  459. def : WriteRes<WritePCmpIStrILd, [SKLPort0, SKLPort23]> {
  460. let Latency = 16;
  461. let NumMicroOps = 4;
  462. let ResourceCycles = [3,1];
  463. }
  464. // Packed Compare Explicit Length Strings, Return Index
  465. def : WriteRes<WritePCmpEStrI, [SKLPort0, SKLPort5, SKLPort0156]> {
  466. let Latency = 18;
  467. let NumMicroOps = 8;
  468. let ResourceCycles = [4,3,1];
  469. }
  470. def : WriteRes<WritePCmpEStrILd, [SKLPort0, SKLPort5, SKLPort23, SKLPort0156]> {
  471. let Latency = 24;
  472. let NumMicroOps = 9;
  473. let ResourceCycles = [4,3,1,1];
  474. }
  475. // MOVMSK Instructions.
  476. def : WriteRes<WriteFMOVMSK, [SKLPort0]> { let Latency = 2; }
  477. def : WriteRes<WriteVecMOVMSK, [SKLPort0]> { let Latency = 2; }
  478. def : WriteRes<WriteVecMOVMSKY, [SKLPort0]> { let Latency = 2; }
  479. def : WriteRes<WriteMMXMOVMSK, [SKLPort0]> { let Latency = 2; }
  480. // AES instructions.
  481. def : WriteRes<WriteAESDecEnc, [SKLPort0]> { // Decryption, encryption.
  482. let Latency = 4;
  483. let NumMicroOps = 1;
  484. let ResourceCycles = [1];
  485. }
  486. def : WriteRes<WriteAESDecEncLd, [SKLPort0, SKLPort23]> {
  487. let Latency = 10;
  488. let NumMicroOps = 2;
  489. let ResourceCycles = [1,1];
  490. }
  491. def : WriteRes<WriteAESIMC, [SKLPort0]> { // InvMixColumn.
  492. let Latency = 8;
  493. let NumMicroOps = 2;
  494. let ResourceCycles = [2];
  495. }
  496. def : WriteRes<WriteAESIMCLd, [SKLPort0, SKLPort23]> {
  497. let Latency = 14;
  498. let NumMicroOps = 3;
  499. let ResourceCycles = [2,1];
  500. }
  501. def : WriteRes<WriteAESKeyGen, [SKLPort0, SKLPort5, SKLPort015]> { // Key Generation.
  502. let Latency = 20;
  503. let NumMicroOps = 11;
  504. let ResourceCycles = [3,6,2];
  505. }
  506. def : WriteRes<WriteAESKeyGenLd, [SKLPort0, SKLPort5, SKLPort23, SKLPort015]> {
  507. let Latency = 25;
  508. let NumMicroOps = 11;
  509. let ResourceCycles = [3,6,1,1];
  510. }
  511. // Carry-less multiplication instructions.
  512. def : WriteRes<WriteCLMul, [SKLPort5]> {
  513. let Latency = 6;
  514. let NumMicroOps = 1;
  515. let ResourceCycles = [1];
  516. }
  517. def : WriteRes<WriteCLMulLd, [SKLPort5, SKLPort23]> {
  518. let Latency = 12;
  519. let NumMicroOps = 2;
  520. let ResourceCycles = [1,1];
  521. }
  522. // Catch-all for expensive system instructions.
  523. def : WriteRes<WriteSystem, [SKLPort0156]> { let Latency = 100; } // def WriteSystem : SchedWrite;
  524. // AVX2.
  525. defm : SKLWriteResPair<WriteFShuffle256, [SKLPort5], 3, [1], 1, 7>; // Fp 256-bit width vector shuffles.
  526. defm : SKLWriteResPair<WriteFVarShuffle256, [SKLPort5], 3, [1], 1, 7>; // Fp 256-bit width vector variable shuffles.
  527. defm : SKLWriteResPair<WriteShuffle256, [SKLPort5], 3, [1], 1, 7>; // 256-bit width vector shuffles.
  528. defm : SKLWriteResPair<WriteVPMOV256, [SKLPort5], 3, [1], 1, 7>; // 256-bit width packed vector width-changing move.
  529. defm : SKLWriteResPair<WriteVarShuffle256, [SKLPort5], 3, [1], 1, 7>; // 256-bit width vector variable shuffles.
  530. // Old microcoded instructions that nobody use.
  531. def : WriteRes<WriteMicrocoded, [SKLPort0156]> { let Latency = 100; } // def WriteMicrocoded : SchedWrite;
  532. // Fence instructions.
  533. def : WriteRes<WriteFence, [SKLPort23, SKLPort4]>;
  534. // Load/store MXCSR.
  535. def : WriteRes<WriteLDMXCSR, [SKLPort0,SKLPort23,SKLPort0156]> { let Latency = 7; let NumMicroOps = 3; let ResourceCycles = [1,1,1]; }
  536. def : WriteRes<WriteSTMXCSR, [SKLPort4,SKLPort5,SKLPort237]> { let Latency = 2; let NumMicroOps = 3; let ResourceCycles = [1,1,1]; }
  537. // Nop, not very useful expect it provides a model for nops!
  538. def : WriteRes<WriteNop, []>;
  539. ////////////////////////////////////////////////////////////////////////////////
  540. // Horizontal add/sub instructions.
  541. ////////////////////////////////////////////////////////////////////////////////
  542. defm : SKLWriteResPair<WriteFHAdd, [SKLPort5,SKLPort01], 6, [2,1], 3, 6>;
  543. defm : SKLWriteResPair<WriteFHAddY, [SKLPort5,SKLPort01], 6, [2,1], 3, 7>;
  544. defm : SKLWriteResPair<WritePHAdd, [SKLPort5,SKLPort05], 3, [2,1], 3, 5>;
  545. defm : SKLWriteResPair<WritePHAddX, [SKLPort5,SKLPort015], 3, [2,1], 3, 6>;
  546. defm : SKLWriteResPair<WritePHAddY, [SKLPort5,SKLPort015], 3, [2,1], 3, 7>;
  547. // Remaining instrs.
  548. def SKLWriteResGroup1 : SchedWriteRes<[SKLPort0]> {
  549. let Latency = 1;
  550. let NumMicroOps = 1;
  551. let ResourceCycles = [1];
  552. }
  553. def: InstRW<[SKLWriteResGroup1], (instregex "MMX_PADDS(B|W)rr",
  554. "MMX_PADDUS(B|W)rr",
  555. "MMX_PAVG(B|W)rr",
  556. "MMX_PCMPEQ(B|D|W)rr",
  557. "MMX_PCMPGT(B|D|W)rr",
  558. "MMX_P(MAX|MIN)SWrr",
  559. "MMX_P(MAX|MIN)UBrr",
  560. "MMX_PSUBS(B|W)rr",
  561. "MMX_PSUBUS(B|W)rr")>;
  562. def SKLWriteResGroup3 : SchedWriteRes<[SKLPort5]> {
  563. let Latency = 1;
  564. let NumMicroOps = 1;
  565. let ResourceCycles = [1];
  566. }
  567. def: InstRW<[SKLWriteResGroup3], (instregex "COM(P?)_FST0r",
  568. "UCOM_F(P?)r")>;
  569. def SKLWriteResGroup4 : SchedWriteRes<[SKLPort6]> {
  570. let Latency = 1;
  571. let NumMicroOps = 1;
  572. let ResourceCycles = [1];
  573. }
  574. def: InstRW<[SKLWriteResGroup4], (instregex "JMP(16|32|64)r")>;
  575. def SKLWriteResGroup6 : SchedWriteRes<[SKLPort05]> {
  576. let Latency = 1;
  577. let NumMicroOps = 1;
  578. let ResourceCycles = [1];
  579. }
  580. def: InstRW<[SKLWriteResGroup6], (instrs FINCSTP, FNOP)>;
  581. def SKLWriteResGroup7 : SchedWriteRes<[SKLPort06]> {
  582. let Latency = 1;
  583. let NumMicroOps = 1;
  584. let ResourceCycles = [1];
  585. }
  586. def: InstRW<[SKLWriteResGroup7], (instrs CDQ, CQO, CLAC, STAC)>;
  587. def SKLWriteResGroup8 : SchedWriteRes<[SKLPort15]> {
  588. let Latency = 1;
  589. let NumMicroOps = 1;
  590. let ResourceCycles = [1];
  591. }
  592. def: InstRW<[SKLWriteResGroup8], (instregex "ANDN(32|64)rr")>;
  593. def SKLWriteResGroup9 : SchedWriteRes<[SKLPort015]> {
  594. let Latency = 1;
  595. let NumMicroOps = 1;
  596. let ResourceCycles = [1];
  597. }
  598. def: InstRW<[SKLWriteResGroup9], (instregex "(V?)PADD(B|D|Q|W)(Y?)rr",
  599. "VPBLENDD(Y?)rri")>;
  600. def SKLWriteResGroup10 : SchedWriteRes<[SKLPort0156]> {
  601. let Latency = 1;
  602. let NumMicroOps = 1;
  603. let ResourceCycles = [1];
  604. }
  605. def: InstRW<[SKLWriteResGroup10], (instrs CBW, CWDE, CDQE,
  606. CMC, STC,
  607. SGDT64m,
  608. SIDT64m,
  609. SMSW16m,
  610. STRm,
  611. SYSCALL)>;
  612. def SKLWriteResGroup11 : SchedWriteRes<[SKLPort4,SKLPort237]> {
  613. let Latency = 1;
  614. let NumMicroOps = 2;
  615. let ResourceCycles = [1,1];
  616. }
  617. def: InstRW<[SKLWriteResGroup11], (instrs FBSTPm, VMPTRSTm)>;
  618. def: InstRW<[SKLWriteResGroup11], (instregex "ST_FP(32|64|80)m")>;
  619. def SKLWriteResGroup13 : SchedWriteRes<[SKLPort5]> {
  620. let Latency = 2;
  621. let NumMicroOps = 2;
  622. let ResourceCycles = [2];
  623. }
  624. def: InstRW<[SKLWriteResGroup13], (instrs MMX_MOVQ2DQrr)>;
  625. def SKLWriteResGroup14 : SchedWriteRes<[SKLPort05]> {
  626. let Latency = 2;
  627. let NumMicroOps = 2;
  628. let ResourceCycles = [2];
  629. }
  630. def: InstRW<[SKLWriteResGroup14], (instrs FDECSTP,
  631. MMX_MOVDQ2Qrr)>;
  632. def SKLWriteResGroup17 : SchedWriteRes<[SKLPort0156]> {
  633. let Latency = 2;
  634. let NumMicroOps = 2;
  635. let ResourceCycles = [2];
  636. }
  637. def: InstRW<[SKLWriteResGroup17], (instrs LFENCE,
  638. WAIT,
  639. XGETBV)>;
  640. def SKLWriteResGroup20 : SchedWriteRes<[SKLPort6,SKLPort0156]> {
  641. let Latency = 2;
  642. let NumMicroOps = 2;
  643. let ResourceCycles = [1,1];
  644. }
  645. def: InstRW<[SKLWriteResGroup20], (instregex "CLFLUSH")>;
  646. def SKLWriteResGroup21 : SchedWriteRes<[SKLPort237,SKLPort0156]> {
  647. let Latency = 2;
  648. let NumMicroOps = 2;
  649. let ResourceCycles = [1,1];
  650. }
  651. def: InstRW<[SKLWriteResGroup21], (instrs SFENCE)>;
  652. def SKLWriteResGroup23 : SchedWriteRes<[SKLPort06,SKLPort0156]> {
  653. let Latency = 2;
  654. let NumMicroOps = 2;
  655. let ResourceCycles = [1,1];
  656. }
  657. def: InstRW<[SKLWriteResGroup23], (instrs CWD,
  658. JCXZ, JECXZ, JRCXZ,
  659. ADC8i8, SBB8i8,
  660. ADC16i16, SBB16i16,
  661. ADC32i32, SBB32i32,
  662. ADC64i32, SBB64i32)>;
  663. def SKLWriteResGroup25 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort237]> {
  664. let Latency = 2;
  665. let NumMicroOps = 3;
  666. let ResourceCycles = [1,1,1];
  667. }
  668. def: InstRW<[SKLWriteResGroup25], (instrs FNSTCW16m)>;
  669. def SKLWriteResGroup27 : SchedWriteRes<[SKLPort4,SKLPort237,SKLPort15]> {
  670. let Latency = 2;
  671. let NumMicroOps = 3;
  672. let ResourceCycles = [1,1,1];
  673. }
  674. def: InstRW<[SKLWriteResGroup27], (instregex "MOVBE(16|32|64)mr")>;
  675. def SKLWriteResGroup28 : SchedWriteRes<[SKLPort4,SKLPort237,SKLPort0156]> {
  676. let Latency = 2;
  677. let NumMicroOps = 3;
  678. let ResourceCycles = [1,1,1];
  679. }
  680. def: InstRW<[SKLWriteResGroup28], (instrs PUSH16r, PUSH32r, PUSH64r, PUSH64i8,
  681. STOSB, STOSL, STOSQ, STOSW)>;
  682. def: InstRW<[SKLWriteResGroup28], (instregex "PUSH(16|32|64)rmr")>;
  683. def SKLWriteResGroup29 : SchedWriteRes<[SKLPort1]> {
  684. let Latency = 3;
  685. let NumMicroOps = 1;
  686. let ResourceCycles = [1];
  687. }
  688. def: InstRW<[SKLWriteResGroup29], (instregex "PDEP(32|64)rr",
  689. "PEXT(32|64)rr")>;
  690. def SKLWriteResGroup30 : SchedWriteRes<[SKLPort5]> {
  691. let Latency = 3;
  692. let NumMicroOps = 1;
  693. let ResourceCycles = [1];
  694. }
  695. def: InstRW<[SKLWriteResGroup30], (instregex "(ADD|SUB|SUBR)_(FPrST0|FST0r|FrST0)",
  696. "VPBROADCAST(B|W)rr")>;
  697. def SKLWriteResGroup32 : SchedWriteRes<[SKLPort0,SKLPort0156]> {
  698. let Latency = 3;
  699. let NumMicroOps = 2;
  700. let ResourceCycles = [1,1];
  701. }
  702. def: InstRW<[SKLWriteResGroup32], (instrs FNSTSW16r)>;
  703. def SKLWriteResGroup35 : SchedWriteRes<[SKLPort0,SKLPort5]> {
  704. let Latency = 3;
  705. let NumMicroOps = 3;
  706. let ResourceCycles = [1,2];
  707. }
  708. def: InstRW<[SKLWriteResGroup35], (instregex "MMX_PH(ADD|SUB)SWrr")>;
  709. def SKLWriteResGroup36 : SchedWriteRes<[SKLPort5,SKLPort01]> {
  710. let Latency = 3;
  711. let NumMicroOps = 3;
  712. let ResourceCycles = [2,1];
  713. }
  714. def: InstRW<[SKLWriteResGroup36], (instregex "(V?)PHADDSW(Y?)rr",
  715. "(V?)PHSUBSW(Y?)rr")>;
  716. def SKLWriteResGroup39 : SchedWriteRes<[SKLPort5,SKLPort0156]> {
  717. let Latency = 3;
  718. let NumMicroOps = 3;
  719. let ResourceCycles = [2,1];
  720. }
  721. def: InstRW<[SKLWriteResGroup39], (instrs MMX_PACKSSDWrr,
  722. MMX_PACKSSWBrr,
  723. MMX_PACKUSWBrr)>;
  724. def SKLWriteResGroup40 : SchedWriteRes<[SKLPort6,SKLPort0156]> {
  725. let Latency = 3;
  726. let NumMicroOps = 3;
  727. let ResourceCycles = [1,2];
  728. }
  729. def: InstRW<[SKLWriteResGroup40], (instregex "CLD")>;
  730. def SKLWriteResGroup41 : SchedWriteRes<[SKLPort237,SKLPort0156]> {
  731. let Latency = 3;
  732. let NumMicroOps = 3;
  733. let ResourceCycles = [1,2];
  734. }
  735. def: InstRW<[SKLWriteResGroup41], (instrs MFENCE)>;
  736. def SKLWriteResGroup42 : SchedWriteRes<[SKLPort06,SKLPort0156]> {
  737. let Latency = 3;
  738. let NumMicroOps = 3;
  739. let ResourceCycles = [1,2];
  740. }
  741. def: InstRW<[SKLWriteResGroup42], (instregex "RCL(8|16|32|64)r(1|i)",
  742. "RCR(8|16|32|64)r(1|i)")>;
  743. def SKLWriteResGroup43 : SchedWriteRes<[SKLPort0,SKLPort4,SKLPort237]> {
  744. let Latency = 3;
  745. let NumMicroOps = 3;
  746. let ResourceCycles = [1,1,1];
  747. }
  748. def: InstRW<[SKLWriteResGroup43], (instrs FNSTSWm)>;
  749. def SKLWriteResGroup45 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort237,SKLPort0156]> {
  750. let Latency = 3;
  751. let NumMicroOps = 4;
  752. let ResourceCycles = [1,1,1,1];
  753. }
  754. def: InstRW<[SKLWriteResGroup45], (instregex "CALL(16|32|64)r")>;
  755. def SKLWriteResGroup46 : SchedWriteRes<[SKLPort4,SKLPort237,SKLPort06,SKLPort0156]> {
  756. let Latency = 3;
  757. let NumMicroOps = 4;
  758. let ResourceCycles = [1,1,1,1];
  759. }
  760. def: InstRW<[SKLWriteResGroup46], (instrs CALL64pcrel32)>;
  761. def SKLWriteResGroup47 : SchedWriteRes<[SKLPort0]> {
  762. let Latency = 4;
  763. let NumMicroOps = 1;
  764. let ResourceCycles = [1];
  765. }
  766. def: InstRW<[SKLWriteResGroup47], (instregex "MUL_(FPrST0|FST0r|FrST0)")>;
  767. def SKLWriteResGroup48 : SchedWriteRes<[SKLPort01]> {
  768. let Latency = 4;
  769. let NumMicroOps = 1;
  770. let ResourceCycles = [1];
  771. }
  772. def: InstRW<[SKLWriteResGroup48], (instregex "(V?)CVTDQ2PS(Y?)rr",
  773. "(V?)CVT(T?)PS2DQ(Y?)rr")>;
  774. def SKLWriteResGroup53 : SchedWriteRes<[SKLPort4,SKLPort5,SKLPort237]> {
  775. let Latency = 4;
  776. let NumMicroOps = 3;
  777. let ResourceCycles = [1,1,1];
  778. }
  779. def: InstRW<[SKLWriteResGroup53], (instregex "IST(T?)_FP(16|32|64)m",
  780. "IST_F(16|32)m")>;
  781. def SKLWriteResGroup54 : SchedWriteRes<[SKLPort0156]> {
  782. let Latency = 4;
  783. let NumMicroOps = 4;
  784. let ResourceCycles = [4];
  785. }
  786. def: InstRW<[SKLWriteResGroup54], (instrs FNCLEX)>;
  787. def SKLWriteResGroup55 : SchedWriteRes<[SKLPort6,SKLPort0156]> {
  788. let Latency = 4;
  789. let NumMicroOps = 4;
  790. let ResourceCycles = [1,3];
  791. }
  792. def: InstRW<[SKLWriteResGroup55], (instrs PAUSE)>;
  793. def SKLWriteResGroup56 : SchedWriteRes<[]> {
  794. let Latency = 0;
  795. let NumMicroOps = 4;
  796. let ResourceCycles = [];
  797. }
  798. def: InstRW<[SKLWriteResGroup56], (instrs VZEROUPPER)>;
  799. def SKLWriteResGroup57 : SchedWriteRes<[SKLPort1,SKLPort6,SKLPort0156]> {
  800. let Latency = 4;
  801. let NumMicroOps = 4;
  802. let ResourceCycles = [1,1,2];
  803. }
  804. def: InstRW<[SKLWriteResGroup57], (instregex "LAR(16|32|64)rr")>;
  805. def SKLWriteResGroup58 : SchedWriteRes<[SKLPort23]> {
  806. let Latency = 5;
  807. let NumMicroOps = 1;
  808. let ResourceCycles = [1];
  809. }
  810. def: InstRW<[SKLWriteResGroup58], (instregex "MOVSX(16|32|64)rm(8|16|32)",
  811. "MOVZX(16|32|64)rm(8|16)",
  812. "(V?)MOVDDUPrm")>; // TODO: Should this be SKLWriteResGroup67?
  813. def SKLWriteResGroup59 : SchedWriteRes<[SKLPort0,SKLPort5]> {
  814. let Latency = 5;
  815. let NumMicroOps = 2;
  816. let ResourceCycles = [1,1];
  817. }
  818. def: InstRW<[SKLWriteResGroup59], (instrs MMX_CVTPI2PDrr,
  819. CVTDQ2PDrr,
  820. VCVTDQ2PDrr)>;
  821. def SKLWriteResGroup60 : SchedWriteRes<[SKLPort5,SKLPort015]> {
  822. let Latency = 5;
  823. let NumMicroOps = 2;
  824. let ResourceCycles = [1,1];
  825. }
  826. def: InstRW<[SKLWriteResGroup60], (instregex "MMX_CVT(T?)PD2PIrr",
  827. "MMX_CVT(T?)PS2PIrr",
  828. "(V?)CVT(T?)PD2DQrr",
  829. "(V?)CVTPD2PSrr",
  830. "(V?)CVTPS2PDrr",
  831. "(V?)CVTSD2SSrr",
  832. "(V?)CVTSI642SDrr",
  833. "(V?)CVTSI2SDrr",
  834. "(V?)CVTSI2SSrr",
  835. "(V?)CVTSS2SDrr")>;
  836. def SKLWriteResGroup61 : SchedWriteRes<[SKLPort1,SKLPort6,SKLPort06]> {
  837. let Latency = 5;
  838. let NumMicroOps = 3;
  839. let ResourceCycles = [1,1,1];
  840. }
  841. def: InstRW<[SKLWriteResGroup61], (instregex "STR(16|32|64)r")>;
  842. def SKLWriteResGroup63 : SchedWriteRes<[SKLPort06,SKLPort0156]> {
  843. let Latency = 5;
  844. let NumMicroOps = 5;
  845. let ResourceCycles = [1,4];
  846. }
  847. def: InstRW<[SKLWriteResGroup63], (instrs XSETBV)>;
  848. def SKLWriteResGroup65 : SchedWriteRes<[SKLPort4,SKLPort237,SKLPort0156]> {
  849. let Latency = 5;
  850. let NumMicroOps = 6;
  851. let ResourceCycles = [1,1,4];
  852. }
  853. def: InstRW<[SKLWriteResGroup65], (instregex "PUSHF(16|64)")>;
  854. def SKLWriteResGroup67 : SchedWriteRes<[SKLPort23]> {
  855. let Latency = 6;
  856. let NumMicroOps = 1;
  857. let ResourceCycles = [1];
  858. }
  859. def: InstRW<[SKLWriteResGroup67], (instrs VBROADCASTSSrm,
  860. VPBROADCASTDrm,
  861. VPBROADCASTQrm)>;
  862. def: InstRW<[SKLWriteResGroup67], (instregex "(V?)MOVSHDUPrm",
  863. "(V?)MOVSLDUPrm")>;
  864. def SKLWriteResGroup68 : SchedWriteRes<[SKLPort0]> {
  865. let Latency = 6;
  866. let NumMicroOps = 2;
  867. let ResourceCycles = [2];
  868. }
  869. def: InstRW<[SKLWriteResGroup68], (instrs MMX_CVTPI2PSrr)>;
  870. def SKLWriteResGroup69 : SchedWriteRes<[SKLPort0,SKLPort23]> {
  871. let Latency = 6;
  872. let NumMicroOps = 2;
  873. let ResourceCycles = [1,1];
  874. }
  875. def: InstRW<[SKLWriteResGroup69], (instrs MMX_PADDSBrm,
  876. MMX_PADDSWrm,
  877. MMX_PADDUSBrm,
  878. MMX_PADDUSWrm,
  879. MMX_PAVGBrm,
  880. MMX_PAVGWrm,
  881. MMX_PCMPEQBrm,
  882. MMX_PCMPEQDrm,
  883. MMX_PCMPEQWrm,
  884. MMX_PCMPGTBrm,
  885. MMX_PCMPGTDrm,
  886. MMX_PCMPGTWrm,
  887. MMX_PMAXSWrm,
  888. MMX_PMAXUBrm,
  889. MMX_PMINSWrm,
  890. MMX_PMINUBrm,
  891. MMX_PSUBSBrm,
  892. MMX_PSUBSWrm,
  893. MMX_PSUBUSBrm,
  894. MMX_PSUBUSWrm)>;
  895. def SKLWriteResGroup70 : SchedWriteRes<[SKLPort0,SKLPort01]> {
  896. let Latency = 6;
  897. let NumMicroOps = 2;
  898. let ResourceCycles = [1,1];
  899. }
  900. def: InstRW<[SKLWriteResGroup70], (instregex "(V?)CVTSS2SI(64)?rr",
  901. "(V?)CVT(T?)SD2SI(64)?rr")>;
  902. def SKLWriteResGroup72 : SchedWriteRes<[SKLPort6,SKLPort23]> {
  903. let Latency = 6;
  904. let NumMicroOps = 2;
  905. let ResourceCycles = [1,1];
  906. }
  907. def: InstRW<[SKLWriteResGroup72], (instrs FARJMP64m)>;
  908. def: InstRW<[SKLWriteResGroup72], (instregex "JMP(16|32|64)m")>;
  909. def SKLWriteResGroup75 : SchedWriteRes<[SKLPort23,SKLPort15]> {
  910. let Latency = 6;
  911. let NumMicroOps = 2;
  912. let ResourceCycles = [1,1];
  913. }
  914. def: InstRW<[SKLWriteResGroup75], (instregex "ANDN(32|64)rm",
  915. "MOVBE(16|32|64)rm")>;
  916. def SKLWriteResGroup76 : SchedWriteRes<[SKLPort23,SKLPort0156]> {
  917. let Latency = 6;
  918. let NumMicroOps = 2;
  919. let ResourceCycles = [1,1];
  920. }
  921. def: InstRW<[SKLWriteResGroup76], (instrs POP16r, POP32r, POP64r)>;
  922. def: InstRW<[SKLWriteResGroup76], (instregex "POP(16|32|64)rmr")>;
  923. def SKLWriteResGroup78 : SchedWriteRes<[SKLPort5,SKLPort01]> {
  924. let Latency = 6;
  925. let NumMicroOps = 3;
  926. let ResourceCycles = [2,1];
  927. }
  928. def: InstRW<[SKLWriteResGroup78], (instregex "(V?)CVTSI642SSrr")>;
  929. def SKLWriteResGroup80 : SchedWriteRes<[SKLPort1,SKLPort6,SKLPort06,SKLPort0156]> {
  930. let Latency = 6;
  931. let NumMicroOps = 4;
  932. let ResourceCycles = [1,1,1,1];
  933. }
  934. def: InstRW<[SKLWriteResGroup80], (instregex "SLDT(16|32|64)r")>;
  935. def SKLWriteResGroup82 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort06]> {
  936. let Latency = 6;
  937. let NumMicroOps = 4;
  938. let ResourceCycles = [1,1,1,1];
  939. }
  940. def: InstRW<[SKLWriteResGroup82], (instregex "SAR(8|16|32|64)m(1|i)",
  941. "SHL(8|16|32|64)m(1|i)",
  942. "SHR(8|16|32|64)m(1|i)")>;
  943. def SKLWriteResGroup83 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort0156]> {
  944. let Latency = 6;
  945. let NumMicroOps = 4;
  946. let ResourceCycles = [1,1,1,1];
  947. }
  948. def: InstRW<[SKLWriteResGroup83], (instregex "POP(16|32|64)rmm",
  949. "PUSH(16|32|64)rmm")>;
  950. def SKLWriteResGroup84 : SchedWriteRes<[SKLPort6,SKLPort0156]> {
  951. let Latency = 6;
  952. let NumMicroOps = 6;
  953. let ResourceCycles = [1,5];
  954. }
  955. def: InstRW<[SKLWriteResGroup84], (instrs STD)>;
  956. def SKLWriteResGroup85 : SchedWriteRes<[SKLPort23]> {
  957. let Latency = 7;
  958. let NumMicroOps = 1;
  959. let ResourceCycles = [1];
  960. }
  961. def: InstRW<[SKLWriteResGroup85], (instregex "LD_F(32|64|80)m")>;
  962. def: InstRW<[SKLWriteResGroup85], (instrs VBROADCASTF128,
  963. VBROADCASTI128,
  964. VBROADCASTSDYrm,
  965. VBROADCASTSSYrm,
  966. VMOVDDUPYrm,
  967. VMOVSHDUPYrm,
  968. VMOVSLDUPYrm,
  969. VPBROADCASTDYrm,
  970. VPBROADCASTQYrm)>;
  971. def SKLWriteResGroup86 : SchedWriteRes<[SKLPort0,SKLPort5]> {
  972. let Latency = 7;
  973. let NumMicroOps = 2;
  974. let ResourceCycles = [1,1];
  975. }
  976. def: InstRW<[SKLWriteResGroup86], (instrs VCVTDQ2PDYrr)>;
  977. def SKLWriteResGroup88 : SchedWriteRes<[SKLPort5,SKLPort23]> {
  978. let Latency = 6;
  979. let NumMicroOps = 2;
  980. let ResourceCycles = [1,1];
  981. }
  982. def: InstRW<[SKLWriteResGroup88], (instregex "(V?)PMOV(SX|ZX)BDrm",
  983. "(V?)PMOV(SX|ZX)BQrm",
  984. "(V?)PMOV(SX|ZX)BWrm",
  985. "(V?)PMOV(SX|ZX)DQrm",
  986. "(V?)PMOV(SX|ZX)WDrm",
  987. "(V?)PMOV(SX|ZX)WQrm")>;
  988. def SKLWriteResGroup89 : SchedWriteRes<[SKLPort5,SKLPort01]> {
  989. let Latency = 7;
  990. let NumMicroOps = 2;
  991. let ResourceCycles = [1,1];
  992. }
  993. def: InstRW<[SKLWriteResGroup89], (instrs VCVTPD2PSYrr,
  994. VCVTPS2PDYrr,
  995. VCVTPD2DQYrr,
  996. VCVTTPD2DQYrr)>;
  997. def SKLWriteResGroup91 : SchedWriteRes<[SKLPort23,SKLPort015]> {
  998. let Latency = 7;
  999. let NumMicroOps = 2;
  1000. let ResourceCycles = [1,1];
  1001. }
  1002. def: InstRW<[SKLWriteResGroup91], (instrs VINSERTF128rm,
  1003. VINSERTI128rm,
  1004. VPBLENDDrmi)>;
  1005. def: InstRW<[SKLWriteResGroup91, ReadAfterVecXLd],
  1006. (instregex "(V?)PADD(B|D|Q|W)rm",
  1007. "(V?)PSUB(B|D|Q|W)rm")>;
  1008. def SKLWriteResGroup92 : SchedWriteRes<[SKLPort5,SKLPort23]> {
  1009. let Latency = 7;
  1010. let NumMicroOps = 3;
  1011. let ResourceCycles = [2,1];
  1012. }
  1013. def: InstRW<[SKLWriteResGroup92], (instrs MMX_PACKSSDWrm,
  1014. MMX_PACKSSWBrm,
  1015. MMX_PACKUSWBrm)>;
  1016. def SKLWriteResGroup94 : SchedWriteRes<[SKLPort23,SKLPort0156]> {
  1017. let Latency = 7;
  1018. let NumMicroOps = 3;
  1019. let ResourceCycles = [1,2];
  1020. }
  1021. def: InstRW<[SKLWriteResGroup94], (instrs LEAVE, LEAVE64,
  1022. SCASB, SCASL, SCASQ, SCASW)>;
  1023. def SKLWriteResGroup95 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort01]> {
  1024. let Latency = 7;
  1025. let NumMicroOps = 3;
  1026. let ResourceCycles = [1,1,1];
  1027. }
  1028. def: InstRW<[SKLWriteResGroup95], (instregex "(V?)CVTTSS2SI(64)?rr")>;
  1029. def SKLWriteResGroup96 : SchedWriteRes<[SKLPort0,SKLPort23,SKLPort05]> {
  1030. let Latency = 7;
  1031. let NumMicroOps = 3;
  1032. let ResourceCycles = [1,1,1];
  1033. }
  1034. def: InstRW<[SKLWriteResGroup96], (instrs FLDCW16m)>;
  1035. def SKLWriteResGroup98 : SchedWriteRes<[SKLPort6,SKLPort23,SKLPort0156]> {
  1036. let Latency = 7;
  1037. let NumMicroOps = 3;
  1038. let ResourceCycles = [1,1,1];
  1039. }
  1040. def: InstRW<[SKLWriteResGroup98], (instrs LRET64, RET64)>;
  1041. def SKLWriteResGroup100 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort06]> {
  1042. let Latency = 7;
  1043. let NumMicroOps = 5;
  1044. let ResourceCycles = [1,1,1,2];
  1045. }
  1046. def: InstRW<[SKLWriteResGroup100], (instregex "ROL(8|16|32|64)m(1|i)",
  1047. "ROR(8|16|32|64)m(1|i)")>;
  1048. def SKLWriteResGroup100_1 : SchedWriteRes<[SKLPort06]> {
  1049. let Latency = 2;
  1050. let NumMicroOps = 2;
  1051. let ResourceCycles = [2];
  1052. }
  1053. def: InstRW<[SKLWriteResGroup100_1], (instrs ROL8r1, ROL16r1, ROL32r1, ROL64r1,
  1054. ROR8r1, ROR16r1, ROR32r1, ROR64r1)>;
  1055. def SKLWriteResGroup101 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort0156]> {
  1056. let Latency = 7;
  1057. let NumMicroOps = 5;
  1058. let ResourceCycles = [1,1,1,2];
  1059. }
  1060. def: InstRW<[SKLWriteResGroup101], (instregex "XADD(8|16|32|64)rm")>;
  1061. def SKLWriteResGroup102 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort23,SKLPort237,SKLPort0156]> {
  1062. let Latency = 7;
  1063. let NumMicroOps = 5;
  1064. let ResourceCycles = [1,1,1,1,1];
  1065. }
  1066. def: InstRW<[SKLWriteResGroup102], (instregex "CALL(16|32|64)m")>;
  1067. def: InstRW<[SKLWriteResGroup102], (instrs FARCALL64m)>;
  1068. def SKLWriteResGroup103 : SchedWriteRes<[SKLPort6,SKLPort06,SKLPort15,SKLPort0156]> {
  1069. let Latency = 7;
  1070. let NumMicroOps = 7;
  1071. let ResourceCycles = [1,3,1,2];
  1072. }
  1073. def: InstRW<[SKLWriteResGroup103], (instrs LOOP)>;
  1074. def SKLWriteResGroup107 : SchedWriteRes<[SKLPort1,SKLPort23]> {
  1075. let Latency = 8;
  1076. let NumMicroOps = 2;
  1077. let ResourceCycles = [1,1];
  1078. }
  1079. def: InstRW<[SKLWriteResGroup107], (instregex "PDEP(32|64)rm",
  1080. "PEXT(32|64)rm")>;
  1081. def SKLWriteResGroup108 : SchedWriteRes<[SKLPort5,SKLPort23]> {
  1082. let Latency = 8;
  1083. let NumMicroOps = 2;
  1084. let ResourceCycles = [1,1];
  1085. }
  1086. def: InstRW<[SKLWriteResGroup108], (instregex "FCOM(P?)(32|64)m")>;
  1087. def: InstRW<[SKLWriteResGroup108], (instrs VPBROADCASTBYrm,
  1088. VPBROADCASTWYrm,
  1089. VPMOVSXBDYrm,
  1090. VPMOVSXBQYrm,
  1091. VPMOVSXWQYrm)>;
  1092. def SKLWriteResGroup110 : SchedWriteRes<[SKLPort23,SKLPort015]> {
  1093. let Latency = 8;
  1094. let NumMicroOps = 2;
  1095. let ResourceCycles = [1,1];
  1096. }
  1097. def: InstRW<[SKLWriteResGroup110], (instrs VPBLENDDYrmi)>;
  1098. def: InstRW<[SKLWriteResGroup110, ReadAfterVecYLd],
  1099. (instregex "VPADD(B|D|Q|W)Yrm",
  1100. "VPSUB(B|D|Q|W)Yrm")>;
  1101. def SKLWriteResGroup112 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
  1102. let Latency = 8;
  1103. let NumMicroOps = 4;
  1104. let ResourceCycles = [1,2,1];
  1105. }
  1106. def: InstRW<[SKLWriteResGroup112], (instregex "MMX_PH(ADD|SUB)SWrm")>;
  1107. def SKLWriteResGroup116 : SchedWriteRes<[SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
  1108. let Latency = 8;
  1109. let NumMicroOps = 5;
  1110. let ResourceCycles = [1,1,1,2];
  1111. }
  1112. def: InstRW<[SKLWriteResGroup116], (instregex "RCL(8|16|32|64)m(1|i)",
  1113. "RCR(8|16|32|64)m(1|i)")>;
  1114. def SKLWriteResGroup117 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort06]> {
  1115. let Latency = 8;
  1116. let NumMicroOps = 6;
  1117. let ResourceCycles = [1,1,1,3];
  1118. }
  1119. def: InstRW<[SKLWriteResGroup117], (instregex "ROL(8|16|32|64)mCL",
  1120. "ROR(8|16|32|64)mCL",
  1121. "SAR(8|16|32|64)mCL",
  1122. "SHL(8|16|32|64)mCL",
  1123. "SHR(8|16|32|64)mCL")>;
  1124. def SKLWriteResGroup119 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
  1125. let Latency = 8;
  1126. let NumMicroOps = 6;
  1127. let ResourceCycles = [1,1,1,2,1];
  1128. }
  1129. def: SchedAlias<WriteADCRMW, SKLWriteResGroup119>;
  1130. def SKLWriteResGroup120 : SchedWriteRes<[SKLPort0,SKLPort23]> {
  1131. let Latency = 9;
  1132. let NumMicroOps = 2;
  1133. let ResourceCycles = [1,1];
  1134. }
  1135. def: InstRW<[SKLWriteResGroup120], (instrs MMX_CVTPI2PSrm)>;
  1136. def SKLWriteResGroup121 : SchedWriteRes<[SKLPort5,SKLPort23]> {
  1137. let Latency = 9;
  1138. let NumMicroOps = 2;
  1139. let ResourceCycles = [1,1];
  1140. }
  1141. def: InstRW<[SKLWriteResGroup121], (instrs PCMPGTQrm,
  1142. VPCMPGTQrm,
  1143. VPMOVSXBWYrm,
  1144. VPMOVSXDQYrm,
  1145. VPMOVSXWDYrm,
  1146. VPMOVZXWDYrm)>;
  1147. def SKLWriteResGroup123 : SchedWriteRes<[SKLPort23,SKLPort01]> {
  1148. let Latency = 9;
  1149. let NumMicroOps = 2;
  1150. let ResourceCycles = [1,1];
  1151. }
  1152. def: InstRW<[SKLWriteResGroup123], (instregex "MMX_CVT(T?)PS2PIrm",
  1153. "(V?)CVTPS2PDrm")>;
  1154. def SKLWriteResGroup128 : SchedWriteRes<[SKLPort5,SKLPort01,SKLPort23]> {
  1155. let Latency = 9;
  1156. let NumMicroOps = 4;
  1157. let ResourceCycles = [2,1,1];
  1158. }
  1159. def: InstRW<[SKLWriteResGroup128], (instregex "(V?)PHADDSWrm",
  1160. "(V?)PHSUBSWrm")>;
  1161. def SKLWriteResGroup131 : SchedWriteRes<[SKLPort1,SKLPort6,SKLPort23,SKLPort0156]> {
  1162. let Latency = 9;
  1163. let NumMicroOps = 5;
  1164. let ResourceCycles = [1,2,1,1];
  1165. }
  1166. def: InstRW<[SKLWriteResGroup131], (instregex "LAR(16|32|64)rm",
  1167. "LSL(16|32|64)rm")>;
  1168. def SKLWriteResGroup133 : SchedWriteRes<[SKLPort5,SKLPort23]> {
  1169. let Latency = 10;
  1170. let NumMicroOps = 2;
  1171. let ResourceCycles = [1,1];
  1172. }
  1173. def: InstRW<[SKLWriteResGroup133], (instregex "(ADD|SUB|SUBR)_F(32|64)m",
  1174. "ILD_F(16|32|64)m")>;
  1175. def: InstRW<[SKLWriteResGroup133], (instrs VPCMPGTQYrm)>;
  1176. def SKLWriteResGroup134 : SchedWriteRes<[SKLPort01,SKLPort23]> {
  1177. let Latency = 10;
  1178. let NumMicroOps = 2;
  1179. let ResourceCycles = [1,1];
  1180. }
  1181. def: InstRW<[SKLWriteResGroup134], (instregex "(V?)CVTDQ2PSrm",
  1182. "(V?)CVTPS2DQrm",
  1183. "(V?)CVTSS2SDrm",
  1184. "(V?)CVTTPS2DQrm")>;
  1185. def SKLWriteResGroup138 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
  1186. let Latency = 10;
  1187. let NumMicroOps = 3;
  1188. let ResourceCycles = [1,1,1];
  1189. }
  1190. def: InstRW<[SKLWriteResGroup138], (instrs MMX_CVTPI2PDrm)>;
  1191. def SKLWriteResGroup139 : SchedWriteRes<[SKLPort5,SKLPort23,SKLPort01]> {
  1192. let Latency = 10;
  1193. let NumMicroOps = 3;
  1194. let ResourceCycles = [1,1,1];
  1195. }
  1196. def: InstRW<[SKLWriteResGroup139], (instregex "(V?)CVTSD2SSrm")>;
  1197. def SKLWriteResGroup140 : SchedWriteRes<[SKLPort5,SKLPort01,SKLPort23]> {
  1198. let Latency = 10;
  1199. let NumMicroOps = 4;
  1200. let ResourceCycles = [2,1,1];
  1201. }
  1202. def: InstRW<[SKLWriteResGroup140], (instrs VPHADDSWYrm,
  1203. VPHSUBSWYrm)>;
  1204. def SKLWriteResGroup143 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
  1205. let Latency = 10;
  1206. let NumMicroOps = 8;
  1207. let ResourceCycles = [1,1,1,1,1,3];
  1208. }
  1209. def: InstRW<[SKLWriteResGroup143], (instregex "XCHG(8|16|32|64)rm")>;
  1210. def SKLWriteResGroup145 : SchedWriteRes<[SKLPort0,SKLFPDivider]> {
  1211. let Latency = 11;
  1212. let NumMicroOps = 1;
  1213. let ResourceCycles = [1,3];
  1214. }
  1215. def : SchedAlias<WriteFDivX, SKLWriteResGroup145>; // TODO - convert to ZnWriteResFpuPair
  1216. def SKLWriteResGroup146 : SchedWriteRes<[SKLPort0,SKLPort23]> {
  1217. let Latency = 11;
  1218. let NumMicroOps = 2;
  1219. let ResourceCycles = [1,1];
  1220. }
  1221. def: InstRW<[SKLWriteResGroup146], (instregex "MUL_F(32|64)m")>;
  1222. def SKLWriteResGroup147 : SchedWriteRes<[SKLPort01,SKLPort23]> {
  1223. let Latency = 11;
  1224. let NumMicroOps = 2;
  1225. let ResourceCycles = [1,1];
  1226. }
  1227. def: InstRW<[SKLWriteResGroup147], (instrs VCVTDQ2PSYrm,
  1228. VCVTPS2PDYrm,
  1229. VCVTPS2DQYrm,
  1230. VCVTTPS2DQYrm)>;
  1231. def SKLWriteResGroup149 : SchedWriteRes<[SKLPort5,SKLPort23]> {
  1232. let Latency = 11;
  1233. let NumMicroOps = 3;
  1234. let ResourceCycles = [2,1];
  1235. }
  1236. def: InstRW<[SKLWriteResGroup149], (instregex "FICOM(P?)(16|32)m")>;
  1237. def SKLWriteResGroup150 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
  1238. let Latency = 11;
  1239. let NumMicroOps = 3;
  1240. let ResourceCycles = [1,1,1];
  1241. }
  1242. def: InstRW<[SKLWriteResGroup150], (instregex "(V?)CVTDQ2PDrm")>;
  1243. def SKLWriteResGroup151 : SchedWriteRes<[SKLPort0,SKLPort23,SKLPort01]> {
  1244. let Latency = 11;
  1245. let NumMicroOps = 3;
  1246. let ResourceCycles = [1,1,1];
  1247. }
  1248. def: InstRW<[SKLWriteResGroup151], (instregex "(V?)CVTSS2SI64rm",
  1249. "(V?)CVT(T?)SD2SI(64)?rm",
  1250. "VCVTTSS2SI64rm",
  1251. "(V?)CVT(T?)SS2SIrm")>;
  1252. def SKLWriteResGroup152 : SchedWriteRes<[SKLPort5,SKLPort23,SKLPort01]> {
  1253. let Latency = 11;
  1254. let NumMicroOps = 3;
  1255. let ResourceCycles = [1,1,1];
  1256. }
  1257. def: InstRW<[SKLWriteResGroup152], (instrs CVTPD2PSrm,
  1258. CVTPD2DQrm,
  1259. CVTTPD2DQrm,
  1260. MMX_CVTPD2PIrm,
  1261. MMX_CVTTPD2PIrm)>;
  1262. def SKLWriteResGroup154 : SchedWriteRes<[SKLPort1,SKLPort06,SKLPort0156]> {
  1263. let Latency = 11;
  1264. let NumMicroOps = 7;
  1265. let ResourceCycles = [2,3,2];
  1266. }
  1267. def: InstRW<[SKLWriteResGroup154], (instregex "RCL(16|32|64)rCL",
  1268. "RCR(16|32|64)rCL")>;
  1269. def SKLWriteResGroup155 : SchedWriteRes<[SKLPort1,SKLPort06,SKLPort15,SKLPort0156]> {
  1270. let Latency = 11;
  1271. let NumMicroOps = 9;
  1272. let ResourceCycles = [1,5,1,2];
  1273. }
  1274. def: InstRW<[SKLWriteResGroup155], (instrs RCL8rCL)>;
  1275. def SKLWriteResGroup156 : SchedWriteRes<[SKLPort06,SKLPort0156]> {
  1276. let Latency = 11;
  1277. let NumMicroOps = 11;
  1278. let ResourceCycles = [2,9];
  1279. }
  1280. def: InstRW<[SKLWriteResGroup156], (instrs LOOPE, LOOPNE)>;
  1281. def SKLWriteResGroup160 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23,SKLPort01]> {
  1282. let Latency = 12;
  1283. let NumMicroOps = 4;
  1284. let ResourceCycles = [1,1,1,1];
  1285. }
  1286. def: InstRW<[SKLWriteResGroup160], (instregex "CVTTSS2SI64rm")>;
  1287. def SKLWriteResGroup162 : SchedWriteRes<[SKLPort5,SKLPort23]> {
  1288. let Latency = 13;
  1289. let NumMicroOps = 3;
  1290. let ResourceCycles = [2,1];
  1291. }
  1292. def: InstRW<[SKLWriteResGroup162], (instregex "(ADD|SUB|SUBR)_FI(16|32)m")>;
  1293. def SKLWriteResGroup163 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
  1294. let Latency = 13;
  1295. let NumMicroOps = 3;
  1296. let ResourceCycles = [1,1,1];
  1297. }
  1298. def: InstRW<[SKLWriteResGroup163], (instrs VCVTDQ2PDYrm)>;
  1299. def SKLWriteResGroup166 : SchedWriteRes<[SKLPort0,SKLFPDivider]> {
  1300. let Latency = 14;
  1301. let NumMicroOps = 1;
  1302. let ResourceCycles = [1,3];
  1303. }
  1304. def : SchedAlias<WriteFDiv64, SKLWriteResGroup166>; // TODO - convert to ZnWriteResFpuPair
  1305. def : SchedAlias<WriteFDiv64X, SKLWriteResGroup166>; // TODO - convert to ZnWriteResFpuPair
  1306. def SKLWriteResGroup166_1 : SchedWriteRes<[SKLPort0,SKLFPDivider]> {
  1307. let Latency = 14;
  1308. let NumMicroOps = 1;
  1309. let ResourceCycles = [1,5];
  1310. }
  1311. def : SchedAlias<WriteFDiv64Y, SKLWriteResGroup166_1>; // TODO - convert to ZnWriteResFpuPair
  1312. def SKLWriteResGroup169 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
  1313. let Latency = 14;
  1314. let NumMicroOps = 3;
  1315. let ResourceCycles = [1,1,1];
  1316. }
  1317. def: InstRW<[SKLWriteResGroup169], (instregex "MUL_FI(16|32)m")>;
  1318. def SKLWriteResGroup170 : SchedWriteRes<[SKLPort1,SKLPort06,SKLPort15,SKLPort0156]> {
  1319. let Latency = 14;
  1320. let NumMicroOps = 10;
  1321. let ResourceCycles = [2,4,1,3];
  1322. }
  1323. def: InstRW<[SKLWriteResGroup170], (instrs RCR8rCL)>;
  1324. def SKLWriteResGroup171 : SchedWriteRes<[SKLPort0]> {
  1325. let Latency = 15;
  1326. let NumMicroOps = 1;
  1327. let ResourceCycles = [1];
  1328. }
  1329. def: InstRW<[SKLWriteResGroup171], (instregex "DIVR_(FPrST0|FST0r|FrST0)")>;
  1330. def SKLWriteResGroup174 : SchedWriteRes<[SKLPort1,SKLPort23,SKLPort237,SKLPort06,SKLPort15,SKLPort0156]> {
  1331. let Latency = 15;
  1332. let NumMicroOps = 10;
  1333. let ResourceCycles = [1,1,1,5,1,1];
  1334. }
  1335. def: InstRW<[SKLWriteResGroup174], (instregex "RCL(8|16|32|64)mCL")>;
  1336. def SKLWriteResGroup177 : SchedWriteRes<[SKLPort4,SKLPort23,SKLPort237,SKLPort06,SKLPort15,SKLPort0156]> {
  1337. let Latency = 16;
  1338. let NumMicroOps = 14;
  1339. let ResourceCycles = [1,1,1,4,2,5];
  1340. }
  1341. def: InstRW<[SKLWriteResGroup177], (instrs CMPXCHG8B)>;
  1342. def SKLWriteResGroup178 : SchedWriteRes<[SKLPort0156]> {
  1343. let Latency = 16;
  1344. let NumMicroOps = 16;
  1345. let ResourceCycles = [16];
  1346. }
  1347. def: InstRW<[SKLWriteResGroup178], (instrs VZEROALL)>;
  1348. def SKLWriteResGroup179 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
  1349. let Latency = 17;
  1350. let NumMicroOps = 2;
  1351. let ResourceCycles = [1,1,5];
  1352. }
  1353. def : SchedAlias<WriteFDivXLd, SKLWriteResGroup179>; // TODO - convert to ZnWriteResFpuPair
  1354. def SKLWriteResGroup180 : SchedWriteRes<[SKLPort0,SKLPort1,SKLPort5,SKLPort6,SKLPort05,SKLPort0156]> {
  1355. let Latency = 17;
  1356. let NumMicroOps = 15;
  1357. let ResourceCycles = [2,1,2,4,2,4];
  1358. }
  1359. def: InstRW<[SKLWriteResGroup180], (instrs XCH_F)>;
  1360. def SKLWriteResGroup184 : SchedWriteRes<[SKLPort5,SKLPort6,SKLPort06,SKLPort0156]> {
  1361. let Latency = 18;
  1362. let NumMicroOps = 8;
  1363. let ResourceCycles = [1,1,1,5];
  1364. }
  1365. def: InstRW<[SKLWriteResGroup184], (instrs CPUID, RDTSC)>;
  1366. def SKLWriteResGroup185 : SchedWriteRes<[SKLPort1,SKLPort23,SKLPort237,SKLPort06,SKLPort15,SKLPort0156]> {
  1367. let Latency = 18;
  1368. let NumMicroOps = 11;
  1369. let ResourceCycles = [2,1,1,4,1,2];
  1370. }
  1371. def: InstRW<[SKLWriteResGroup185], (instregex "RCR(8|16|32|64)mCL")>;
  1372. def SKLWriteResGroup186 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
  1373. let Latency = 19;
  1374. let NumMicroOps = 2;
  1375. let ResourceCycles = [1,1,4];
  1376. }
  1377. def : SchedAlias<WriteFDiv64Ld, SKLWriteResGroup186>; // TODO - convert to ZnWriteResFpuPair
  1378. def SKLWriteResGroup189 : SchedWriteRes<[SKLPort0]> {
  1379. let Latency = 20;
  1380. let NumMicroOps = 1;
  1381. let ResourceCycles = [1];
  1382. }
  1383. def: InstRW<[SKLWriteResGroup189], (instregex "DIV_(FPrST0|FST0r|FrST0)")>;
  1384. def SKLWriteResGroup190 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
  1385. let Latency = 20;
  1386. let NumMicroOps = 2;
  1387. let ResourceCycles = [1,1,4];
  1388. }
  1389. def : SchedAlias<WriteFDiv64XLd, SKLWriteResGroup190>; // TODO - convert to ZnWriteResFpuPair
  1390. def SKLWriteResGroup192 : SchedWriteRes<[SKLPort4,SKLPort5,SKLPort6,SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
  1391. let Latency = 20;
  1392. let NumMicroOps = 8;
  1393. let ResourceCycles = [1,1,1,1,1,1,2];
  1394. }
  1395. def: InstRW<[SKLWriteResGroup192], (instrs INSB, INSL, INSW)>;
  1396. def SKLWriteResGroup193 : SchedWriteRes<[SKLPort5,SKLPort6,SKLPort0156]> {
  1397. let Latency = 20;
  1398. let NumMicroOps = 10;
  1399. let ResourceCycles = [1,2,7];
  1400. }
  1401. def: InstRW<[SKLWriteResGroup193], (instrs MWAITrr)>;
  1402. def SKLWriteResGroup195 : SchedWriteRes<[SKLPort0,SKLPort23,SKLFPDivider]> {
  1403. let Latency = 21;
  1404. let NumMicroOps = 2;
  1405. let ResourceCycles = [1,1,8];
  1406. }
  1407. def : SchedAlias<WriteFDiv64YLd, SKLWriteResGroup195>; // TODO - convert to ZnWriteResFpuPair
  1408. def SKLWriteResGroup196 : SchedWriteRes<[SKLPort0,SKLPort23]> {
  1409. let Latency = 22;
  1410. let NumMicroOps = 2;
  1411. let ResourceCycles = [1,1];
  1412. }
  1413. def: InstRW<[SKLWriteResGroup196], (instregex "DIV_F(32|64)m")>;
  1414. def SKLWriteResGroupVEX2 : SchedWriteRes<[SKLPort0, SKLPort23, SKLPort5, SKLPort015]> {
  1415. let Latency = 18;
  1416. let NumMicroOps = 5; // 2 uops perform multiple loads
  1417. let ResourceCycles = [1,2,1,1];
  1418. }
  1419. def: InstRW<[SKLWriteResGroupVEX2], (instrs VGATHERDPDrm, VPGATHERDQrm,
  1420. VGATHERQPDrm, VPGATHERQQrm,
  1421. VGATHERQPSrm, VPGATHERQDrm)>;
  1422. def SKLWriteResGroupVEX4 : SchedWriteRes<[SKLPort0, SKLPort23, SKLPort5, SKLPort015]> {
  1423. let Latency = 20;
  1424. let NumMicroOps = 5; // 2 uops peform multiple loads
  1425. let ResourceCycles = [1,4,1,1];
  1426. }
  1427. def: InstRW<[SKLWriteResGroupVEX4], (instrs VGATHERDPDYrm, VPGATHERDQYrm,
  1428. VGATHERDPSrm, VPGATHERDDrm,
  1429. VGATHERQPDYrm, VPGATHERQQYrm,
  1430. VGATHERQPSYrm, VPGATHERQDYrm)>;
  1431. def SKLWriteResGroupVEX8 : SchedWriteRes<[SKLPort0, SKLPort23, SKLPort5, SKLPort015]> {
  1432. let Latency = 22;
  1433. let NumMicroOps = 5; // 2 uops perform multiple loads
  1434. let ResourceCycles = [1,8,1,1];
  1435. }
  1436. def: InstRW<[SKLWriteResGroupVEX8], (instrs VGATHERDPSYrm, VPGATHERDDYrm)>;
  1437. def SKLWriteResGroup198 : SchedWriteRes<[SKLPort0,SKLPort4,SKLPort5,SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
  1438. let Latency = 23;
  1439. let NumMicroOps = 19;
  1440. let ResourceCycles = [2,1,4,1,1,4,6];
  1441. }
  1442. def: InstRW<[SKLWriteResGroup198], (instrs CMPXCHG16B)>;
  1443. def SKLWriteResGroup202 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
  1444. let Latency = 25;
  1445. let NumMicroOps = 3;
  1446. let ResourceCycles = [1,1,1];
  1447. }
  1448. def: InstRW<[SKLWriteResGroup202], (instregex "DIV_FI(16|32)m")>;
  1449. def SKLWriteResGroup206 : SchedWriteRes<[SKLPort0,SKLPort23]> {
  1450. let Latency = 27;
  1451. let NumMicroOps = 2;
  1452. let ResourceCycles = [1,1];
  1453. }
  1454. def: InstRW<[SKLWriteResGroup206], (instregex "DIVR_F(32|64)m")>;
  1455. def SKLWriteResGroup208 : SchedWriteRes<[SKLPort0,SKLPort5,SKLPort23]> {
  1456. let Latency = 30;
  1457. let NumMicroOps = 3;
  1458. let ResourceCycles = [1,1,1];
  1459. }
  1460. def: InstRW<[SKLWriteResGroup208], (instregex "DIVR_FI(16|32)m")>;
  1461. def SKLWriteResGroup209 : SchedWriteRes<[SKLPort5,SKLPort6,SKLPort23,SKLPort06,SKLPort0156]> {
  1462. let Latency = 35;
  1463. let NumMicroOps = 23;
  1464. let ResourceCycles = [1,5,3,4,10];
  1465. }
  1466. def: InstRW<[SKLWriteResGroup209], (instregex "IN(8|16|32)ri",
  1467. "IN(8|16|32)rr")>;
  1468. def SKLWriteResGroup210 : SchedWriteRes<[SKLPort5,SKLPort6,SKLPort23,SKLPort237,SKLPort06,SKLPort0156]> {
  1469. let Latency = 35;
  1470. let NumMicroOps = 23;
  1471. let ResourceCycles = [1,5,2,1,4,10];
  1472. }
  1473. def: InstRW<[SKLWriteResGroup210], (instregex "OUT(8|16|32)ir",
  1474. "OUT(8|16|32)rr")>;
  1475. def SKLWriteResGroup211 : SchedWriteRes<[SKLPort1,SKLPort6,SKLPort23,SKLPort0156]> {
  1476. let Latency = 37;
  1477. let NumMicroOps = 31;
  1478. let ResourceCycles = [1,8,1,21];
  1479. }
  1480. def: InstRW<[SKLWriteResGroup211], (instregex "XRSTOR(64)?")>;
  1481. def SKLWriteResGroup212 : SchedWriteRes<[SKLPort1,SKLPort4,SKLPort5,SKLPort6,SKLPort23,SKLPort237,SKLPort15,SKLPort0156]> {
  1482. let Latency = 40;
  1483. let NumMicroOps = 18;
  1484. let ResourceCycles = [1,1,2,3,1,1,1,8];
  1485. }
  1486. def: InstRW<[SKLWriteResGroup212], (instrs VMCLEARm)>;
  1487. def SKLWriteResGroup213 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort23,SKLPort237,SKLPort0156]> {
  1488. let Latency = 41;
  1489. let NumMicroOps = 39;
  1490. let ResourceCycles = [1,10,1,1,26];
  1491. }
  1492. def: InstRW<[SKLWriteResGroup213], (instrs XSAVE64)>;
  1493. def SKLWriteResGroup214 : SchedWriteRes<[SKLPort5,SKLPort0156]> {
  1494. let Latency = 42;
  1495. let NumMicroOps = 22;
  1496. let ResourceCycles = [2,20];
  1497. }
  1498. def: InstRW<[SKLWriteResGroup214], (instrs RDTSCP)>;
  1499. def SKLWriteResGroup215 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort23,SKLPort237,SKLPort0156]> {
  1500. let Latency = 42;
  1501. let NumMicroOps = 40;
  1502. let ResourceCycles = [1,11,1,1,26];
  1503. }
  1504. def: InstRW<[SKLWriteResGroup215], (instrs XSAVE)>;
  1505. def: InstRW<[SKLWriteResGroup215], (instregex "XSAVEC", "XSAVES")>;
  1506. def SKLWriteResGroup216 : SchedWriteRes<[SKLPort4,SKLPort6,SKLPort23,SKLPort237,SKLPort0156]> {
  1507. let Latency = 46;
  1508. let NumMicroOps = 44;
  1509. let ResourceCycles = [1,11,1,1,30];
  1510. }
  1511. def: InstRW<[SKLWriteResGroup216], (instregex "XSAVEOPT")>;
  1512. def SKLWriteResGroup217 : SchedWriteRes<[SKLPort0,SKLPort23,SKLPort05,SKLPort06,SKLPort0156]> {
  1513. let Latency = 62;
  1514. let NumMicroOps = 64;
  1515. let ResourceCycles = [2,8,5,10,39];
  1516. }
  1517. def: InstRW<[SKLWriteResGroup217], (instrs FLDENVm)>;
  1518. def SKLWriteResGroup218 : SchedWriteRes<[SKLPort0,SKLPort6,SKLPort23,SKLPort05,SKLPort06,SKLPort15,SKLPort0156]> {
  1519. let Latency = 63;
  1520. let NumMicroOps = 88;
  1521. let ResourceCycles = [4,4,31,1,2,1,45];
  1522. }
  1523. def: InstRW<[SKLWriteResGroup218], (instrs FXRSTOR64)>;
  1524. def SKLWriteResGroup219 : SchedWriteRes<[SKLPort0,SKLPort6,SKLPort23,SKLPort05,SKLPort06,SKLPort15,SKLPort0156]> {
  1525. let Latency = 63;
  1526. let NumMicroOps = 90;
  1527. let ResourceCycles = [4,2,33,1,2,1,47];
  1528. }
  1529. def: InstRW<[SKLWriteResGroup219], (instrs FXRSTOR)>;
  1530. def SKLWriteResGroup220 : SchedWriteRes<[SKLPort5,SKLPort05,SKLPort0156]> {
  1531. let Latency = 75;
  1532. let NumMicroOps = 15;
  1533. let ResourceCycles = [6,3,6];
  1534. }
  1535. def: InstRW<[SKLWriteResGroup220], (instrs FNINIT)>;
  1536. def SKLWriteResGroup223 : SchedWriteRes<[SKLPort0,SKLPort1,SKLPort4,SKLPort5,SKLPort6,SKLPort237,SKLPort06,SKLPort0156]> {
  1537. let Latency = 106;
  1538. let NumMicroOps = 100;
  1539. let ResourceCycles = [9,1,11,16,1,11,21,30];
  1540. }
  1541. def: InstRW<[SKLWriteResGroup223], (instrs FSTENVm)>;
  1542. def: InstRW<[WriteZero], (instrs CLC)>;
  1543. // Instruction variants handled by the renamer. These might not need execution
  1544. // ports in certain conditions.
  1545. // See Agner's Fog "The microarchitecture of Intel, AMD and VIA CPUs",
  1546. // section "Skylake Pipeline" > "Register allocation and renaming".
  1547. // These can be investigated with llvm-exegesis, e.g.
  1548. // echo 'pxor %mm0, %mm0' | /tmp/llvm-exegesis -mode=uops -snippets-file=-
  1549. // echo 'vxorpd %xmm0, %xmm0, %xmm1' | /tmp/llvm-exegesis -mode=uops -snippets-file=-
  1550. def SKLWriteZeroLatency : SchedWriteRes<[]> {
  1551. let Latency = 0;
  1552. }
  1553. def SKLWriteZeroIdiom : SchedWriteVariant<[
  1554. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKLWriteZeroLatency]>,
  1555. SchedVar<NoSchedPred, [WriteALU]>
  1556. ]>;
  1557. def : InstRW<[SKLWriteZeroIdiom], (instrs SUB32rr, SUB64rr,
  1558. XOR32rr, XOR64rr)>;
  1559. def SKLWriteFZeroIdiom : SchedWriteVariant<[
  1560. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKLWriteZeroLatency]>,
  1561. SchedVar<NoSchedPred, [WriteFLogic]>
  1562. ]>;
  1563. def : InstRW<[SKLWriteFZeroIdiom], (instrs XORPSrr, VXORPSrr, XORPDrr,
  1564. VXORPDrr)>;
  1565. def SKLWriteFZeroIdiomY : SchedWriteVariant<[
  1566. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKLWriteZeroLatency]>,
  1567. SchedVar<NoSchedPred, [WriteFLogicY]>
  1568. ]>;
  1569. def : InstRW<[SKLWriteFZeroIdiomY], (instrs VXORPSYrr, VXORPDYrr)>;
  1570. def SKLWriteVZeroIdiomLogicX : SchedWriteVariant<[
  1571. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKLWriteZeroLatency]>,
  1572. SchedVar<NoSchedPred, [WriteVecLogicX]>
  1573. ]>;
  1574. def : InstRW<[SKLWriteVZeroIdiomLogicX], (instrs PXORrr, VPXORrr)>;
  1575. def SKLWriteVZeroIdiomLogicY : SchedWriteVariant<[
  1576. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKLWriteZeroLatency]>,
  1577. SchedVar<NoSchedPred, [WriteVecLogicY]>
  1578. ]>;
  1579. def : InstRW<[SKLWriteVZeroIdiomLogicY], (instrs VPXORYrr)>;
  1580. def SKLWriteVZeroIdiomALUX : SchedWriteVariant<[
  1581. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKLWriteZeroLatency]>,
  1582. SchedVar<NoSchedPred, [WriteVecALUX]>
  1583. ]>;
  1584. def : InstRW<[SKLWriteVZeroIdiomALUX], (instrs PCMPGTBrr, VPCMPGTBrr,
  1585. PCMPGTDrr, VPCMPGTDrr,
  1586. PCMPGTWrr, VPCMPGTWrr)>;
  1587. def SKLWriteVZeroIdiomALUY : SchedWriteVariant<[
  1588. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKLWriteZeroLatency]>,
  1589. SchedVar<NoSchedPred, [WriteVecALUY]>
  1590. ]>;
  1591. def : InstRW<[SKLWriteVZeroIdiomALUY], (instrs VPCMPGTBYrr,
  1592. VPCMPGTDYrr,
  1593. VPCMPGTWYrr)>;
  1594. def SKLWritePSUB : SchedWriteRes<[SKLPort015]> {
  1595. let Latency = 1;
  1596. let NumMicroOps = 1;
  1597. let ResourceCycles = [1];
  1598. }
  1599. def SKLWriteVZeroIdiomPSUB : SchedWriteVariant<[
  1600. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKLWriteZeroLatency]>,
  1601. SchedVar<NoSchedPred, [SKLWritePSUB]>
  1602. ]>;
  1603. def : InstRW<[SKLWriteVZeroIdiomPSUB], (instrs PSUBBrr, VPSUBBrr,
  1604. PSUBDrr, VPSUBDrr,
  1605. PSUBQrr, VPSUBQrr,
  1606. PSUBWrr, VPSUBWrr,
  1607. VPSUBBYrr,
  1608. VPSUBDYrr,
  1609. VPSUBQYrr,
  1610. VPSUBWYrr)>;
  1611. def SKLWritePCMPGTQ : SchedWriteRes<[SKLPort5]> {
  1612. let Latency = 3;
  1613. let NumMicroOps = 1;
  1614. let ResourceCycles = [1];
  1615. }
  1616. def SKLWriteVZeroIdiomPCMPGTQ : SchedWriteVariant<[
  1617. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKLWriteZeroLatency]>,
  1618. SchedVar<NoSchedPred, [SKLWritePCMPGTQ]>
  1619. ]>;
  1620. def : InstRW<[SKLWriteVZeroIdiomPCMPGTQ], (instrs PCMPGTQrr, VPCMPGTQrr,
  1621. VPCMPGTQYrr)>;
  1622. // CMOVs that use both Z and C flag require an extra uop.
  1623. def SKLWriteCMOVA_CMOVBErr : SchedWriteRes<[SKLPort06]> {
  1624. let Latency = 2;
  1625. let ResourceCycles = [2];
  1626. let NumMicroOps = 2;
  1627. }
  1628. def SKLWriteCMOVA_CMOVBErm : SchedWriteRes<[SKLPort23,SKLPort06]> {
  1629. let Latency = 7;
  1630. let ResourceCycles = [1,2];
  1631. let NumMicroOps = 3;
  1632. }
  1633. def SKLCMOVA_CMOVBErr : SchedWriteVariant<[
  1634. SchedVar<MCSchedPredicate<IsCMOVArr_Or_CMOVBErr>, [SKLWriteCMOVA_CMOVBErr]>,
  1635. SchedVar<NoSchedPred, [WriteCMOV]>
  1636. ]>;
  1637. def SKLCMOVA_CMOVBErm : SchedWriteVariant<[
  1638. SchedVar<MCSchedPredicate<IsCMOVArm_Or_CMOVBErm>, [SKLWriteCMOVA_CMOVBErm]>,
  1639. SchedVar<NoSchedPred, [WriteCMOV.Folded]>
  1640. ]>;
  1641. def : InstRW<[SKLCMOVA_CMOVBErr], (instrs CMOV16rr, CMOV32rr, CMOV64rr)>;
  1642. def : InstRW<[SKLCMOVA_CMOVBErm], (instrs CMOV16rm, CMOV32rm, CMOV64rm)>;
  1643. // SETCCs that use both Z and C flag require an extra uop.
  1644. def SKLWriteSETA_SETBEr : SchedWriteRes<[SKLPort06]> {
  1645. let Latency = 2;
  1646. let ResourceCycles = [2];
  1647. let NumMicroOps = 2;
  1648. }
  1649. def SKLWriteSETA_SETBEm : SchedWriteRes<[SKLPort4,SKLPort237,SKLPort06]> {
  1650. let Latency = 3;
  1651. let ResourceCycles = [1,1,2];
  1652. let NumMicroOps = 4;
  1653. }
  1654. def SKLSETA_SETBErr : SchedWriteVariant<[
  1655. SchedVar<MCSchedPredicate<IsSETAr_Or_SETBEr>, [SKLWriteSETA_SETBEr]>,
  1656. SchedVar<NoSchedPred, [WriteSETCC]>
  1657. ]>;
  1658. def SKLSETA_SETBErm : SchedWriteVariant<[
  1659. SchedVar<MCSchedPredicate<IsSETAm_Or_SETBEm>, [SKLWriteSETA_SETBEm]>,
  1660. SchedVar<NoSchedPred, [WriteSETCCStore]>
  1661. ]>;
  1662. def : InstRW<[SKLSETA_SETBErr], (instrs SETCCr)>;
  1663. def : InstRW<[SKLSETA_SETBErm], (instrs SETCCm)>;
  1664. ///////////////////////////////////////////////////////////////////////////////
  1665. // Dependency breaking instructions.
  1666. ///////////////////////////////////////////////////////////////////////////////
  1667. def : IsZeroIdiomFunction<[
  1668. // GPR Zero-idioms.
  1669. DepBreakingClass<[ SUB32rr, SUB64rr, XOR32rr, XOR64rr ], ZeroIdiomPredicate>,
  1670. // SSE Zero-idioms.
  1671. DepBreakingClass<[
  1672. // fp variants.
  1673. XORPSrr, XORPDrr,
  1674. // int variants.
  1675. PXORrr,
  1676. PSUBBrr, PSUBWrr, PSUBDrr, PSUBQrr,
  1677. PCMPGTBrr, PCMPGTDrr, PCMPGTQrr, PCMPGTWrr
  1678. ], ZeroIdiomPredicate>,
  1679. // AVX Zero-idioms.
  1680. DepBreakingClass<[
  1681. // xmm fp variants.
  1682. VXORPSrr, VXORPDrr,
  1683. // xmm int variants.
  1684. VPXORrr,
  1685. VPSUBBrr, VPSUBWrr, VPSUBDrr, VPSUBQrr,
  1686. VPCMPGTBrr, VPCMPGTWrr, VPCMPGTDrr, VPCMPGTQrr,
  1687. // ymm variants.
  1688. VXORPSYrr, VXORPDYrr, VPXORYrr,
  1689. VPSUBBYrr, VPSUBWYrr, VPSUBDYrr, VPSUBQYrr,
  1690. VPCMPGTBYrr, VPCMPGTWYrr, VPCMPGTDYrr, VPCMPGTQYrr
  1691. ], ZeroIdiomPredicate>,
  1692. ]>;
  1693. } // SchedModel