1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476 |
- //===- X86SchedAlderlakeP.td - X86 Alderlake-P Scheduling ----*- tablegen -*-=//
- //
- // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
- // See https://llvm.org/LICENSE.txt for license information.
- // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- //
- //===----------------------------------------------------------------------===//
- //
- // This file defines the machine model for Alderlake-P core to support
- // instruction scheduling and other instruction cost heuristics.
- //
- //===----------------------------------------------------------------------===//
- def AlderlakePModel : SchedMachineModel {
- // Alderlake-P core can allocate 6 uops per cycle.
- let IssueWidth = 6; // Based on allocator width.
- let MicroOpBufferSize = 512; // Based on the reorder buffer.
- let LoadLatency = 5;
- let MispredictPenalty = 14;
- // Latency for microcoded instructions or instructions without latency info.
- int MaxLatency = 100;
- // Based on the LSD (loop-stream detector) queue size (ST).
- let LoopMicroOpBufferSize = 72;
- // This flag is set to allow the scheduler to assign a default model to
- // unrecognized opcodes.
- let CompleteModel = 0;
- }
- let SchedModel = AlderlakePModel in {
- // Alderlake-P core can issue micro-ops to 12 different ports in one cycle.
- def ADLPPort00 : ProcResource<1>;
- def ADLPPort01 : ProcResource<1>;
- def ADLPPort02 : ProcResource<1>;
- def ADLPPort03 : ProcResource<1>;
- def ADLPPort04 : ProcResource<1>;
- def ADLPPort05 : ProcResource<1>;
- def ADLPPort06 : ProcResource<1>;
- def ADLPPort07 : ProcResource<1>;
- def ADLPPort08 : ProcResource<1>;
- def ADLPPort09 : ProcResource<1>;
- def ADLPPort10 : ProcResource<1>;
- def ADLPPort11 : ProcResource<1>;
- // Workaround to represent invalid ports. WriteRes shouldn't use this resource.
- def ADLPPortInvalid : ProcResource<1>;
- // Many micro-ops are capable of issuing on multiple ports.
- def ADLPPort00_01 : ProcResGroup<[ADLPPort00, ADLPPort01]>;
- def ADLPPort00_01_05 : ProcResGroup<[ADLPPort00, ADLPPort01, ADLPPort05]>;
- def ADLPPort00_01_05_06 : ProcResGroup<[ADLPPort00, ADLPPort01, ADLPPort05, ADLPPort06]>;
- def ADLPPort00_05 : ProcResGroup<[ADLPPort00, ADLPPort05]>;
- def ADLPPort00_05_06 : ProcResGroup<[ADLPPort00, ADLPPort05, ADLPPort06]>;
- def ADLPPort00_06 : ProcResGroup<[ADLPPort00, ADLPPort06]>;
- def ADLPPort01_05 : ProcResGroup<[ADLPPort01, ADLPPort05]>;
- def ADLPPort01_05_10 : ProcResGroup<[ADLPPort01, ADLPPort05, ADLPPort10]>;
- def ADLPPort02_03 : ProcResGroup<[ADLPPort02, ADLPPort03]>;
- def ADLPPort02_03_07 : ProcResGroup<[ADLPPort02, ADLPPort03, ADLPPort07]>;
- def ADLPPort02_03_11 : ProcResGroup<[ADLPPort02, ADLPPort03, ADLPPort11]>;
- def ADLPPort07_08 : ProcResGroup<[ADLPPort07, ADLPPort08]>;
- // EU has 112 reservation stations.
- def ADLPPort00_01_05_06_10 : ProcResGroup<[ADLPPort00, ADLPPort01, ADLPPort05,
- ADLPPort06, ADLPPort10]> {
- let BufferSize = 112;
- }
- // STD has 48 reservation stations.
- def ADLPPort04_09 : ProcResGroup<[ADLPPort04, ADLPPort09]> {
- let BufferSize = 48;
- }
- // MEM has 72 reservation stations.
- def ADLPPort02_03_07_08_11 : ProcResGroup<[ADLPPort02, ADLPPort03, ADLPPort07,
- ADLPPort08, ADLPPort11]> {
- let BufferSize = 72;
- }
- // Integer loads are 5 cycles, so ReadAfterLd registers needn't be available
- // until 5 cycles after the memory operand.
- def : ReadAdvance<ReadAfterLd, 5>;
- // Vector loads are 6 cycles, so ReadAfterVec*Ld registers needn't be available
- // until 6 cycles after the memory operand.
- def : ReadAdvance<ReadAfterVecLd, 6>;
- def : ReadAdvance<ReadAfterVecXLd, 6>;
- def : ReadAdvance<ReadAfterVecYLd, 6>;
- def : ReadAdvance<ReadInt2Fpu, 0>;
- // Many SchedWrites are defined in pairs with and without a folded load.
- // Instructions with folded loads are usually micro-fused, so they only appear
- // as two micro-ops when queued in the reservation station.
- // This multiclass defines the resource usage for variants with and without
- // folded loads.
- multiclass ADLPWriteResPair<X86FoldableSchedWrite SchedRW,
- list<ProcResourceKind> ExePorts,
- int Lat, list<int> Res = [1], int UOps = 1,
- int LoadLat = 5, int LoadUOps = 1> {
- // Register variant is using a single cycle on ExePort.
- def : WriteRes<SchedRW, ExePorts> {
- let Latency = Lat;
- let ResourceCycles = Res;
- let NumMicroOps = UOps;
- }
- // Memory variant also uses a cycle on port 2/3/11 and adds LoadLat cycles to
- // the latency (default = 5).
- def : WriteRes<SchedRW.Folded, !listconcat([ADLPPort02_03_11], ExePorts)> {
- let Latency = !add(Lat, LoadLat);
- let ResourceCycles = !listconcat([1], Res);
- let NumMicroOps = !add(UOps, LoadUOps);
- }
- }
- //===----------------------------------------------------------------------===//
- // The following definitons are infered by smg.
- //===----------------------------------------------------------------------===//
- // Infered SchedWrite definition.
- def : WriteRes<WriteADC, [ADLPPort00_06]>;
- defm : X86WriteRes<WriteADCLd, [ADLPPort00_01_05_06_10, ADLPPort00_06], 11, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteAESDecEnc, [ADLPPort00_01], 5, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteAESIMC, [ADLPPort00_01], 8, [2], 2, 7>;
- defm : X86WriteRes<WriteAESKeyGen, [ADLPPort00, ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01_05, ADLPPort05], 7, [4, 1, 1, 2, 3, 3], 14>;
- defm : X86WriteRes<WriteAESKeyGenLd, [ADLPPort00, ADLPPort00_01, ADLPPort00_06, ADLPPort01_05, ADLPPort02_03_11, ADLPPort05], 12, [4, 1, 2, 3, 1, 3], 14>;
- def : WriteRes<WriteALU, [ADLPPort00_01_05_06_10]>;
- def : WriteRes<WriteALULd, [ADLPPort00_01_05_06_10]> {
- let Latency = 11;
- }
- defm : ADLPWriteResPair<WriteBEXTR, [ADLPPort00_06, ADLPPort01], 6, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteBLS, [ADLPPort01_05_10], 2, [1]>;
- defm : ADLPWriteResPair<WriteBSF, [ADLPPort01], 3, [1]>;
- defm : ADLPWriteResPair<WriteBSR, [ADLPPort01], 3, [1]>;
- def : WriteRes<WriteBSWAP32, [ADLPPort01]>;
- defm : X86WriteRes<WriteBSWAP64, [ADLPPort00_06, ADLPPort01], 2, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteBZHI, [ADLPPort01], 3, [1]>;
- def : WriteRes<WriteBitTest, [ADLPPort01]>;
- defm : X86WriteRes<WriteBitTestImmLd, [ADLPPort01, ADLPPort02_03_11], 6, [1, 1], 2>;
- defm : X86WriteRes<WriteBitTestRegLd, [ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort02_03_11], 11, [4, 2, 1, 2, 1], 10>;
- def : WriteRes<WriteBitTestSet, [ADLPPort01]>;
- def : WriteRes<WriteBitTestSetImmLd, [ADLPPort01]> {
- let Latency = 11;
- }
- defm : X86WriteRes<WriteBitTestSetRegLd, [ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10], 17, [3, 2, 1, 2], 8>;
- defm : ADLPWriteResPair<WriteBlend, [ADLPPort01_05], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteBlendY, [ADLPPort00_01_05], 1, [1], 1, 8>;
- defm : ADLPWriteResPair<WriteCLMul, [ADLPPort05], 3, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteCMOV, [ADLPPort00_06], 1, [1], 1, 6>;
- defm : X86WriteRes<WriteCMPXCHG, [ADLPPort00_01_05_06_10, ADLPPort00_06], 3, [3, 2], 5>;
- defm : X86WriteRes<WriteCMPXCHGRMW, [ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08], 12, [1, 2, 1, 1, 1], 6>;
- defm : ADLPWriteResPair<WriteCRC32, [ADLPPort01], 3, [1]>;
- defm : X86WriteRes<WriteCvtI2PD, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtI2PDLd, [ADLPPort00_01, ADLPPort02_03_11], 11, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtI2PDY, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtI2PDYLd, [ADLPPort00_01, ADLPPort02_03_11], 12, [1, 1], 2>;
- defm : X86WriteResPairUnsupported<WriteCvtI2PDZ>;
- defm : ADLPWriteResPair<WriteCvtI2PS, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteCvtI2PSY, [ADLPPort00_01], 4, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteCvtI2PSZ>;
- defm : X86WriteRes<WriteCvtI2SD, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtI2SDLd, [ADLPPort00_01, ADLPPort02_03_11], 11, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtI2SS, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtI2SSLd, [ADLPPort00_01, ADLPPort02_03_11], 11, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteCvtPD2I, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2, 7>;
- defm : ADLPWriteResPair<WriteCvtPD2IY, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2, 8>;
- defm : X86WriteResPairUnsupported<WriteCvtPD2IZ>;
- defm : ADLPWriteResPair<WriteCvtPD2PS, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2, 7>;
- defm : ADLPWriteResPair<WriteCvtPD2PSY, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2, 8>;
- defm : X86WriteResPairUnsupported<WriteCvtPD2PSZ>;
- defm : X86WriteRes<WriteCvtPH2PS, [ADLPPort00_01, ADLPPort05], 6, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtPH2PSLd, [ADLPPort00_01, ADLPPort02_03_11], 12, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtPH2PSY, [ADLPPort00_01, ADLPPort05], 8, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtPH2PSYLd, [ADLPPort00_01, ADLPPort02_03_11], 12, [1, 1], 2>;
- defm : X86WriteResPairUnsupported<WriteCvtPH2PSZ>;
- defm : ADLPWriteResPair<WriteCvtPS2I, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteCvtPS2IY, [ADLPPort00_01], 4, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteCvtPS2IZ>;
- defm : X86WriteRes<WriteCvtPS2PD, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtPS2PDLd, [ADLPPort00_01, ADLPPort02_03_11], 11, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtPS2PDY, [ADLPPort00_01, ADLPPort05], 7, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtPS2PDYLd, [ADLPPort00_01, ADLPPort02_03_11], 12, [1, 1], 2>;
- defm : X86WriteResPairUnsupported<WriteCvtPS2PDZ>;
- defm : X86WriteRes<WriteCvtPS2PH, [ADLPPort00_01, ADLPPort05], 6, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtPS2PHSt, [ADLPPort00_01, ADLPPort04_09, ADLPPort07_08], 12, [1, 1, 1], 3>;
- defm : X86WriteRes<WriteCvtPS2PHY, [ADLPPort00_01, ADLPPort05], 8, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtPS2PHYSt, [ADLPPort00_01, ADLPPort04_09, ADLPPort07_08], 12, [1, 1, 1], 3>;
- defm : X86WriteResUnsupported<WriteCvtPS2PHZ>;
- defm : X86WriteResUnsupported<WriteCvtPS2PHZSt>;
- defm : ADLPWriteResPair<WriteCvtSD2I, [ADLPPort00, ADLPPort00_01], 7, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteCvtSD2SS, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2, 7>;
- defm : ADLPWriteResPair<WriteCvtSS2I, [ADLPPort00, ADLPPort00_01], 7, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtSS2SD, [ADLPPort00_01, ADLPPort05], 5, [1, 1], 2>;
- defm : X86WriteRes<WriteCvtSS2SDLd, [ADLPPort00_01, ADLPPort02_03_11], 11, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteDPPD, [ADLPPort00_01, ADLPPort01_05], 9, [2, 1], 3, 7>;
- defm : ADLPWriteResPair<WriteDPPS, [ADLPPort00_01, ADLPPort00_06, ADLPPort01_05, ADLPPort05], 14, [2, 1, 2, 1], 6, 7>;
- defm : ADLPWriteResPair<WriteDPPSY, [ADLPPort00_01, ADLPPort00_06, ADLPPort01_05, ADLPPort05], 14, [2, 1, 2, 1], 6, 8>;
- defm : ADLPWriteResPair<WriteDiv16, [ADLPPort00_01_05_06_10, ADLPPort01], 16, [1, 3], 4, 4>;
- defm : ADLPWriteResPair<WriteDiv32, [ADLPPort00_01_05_06_10, ADLPPort01], 15, [1, 3], 4, 4>;
- defm : ADLPWriteResPair<WriteDiv64, [ADLPPort01], 18, [3], 3>;
- defm : X86WriteRes<WriteDiv8, [ADLPPort01], 17, [3], 3>;
- defm : X86WriteRes<WriteDiv8Ld, [ADLPPort01], 22, [3], 3>;
- defm : X86WriteRes<WriteEMMS, [ADLPPort00, ADLPPort00_05, ADLPPort00_06], 10, [1, 8, 1], 10>;
- def : WriteRes<WriteFAdd, [ADLPPort05]> {
- let Latency = 3;
- }
- defm : X86WriteRes<WriteFAddLd, [ADLPPort01_05, ADLPPort02_03_11], 10, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteFAdd64, [ADLPPort01_05], 3, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFAdd64X, [ADLPPort01_05], 3, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFAdd64Y, [ADLPPort01_05], 3, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFAdd64Z>;
- defm : ADLPWriteResPair<WriteFAddX, [ADLPPort01_05], 3, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFAddY, [ADLPPort01_05], 3, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFAddZ>;
- defm : ADLPWriteResPair<WriteFBlend, [ADLPPort00_01_05], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFBlendY, [ADLPPort00_01_05], 1, [1], 1, 8>;
- def : WriteRes<WriteFCMOV, [ADLPPort01]> {
- let Latency = 3;
- }
- defm : ADLPWriteResPair<WriteFCmp, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFCmp64, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFCmp64X, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFCmp64Y, [ADLPPort00_01], 4, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFCmp64Z>;
- defm : ADLPWriteResPair<WriteFCmpX, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFCmpY, [ADLPPort00_01], 4, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFCmpZ>;
- def : WriteRes<WriteFCom, [ADLPPort05]>;
- defm : X86WriteRes<WriteFComLd, [ADLPPort02_03, ADLPPort05], 8, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteFComX, [ADLPPort00], 3, [1]>;
- defm : ADLPWriteResPair<WriteFDiv, [ADLPPort00], 11, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFDiv64, [ADLPPort00], 14, [1]>;
- defm : ADLPWriteResPair<WriteFDiv64X, [ADLPPort00], 14, [1], 1, 6>;
- defm : ADLPWriteResPair<WriteFDiv64Y, [ADLPPort00], 14, [1], 1, 7>;
- defm : X86WriteResPairUnsupported<WriteFDiv64Z>;
- defm : ADLPWriteResPair<WriteFDivX, [ADLPPort00], 11, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFDivY, [ADLPPort00], 11, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFDivZ>;
- defm : ADLPWriteResPair<WriteFHAdd, [ADLPPort01_05, ADLPPort05], 6, [1, 2], 3, 6>;
- defm : ADLPWriteResPair<WriteFHAddY, [ADLPPort01_05, ADLPPort05], 5, [1, 2], 3, 8>;
- def : WriteRes<WriteFLD0, [ADLPPort00_05]>;
- defm : X86WriteRes<WriteFLD1, [ADLPPort00_05], 1, [2], 2>;
- defm : X86WriteRes<WriteFLDC, [ADLPPort00_05], 1, [2], 2>;
- def : WriteRes<WriteFLoad, [ADLPPort02_03_11]> {
- let Latency = 7;
- }
- def : WriteRes<WriteFLoadX, [ADLPPort02_03_11]> {
- let Latency = 7;
- }
- def : WriteRes<WriteFLoadY, [ADLPPort02_03_11]> {
- let Latency = 8;
- }
- defm : ADLPWriteResPair<WriteFLogic, [ADLPPort00_01_05], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFLogicY, [ADLPPort00_01_05], 1, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFLogicZ>;
- defm : ADLPWriteResPair<WriteFMA, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFMAX, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFMAY, [ADLPPort00_01], 4, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFMAZ>;
- def : WriteRes<WriteFMOVMSK, [ADLPPort00]> {
- let Latency = 3;
- }
- defm : X86WriteRes<WriteFMaskedLoad, [ADLPPort00_01_05, ADLPPort02_03_11], 8, [1, 1], 2>;
- defm : X86WriteRes<WriteFMaskedLoadY, [ADLPPort00_01_05, ADLPPort02_03_11], 9, [1, 1], 2>;
- defm : X86WriteRes<WriteFMaskedStore32, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
- defm : X86WriteRes<WriteFMaskedStore32Y, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
- defm : X86WriteRes<WriteFMaskedStore64, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
- defm : X86WriteRes<WriteFMaskedStore64Y, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
- defm : X86WriteRes<WriteFMoveX, [], 1, [], 0>;
- defm : X86WriteRes<WriteFMoveY, [], 1, [], 0>;
- defm : X86WriteResUnsupported<WriteFMoveZ>;
- defm : ADLPWriteResPair<WriteFMul, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFMul64, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFMul64X, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFMul64Y, [ADLPPort00_01], 4, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFMul64Z>;
- defm : ADLPWriteResPair<WriteFMulX, [ADLPPort00_01], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFMulY, [ADLPPort00_01], 4, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFMulZ>;
- defm : ADLPWriteResPair<WriteFRcp, [ADLPPort00], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFRcpX, [ADLPPort00], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFRcpY, [ADLPPort00], 4, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFRcpZ>;
- defm : ADLPWriteResPair<WriteFRnd, [ADLPPort00_01], 8, [2], 2, 7>;
- defm : ADLPWriteResPair<WriteFRndY, [ADLPPort00_01], 8, [2], 2, 8>;
- defm : X86WriteResPairUnsupported<WriteFRndZ>;
- defm : ADLPWriteResPair<WriteFRsqrt, [ADLPPort00], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFRsqrtX, [ADLPPort00], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFRsqrtY, [ADLPPort00], 4, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFRsqrtZ>;
- defm : ADLPWriteResPair<WriteFShuffle, [ADLPPort05], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFShuffle256, [ADLPPort05], 3, [1], 1, 8>;
- defm : ADLPWriteResPair<WriteFShuffleY, [ADLPPort05], 1, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFShuffleZ>;
- def : WriteRes<WriteFSign, [ADLPPort00]>;
- defm : ADLPWriteResPair<WriteFSqrt, [ADLPPort00], 12, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFSqrt64, [ADLPPort00], 18, [1]>;
- defm : ADLPWriteResPair<WriteFSqrt64X, [ADLPPort00], 18, [1], 1, 6>;
- defm : ADLPWriteResPair<WriteFSqrt64Y, [ADLPPort00], 18, [1], 1, 7>;
- defm : X86WriteResPairUnsupported<WriteFSqrt64Z>;
- def : WriteRes<WriteFSqrt80, [ADLPPortInvalid, ADLPPort00]> {
- let ResourceCycles = [7, 1];
- let Latency = 21;
- }
- defm : ADLPWriteResPair<WriteFSqrtX, [ADLPPort00], 12, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFSqrtY, [ADLPPort00], 12, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFSqrtZ>;
- defm : X86WriteRes<WriteFStore, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
- defm : X86WriteResUnsupported<WriteFStoreNT>;
- defm : X86WriteRes<WriteFStoreNTX, [ADLPPort04_09, ADLPPort07_08], 518, [1, 1], 2>;
- defm : X86WriteRes<WriteFStoreNTY, [ADLPPort04_09, ADLPPort07_08], 542, [1, 1], 2>;
- defm : X86WriteRes<WriteFStoreX, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
- defm : X86WriteRes<WriteFStoreY, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteFTest, [ADLPPort00], 3, [1]>;
- defm : ADLPWriteResPair<WriteFTestY, [ADLPPort00], 5, [1], 1, 6>;
- defm : ADLPWriteResPair<WriteFVarBlend, [ADLPPort00_01_05], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFVarBlendY, [ADLPPort00_01_05], 3, [3], 3, 7>;
- defm : X86WriteResPairUnsupported<WriteFVarBlendZ>;
- defm : ADLPWriteResPair<WriteFVarShuffle, [ADLPPort05], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteFVarShuffle256, [ADLPPort05], 3, [1], 1, 8>;
- defm : ADLPWriteResPair<WriteFVarShuffleY, [ADLPPort05], 1, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteFVarShuffleZ>;
- def : WriteRes<WriteFence, [ADLPPort00_06]> {
- let Latency = 2;
- }
- defm : ADLPWriteResPair<WriteIDiv16, [ADLPPort00_01_05_06_10, ADLPPort01], 16, [1, 3], 4, 4>;
- defm : ADLPWriteResPair<WriteIDiv32, [ADLPPort00_01_05_06_10, ADLPPort01], 15, [1, 3], 4, 4>;
- defm : ADLPWriteResPair<WriteIDiv64, [ADLPPort01], 18, [3], 3>;
- defm : X86WriteRes<WriteIDiv8, [ADLPPort01], 17, [3], 3>;
- defm : X86WriteRes<WriteIDiv8Ld, [ADLPPort01], 22, [3], 3>;
- defm : ADLPWriteResPair<WriteIMul16, [ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01], 5, [2, 1, 1], 4>;
- defm : ADLPWriteResPair<WriteIMul16Imm, [ADLPPort00_01_05_06_10, ADLPPort01], 4, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteIMul16Reg, [ADLPPort01], 3, [1]>;
- defm : ADLPWriteResPair<WriteIMul32, [ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01], 4, [1, 1, 1], 3>;
- defm : ADLPWriteResPair<WriteIMul32Imm, [ADLPPort01], 3, [1]>;
- defm : ADLPWriteResPair<WriteIMul32Reg, [ADLPPort01], 3, [1]>;
- defm : ADLPWriteResPair<WriteIMul64, [ADLPPort01, ADLPPort05], 4, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteIMul64Imm, [ADLPPort01], 3, [1]>;
- defm : ADLPWriteResPair<WriteIMul64Reg, [ADLPPort01], 3, [1]>;
- defm : ADLPWriteResPair<WriteIMul8, [ADLPPort01], 3, [1]>;
- def : WriteRes<WriteIMulH, []> {
- let Latency = 3;
- }
- def : WriteRes<WriteIMulHLd, []> {
- let Latency = 3;
- }
- def : WriteRes<WriteJump, [ADLPPort00_06]>;
- defm : X86WriteRes<WriteJumpLd, [ADLPPort00_06, ADLPPort02_03], 6, [1, 1], 2>;
- def : WriteRes<WriteLAHFSAHF, [ADLPPort00_06]> {
- let Latency = 3;
- }
- defm : X86WriteRes<WriteLDMXCSR, [ADLPPort00, ADLPPort00_01_05, ADLPPort00_06, ADLPPort02_03_11], 7, [1, 1, 1, 1], 4>;
- def : WriteRes<WriteLEA, [ADLPPort01]>;
- defm : ADLPWriteResPair<WriteLZCNT, [ADLPPort01], 3, [1]>;
- def : WriteRes<WriteLoad, [ADLPPort02_03_11]> {
- let Latency = 5;
- }
- def : WriteRes<WriteMMXMOVMSK, [ADLPPort00]> {
- let Latency = 3;
- }
- defm : ADLPWriteResPair<WriteMPSAD, [ADLPPort01_05, ADLPPort05], 4, [1, 1], 2, 7>;
- defm : ADLPWriteResPair<WriteMPSADY, [ADLPPort01_05, ADLPPort05], 4, [1, 1], 2, 8>;
- defm : ADLPWriteResPair<WriteMULX32, [ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01], 4, [1, 1, 1], 2>;
- defm : ADLPWriteResPair<WriteMULX64, [ADLPPort01, ADLPPort05], 4, [1, 1]>;
- def : WriteRes<WriteMicrocoded, [ADLPPort00_01_05_06]> {
- let Latency = AlderlakePModel.MaxLatency;
- }
- def : WriteRes<WriteMove, [ADLPPort00_01_05_06_10]>;
- defm : X86WriteRes<WriteNop, [], 1, [], 0>;
- defm : X86WriteRes<WritePCmpEStrI, [ADLPPort00, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01, ADLPPort05], 16, [3, 2, 1, 1, 1], 8>;
- defm : X86WriteRes<WritePCmpEStrILd, [ADLPPort00, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort05], 31, [3, 1, 1, 1, 1, 1], 8>;
- defm : X86WriteRes<WritePCmpEStrM, [ADLPPort00, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01, ADLPPort05], 16, [3, 3, 1, 1, 1], 9>;
- defm : X86WriteRes<WritePCmpEStrMLd, [ADLPPort00, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort05], 17, [3, 2, 1, 1, 1, 1], 9>;
- defm : ADLPWriteResPair<WritePCmpIStrI, [ADLPPort00], 11, [3], 3, 20>;
- defm : ADLPWriteResPair<WritePCmpIStrM, [ADLPPort00], 11, [3], 3>;
- defm : ADLPWriteResPair<WritePHAdd, [ADLPPort00_05, ADLPPort05], 3, [1, 2], 3, 8>;
- defm : ADLPWriteResPair<WritePHAddX, [ADLPPort00_01_05, ADLPPort01_05], 2, [1, 2], 3, 7>;
- defm : ADLPWriteResPair<WritePHAddY, [ADLPPort00_01_05, ADLPPort01_05], 2, [1, 2], 3, 8>;
- defm : ADLPWriteResPair<WritePHMINPOS, [ADLPPort00], 4, [1], 1, 7>;
- defm : ADLPWriteResPair<WritePMULLD, [ADLPPort00_01], 10, [2], 2, 8>;
- defm : ADLPWriteResPair<WritePMULLDY, [ADLPPort00_01], 10, [2], 2, 8>;
- defm : X86WriteResPairUnsupported<WritePMULLDZ>;
- defm : ADLPWriteResPair<WritePOPCNT, [ADLPPort01], 3, [1]>;
- defm : ADLPWriteResPair<WritePSADBW, [ADLPPort05], 3, [1], 1, 8>;
- defm : ADLPWriteResPair<WritePSADBWX, [ADLPPort05], 3, [1], 1, 7>;
- defm : ADLPWriteResPair<WritePSADBWY, [ADLPPort05], 3, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WritePSADBWZ>;
- defm : X86WriteRes<WriteRMW, [ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08], 1, [1, 1, 1], 3>;
- defm : X86WriteRes<WriteRotate, [ADLPPort00_01_05_06_10, ADLPPort00_06], 2, [1, 2], 3>;
- defm : X86WriteRes<WriteRotateLd, [ADLPPort00_01_05_06_10, ADLPPort00_06], 12, [1, 2], 3>;
- defm : X86WriteRes<WriteRotateCL, [ADLPPort00_06], 2, [2], 2>;
- defm : X86WriteRes<WriteRotateCLLd, [ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01], 19, [2, 3, 2], 7>;
- defm : X86WriteRes<WriteSETCC, [ADLPPort00_06], 2, [2], 2>;
- defm : X86WriteRes<WriteSETCCStore, [ADLPPort00_06, ADLPPort04_09, ADLPPort07_08], 13, [2, 1, 1], 4>;
- defm : X86WriteRes<WriteSHDmrcl, [ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08], 12, [1, 1, 1, 1, 1, 1], 6>;
- defm : X86WriteRes<WriteSHDmri, [ADLPPort00_01_05_06_10, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08], 12, [1, 1, 1, 1, 1], 5>;
- defm : X86WriteRes<WriteSHDrrcl, [ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01], 5, [1, 1, 1], 3>;
- def : WriteRes<WriteSHDrri, [ADLPPort01]> {
- let Latency = 3;
- }
- defm : X86WriteRes<WriteSTMXCSR, [ADLPPort00, ADLPPort00_06, ADLPPort04_09, ADLPPort07_08], 12, [1, 1, 1, 1], 4>;
- def : WriteRes<WriteShift, [ADLPPort00_06]>;
- def : WriteRes<WriteShiftLd, [ADLPPort00_06]> {
- let Latency = 12;
- }
- defm : X86WriteRes<WriteShiftCL, [ADLPPort00_06], 2, [2], 2>;
- defm : X86WriteRes<WriteShiftCLLd, [ADLPPort00_06], 12, [2], 2>;
- defm : ADLPWriteResPair<WriteShuffle, [ADLPPort05], 1, [1], 1, 8>;
- defm : ADLPWriteResPair<WriteShuffle256, [ADLPPort05], 3, [1], 1, 8>;
- defm : ADLPWriteResPair<WriteShuffleX, [ADLPPort01_05], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteShuffleY, [ADLPPort01_05], 1, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteShuffleZ>;
- defm : X86WriteRes<WriteStore, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
- defm : X86WriteRes<WriteStoreNT, [ADLPPort04_09, ADLPPort07_08], 512, [1, 1], 2>;
- def : WriteRes<WriteSystem, [ADLPPort00_01_05_06]> {
- let Latency = AlderlakePModel.MaxLatency;
- }
- defm : ADLPWriteResPair<WriteTZCNT, [ADLPPort01], 3, [1]>;
- defm : ADLPWriteResPair<WriteVPMOV256, [ADLPPort05], 3, [1], 1, 8>;
- defm : ADLPWriteResPair<WriteVarBlend, [ADLPPort00_01_05], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteVarBlendY, [ADLPPort00_01_05], 3, [3], 3, 7>;
- defm : X86WriteResPairUnsupported<WriteVarBlendZ>;
- defm : ADLPWriteResPair<WriteVarShuffle, [ADLPPort00, ADLPPort05], 3, [1, 1], 2, 8>;
- defm : ADLPWriteResPair<WriteVarShuffle256, [ADLPPort05], 3, [1], 1, 8>;
- defm : ADLPWriteResPair<WriteVarShuffleX, [ADLPPort01_05], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteVarShuffleY, [ADLPPort01_05], 1, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteVarShuffleZ>;
- defm : ADLPWriteResPair<WriteVarVecShift, [ADLPPort00_01], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteVarVecShiftY, [ADLPPort00_01], 1, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteVarVecShiftZ>;
- defm : ADLPWriteResPair<WriteVecALU, [ADLPPort00], 1, [1], 1, 8>;
- defm : ADLPWriteResPair<WriteVecALUX, [ADLPPort00_01], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteVecALUY, [ADLPPort00_01], 1, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteVecALUZ>;
- defm : X86WriteRes<WriteVecExtract, [ADLPPort00, ADLPPort01_05], 4, [1, 1], 2>;
- defm : X86WriteRes<WriteVecExtractSt, [ADLPPort01_05, ADLPPort04_09, ADLPPort07_08], 19, [1, 1, 1], 3>;
- defm : ADLPWriteResPair<WriteVecIMul, [ADLPPort00], 5, [1], 1, 8>;
- defm : ADLPWriteResPair<WriteVecIMulX, [ADLPPort00_01], 5, [1], 1, 8>;
- defm : ADLPWriteResPair<WriteVecIMulY, [ADLPPort00_01], 5, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteVecIMulZ>;
- defm : X86WriteRes<WriteVecInsert, [ADLPPort01_05, ADLPPort05], 4, [1, 1], 2>;
- defm : X86WriteRes<WriteVecInsertLd, [ADLPPort01_05, ADLPPort02_03_11], 8, [1, 1], 2>;
- def : WriteRes<WriteVecLoad, [ADLPPort02_03_11]> {
- let Latency = 7;
- }
- def : WriteRes<WriteVecLoadNT, [ADLPPort02_03_11]> {
- let Latency = 7;
- }
- def : WriteRes<WriteVecLoadNTY, [ADLPPort02_03_11]> {
- let Latency = 8;
- }
- def : WriteRes<WriteVecLoadX, [ADLPPort02_03_11]> {
- let Latency = 7;
- }
- def : WriteRes<WriteVecLoadY, [ADLPPort02_03_11]> {
- let Latency = 8;
- }
- defm : ADLPWriteResPair<WriteVecLogic, [ADLPPort00_05], 1, [1], 1, 8>;
- defm : ADLPWriteResPair<WriteVecLogicX, [ADLPPort00_01_05], 1, [1], 1, 7>;
- defm : ADLPWriteResPair<WriteVecLogicY, [ADLPPort00_01_05], 1, [1], 1, 8>;
- defm : X86WriteResPairUnsupported<WriteVecLogicZ>;
- def : WriteRes<WriteVecMOVMSK, [ADLPPort00]> {
- let Latency = 3;
- }
- def : WriteRes<WriteVecMOVMSKY, [ADLPPort00]> {
- let Latency = 4;
- }
- defm : X86WriteRes<WriteVecMaskedGatherWriteback, [], 5, [], 0>;
- defm : X86WriteRes<WriteVecMaskedLoad, [ADLPPort00_01_05, ADLPPort02_03_11], 8, [1, 1], 2>;
- defm : X86WriteRes<WriteVecMaskedLoadY, [ADLPPort00_01_05, ADLPPort02_03_11], 9, [1, 1], 2>;
- defm : X86WriteRes<WriteVecMaskedStore32, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
- defm : X86WriteRes<WriteVecMaskedStore32Y, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
- defm : X86WriteRes<WriteVecMaskedStore64, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
- defm : X86WriteRes<WriteVecMaskedStore64Y, [ADLPPort00, ADLPPort04_09, ADLPPort07_08], 14, [1, 1, 1], 3>;
- def : WriteRes<WriteVecMove, [ADLPPort00_05]>;
- def : WriteRes<WriteVecMoveFromGpr, [ADLPPort05]> {
- let Latency = 3;
- }
- def : WriteRes<WriteVecMoveToGpr, [ADLPPort00]> {
- let Latency = 3;
- }
- defm : X86WriteRes<WriteVecMoveX, [], 1, [], 0>;
- defm : X86WriteRes<WriteVecMoveY, [], 1, [], 0>;
- defm : X86WriteResUnsupported<WriteVecMoveZ>;
- defm : ADLPWriteResPair<WriteVecShift, [ADLPPort00], 1, [1], 1, 8>;
- def : WriteRes<WriteVecShiftImm, [ADLPPort00]>;
- def : WriteRes<WriteVecShiftImmX, [ADLPPort00_01]>;
- defm : X86WriteResUnsupported<WriteVecShiftImmXLd>;
- def : WriteRes<WriteVecShiftImmY, [ADLPPort00_01]>;
- defm : X86WriteResUnsupported<WriteVecShiftImmYLd>;
- defm : X86WriteResPairUnsupported<WriteVecShiftImmZ>;
- defm : X86WriteRes<WriteVecShiftX, [ADLPPort00_01, ADLPPort01_05], 2, [1, 1], 2>;
- defm : X86WriteRes<WriteVecShiftXLd, [ADLPPort00_01, ADLPPort02_03_11], 8, [1, 1], 2>;
- defm : X86WriteRes<WriteVecShiftY, [ADLPPort00_01, ADLPPort05], 4, [1, 1], 2>;
- defm : X86WriteRes<WriteVecShiftYLd, [ADLPPort00_01, ADLPPort02_03_11], 9, [1, 1], 2>;
- defm : X86WriteResPairUnsupported<WriteVecShiftZ>;
- defm : X86WriteRes<WriteVecStore, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
- defm : X86WriteRes<WriteVecStoreNT, [ADLPPort04_09, ADLPPort07_08], 511, [1, 1], 2>;
- defm : X86WriteRes<WriteVecStoreNTY, [ADLPPort04_09, ADLPPort07_08], 507, [1, 1], 2>;
- defm : X86WriteRes<WriteVecStoreX, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
- defm : X86WriteRes<WriteVecStoreY, [ADLPPort04_09, ADLPPort07_08], 12, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteVecTest, [ADLPPort00, ADLPPort05], 4, [1, 1], 2>;
- defm : ADLPWriteResPair<WriteVecTestY, [ADLPPort00, ADLPPort05], 6, [1, 1], 2, 6>;
- defm : X86WriteRes<WriteXCHG, [ADLPPort00_01_05_06_10], 2, [3], 3>;
- def : WriteRes<WriteZero, []>;
- // Infered SchedWriteRes and InstRW definition.
- def ADLPWriteResGroup0 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort02_03, ADLPPort02_03_07, ADLPPort04]> {
- let Latency = 7;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup0], (instregex "^AA(D|N)D64mr$",
- "^A(X?)OR64mr$")>;
- def ADLPWriteResGroup1 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [2, 1, 1, 1, 1];
- let Latency = 12;
- let NumMicroOps = 6;
- }
- def : InstRW<[ADLPWriteResGroup1, ReadAfterLd, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^(ADC|SBB)(16|32|64)mr$")>;
- def ADLPWriteResGroup2 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_11]> {
- let Latency = 6;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup2], (instregex "^JMP(16|32|64)m((_NT)?)$",
- "^RET(16|32)$",
- "^RORX(32|64)mi$")>;
- def : InstRW<[ADLPWriteResGroup2, ReadAfterLd, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^(ADC|SBB)(8|16|32|64)rm$",
- "^AD(C|O)X(32|64)rm$")>;
- def ADLPWriteResGroup3 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 13;
- let NumMicroOps = 5;
- }
- def : InstRW<[ADLPWriteResGroup3], (instregex "^(ADC|SBB)8mi(8?)$")>;
- def ADLPWriteResGroup4 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [2, 1, 1, 1, 1];
- let Latency = 13;
- let NumMicroOps = 6;
- }
- def : InstRW<[ADLPWriteResGroup4, ReadAfterLd, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^(ADC|SBB)8mr$")>;
- def ADLPWriteResGroup5 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11]> {
- let Latency = 6;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup5], (instregex "^CMP(8|16|32)mi$",
- "^CMP(8|16|32|64)mi8$",
- "^MOV(8|16)rm$",
- "^POP(16|32)r((mr)?)$")>;
- def : InstRW<[ADLPWriteResGroup5], (instrs CMP64mi32,
- MOV8rm_NOREX,
- MOVZX16rm8)>;
- def : InstRW<[ADLPWriteResGroup5, ReadAfterLd], (instregex "^(ADD|CMP|SUB)(8|16|32|64)rm$",
- "^AND(8|16|32)rm$",
- "^(X?)OR(8|16|32)rm$")>;
- def : InstRW<[ADLPWriteResGroup5, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^CMP(8|16|32|64)mr$")>;
- def ADLPWriteResGroup6 : SchedWriteRes<[]> {
- let NumMicroOps = 0;
- }
- def : InstRW<[ADLPWriteResGroup6], (instregex "^(ADD|SUB)64ri8$",
- "^(DE|IN)C64r$",
- "^MOV64rr((_REV)?)$")>;
- def : InstRW<[ADLPWriteResGroup6], (instrs CLC,
- JMP_2)>;
- def ADLPWriteResGroup7 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 13;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup7], (instregex "^A(D|N)D8mi(8?)$",
- "^(DE|IN)C8m$",
- "^N(EG|OT)8m$",
- "^(X?)OR8mi(8?)$",
- "^SUB8mi(8?)$")>;
- def : InstRW<[ADLPWriteResGroup7, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^A(D|N)D8mr$",
- "^(X?)OR8mr$")>;
- def : InstRW<[ADLPWriteResGroup7, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instrs SUB8mr)>;
- def ADLPWriteResGroup8 : SchedWriteRes<[ADLPPort01_05]> {
- let Latency = 3;
- }
- def : InstRW<[ADLPWriteResGroup8], (instregex "^(V?)(ADD|SUB)SSrr((_Int)?)$")>;
- def ADLPWriteResGroup9 : SchedWriteRes<[ADLPPort02_03, ADLPPort05]> {
- let Latency = 10;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup9], (instregex "^ADD_F(32|64)m$",
- "^ILD_F(16|32|64)m$",
- "^SUB(R?)_F(32|64)m$")>;
- def ADLPWriteResGroup10 : SchedWriteRes<[ADLPPort02_03, ADLPPort05]> {
- let ResourceCycles = [1, 2];
- let Latency = 13;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup10], (instregex "^ADD_FI(16|32)m$",
- "^SUB(R?)_FI(16|32)m$")>;
- def ADLPWriteResGroup11 : SchedWriteRes<[ADLPPort00_01_05_06_10]> {
- let Latency = 2;
- }
- def : InstRW<[ADLPWriteResGroup11], (instregex "^AND(8|16|32|64)r(r|i8)$",
- "^AND(8|16|32|64)rr_REV$",
- "^(AND|TEST)(32|64)i32$",
- "^(AND|TEST)(8|32)ri$",
- "^(AND|TEST)64ri32$",
- "^(AND|TEST)8i8$",
- "^(X?)OR(8|16|32|64)r(r|i8)$",
- "^(X?)OR(8|16|32|64)rr_REV$",
- "^(X?)OR(32|64)i32$",
- "^(X?)OR(8|32)ri$",
- "^(X?)OR64ri32$",
- "^(X?)OR8i8$",
- "^TEST(8|16|32|64)rr$")>;
- def : InstRW<[ADLPWriteResGroup11], (instrs XOR8rr_NOREX)>;
- def ADLPWriteResGroup12 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11]> {
- let Latency = 7;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup12], (instregex "^TEST(8|16|32)mi$")>;
- def : InstRW<[ADLPWriteResGroup12], (instrs TEST64mi32)>;
- def : InstRW<[ADLPWriteResGroup12, ReadAfterLd], (instregex "^(X?)OR64rm$")>;
- def : InstRW<[ADLPWriteResGroup12, ReadAfterLd], (instrs AND64rm)>;
- def : InstRW<[ADLPWriteResGroup12, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^TEST(8|16|32|64)mr$")>;
- def ADLPWriteResGroup13 : SchedWriteRes<[ADLPPort01_05_10, ADLPPort02_03_11]> {
- let Latency = 7;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup13, ReadAfterLd], (instregex "^ANDN(32|64)rm$")>;
- def ADLPWriteResGroup14 : SchedWriteRes<[ADLPPort01_05_10]> {
- let Latency = 2;
- }
- def : InstRW<[ADLPWriteResGroup14], (instregex "^ANDN(32|64)rr$")>;
- def ADLPWriteResGroup15 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11]> {
- let ResourceCycles = [5, 2, 1, 1];
- let Latency = 10;
- let NumMicroOps = 9;
- }
- def : InstRW<[ADLPWriteResGroup15], (instrs BT64mr)>;
- def ADLPWriteResGroup16 : SchedWriteRes<[ADLPPort01]> {
- let Latency = 3;
- }
- def : InstRW<[ADLPWriteResGroup16], (instregex "^BT((C|R|S)?)64rr$",
- "^P(DEP|EXT)(32|64)rr$")>;
- def ADLPWriteResGroup17 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [4, 2, 1, 1, 1, 1];
- let Latency = 17;
- let NumMicroOps = 10;
- }
- def : InstRW<[ADLPWriteResGroup17], (instregex "^BT(C|R|S)64mr$")>;
- def ADLPWriteResGroup18 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 7;
- let NumMicroOps = 5;
- }
- def : InstRW<[ADLPWriteResGroup18], (instregex "^CALL(16|32|64)m((_NT)?)$")>;
- def ADLPWriteResGroup19 : SchedWriteRes<[ADLPPort00_06, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 3;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup19], (instregex "^CALL(16|32|64)r((_NT)?)$")>;
- def ADLPWriteResGroup20 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 3;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup20], (instrs CALL64pcrel32,
- MFENCE)>;
- def ADLPWriteResGroup21 : SchedWriteRes<[ADLPPort01_05]>;
- def : InstRW<[ADLPWriteResGroup21], (instregex "^C(DQ|WD)E$",
- "^(V?)MOVS(H|L)DUPrr$",
- "^(V?)SHUFP(D|S)rri$",
- "^VMOVS(H|L)DUPYrr$",
- "^VSHUFP(D|S)Yrri$")>;
- def : InstRW<[ADLPWriteResGroup21], (instrs CBW,
- VPBLENDWYrri)>;
- def ADLPWriteResGroup22 : SchedWriteRes<[ADLPPort00_06]>;
- def : InstRW<[ADLPWriteResGroup22], (instregex "^C(DQ|QO)$",
- "^(CL|ST)AC$")>;
- def ADLPWriteResGroup23 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06]> {
- let Latency = 3;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup23], (instrs CLD)>;
- def ADLPWriteResGroup24 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 3;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup24], (instrs CLDEMOTE)>;
- def ADLPWriteResGroup25 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 2;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup25], (instrs CLFLUSH)>;
- def ADLPWriteResGroup26 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 2;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup26], (instrs CLFLUSHOPT)>;
- def ADLPWriteResGroup27 : SchedWriteRes<[ADLPPort00_06, ADLPPort01]> {
- let ResourceCycles = [2, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup27], (instrs CLI)>;
- def ADLPWriteResGroup28 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort05]> {
- let ResourceCycles = [6, 1, 3];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 10;
- }
- def : InstRW<[ADLPWriteResGroup28], (instrs CLTS)>;
- def ADLPWriteResGroup29 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 5;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup29], (instregex "^MOV16o(16|32|64)a$")>;
- def : InstRW<[ADLPWriteResGroup29], (instrs CLWB)>;
- def ADLPWriteResGroup30 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11]> {
- let ResourceCycles = [5, 2];
- let Latency = 6;
- let NumMicroOps = 7;
- }
- def : InstRW<[ADLPWriteResGroup30], (instregex "^CMPS(B|L|Q|W)$")>;
- def ADLPWriteResGroup31 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01_05, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [2, 7, 6, 2, 1, 1, 2, 1];
- let Latency = 32;
- let NumMicroOps = 22;
- }
- def : InstRW<[ADLPWriteResGroup31], (instrs CMPXCHG16B)>;
- def ADLPWriteResGroup32 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [4, 7, 2, 1, 1, 1];
- let Latency = 25;
- let NumMicroOps = 16;
- }
- def : InstRW<[ADLPWriteResGroup32], (instrs CMPXCHG8B)>;
- def ADLPWriteResGroup33 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [1, 2, 1, 1, 1];
- let Latency = 13;
- let NumMicroOps = 6;
- }
- def : InstRW<[ADLPWriteResGroup33], (instrs CMPXCHG8rm)>;
- def ADLPWriteResGroup34 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_06, ADLPPort01, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [2, 1, 10, 6, 1, 5, 1];
- let Latency = 18;
- let NumMicroOps = 26;
- }
- def : InstRW<[ADLPWriteResGroup34], (instrs CPUID)>;
- def ADLPWriteResGroup35 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort02_03_11]> {
- let Latency = 26;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup35], (instregex "^(V?)CVT(T?)SD2SIrm((_Int)?)$")>;
- def ADLPWriteResGroup36 : SchedWriteRes<[ADLPPort00_01, ADLPPort02_03_11, ADLPPort05]> {
- let Latency = 12;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup36], (instrs CVTSI642SSrm)>;
- def : InstRW<[ADLPWriteResGroup36, ReadAfterVecLd], (instregex "^(V?)CVTSI642SSrm_Int$")>;
- def : InstRW<[ADLPWriteResGroup36, ReadAfterVecLd], (instrs VCVTSI642SSrm)>;
- def ADLPWriteResGroup37 : SchedWriteRes<[ADLPPort00_01, ADLPPort05]> {
- let ResourceCycles = [1, 2];
- let Latency = 8;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup37, ReadInt2Fpu], (instrs CVTSI642SSrr)>;
- def : InstRW<[ADLPWriteResGroup37, ReadDefault, ReadInt2Fpu], (instregex "^(V?)CVTSI642SSrr_Int$")>;
- def : InstRW<[ADLPWriteResGroup37, ReadDefault, ReadInt2Fpu], (instrs VCVTSI642SSrr)>;
- def ADLPWriteResGroup38 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort05]> {
- let Latency = 8;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup38], (instregex "^(V?)CVT(T?)SS2SI64rr_Int$")>;
- def : InstRW<[ADLPWriteResGroup38, ReadDefault], (instregex "^(V?)CVT(T?)SS2SI64rr$")>;
- def ADLPWriteResGroup39 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06]> {
- let Latency = 2;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup39], (instregex "^J(E|R)CXZ$")>;
- def : InstRW<[ADLPWriteResGroup39], (instrs CWD)>;
- def ADLPWriteResGroup40 : SchedWriteRes<[ADLPPort00_01_05_06]>;
- def : InstRW<[ADLPWriteResGroup40], (instregex "^(LD|ST)_Frr$",
- "^MOV16s(m|r)$",
- "^MOV(32|64)sr$")>;
- def : InstRW<[ADLPWriteResGroup40], (instrs DEC16r_alt,
- SALC,
- ST_FPrr,
- SYSCALL)>;
- def ADLPWriteResGroup41 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 7;
- }
- def : InstRW<[ADLPWriteResGroup41], (instrs DEC32r_alt)>;
- def ADLPWriteResGroup42 : SchedWriteRes<[ADLPPort00, ADLPPort02_03]> {
- let Latency = 27;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup42], (instregex "^DIVR_F(32|64)m$")>;
- def ADLPWriteResGroup43 : SchedWriteRes<[ADLPPort00, ADLPPort02_03, ADLPPort05]> {
- let Latency = 30;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup43], (instregex "^DIVR_FI(16|32)m$")>;
- def ADLPWriteResGroup44 : SchedWriteRes<[ADLPPort00]> {
- let Latency = 15;
- }
- def : InstRW<[ADLPWriteResGroup44], (instregex "^DIVR_F(P?)rST0$")>;
- def : InstRW<[ADLPWriteResGroup44], (instrs DIVR_FST0r)>;
- def ADLPWriteResGroup45 : SchedWriteRes<[ADLPPort00, ADLPPort02_03_11]> {
- let Latency = 20;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup45, ReadAfterVecLd], (instregex "^(V?)DIVSDrm_Int$")>;
- def ADLPWriteResGroup46 : SchedWriteRes<[ADLPPort00, ADLPPort02_03]> {
- let Latency = 22;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup46], (instregex "^DIV_F(32|64)m$")>;
- def ADLPWriteResGroup47 : SchedWriteRes<[ADLPPort00, ADLPPort02_03, ADLPPort05]> {
- let Latency = 25;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup47], (instregex "^DIV_FI(16|32)m$")>;
- def ADLPWriteResGroup48 : SchedWriteRes<[ADLPPort00]> {
- let Latency = 20;
- }
- def : InstRW<[ADLPWriteResGroup48], (instregex "^DIV_F(P?)rST0$")>;
- def : InstRW<[ADLPWriteResGroup48], (instrs DIV_FST0r)>;
- def ADLPWriteResGroup49 : SchedWriteRes<[ADLPPort00, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [2, 21, 2, 14, 4, 9, 5];
- let Latency = 126;
- let NumMicroOps = 57;
- }
- def : InstRW<[ADLPWriteResGroup49], (instrs ENTER)>;
- def ADLPWriteResGroup50 : SchedWriteRes<[ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let Latency = 12;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup50], (instregex "^(V?)EXTRACTPSmr$")>;
- def : InstRW<[ADLPWriteResGroup50], (instrs SMSW16m)>;
- def ADLPWriteResGroup51 : SchedWriteRes<[ADLPPort00, ADLPPort05]> {
- let Latency = 4;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup51], (instregex "^(V?)EXTRACTPSrr$")>;
- def : InstRW<[ADLPWriteResGroup51], (instrs MMX_PEXTRWrr)>;
- def ADLPWriteResGroup52 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort02_03, ADLPPort02_03_07, ADLPPort04, ADLPPort06]> {
- let Latency = 7;
- let NumMicroOps = 5;
- }
- def : InstRW<[ADLPWriteResGroup52], (instrs FARCALL64m)>;
- def ADLPWriteResGroup53 : SchedWriteRes<[ADLPPort02_03, ADLPPort06]> {
- let Latency = 6;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup53], (instrs FARJMP64m,
- JMP64m_REX)>;
- def ADLPWriteResGroup54 : SchedWriteRes<[ADLPPort02_03_07, ADLPPort04]> {
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup54], (instregex "^(V?)MASKMOVDQU((64)?)$",
- "^ST_FP(32|64|80)m$")>;
- def : InstRW<[ADLPWriteResGroup54], (instrs FBSTPm,
- VMPTRSTm)>;
- def ADLPWriteResGroup55 : SchedWriteRes<[ADLPPort00_05]> {
- let ResourceCycles = [2];
- let Latency = 2;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup55], (instrs FDECSTP)>;
- def ADLPWriteResGroup56 : SchedWriteRes<[ADLPPort02_03, ADLPPort05]> {
- let ResourceCycles = [1, 2];
- let Latency = 11;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup56], (instregex "^FICOM(P?)(16|32)m$")>;
- def ADLPWriteResGroup57 : SchedWriteRes<[ADLPPort00_05]>;
- def : InstRW<[ADLPWriteResGroup57], (instregex "^MMX_P(ADD|SUB)(B|D|Q|W)rr$")>;
- def : InstRW<[ADLPWriteResGroup57], (instrs FINCSTP,
- FNOP)>;
- def ADLPWriteResGroup58 : SchedWriteRes<[ADLPPort00, ADLPPort00_05, ADLPPort02_03]> {
- let Latency = 7;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup58], (instrs FLDCW16m)>;
- def ADLPWriteResGroup59 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06, ADLPPort00_05, ADLPPort00_06, ADLPPort02_03]> {
- let ResourceCycles = [2, 39, 5, 10, 8];
- let Latency = 62;
- let NumMicroOps = 64;
- }
- def : InstRW<[ADLPWriteResGroup59], (instrs FLDENVm)>;
- def ADLPWriteResGroup60 : SchedWriteRes<[ADLPPort00_01_05_06]> {
- let ResourceCycles = [4];
- let Latency = 4;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup60], (instrs FNCLEX)>;
- def ADLPWriteResGroup61 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort00_05, ADLPPort05]> {
- let ResourceCycles = [6, 3, 6];
- let Latency = 75;
- let NumMicroOps = 15;
- }
- def : InstRW<[ADLPWriteResGroup61], (instrs FNINIT)>;
- def ADLPWriteResGroup62 : SchedWriteRes<[ADLPPort02_03_07, ADLPPort04, ADLPPort06]> {
- let Latency = 2;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup62], (instrs FNSTCW16m)>;
- def ADLPWriteResGroup63 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06]> {
- let Latency = 3;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup63], (instrs FNSTSW16r)>;
- def ADLPWriteResGroup64 : SchedWriteRes<[ADLPPort00, ADLPPort02_03_07, ADLPPort04]> {
- let Latency = 3;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup64], (instrs FNSTSWm)>;
- def ADLPWriteResGroup65 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06, ADLPPort00_06, ADLPPort01, ADLPPort02_03_07, ADLPPort04, ADLPPort05, ADLPPort06]> {
- let ResourceCycles = [9, 30, 21, 1, 11, 11, 16, 1];
- let Latency = 106;
- let NumMicroOps = 100;
- }
- def : InstRW<[ADLPWriteResGroup65], (instrs FSTENVm)>;
- def ADLPWriteResGroup66 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06, ADLPPort00_05, ADLPPort00_06, ADLPPort01_05, ADLPPort02_03, ADLPPort06]> {
- let ResourceCycles = [4, 47, 1, 2, 1, 33, 2];
- let Latency = 63;
- let NumMicroOps = 90;
- }
- def : InstRW<[ADLPWriteResGroup66], (instrs FXRSTOR)>;
- def ADLPWriteResGroup67 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06, ADLPPort00_05, ADLPPort00_06, ADLPPort01_05, ADLPPort02_03, ADLPPort06]> {
- let ResourceCycles = [4, 45, 1, 2, 1, 31, 4];
- let Latency = 63;
- let NumMicroOps = 88;
- }
- def : InstRW<[ADLPWriteResGroup67], (instrs FXRSTOR64)>;
- def ADLPWriteResGroup68 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [2, 5, 10, 10, 2, 38, 5, 38];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 110;
- }
- def : InstRW<[ADLPWriteResGroup68], (instregex "^FXSAVE((64)?)$")>;
- def ADLPWriteResGroup69 : SchedWriteRes<[ADLPPort00_01, ADLPPort02_03_11]> {
- let Latency = 12;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup69, ReadAfterVecXLd], (instregex "^(V?)GF2P8AFFINE((INV)?)QBrmi$",
- "^(V?)GF2P8MULBrm$")>;
- def : InstRW<[ADLPWriteResGroup69, ReadAfterVecYLd], (instregex "^VGF2P8AFFINE((INV)?)QBYrmi$")>;
- def : InstRW<[ADLPWriteResGroup69, ReadAfterVecYLd], (instrs VGF2P8MULBYrm)>;
- def ADLPWriteResGroup70 : SchedWriteRes<[ADLPPort00_01]> {
- let Latency = 5;
- }
- def : InstRW<[ADLPWriteResGroup70], (instregex "^(V?)GF2P8MULBrr$")>;
- def : InstRW<[ADLPWriteResGroup70], (instrs VGF2P8MULBYrr)>;
- def ADLPWriteResGroup71 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [7, 5, 26, 19, 2, 7, 21];
- let Latency = 35;
- let NumMicroOps = 87;
- }
- def : InstRW<[ADLPWriteResGroup71], (instrs IN16ri)>;
- def ADLPWriteResGroup72 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [7, 1, 4, 26, 19, 3, 7, 20];
- let Latency = 35;
- let NumMicroOps = 87;
- }
- def : InstRW<[ADLPWriteResGroup72], (instrs IN16rr)>;
- def ADLPWriteResGroup73 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [7, 6, 28, 21, 2, 10, 20];
- let Latency = 35;
- let NumMicroOps = 94;
- }
- def : InstRW<[ADLPWriteResGroup73], (instrs IN32ri)>;
- def ADLPWriteResGroup74 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [7, 9, 28, 21, 2, 11, 21];
- let NumMicroOps = 99;
- }
- def : InstRW<[ADLPWriteResGroup74], (instrs IN32rr)>;
- def ADLPWriteResGroup75 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [7, 6, 25, 19, 2, 8, 20];
- let Latency = 35;
- let NumMicroOps = 87;
- }
- def : InstRW<[ADLPWriteResGroup75], (instrs IN8ri)>;
- def ADLPWriteResGroup76 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [7, 6, 25, 19, 2, 7, 20];
- let Latency = 35;
- let NumMicroOps = 86;
- }
- def : InstRW<[ADLPWriteResGroup76], (instrs IN8rr)>;
- def ADLPWriteResGroup77 : SchedWriteRes<[ADLPPort00_06]> {
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup77], (instrs INC16r_alt)>;
- def ADLPWriteResGroup78 : SchedWriteRes<[ADLPPort02_03_11]> {
- let Latency = 7;
- }
- def : InstRW<[ADLPWriteResGroup78], (instregex "^(V?)MOV(D|SH|SL)DUPrm$",
- "^VPBROADCAST(D|Q)rm$")>;
- def : InstRW<[ADLPWriteResGroup78], (instrs INC32r_alt,
- VBROADCASTSSrm)>;
- def ADLPWriteResGroup79 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [7, 6, 24, 17, 8, 1, 19, 1];
- let Latency = 20;
- let NumMicroOps = 83;
- }
- def : InstRW<[ADLPWriteResGroup79], (instrs INSB)>;
- def ADLPWriteResGroup80 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort00_01_05_06_10, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [7, 1, 5, 1, 27, 17, 11, 1, 21, 1];
- let Latency = 20;
- let NumMicroOps = 92;
- }
- def : InstRW<[ADLPWriteResGroup80], (instrs INSL)>;
- def ADLPWriteResGroup81 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort00_01_05_06_10, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [7, 1, 4, 1, 25, 17, 1, 9, 1, 19, 1];
- let Latency = 20;
- let NumMicroOps = 86;
- }
- def : InstRW<[ADLPWriteResGroup81], (instrs INSW)>;
- def ADLPWriteResGroup82 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [5, 4, 8, 6, 2, 5, 7, 5];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 42;
- }
- def : InstRW<[ADLPWriteResGroup82], (instrs INVLPG)>;
- def ADLPWriteResGroup83 : SchedWriteRes<[ADLPPort02_03_07, ADLPPort04, ADLPPort05]> {
- let Latency = 4;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup83], (instregex "^IST(T?)_FP(16|32|64)m$",
- "^IST_F(16|32)m$")>;
- def ADLPWriteResGroup84 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort00_06]> {
- let Latency = 2;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup84], (instrs JCXZ)>;
- def ADLPWriteResGroup85 : SchedWriteRes<[ADLPPort06]>;
- def : InstRW<[ADLPWriteResGroup85], (instrs JMP64r_REX)>;
- def ADLPWriteResGroup86 : SchedWriteRes<[]> {
- let Latency = 0;
- let NumMicroOps = 0;
- }
- def : InstRW<[ADLPWriteResGroup86], (instregex "^JMP_(1|4)$")>;
- def : InstRW<[ADLPWriteResGroup86], (instrs VZEROUPPER)>;
- def ADLPWriteResGroup87 : SchedWriteRes<[ADLPPort00, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [8, 2, 14, 3, 1];
- let Latency = 198;
- let NumMicroOps = 81;
- }
- def : InstRW<[ADLPWriteResGroup87], (instrs LAR16rm)>;
- def ADLPWriteResGroup88 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [1, 3, 1, 8, 5, 1, 2, 1];
- let Latency = 66;
- let NumMicroOps = 22;
- }
- def : InstRW<[ADLPWriteResGroup88], (instrs LAR16rr)>;
- def ADLPWriteResGroup89 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [1, 2, 2, 9, 5, 3, 1];
- let Latency = 71;
- let NumMicroOps = 85;
- }
- def : InstRW<[ADLPWriteResGroup89], (instrs LAR32rm)>;
- def ADLPWriteResGroup90 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [1, 3, 1, 8, 5, 1, 2, 1];
- let Latency = 65;
- let NumMicroOps = 22;
- }
- def : InstRW<[ADLPWriteResGroup90], (instregex "^LAR(32|64)rr$")>;
- def ADLPWriteResGroup91 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [1, 2, 2, 9, 5, 3, 1];
- let Latency = 71;
- let NumMicroOps = 87;
- }
- def : InstRW<[ADLPWriteResGroup91], (instrs LAR64rm)>;
- def ADLPWriteResGroup92 : SchedWriteRes<[ADLPPort02_03]> {
- let Latency = 7;
- }
- def : InstRW<[ADLPWriteResGroup92], (instregex "^LD_F(32|64|80)m$")>;
- def ADLPWriteResGroup93 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort01]> {
- let Latency = 2;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup93], (instrs LEA16r)>;
- def ADLPWriteResGroup94 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11]> {
- let ResourceCycles = [3, 1];
- let Latency = 6;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup94], (instregex "^LODS(B|W)$",
- "^SCAS(B|L|Q|W)$")>;
- def : InstRW<[ADLPWriteResGroup94], (instrs LEAVE)>;
- def ADLPWriteResGroup95 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11]> {
- let ResourceCycles = [2, 1];
- let Latency = 6;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup95], (instrs LEAVE64)>;
- def ADLPWriteResGroup96 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [1, 2, 4, 3, 2, 1, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 14;
- }
- def : InstRW<[ADLPWriteResGroup96], (instrs LGDT64m)>;
- def ADLPWriteResGroup97 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [1, 1, 5, 3, 2, 1, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 14;
- }
- def : InstRW<[ADLPWriteResGroup97], (instrs LIDT64m)>;
- def ADLPWriteResGroup98 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [5, 3, 2, 1, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 12;
- }
- def : InstRW<[ADLPWriteResGroup98], (instrs LLDT16m)>;
- def ADLPWriteResGroup99 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [1, 4, 3, 1, 1, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 11;
- }
- def : InstRW<[ADLPWriteResGroup99], (instrs LLDT16r)>;
- def ADLPWriteResGroup100 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [1, 1, 2, 8, 3, 1, 2, 7, 2];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 27;
- }
- def : InstRW<[ADLPWriteResGroup100], (instrs LMSW16m)>;
- def ADLPWriteResGroup101 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [5, 7, 1, 2, 5, 2];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 22;
- }
- def : InstRW<[ADLPWriteResGroup101], (instrs LMSW16r)>;
- def ADLPWriteResGroup102 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11]> {
- let ResourceCycles = [2, 1];
- let Latency = 5;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup102], (instregex "^LODS(L|Q)$")>;
- def ADLPWriteResGroup103 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01]> {
- let ResourceCycles = [2, 4, 1];
- let Latency = 3;
- let NumMicroOps = 7;
- }
- def : InstRW<[ADLPWriteResGroup103], (instrs LOOP)>;
- def ADLPWriteResGroup104 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01]> {
- let ResourceCycles = [4, 6, 1];
- let Latency = 3;
- let NumMicroOps = 11;
- }
- def : InstRW<[ADLPWriteResGroup104], (instrs LOOPE)>;
- def ADLPWriteResGroup105 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01]> {
- let ResourceCycles = [4, 6, 1];
- let Latency = 2;
- let NumMicroOps = 11;
- }
- def : InstRW<[ADLPWriteResGroup105], (instrs LOOPNE)>;
- def ADLPWriteResGroup106 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort02_03, ADLPPort06]> {
- let Latency = 7;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup106], (instrs LRET64)>;
- def ADLPWriteResGroup107 : SchedWriteRes<[ADLPPort00, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [1, 5, 3, 3, 1];
- let Latency = 70;
- let NumMicroOps = 13;
- }
- def : InstRW<[ADLPWriteResGroup107], (instregex "^LSL(16|32|64)rm$")>;
- def ADLPWriteResGroup108 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [1, 4, 4, 3, 2, 1];
- let Latency = 63;
- let NumMicroOps = 15;
- }
- def : InstRW<[ADLPWriteResGroup108], (instregex "^LSL(16|32|64)rr$")>;
- def ADLPWriteResGroup109 : SchedWriteRes<[ADLPPort00_01, ADLPPort02_03_11, ADLPPort05]> {
- let Latency = 24;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup109], (instregex "^MMX_CVT(T?)PD2PIrm$")>;
- def ADLPWriteResGroup110 : SchedWriteRes<[ADLPPort00_01, ADLPPort05]> {
- let Latency = 8;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup110], (instregex "^MMX_CVT(T?)PD2PIrr$")>;
- def ADLPWriteResGroup111 : SchedWriteRes<[ADLPPort00_01, ADLPPort05]> {
- let Latency = 6;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup111], (instrs MMX_CVTPI2PDrr)>;
- def ADLPWriteResGroup112 : SchedWriteRes<[ADLPPort00, ADLPPort00_01]> {
- let Latency = 7;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup112], (instrs MMX_CVTPI2PSrr)>;
- def ADLPWriteResGroup113 : SchedWriteRes<[ADLPPort00, ADLPPort02_03_11]> {
- let Latency = 13;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup113], (instregex "^MMX_CVT(T?)PS2PIrm$")>;
- def ADLPWriteResGroup114 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05]> {
- let Latency = 9;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup114], (instregex "^MMX_CVT(T?)PS2PIrr$")>;
- def ADLPWriteResGroup115 : SchedWriteRes<[ADLPPort00, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [2, 1, 1];
- let Latency = 12;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup115], (instregex "^MMX_MASKMOVQ((64)?)$")>;
- def ADLPWriteResGroup116 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 18;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup116], (instrs MMX_MOVD64mr)>;
- def ADLPWriteResGroup117 : SchedWriteRes<[ADLPPort02_03_11]> {
- let Latency = 8;
- }
- def : InstRW<[ADLPWriteResGroup117], (instregex "^MMX_MOV(D|Q)64rm$",
- "^VBROADCAST(F|I)128$",
- "^VBROADCASTS(D|S)Yrm$",
- "^VMOV(D|SH|SL)DUPYrm$",
- "^VPBROADCAST(D|Q)Yrm$")>;
- def : InstRW<[ADLPWriteResGroup117], (instrs MMX_MOVD64to64rm)>;
- def ADLPWriteResGroup118 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort00_05]> {
- let Latency = 3;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup118], (instregex "^MMX_MOV(DQ|FR64)2Qrr$")>;
- def ADLPWriteResGroup119 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05]> {
- let Latency = 3;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup119], (instregex "^MMX_MOVQ2(DQ|FR64)rr$")>;
- def ADLPWriteResGroup120 : SchedWriteRes<[ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [1, 2];
- let Latency = 12;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup120, ReadAfterVecLd], (instregex "^MMX_PACKSS(DW|WB)rm$")>;
- def : InstRW<[ADLPWriteResGroup120, ReadAfterVecLd], (instrs MMX_PACKUSWBrm)>;
- def ADLPWriteResGroup121 : SchedWriteRes<[ADLPPort05]> {
- let ResourceCycles = [2];
- let Latency = 4;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup121], (instregex "^MMX_PACKSS(DW|WB)rr$")>;
- def : InstRW<[ADLPWriteResGroup121], (instrs MMX_PACKUSWBrr)>;
- def : InstRW<[ADLPWriteResGroup121, ReadDefault, ReadInt2Fpu], (instrs MMX_PINSRWrr)>;
- def ADLPWriteResGroup122 : SchedWriteRes<[ADLPPort00_05, ADLPPort02_03_11]> {
- let Latency = 9;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup122, ReadAfterVecLd], (instregex "^MMX_P(ADD|SUB)(B|D|Q|W)rm$")>;
- def ADLPWriteResGroup123 : SchedWriteRes<[ADLPPort00, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [1, 1, 2];
- let Latency = 11;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup123, ReadAfterVecLd], (instregex "^MMX_PH(ADD|SUB)SWrm$")>;
- def ADLPWriteResGroup124 : SchedWriteRes<[ADLPPort00, ADLPPort05]> {
- let ResourceCycles = [1, 2];
- let Latency = 3;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup124], (instregex "^MMX_PH(ADD|SUB)SWrr$")>;
- def ADLPWriteResGroup125 : SchedWriteRes<[ADLPPort02_03_11, ADLPPort05]> {
- let Latency = 9;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup125], (instregex "^VPBROADCAST(B|W)Yrm$")>;
- def : InstRW<[ADLPWriteResGroup125, ReadAfterLd], (instrs MMX_PINSRWrm)>;
- def : InstRW<[ADLPWriteResGroup125, ReadAfterVecYLd], (instrs VPALIGNRYrmi)>;
- def ADLPWriteResGroup126 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11]> {
- let Latency = 5;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup126], (instregex "^MOV16ao(16|32|64)$")>;
- def ADLPWriteResGroup127 : SchedWriteRes<[ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 12;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup127], (instregex "^PUSH(F|G)S(16|32)$")>;
- def : InstRW<[ADLPWriteResGroup127], (instrs MOV16ms,
- MOVBE32mr)>;
- def ADLPWriteResGroup128 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort01]> {
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup128], (instregex "^MOV(16|32|64)rs$",
- "^S(TR|LDT)16r$")>;
- def ADLPWriteResGroup129 : SchedWriteRes<[ADLPPort02_03_11]>;
- def : InstRW<[ADLPWriteResGroup129], (instregex "^MOV32ao(16|32|64)$")>;
- def : InstRW<[ADLPWriteResGroup129], (instrs MOV64ao64)>;
- def ADLPWriteResGroup130 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort04_09, ADLPPort07_08]> {
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup130], (instregex "^MOV(8|32)o(16|32)a$",
- "^MOV(8|32|64)o64a$")>;
- def ADLPWriteResGroup131 : SchedWriteRes<[ADLPPort00_01_05_06_10]> {
- let Latency = 0;
- }
- def : InstRW<[ADLPWriteResGroup131], (instregex "^MOV32rr((_REV)?)$",
- "^MOVZX(32|64)rr8$")>;
- def : InstRW<[ADLPWriteResGroup131], (instrs MOVZX32rr8_NOREX)>;
- def ADLPWriteResGroup132 : SchedWriteRes<[ADLPPort02_03_11]> {
- let Latency = 5;
- }
- def : InstRW<[ADLPWriteResGroup132], (instrs MOV64ao32)>;
- def ADLPWriteResGroup133 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [1, 2, 4, 16, 7, 2, 2, 12, 2];
- let Latency = 217;
- let NumMicroOps = 48;
- }
- def : InstRW<[ADLPWriteResGroup133], (instrs MOV64dr)>;
- def ADLPWriteResGroup134 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 12;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup134], (instrs MOV64o32a)>;
- def ADLPWriteResGroup135 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort05]> {
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup135], (instrs MOV64rc)>;
- def ADLPWriteResGroup136 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort05]> {
- let ResourceCycles = [3, 4, 8, 4, 2, 3];
- let Latency = 181;
- let NumMicroOps = 24;
- }
- def : InstRW<[ADLPWriteResGroup136], (instrs MOV64rd)>;
- def ADLPWriteResGroup137 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11]> {
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup137], (instregex "^MOV8ao(16|32|64)$")>;
- def ADLPWriteResGroup138 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 13;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup138], (instregex "^MOV8m(i|r)$")>;
- def : InstRW<[ADLPWriteResGroup138], (instrs MOV8mr_NOREX)>;
- def ADLPWriteResGroup139 : SchedWriteRes<[ADLPPort00_06, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 12;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup139], (instrs MOVBE16mr)>;
- def ADLPWriteResGroup140 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort02_03_11]> {
- let Latency = 7;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup140], (instrs MOVBE16rm)>;
- def ADLPWriteResGroup141 : SchedWriteRes<[ADLPPort01, ADLPPort02_03_11]> {
- let Latency = 6;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup141], (instrs MOVBE32rm)>;
- def ADLPWriteResGroup142 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 12;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup142], (instrs MOVBE64mr,
- PUSHF16,
- SLDT16m,
- STRm)>;
- def ADLPWriteResGroup143 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort02_03_11]> {
- let Latency = 7;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup143], (instrs MOVBE64rm)>;
- def ADLPWriteResGroup144 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup144], (instregex "^MOVDIR64B(16|32|64)$")>;
- def ADLPWriteResGroup145 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 511;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup145], (instrs MOVDIRI32)>;
- def ADLPWriteResGroup146 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 514;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup146], (instrs MOVDIRI64)>;
- def ADLPWriteResGroup147 : SchedWriteRes<[ADLPPort01_05, ADLPPort02_03_11]> {
- let Latency = 8;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup147, ReadAfterVecXLd], (instregex "^(V?)MOVLP(D|S)rm$",
- "^(V?)SHUFP(D|S)rmi$")>;
- def ADLPWriteResGroup148 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 512;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup148], (instrs MOVNTDQmr)>;
- def ADLPWriteResGroup149 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 518;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup149], (instrs MOVNTImr)>;
- def ADLPWriteResGroup150 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [4, 1, 1, 1];
- let Latency = 8;
- let NumMicroOps = 7;
- }
- def : InstRW<[ADLPWriteResGroup150], (instrs MOVSB)>;
- def ADLPWriteResGroup151 : SchedWriteRes<[ADLPPort00_01_05]>;
- def : InstRW<[ADLPWriteResGroup151], (instregex "^(V?)MOVS(D|S)rr((_REV)?)$",
- "^(V?)P(ADD|SUB)(B|D|Q|W)rr$",
- "^VP(ADD|SUB)(B|D|Q|W)Yrr$")>;
- def : InstRW<[ADLPWriteResGroup151], (instrs VPBLENDDrri)>;
- def ADLPWriteResGroup152 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [4, 1, 1, 1];
- let Latency = 7;
- let NumMicroOps = 7;
- }
- def : InstRW<[ADLPWriteResGroup152], (instregex "^MOVS(L|Q|W)$")>;
- def ADLPWriteResGroup153 : SchedWriteRes<[ADLPPort02_03_11]> {
- let Latency = 6;
- }
- def : InstRW<[ADLPWriteResGroup153], (instregex "^MOVSX(16|32|64)rm(16|32)$",
- "^MOVSX(32|64)rm8$")>;
- def : InstRW<[ADLPWriteResGroup153], (instrs MOVSX32rm8_NOREX)>;
- def ADLPWriteResGroup154 : SchedWriteRes<[ADLPPort01_05_10, ADLPPort02_03_11]> {
- let Latency = 6;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup154], (instrs MOVSX16rm8)>;
- def ADLPWriteResGroup155 : SchedWriteRes<[ADLPPort01_05_10]>;
- def : InstRW<[ADLPWriteResGroup155], (instregex "^MOVSX(16|32|64)rr(8|16|32)$")>;
- def : InstRW<[ADLPWriteResGroup155], (instrs MOVSX32rr8_NOREX)>;
- def ADLPWriteResGroup156 : SchedWriteRes<[ADLPPort00, ADLPPort02_03]> {
- let Latency = 11;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup156], (instregex "^MUL_F(32|64)m$")>;
- def ADLPWriteResGroup157 : SchedWriteRes<[ADLPPort00, ADLPPort02_03, ADLPPort05]> {
- let Latency = 14;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup157], (instregex "^MUL_FI(16|32)m$")>;
- def ADLPWriteResGroup158 : SchedWriteRes<[ADLPPort00]> {
- let Latency = 4;
- }
- def : InstRW<[ADLPWriteResGroup158], (instregex "^MUL_F(P?)rST0$")>;
- def : InstRW<[ADLPWriteResGroup158], (instrs MUL_FST0r)>;
- def ADLPWriteResGroup159 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort05, ADLPPort06]> {
- let ResourceCycles = [7, 1, 2];
- let Latency = 20;
- let NumMicroOps = 10;
- }
- def : InstRW<[ADLPWriteResGroup159], (instrs MWAITrr)>;
- def ADLPWriteResGroup160 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [6, 4, 1, 28, 15, 7, 1, 16, 1];
- let Latency = 35;
- let NumMicroOps = 79;
- }
- def : InstRW<[ADLPWriteResGroup160], (instrs OUT16ir)>;
- def ADLPWriteResGroup161 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [6, 6, 27, 15, 7, 1, 16, 1];
- let Latency = 35;
- let NumMicroOps = 79;
- }
- def : InstRW<[ADLPWriteResGroup161], (instrs OUT16rr)>;
- def ADLPWriteResGroup162 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [6, 4, 1, 30, 15, 9, 1, 18, 1];
- let Latency = 35;
- let NumMicroOps = 85;
- }
- def : InstRW<[ADLPWriteResGroup162], (instrs OUT32ir)>;
- def ADLPWriteResGroup163 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [6, 6, 29, 15, 9, 1, 18, 1];
- let Latency = 35;
- let NumMicroOps = 85;
- }
- def : InstRW<[ADLPWriteResGroup163], (instrs OUT32rr)>;
- def ADLPWriteResGroup164 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [5, 5, 1, 25, 15, 5, 1, 15, 1];
- let Latency = 35;
- let NumMicroOps = 73;
- }
- def : InstRW<[ADLPWriteResGroup164], (instrs OUT8ir)>;
- def ADLPWriteResGroup165 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [5, 5, 26, 15, 5, 1, 15, 1];
- let Latency = 35;
- let NumMicroOps = 73;
- }
- def : InstRW<[ADLPWriteResGroup165], (instrs OUT8rr)>;
- def ADLPWriteResGroup166 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [7, 6, 25, 16, 7, 1, 17, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 80;
- }
- def : InstRW<[ADLPWriteResGroup166], (instrs OUTSB)>;
- def ADLPWriteResGroup167 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [7, 6, 28, 16, 10, 1, 20, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 89;
- }
- def : InstRW<[ADLPWriteResGroup167], (instrs OUTSL)>;
- def ADLPWriteResGroup168 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [6, 1, 5, 27, 16, 8, 1, 18, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 83;
- }
- def : InstRW<[ADLPWriteResGroup168], (instrs OUTSW)>;
- def ADLPWriteResGroup169 : SchedWriteRes<[ADLPPort02_03_11, ADLPPort05]> {
- let Latency = 10;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup169, ReadAfterVecXLd], (instregex "^(V?)PACK(S|U)S(DW|WB)rm$",
- "^(V?)PCMPGTQrm$")>;
- def ADLPWriteResGroup170 : SchedWriteRes<[ADLPPort05]> {
- let Latency = 3;
- }
- def : InstRW<[ADLPWriteResGroup170], (instregex "^(V?)PACK(S|U)S(DW|WB)rr$",
- "^(V?)PCMPGTQrr$",
- "^VPACK(S|U)S(DW|WB)Yrr$")>;
- def : InstRW<[ADLPWriteResGroup170], (instrs VPCMPGTQYrr)>;
- def ADLPWriteResGroup171 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort02_03_11]> {
- let Latency = 8;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup171, ReadAfterVecXLd], (instregex "^(V?)P(ADD|SUB)(B|D|Q|W)rm$")>;
- def : InstRW<[ADLPWriteResGroup171, ReadAfterVecXLd], (instrs VPBLENDDrmi)>;
- def ADLPWriteResGroup172 : SchedWriteRes<[ADLPPort02_03_11, ADLPPort05]> {
- let Latency = 8;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup172], (instregex "^VPBROADCAST(B|W)rm$")>;
- def : InstRW<[ADLPWriteResGroup172, ReadAfterVecXLd], (instregex "^(V?)PALIGNRrmi$")>;
- def ADLPWriteResGroup173 : SchedWriteRes<[ADLPPort05]>;
- def : InstRW<[ADLPWriteResGroup173], (instregex "^(V?)PALIGNRrri$",
- "^VPBROADCAST(B|D|Q|W)rr$")>;
- def : InstRW<[ADLPWriteResGroup173], (instrs VPALIGNRYrri)>;
- def ADLPWriteResGroup174 : SchedWriteRes<[ADLPPort00_06, ADLPPort05]> {
- let Latency = 4;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup174], (instrs PAUSE)>;
- def ADLPWriteResGroup175 : SchedWriteRes<[ADLPPort01, ADLPPort02_03_11]> {
- let Latency = 8;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup175, ReadAfterLd], (instregex "^P(DEP|EXT)(32|64)rm$")>;
- def ADLPWriteResGroup176 : SchedWriteRes<[ADLPPort01_05, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 12;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup176], (instregex "^(V?)PEXTR(D|Q)mr$")>;
- def ADLPWriteResGroup177 : SchedWriteRes<[ADLPPort00_01, ADLPPort01_05, ADLPPort02_03_11]> {
- let ResourceCycles = [1, 2, 1];
- let Latency = 9;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup177, ReadAfterVecXLd], (instregex "^(V?)PH(ADD|SUB)SWrm$")>;
- def ADLPWriteResGroup178 : SchedWriteRes<[ADLPPort00_01, ADLPPort01_05]> {
- let ResourceCycles = [1, 2];
- let Latency = 2;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup178], (instregex "^(V?)PH(ADD|SUB)SWrr$",
- "^VPH(ADD|SUB)SWYrr$")>;
- def ADLPWriteResGroup179 : SchedWriteRes<[ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 12;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup179], (instregex "^POP(16|32|64)rmm$",
- "^PUSH(16|32)rmm$")>;
- def ADLPWriteResGroup180 : SchedWriteRes<[ADLPPort02_03]> {
- let Latency = 5;
- }
- def : InstRW<[ADLPWriteResGroup180], (instregex "^POPA(16|32)$",
- "^PREFETCHIT(0|1)$")>;
- def : InstRW<[ADLPWriteResGroup180], (instrs POPF32)>;
- def ADLPWriteResGroup181 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11]> {
- let ResourceCycles = [6, 2, 1, 1];
- let Latency = 5;
- let NumMicroOps = 10;
- }
- def : InstRW<[ADLPWriteResGroup181], (instrs POPF16)>;
- def ADLPWriteResGroup182 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort02_03_11]> {
- let ResourceCycles = [2, 1, 1];
- let Latency = 5;
- let NumMicroOps = 7;
- }
- def : InstRW<[ADLPWriteResGroup182], (instrs POPF64)>;
- def ADLPWriteResGroup183 : SchedWriteRes<[ADLPPort02_03_11]> {
- let Latency = 0;
- }
- def : InstRW<[ADLPWriteResGroup183], (instregex "^PREFETCHT(0|1|2)$")>;
- def : InstRW<[ADLPWriteResGroup183], (instrs PREFETCHNTA)>;
- def ADLPWriteResGroup184 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11, ADLPPort06]> {
- let ResourceCycles = [1, 1, 2];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup184], (instregex "^PTWRITE((64)?)m$")>;
- def ADLPWriteResGroup185 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort06]> {
- let ResourceCycles = [1, 2];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup185], (instrs PTWRITE64r)>;
- def ADLPWriteResGroup186 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort06]> {
- let ResourceCycles = [2, 2];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup186], (instrs PTWRITEr)>;
- def ADLPWriteResGroup187 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup187], (instregex "^PUSH64r((mr)?)$")>;
- def ADLPWriteResGroup188 : SchedWriteRes<[ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup188], (instrs PUSH64rmm)>;
- def ADLPWriteResGroup189 : SchedWriteRes<[ADLPPort02_03_07, ADLPPort04]>;
- def : InstRW<[ADLPWriteResGroup189], (instregex "^PUSHA(16|32)$",
- "^ST_F(32|64)m$")>;
- def : InstRW<[ADLPWriteResGroup189], (instrs PUSHF32)>;
- def ADLPWriteResGroup190 : SchedWriteRes<[ADLPPort00_06, ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 4;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup190], (instrs PUSHF64)>;
- def ADLPWriteResGroup191 : SchedWriteRes<[ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup191], (instregex "^PUSH(F|G)S64$")>;
- def ADLPWriteResGroup192 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01]> {
- let ResourceCycles = [2, 3, 2];
- let Latency = 8;
- let NumMicroOps = 7;
- }
- def : InstRW<[ADLPWriteResGroup192], (instregex "^RC(L|R)(16|32|64)rCL$")>;
- def ADLPWriteResGroup193 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06]> {
- let ResourceCycles = [1, 2];
- let Latency = 13;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup193, WriteRMW], (instregex "^RC(L|R)8m(1|i)$")>;
- def ADLPWriteResGroup194 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01]> {
- let ResourceCycles = [1, 5, 2];
- let Latency = 20;
- let NumMicroOps = 8;
- }
- def : InstRW<[ADLPWriteResGroup194, WriteRMW], (instrs RCL8mCL)>;
- def ADLPWriteResGroup195 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01]> {
- let ResourceCycles = [2, 5, 2];
- let Latency = 7;
- let NumMicroOps = 9;
- }
- def : InstRW<[ADLPWriteResGroup195], (instrs RCL8rCL)>;
- def ADLPWriteResGroup196 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01]> {
- let ResourceCycles = [2, 4, 3];
- let Latency = 20;
- let NumMicroOps = 9;
- }
- def : InstRW<[ADLPWriteResGroup196, WriteRMW], (instrs RCR8mCL)>;
- def ADLPWriteResGroup197 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01]> {
- let ResourceCycles = [3, 4, 3];
- let Latency = 9;
- let NumMicroOps = 10;
- }
- def : InstRW<[ADLPWriteResGroup197], (instrs RCR8rCL)>;
- def ADLPWriteResGroup198 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_05, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort01_05_10, ADLPPort05]> {
- let ResourceCycles = [1, 6, 1, 10, 20, 8, 5, 1, 2];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 54;
- }
- def : InstRW<[ADLPWriteResGroup198], (instrs RDMSR)>;
- def ADLPWriteResGroup199 : SchedWriteRes<[ADLPPort01]> {
- let Latency = AlderlakePModel.MaxLatency;
- }
- def : InstRW<[ADLPWriteResGroup199], (instrs RDPID64)>;
- def ADLPWriteResGroup200 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01]> {
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup200], (instrs RDPKRUr)>;
- def ADLPWriteResGroup201 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort05]> {
- let ResourceCycles = [9, 6, 2, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 18;
- }
- def : InstRW<[ADLPWriteResGroup201], (instrs RDPMC)>;
- def ADLPWriteResGroup202 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [2, 3, 2, 5, 7, 3, 1, 2];
- let Latency = 1386;
- let NumMicroOps = 25;
- }
- def : InstRW<[ADLPWriteResGroup202], (instrs RDRAND16r)>;
- def ADLPWriteResGroup203 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06_10, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [2, 3, 2, 5, 7, 3, 1, 2];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 25;
- }
- def : InstRW<[ADLPWriteResGroup203], (instregex "^RDRAND(32|64)r$")>;
- def ADLPWriteResGroup204 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [2, 3, 3, 5, 7, 1, 4];
- let Latency = 1381;
- let NumMicroOps = 25;
- }
- def : InstRW<[ADLPWriteResGroup204], (instrs RDSEED16r)>;
- def ADLPWriteResGroup205 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [2, 3, 3, 5, 7, 1, 4];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 25;
- }
- def : InstRW<[ADLPWriteResGroup205], (instregex "^RDSEED(32|64)r$")>;
- def ADLPWriteResGroup206 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort05]> {
- let ResourceCycles = [5, 6, 3, 1];
- let Latency = 18;
- let NumMicroOps = 15;
- }
- def : InstRW<[ADLPWriteResGroup206], (instrs RDTSC)>;
- def ADLPWriteResGroup207 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort05]> {
- let ResourceCycles = [2, 2, 1, 2, 7, 4, 3];
- let Latency = 42;
- let NumMicroOps = 21;
- }
- def : InstRW<[ADLPWriteResGroup207], (instrs RDTSCP)>;
- def ADLPWriteResGroup208 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_11]> {
- let Latency = 7;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup208], (instrs RET64)>;
- def ADLPWriteResGroup209 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_11]> {
- let ResourceCycles = [2, 1];
- let Latency = 6;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup209], (instregex "^RETI(16|32|64)$")>;
- def ADLPWriteResGroup210 : SchedWriteRes<[]>;
- def : InstRW<[ADLPWriteResGroup210], (instrs REX64_PREFIX)>;
- def ADLPWriteResGroup211 : SchedWriteRes<[ADLPPort00_06]> {
- let ResourceCycles = [2];
- let Latency = 12;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup211, WriteRMW], (instregex "^RO(L|R)(16|32|64)m(1|i|CL)$")>;
- def ADLPWriteResGroup212 : SchedWriteRes<[ADLPPort00_06]> {
- let ResourceCycles = [2];
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup212], (instregex "^RO(L|R)(8|16|32|64)r(1|i)$")>;
- def ADLPWriteResGroup213 : SchedWriteRes<[ADLPPort00_06]> {
- let ResourceCycles = [2];
- let Latency = 13;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup213, WriteRMW], (instregex "^RO(L|R)8m(1|i)$",
- "^(RO|SH)L8mCL$",
- "^(RO|SA|SH)R8mCL$")>;
- def ADLPWriteResGroup214 : SchedWriteRes<[ADLPPort00_06]> {
- let ResourceCycles = [2];
- let Latency = 4;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup214], (instrs SAHF)>;
- def ADLPWriteResGroup215 : SchedWriteRes<[ADLPPort00_06]> {
- let Latency = 13;
- }
- def : InstRW<[ADLPWriteResGroup215, WriteRMW], (instregex "^S(A|H)R8m(1|i)$",
- "^SHL8m(1|i)$")>;
- def ADLPWriteResGroup216 : SchedWriteRes<[ADLPPort00_06, ADLPPort02_03_11]> {
- let Latency = 8;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup216, ReadAfterLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^S(A|H)RX(32|64)rm$",
- "^SHLX(32|64)rm$")>;
- def ADLPWriteResGroup217 : SchedWriteRes<[ADLPPort00_06]> {
- let Latency = 3;
- }
- def : InstRW<[ADLPWriteResGroup217], (instregex "^S(A|H)RX(32|64)rr$",
- "^SHLX(32|64)rr$")>;
- def ADLPWriteResGroup218 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [2, 2, 1, 1, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 7;
- }
- def : InstRW<[ADLPWriteResGroup218], (instrs SERIALIZE)>;
- def ADLPWriteResGroup219 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 2;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup219], (instrs SFENCE)>;
- def ADLPWriteResGroup220 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort01, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [1, 2, 2, 2];
- let Latency = 21;
- let NumMicroOps = 7;
- }
- def : InstRW<[ADLPWriteResGroup220], (instregex "^S(G|I)DT64m$")>;
- def ADLPWriteResGroup221 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort02_03_11, ADLPPort05]> {
- let Latency = 9;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup221, ReadAfterVecXLd], (instrs SHA1MSG1rm)>;
- def ADLPWriteResGroup222 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort05]> {
- let Latency = 2;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup222], (instrs SHA1MSG1rr)>;
- def ADLPWriteResGroup223 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01_05, ADLPPort02_03_11]> {
- let ResourceCycles = [2, 2, 1, 2, 1];
- let Latency = 13;
- let NumMicroOps = 8;
- }
- def : InstRW<[ADLPWriteResGroup223, ReadAfterVecXLd], (instrs SHA1MSG2rm)>;
- def ADLPWriteResGroup224 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_06, ADLPPort01_05]> {
- let ResourceCycles = [2, 2, 1, 2];
- let Latency = 6;
- let NumMicroOps = 7;
- }
- def : InstRW<[ADLPWriteResGroup224], (instrs SHA1MSG2rr)>;
- def ADLPWriteResGroup225 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort01_05, ADLPPort02_03_11]> {
- let Latency = 8;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup225, ReadAfterVecXLd], (instrs SHA1NEXTErm)>;
- def ADLPWriteResGroup226 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort01_05]> {
- let Latency = 3;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup226], (instrs SHA1NEXTErr)>;
- def ADLPWriteResGroup227 : SchedWriteRes<[ADLPPort02_03_11, ADLPPort05]> {
- let Latency = 13;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup227, ReadAfterVecXLd], (instrs SHA1RNDS4rmi,
- SHA256RNDS2rm)>;
- def ADLPWriteResGroup228 : SchedWriteRes<[ADLPPort05]> {
- let Latency = 6;
- }
- def : InstRW<[ADLPWriteResGroup228], (instrs SHA1RNDS4rri,
- SHA256RNDS2rr)>;
- def ADLPWriteResGroup229 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_06, ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [3, 2, 1, 1, 1];
- let Latency = 12;
- let NumMicroOps = 8;
- }
- def : InstRW<[ADLPWriteResGroup229, ReadAfterVecXLd], (instrs SHA256MSG1rm)>;
- def ADLPWriteResGroup230 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_01_05, ADLPPort00_06, ADLPPort05]> {
- let ResourceCycles = [3, 2, 1, 1];
- let Latency = 5;
- let NumMicroOps = 7;
- }
- def : InstRW<[ADLPWriteResGroup230], (instrs SHA256MSG1rr)>;
- def ADLPWriteResGroup231 : SchedWriteRes<[ADLPPort02_03_11, ADLPPort05]> {
- let ResourceCycles = [1, 2];
- let Latency = 13;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup231, ReadAfterVecXLd], (instrs SHA256MSG2rm)>;
- def ADLPWriteResGroup232 : SchedWriteRes<[ADLPPort05]> {
- let ResourceCycles = [2];
- let Latency = 6;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup232], (instrs SHA256MSG2rr)>;
- def ADLPWriteResGroup233 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 13;
- let NumMicroOps = 5;
- }
- def : InstRW<[ADLPWriteResGroup233], (instrs SHRD16mri8)>;
- def ADLPWriteResGroup234 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort01]> {
- let Latency = 6;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup234], (instregex "^SLDT(32|64)r$")>;
- def ADLPWriteResGroup235 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort05]> {
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup235], (instrs SMSW16r)>;
- def ADLPWriteResGroup236 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort05]> {
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup236], (instregex "^SMSW(32|64)r$")>;
- def ADLPWriteResGroup237 : SchedWriteRes<[ADLPPort00, ADLPPort02_03_11]> {
- let Latency = 24;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup237, ReadAfterVecLd], (instregex "^(V?)SQRTSDm_Int$")>;
- def ADLPWriteResGroup238 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06]> {
- let Latency = 6;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup238], (instrs STD)>;
- def ADLPWriteResGroup239 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01]> {
- let ResourceCycles = [1, 4, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 6;
- }
- def : InstRW<[ADLPWriteResGroup239], (instrs STI)>;
- def ADLPWriteResGroup240 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [2, 1, 1];
- let Latency = 8;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup240], (instrs STOSB)>;
- def ADLPWriteResGroup241 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort04_09, ADLPPort07_08]> {
- let ResourceCycles = [2, 1, 1];
- let Latency = 7;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup241], (instregex "^STOS(L|Q|W)$")>;
- def ADLPWriteResGroup242 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort01]> {
- let Latency = 5;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup242], (instregex "^STR(32|64)r$")>;
- def ADLPWriteResGroup243 : SchedWriteRes<[ADLPPort00]> {
- let Latency = 2;
- }
- def : InstRW<[ADLPWriteResGroup243], (instregex "^(TST|XAM)_F$")>;
- def : InstRW<[ADLPWriteResGroup243], (instrs UCOM_FPPr)>;
- def ADLPWriteResGroup244 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort02_03_11]> {
- let ResourceCycles = [3, 1];
- let Latency = 9;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup244, ReadAfterVecXLd, ReadAfterVecXLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instregex "^VBLENDVP(D|S)rm$")>;
- def : InstRW<[ADLPWriteResGroup244, ReadAfterVecXLd, ReadAfterVecXLd, ReadDefault, ReadDefault, ReadDefault, ReadDefault, ReadDefault], (instrs VPBLENDVBrm)>;
- def ADLPWriteResGroup245 : SchedWriteRes<[ADLPPort00_01_05]> {
- let ResourceCycles = [3];
- let Latency = 3;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup245], (instregex "^VBLENDVP(D|S)rr$")>;
- def : InstRW<[ADLPWriteResGroup245], (instrs VPBLENDVBrr)>;
- def ADLPWriteResGroup246 : SchedWriteRes<[ADLPPort00, ADLPPort01, ADLPPort02_03_11]> {
- let ResourceCycles = [6, 7, 18];
- let Latency = 81;
- let NumMicroOps = 31;
- }
- def : InstRW<[ADLPWriteResGroup246], (instrs VERRm)>;
- def ADLPWriteResGroup247 : SchedWriteRes<[ADLPPort00, ADLPPort01, ADLPPort02_03_11]> {
- let ResourceCycles = [6, 7, 17];
- let Latency = 74;
- let NumMicroOps = 30;
- }
- def : InstRW<[ADLPWriteResGroup247], (instrs VERRr)>;
- def ADLPWriteResGroup248 : SchedWriteRes<[ADLPPort00, ADLPPort01, ADLPPort02_03_11]> {
- let ResourceCycles = [5, 8, 21];
- let Latency = 81;
- let NumMicroOps = 34;
- }
- def : InstRW<[ADLPWriteResGroup248], (instrs VERWm)>;
- def ADLPWriteResGroup249 : SchedWriteRes<[ADLPPort00, ADLPPort01, ADLPPort02_03_11]> {
- let ResourceCycles = [5, 8, 20];
- let Latency = 74;
- let NumMicroOps = 33;
- }
- def : InstRW<[ADLPWriteResGroup249], (instrs VERWr)>;
- def ADLPWriteResGroup250 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort01_05, ADLPPort02_03_11]> {
- let ResourceCycles = [1, 1, 2, 4];
- let Latency = 29;
- let NumMicroOps = 8;
- }
- def : InstRW<[ADLPWriteResGroup250, WriteVecMaskedGatherWriteback], (instregex "^VGATHER(D|Q)PDYrm$",
- "^VPGATHER(D|Q)QYrm$")>;
- def : InstRW<[ADLPWriteResGroup250, WriteVecMaskedGatherWriteback], (instrs VGATHERQPSYrm,
- VPGATHERQDYrm)>;
- def ADLPWriteResGroup251 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort01_05, ADLPPort02_03_11]> {
- let ResourceCycles = [1, 1, 1, 2];
- let Latency = 20;
- let NumMicroOps = 5;
- }
- def : InstRW<[ADLPWriteResGroup251, WriteVecMaskedGatherWriteback], (instregex "^VGATHER(D|Q)PDrm$",
- "^VPGATHER(D|Q)Qrm$")>;
- def : InstRW<[ADLPWriteResGroup251, WriteVecMaskedGatherWriteback], (instrs VGATHERQPSrm,
- VPGATHERQDrm)>;
- def ADLPWriteResGroup252 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort01_05, ADLPPort02_03_11]> {
- let ResourceCycles = [1, 1, 2, 8];
- let Latency = 30;
- let NumMicroOps = 12;
- }
- def : InstRW<[ADLPWriteResGroup252, WriteVecMaskedGatherWriteback], (instrs VGATHERDPSYrm,
- VPGATHERDDYrm)>;
- def ADLPWriteResGroup253 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05, ADLPPort01_05, ADLPPort02_03_11]> {
- let ResourceCycles = [1, 1, 2, 4];
- let Latency = 28;
- let NumMicroOps = 8;
- }
- def : InstRW<[ADLPWriteResGroup253, WriteVecMaskedGatherWriteback], (instrs VGATHERDPSrm,
- VPGATHERDDrm)>;
- def ADLPWriteResGroup254 : SchedWriteRes<[ADLPPort01_05, ADLPPort05]> {
- let ResourceCycles = [1, 2];
- let Latency = 5;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup254], (instregex "^VH(ADD|SUB)P(D|S)rr$")>;
- def ADLPWriteResGroup255 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort02_03_11]> {
- let Latency = 9;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup255, ReadAfterVecYLd], (instregex "^VINSERT(F|I)128rm$",
- "^VP(ADD|SUB)(B|D|Q|W)Yrm$")>;
- def ADLPWriteResGroup256 : SchedWriteRes<[ADLPPort00, ADLPPort00_06, ADLPPort02_03_11]> {
- let Latency = 7;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup256], (instrs VLDMXCSR)>;
- def ADLPWriteResGroup257 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03, ADLPPort02_03_07, ADLPPort04, ADLPPort05, ADLPPort06]> {
- let ResourceCycles = [8, 1, 1, 1, 1, 1, 2, 3];
- let Latency = 40;
- let NumMicroOps = 18;
- }
- def : InstRW<[ADLPWriteResGroup257], (instrs VMCLEARm)>;
- def ADLPWriteResGroup258 : SchedWriteRes<[ADLPPort00]> {
- let Latency = 5;
- }
- def : InstRW<[ADLPWriteResGroup258], (instregex "^VMOVMSKP(D|S)Yrr$")>;
- def ADLPWriteResGroup259 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 521;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup259], (instrs VMOVNTDQmr)>;
- def ADLPWriteResGroup260 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 473;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup260], (instrs VMOVNTPDmr)>;
- def ADLPWriteResGroup261 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 494;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup261], (instrs VMOVNTPSYmr)>;
- def ADLPWriteResGroup262 : SchedWriteRes<[ADLPPort04_09, ADLPPort07_08]> {
- let Latency = 470;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup262], (instrs VMOVNTPSmr)>;
- def ADLPWriteResGroup263 : SchedWriteRes<[ADLPPort02_03_11, ADLPPort05]> {
- let Latency = 11;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup263, ReadAfterVecYLd], (instregex "^VPACK(S|U)S(DW|WB)Yrm$")>;
- def : InstRW<[ADLPWriteResGroup263, ReadAfterVecYLd], (instrs VPCMPGTQYrm)>;
- def : InstRW<[ADLPWriteResGroup263, ReadAfterVecXLd], (instrs VPCLMULQDQYrm)>;
- def ADLPWriteResGroup264 : SchedWriteRes<[ADLPPort01_05, ADLPPort02_03_11]> {
- let Latency = 9;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup264, ReadAfterVecYLd], (instregex "^VSHUFP(D|S)Yrmi$")>;
- def : InstRW<[ADLPWriteResGroup264, ReadAfterVecYLd], (instrs VPBLENDWYrmi)>;
- def ADLPWriteResGroup265 : SchedWriteRes<[ADLPPort00_01, ADLPPort02_03_11]> {
- let Latency = 13;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup265], (instregex "^VPDP(BU|WS)SD((SY)?)rm$",
- "^VPDP(BU|WS)SD(S|Y)rm$")>;
- def ADLPWriteResGroup266 : SchedWriteRes<[ADLPPort00_01, ADLPPort01_05, ADLPPort02_03_11]> {
- let ResourceCycles = [1, 2, 1];
- let Latency = 10;
- let NumMicroOps = 4;
- }
- def : InstRW<[ADLPWriteResGroup266, ReadAfterVecYLd], (instregex "^VPH(ADD|SUB)SWYrm$")>;
- def ADLPWriteResGroup267 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10]> {
- let ResourceCycles = [1, 2, 3, 3, 1];
- let Latency = 16;
- let NumMicroOps = 10;
- }
- def : InstRW<[ADLPWriteResGroup267], (instrs VZEROALL)>;
- def ADLPWriteResGroup268 : SchedWriteRes<[ADLPPort00_01_05_06]> {
- let ResourceCycles = [2];
- let Latency = 2;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup268], (instrs WAIT)>;
- def ADLPWriteResGroup269 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [8, 6, 19, 63, 21, 15, 1, 10, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 144;
- }
- def : InstRW<[ADLPWriteResGroup269], (instrs WRMSR)>;
- def ADLPWriteResGroup270 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06, ADLPPort01, ADLPPort05]> {
- let ResourceCycles = [2, 1, 4, 1];
- let Latency = AlderlakePModel.MaxLatency;
- let NumMicroOps = 8;
- }
- def : InstRW<[ADLPWriteResGroup270], (instrs WRPKRUr)>;
- def ADLPWriteResGroup271 : SchedWriteRes<[ADLPPort00_01_05_06_10]> {
- let ResourceCycles = [2];
- let Latency = 12;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup271, WriteRMW], (instregex "^XADD(16|32|64)rm$")>;
- def ADLPWriteResGroup272 : SchedWriteRes<[ADLPPort00_01_05_06_10]> {
- let ResourceCycles = [2];
- let Latency = 13;
- let NumMicroOps = 2;
- }
- def : InstRW<[ADLPWriteResGroup272, WriteRMW], (instrs XADD8rm)>;
- def ADLPWriteResGroup273 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06]> {
- let ResourceCycles = [4, 1];
- let Latency = 39;
- let NumMicroOps = 5;
- }
- def : InstRW<[ADLPWriteResGroup273, WriteRMW], (instregex "^XCHG(16|32)rm$")>;
- def ADLPWriteResGroup274 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06]> {
- let ResourceCycles = [5, 1];
- let Latency = 39;
- let NumMicroOps = 6;
- }
- def : InstRW<[ADLPWriteResGroup274, WriteRMW], (instrs XCHG64rm)>;
- def ADLPWriteResGroup275 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_06]> {
- let ResourceCycles = [4, 1];
- let Latency = 40;
- let NumMicroOps = 5;
- }
- def : InstRW<[ADLPWriteResGroup275, WriteRMW], (instrs XCHG8rm)>;
- def ADLPWriteResGroup276 : SchedWriteRes<[ADLPPort00, ADLPPort00_01_05_06, ADLPPort00_05, ADLPPort01, ADLPPort05, ADLPPort06]> {
- let ResourceCycles = [2, 4, 2, 1, 2, 4];
- let Latency = 17;
- let NumMicroOps = 15;
- }
- def : InstRW<[ADLPWriteResGroup276], (instrs XCH_F)>;
- def ADLPWriteResGroup277 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01]> {
- let ResourceCycles = [7, 3, 8, 5];
- let Latency = 4;
- let NumMicroOps = 23;
- }
- def : InstRW<[ADLPWriteResGroup277], (instrs XGETBV)>;
- def ADLPWriteResGroup278 : SchedWriteRes<[ADLPPort00_01_05_06_10, ADLPPort02_03_11]> {
- let ResourceCycles = [2, 1];
- let Latency = 7;
- let NumMicroOps = 3;
- }
- def : InstRW<[ADLPWriteResGroup278], (instrs XLAT)>;
- def ADLPWriteResGroup279 : SchedWriteRes<[ADLPPort00_01_05_06, ADLPPort01, ADLPPort02_03, ADLPPort06]> {
- let ResourceCycles = [21, 1, 1, 8];
- let Latency = 37;
- let NumMicroOps = 31;
- }
- def : InstRW<[ADLPWriteResGroup279], (instregex "^XRSTOR((S|64)?)$")>;
- def : InstRW<[ADLPWriteResGroup279], (instrs XRSTORS64)>;
- def ADLPWriteResGroup280 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [14, 25, 44, 21, 21, 4, 1, 9, 1];
- let Latency = 42;
- let NumMicroOps = 140;
- }
- def : InstRW<[ADLPWriteResGroup280], (instrs XSAVE)>;
- def ADLPWriteResGroup281 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [14, 25, 44, 21, 21, 4, 1, 9, 1];
- let Latency = 41;
- let NumMicroOps = 140;
- }
- def : InstRW<[ADLPWriteResGroup281], (instrs XSAVE64)>;
- def ADLPWriteResGroup282 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [1, 19, 36, 52, 23, 4, 2, 12, 2];
- let Latency = 42;
- let NumMicroOps = 151;
- }
- def : InstRW<[ADLPWriteResGroup282], (instrs XSAVEC)>;
- def ADLPWriteResGroup283 : SchedWriteRes<[ADLPPort00, ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [1, 19, 36, 53, 23, 4, 2, 12, 2];
- let Latency = 42;
- let NumMicroOps = 152;
- }
- def : InstRW<[ADLPWriteResGroup283], (instrs XSAVEC64)>;
- def ADLPWriteResGroup284 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [25, 35, 52, 27, 4, 1, 10, 1];
- let Latency = 46;
- let NumMicroOps = 155;
- }
- def : InstRW<[ADLPWriteResGroup284], (instrs XSAVEOPT)>;
- def ADLPWriteResGroup285 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [25, 35, 53, 27, 4, 1, 10, 1];
- let Latency = 46;
- let NumMicroOps = 156;
- }
- def : InstRW<[ADLPWriteResGroup285], (instrs XSAVEOPT64)>;
- def ADLPWriteResGroup286 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [23, 32, 53, 29, 30, 4, 2, 9, 2];
- let Latency = 42;
- let NumMicroOps = 184;
- }
- def : InstRW<[ADLPWriteResGroup286], (instrs XSAVES)>;
- def ADLPWriteResGroup287 : SchedWriteRes<[ADLPPort00_01, ADLPPort00_05, ADLPPort00_06, ADLPPort01, ADLPPort01_05, ADLPPort02_03_11, ADLPPort04_09, ADLPPort05, ADLPPort07_08]> {
- let ResourceCycles = [23, 33, 53, 29, 32, 4, 2, 8, 2];
- let Latency = 42;
- let NumMicroOps = 186;
- }
- def : InstRW<[ADLPWriteResGroup287], (instrs XSAVES64)>;
- def ADLPWriteResGroup288 : SchedWriteRes<[ADLPPort00_01_05, ADLPPort00_01_05_06_10, ADLPPort00_05_06, ADLPPort00_06, ADLPPort01, ADLPPort01_05_10, ADLPPort05]> {
- let ResourceCycles = [4, 23, 2, 14, 8, 1, 2];
- let Latency = 5;
- let NumMicroOps = 54;
- }
- def : InstRW<[ADLPWriteResGroup288], (instrs XSETBV)>;
- }
|