X86SchedSkylakeServer.td 115 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662
  1. //=- X86SchedSkylake.td - X86 Skylake Server 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 Server to support
  10. // instruction scheduling and other instruction cost heuristics.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. def SkylakeServerModel : 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 = SkylakeServerModel in {
  27. // Skylake Server 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 SKXPort0 : ProcResource<1>;
  35. def SKXPort1 : ProcResource<1>;
  36. def SKXPort2 : ProcResource<1>;
  37. def SKXPort3 : ProcResource<1>;
  38. def SKXPort4 : ProcResource<1>;
  39. def SKXPort5 : ProcResource<1>;
  40. def SKXPort6 : ProcResource<1>;
  41. def SKXPort7 : ProcResource<1>;
  42. // Many micro-ops are capable of issuing on multiple ports.
  43. def SKXPort01 : ProcResGroup<[SKXPort0, SKXPort1]>;
  44. def SKXPort23 : ProcResGroup<[SKXPort2, SKXPort3]>;
  45. def SKXPort237 : ProcResGroup<[SKXPort2, SKXPort3, SKXPort7]>;
  46. def SKXPort04 : ProcResGroup<[SKXPort0, SKXPort4]>;
  47. def SKXPort05 : ProcResGroup<[SKXPort0, SKXPort5]>;
  48. def SKXPort06 : ProcResGroup<[SKXPort0, SKXPort6]>;
  49. def SKXPort15 : ProcResGroup<[SKXPort1, SKXPort5]>;
  50. def SKXPort16 : ProcResGroup<[SKXPort1, SKXPort6]>;
  51. def SKXPort56 : ProcResGroup<[SKXPort5, SKXPort6]>;
  52. def SKXPort015 : ProcResGroup<[SKXPort0, SKXPort1, SKXPort5]>;
  53. def SKXPort056 : ProcResGroup<[SKXPort0, SKXPort5, SKXPort6]>;
  54. def SKXPort0156: ProcResGroup<[SKXPort0, SKXPort1, SKXPort5, SKXPort6]>;
  55. def SKXDivider : ProcResource<1>; // Integer division issued on port 0.
  56. // FP division and sqrt on port 0.
  57. def SKXFPDivider : ProcResource<1>;
  58. // 60 Entry Unified Scheduler
  59. def SKXPortAny : ProcResGroup<[SKXPort0, SKXPort1, SKXPort2, SKXPort3, SKXPort4,
  60. SKXPort5, SKXPort6, SKXPort7]> {
  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 SKXWriteResPair<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([SKXPort23], 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, [SKXPort237,SKXPort4]>;
  98. // Arithmetic.
  99. defm : SKXWriteResPair<WriteALU, [SKXPort0156], 1>; // Simple integer ALU op.
  100. defm : SKXWriteResPair<WriteADC, [SKXPort06], 1>; // Integer ALU + flags op.
  101. // Integer multiplication.
  102. defm : SKXWriteResPair<WriteIMul8, [SKXPort1], 3>;
  103. defm : SKXWriteResPair<WriteIMul16, [SKXPort1,SKXPort06,SKXPort0156], 4, [1,1,2], 4>;
  104. defm : X86WriteRes<WriteIMul16Imm, [SKXPort1,SKXPort0156], 4, [1,1], 2>;
  105. defm : X86WriteRes<WriteIMul16ImmLd, [SKXPort1,SKXPort0156,SKXPort23], 8, [1,1,1], 3>;
  106. defm : X86WriteRes<WriteIMul16Reg, [SKXPort1], 3, [1], 1>;
  107. defm : X86WriteRes<WriteIMul16RegLd, [SKXPort1,SKXPort0156,SKXPort23], 8, [1,1,1], 3>;
  108. defm : SKXWriteResPair<WriteIMul32, [SKXPort1,SKXPort06,SKXPort0156], 4, [1,1,1], 3>;
  109. defm : SKXWriteResPair<WriteMULX32, [SKXPort1,SKXPort06,SKXPort0156], 3, [1,1,1], 3>;
  110. defm : SKXWriteResPair<WriteIMul32Imm, [SKXPort1], 3>;
  111. defm : SKXWriteResPair<WriteIMul32Reg, [SKXPort1], 3>;
  112. defm : SKXWriteResPair<WriteIMul64, [SKXPort1,SKXPort5], 4, [1,1], 2>;
  113. defm : SKXWriteResPair<WriteMULX64, [SKXPort1,SKXPort5], 3, [1,1], 2>;
  114. defm : SKXWriteResPair<WriteIMul64Imm, [SKXPort1], 3>;
  115. defm : SKXWriteResPair<WriteIMul64Reg, [SKXPort1], 3>;
  116. def SKXWriteIMulH : WriteRes<WriteIMulH, []> { let Latency = 4; }
  117. def : WriteRes<WriteIMulHLd, []> {
  118. let Latency = !add(SKXWriteIMulH.Latency, SkylakeServerModel.LoadLatency);
  119. }
  120. defm : X86WriteRes<WriteBSWAP32, [SKXPort15], 1, [1], 1>;
  121. defm : X86WriteRes<WriteBSWAP64, [SKXPort06, SKXPort15], 2, [1,1], 2>;
  122. defm : X86WriteRes<WriteCMPXCHG,[SKXPort06, SKXPort0156], 5, [2,3], 5>;
  123. defm : X86WriteRes<WriteCMPXCHGRMW,[SKXPort23,SKXPort06,SKXPort0156,SKXPort237,SKXPort4], 8, [1,2,1,1,1], 6>;
  124. defm : X86WriteRes<WriteXCHG, [SKXPort0156], 2, [3], 3>;
  125. // TODO: Why isn't the SKXDivider used?
  126. defm : SKXWriteResPair<WriteDiv8, [SKXPort0, SKXDivider], 25, [1,10], 1, 4>;
  127. defm : X86WriteRes<WriteDiv16, [SKXPort0,SKXPort1,SKXPort5,SKXPort6,SKXPort05,SKXPort0156], 76, [7,2,8,3,1,11], 32>;
  128. defm : X86WriteRes<WriteDiv32, [SKXPort0,SKXPort1,SKXPort5,SKXPort6,SKXPort05,SKXPort0156], 76, [7,2,8,3,1,11], 32>;
  129. defm : X86WriteRes<WriteDiv64, [SKXPort0,SKXPort1,SKXPort5,SKXPort6,SKXPort05,SKXPort0156], 76, [7,2,8,3,1,11], 32>;
  130. defm : X86WriteRes<WriteDiv16Ld, [SKXPort0,SKXPort23,SKXDivider], 29, [1,1,10], 2>;
  131. defm : X86WriteRes<WriteDiv32Ld, [SKXPort0,SKXPort23,SKXDivider], 29, [1,1,10], 2>;
  132. defm : X86WriteRes<WriteDiv64Ld, [SKXPort0,SKXPort23,SKXDivider], 29, [1,1,10], 2>;
  133. defm : X86WriteRes<WriteIDiv8, [SKXPort0, SKXDivider], 25, [1,10], 1>;
  134. defm : X86WriteRes<WriteIDiv16, [SKXPort0,SKXPort1,SKXPort5,SKXPort6,SKXPort06,SKXPort0156], 102, [4,2,4,8,14,34], 66>;
  135. defm : X86WriteRes<WriteIDiv32, [SKXPort0,SKXPort1,SKXPort5,SKXPort6,SKXPort06,SKXPort0156], 102, [4,2,4,8,14,34], 66>;
  136. defm : X86WriteRes<WriteIDiv64, [SKXPort0,SKXPort1,SKXPort5,SKXPort6,SKXPort06,SKXPort0156], 102, [4,2,4,8,14,34], 66>;
  137. defm : X86WriteRes<WriteIDiv8Ld, [SKXPort0,SKXPort5,SKXPort23,SKXPort0156], 28, [2,4,1,1], 8>;
  138. defm : X86WriteRes<WriteIDiv16Ld, [SKXPort0,SKXPort5,SKXPort23,SKXPort0156], 28, [2,4,1,1], 8>;
  139. defm : X86WriteRes<WriteIDiv32Ld, [SKXPort0,SKXPort5,SKXPort23,SKXPort0156], 28, [2,4,1,1], 8>;
  140. defm : X86WriteRes<WriteIDiv64Ld, [SKXPort0,SKXPort5,SKXPort23,SKXPort0156], 28, [2,4,1,1], 8>;
  141. defm : SKXWriteResPair<WriteCRC32, [SKXPort1], 3>;
  142. def : WriteRes<WriteLEA, [SKXPort15]>; // LEA instructions can't fold loads.
  143. defm : SKXWriteResPair<WriteCMOV, [SKXPort06], 1, [1], 1>; // Conditional move.
  144. defm : X86WriteRes<WriteFCMOV, [SKXPort1], 3, [1], 1>; // x87 conditional move.
  145. def : WriteRes<WriteSETCC, [SKXPort06]>; // Setcc.
  146. def : WriteRes<WriteSETCCStore, [SKXPort06,SKXPort4,SKXPort237]> {
  147. let Latency = 2;
  148. let NumMicroOps = 3;
  149. }
  150. defm : X86WriteRes<WriteLAHFSAHF, [SKXPort06], 1, [1], 1>;
  151. defm : X86WriteRes<WriteBitTest, [SKXPort06], 1, [1], 1>;
  152. defm : X86WriteRes<WriteBitTestImmLd, [SKXPort06,SKXPort23], 6, [1,1], 2>;
  153. defm : X86WriteRes<WriteBitTestRegLd, [SKXPort0156,SKXPort23], 6, [1,1], 2>;
  154. defm : X86WriteRes<WriteBitTestSet, [SKXPort06], 1, [1], 1>;
  155. defm : X86WriteRes<WriteBitTestSetImmLd, [SKXPort06,SKXPort23], 5, [1,1], 3>;
  156. defm : X86WriteRes<WriteBitTestSetRegLd, [SKXPort0156,SKXPort23], 5, [1,1], 2>;
  157. // Integer shifts and rotates.
  158. defm : SKXWriteResPair<WriteShift, [SKXPort06], 1>;
  159. defm : SKXWriteResPair<WriteShiftCL, [SKXPort06], 3, [3], 3>;
  160. defm : SKXWriteResPair<WriteRotate, [SKXPort06], 1, [1], 1>;
  161. defm : SKXWriteResPair<WriteRotateCL, [SKXPort06], 3, [3], 3>;
  162. // SHLD/SHRD.
  163. defm : X86WriteRes<WriteSHDrri, [SKXPort1], 3, [1], 1>;
  164. defm : X86WriteRes<WriteSHDrrcl,[SKXPort1,SKXPort06,SKXPort0156], 6, [1, 2, 1], 4>;
  165. defm : X86WriteRes<WriteSHDmri, [SKXPort1,SKXPort23,SKXPort237,SKXPort0156], 9, [1, 1, 1, 1], 4>;
  166. defm : X86WriteRes<WriteSHDmrcl,[SKXPort1,SKXPort23,SKXPort237,SKXPort06,SKXPort0156], 11, [1, 1, 1, 2, 1], 6>;
  167. // Bit counts.
  168. defm : SKXWriteResPair<WriteBSF, [SKXPort1], 3>;
  169. defm : SKXWriteResPair<WriteBSR, [SKXPort1], 3>;
  170. defm : SKXWriteResPair<WriteLZCNT, [SKXPort1], 3>;
  171. defm : SKXWriteResPair<WriteTZCNT, [SKXPort1], 3>;
  172. defm : SKXWriteResPair<WritePOPCNT, [SKXPort1], 3>;
  173. // BMI1 BEXTR/BLS, BMI2 BZHI
  174. defm : SKXWriteResPair<WriteBEXTR, [SKXPort06,SKXPort15], 2, [1,1], 2>;
  175. defm : SKXWriteResPair<WriteBLS, [SKXPort15], 1>;
  176. defm : SKXWriteResPair<WriteBZHI, [SKXPort15], 1>;
  177. // Loads, stores, and moves, not folded with other operations.
  178. defm : X86WriteRes<WriteLoad, [SKXPort23], 5, [1], 1>;
  179. defm : X86WriteRes<WriteStore, [SKXPort237, SKXPort4], 1, [1,1], 1>;
  180. defm : X86WriteRes<WriteStoreNT, [SKXPort237, SKXPort4], 1, [1,1], 2>;
  181. defm : X86WriteRes<WriteMove, [SKXPort0156], 1, [1], 1>;
  182. // Model the effect of clobbering the read-write mask operand of the GATHER operation.
  183. // Does not cost anything by itself, only has latency, matching that of the WriteLoad,
  184. defm : X86WriteRes<WriteVecMaskedGatherWriteback, [], 5, [], 0>;
  185. // Idioms that clear a register, like xorps %xmm0, %xmm0.
  186. // These can often bypass execution ports completely.
  187. def : WriteRes<WriteZero, []>;
  188. // Branches don't produce values, so they have no latency, but they still
  189. // consume resources. Indirect branches can fold loads.
  190. defm : SKXWriteResPair<WriteJump, [SKXPort06], 1>;
  191. // Floating point. This covers both scalar and vector operations.
  192. defm : X86WriteRes<WriteFLD0, [SKXPort05], 1, [1], 1>;
  193. defm : X86WriteRes<WriteFLD1, [SKXPort05], 1, [2], 2>;
  194. defm : X86WriteRes<WriteFLDC, [SKXPort05], 1, [2], 2>;
  195. defm : X86WriteRes<WriteFLoad, [SKXPort23], 5, [1], 1>;
  196. defm : X86WriteRes<WriteFLoadX, [SKXPort23], 6, [1], 1>;
  197. defm : X86WriteRes<WriteFLoadY, [SKXPort23], 7, [1], 1>;
  198. defm : X86WriteRes<WriteFMaskedLoad, [SKXPort23,SKXPort015], 7, [1,1], 2>;
  199. defm : X86WriteRes<WriteFMaskedLoadY, [SKXPort23,SKXPort015], 8, [1,1], 2>;
  200. defm : X86WriteRes<WriteFStore, [SKXPort237,SKXPort4], 1, [1,1], 2>;
  201. defm : X86WriteRes<WriteFStoreX, [SKXPort237,SKXPort4], 1, [1,1], 2>;
  202. defm : X86WriteRes<WriteFStoreY, [SKXPort237,SKXPort4], 1, [1,1], 2>;
  203. defm : X86WriteRes<WriteFStoreNT, [SKXPort237,SKXPort4], 1, [1,1], 2>;
  204. defm : X86WriteRes<WriteFStoreNTX, [SKXPort237,SKXPort4], 1, [1,1], 2>;
  205. defm : X86WriteRes<WriteFStoreNTY, [SKXPort237,SKXPort4], 1, [1,1], 2>;
  206. defm : X86WriteRes<WriteFMaskedStore32, [SKXPort237,SKXPort0], 2, [1,1], 2>;
  207. defm : X86WriteRes<WriteFMaskedStore32Y, [SKXPort237,SKXPort0], 2, [1,1], 2>;
  208. defm : X86WriteRes<WriteFMaskedStore64, [SKXPort237,SKXPort0], 2, [1,1], 2>;
  209. defm : X86WriteRes<WriteFMaskedStore64Y, [SKXPort237,SKXPort0], 2, [1,1], 2>;
  210. defm : X86WriteRes<WriteFMove, [SKXPort015], 1, [1], 1>;
  211. defm : X86WriteRes<WriteFMoveX, [SKXPort015], 1, [1], 1>;
  212. defm : X86WriteRes<WriteFMoveY, [SKXPort015], 1, [1], 1>;
  213. defm : X86WriteRes<WriteFMoveZ, [SKXPort05], 1, [1], 1>;
  214. defm : X86WriteRes<WriteEMMS, [SKXPort05,SKXPort0156], 10, [9,1], 10>;
  215. defm : SKXWriteResPair<WriteFAdd, [SKXPort01], 4, [1], 1, 5>; // Floating point add/sub.
  216. defm : SKXWriteResPair<WriteFAddX, [SKXPort01], 4, [1], 1, 6>;
  217. defm : SKXWriteResPair<WriteFAddY, [SKXPort01], 4, [1], 1, 7>;
  218. defm : SKXWriteResPair<WriteFAddZ, [SKXPort05], 4, [1], 1, 7>;
  219. defm : SKXWriteResPair<WriteFAdd64, [SKXPort01], 4, [1], 1, 5>; // Floating point double add/sub.
  220. defm : SKXWriteResPair<WriteFAdd64X, [SKXPort01], 4, [1], 1, 6>;
  221. defm : SKXWriteResPair<WriteFAdd64Y, [SKXPort01], 4, [1], 1, 7>;
  222. defm : SKXWriteResPair<WriteFAdd64Z, [SKXPort05], 4, [1], 1, 7>;
  223. defm : SKXWriteResPair<WriteFCmp, [SKXPort01], 4, [1], 1, 5>; // Floating point compare.
  224. defm : SKXWriteResPair<WriteFCmpX, [SKXPort01], 4, [1], 1, 6>;
  225. defm : SKXWriteResPair<WriteFCmpY, [SKXPort01], 4, [1], 1, 7>;
  226. defm : SKXWriteResPair<WriteFCmpZ, [SKXPort05], 4, [1], 1, 7>;
  227. defm : SKXWriteResPair<WriteFCmp64, [SKXPort01], 4, [1], 1, 5>; // Floating point double compare.
  228. defm : SKXWriteResPair<WriteFCmp64X, [SKXPort01], 4, [1], 1, 6>;
  229. defm : SKXWriteResPair<WriteFCmp64Y, [SKXPort01], 4, [1], 1, 7>;
  230. defm : SKXWriteResPair<WriteFCmp64Z, [SKXPort05], 4, [1], 1, 7>;
  231. defm : SKXWriteResPair<WriteFCom, [SKXPort0], 2>; // Floating point compare to flags (X87).
  232. defm : SKXWriteResPair<WriteFComX, [SKXPort0], 2>; // Floating point compare to flags (SSE).
  233. defm : SKXWriteResPair<WriteFMul, [SKXPort01], 4, [1], 1, 5>; // Floating point multiplication.
  234. defm : SKXWriteResPair<WriteFMulX, [SKXPort01], 4, [1], 1, 6>;
  235. defm : SKXWriteResPair<WriteFMulY, [SKXPort01], 4, [1], 1, 7>;
  236. defm : SKXWriteResPair<WriteFMulZ, [SKXPort05], 4, [1], 1, 7>;
  237. defm : SKXWriteResPair<WriteFMul64, [SKXPort01], 4, [1], 1, 5>; // Floating point double multiplication.
  238. defm : SKXWriteResPair<WriteFMul64X, [SKXPort01], 4, [1], 1, 6>;
  239. defm : SKXWriteResPair<WriteFMul64Y, [SKXPort01], 4, [1], 1, 7>;
  240. defm : SKXWriteResPair<WriteFMul64Z, [SKXPort05], 4, [1], 1, 7>;
  241. defm : SKXWriteResPair<WriteFDiv, [SKXPort0,SKXFPDivider], 11, [1,3], 1, 5>; // 10-14 cycles. // Floating point division.
  242. //defm : SKXWriteResPair<WriteFDivX, [SKXPort0,SKXFPDivider], 11, [1,3], 1, 6>; // 10-14 cycles.
  243. defm : SKXWriteResPair<WriteFDivY, [SKXPort0,SKXFPDivider], 11, [1,5], 1, 7>; // 10-14 cycles.
  244. defm : SKXWriteResPair<WriteFDivZ, [SKXPort0,SKXPort5,SKXFPDivider], 18, [2,1,10], 3, 7>; // 10-14 cycles.
  245. //defm : SKXWriteResPair<WriteFDiv64, [SKXPort0,SKXFPDivider], 14, [1,3], 1, 5>; // 10-14 cycles. // Floating point division.
  246. //defm : SKXWriteResPair<WriteFDiv64X, [SKXPort0,SKXFPDivider], 14, [1,3], 1, 6>; // 10-14 cycles.
  247. //defm : SKXWriteResPair<WriteFDiv64Y, [SKXPort0,SKXFPDivider], 14, [1,5], 1, 7>; // 10-14 cycles.
  248. defm : SKXWriteResPair<WriteFDiv64Z, [SKXPort0,SKXPort5,SKXFPDivider], 23, [2,1,16], 3, 7>; // 10-14 cycles.
  249. defm : SKXWriteResPair<WriteFSqrt, [SKXPort0,SKXFPDivider], 12, [1,3], 1, 5>; // Floating point square root.
  250. defm : SKXWriteResPair<WriteFSqrtX, [SKXPort0,SKXFPDivider], 12, [1,3], 1, 6>;
  251. defm : SKXWriteResPair<WriteFSqrtY, [SKXPort0,SKXFPDivider], 12, [1,6], 1, 7>;
  252. defm : SKXWriteResPair<WriteFSqrtZ, [SKXPort0,SKXPort5,SKXFPDivider], 20, [2,1,12], 3, 7>;
  253. defm : SKXWriteResPair<WriteFSqrt64, [SKXPort0,SKXFPDivider], 18, [1,6], 1, 5>; // Floating point double square root.
  254. defm : SKXWriteResPair<WriteFSqrt64X, [SKXPort0,SKXFPDivider], 18, [1,6], 1, 6>;
  255. defm : SKXWriteResPair<WriteFSqrt64Y, [SKXPort0,SKXFPDivider], 18, [1,12],1, 7>;
  256. defm : SKXWriteResPair<WriteFSqrt64Z, [SKXPort0,SKXPort5,SKXFPDivider], 32, [2,1,24], 3, 7>;
  257. defm : SKXWriteResPair<WriteFSqrt80, [SKXPort0,SKXFPDivider], 21, [1,7]>; // Floating point long double square root.
  258. defm : SKXWriteResPair<WriteFRcp, [SKXPort0], 4, [1], 1, 5>; // Floating point reciprocal estimate.
  259. defm : SKXWriteResPair<WriteFRcpX, [SKXPort0], 4, [1], 1, 6>;
  260. defm : SKXWriteResPair<WriteFRcpY, [SKXPort0], 4, [1], 1, 7>;
  261. defm : SKXWriteResPair<WriteFRcpZ, [SKXPort0,SKXPort5], 4, [2,1], 3, 7>;
  262. defm : SKXWriteResPair<WriteFRsqrt, [SKXPort0], 4, [1], 1, 5>; // Floating point reciprocal square root estimate.
  263. defm : SKXWriteResPair<WriteFRsqrtX,[SKXPort0], 4, [1], 1, 6>;
  264. defm : SKXWriteResPair<WriteFRsqrtY,[SKXPort0], 4, [1], 1, 7>;
  265. defm : SKXWriteResPair<WriteFRsqrtZ,[SKXPort0,SKXPort5], 9, [2,1], 3, 7>;
  266. defm : SKXWriteResPair<WriteFMA, [SKXPort01], 4, [1], 1, 5>; // Fused Multiply Add.
  267. defm : SKXWriteResPair<WriteFMAX, [SKXPort01], 4, [1], 1, 6>;
  268. defm : SKXWriteResPair<WriteFMAY, [SKXPort01], 4, [1], 1, 7>;
  269. defm : SKXWriteResPair<WriteFMAZ, [SKXPort05], 4, [1], 1, 7>;
  270. defm : SKXWriteResPair<WriteDPPD, [SKXPort5,SKXPort015], 9, [1,2], 3, 6>; // Floating point double dot product.
  271. defm : SKXWriteResPair<WriteDPPS, [SKXPort5,SKXPort015], 13, [1,3], 4, 6>;
  272. defm : SKXWriteResPair<WriteDPPSY,[SKXPort5,SKXPort015], 13, [1,3], 4, 7>;
  273. defm : SKXWriteResPair<WriteDPPSZ,[SKXPort5,SKXPort015], 13, [1,3], 4, 7>;
  274. defm : SKXWriteResPair<WriteFSign, [SKXPort0], 1>; // Floating point fabs/fchs.
  275. defm : SKXWriteResPair<WriteFRnd, [SKXPort01], 8, [2], 2, 6>; // Floating point rounding.
  276. defm : SKXWriteResPair<WriteFRndY, [SKXPort01], 8, [2], 2, 7>;
  277. defm : SKXWriteResPair<WriteFRndZ, [SKXPort05], 8, [2], 2, 7>;
  278. defm : SKXWriteResPair<WriteFLogic, [SKXPort015], 1, [1], 1, 6>; // Floating point and/or/xor logicals.
  279. defm : SKXWriteResPair<WriteFLogicY, [SKXPort015], 1, [1], 1, 7>;
  280. defm : SKXWriteResPair<WriteFLogicZ, [SKXPort05], 1, [1], 1, 7>;
  281. defm : SKXWriteResPair<WriteFTest, [SKXPort0], 2, [1], 1, 6>; // Floating point TEST instructions.
  282. defm : SKXWriteResPair<WriteFTestY, [SKXPort0], 2, [1], 1, 7>;
  283. defm : SKXWriteResPair<WriteFTestZ, [SKXPort0], 2, [1], 1, 7>;
  284. defm : SKXWriteResPair<WriteFShuffle, [SKXPort5], 1, [1], 1, 6>; // Floating point vector shuffles.
  285. defm : SKXWriteResPair<WriteFShuffleY, [SKXPort5], 1, [1], 1, 7>;
  286. defm : SKXWriteResPair<WriteFShuffleZ, [SKXPort5], 1, [1], 1, 7>;
  287. defm : SKXWriteResPair<WriteFVarShuffle, [SKXPort5], 1, [1], 1, 6>; // Floating point vector variable shuffles.
  288. defm : SKXWriteResPair<WriteFVarShuffleY, [SKXPort5], 1, [1], 1, 7>;
  289. defm : SKXWriteResPair<WriteFVarShuffleZ, [SKXPort5], 1, [1], 1, 7>;
  290. defm : SKXWriteResPair<WriteFBlend, [SKXPort015], 1, [1], 1, 6>; // Floating point vector blends.
  291. defm : SKXWriteResPair<WriteFBlendY,[SKXPort015], 1, [1], 1, 7>;
  292. defm : SKXWriteResPair<WriteFBlendZ,[SKXPort015], 1, [1], 1, 7>;
  293. defm : SKXWriteResPair<WriteFVarBlend, [SKXPort015], 2, [2], 2, 6>; // Fp vector variable blends.
  294. defm : SKXWriteResPair<WriteFVarBlendY,[SKXPort015], 2, [2], 2, 7>;
  295. defm : SKXWriteResPair<WriteFVarBlendZ,[SKXPort015], 2, [2], 2, 7>;
  296. // FMA Scheduling helper class.
  297. // class FMASC { X86FoldableSchedWrite Sched = WriteFAdd; }
  298. // Vector integer operations.
  299. defm : X86WriteRes<WriteVecLoad, [SKXPort23], 5, [1], 1>;
  300. defm : X86WriteRes<WriteVecLoadX, [SKXPort23], 6, [1], 1>;
  301. defm : X86WriteRes<WriteVecLoadY, [SKXPort23], 7, [1], 1>;
  302. defm : X86WriteRes<WriteVecLoadNT, [SKXPort23], 6, [1], 1>;
  303. defm : X86WriteRes<WriteVecLoadNTY, [SKXPort23], 7, [1], 1>;
  304. defm : X86WriteRes<WriteVecMaskedLoad, [SKXPort23,SKXPort015], 7, [1,1], 2>;
  305. defm : X86WriteRes<WriteVecMaskedLoadY, [SKXPort23,SKXPort015], 8, [1,1], 2>;
  306. defm : X86WriteRes<WriteVecStore, [SKXPort237,SKXPort4], 1, [1,1], 2>;
  307. defm : X86WriteRes<WriteVecStoreX, [SKXPort237,SKXPort4], 1, [1,1], 2>;
  308. defm : X86WriteRes<WriteVecStoreY, [SKXPort237,SKXPort4], 1, [1,1], 2>;
  309. defm : X86WriteRes<WriteVecStoreNT, [SKXPort237,SKXPort4], 1, [1,1], 2>;
  310. defm : X86WriteRes<WriteVecStoreNTY, [SKXPort237,SKXPort4], 1, [1,1], 2>;
  311. defm : X86WriteRes<WriteVecMaskedStore32, [SKXPort237,SKXPort0], 2, [1,1], 2>;
  312. defm : X86WriteRes<WriteVecMaskedStore32Y, [SKXPort237,SKXPort0], 2, [1,1], 2>;
  313. defm : X86WriteRes<WriteVecMaskedStore64, [SKXPort237,SKXPort0], 2, [1,1], 2>;
  314. defm : X86WriteRes<WriteVecMaskedStore64Y, [SKXPort237,SKXPort0], 2, [1,1], 2>;
  315. defm : X86WriteRes<WriteVecMove, [SKXPort05], 1, [1], 1>;
  316. defm : X86WriteRes<WriteVecMoveX, [SKXPort015], 1, [1], 1>;
  317. defm : X86WriteRes<WriteVecMoveY, [SKXPort015], 1, [1], 1>;
  318. defm : X86WriteRes<WriteVecMoveZ, [SKXPort05], 1, [1], 1>;
  319. defm : X86WriteRes<WriteVecMoveToGpr, [SKXPort0], 2, [1], 1>;
  320. defm : X86WriteRes<WriteVecMoveFromGpr, [SKXPort5], 1, [1], 1>;
  321. defm : SKXWriteResPair<WriteVecALU, [SKXPort05], 1, [1], 1, 5>; // Vector integer ALU op, no logicals.
  322. defm : SKXWriteResPair<WriteVecALUX, [SKXPort01], 1, [1], 1, 6>;
  323. defm : SKXWriteResPair<WriteVecALUY, [SKXPort01], 1, [1], 1, 7>;
  324. defm : SKXWriteResPair<WriteVecALUZ, [SKXPort0], 1, [1], 1, 7>;
  325. defm : SKXWriteResPair<WriteVecLogic, [SKXPort05], 1, [1], 1, 5>; // Vector integer and/or/xor.
  326. defm : SKXWriteResPair<WriteVecLogicX,[SKXPort015], 1, [1], 1, 6>;
  327. defm : SKXWriteResPair<WriteVecLogicY,[SKXPort015], 1, [1], 1, 7>;
  328. defm : SKXWriteResPair<WriteVecLogicZ,[SKXPort05], 1, [1], 1, 7>;
  329. defm : SKXWriteResPair<WriteVecTest, [SKXPort0,SKXPort5], 3, [1,1], 2, 6>; // Vector integer TEST instructions.
  330. defm : SKXWriteResPair<WriteVecTestY, [SKXPort0,SKXPort5], 3, [1,1], 2, 7>;
  331. defm : SKXWriteResPair<WriteVecTestZ, [SKXPort0,SKXPort5], 3, [1,1], 2, 7>;
  332. defm : SKXWriteResPair<WriteVecIMul, [SKXPort0], 5, [1], 1, 5>; // Vector integer multiply.
  333. defm : SKXWriteResPair<WriteVecIMulX, [SKXPort01], 5, [1], 1, 6>;
  334. defm : SKXWriteResPair<WriteVecIMulY, [SKXPort01], 5, [1], 1, 7>;
  335. defm : SKXWriteResPair<WriteVecIMulZ, [SKXPort05], 5, [1], 1, 7>;
  336. defm : SKXWriteResPair<WritePMULLD, [SKXPort01], 10, [2], 2, 6>; // Vector PMULLD.
  337. defm : SKXWriteResPair<WritePMULLDY, [SKXPort01], 10, [2], 2, 7>;
  338. defm : SKXWriteResPair<WritePMULLDZ, [SKXPort05], 10, [2], 2, 7>;
  339. defm : SKXWriteResPair<WriteShuffle, [SKXPort5], 1, [1], 1, 5>; // Vector shuffles.
  340. defm : SKXWriteResPair<WriteShuffleX, [SKXPort5], 1, [1], 1, 6>;
  341. defm : SKXWriteResPair<WriteShuffleY, [SKXPort5], 1, [1], 1, 7>;
  342. defm : SKXWriteResPair<WriteShuffleZ, [SKXPort5], 1, [1], 1, 7>;
  343. defm : SKXWriteResPair<WriteVarShuffle, [SKXPort5], 1, [1], 1, 5>; // Vector variable shuffles.
  344. defm : SKXWriteResPair<WriteVarShuffleX, [SKXPort5], 1, [1], 1, 6>;
  345. defm : SKXWriteResPair<WriteVarShuffleY, [SKXPort5], 1, [1], 1, 7>;
  346. defm : SKXWriteResPair<WriteVarShuffleZ, [SKXPort5], 1, [1], 1, 7>;
  347. defm : SKXWriteResPair<WriteBlend, [SKXPort5], 1, [1], 1, 6>; // Vector blends.
  348. defm : SKXWriteResPair<WriteBlendY,[SKXPort5], 1, [1], 1, 7>;
  349. defm : SKXWriteResPair<WriteBlendZ,[SKXPort5], 1, [1], 1, 7>;
  350. defm : SKXWriteResPair<WriteVarBlend, [SKXPort015], 2, [2], 2, 6>; // Vector variable blends.
  351. defm : SKXWriteResPair<WriteVarBlendY,[SKXPort015], 2, [2], 2, 6>;
  352. defm : SKXWriteResPair<WriteVarBlendZ,[SKXPort05], 2, [1], 1, 6>;
  353. defm : SKXWriteResPair<WriteMPSAD, [SKXPort5], 4, [2], 2, 6>; // Vector MPSAD.
  354. defm : SKXWriteResPair<WriteMPSADY, [SKXPort5], 4, [2], 2, 7>;
  355. defm : SKXWriteResPair<WriteMPSADZ, [SKXPort5], 4, [2], 2, 7>;
  356. defm : SKXWriteResPair<WritePSADBW, [SKXPort5], 3, [1], 1, 5>; // Vector PSADBW.
  357. defm : SKXWriteResPair<WritePSADBWX, [SKXPort5], 3, [1], 1, 6>;
  358. defm : SKXWriteResPair<WritePSADBWY, [SKXPort5], 3, [1], 1, 7>;
  359. defm : SKXWriteResPair<WritePSADBWZ, [SKXPort5], 3, [1], 1, 7>;
  360. defm : SKXWriteResPair<WritePHMINPOS, [SKXPort0], 4, [1], 1, 6>; // Vector PHMINPOS.
  361. // Vector integer shifts.
  362. defm : SKXWriteResPair<WriteVecShift, [SKXPort0], 1, [1], 1, 5>;
  363. defm : X86WriteRes<WriteVecShiftX, [SKXPort5,SKXPort01], 2, [1,1], 2>;
  364. defm : X86WriteRes<WriteVecShiftY, [SKXPort5,SKXPort01], 4, [1,1], 2>;
  365. defm : X86WriteRes<WriteVecShiftZ, [SKXPort5,SKXPort0], 4, [1,1], 2>;
  366. defm : X86WriteRes<WriteVecShiftXLd, [SKXPort01,SKXPort23], 7, [1,1], 2>;
  367. defm : X86WriteRes<WriteVecShiftYLd, [SKXPort01,SKXPort23], 8, [1,1], 2>;
  368. defm : X86WriteRes<WriteVecShiftZLd, [SKXPort0,SKXPort23], 8, [1,1], 2>;
  369. defm : SKXWriteResPair<WriteVecShiftImm, [SKXPort0], 1, [1], 1, 5>;
  370. defm : SKXWriteResPair<WriteVecShiftImmX, [SKXPort01], 1, [1], 1, 6>; // Vector integer immediate shifts.
  371. defm : SKXWriteResPair<WriteVecShiftImmY, [SKXPort01], 1, [1], 1, 7>;
  372. defm : SKXWriteResPair<WriteVecShiftImmZ, [SKXPort0], 1, [1], 1, 7>;
  373. defm : SKXWriteResPair<WriteVarVecShift, [SKXPort01], 1, [1], 1, 6>; // Variable vector shifts.
  374. defm : SKXWriteResPair<WriteVarVecShiftY, [SKXPort01], 1, [1], 1, 7>;
  375. defm : SKXWriteResPair<WriteVarVecShiftZ, [SKXPort0], 1, [1], 1, 7>;
  376. // Vector insert/extract operations.
  377. def : WriteRes<WriteVecInsert, [SKXPort5]> {
  378. let Latency = 2;
  379. let NumMicroOps = 2;
  380. let ResourceCycles = [2];
  381. }
  382. def : WriteRes<WriteVecInsertLd, [SKXPort5,SKXPort23]> {
  383. let Latency = 6;
  384. let NumMicroOps = 2;
  385. }
  386. def: InstRW<[WriteVecInsertLd], (instregex "(V?)MOV(H|L)(PD|PS)rm")>;
  387. def : WriteRes<WriteVecExtract, [SKXPort0,SKXPort5]> {
  388. let Latency = 3;
  389. let NumMicroOps = 2;
  390. }
  391. def : WriteRes<WriteVecExtractSt, [SKXPort4,SKXPort5,SKXPort237]> {
  392. let Latency = 2;
  393. let NumMicroOps = 3;
  394. }
  395. // Conversion between integer and float.
  396. defm : SKXWriteResPair<WriteCvtSS2I, [SKXPort01], 6, [2], 2>; // Needs more work: DD vs DQ.
  397. defm : SKXWriteResPair<WriteCvtPS2I, [SKXPort01], 3>;
  398. defm : SKXWriteResPair<WriteCvtPS2IY, [SKXPort01], 3>;
  399. defm : SKXWriteResPair<WriteCvtPS2IZ, [SKXPort05], 3>;
  400. defm : SKXWriteResPair<WriteCvtSD2I, [SKXPort01], 6, [2], 2>;
  401. defm : SKXWriteResPair<WriteCvtPD2I, [SKXPort01], 3>;
  402. defm : SKXWriteResPair<WriteCvtPD2IY, [SKXPort01], 3>;
  403. defm : SKXWriteResPair<WriteCvtPD2IZ, [SKXPort05], 3>;
  404. defm : SKXWriteResPair<WriteCvtI2SS, [SKXPort1], 4>;
  405. defm : SKXWriteResPair<WriteCvtI2PS, [SKXPort01], 4>;
  406. defm : SKXWriteResPair<WriteCvtI2PSY, [SKXPort01], 4>;
  407. defm : SKXWriteResPair<WriteCvtI2PSZ, [SKXPort05], 4>; // Needs more work: DD vs DQ.
  408. defm : SKXWriteResPair<WriteCvtI2SD, [SKXPort1], 4>;
  409. defm : SKXWriteResPair<WriteCvtI2PD, [SKXPort01], 4>;
  410. defm : SKXWriteResPair<WriteCvtI2PDY, [SKXPort01], 4>;
  411. defm : SKXWriteResPair<WriteCvtI2PDZ, [SKXPort05], 4>;
  412. defm : SKXWriteResPair<WriteCvtSS2SD, [SKXPort1], 3>;
  413. defm : SKXWriteResPair<WriteCvtPS2PD, [SKXPort1], 3>;
  414. defm : SKXWriteResPair<WriteCvtPS2PDY, [SKXPort5,SKXPort01], 3, [1,1], 2>;
  415. defm : SKXWriteResPair<WriteCvtPS2PDZ, [SKXPort05], 3, [2], 2>;
  416. defm : SKXWriteResPair<WriteCvtSD2SS, [SKXPort1], 3>;
  417. defm : SKXWriteResPair<WriteCvtPD2PS, [SKXPort1], 3>;
  418. defm : SKXWriteResPair<WriteCvtPD2PSY, [SKXPort5,SKXPort01], 3, [1,1], 2>;
  419. defm : SKXWriteResPair<WriteCvtPD2PSZ, [SKXPort05], 3, [2], 2>;
  420. defm : X86WriteRes<WriteCvtPH2PS, [SKXPort5,SKXPort01], 5, [1,1], 2>;
  421. defm : X86WriteRes<WriteCvtPH2PSY, [SKXPort5,SKXPort01], 7, [1,1], 2>;
  422. defm : X86WriteRes<WriteCvtPH2PSZ, [SKXPort5,SKXPort0], 7, [1,1], 2>;
  423. defm : X86WriteRes<WriteCvtPH2PSLd, [SKXPort23,SKXPort01], 9, [1,1], 2>;
  424. defm : X86WriteRes<WriteCvtPH2PSYLd, [SKXPort23,SKXPort01], 10, [1,1], 2>;
  425. defm : X86WriteRes<WriteCvtPH2PSZLd, [SKXPort23,SKXPort05], 10, [1,1], 2>;
  426. defm : X86WriteRes<WriteCvtPS2PH, [SKXPort5,SKXPort01], 5, [1,1], 2>;
  427. defm : X86WriteRes<WriteCvtPS2PHY, [SKXPort5,SKXPort01], 7, [1,1], 2>;
  428. defm : X86WriteRes<WriteCvtPS2PHZ, [SKXPort5,SKXPort05], 7, [1,1], 2>;
  429. defm : X86WriteRes<WriteCvtPS2PHSt, [SKXPort4,SKXPort5,SKXPort237,SKXPort01], 6, [1,1,1,1], 4>;
  430. defm : X86WriteRes<WriteCvtPS2PHYSt, [SKXPort4,SKXPort5,SKXPort237,SKXPort01], 8, [1,1,1,1], 4>;
  431. defm : X86WriteRes<WriteCvtPS2PHZSt, [SKXPort4,SKXPort5,SKXPort237,SKXPort05], 8, [1,1,1,1], 4>;
  432. // Strings instructions.
  433. // Packed Compare Implicit Length Strings, Return Mask
  434. def : WriteRes<WritePCmpIStrM, [SKXPort0]> {
  435. let Latency = 10;
  436. let NumMicroOps = 3;
  437. let ResourceCycles = [3];
  438. }
  439. def : WriteRes<WritePCmpIStrMLd, [SKXPort0, SKXPort23]> {
  440. let Latency = 16;
  441. let NumMicroOps = 4;
  442. let ResourceCycles = [3,1];
  443. }
  444. // Packed Compare Explicit Length Strings, Return Mask
  445. def : WriteRes<WritePCmpEStrM, [SKXPort0, SKXPort5, SKXPort015, SKXPort0156]> {
  446. let Latency = 19;
  447. let NumMicroOps = 9;
  448. let ResourceCycles = [4,3,1,1];
  449. }
  450. def : WriteRes<WritePCmpEStrMLd, [SKXPort0, SKXPort5, SKXPort23, SKXPort015, SKXPort0156]> {
  451. let Latency = 25;
  452. let NumMicroOps = 10;
  453. let ResourceCycles = [4,3,1,1,1];
  454. }
  455. // Packed Compare Implicit Length Strings, Return Index
  456. def : WriteRes<WritePCmpIStrI, [SKXPort0]> {
  457. let Latency = 10;
  458. let NumMicroOps = 3;
  459. let ResourceCycles = [3];
  460. }
  461. def : WriteRes<WritePCmpIStrILd, [SKXPort0, SKXPort23]> {
  462. let Latency = 16;
  463. let NumMicroOps = 4;
  464. let ResourceCycles = [3,1];
  465. }
  466. // Packed Compare Explicit Length Strings, Return Index
  467. def : WriteRes<WritePCmpEStrI, [SKXPort0,SKXPort5,SKXPort0156]> {
  468. let Latency = 18;
  469. let NumMicroOps = 8;
  470. let ResourceCycles = [4,3,1];
  471. }
  472. def : WriteRes<WritePCmpEStrILd, [SKXPort0, SKXPort5, SKXPort23, SKXPort0156]> {
  473. let Latency = 24;
  474. let NumMicroOps = 9;
  475. let ResourceCycles = [4,3,1,1];
  476. }
  477. // MOVMSK Instructions.
  478. def : WriteRes<WriteFMOVMSK, [SKXPort0]> { let Latency = 2; }
  479. def : WriteRes<WriteVecMOVMSK, [SKXPort0]> { let Latency = 2; }
  480. def : WriteRes<WriteVecMOVMSKY, [SKXPort0]> { let Latency = 2; }
  481. def : WriteRes<WriteMMXMOVMSK, [SKXPort0]> { let Latency = 2; }
  482. // AES instructions.
  483. def : WriteRes<WriteAESDecEnc, [SKXPort0]> { // Decryption, encryption.
  484. let Latency = 4;
  485. let NumMicroOps = 1;
  486. let ResourceCycles = [1];
  487. }
  488. def : WriteRes<WriteAESDecEncLd, [SKXPort0, SKXPort23]> {
  489. let Latency = 10;
  490. let NumMicroOps = 2;
  491. let ResourceCycles = [1,1];
  492. }
  493. def : WriteRes<WriteAESIMC, [SKXPort0]> { // InvMixColumn.
  494. let Latency = 8;
  495. let NumMicroOps = 2;
  496. let ResourceCycles = [2];
  497. }
  498. def : WriteRes<WriteAESIMCLd, [SKXPort0, SKXPort23]> {
  499. let Latency = 14;
  500. let NumMicroOps = 3;
  501. let ResourceCycles = [2,1];
  502. }
  503. def : WriteRes<WriteAESKeyGen, [SKXPort0,SKXPort5,SKXPort015]> { // Key Generation.
  504. let Latency = 20;
  505. let NumMicroOps = 11;
  506. let ResourceCycles = [3,6,2];
  507. }
  508. def : WriteRes<WriteAESKeyGenLd, [SKXPort0,SKXPort5,SKXPort23,SKXPort015]> {
  509. let Latency = 25;
  510. let NumMicroOps = 11;
  511. let ResourceCycles = [3,6,1,1];
  512. }
  513. // Carry-less multiplication instructions.
  514. def : WriteRes<WriteCLMul, [SKXPort5]> {
  515. let Latency = 6;
  516. let NumMicroOps = 1;
  517. let ResourceCycles = [1];
  518. }
  519. def : WriteRes<WriteCLMulLd, [SKXPort5, SKXPort23]> {
  520. let Latency = 12;
  521. let NumMicroOps = 2;
  522. let ResourceCycles = [1,1];
  523. }
  524. // Catch-all for expensive system instructions.
  525. def : WriteRes<WriteSystem, [SKXPort0156]> { let Latency = 100; } // def WriteSystem : SchedWrite;
  526. // AVX2.
  527. defm : SKXWriteResPair<WriteFShuffle256, [SKXPort5], 3, [1], 1, 7>; // Fp 256-bit width vector shuffles.
  528. defm : SKXWriteResPair<WriteFVarShuffle256, [SKXPort5], 3, [1], 1, 7>; // Fp 256-bit width vector variable shuffles.
  529. defm : SKXWriteResPair<WriteShuffle256, [SKXPort5], 3, [1], 1, 7>; // 256-bit width vector shuffles.
  530. defm : SKXWriteResPair<WriteVPMOV256, [SKXPort5], 3, [1], 1, 7>; // 256-bit width packed vector width-changing move.
  531. defm : SKXWriteResPair<WriteVarShuffle256, [SKXPort5], 3, [1], 1, 7>; // 256-bit width vector variable shuffles.
  532. // Old microcoded instructions that nobody use.
  533. def : WriteRes<WriteMicrocoded, [SKXPort0156]> { let Latency = 100; } // def WriteMicrocoded : SchedWrite;
  534. // Fence instructions.
  535. def : WriteRes<WriteFence, [SKXPort23, SKXPort4]>;
  536. // Load/store MXCSR.
  537. def : WriteRes<WriteLDMXCSR, [SKXPort0,SKXPort23,SKXPort0156]> { let Latency = 7; let NumMicroOps = 3; let ResourceCycles = [1,1,1]; }
  538. def : WriteRes<WriteSTMXCSR, [SKXPort4,SKXPort5,SKXPort237]> { let Latency = 2; let NumMicroOps = 3; let ResourceCycles = [1,1,1]; }
  539. // Nop, not very useful expect it provides a model for nops!
  540. def : WriteRes<WriteNop, []>;
  541. ////////////////////////////////////////////////////////////////////////////////
  542. // Horizontal add/sub instructions.
  543. ////////////////////////////////////////////////////////////////////////////////
  544. defm : SKXWriteResPair<WriteFHAdd, [SKXPort5,SKXPort015], 6, [2,1], 3, 6>;
  545. defm : SKXWriteResPair<WriteFHAddY, [SKXPort5,SKXPort015], 6, [2,1], 3, 7>;
  546. defm : SKXWriteResPair<WritePHAdd, [SKXPort5,SKXPort05], 3, [2,1], 3, 5>;
  547. defm : SKXWriteResPair<WritePHAddX, [SKXPort5,SKXPort015], 3, [2,1], 3, 6>;
  548. defm : SKXWriteResPair<WritePHAddY, [SKXPort5,SKXPort015], 3, [2,1], 3, 7>;
  549. // Remaining instrs.
  550. def SKXWriteResGroup1 : SchedWriteRes<[SKXPort0]> {
  551. let Latency = 1;
  552. let NumMicroOps = 1;
  553. let ResourceCycles = [1];
  554. }
  555. def: InstRW<[SKXWriteResGroup1], (instregex "KAND(B|D|Q|W)rr",
  556. "KANDN(B|D|Q|W)rr",
  557. "KMOV(B|D|Q|W)kk",
  558. "KNOT(B|D|Q|W)rr",
  559. "KOR(B|D|Q|W)rr",
  560. "KXNOR(B|D|Q|W)rr",
  561. "KXOR(B|D|Q|W)rr",
  562. "KSET0(B|D|Q|W)", // Same as KXOR
  563. "KSET1(B|D|Q|W)", // Same as KXNOR
  564. "MMX_PADDS(B|W)rr",
  565. "MMX_PADDUS(B|W)rr",
  566. "MMX_PAVG(B|W)rr",
  567. "MMX_PCMPEQ(B|D|W)rr",
  568. "MMX_PCMPGT(B|D|W)rr",
  569. "MMX_P(MAX|MIN)SWrr",
  570. "MMX_P(MAX|MIN)UBrr",
  571. "MMX_PSUBS(B|W)rr",
  572. "MMX_PSUBUS(B|W)rr",
  573. "VPMOVB2M(Z|Z128|Z256)rr",
  574. "VPMOVD2M(Z|Z128|Z256)rr",
  575. "VPMOVQ2M(Z|Z128|Z256)rr",
  576. "VPMOVW2M(Z|Z128|Z256)rr")>;
  577. def SKXWriteResGroup3 : SchedWriteRes<[SKXPort5]> {
  578. let Latency = 1;
  579. let NumMicroOps = 1;
  580. let ResourceCycles = [1];
  581. }
  582. def: InstRW<[SKXWriteResGroup3], (instregex "COM(P?)_FST0r",
  583. "KMOV(B|D|Q|W)kr",
  584. "UCOM_F(P?)r")>;
  585. def SKXWriteResGroup4 : SchedWriteRes<[SKXPort6]> {
  586. let Latency = 1;
  587. let NumMicroOps = 1;
  588. let ResourceCycles = [1];
  589. }
  590. def: InstRW<[SKXWriteResGroup4], (instregex "JMP(16|32|64)r")>;
  591. def SKXWriteResGroup6 : SchedWriteRes<[SKXPort05]> {
  592. let Latency = 1;
  593. let NumMicroOps = 1;
  594. let ResourceCycles = [1];
  595. }
  596. def: InstRW<[SKXWriteResGroup6], (instrs FINCSTP, FNOP)>;
  597. def SKXWriteResGroup7 : SchedWriteRes<[SKXPort06]> {
  598. let Latency = 1;
  599. let NumMicroOps = 1;
  600. let ResourceCycles = [1];
  601. }
  602. def: InstRW<[SKXWriteResGroup7], (instrs CDQ, CQO, CLAC, STAC)>;
  603. def SKXWriteResGroup8 : SchedWriteRes<[SKXPort15]> {
  604. let Latency = 1;
  605. let NumMicroOps = 1;
  606. let ResourceCycles = [1];
  607. }
  608. def: InstRW<[SKXWriteResGroup8], (instregex "ANDN(32|64)rr")>;
  609. def SKXWriteResGroup9 : SchedWriteRes<[SKXPort015]> {
  610. let Latency = 1;
  611. let NumMicroOps = 1;
  612. let ResourceCycles = [1];
  613. }
  614. def: InstRW<[SKXWriteResGroup9], (instregex "VBLENDMPD(Z128|Z256)rr",
  615. "VBLENDMPS(Z128|Z256)rr",
  616. "VPADD(B|D|Q|W)(Y|Z|Z128|Z256)rr",
  617. "(V?)PADD(B|D|Q|W)rr",
  618. "VPBLENDD(Y?)rri",
  619. "VPBLENDMB(Z128|Z256)rr",
  620. "VPBLENDMD(Z128|Z256)rr",
  621. "VPBLENDMQ(Z128|Z256)rr",
  622. "VPBLENDMW(Z128|Z256)rr",
  623. "VPSUB(B|D|Q|W)(Y|Z|Z128|Z256)rrk",
  624. "VPTERNLOGD(Z|Z128|Z256)rri",
  625. "VPTERNLOGQ(Z|Z128|Z256)rri")>;
  626. def SKXWriteResGroup10 : SchedWriteRes<[SKXPort0156]> {
  627. let Latency = 1;
  628. let NumMicroOps = 1;
  629. let ResourceCycles = [1];
  630. }
  631. def: InstRW<[SKXWriteResGroup10], (instrs CBW, CWDE, CDQE,
  632. CMC, STC,
  633. SGDT64m,
  634. SIDT64m,
  635. SMSW16m,
  636. STRm,
  637. SYSCALL)>;
  638. def SKXWriteResGroup11 : SchedWriteRes<[SKXPort4,SKXPort237]> {
  639. let Latency = 1;
  640. let NumMicroOps = 2;
  641. let ResourceCycles = [1,1];
  642. }
  643. def: InstRW<[SKXWriteResGroup11], (instrs FBSTPm, VMPTRSTm)>;
  644. def: InstRW<[SKXWriteResGroup11], (instregex "KMOV(B|D|Q|W)mk",
  645. "ST_FP(32|64|80)m")>;
  646. def SKXWriteResGroup13 : SchedWriteRes<[SKXPort5]> {
  647. let Latency = 2;
  648. let NumMicroOps = 2;
  649. let ResourceCycles = [2];
  650. }
  651. def: InstRW<[SKXWriteResGroup13], (instrs MMX_MOVQ2DQrr)>;
  652. def SKXWriteResGroup14 : SchedWriteRes<[SKXPort05]> {
  653. let Latency = 2;
  654. let NumMicroOps = 2;
  655. let ResourceCycles = [2];
  656. }
  657. def: InstRW<[SKXWriteResGroup14], (instrs FDECSTP,
  658. MMX_MOVDQ2Qrr)>;
  659. def SKXWriteResGroup17 : SchedWriteRes<[SKXPort0156]> {
  660. let Latency = 2;
  661. let NumMicroOps = 2;
  662. let ResourceCycles = [2];
  663. }
  664. def: InstRW<[SKXWriteResGroup17], (instrs LFENCE,
  665. WAIT,
  666. XGETBV)>;
  667. def SKXWriteResGroup20 : SchedWriteRes<[SKXPort6,SKXPort0156]> {
  668. let Latency = 2;
  669. let NumMicroOps = 2;
  670. let ResourceCycles = [1,1];
  671. }
  672. def: InstRW<[SKXWriteResGroup20], (instregex "CLFLUSH")>;
  673. def SKXWriteResGroup21 : SchedWriteRes<[SKXPort237,SKXPort0156]> {
  674. let Latency = 2;
  675. let NumMicroOps = 2;
  676. let ResourceCycles = [1,1];
  677. }
  678. def: InstRW<[SKXWriteResGroup21], (instrs SFENCE)>;
  679. def SKXWriteResGroup23 : SchedWriteRes<[SKXPort06,SKXPort0156]> {
  680. let Latency = 2;
  681. let NumMicroOps = 2;
  682. let ResourceCycles = [1,1];
  683. }
  684. def: InstRW<[SKXWriteResGroup23], (instrs CWD,
  685. JCXZ, JECXZ, JRCXZ,
  686. ADC8i8, SBB8i8,
  687. ADC16i16, SBB16i16,
  688. ADC32i32, SBB32i32,
  689. ADC64i32, SBB64i32)>;
  690. def SKXWriteResGroup25 : SchedWriteRes<[SKXPort4,SKXPort6,SKXPort237]> {
  691. let Latency = 2;
  692. let NumMicroOps = 3;
  693. let ResourceCycles = [1,1,1];
  694. }
  695. def: InstRW<[SKXWriteResGroup25], (instrs FNSTCW16m)>;
  696. def SKXWriteResGroup27 : SchedWriteRes<[SKXPort4,SKXPort237,SKXPort15]> {
  697. let Latency = 2;
  698. let NumMicroOps = 3;
  699. let ResourceCycles = [1,1,1];
  700. }
  701. def: InstRW<[SKXWriteResGroup27], (instregex "MOVBE(16|32|64)mr")>;
  702. def SKXWriteResGroup28 : SchedWriteRes<[SKXPort4,SKXPort237,SKXPort0156]> {
  703. let Latency = 2;
  704. let NumMicroOps = 3;
  705. let ResourceCycles = [1,1,1];
  706. }
  707. def: InstRW<[SKXWriteResGroup28], (instrs PUSH16r, PUSH32r, PUSH64r, PUSH64i8,
  708. STOSB, STOSL, STOSQ, STOSW)>;
  709. def: InstRW<[SKXWriteResGroup28], (instregex "PUSH(16|32|64)rmr")>;
  710. def SKXWriteResGroup29 : SchedWriteRes<[SKXPort4,SKXPort237,SKXPort15]> {
  711. let Latency = 2;
  712. let NumMicroOps = 5;
  713. let ResourceCycles = [2,2,1];
  714. }
  715. def: InstRW<[SKXWriteResGroup29], (instregex "VMOVDQU8Zmr(b?)")>;
  716. def SKXWriteResGroup30 : SchedWriteRes<[SKXPort0]> {
  717. let Latency = 3;
  718. let NumMicroOps = 1;
  719. let ResourceCycles = [1];
  720. }
  721. def: InstRW<[SKXWriteResGroup30], (instregex "KMOV(B|D|Q|W)rk",
  722. "KORTEST(B|D|Q|W)rr",
  723. "KTEST(B|D|Q|W)rr")>;
  724. def SKXWriteResGroup31 : SchedWriteRes<[SKXPort1]> {
  725. let Latency = 3;
  726. let NumMicroOps = 1;
  727. let ResourceCycles = [1];
  728. }
  729. def: InstRW<[SKXWriteResGroup31], (instregex "PDEP(32|64)rr",
  730. "PEXT(32|64)rr")>;
  731. def SKXWriteResGroup32 : SchedWriteRes<[SKXPort5]> {
  732. let Latency = 3;
  733. let NumMicroOps = 1;
  734. let ResourceCycles = [1];
  735. }
  736. def: InstRW<[SKXWriteResGroup32], (instrs VPSADBWZrr)>; // TODO: 512-bit ops require ports 0/1 to be joined.
  737. def: InstRW<[SKXWriteResGroup32], (instregex "(ADD|SUB|SUBR)_(FPrST0|FST0r|FrST0)",
  738. "VALIGND(Z|Z128|Z256)rri",
  739. "VALIGNQ(Z|Z128|Z256)rri",
  740. "VDBPSADBWZrri", // TODO: 512-bit ops require ports 0/1 to be joined.
  741. "VPBROADCAST(B|W)rr",
  742. "VP(MAX|MIN)(S|U)Q(Z|Z128|Z256)rr")>;
  743. def SKXWriteResGroup33 : SchedWriteRes<[SKXPort5]> {
  744. let Latency = 4;
  745. let NumMicroOps = 1;
  746. let ResourceCycles = [1];
  747. }
  748. def: InstRW<[SKXWriteResGroup33], (instregex "KADD(B|D|Q|W)rr",
  749. "KSHIFTL(B|D|Q|W)ri",
  750. "KSHIFTR(B|D|Q|W)ri",
  751. "KUNPCK(BW|DQ|WD)rr",
  752. "VCMPPD(Z|Z128|Z256)rri",
  753. "VCMPPS(Z|Z128|Z256)rri",
  754. "VCMP(SD|SS)Zrr",
  755. "VFPCLASS(PD|PS)(Z|Z128|Z256)rr",
  756. "VFPCLASS(SD|SS)Zrr",
  757. "VPCMPB(Z|Z128|Z256)rri",
  758. "VPCMPD(Z|Z128|Z256)rri",
  759. "VPCMPEQ(B|D|Q|W)(Z|Z128|Z256)rr",
  760. "VPCMPGT(B|D|Q|W)(Z|Z128|Z256)rr",
  761. "VPCMPQ(Z|Z128|Z256)rri",
  762. "VPCMPU(B|D|Q|W)(Z|Z128|Z256)rri",
  763. "VPCMPW(Z|Z128|Z256)rri",
  764. "VPTEST(N?)M(B|D|Q|W)(Z|Z128|Z256)rr")>;
  765. def SKXWriteResGroup34 : SchedWriteRes<[SKXPort0,SKXPort0156]> {
  766. let Latency = 3;
  767. let NumMicroOps = 2;
  768. let ResourceCycles = [1,1];
  769. }
  770. def: InstRW<[SKXWriteResGroup34], (instrs FNSTSW16r)>;
  771. def SKXWriteResGroup37 : SchedWriteRes<[SKXPort0,SKXPort5]> {
  772. let Latency = 3;
  773. let NumMicroOps = 3;
  774. let ResourceCycles = [1,2];
  775. }
  776. def: InstRW<[SKXWriteResGroup37], (instregex "MMX_PH(ADD|SUB)SWrr")>;
  777. def SKXWriteResGroup38 : SchedWriteRes<[SKXPort5,SKXPort01]> {
  778. let Latency = 3;
  779. let NumMicroOps = 3;
  780. let ResourceCycles = [2,1];
  781. }
  782. def: InstRW<[SKXWriteResGroup38], (instregex "(V?)PH(ADD|SUB)SW(Y?)rr")>;
  783. def SKXWriteResGroup41 : SchedWriteRes<[SKXPort5,SKXPort0156]> {
  784. let Latency = 3;
  785. let NumMicroOps = 3;
  786. let ResourceCycles = [2,1];
  787. }
  788. def: InstRW<[SKXWriteResGroup41], (instrs MMX_PACKSSDWrr,
  789. MMX_PACKSSWBrr,
  790. MMX_PACKUSWBrr)>;
  791. def SKXWriteResGroup42 : SchedWriteRes<[SKXPort6,SKXPort0156]> {
  792. let Latency = 3;
  793. let NumMicroOps = 3;
  794. let ResourceCycles = [1,2];
  795. }
  796. def: InstRW<[SKXWriteResGroup42], (instregex "CLD")>;
  797. def SKXWriteResGroup43 : SchedWriteRes<[SKXPort237,SKXPort0156]> {
  798. let Latency = 3;
  799. let NumMicroOps = 3;
  800. let ResourceCycles = [1,2];
  801. }
  802. def: InstRW<[SKXWriteResGroup43], (instrs MFENCE)>;
  803. def SKXWriteResGroup44 : SchedWriteRes<[SKXPort06,SKXPort0156]> {
  804. let Latency = 3;
  805. let NumMicroOps = 3;
  806. let ResourceCycles = [1,2];
  807. }
  808. def: InstRW<[SKXWriteResGroup44], (instregex "RCL(8|16|32|64)r(1|i)",
  809. "RCR(8|16|32|64)r(1|i)")>;
  810. def SKXWriteResGroup45 : SchedWriteRes<[SKXPort0,SKXPort4,SKXPort237]> {
  811. let Latency = 3;
  812. let NumMicroOps = 3;
  813. let ResourceCycles = [1,1,1];
  814. }
  815. def: InstRW<[SKXWriteResGroup45], (instrs FNSTSWm)>;
  816. def SKXWriteResGroup47 : SchedWriteRes<[SKXPort4,SKXPort6,SKXPort237,SKXPort0156]> {
  817. let Latency = 3;
  818. let NumMicroOps = 4;
  819. let ResourceCycles = [1,1,1,1];
  820. }
  821. def: InstRW<[SKXWriteResGroup47], (instregex "CALL(16|32|64)r")>;
  822. def SKXWriteResGroup48 : SchedWriteRes<[SKXPort4,SKXPort237,SKXPort06,SKXPort0156]> {
  823. let Latency = 3;
  824. let NumMicroOps = 4;
  825. let ResourceCycles = [1,1,1,1];
  826. }
  827. def: InstRW<[SKXWriteResGroup48], (instrs CALL64pcrel32)>;
  828. def SKXWriteResGroup49 : SchedWriteRes<[SKXPort0]> {
  829. let Latency = 4;
  830. let NumMicroOps = 1;
  831. let ResourceCycles = [1];
  832. }
  833. def: InstRW<[SKXWriteResGroup49], (instregex "MUL_(FPrST0|FST0r|FrST0)")>;
  834. def SKXWriteResGroup50 : SchedWriteRes<[SKXPort01]> {
  835. let Latency = 4;
  836. let NumMicroOps = 1;
  837. let ResourceCycles = [1];
  838. }
  839. def: InstRW<[SKXWriteResGroup50], (instregex "VCVTDQ2PS(Y|Z128|Z256)rr",
  840. "(V?)CVTDQ2PSrr",
  841. "VCVTPD2QQ(Z128|Z256)rr",
  842. "VCVTPD2UQQ(Z128|Z256)rr",
  843. "VCVTPS2DQ(Y|Z128|Z256)rr",
  844. "(V?)CVTPS2DQrr",
  845. "VCVTPS2UDQ(Z128|Z256)rr",
  846. "VCVTQQ2PD(Z128|Z256)rr",
  847. "VCVTTPD2QQ(Z128|Z256)rr",
  848. "VCVTTPD2UQQ(Z128|Z256)rr",
  849. "VCVTTPS2DQ(Z128|Z256)rr",
  850. "(V?)CVTTPS2DQrr",
  851. "VCVTTPS2UDQ(Z128|Z256)rr",
  852. "VCVTUDQ2PS(Z128|Z256)rr",
  853. "VCVTUQQ2PD(Z128|Z256)rr")>;
  854. def SKXWriteResGroup50z : SchedWriteRes<[SKXPort05]> {
  855. let Latency = 4;
  856. let NumMicroOps = 1;
  857. let ResourceCycles = [1];
  858. }
  859. def: InstRW<[SKXWriteResGroup50z], (instrs VCVTDQ2PSZrr,
  860. VCVTPD2QQZrr,
  861. VCVTPD2UQQZrr,
  862. VCVTPS2DQZrr,
  863. VCVTPS2UDQZrr,
  864. VCVTQQ2PDZrr,
  865. VCVTTPD2QQZrr,
  866. VCVTTPD2UQQZrr,
  867. VCVTTPS2DQZrr,
  868. VCVTTPS2UDQZrr,
  869. VCVTUDQ2PSZrr,
  870. VCVTUQQ2PDZrr)>;
  871. def SKXWriteResGroup51 : SchedWriteRes<[SKXPort5]> {
  872. let Latency = 4;
  873. let NumMicroOps = 2;
  874. let ResourceCycles = [2];
  875. }
  876. def: InstRW<[SKXWriteResGroup51], (instregex "VEXPANDPD(Z|Z128|Z256)rr",
  877. "VEXPANDPS(Z|Z128|Z256)rr",
  878. "VPEXPANDD(Z|Z128|Z256)rr",
  879. "VPEXPANDQ(Z|Z128|Z256)rr",
  880. "VPMOVDB(Z|Z128|Z256)rr",
  881. "VPMOVDW(Z|Z128|Z256)rr",
  882. "VPMOVQB(Z|Z128|Z256)rr",
  883. "VPMOVQW(Z|Z128|Z256)rr",
  884. "VPMOVSDB(Z|Z128|Z256)rr",
  885. "VPMOVSDW(Z|Z128|Z256)rr",
  886. "VPMOVSQB(Z|Z128|Z256)rr",
  887. "VPMOVSQD(Z|Z128|Z256)rr",
  888. "VPMOVSQW(Z|Z128|Z256)rr",
  889. "VPMOVSWB(Z|Z128|Z256)rr",
  890. "VPMOVUSDB(Z|Z128|Z256)rr",
  891. "VPMOVUSDW(Z|Z128|Z256)rr",
  892. "VPMOVUSQB(Z|Z128|Z256)rr",
  893. "VPMOVUSQD(Z|Z128|Z256)rr",
  894. "VPMOVUSWB(Z|Z128|Z256)rr",
  895. "VPMOVWB(Z|Z128|Z256)rr")>;
  896. def SKXWriteResGroup54 : SchedWriteRes<[SKXPort4,SKXPort5,SKXPort237]> {
  897. let Latency = 4;
  898. let NumMicroOps = 3;
  899. let ResourceCycles = [1,1,1];
  900. }
  901. def: InstRW<[SKXWriteResGroup54], (instregex "IST(T?)_FP(16|32|64)m",
  902. "IST_F(16|32)m",
  903. "VPMOVQD(Z|Z128|Z256)mr(b?)")>;
  904. def SKXWriteResGroup55 : SchedWriteRes<[SKXPort0156]> {
  905. let Latency = 4;
  906. let NumMicroOps = 4;
  907. let ResourceCycles = [4];
  908. }
  909. def: InstRW<[SKXWriteResGroup55], (instrs FNCLEX)>;
  910. def SKXWriteResGroup56 : SchedWriteRes<[]> {
  911. let Latency = 0;
  912. let NumMicroOps = 4;
  913. let ResourceCycles = [];
  914. }
  915. def: InstRW<[SKXWriteResGroup56], (instrs VZEROUPPER)>;
  916. def SKXWriteResGroup57 : SchedWriteRes<[SKXPort1,SKXPort6,SKXPort0156]> {
  917. let Latency = 4;
  918. let NumMicroOps = 4;
  919. let ResourceCycles = [1,1,2];
  920. }
  921. def: InstRW<[SKXWriteResGroup57], (instregex "LAR(16|32|64)rr")>;
  922. def SKXWriteResGroup58 : SchedWriteRes<[SKXPort23]> {
  923. let Latency = 5;
  924. let NumMicroOps = 1;
  925. let ResourceCycles = [1];
  926. }
  927. def: InstRW<[SKXWriteResGroup58], (instregex "MOVSX(16|32|64)rm(8|16|32)",
  928. "MOVZX(16|32|64)rm(8|16)",
  929. "(V?)MOVDDUPrm")>; // TODO: Should this be SKXWriteResGroup71?
  930. def SKXWriteResGroup61 : SchedWriteRes<[SKXPort5,SKXPort015]> {
  931. let Latency = 5;
  932. let NumMicroOps = 2;
  933. let ResourceCycles = [1,1];
  934. }
  935. def: InstRW<[SKXWriteResGroup61], (instregex "MMX_CVT(T?)PD2PIrr",
  936. "MMX_CVT(T?)PS2PIrr",
  937. "VCVTDQ2PDZ128rr",
  938. "VCVTPD2DQZ128rr",
  939. "(V?)CVT(T?)PD2DQrr",
  940. "VCVTPD2PSZ128rr",
  941. "(V?)CVTPD2PSrr",
  942. "VCVTPD2UDQZ128rr",
  943. "VCVTPS2PDZ128rr",
  944. "(V?)CVTPS2PDrr",
  945. "VCVTPS2QQZ128rr",
  946. "VCVTPS2UQQZ128rr",
  947. "VCVTQQ2PSZ128rr",
  948. "(V?)CVTSD2SS(Z?)rr",
  949. "(V?)CVTSI(64)?2SDrr",
  950. "VCVTSI2SSZrr",
  951. "(V?)CVTSI2SSrr",
  952. "VCVTSI(64)?2SDZrr",
  953. "VCVTSS2SDZrr",
  954. "(V?)CVTSS2SDrr",
  955. "VCVTTPD2DQZ128rr",
  956. "VCVTTPD2UDQZ128rr",
  957. "VCVTTPS2QQZ128rr",
  958. "VCVTTPS2UQQZ128rr",
  959. "VCVTUDQ2PDZ128rr",
  960. "VCVTUQQ2PSZ128rr",
  961. "VCVTUSI2SSZrr",
  962. "VCVTUSI(64)?2SDZrr")>;
  963. def SKXWriteResGroup62 : SchedWriteRes<[SKXPort5,SKXPort015]> {
  964. let Latency = 5;
  965. let NumMicroOps = 3;
  966. let ResourceCycles = [2,1];
  967. }
  968. def: InstRW<[SKXWriteResGroup62], (instregex "VPCONFLICTQZ128rr")>;
  969. def SKXWriteResGroup63 : SchedWriteRes<[SKXPort1,SKXPort6,SKXPort06]> {
  970. let Latency = 5;
  971. let NumMicroOps = 3;
  972. let ResourceCycles = [1,1,1];
  973. }
  974. def: InstRW<[SKXWriteResGroup63], (instregex "STR(16|32|64)r")>;
  975. def SKXWriteResGroup65 : SchedWriteRes<[SKXPort4,SKXPort237,SKXPort015]> {
  976. let Latency = 5;
  977. let NumMicroOps = 3;
  978. let ResourceCycles = [1,1,1];
  979. }
  980. def: InstRW<[SKXWriteResGroup65], (instregex "VCVTPS2PHZ128mr(b?)",
  981. "VCVTPS2PHZ256mr(b?)",
  982. "VCVTPS2PHZmr(b?)")>;
  983. def SKXWriteResGroup66 : SchedWriteRes<[SKXPort4,SKXPort5,SKXPort237]> {
  984. let Latency = 5;
  985. let NumMicroOps = 4;
  986. let ResourceCycles = [1,2,1];
  987. }
  988. def: InstRW<[SKXWriteResGroup66], (instregex "VPMOVDB(Z|Z128|Z256)mr(b?)",
  989. "VPMOVDW(Z|Z128|Z256)mr(b?)",
  990. "VPMOVQB(Z|Z128|Z256)mr(b?)",
  991. "VPMOVQW(Z|Z128|Z256)mr(b?)",
  992. "VPMOVSDB(Z|Z128|Z256)mr(b?)",
  993. "VPMOVSDW(Z|Z128|Z256)mr(b?)",
  994. "VPMOVSQB(Z|Z128|Z256)mr(b?)",
  995. "VPMOVSQD(Z|Z128|Z256)mr(b?)",
  996. "VPMOVSQW(Z|Z128|Z256)mr(b?)",
  997. "VPMOVSWB(Z|Z128|Z256)mr(b?)",
  998. "VPMOVUSDB(Z|Z128|Z256)mr(b?)",
  999. "VPMOVUSDW(Z|Z128|Z256)mr(b?)",
  1000. "VPMOVUSQB(Z|Z128|Z256)mr(b?)",
  1001. "VPMOVUSQD(Z|Z128|Z256)mr(b?)",
  1002. "VPMOVUSQW(Z|Z128|Z256)mr(b?)",
  1003. "VPMOVUSWB(Z|Z128|Z256)mr(b?)",
  1004. "VPMOVWB(Z|Z128|Z256)mr(b?)")>;
  1005. def SKXWriteResGroup67 : SchedWriteRes<[SKXPort06,SKXPort0156]> {
  1006. let Latency = 5;
  1007. let NumMicroOps = 5;
  1008. let ResourceCycles = [1,4];
  1009. }
  1010. def: InstRW<[SKXWriteResGroup67], (instrs XSETBV)>;
  1011. def SKXWriteResGroup69 : SchedWriteRes<[SKXPort4,SKXPort237,SKXPort0156]> {
  1012. let Latency = 5;
  1013. let NumMicroOps = 6;
  1014. let ResourceCycles = [1,1,4];
  1015. }
  1016. def: InstRW<[SKXWriteResGroup69], (instregex "PUSHF(16|64)")>;
  1017. def SKXWriteResGroup71 : SchedWriteRes<[SKXPort23]> {
  1018. let Latency = 6;
  1019. let NumMicroOps = 1;
  1020. let ResourceCycles = [1];
  1021. }
  1022. def: InstRW<[SKXWriteResGroup71], (instrs VBROADCASTSSrm,
  1023. VPBROADCASTDrm,
  1024. VPBROADCASTQrm,
  1025. VMOVSHDUPrm,
  1026. VMOVSLDUPrm,
  1027. MOVSHDUPrm,
  1028. MOVSLDUPrm)>;
  1029. def SKXWriteResGroup72 : SchedWriteRes<[SKXPort5]> {
  1030. let Latency = 6;
  1031. let NumMicroOps = 2;
  1032. let ResourceCycles = [2];
  1033. }
  1034. def: InstRW<[SKXWriteResGroup72], (instrs MMX_CVTPI2PSrr)>;
  1035. def: InstRW<[SKXWriteResGroup72], (instregex "VCOMPRESSPD(Z|Z128|Z256)rr",
  1036. "VCOMPRESSPS(Z|Z128|Z256)rr",
  1037. "VPCOMPRESSD(Z|Z128|Z256)rr",
  1038. "VPCOMPRESSQ(Z|Z128|Z256)rr",
  1039. "VPERMW(Z|Z128|Z256)rr")>;
  1040. def SKXWriteResGroup73 : SchedWriteRes<[SKXPort0,SKXPort23]> {
  1041. let Latency = 6;
  1042. let NumMicroOps = 2;
  1043. let ResourceCycles = [1,1];
  1044. }
  1045. def: InstRW<[SKXWriteResGroup73], (instrs MMX_PADDSBrm,
  1046. MMX_PADDSWrm,
  1047. MMX_PADDUSBrm,
  1048. MMX_PADDUSWrm,
  1049. MMX_PAVGBrm,
  1050. MMX_PAVGWrm,
  1051. MMX_PCMPEQBrm,
  1052. MMX_PCMPEQDrm,
  1053. MMX_PCMPEQWrm,
  1054. MMX_PCMPGTBrm,
  1055. MMX_PCMPGTDrm,
  1056. MMX_PCMPGTWrm,
  1057. MMX_PMAXSWrm,
  1058. MMX_PMAXUBrm,
  1059. MMX_PMINSWrm,
  1060. MMX_PMINUBrm,
  1061. MMX_PSUBSBrm,
  1062. MMX_PSUBSWrm,
  1063. MMX_PSUBUSBrm,
  1064. MMX_PSUBUSWrm)>;
  1065. def SKXWriteResGroup76 : SchedWriteRes<[SKXPort6,SKXPort23]> {
  1066. let Latency = 6;
  1067. let NumMicroOps = 2;
  1068. let ResourceCycles = [1,1];
  1069. }
  1070. def: InstRW<[SKXWriteResGroup76], (instrs FARJMP64m)>;
  1071. def: InstRW<[SKXWriteResGroup76], (instregex "JMP(16|32|64)m")>;
  1072. def SKXWriteResGroup79 : SchedWriteRes<[SKXPort23,SKXPort15]> {
  1073. let Latency = 6;
  1074. let NumMicroOps = 2;
  1075. let ResourceCycles = [1,1];
  1076. }
  1077. def: InstRW<[SKXWriteResGroup79], (instregex "ANDN(32|64)rm",
  1078. "MOVBE(16|32|64)rm")>;
  1079. def SKXWriteResGroup80 : SchedWriteRes<[SKXPort23,SKXPort015]> {
  1080. let Latency = 6;
  1081. let NumMicroOps = 2;
  1082. let ResourceCycles = [1,1];
  1083. }
  1084. def: InstRW<[SKXWriteResGroup80], (instregex "VMOV(64to|QI2)PQIZrm(b?)")>;
  1085. def: InstRW<[SKXWriteResGroup80], (instrs VMOVDI2PDIZrm)>;
  1086. def SKXWriteResGroup81 : SchedWriteRes<[SKXPort23,SKXPort0156]> {
  1087. let Latency = 6;
  1088. let NumMicroOps = 2;
  1089. let ResourceCycles = [1,1];
  1090. }
  1091. def: InstRW<[SKXWriteResGroup81], (instrs POP16r, POP32r, POP64r)>;
  1092. def: InstRW<[SKXWriteResGroup81], (instregex "POP(16|32|64)rmr")>;
  1093. def SKXWriteResGroup82 : SchedWriteRes<[SKXPort5,SKXPort015]> {
  1094. let Latency = 6;
  1095. let NumMicroOps = 3;
  1096. let ResourceCycles = [2,1];
  1097. }
  1098. def: InstRW<[SKXWriteResGroup82], (instregex "(V?)CVTSI642SSrr",
  1099. "VCVTSI642SSZrr",
  1100. "VCVTUSI642SSZrr")>;
  1101. def SKXWriteResGroup84 : SchedWriteRes<[SKXPort1,SKXPort6,SKXPort06,SKXPort0156]> {
  1102. let Latency = 6;
  1103. let NumMicroOps = 4;
  1104. let ResourceCycles = [1,1,1,1];
  1105. }
  1106. def: InstRW<[SKXWriteResGroup84], (instregex "SLDT(16|32|64)r")>;
  1107. def SKXWriteResGroup86 : SchedWriteRes<[SKXPort4,SKXPort23,SKXPort237,SKXPort06]> {
  1108. let Latency = 6;
  1109. let NumMicroOps = 4;
  1110. let ResourceCycles = [1,1,1,1];
  1111. }
  1112. def: InstRW<[SKXWriteResGroup86], (instregex "SAR(8|16|32|64)m(1|i)",
  1113. "SHL(8|16|32|64)m(1|i)",
  1114. "SHR(8|16|32|64)m(1|i)")>;
  1115. def SKXWriteResGroup87 : SchedWriteRes<[SKXPort4,SKXPort23,SKXPort237,SKXPort0156]> {
  1116. let Latency = 6;
  1117. let NumMicroOps = 4;
  1118. let ResourceCycles = [1,1,1,1];
  1119. }
  1120. def: InstRW<[SKXWriteResGroup87], (instregex "POP(16|32|64)rmm",
  1121. "PUSH(16|32|64)rmm")>;
  1122. def SKXWriteResGroup88 : SchedWriteRes<[SKXPort6,SKXPort0156]> {
  1123. let Latency = 6;
  1124. let NumMicroOps = 6;
  1125. let ResourceCycles = [1,5];
  1126. }
  1127. def: InstRW<[SKXWriteResGroup88], (instrs STD)>;
  1128. def SKXWriteResGroup89 : SchedWriteRes<[SKXPort23]> {
  1129. let Latency = 7;
  1130. let NumMicroOps = 1;
  1131. let ResourceCycles = [1];
  1132. }
  1133. def: InstRW<[SKXWriteResGroup89], (instregex "LD_F(32|64|80)m")>;
  1134. def: InstRW<[SKXWriteResGroup89], (instrs VBROADCASTF128,
  1135. VBROADCASTI128,
  1136. VBROADCASTSDYrm,
  1137. VBROADCASTSSYrm,
  1138. VMOVDDUPYrm,
  1139. VMOVSHDUPYrm,
  1140. VMOVSLDUPYrm,
  1141. VPBROADCASTDYrm,
  1142. VPBROADCASTQYrm)>;
  1143. def SKXWriteResGroup90 : SchedWriteRes<[SKXPort01,SKXPort5]> {
  1144. let Latency = 7;
  1145. let NumMicroOps = 2;
  1146. let ResourceCycles = [1,1];
  1147. }
  1148. def: InstRW<[SKXWriteResGroup90], (instrs VCVTDQ2PDYrr)>;
  1149. def SKXWriteResGroup92 : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1150. let Latency = 7;
  1151. let NumMicroOps = 2;
  1152. let ResourceCycles = [1,1];
  1153. }
  1154. def: InstRW<[SKXWriteResGroup92], (instregex "VMOVSDZrm(b?)",
  1155. "VMOVSSZrm(b?)")>;
  1156. def SKXWriteResGroup92a : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1157. let Latency = 6;
  1158. let NumMicroOps = 2;
  1159. let ResourceCycles = [1,1];
  1160. }
  1161. def: InstRW<[SKXWriteResGroup92a], (instregex "(V?)PMOV(SX|ZX)BDrm",
  1162. "(V?)PMOV(SX|ZX)BQrm",
  1163. "(V?)PMOV(SX|ZX)BWrm",
  1164. "(V?)PMOV(SX|ZX)DQrm",
  1165. "(V?)PMOV(SX|ZX)WDrm",
  1166. "(V?)PMOV(SX|ZX)WQrm")>;
  1167. def SKXWriteResGroup93 : SchedWriteRes<[SKXPort5,SKXPort015]> {
  1168. let Latency = 7;
  1169. let NumMicroOps = 2;
  1170. let ResourceCycles = [1,1];
  1171. }
  1172. def: InstRW<[SKXWriteResGroup93], (instregex "VCVTDQ2PDZ256rr",
  1173. "VCVTPD2DQ(Y|Z256)rr",
  1174. "VCVTPD2PS(Y|Z256)rr",
  1175. "VCVTPD2UDQZ256rr",
  1176. "VCVTPS2PD(Y|Z256)rr",
  1177. "VCVTPS2QQZ256rr",
  1178. "VCVTPS2UQQZ256rr",
  1179. "VCVTQQ2PSZ256rr",
  1180. "VCVTTPD2DQ(Y|Z256)rr",
  1181. "VCVTTPD2UDQZ256rr",
  1182. "VCVTTPS2QQZ256rr",
  1183. "VCVTTPS2UQQZ256rr",
  1184. "VCVTUDQ2PDZ256rr",
  1185. "VCVTUQQ2PSZ256rr")>;
  1186. def SKXWriteResGroup93z : SchedWriteRes<[SKXPort5,SKXPort05]> {
  1187. let Latency = 7;
  1188. let NumMicroOps = 2;
  1189. let ResourceCycles = [1,1];
  1190. }
  1191. def: InstRW<[SKXWriteResGroup93z], (instrs VCVTDQ2PDZrr,
  1192. VCVTPD2DQZrr,
  1193. VCVTPD2PSZrr,
  1194. VCVTPD2UDQZrr,
  1195. VCVTPS2PDZrr,
  1196. VCVTPS2QQZrr,
  1197. VCVTPS2UQQZrr,
  1198. VCVTQQ2PSZrr,
  1199. VCVTTPD2DQZrr,
  1200. VCVTTPD2UDQZrr,
  1201. VCVTTPS2QQZrr,
  1202. VCVTTPS2UQQZrr,
  1203. VCVTUDQ2PDZrr,
  1204. VCVTUQQ2PSZrr)>;
  1205. def SKXWriteResGroup95 : SchedWriteRes<[SKXPort23,SKXPort015]> {
  1206. let Latency = 7;
  1207. let NumMicroOps = 2;
  1208. let ResourceCycles = [1,1];
  1209. }
  1210. def: InstRW<[SKXWriteResGroup95], (instrs VMOVNTDQAZ128rm,
  1211. VPBLENDDrmi)>;
  1212. def: InstRW<[SKXWriteResGroup95, ReadAfterVecXLd],
  1213. (instregex "VBLENDMPDZ128rm(b?)",
  1214. "VBLENDMPSZ128rm(b?)",
  1215. "VBROADCASTI32X2Z128rm(b?)",
  1216. "VBROADCASTSSZ128rm(b?)",
  1217. "VINSERT(F|I)128rm",
  1218. "VMOVAPDZ128rm(b?)",
  1219. "VMOVAPSZ128rm(b?)",
  1220. "VMOVDDUPZ128rm(b?)",
  1221. "VMOVDQA32Z128rm(b?)",
  1222. "VMOVDQA64Z128rm(b?)",
  1223. "VMOVDQU16Z128rm(b?)",
  1224. "VMOVDQU32Z128rm(b?)",
  1225. "VMOVDQU64Z128rm(b?)",
  1226. "VMOVDQU8Z128rm(b?)",
  1227. "VMOVSHDUPZ128rm(b?)",
  1228. "VMOVSLDUPZ128rm(b?)",
  1229. "VMOVUPDZ128rm(b?)",
  1230. "VMOVUPSZ128rm(b?)",
  1231. "VPADD(B|D|Q|W)Z128rm(b?)",
  1232. "(V?)PADD(B|D|Q|W)rm",
  1233. "VPBLENDM(B|D|Q|W)Z128rm(b?)",
  1234. "VPBROADCASTDZ128rm(b?)",
  1235. "VPBROADCASTQZ128rm(b?)",
  1236. "VPSUB(B|D|Q|W)Z128rm(b?)",
  1237. "(V?)PSUB(B|D|Q|W)rm",
  1238. "VPTERNLOGDZ128rm(b?)i",
  1239. "VPTERNLOGQZ128rm(b?)i")>;
  1240. def SKXWriteResGroup96 : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1241. let Latency = 7;
  1242. let NumMicroOps = 3;
  1243. let ResourceCycles = [2,1];
  1244. }
  1245. def: InstRW<[SKXWriteResGroup96], (instrs MMX_PACKSSDWrm,
  1246. MMX_PACKSSWBrm,
  1247. MMX_PACKUSWBrm)>;
  1248. def SKXWriteResGroup97 : SchedWriteRes<[SKXPort5,SKXPort015]> {
  1249. let Latency = 7;
  1250. let NumMicroOps = 3;
  1251. let ResourceCycles = [2,1];
  1252. }
  1253. def: InstRW<[SKXWriteResGroup97], (instregex "VPERMI2W128rr",
  1254. "VPERMI2W256rr",
  1255. "VPERMI2Wrr",
  1256. "VPERMT2W128rr",
  1257. "VPERMT2W256rr",
  1258. "VPERMT2Wrr")>;
  1259. def SKXWriteResGroup99 : SchedWriteRes<[SKXPort23,SKXPort0156]> {
  1260. let Latency = 7;
  1261. let NumMicroOps = 3;
  1262. let ResourceCycles = [1,2];
  1263. }
  1264. def: InstRW<[SKXWriteResGroup99], (instrs LEAVE, LEAVE64,
  1265. SCASB, SCASL, SCASQ, SCASW)>;
  1266. def SKXWriteResGroup100 : SchedWriteRes<[SKXPort0,SKXPort5,SKXPort015]> {
  1267. let Latency = 7;
  1268. let NumMicroOps = 3;
  1269. let ResourceCycles = [1,1,1];
  1270. }
  1271. def: InstRW<[SKXWriteResGroup100], (instregex "VCVTSS2USI64Zrr",
  1272. "(V?)CVTSS2SI64(Z?)rr",
  1273. "(V?)CVTTSS2SI64(Z?)rr",
  1274. "VCVTTSS2USI64Zrr")>;
  1275. def SKXWriteResGroup101 : SchedWriteRes<[SKXPort0,SKXPort23,SKXPort05]> {
  1276. let Latency = 7;
  1277. let NumMicroOps = 3;
  1278. let ResourceCycles = [1,1,1];
  1279. }
  1280. def: InstRW<[SKXWriteResGroup101], (instrs FLDCW16m)>;
  1281. def SKXWriteResGroup103 : SchedWriteRes<[SKXPort5,SKXPort23,SKXPort0156]> {
  1282. let Latency = 7;
  1283. let NumMicroOps = 3;
  1284. let ResourceCycles = [1,1,1];
  1285. }
  1286. def: InstRW<[SKXWriteResGroup103], (instregex "KMOV(B|D|Q|W)km")>;
  1287. def SKXWriteResGroup104 : SchedWriteRes<[SKXPort6,SKXPort23,SKXPort0156]> {
  1288. let Latency = 7;
  1289. let NumMicroOps = 3;
  1290. let ResourceCycles = [1,1,1];
  1291. }
  1292. def: InstRW<[SKXWriteResGroup104], (instrs LRET64, RET64)>;
  1293. def SKXWriteResGroup106 : SchedWriteRes<[SKXPort4,SKXPort5,SKXPort237]> {
  1294. let Latency = 7;
  1295. let NumMicroOps = 4;
  1296. let ResourceCycles = [1,2,1];
  1297. }
  1298. def: InstRW<[SKXWriteResGroup106], (instregex "VCOMPRESSPD(Z|Z128|Z256)mr(b?)",
  1299. "VCOMPRESSPS(Z|Z128|Z256)mr(b?)",
  1300. "VPCOMPRESSD(Z|Z128|Z256)mr(b?)",
  1301. "VPCOMPRESSQ(Z|Z128|Z256)mr(b?)")>;
  1302. def SKXWriteResGroup107 : SchedWriteRes<[SKXPort4,SKXPort23,SKXPort237,SKXPort06]> {
  1303. let Latency = 7;
  1304. let NumMicroOps = 5;
  1305. let ResourceCycles = [1,1,1,2];
  1306. }
  1307. def: InstRW<[SKXWriteResGroup107], (instregex "ROL(8|16|32|64)m(1|i)",
  1308. "ROR(8|16|32|64)m(1|i)")>;
  1309. def SKXWriteResGroup107_1 : SchedWriteRes<[SKXPort06]> {
  1310. let Latency = 2;
  1311. let NumMicroOps = 2;
  1312. let ResourceCycles = [2];
  1313. }
  1314. def: InstRW<[SKXWriteResGroup107_1], (instrs ROL8r1, ROL16r1, ROL32r1, ROL64r1,
  1315. ROR8r1, ROR16r1, ROR32r1, ROR64r1)>;
  1316. def SKXWriteResGroup108 : SchedWriteRes<[SKXPort4,SKXPort23,SKXPort237,SKXPort0156]> {
  1317. let Latency = 7;
  1318. let NumMicroOps = 5;
  1319. let ResourceCycles = [1,1,1,2];
  1320. }
  1321. def: InstRW<[SKXWriteResGroup108], (instregex "XADD(8|16|32|64)rm")>;
  1322. def SKXWriteResGroup109 : SchedWriteRes<[SKXPort4,SKXPort6,SKXPort23,SKXPort237,SKXPort0156]> {
  1323. let Latency = 7;
  1324. let NumMicroOps = 5;
  1325. let ResourceCycles = [1,1,1,1,1];
  1326. }
  1327. def: InstRW<[SKXWriteResGroup109], (instregex "CALL(16|32|64)m")>;
  1328. def: InstRW<[SKXWriteResGroup109], (instrs FARCALL64m)>;
  1329. def SKXWriteResGroup110 : SchedWriteRes<[SKXPort0,SKXPort4,SKXPort237,SKXPort0156]> {
  1330. let Latency = 7;
  1331. let NumMicroOps = 7;
  1332. let ResourceCycles = [1,2,2,2];
  1333. }
  1334. def: InstRW<[SKXWriteResGroup110], (instrs VPSCATTERDQZ128mr,
  1335. VPSCATTERQQZ128mr,
  1336. VSCATTERDPDZ128mr,
  1337. VSCATTERQPDZ128mr)>;
  1338. def SKXWriteResGroup111 : SchedWriteRes<[SKXPort6,SKXPort06,SKXPort15,SKXPort0156]> {
  1339. let Latency = 7;
  1340. let NumMicroOps = 7;
  1341. let ResourceCycles = [1,3,1,2];
  1342. }
  1343. def: InstRW<[SKXWriteResGroup111], (instrs LOOP)>;
  1344. def SKXWriteResGroup112 : SchedWriteRes<[SKXPort0,SKXPort4,SKXPort237,SKXPort0156]> {
  1345. let Latency = 7;
  1346. let NumMicroOps = 11;
  1347. let ResourceCycles = [1,4,4,2];
  1348. }
  1349. def: InstRW<[SKXWriteResGroup112], (instrs VPSCATTERDQZ256mr,
  1350. VPSCATTERQQZ256mr,
  1351. VSCATTERDPDZ256mr,
  1352. VSCATTERQPDZ256mr)>;
  1353. def SKXWriteResGroup113 : SchedWriteRes<[SKXPort0,SKXPort4,SKXPort237,SKXPort0156]> {
  1354. let Latency = 7;
  1355. let NumMicroOps = 19;
  1356. let ResourceCycles = [1,8,8,2];
  1357. }
  1358. def: InstRW<[SKXWriteResGroup113], (instrs VPSCATTERDQZmr,
  1359. VPSCATTERQQZmr,
  1360. VSCATTERDPDZmr,
  1361. VSCATTERQPDZmr)>;
  1362. def SKXWriteResGroup114 : SchedWriteRes<[SKXPort0,SKXPort4,SKXPort5,SKXPort237,SKXPort0156]> {
  1363. let Latency = 7;
  1364. let NumMicroOps = 36;
  1365. let ResourceCycles = [1,16,1,16,2];
  1366. }
  1367. def: InstRW<[SKXWriteResGroup114], (instrs VSCATTERDPSZmr)>;
  1368. def SKXWriteResGroup118 : SchedWriteRes<[SKXPort1,SKXPort23]> {
  1369. let Latency = 8;
  1370. let NumMicroOps = 2;
  1371. let ResourceCycles = [1,1];
  1372. }
  1373. def: InstRW<[SKXWriteResGroup118], (instregex "PDEP(32|64)rm",
  1374. "PEXT(32|64)rm")>;
  1375. def SKXWriteResGroup119 : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1376. let Latency = 8;
  1377. let NumMicroOps = 2;
  1378. let ResourceCycles = [1,1];
  1379. }
  1380. def: InstRW<[SKXWriteResGroup119], (instregex "FCOM(P?)(32|64)m",
  1381. "VPBROADCASTB(Z|Z256)rm(b?)",
  1382. "VPBROADCASTW(Z|Z256)rm(b?)")>;
  1383. def: InstRW<[SKXWriteResGroup119], (instrs VPBROADCASTBYrm,
  1384. VPBROADCASTWYrm,
  1385. VPMOVSXBDYrm,
  1386. VPMOVSXBQYrm,
  1387. VPMOVSXWQYrm)>;
  1388. def SKXWriteResGroup121 : SchedWriteRes<[SKXPort23,SKXPort015]> {
  1389. let Latency = 8;
  1390. let NumMicroOps = 2;
  1391. let ResourceCycles = [1,1];
  1392. }
  1393. def: InstRW<[SKXWriteResGroup121], (instrs VMOVNTDQAZ256rm,
  1394. VPBLENDDYrmi)>;
  1395. def: InstRW<[SKXWriteResGroup121, ReadAfterVecYLd],
  1396. (instregex "VBLENDMPD(Z|Z256)rm(b?)",
  1397. "VBLENDMPS(Z|Z256)rm(b?)",
  1398. "VBROADCASTF32X2Z256rm(b?)",
  1399. "VBROADCASTF32X2Zrm(b?)",
  1400. "VBROADCASTF32X4Z256rm(b?)",
  1401. "VBROADCASTF32X4rm(b?)",
  1402. "VBROADCASTF32X8rm(b?)",
  1403. "VBROADCASTF64X2Z128rm(b?)",
  1404. "VBROADCASTF64X2rm(b?)",
  1405. "VBROADCASTF64X4rm(b?)",
  1406. "VBROADCASTI32X2Z256rm(b?)",
  1407. "VBROADCASTI32X2Zrm(b?)",
  1408. "VBROADCASTI32X4Z256rm(b?)",
  1409. "VBROADCASTI32X4rm(b?)",
  1410. "VBROADCASTI32X8rm(b?)",
  1411. "VBROADCASTI64X2Z128rm(b?)",
  1412. "VBROADCASTI64X2rm(b?)",
  1413. "VBROADCASTI64X4rm(b?)",
  1414. "VBROADCASTSD(Z|Z256)rm(b?)",
  1415. "VBROADCASTSS(Z|Z256)rm(b?)",
  1416. "VINSERTF32x4(Z|Z256)rm(b?)",
  1417. "VINSERTF32x8Zrm(b?)",
  1418. "VINSERTF64x2(Z|Z256)rm(b?)",
  1419. "VINSERTF64x4Zrm(b?)",
  1420. "VINSERTI32x4(Z|Z256)rm(b?)",
  1421. "VINSERTI32x8Zrm(b?)",
  1422. "VINSERTI64x2(Z|Z256)rm(b?)",
  1423. "VINSERTI64x4Zrm(b?)",
  1424. "VMOVAPD(Z|Z256)rm(b?)",
  1425. "VMOVAPS(Z|Z256)rm(b?)",
  1426. "VMOVDDUP(Z|Z256)rm(b?)",
  1427. "VMOVDQA32(Z|Z256)rm(b?)",
  1428. "VMOVDQA64(Z|Z256)rm(b?)",
  1429. "VMOVDQU16(Z|Z256)rm(b?)",
  1430. "VMOVDQU32(Z|Z256)rm(b?)",
  1431. "VMOVDQU64(Z|Z256)rm(b?)",
  1432. "VMOVDQU8(Z|Z256)rm(b?)",
  1433. "VMOVSHDUP(Z|Z256)rm(b?)",
  1434. "VMOVSLDUP(Z|Z256)rm(b?)",
  1435. "VMOVUPD(Z|Z256)rm(b?)",
  1436. "VMOVUPS(Z|Z256)rm(b?)",
  1437. "VPADD(B|D|Q|W)Yrm",
  1438. "VPADD(B|D|Q|W)(Z|Z256)rm(b?)",
  1439. "VPBLENDM(B|D|Q|W)(Z|Z256)rm(b?)",
  1440. "VPBROADCASTD(Z|Z256)rm(b?)",
  1441. "VPBROADCASTQ(Z|Z256)rm(b?)",
  1442. "VPSUB(B|D|Q|W)Yrm",
  1443. "VPSUB(B|D|Q|W)(Z|Z256)rm(b?)",
  1444. "VPTERNLOGD(Z|Z256)rm(b?)i",
  1445. "VPTERNLOGQ(Z|Z256)rm(b?)i")>;
  1446. def SKXWriteResGroup123 : SchedWriteRes<[SKXPort0,SKXPort5,SKXPort23]> {
  1447. let Latency = 8;
  1448. let NumMicroOps = 4;
  1449. let ResourceCycles = [1,2,1];
  1450. }
  1451. def: InstRW<[SKXWriteResGroup123], (instregex "MMX_PH(ADD|SUB)SWrm")>;
  1452. def SKXWriteResGroup127 : SchedWriteRes<[SKXPort23,SKXPort237,SKXPort06,SKXPort0156]> {
  1453. let Latency = 8;
  1454. let NumMicroOps = 5;
  1455. let ResourceCycles = [1,1,1,2];
  1456. }
  1457. def: InstRW<[SKXWriteResGroup127], (instregex "RCL(8|16|32|64)m(1|i)",
  1458. "RCR(8|16|32|64)m(1|i)")>;
  1459. def SKXWriteResGroup128 : SchedWriteRes<[SKXPort4,SKXPort23,SKXPort237,SKXPort06]> {
  1460. let Latency = 8;
  1461. let NumMicroOps = 6;
  1462. let ResourceCycles = [1,1,1,3];
  1463. }
  1464. def: InstRW<[SKXWriteResGroup128], (instregex "ROL(8|16|32|64)mCL",
  1465. "ROR(8|16|32|64)mCL",
  1466. "SAR(8|16|32|64)mCL",
  1467. "SHL(8|16|32|64)mCL",
  1468. "SHR(8|16|32|64)mCL")>;
  1469. def SKXWriteResGroup130 : SchedWriteRes<[SKXPort4,SKXPort23,SKXPort237,SKXPort06,SKXPort0156]> {
  1470. let Latency = 8;
  1471. let NumMicroOps = 6;
  1472. let ResourceCycles = [1,1,1,2,1];
  1473. }
  1474. def: SchedAlias<WriteADCRMW, SKXWriteResGroup130>;
  1475. def SKXWriteResGroup131 : SchedWriteRes<[SKXPort0,SKXPort4,SKXPort5,SKXPort237,SKXPort0156]> {
  1476. let Latency = 8;
  1477. let NumMicroOps = 8;
  1478. let ResourceCycles = [1,2,1,2,2];
  1479. }
  1480. def: InstRW<[SKXWriteResGroup131], (instrs VPSCATTERQDZ128mr,
  1481. VPSCATTERQDZ256mr,
  1482. VSCATTERQPSZ128mr,
  1483. VSCATTERQPSZ256mr)>;
  1484. def SKXWriteResGroup132 : SchedWriteRes<[SKXPort0,SKXPort4,SKXPort5,SKXPort237,SKXPort0156]> {
  1485. let Latency = 8;
  1486. let NumMicroOps = 12;
  1487. let ResourceCycles = [1,4,1,4,2];
  1488. }
  1489. def: InstRW<[SKXWriteResGroup132], (instrs VPSCATTERDDZ128mr,
  1490. VSCATTERDPSZ128mr)>;
  1491. def SKXWriteResGroup133 : SchedWriteRes<[SKXPort0,SKXPort4,SKXPort5,SKXPort237,SKXPort0156]> {
  1492. let Latency = 8;
  1493. let NumMicroOps = 20;
  1494. let ResourceCycles = [1,8,1,8,2];
  1495. }
  1496. def: InstRW<[SKXWriteResGroup133], (instrs VPSCATTERDDZ256mr,
  1497. VSCATTERDPSZ256mr)>;
  1498. def SKXWriteResGroup134 : SchedWriteRes<[SKXPort0,SKXPort4,SKXPort5,SKXPort237,SKXPort0156]> {
  1499. let Latency = 8;
  1500. let NumMicroOps = 36;
  1501. let ResourceCycles = [1,16,1,16,2];
  1502. }
  1503. def: InstRW<[SKXWriteResGroup134], (instrs VPSCATTERDDZmr)>;
  1504. def SKXWriteResGroup135 : SchedWriteRes<[SKXPort0,SKXPort23]> {
  1505. let Latency = 9;
  1506. let NumMicroOps = 2;
  1507. let ResourceCycles = [1,1];
  1508. }
  1509. def: InstRW<[SKXWriteResGroup135], (instrs MMX_CVTPI2PSrm)>;
  1510. def SKXWriteResGroup136 : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1511. let Latency = 9;
  1512. let NumMicroOps = 2;
  1513. let ResourceCycles = [1,1];
  1514. }
  1515. def: InstRW<[SKXWriteResGroup136], (instrs VPMOVSXBWYrm,
  1516. VPMOVSXDQYrm,
  1517. VPMOVSXWDYrm,
  1518. VPMOVZXWDYrm)>;
  1519. def: InstRW<[SKXWriteResGroup136], (instregex "VALIGN(D|Q)Z128rm(b?)i",
  1520. "VFPCLASSSDZrm(b?)",
  1521. "VFPCLASSSSZrm(b?)",
  1522. "(V?)PCMPGTQrm",
  1523. "VPERMI2D128rm(b?)",
  1524. "VPERMI2PD128rm(b?)",
  1525. "VPERMI2PS128rm(b?)",
  1526. "VPERMI2Q128rm(b?)",
  1527. "VPERMT2D128rm(b?)",
  1528. "VPERMT2PD128rm(b?)",
  1529. "VPERMT2PS128rm(b?)",
  1530. "VPERMT2Q128rm(b?)",
  1531. "VPMAXSQZ128rm(b?)",
  1532. "VPMAXUQZ128rm(b?)",
  1533. "VPMINSQZ128rm(b?)",
  1534. "VPMINUQZ128rm(b?)")>;
  1535. def SKXWriteResGroup136_2 : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1536. let Latency = 10;
  1537. let NumMicroOps = 2;
  1538. let ResourceCycles = [1,1];
  1539. }
  1540. def: InstRW<[SKXWriteResGroup136_2], (instregex "VCMP(PD|PS)Z128rm(b?)i",
  1541. "VCMP(SD|SS)Zrm",
  1542. "VFPCLASSPDZ128rm(b?)",
  1543. "VFPCLASSPSZ128rm(b?)",
  1544. "VPCMPBZ128rmi(b?)",
  1545. "VPCMPDZ128rmi(b?)",
  1546. "VPCMPEQ(B|D|Q|W)Z128rm(b?)",
  1547. "VPCMPGT(B|D|Q|W)Z128rm(b?)",
  1548. "VPCMPQZ128rmi(b?)",
  1549. "VPCMPU(B|D|Q|W)Z128rmi(b?)",
  1550. "VPCMPWZ128rmi(b?)",
  1551. "VPTESTMBZ128rm(b?)",
  1552. "VPTESTMDZ128rm(b?)",
  1553. "VPTESTMQZ128rm(b?)",
  1554. "VPTESTMWZ128rm(b?)",
  1555. "VPTESTNMBZ128rm(b?)",
  1556. "VPTESTNMDZ128rm(b?)",
  1557. "VPTESTNMQZ128rm(b?)",
  1558. "VPTESTNMWZ128rm(b?)")>;
  1559. def SKXWriteResGroup137 : SchedWriteRes<[SKXPort23,SKXPort015]> {
  1560. let Latency = 9;
  1561. let NumMicroOps = 2;
  1562. let ResourceCycles = [1,1];
  1563. }
  1564. def: InstRW<[SKXWriteResGroup137], (instregex "MMX_CVT(T?)PS2PIrm",
  1565. "(V?)CVTPS2PDrm")>;
  1566. def SKXWriteResGroup143 : SchedWriteRes<[SKXPort5,SKXPort01,SKXPort23]> {
  1567. let Latency = 9;
  1568. let NumMicroOps = 4;
  1569. let ResourceCycles = [2,1,1];
  1570. }
  1571. def: InstRW<[SKXWriteResGroup143], (instregex "(V?)PHADDSWrm",
  1572. "(V?)PHSUBSWrm")>;
  1573. def SKXWriteResGroup146 : SchedWriteRes<[SKXPort1,SKXPort6,SKXPort23,SKXPort0156]> {
  1574. let Latency = 9;
  1575. let NumMicroOps = 5;
  1576. let ResourceCycles = [1,2,1,1];
  1577. }
  1578. def: InstRW<[SKXWriteResGroup146], (instregex "LAR(16|32|64)rm",
  1579. "LSL(16|32|64)rm")>;
  1580. def SKXWriteResGroup148 : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1581. let Latency = 10;
  1582. let NumMicroOps = 2;
  1583. let ResourceCycles = [1,1];
  1584. }
  1585. def: InstRW<[SKXWriteResGroup148], (instrs VPCMPGTQYrm)>;
  1586. def: InstRW<[SKXWriteResGroup148], (instregex "(ADD|SUB|SUBR)_F(32|64)m",
  1587. "ILD_F(16|32|64)m",
  1588. "VALIGND(Z|Z256)rm(b?)i",
  1589. "VALIGNQ(Z|Z256)rm(b?)i",
  1590. "VPMAXSQ(Z|Z256)rm(b?)",
  1591. "VPMAXUQ(Z|Z256)rm(b?)",
  1592. "VPMINSQ(Z|Z256)rm(b?)",
  1593. "VPMINUQ(Z|Z256)rm(b?)")>;
  1594. def SKXWriteResGroup148_2 : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1595. let Latency = 11;
  1596. let NumMicroOps = 2;
  1597. let ResourceCycles = [1,1];
  1598. }
  1599. def: InstRW<[SKXWriteResGroup148_2], (instregex "VCMPPD(Z|Z256)rm(b?)i",
  1600. "VCMPPS(Z|Z256)rm(b?)i",
  1601. "VFPCLASSPD(Z|Z256)rm(b?)",
  1602. "VFPCLASSPS(Z|Z256)rm(b?)",
  1603. "VPCMPB(Z|Z256)rmi(b?)",
  1604. "VPCMPD(Z|Z256)rmi(b?)",
  1605. "VPCMPEQB(Z|Z256)rm(b?)",
  1606. "VPCMPEQD(Z|Z256)rm(b?)",
  1607. "VPCMPEQQ(Z|Z256)rm(b?)",
  1608. "VPCMPEQW(Z|Z256)rm(b?)",
  1609. "VPCMPGTB(Z|Z256)rm(b?)",
  1610. "VPCMPGTD(Z|Z256)rm(b?)",
  1611. "VPCMPGTQ(Z|Z256)rm(b?)",
  1612. "VPCMPGTW(Z|Z256)rm(b?)",
  1613. "VPCMPQ(Z|Z256)rmi(b?)",
  1614. "VPCMPU(B|D|Q|W)Z256rmi(b?)",
  1615. "VPCMPU(B|D|Q|W)Zrmi(b?)",
  1616. "VPCMPW(Z|Z256)rmi(b?)",
  1617. "VPTESTM(B|D|Q|W)Z256rm(b?)",
  1618. "VPTESTM(B|D|Q|W)Zrm(b?)",
  1619. "VPTESTNM(B|D|Q|W)Z256rm(b?)",
  1620. "VPTESTNM(B|D|Q|W)Zrm(b?)")>;
  1621. def SKXWriteResGroup149 : SchedWriteRes<[SKXPort23,SKXPort015]> {
  1622. let Latency = 10;
  1623. let NumMicroOps = 2;
  1624. let ResourceCycles = [1,1];
  1625. }
  1626. def: InstRW<[SKXWriteResGroup149], (instregex "VCVTDQ2PDZ128rm(b?)",
  1627. "VCVTDQ2PSZ128rm(b?)",
  1628. "(V?)CVTDQ2PSrm",
  1629. "VCVTPD2QQZ128rm(b?)",
  1630. "VCVTPD2UQQZ128rm(b?)",
  1631. "VCVTPH2PSZ128rm(b?)",
  1632. "VCVTPS2DQZ128rm(b?)",
  1633. "(V?)CVTPS2DQrm",
  1634. "VCVTPS2PDZ128rm(b?)",
  1635. "VCVTPS2QQZ128rm(b?)",
  1636. "VCVTPS2UDQZ128rm(b?)",
  1637. "VCVTPS2UQQZ128rm(b?)",
  1638. "VCVTQQ2PDZ128rm(b?)",
  1639. "VCVTQQ2PSZ128rm(b?)",
  1640. "VCVTSS2SDZrm",
  1641. "(V?)CVTSS2SDrm",
  1642. "VCVTTPD2QQZ128rm(b?)",
  1643. "VCVTTPD2UQQZ128rm(b?)",
  1644. "VCVTTPS2DQZ128rm(b?)",
  1645. "(V?)CVTTPS2DQrm",
  1646. "VCVTTPS2QQZ128rm(b?)",
  1647. "VCVTTPS2UDQZ128rm(b?)",
  1648. "VCVTTPS2UQQZ128rm(b?)",
  1649. "VCVTUDQ2PDZ128rm(b?)",
  1650. "VCVTUDQ2PSZ128rm(b?)",
  1651. "VCVTUQQ2PDZ128rm(b?)",
  1652. "VCVTUQQ2PSZ128rm(b?)")>;
  1653. def SKXWriteResGroup151 : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1654. let Latency = 10;
  1655. let NumMicroOps = 3;
  1656. let ResourceCycles = [2,1];
  1657. }
  1658. def: InstRW<[SKXWriteResGroup151], (instregex "VEXPANDPDZ128rm(b?)",
  1659. "VEXPANDPSZ128rm(b?)",
  1660. "VPEXPANDDZ128rm(b?)",
  1661. "VPEXPANDQZ128rm(b?)")>;
  1662. def SKXWriteResGroup153 : SchedWriteRes<[SKXPort5,SKXPort23,SKXPort015]> {
  1663. let Latency = 10;
  1664. let NumMicroOps = 3;
  1665. let ResourceCycles = [1,1,1];
  1666. }
  1667. def: InstRW<[SKXWriteResGroup153], (instregex "(V?)CVTSD2SSrm")>;
  1668. def SKXWriteResGroup154 : SchedWriteRes<[SKXPort5,SKXPort01,SKXPort23]> {
  1669. let Latency = 10;
  1670. let NumMicroOps = 4;
  1671. let ResourceCycles = [2,1,1];
  1672. }
  1673. def: InstRW<[SKXWriteResGroup154], (instrs VPHADDSWYrm,
  1674. VPHSUBSWYrm)>;
  1675. def SKXWriteResGroup157 : SchedWriteRes<[SKXPort4,SKXPort6,SKXPort23,SKXPort237,SKXPort06,SKXPort0156]> {
  1676. let Latency = 10;
  1677. let NumMicroOps = 8;
  1678. let ResourceCycles = [1,1,1,1,1,3];
  1679. }
  1680. def: InstRW<[SKXWriteResGroup157], (instregex "XCHG(8|16|32|64)rm")>;
  1681. def SKXWriteResGroup159 : SchedWriteRes<[SKXPort0,SKXFPDivider]> {
  1682. let Latency = 11;
  1683. let NumMicroOps = 1;
  1684. let ResourceCycles = [1,3];
  1685. }
  1686. def : SchedAlias<WriteFDivX, SKXWriteResGroup159>; // TODO - convert to ZnWriteResFpuPair
  1687. def SKXWriteResGroup160 : SchedWriteRes<[SKXPort0,SKXPort23]> {
  1688. let Latency = 11;
  1689. let NumMicroOps = 2;
  1690. let ResourceCycles = [1,1];
  1691. }
  1692. def: InstRW<[SKXWriteResGroup160], (instregex "MUL_F(32|64)m")>;
  1693. def SKXWriteResGroup161 : SchedWriteRes<[SKXPort23,SKXPort015]> {
  1694. let Latency = 11;
  1695. let NumMicroOps = 2;
  1696. let ResourceCycles = [1,1];
  1697. }
  1698. def: InstRW<[SKXWriteResGroup161], (instrs VCVTDQ2PSYrm,
  1699. VCVTPS2PDYrm)>;
  1700. def: InstRW<[SKXWriteResGroup161], (instregex "VCVTDQ2(PD|PS)(Z|Z256)rm(b?)",
  1701. "VCVTPH2PS(Z|Z256)rm(b?)",
  1702. "VCVTPS2PD(Z|Z256)rm(b?)",
  1703. "VCVTQQ2PD(Z|Z256)rm(b?)",
  1704. "VCVTQQ2PSZ256rm(b?)",
  1705. "VCVT(T?)PD2QQ(Z|Z256)rm(b?)",
  1706. "VCVT(T?)PD2UQQ(Z|Z256)rm(b?)",
  1707. "VCVT(T?)PS2DQYrm",
  1708. "VCVT(T?)PS2DQ(Z|Z256)rm(b?)",
  1709. "VCVT(T?)PS2QQZ256rm(b?)",
  1710. "VCVT(T?)PS2UDQ(Z|Z256)rm(b?)",
  1711. "VCVT(T?)PS2UQQZ256rm(b?)",
  1712. "VCVTUDQ2(PD|PS)(Z|Z256)rm(b?)",
  1713. "VCVTUQQ2PD(Z|Z256)rm(b?)",
  1714. "VCVTUQQ2PSZ256rm(b?)")>;
  1715. def SKXWriteResGroup162 : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1716. let Latency = 11;
  1717. let NumMicroOps = 3;
  1718. let ResourceCycles = [2,1];
  1719. }
  1720. def: InstRW<[SKXWriteResGroup162], (instregex "FICOM(P?)(16|32)m",
  1721. "VEXPANDPD(Z|Z256)rm(b?)",
  1722. "VEXPANDPS(Z|Z256)rm(b?)",
  1723. "VPEXPANDD(Z|Z256)rm(b?)",
  1724. "VPEXPANDQ(Z|Z256)rm(b?)")>;
  1725. def SKXWriteResGroup163 : SchedWriteRes<[SKXPort23,SKXPort015]> {
  1726. let Latency = 11;
  1727. let NumMicroOps = 3;
  1728. let ResourceCycles = [1,2];
  1729. }
  1730. def: InstRW<[SKXWriteResGroup163], (instregex "VCVTSD2SSZrm")>;
  1731. def SKXWriteResGroup164 : SchedWriteRes<[SKXPort0,SKXPort5,SKXPort23]> {
  1732. let Latency = 11;
  1733. let NumMicroOps = 3;
  1734. let ResourceCycles = [1,1,1];
  1735. }
  1736. def: InstRW<[SKXWriteResGroup164], (instregex "(V?)CVTDQ2PDrm")>;
  1737. def SKXWriteResGroup166 : SchedWriteRes<[SKXPort5,SKXPort23,SKXPort015]> {
  1738. let Latency = 11;
  1739. let NumMicroOps = 3;
  1740. let ResourceCycles = [1,1,1];
  1741. }
  1742. def: InstRW<[SKXWriteResGroup166], (instrs CVTPD2PSrm,
  1743. CVTPD2DQrm,
  1744. CVTTPD2DQrm,
  1745. MMX_CVTPD2PIrm,
  1746. MMX_CVTTPD2PIrm)>;
  1747. def SKXWriteResGroup167 : SchedWriteRes<[SKXPort5,SKXPort23,SKXPort015]> {
  1748. let Latency = 11;
  1749. let NumMicroOps = 4;
  1750. let ResourceCycles = [2,1,1];
  1751. }
  1752. def: InstRW<[SKXWriteResGroup167], (instregex "VPCONFLICTQZ128rm(b?)")>;
  1753. def SKXWriteResGroup169 : SchedWriteRes<[SKXPort1,SKXPort06,SKXPort0156]> {
  1754. let Latency = 11;
  1755. let NumMicroOps = 7;
  1756. let ResourceCycles = [2,3,2];
  1757. }
  1758. def: InstRW<[SKXWriteResGroup169], (instregex "RCL(16|32|64)rCL",
  1759. "RCR(16|32|64)rCL")>;
  1760. def SKXWriteResGroup170 : SchedWriteRes<[SKXPort1,SKXPort06,SKXPort15,SKXPort0156]> {
  1761. let Latency = 11;
  1762. let NumMicroOps = 9;
  1763. let ResourceCycles = [1,5,1,2];
  1764. }
  1765. def: InstRW<[SKXWriteResGroup170], (instrs RCL8rCL)>;
  1766. def SKXWriteResGroup171 : SchedWriteRes<[SKXPort06,SKXPort0156]> {
  1767. let Latency = 11;
  1768. let NumMicroOps = 11;
  1769. let ResourceCycles = [2,9];
  1770. }
  1771. def: InstRW<[SKXWriteResGroup171], (instrs LOOPE, LOOPNE)>;
  1772. def SKXWriteResGroup174 : SchedWriteRes<[SKXPort01]> {
  1773. let Latency = 15;
  1774. let NumMicroOps = 3;
  1775. let ResourceCycles = [3];
  1776. }
  1777. def: InstRW<[SKXWriteResGroup174], (instregex "VPMULLQ(Z128|Z256)rr")>;
  1778. def SKXWriteResGroup174z : SchedWriteRes<[SKXPort05]> {
  1779. let Latency = 15;
  1780. let NumMicroOps = 3;
  1781. let ResourceCycles = [3];
  1782. }
  1783. def: InstRW<[SKXWriteResGroup174z], (instregex "VPMULLQZrr")>;
  1784. def SKXWriteResGroup175 : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1785. let Latency = 12;
  1786. let NumMicroOps = 3;
  1787. let ResourceCycles = [2,1];
  1788. }
  1789. def: InstRW<[SKXWriteResGroup175], (instregex "VPERMWZ128rm(b?)")>;
  1790. def SKXWriteResGroup176 : SchedWriteRes<[SKXPort0,SKXPort23,SKXPort015]> {
  1791. let Latency = 12;
  1792. let NumMicroOps = 3;
  1793. let ResourceCycles = [1,1,1];
  1794. }
  1795. def: InstRW<[SKXWriteResGroup176], (instregex "VCVT(T?)SD2USIZrm(b?)",
  1796. "VCVT(T?)SS2USI64Zrm(b?)")>;
  1797. def SKXWriteResGroup177 : SchedWriteRes<[SKXPort5,SKXPort23,SKXPort015]> {
  1798. let Latency = 12;
  1799. let NumMicroOps = 3;
  1800. let ResourceCycles = [1,1,1];
  1801. }
  1802. def: InstRW<[SKXWriteResGroup177], (instregex "VCVT(T?)PS2QQZrm(b?)",
  1803. "VCVT(T?)PS2UQQZrm(b?)")>;
  1804. def SKXWriteResGroup179 : SchedWriteRes<[SKXPort0,SKXPort5,SKXPort23,SKXPort015]> {
  1805. let Latency = 12;
  1806. let NumMicroOps = 4;
  1807. let ResourceCycles = [1,1,1,1];
  1808. }
  1809. def: InstRW<[SKXWriteResGroup179], (instregex "CVTTSS2SI64rm")>;
  1810. def SKXWriteResGroup180 : SchedWriteRes<[SKXPort5,SKXPort23]> {
  1811. let Latency = 13;
  1812. let NumMicroOps = 3;
  1813. let ResourceCycles = [2,1];
  1814. }
  1815. def: InstRW<[SKXWriteResGroup180], (instregex "(ADD|SUB|SUBR)_FI(16|32)m",
  1816. "VPERMWZ256rm(b?)",
  1817. "VPERMWZrm(b?)")>;
  1818. def SKXWriteResGroup181 : SchedWriteRes<[SKXPort0,SKXPort5,SKXPort23]> {
  1819. let Latency = 13;
  1820. let NumMicroOps = 3;
  1821. let ResourceCycles = [1,1,1];
  1822. }
  1823. def: InstRW<[SKXWriteResGroup181], (instrs VCVTDQ2PDYrm)>;
  1824. def SKXWriteResGroup183 : SchedWriteRes<[SKXPort5,SKXPort23,SKXPort015]> {
  1825. let Latency = 13;
  1826. let NumMicroOps = 4;
  1827. let ResourceCycles = [2,1,1];
  1828. }
  1829. def: InstRW<[SKXWriteResGroup183], (instregex "VPERMI2W128rm(b?)",
  1830. "VPERMT2W128rm(b?)")>;
  1831. def SKXWriteResGroup184 : SchedWriteRes<[SKXPort0,SKXFPDivider]> {
  1832. let Latency = 14;
  1833. let NumMicroOps = 1;
  1834. let ResourceCycles = [1,3];
  1835. }
  1836. def : SchedAlias<WriteFDiv64, SKXWriteResGroup184>; // TODO - convert to ZnWriteResFpuPair
  1837. def : SchedAlias<WriteFDiv64X, SKXWriteResGroup184>; // TODO - convert to ZnWriteResFpuPair
  1838. def SKXWriteResGroup184_1 : SchedWriteRes<[SKXPort0,SKXFPDivider]> {
  1839. let Latency = 14;
  1840. let NumMicroOps = 1;
  1841. let ResourceCycles = [1,5];
  1842. }
  1843. def : SchedAlias<WriteFDiv64Y, SKXWriteResGroup184_1>; // TODO - convert to ZnWriteResFpuPair
  1844. def SKXWriteResGroup187 : SchedWriteRes<[SKXPort0,SKXPort5,SKXPort23]> {
  1845. let Latency = 14;
  1846. let NumMicroOps = 3;
  1847. let ResourceCycles = [1,1,1];
  1848. }
  1849. def: InstRW<[SKXWriteResGroup187], (instregex "MUL_FI(16|32)m")>;
  1850. def SKXWriteResGroup188 : SchedWriteRes<[SKXPort5,SKXPort23,SKXPort015]> {
  1851. let Latency = 14;
  1852. let NumMicroOps = 3;
  1853. let ResourceCycles = [1,1,1];
  1854. }
  1855. def: InstRW<[SKXWriteResGroup188], (instregex "VCVTPD2DQZrm(b?)",
  1856. "VCVTPD2PSZrm(b?)",
  1857. "VCVTPD2UDQZrm(b?)",
  1858. "VCVTQQ2PSZrm(b?)",
  1859. "VCVTTPD2DQZrm(b?)",
  1860. "VCVTTPD2UDQZrm(b?)",
  1861. "VCVTUQQ2PSZrm(b?)")>;
  1862. def SKXWriteResGroup189 : SchedWriteRes<[SKXPort5,SKXPort23,SKXPort015]> {
  1863. let Latency = 14;
  1864. let NumMicroOps = 4;
  1865. let ResourceCycles = [2,1,1];
  1866. }
  1867. def: InstRW<[SKXWriteResGroup189], (instregex "VPERMI2W256rm(b?)",
  1868. "VPERMI2Wrm(b?)",
  1869. "VPERMT2W256rm(b?)",
  1870. "VPERMT2Wrm(b?)")>;
  1871. def SKXWriteResGroup190 : SchedWriteRes<[SKXPort1,SKXPort06,SKXPort15,SKXPort0156]> {
  1872. let Latency = 14;
  1873. let NumMicroOps = 10;
  1874. let ResourceCycles = [2,4,1,3];
  1875. }
  1876. def: InstRW<[SKXWriteResGroup190], (instrs RCR8rCL)>;
  1877. def SKXWriteResGroup191 : SchedWriteRes<[SKXPort0]> {
  1878. let Latency = 15;
  1879. let NumMicroOps = 1;
  1880. let ResourceCycles = [1];
  1881. }
  1882. def: InstRW<[SKXWriteResGroup191], (instregex "DIVR_(FPrST0|FST0r|FrST0)")>;
  1883. def SKXWriteResGroup194 : SchedWriteRes<[SKXPort1,SKXPort5,SKXPort01,SKXPort23,SKXPort015]> {
  1884. let Latency = 15;
  1885. let NumMicroOps = 8;
  1886. let ResourceCycles = [1,2,2,1,2];
  1887. }
  1888. def: InstRW<[SKXWriteResGroup194], (instregex "VPCONFLICTDZ128rm(b?)")>;
  1889. def SKXWriteResGroup195 : SchedWriteRes<[SKXPort1,SKXPort23,SKXPort237,SKXPort06,SKXPort15,SKXPort0156]> {
  1890. let Latency = 15;
  1891. let NumMicroOps = 10;
  1892. let ResourceCycles = [1,1,1,5,1,1];
  1893. }
  1894. def: InstRW<[SKXWriteResGroup195], (instregex "RCL(8|16|32|64)mCL")>;
  1895. def SKXWriteResGroup199 : SchedWriteRes<[SKXPort4,SKXPort23,SKXPort237,SKXPort06,SKXPort15,SKXPort0156]> {
  1896. let Latency = 16;
  1897. let NumMicroOps = 14;
  1898. let ResourceCycles = [1,1,1,4,2,5];
  1899. }
  1900. def: InstRW<[SKXWriteResGroup199], (instrs CMPXCHG8B)>;
  1901. def SKXWriteResGroup200 : SchedWriteRes<[SKXPort1, SKXPort05, SKXPort6]> {
  1902. let Latency = 12;
  1903. let NumMicroOps = 34;
  1904. let ResourceCycles = [1, 4, 5];
  1905. }
  1906. def: InstRW<[SKXWriteResGroup200], (instrs VZEROALL)>;
  1907. def SKXWriteResGroup201 : SchedWriteRes<[SKXPort0,SKXPort23,SKXFPDivider]> {
  1908. let Latency = 17;
  1909. let NumMicroOps = 2;
  1910. let ResourceCycles = [1,1,5];
  1911. }
  1912. def : SchedAlias<WriteFDivXLd, SKXWriteResGroup201>; // TODO - convert to ZnWriteResFpuPair
  1913. def SKXWriteResGroup202 : SchedWriteRes<[SKXPort0,SKXPort1,SKXPort5,SKXPort6,SKXPort05,SKXPort0156]> {
  1914. let Latency = 17;
  1915. let NumMicroOps = 15;
  1916. let ResourceCycles = [2,1,2,4,2,4];
  1917. }
  1918. def: InstRW<[SKXWriteResGroup202], (instrs XCH_F)>;
  1919. def SKXWriteResGroup205 : SchedWriteRes<[SKXPort23,SKXPort01]> {
  1920. let Latency = 21;
  1921. let NumMicroOps = 4;
  1922. let ResourceCycles = [1,3];
  1923. }
  1924. def: InstRW<[SKXWriteResGroup205], (instregex "VPMULLQZ128rm(b?)")>;
  1925. def SKXWriteResGroup207 : SchedWriteRes<[SKXPort5,SKXPort6,SKXPort06,SKXPort0156]> {
  1926. let Latency = 18;
  1927. let NumMicroOps = 8;
  1928. let ResourceCycles = [1,1,1,5];
  1929. }
  1930. def: InstRW<[SKXWriteResGroup207], (instrs CPUID, RDTSC)>;
  1931. def SKXWriteResGroup208 : SchedWriteRes<[SKXPort1,SKXPort23,SKXPort237,SKXPort06,SKXPort15,SKXPort0156]> {
  1932. let Latency = 18;
  1933. let NumMicroOps = 11;
  1934. let ResourceCycles = [2,1,1,4,1,2];
  1935. }
  1936. def: InstRW<[SKXWriteResGroup208], (instregex "RCR(8|16|32|64)mCL")>;
  1937. def SKXWriteResGroup209 : SchedWriteRes<[SKXPort0,SKXPort23,SKXFPDivider]> {
  1938. let Latency = 19;
  1939. let NumMicroOps = 2;
  1940. let ResourceCycles = [1,1,4];
  1941. }
  1942. def : SchedAlias<WriteFDiv64Ld, SKXWriteResGroup209>; // TODO - convert to ZnWriteResFpuPair
  1943. def SKXWriteResGroup211 : SchedWriteRes<[SKXPort23,SKXPort01]> {
  1944. let Latency = 22;
  1945. let NumMicroOps = 4;
  1946. let ResourceCycles = [1,3];
  1947. }
  1948. def: InstRW<[SKXWriteResGroup211], (instregex "VPMULLQZ256rm(b?)")>;
  1949. def SKXWriteResGroup211_1 : SchedWriteRes<[SKXPort23,SKXPort05]> {
  1950. let Latency = 22;
  1951. let NumMicroOps = 4;
  1952. let ResourceCycles = [1,3];
  1953. }
  1954. def: InstRW<[SKXWriteResGroup211_1], (instregex "VPMULLQZrm(b?)")>;
  1955. def SKXWriteResGroup215 : SchedWriteRes<[SKXPort0]> {
  1956. let Latency = 20;
  1957. let NumMicroOps = 1;
  1958. let ResourceCycles = [1];
  1959. }
  1960. def: InstRW<[SKXWriteResGroup215], (instregex "DIV_(FPrST0|FST0r|FrST0)")>;
  1961. def SKXWriteResGroup216 : SchedWriteRes<[SKXPort0,SKXPort23,SKXFPDivider]> {
  1962. let Latency = 20;
  1963. let NumMicroOps = 2;
  1964. let ResourceCycles = [1,1,4];
  1965. }
  1966. def : SchedAlias<WriteFDiv64XLd, SKXWriteResGroup216>; // TODO - convert to ZnWriteResFpuPair
  1967. def SKXWriteGatherEVEX2 : SchedWriteRes<[SKXPort0,SKXPort23,SKXPort015,SKXPort0156]> {
  1968. let Latency = 17;
  1969. let NumMicroOps = 5; // 2 uops perform multiple loads
  1970. let ResourceCycles = [1,2,1,1];
  1971. }
  1972. def: InstRW<[SKXWriteGatherEVEX2], (instrs VGATHERQPSZ128rm, VPGATHERQDZ128rm,
  1973. VGATHERDPDZ128rm, VPGATHERDQZ128rm,
  1974. VGATHERQPDZ128rm, VPGATHERQQZ128rm)>;
  1975. def SKXWriteGatherEVEX4 : SchedWriteRes<[SKXPort0,SKXPort23,SKXPort015,SKXPort0156]> {
  1976. let Latency = 19;
  1977. let NumMicroOps = 5; // 2 uops perform multiple loads
  1978. let ResourceCycles = [1,4,1,1];
  1979. }
  1980. def: InstRW<[SKXWriteGatherEVEX4], (instrs VGATHERQPSZ256rm, VPGATHERQDZ256rm,
  1981. VGATHERQPDZ256rm, VPGATHERQQZ256rm,
  1982. VGATHERDPSZ128rm, VPGATHERDDZ128rm,
  1983. VGATHERDPDZ256rm, VPGATHERDQZ256rm)>;
  1984. def SKXWriteGatherEVEX8 : SchedWriteRes<[SKXPort0,SKXPort23,SKXPort015,SKXPort0156]> {
  1985. let Latency = 21;
  1986. let NumMicroOps = 5; // 2 uops perform multiple loads
  1987. let ResourceCycles = [1,8,1,1];
  1988. }
  1989. def: InstRW<[SKXWriteGatherEVEX8], (instrs VGATHERDPSZ256rm, VPGATHERDDZ256rm,
  1990. VGATHERDPDZrm, VPGATHERDQZrm,
  1991. VGATHERQPDZrm, VPGATHERQQZrm,
  1992. VGATHERQPSZrm, VPGATHERQDZrm)>;
  1993. def SKXWriteGatherEVEX16 : SchedWriteRes<[SKXPort0,SKXPort23,SKXPort015,SKXPort0156]> {
  1994. let Latency = 25;
  1995. let NumMicroOps = 5; // 2 uops perform multiple loads
  1996. let ResourceCycles = [1,16,1,1];
  1997. }
  1998. def: InstRW<[SKXWriteGatherEVEX16], (instrs VGATHERDPSZrm, VPGATHERDDZrm)>;
  1999. def SKXWriteResGroup219 : SchedWriteRes<[SKXPort4,SKXPort5,SKXPort6,SKXPort23,SKXPort237,SKXPort06,SKXPort0156]> {
  2000. let Latency = 20;
  2001. let NumMicroOps = 8;
  2002. let ResourceCycles = [1,1,1,1,1,1,2];
  2003. }
  2004. def: InstRW<[SKXWriteResGroup219], (instrs INSB, INSL, INSW)>;
  2005. def SKXWriteResGroup220 : SchedWriteRes<[SKXPort5,SKXPort6,SKXPort0156]> {
  2006. let Latency = 20;
  2007. let NumMicroOps = 10;
  2008. let ResourceCycles = [1,2,7];
  2009. }
  2010. def: InstRW<[SKXWriteResGroup220], (instrs MWAITrr)>;
  2011. def SKXWriteResGroup222 : SchedWriteRes<[SKXPort0,SKXPort23,SKXFPDivider]> {
  2012. let Latency = 21;
  2013. let NumMicroOps = 2;
  2014. let ResourceCycles = [1,1,8];
  2015. }
  2016. def : SchedAlias<WriteFDiv64YLd, SKXWriteResGroup222>; // TODO - convert to ZnWriteResFpuPair
  2017. def SKXWriteResGroup223 : SchedWriteRes<[SKXPort0,SKXPort23]> {
  2018. let Latency = 22;
  2019. let NumMicroOps = 2;
  2020. let ResourceCycles = [1,1];
  2021. }
  2022. def: InstRW<[SKXWriteResGroup223], (instregex "DIV_F(32|64)m")>;
  2023. def SKXWriteResGroupVEX2 : SchedWriteRes<[SKXPort0, SKXPort23, SKXPort5, SKXPort015]> {
  2024. let Latency = 18;
  2025. let NumMicroOps = 5; // 2 uops perform multiple loads
  2026. let ResourceCycles = [1,2,1,1];
  2027. }
  2028. def: InstRW<[SKXWriteResGroupVEX2], (instrs VGATHERDPDrm, VPGATHERDQrm,
  2029. VGATHERQPDrm, VPGATHERQQrm,
  2030. VGATHERQPSrm, VPGATHERQDrm)>;
  2031. def SKXWriteResGroupVEX4 : SchedWriteRes<[SKXPort0, SKXPort23, SKXPort5, SKXPort015]> {
  2032. let Latency = 20;
  2033. let NumMicroOps = 5; // 2 uops peform multiple loads
  2034. let ResourceCycles = [1,4,1,1];
  2035. }
  2036. def: InstRW<[SKXWriteResGroupVEX4], (instrs VGATHERDPDYrm, VPGATHERDQYrm,
  2037. VGATHERDPSrm, VPGATHERDDrm,
  2038. VGATHERQPDYrm, VPGATHERQQYrm,
  2039. VGATHERQPSYrm, VPGATHERQDYrm)>;
  2040. def SKXWriteResGroupVEX8 : SchedWriteRes<[SKXPort0, SKXPort23, SKXPort5, SKXPort015]> {
  2041. let Latency = 22;
  2042. let NumMicroOps = 5; // 2 uops perform multiple loads
  2043. let ResourceCycles = [1,8,1,1];
  2044. }
  2045. def: InstRW<[SKXWriteResGroupVEX8], (instrs VGATHERDPSYrm, VPGATHERDDYrm)>;
  2046. def SKXWriteResGroup225 : SchedWriteRes<[SKXPort5,SKXPort01,SKXPort015]> {
  2047. let Latency = 22;
  2048. let NumMicroOps = 14;
  2049. let ResourceCycles = [5,5,4];
  2050. }
  2051. def: InstRW<[SKXWriteResGroup225], (instregex "VPCONFLICTDZ128rr",
  2052. "VPCONFLICTQZ256rr")>;
  2053. def SKXWriteResGroup228 : SchedWriteRes<[SKXPort0,SKXPort4,SKXPort5,SKXPort23,SKXPort237,SKXPort06,SKXPort0156]> {
  2054. let Latency = 23;
  2055. let NumMicroOps = 19;
  2056. let ResourceCycles = [2,1,4,1,1,4,6];
  2057. }
  2058. def: InstRW<[SKXWriteResGroup228], (instrs CMPXCHG16B)>;
  2059. def SKXWriteResGroup233 : SchedWriteRes<[SKXPort0,SKXPort5,SKXPort23]> {
  2060. let Latency = 25;
  2061. let NumMicroOps = 3;
  2062. let ResourceCycles = [1,1,1];
  2063. }
  2064. def: InstRW<[SKXWriteResGroup233], (instregex "DIV_FI(16|32)m")>;
  2065. def SKXWriteResGroup239 : SchedWriteRes<[SKXPort0,SKXPort23]> {
  2066. let Latency = 27;
  2067. let NumMicroOps = 2;
  2068. let ResourceCycles = [1,1];
  2069. }
  2070. def: InstRW<[SKXWriteResGroup239], (instregex "DIVR_F(32|64)m")>;
  2071. def SKXWriteResGroup242 : SchedWriteRes<[SKXPort5,SKXPort01,SKXPort23,SKXPort015]> {
  2072. let Latency = 29;
  2073. let NumMicroOps = 15;
  2074. let ResourceCycles = [5,5,1,4];
  2075. }
  2076. def: InstRW<[SKXWriteResGroup242], (instregex "VPCONFLICTQZ256rm(b?)")>;
  2077. def SKXWriteResGroup243 : SchedWriteRes<[SKXPort0,SKXPort5,SKXPort23]> {
  2078. let Latency = 30;
  2079. let NumMicroOps = 3;
  2080. let ResourceCycles = [1,1,1];
  2081. }
  2082. def: InstRW<[SKXWriteResGroup243], (instregex "DIVR_FI(16|32)m")>;
  2083. def SKXWriteResGroup247 : SchedWriteRes<[SKXPort5,SKXPort6,SKXPort23,SKXPort06,SKXPort0156]> {
  2084. let Latency = 35;
  2085. let NumMicroOps = 23;
  2086. let ResourceCycles = [1,5,3,4,10];
  2087. }
  2088. def: InstRW<[SKXWriteResGroup247], (instregex "IN(8|16|32)ri",
  2089. "IN(8|16|32)rr")>;
  2090. def SKXWriteResGroup248 : SchedWriteRes<[SKXPort5,SKXPort6,SKXPort23,SKXPort237,SKXPort06,SKXPort0156]> {
  2091. let Latency = 35;
  2092. let NumMicroOps = 23;
  2093. let ResourceCycles = [1,5,2,1,4,10];
  2094. }
  2095. def: InstRW<[SKXWriteResGroup248], (instregex "OUT(8|16|32)ir",
  2096. "OUT(8|16|32)rr")>;
  2097. def SKXWriteResGroup249 : SchedWriteRes<[SKXPort5,SKXPort01,SKXPort015]> {
  2098. let Latency = 37;
  2099. let NumMicroOps = 21;
  2100. let ResourceCycles = [9,7,5];
  2101. }
  2102. def: InstRW<[SKXWriteResGroup249], (instregex "VPCONFLICTDZ256rr",
  2103. "VPCONFLICTQZrr")>;
  2104. def SKXWriteResGroup250 : SchedWriteRes<[SKXPort1,SKXPort6,SKXPort23,SKXPort0156]> {
  2105. let Latency = 37;
  2106. let NumMicroOps = 31;
  2107. let ResourceCycles = [1,8,1,21];
  2108. }
  2109. def: InstRW<[SKXWriteResGroup250], (instregex "XRSTOR(64)?")>;
  2110. def SKXWriteResGroup252 : SchedWriteRes<[SKXPort1,SKXPort4,SKXPort5,SKXPort6,SKXPort23,SKXPort237,SKXPort15,SKXPort0156]> {
  2111. let Latency = 40;
  2112. let NumMicroOps = 18;
  2113. let ResourceCycles = [1,1,2,3,1,1,1,8];
  2114. }
  2115. def: InstRW<[SKXWriteResGroup252], (instrs VMCLEARm)>;
  2116. def SKXWriteResGroup253 : SchedWriteRes<[SKXPort4,SKXPort6,SKXPort23,SKXPort237,SKXPort0156]> {
  2117. let Latency = 41;
  2118. let NumMicroOps = 39;
  2119. let ResourceCycles = [1,10,1,1,26];
  2120. }
  2121. def: InstRW<[SKXWriteResGroup253], (instrs XSAVE64)>;
  2122. def SKXWriteResGroup254 : SchedWriteRes<[SKXPort5,SKXPort0156]> {
  2123. let Latency = 42;
  2124. let NumMicroOps = 22;
  2125. let ResourceCycles = [2,20];
  2126. }
  2127. def: InstRW<[SKXWriteResGroup254], (instrs RDTSCP)>;
  2128. def SKXWriteResGroup255 : SchedWriteRes<[SKXPort4,SKXPort6,SKXPort23,SKXPort237,SKXPort0156]> {
  2129. let Latency = 42;
  2130. let NumMicroOps = 40;
  2131. let ResourceCycles = [1,11,1,1,26];
  2132. }
  2133. def: InstRW<[SKXWriteResGroup255], (instrs XSAVE)>;
  2134. def: InstRW<[SKXWriteResGroup255], (instregex "XSAVEC", "XSAVES", "XSAVEOPT")>;
  2135. def SKXWriteResGroup256 : SchedWriteRes<[SKXPort5,SKXPort01,SKXPort23,SKXPort015]> {
  2136. let Latency = 44;
  2137. let NumMicroOps = 22;
  2138. let ResourceCycles = [9,7,1,5];
  2139. }
  2140. def: InstRW<[SKXWriteResGroup256], (instregex "VPCONFLICTDZ256rm(b?)",
  2141. "VPCONFLICTQZrm(b?)")>;
  2142. def SKXWriteResGroup258 : SchedWriteRes<[SKXPort0,SKXPort23,SKXPort05,SKXPort06,SKXPort0156]> {
  2143. let Latency = 62;
  2144. let NumMicroOps = 64;
  2145. let ResourceCycles = [2,8,5,10,39];
  2146. }
  2147. def: InstRW<[SKXWriteResGroup258], (instrs FLDENVm)>;
  2148. def SKXWriteResGroup259 : SchedWriteRes<[SKXPort0,SKXPort6,SKXPort23,SKXPort05,SKXPort06,SKXPort15,SKXPort0156]> {
  2149. let Latency = 63;
  2150. let NumMicroOps = 88;
  2151. let ResourceCycles = [4,4,31,1,2,1,45];
  2152. }
  2153. def: InstRW<[SKXWriteResGroup259], (instrs FXRSTOR64)>;
  2154. def SKXWriteResGroup260 : SchedWriteRes<[SKXPort0,SKXPort6,SKXPort23,SKXPort05,SKXPort06,SKXPort15,SKXPort0156]> {
  2155. let Latency = 63;
  2156. let NumMicroOps = 90;
  2157. let ResourceCycles = [4,2,33,1,2,1,47];
  2158. }
  2159. def: InstRW<[SKXWriteResGroup260], (instrs FXRSTOR)>;
  2160. def SKXWriteResGroup261 : SchedWriteRes<[SKXPort5,SKXPort01,SKXPort015]> {
  2161. let Latency = 67;
  2162. let NumMicroOps = 35;
  2163. let ResourceCycles = [17,11,7];
  2164. }
  2165. def: InstRW<[SKXWriteResGroup261], (instregex "VPCONFLICTDZrr")>;
  2166. def SKXWriteResGroup262 : SchedWriteRes<[SKXPort5,SKXPort01,SKXPort23,SKXPort015]> {
  2167. let Latency = 74;
  2168. let NumMicroOps = 36;
  2169. let ResourceCycles = [17,11,1,7];
  2170. }
  2171. def: InstRW<[SKXWriteResGroup262], (instregex "VPCONFLICTDZrm(b?)")>;
  2172. def SKXWriteResGroup263 : SchedWriteRes<[SKXPort5,SKXPort05,SKXPort0156]> {
  2173. let Latency = 75;
  2174. let NumMicroOps = 15;
  2175. let ResourceCycles = [6,3,6];
  2176. }
  2177. def: InstRW<[SKXWriteResGroup263], (instrs FNINIT)>;
  2178. def SKXWriteResGroup266 : SchedWriteRes<[SKXPort0,SKXPort1,SKXPort4,SKXPort5,SKXPort6,SKXPort237,SKXPort06,SKXPort0156]> {
  2179. let Latency = 106;
  2180. let NumMicroOps = 100;
  2181. let ResourceCycles = [9,1,11,16,1,11,21,30];
  2182. }
  2183. def: InstRW<[SKXWriteResGroup266], (instrs FSTENVm)>;
  2184. def SKXWriteResGroup267 : SchedWriteRes<[SKXPort6,SKXPort0156]> {
  2185. let Latency = 140;
  2186. let NumMicroOps = 4;
  2187. let ResourceCycles = [1,3];
  2188. }
  2189. def: InstRW<[SKXWriteResGroup267], (instrs PAUSE)>;
  2190. def: InstRW<[WriteZero], (instrs CLC)>;
  2191. // Instruction variants handled by the renamer. These might not need execution
  2192. // ports in certain conditions.
  2193. // See Agner's Fog "The microarchitecture of Intel, AMD and VIA CPUs",
  2194. // section "Skylake Pipeline" > "Register allocation and renaming".
  2195. // These can be investigated with llvm-exegesis, e.g.
  2196. // echo 'pxor %mm0, %mm0' | /tmp/llvm-exegesis -mode=uops -snippets-file=-
  2197. // echo 'vxorpd %xmm0, %xmm0, %xmm1' | /tmp/llvm-exegesis -mode=uops -snippets-file=-
  2198. def SKXWriteZeroLatency : SchedWriteRes<[]> {
  2199. let Latency = 0;
  2200. }
  2201. def SKXWriteZeroIdiom : SchedWriteVariant<[
  2202. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKXWriteZeroLatency]>,
  2203. SchedVar<NoSchedPred, [WriteALU]>
  2204. ]>;
  2205. def : InstRW<[SKXWriteZeroIdiom], (instrs SUB32rr, SUB64rr,
  2206. XOR32rr, XOR64rr)>;
  2207. def SKXWriteFZeroIdiom : SchedWriteVariant<[
  2208. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKXWriteZeroLatency]>,
  2209. SchedVar<NoSchedPred, [WriteFLogic]>
  2210. ]>;
  2211. def : InstRW<[SKXWriteFZeroIdiom], (instrs XORPSrr, VXORPSrr,
  2212. XORPDrr, VXORPDrr,
  2213. VXORPSZ128rr,
  2214. VXORPDZ128rr)>;
  2215. def SKXWriteFZeroIdiomY : SchedWriteVariant<[
  2216. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKXWriteZeroLatency]>,
  2217. SchedVar<NoSchedPred, [WriteFLogicY]>
  2218. ]>;
  2219. def : InstRW<[SKXWriteFZeroIdiomY], (instrs VXORPSYrr, VXORPDYrr,
  2220. VXORPSZ256rr, VXORPDZ256rr)>;
  2221. def SKXWriteFZeroIdiomZ : SchedWriteVariant<[
  2222. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKXWriteZeroLatency]>,
  2223. SchedVar<NoSchedPred, [WriteFLogicZ]>
  2224. ]>;
  2225. def : InstRW<[SKXWriteFZeroIdiomZ], (instrs VXORPSZrr, VXORPDZrr)>;
  2226. def SKXWriteVZeroIdiomLogicX : SchedWriteVariant<[
  2227. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKXWriteZeroLatency]>,
  2228. SchedVar<NoSchedPred, [WriteVecLogicX]>
  2229. ]>;
  2230. def : InstRW<[SKXWriteVZeroIdiomLogicX], (instrs PXORrr, VPXORrr,
  2231. VPXORDZ128rr, VPXORQZ128rr)>;
  2232. def SKXWriteVZeroIdiomLogicY : SchedWriteVariant<[
  2233. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKXWriteZeroLatency]>,
  2234. SchedVar<NoSchedPred, [WriteVecLogicY]>
  2235. ]>;
  2236. def : InstRW<[SKXWriteVZeroIdiomLogicY], (instrs VPXORYrr,
  2237. VPXORDZ256rr, VPXORQZ256rr)>;
  2238. def SKXWriteVZeroIdiomLogicZ : SchedWriteVariant<[
  2239. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKXWriteZeroLatency]>,
  2240. SchedVar<NoSchedPred, [WriteVecLogicZ]>
  2241. ]>;
  2242. def : InstRW<[SKXWriteVZeroIdiomLogicZ], (instrs VPXORDZrr, VPXORQZrr)>;
  2243. def SKXWriteVZeroIdiomALUX : SchedWriteVariant<[
  2244. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKXWriteZeroLatency]>,
  2245. SchedVar<NoSchedPred, [WriteVecALUX]>
  2246. ]>;
  2247. def : InstRW<[SKXWriteVZeroIdiomALUX], (instrs PCMPGTBrr, VPCMPGTBrr,
  2248. PCMPGTDrr, VPCMPGTDrr,
  2249. PCMPGTWrr, VPCMPGTWrr)>;
  2250. def SKXWriteVZeroIdiomALUY : SchedWriteVariant<[
  2251. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKXWriteZeroLatency]>,
  2252. SchedVar<NoSchedPred, [WriteVecALUY]>
  2253. ]>;
  2254. def : InstRW<[SKXWriteVZeroIdiomALUY], (instrs VPCMPGTBYrr,
  2255. VPCMPGTDYrr,
  2256. VPCMPGTWYrr)>;
  2257. def SKXWritePSUB : SchedWriteRes<[SKXPort015]> {
  2258. let Latency = 1;
  2259. let NumMicroOps = 1;
  2260. let ResourceCycles = [1];
  2261. }
  2262. def SKXWriteVZeroIdiomPSUB : SchedWriteVariant<[
  2263. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKXWriteZeroLatency]>,
  2264. SchedVar<NoSchedPred, [SKXWritePSUB]>
  2265. ]>;
  2266. def : InstRW<[SKXWriteVZeroIdiomPSUB], (instrs PSUBBrr, VPSUBBrr, VPSUBBZ128rr,
  2267. PSUBDrr, VPSUBDrr, VPSUBDZ128rr,
  2268. PSUBQrr, VPSUBQrr, VPSUBQZ128rr,
  2269. PSUBWrr, VPSUBWrr, VPSUBWZ128rr,
  2270. VPSUBBYrr, VPSUBBZ256rr,
  2271. VPSUBDYrr, VPSUBDZ256rr,
  2272. VPSUBQYrr, VPSUBQZ256rr,
  2273. VPSUBWYrr, VPSUBWZ256rr,
  2274. VPSUBBZrr,
  2275. VPSUBDZrr,
  2276. VPSUBQZrr,
  2277. VPSUBWZrr)>;
  2278. def SKXWritePCMPGTQ : SchedWriteRes<[SKXPort5]> {
  2279. let Latency = 3;
  2280. let NumMicroOps = 1;
  2281. let ResourceCycles = [1];
  2282. }
  2283. def SKXWriteVZeroIdiomPCMPGTQ : SchedWriteVariant<[
  2284. SchedVar<MCSchedPredicate<ZeroIdiomPredicate>, [SKXWriteZeroLatency]>,
  2285. SchedVar<NoSchedPred, [SKXWritePCMPGTQ]>
  2286. ]>;
  2287. def : InstRW<[SKXWriteVZeroIdiomPCMPGTQ], (instrs PCMPGTQrr, VPCMPGTQrr,
  2288. VPCMPGTQYrr)>;
  2289. // CMOVs that use both Z and C flag require an extra uop.
  2290. def SKXWriteCMOVA_CMOVBErr : SchedWriteRes<[SKXPort06]> {
  2291. let Latency = 2;
  2292. let ResourceCycles = [2];
  2293. let NumMicroOps = 2;
  2294. }
  2295. def SKXWriteCMOVA_CMOVBErm : SchedWriteRes<[SKXPort23,SKXPort06]> {
  2296. let Latency = 7;
  2297. let ResourceCycles = [1,2];
  2298. let NumMicroOps = 3;
  2299. }
  2300. def SKXCMOVA_CMOVBErr : SchedWriteVariant<[
  2301. SchedVar<MCSchedPredicate<IsCMOVArr_Or_CMOVBErr>, [SKXWriteCMOVA_CMOVBErr]>,
  2302. SchedVar<NoSchedPred, [WriteCMOV]>
  2303. ]>;
  2304. def SKXCMOVA_CMOVBErm : SchedWriteVariant<[
  2305. SchedVar<MCSchedPredicate<IsCMOVArm_Or_CMOVBErm>, [SKXWriteCMOVA_CMOVBErm]>,
  2306. SchedVar<NoSchedPred, [WriteCMOV.Folded]>
  2307. ]>;
  2308. def : InstRW<[SKXCMOVA_CMOVBErr], (instrs CMOV16rr, CMOV32rr, CMOV64rr)>;
  2309. def : InstRW<[SKXCMOVA_CMOVBErm], (instrs CMOV16rm, CMOV32rm, CMOV64rm)>;
  2310. // SETCCs that use both Z and C flag require an extra uop.
  2311. def SKXWriteSETA_SETBEr : SchedWriteRes<[SKXPort06]> {
  2312. let Latency = 2;
  2313. let ResourceCycles = [2];
  2314. let NumMicroOps = 2;
  2315. }
  2316. def SKXWriteSETA_SETBEm : SchedWriteRes<[SKXPort4,SKXPort237,SKXPort06]> {
  2317. let Latency = 3;
  2318. let ResourceCycles = [1,1,2];
  2319. let NumMicroOps = 4;
  2320. }
  2321. def SKXSETA_SETBErr : SchedWriteVariant<[
  2322. SchedVar<MCSchedPredicate<IsSETAr_Or_SETBEr>, [SKXWriteSETA_SETBEr]>,
  2323. SchedVar<NoSchedPred, [WriteSETCC]>
  2324. ]>;
  2325. def SKXSETA_SETBErm : SchedWriteVariant<[
  2326. SchedVar<MCSchedPredicate<IsSETAm_Or_SETBEm>, [SKXWriteSETA_SETBEm]>,
  2327. SchedVar<NoSchedPred, [WriteSETCCStore]>
  2328. ]>;
  2329. def : InstRW<[SKXSETA_SETBErr], (instrs SETCCr)>;
  2330. def : InstRW<[SKXSETA_SETBErm], (instrs SETCCm)>;
  2331. ///////////////////////////////////////////////////////////////////////////////
  2332. // Dependency breaking instructions.
  2333. ///////////////////////////////////////////////////////////////////////////////
  2334. def : IsZeroIdiomFunction<[
  2335. // GPR Zero-idioms.
  2336. DepBreakingClass<[ SUB32rr, SUB64rr, XOR32rr, XOR64rr ], ZeroIdiomPredicate>,
  2337. // SSE Zero-idioms.
  2338. DepBreakingClass<[
  2339. // fp variants.
  2340. XORPSrr, XORPDrr,
  2341. // int variants.
  2342. PXORrr,
  2343. PSUBBrr, PSUBWrr, PSUBDrr, PSUBQrr,
  2344. PCMPGTBrr, PCMPGTDrr, PCMPGTQrr, PCMPGTWrr
  2345. ], ZeroIdiomPredicate>,
  2346. // AVX Zero-idioms.
  2347. DepBreakingClass<[
  2348. // xmm fp variants.
  2349. VXORPSrr, VXORPDrr,
  2350. // xmm int variants.
  2351. VPXORrr,
  2352. VPSUBBrr, VPSUBWrr, VPSUBDrr, VPSUBQrr,
  2353. VPCMPGTBrr, VPCMPGTWrr, VPCMPGTDrr, VPCMPGTQrr,
  2354. // ymm variants.
  2355. VXORPSYrr, VXORPDYrr, VPXORYrr,
  2356. VPSUBBYrr, VPSUBWYrr, VPSUBDYrr, VPSUBQYrr,
  2357. VPCMPGTBYrr, VPCMPGTWYrr, VPCMPGTDYrr, VPCMPGTQYrr,
  2358. // zmm variants.
  2359. VXORPSZrr, VXORPDZrr, VPXORDZrr, VPXORQZrr,
  2360. VXORPSZ128rr, VXORPDZ128rr, VPXORDZ128rr, VPXORQZ128rr,
  2361. VXORPSZ256rr, VXORPDZ256rr, VPXORDZ256rr, VPXORQZ256rr,
  2362. VPSUBBZrr, VPSUBWZrr, VPSUBDZrr, VPSUBQZrr,
  2363. VPSUBBZ128rr, VPSUBWZ128rr, VPSUBDZ128rr, VPSUBQZ128rr,
  2364. VPSUBBZ256rr, VPSUBWZ256rr, VPSUBDZ256rr, VPSUBQZ256rr,
  2365. ], ZeroIdiomPredicate>,
  2366. ]>;
  2367. } // SchedModel