AArch64SchedA64FX.td 140 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896
  1. //=- AArch64SchedA64FX.td - Fujitsu A64FX Scheduling Defs -*- tablegen -*-=//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file defines the scheduling model for the Fujitsu A64FX processors.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. def A64FXModel : SchedMachineModel {
  13. let IssueWidth = 6; // 6 micro-ops dispatched at a time.
  14. let MicroOpBufferSize = 180; // 180 entries in micro-op re-order buffer.
  15. let LoadLatency = 5; // Optimistic load latency.
  16. let MispredictPenalty = 12; // Extra cycles for mispredicted branch.
  17. // Determined via a mix of micro-arch details and experimentation.
  18. let LoopMicroOpBufferSize = 128;
  19. let PostRAScheduler = 1; // Using PostRA sched.
  20. let CompleteModel = 1;
  21. list<Predicate> UnsupportedFeatures =
  22. [HasSVE2, HasSVE2AES, HasSVE2SM4, HasSVE2SHA3, HasSVE2BitPerm, HasPAuth,
  23. HasSVE2orStreamingSVE];
  24. let FullInstRWOverlapCheck = 0;
  25. }
  26. let SchedModel = A64FXModel in {
  27. // Define the issue ports.
  28. // A64FXIP*
  29. // Port 0
  30. def A64FXIPFLA : ProcResource<1>;
  31. // Port 1
  32. def A64FXIPPR : ProcResource<1>;
  33. // Port 2
  34. def A64FXIPEXA : ProcResource<1>;
  35. // Port 3
  36. def A64FXIPFLB : ProcResource<1>;
  37. // Port 4
  38. def A64FXIPEXB : ProcResource<1>;
  39. // Port 5
  40. def A64FXIPEAGA : ProcResource<1>;
  41. // Port 6
  42. def A64FXIPEAGB : ProcResource<1>;
  43. // Port 7
  44. def A64FXIPBR : ProcResource<1>;
  45. // Define groups for the functional units on each issue port. Each group
  46. // created will be used by a WriteRes later on.
  47. def A64FXGI7 : ProcResGroup<[A64FXIPBR]>;
  48. def A64FXGI0 : ProcResGroup<[A64FXIPFLA]>;
  49. def A64FXGI1 : ProcResGroup<[A64FXIPPR]>;
  50. def A64FXGI2 : ProcResGroup<[A64FXIPEXA]>;
  51. def A64FXGI3 : ProcResGroup<[A64FXIPFLB]>;
  52. def A64FXGI4 : ProcResGroup<[A64FXIPEXB]>;
  53. def A64FXGI5 : ProcResGroup<[A64FXIPEAGA]>;
  54. def A64FXGI6 : ProcResGroup<[A64FXIPEAGB]>;
  55. def A64FXGI03 : ProcResGroup<[A64FXIPFLA, A64FXIPFLB]>;
  56. def A64FXGI01 : ProcResGroup<[A64FXIPFLA, A64FXIPPR]>;
  57. def A64FXGI02 : ProcResGroup<[A64FXIPFLA, A64FXIPEXA]>;
  58. def A64FXGI12 : ProcResGroup<[A64FXIPEXA, A64FXIPPR]>;
  59. def A64FXGI15 : ProcResGroup<[A64FXIPEAGA, A64FXIPPR]>;
  60. def A64FXGI05 : ProcResGroup<[A64FXIPFLA, A64FXIPEAGA]>;
  61. def A64FXGI24 : ProcResGroup<[A64FXIPEXA, A64FXIPEXB]>;
  62. def A64FXGI124 : ProcResGroup<[A64FXIPEXA, A64FXIPEXB, A64FXIPPR]>;
  63. def A64FXGI056 : ProcResGroup<[A64FXIPFLA, A64FXIPEAGA, A64FXIPEAGB]>;
  64. def A64FXGI0256 : ProcResGroup<[A64FXIPFLA, A64FXIPEXA, A64FXIPEAGA, A64FXIPEAGB]>;
  65. def A64FXGI56 : ProcResGroup<[A64FXIPEAGA, A64FXIPEAGB]>;
  66. def A64FXGI2456 : ProcResGroup<[A64FXIPEXA, A64FXIPEXB, A64FXIPEAGA, A64FXIPEAGB]>;
  67. def A64FXAny : ProcResGroup<[A64FXIPFLA, A64FXIPPR, A64FXIPEXA, A64FXIPFLB,
  68. A64FXIPEXB, A64FXIPEAGA, A64FXIPEAGB, A64FXIPBR]> {
  69. let BufferSize = 60;
  70. }
  71. def A64FXWrite_6Cyc : SchedWriteRes<[]> {
  72. let Latency = 6;
  73. }
  74. def A64FXWrite_1Cyc_GI7 : SchedWriteRes<[A64FXGI7]> {
  75. let Latency = 1;
  76. }
  77. def A64FXWrite_2Cyc_GI0 : SchedWriteRes<[A64FXGI0]> {
  78. let Latency = 2;
  79. }
  80. def A64FXWrite_4Cyc_GI0 : SchedWriteRes<[A64FXGI0]> {
  81. let Latency = 4;
  82. }
  83. def A64FXWrite_5Cyc_GI0 : SchedWriteRes<[A64FXGI0]> {
  84. let Latency = 5;
  85. }
  86. def A64FXWrite_6Cyc_GI0 : SchedWriteRes<[A64FXGI0]> {
  87. let Latency = 6;
  88. }
  89. def A64FXWrite_8Cyc_GI0 : SchedWriteRes<[A64FXGI0]> {
  90. let Latency = 8;
  91. }
  92. def A64FXWrite_9Cyc_GI0 : SchedWriteRes<[A64FXGI0]> {
  93. let Latency = 9;
  94. }
  95. def A64FXWrite_13Cyc_GI0 : SchedWriteRes<[A64FXGI0]> {
  96. let Latency = 13;
  97. }
  98. def A64FXWrite_37Cyc_GI0 : SchedWriteRes<[A64FXGI0]> {
  99. let Latency = 37;
  100. }
  101. def A64FXWrite_98Cyc_GI0 : SchedWriteRes<[A64FXGI0]> {
  102. let Latency = 98;
  103. }
  104. def A64FXWrite_134Cyc_GI0 : SchedWriteRes<[A64FXGI0]> {
  105. let Latency = 134;
  106. }
  107. def A64FXWrite_154Cyc_GI0 : SchedWriteRes<[A64FXGI0]> {
  108. let Latency = 154;
  109. }
  110. def A64FXWrite_4Cyc_GI01 : SchedWriteRes<[A64FXGI01]> {
  111. let Latency = 4;
  112. }
  113. def A64FXWrite_6Cyc_GI01 : SchedWriteRes<[A64FXGI01]> {
  114. let Latency = 6;
  115. }
  116. def A64FXWrite_8Cyc_GI01 : SchedWriteRes<[A64FXGI01]> {
  117. let Latency = 8;
  118. }
  119. def A64FXWrite_12Cyc_GI01 : SchedWriteRes<[A64FXGI01]> {
  120. let Latency = 12;
  121. }
  122. def A64FXWrite_10Cyc_GI02 : SchedWriteRes<[A64FXGI02]> {
  123. let Latency = 10;
  124. }
  125. def A64FXWrite_17Cyc_GI02 : SchedWriteRes<[A64FXGI02]> {
  126. let Latency = 17;
  127. }
  128. def A64FXWrite_21Cyc_GI02 : SchedWriteRes<[A64FXGI02]> {
  129. let Latency = 21;
  130. }
  131. def A64FXWrite_3Cyc_GI1 : SchedWriteRes<[A64FXGI1]> {
  132. let Latency = 3;
  133. }
  134. def A64FXWrite_6Cyc_NGI1 : SchedWriteRes<[A64FXGI1]> {
  135. let Latency = 3;
  136. let NumMicroOps = 2;
  137. }
  138. def A64FXWrite_4Cyc_GI12 : SchedWriteRes<[A64FXGI12]> {
  139. let Latency = 4;
  140. }
  141. def A64FXWrite_3Cyc_GI2 : SchedWriteRes<[A64FXGI2]> {
  142. let Latency = 3;
  143. }
  144. def A64FXWrite_5Cyc_GI2 : SchedWriteRes<[A64FXGI2]> {
  145. let Latency = 5;
  146. }
  147. def A64FXWrite_6Cyc_GI2 : SchedWriteRes<[A64FXGI2]> {
  148. let Latency = 6;
  149. }
  150. def A64FXWrite_4Cyc_GI3 : SchedWriteRes<[A64FXGI3]> {
  151. let Latency = 4;
  152. }
  153. def A64FXWrite_6Cyc_GI3 : SchedWriteRes<[A64FXGI3]> {
  154. let Latency = 6;
  155. }
  156. def A64FXWrite_6Cyc_GI15 : SchedWriteRes<[A64FXGI15]> {
  157. let Latency = 6;
  158. }
  159. def A64FXWrite_3Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  160. let Latency = 3;
  161. }
  162. def A64FXWrite_4Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  163. let Latency = 4;
  164. }
  165. def A64FXWrite_6Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  166. let Latency = 6;
  167. }
  168. def A64FXWrite_8Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  169. let Latency = 8;
  170. }
  171. def A64FXWrite_9Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  172. let Latency = 9;
  173. }
  174. def A64FXWrite_10Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  175. let Latency = 10;
  176. }
  177. def A64FXWrite_12Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  178. let Latency = 12;
  179. }
  180. def A64FXWrite_14Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  181. let Latency = 14;
  182. }
  183. def A64FXWrite_15Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  184. let Latency = 15;
  185. }
  186. def A64FXWrite_15Cyc_NGI03 : SchedWriteRes<[A64FXGI03]> {
  187. let Latency = 15;
  188. let NumMicroOps = 2;
  189. }
  190. def A64FXWrite_18Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  191. let Latency = 18;
  192. }
  193. def A64FXWrite_45Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  194. let Latency = 45;
  195. }
  196. def A64FXWrite_60Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  197. let Latency = 60;
  198. }
  199. def A64FXWrite_75Cyc_GI03 : SchedWriteRes<[A64FXGI03]> {
  200. let Latency = 75;
  201. }
  202. def A64FXWrite_6Cyc_GI05 : SchedWriteRes<[A64FXGI05]> {
  203. let Latency = 6;
  204. }
  205. def A64FXWrite_10Cyc_GI4 : SchedWriteRes<[A64FXGI4]> {
  206. let Latency = 10;
  207. }
  208. def A64FXWrite_12Cyc_GI4 : SchedWriteRes<[A64FXGI4]> {
  209. let Latency = 12;
  210. }
  211. def A64FXWrite_20Cyc_GI4 : SchedWriteRes<[A64FXGI4]> {
  212. let Latency = 20;
  213. }
  214. def A64FXWrite_5Cyc_GI5 : SchedWriteRes<[A64FXGI5]> {
  215. let Latency = 5;
  216. }
  217. def A64FXWrite_11Cyc_GI5 : SchedWriteRes<[A64FXGI5]> {
  218. let Latency = 11;
  219. }
  220. def A64FXWrite_5Cyc_GI6 : SchedWriteRes<[A64FXGI6]> {
  221. let Latency = 5;
  222. }
  223. def A64FXWrite_1Cyc_GI24 : SchedWriteRes<[A64FXGI24]> {
  224. let Latency = 1;
  225. }
  226. def A64FXWrite_2Cyc_GI24 : SchedWriteRes<[A64FXGI24]> {
  227. let Latency = 2;
  228. }
  229. def A64FXWrite_4Cyc_NGI24 : SchedWriteRes<[A64FXGI24]> {
  230. let Latency = 4;
  231. let NumMicroOps = 4;
  232. }
  233. def A64FXWrite_6Cyc_GI124: SchedWriteRes<[A64FXGI124]> {
  234. let Latency = 6;
  235. }
  236. def A64FXWrite_8Cyc_GI124 : SchedWriteRes<[A64FXGI124]> {
  237. let Latency = 8;
  238. let NumMicroOps = 2;
  239. }
  240. def A64FXWrite_6Cyc_GI56 : SchedWriteRes<[A64FXGI56]> {
  241. let Latency = 0;
  242. }
  243. def A64FXWrite_1Cyc_GI56 : SchedWriteRes<[A64FXGI56]> {
  244. let Latency = 1;
  245. }
  246. def A64FXWrite_5Cyc_GI56 : SchedWriteRes<[A64FXGI56]> {
  247. let Latency = 5;
  248. }
  249. def A64FXWrite_8Cyc_GI56 : SchedWriteRes<[A64FXGI56]> {
  250. let Latency = 8;
  251. }
  252. def A64FXWrite_11Cyc_GI56 : SchedWriteRes<[A64FXGI56]> {
  253. let Latency = 11;
  254. }
  255. def A64FXWrite_44Cyc_GI56 : SchedWriteRes<[A64FXGI56]> {
  256. let Latency = 44;
  257. }
  258. def A64FXWrite_10Cyc_GI056 : SchedWriteRes<[A64FXGI056]> {
  259. let Latency = 10;
  260. }
  261. def A64FXWrite_15Cyc_GI056 : SchedWriteRes<[A64FXGI056]> {
  262. let Latency = 15;
  263. }
  264. def A64FXWrite_19Cyc_GI056 : SchedWriteRes<[A64FXGI056]> {
  265. let Latency = 19;
  266. }
  267. def A64FXWrite_25Cyc_GI056 : SchedWriteRes<[A64FXGI056]> {
  268. let Latency = 25;
  269. }
  270. def A64FXWrite_14Cyc_GI0256 : SchedWriteRes<[A64FXGI0256]> {
  271. let Latency = 14;
  272. }
  273. def A64FXWrite_19Cyc_GI0256 : SchedWriteRes<[A64FXGI0256]> {
  274. let Latency = 19;
  275. }
  276. def A64FXWrite_29Cyc_GI0256 : SchedWriteRes<[A64FXGI0256]> {
  277. let Latency = 29;
  278. }
  279. def A64FXWrite_LDNP: SchedWriteRes<[A64FXGI56]> {
  280. let Latency = 5;
  281. let NumMicroOps = 2;
  282. }
  283. def A64FXWrite_LDP01: SchedWriteRes<[A64FXGI2456]> {
  284. let Latency = 5;
  285. let NumMicroOps = 3;
  286. }
  287. def A64FXWrite_LDR01: SchedWriteRes<[A64FXGI2456]> {
  288. let Latency = 5;
  289. let NumMicroOps = 2;
  290. }
  291. def A64FXWrite_LD102: SchedWriteRes<[A64FXGI56]> {
  292. let Latency = 8;
  293. let NumMicroOps = 2;
  294. }
  295. def A64FXWrite_LD103: SchedWriteRes<[A64FXGI56]> {
  296. let Latency = 11;
  297. let NumMicroOps = 2;
  298. }
  299. def A64FXWrite_LD104: SchedWriteRes<[A64FXGI56]> {
  300. let Latency = 8;
  301. let NumMicroOps = 3;
  302. }
  303. def A64FXWrite_LD105: SchedWriteRes<[A64FXGI56]> {
  304. let Latency = 11;
  305. let NumMicroOps = 3;
  306. }
  307. def A64FXWrite_LD106: SchedWriteRes<[A64FXGI56]> {
  308. let Latency = 8;
  309. let NumMicroOps = 4;
  310. }
  311. def A64FXWrite_LD107: SchedWriteRes<[A64FXGI56]> {
  312. let Latency = 11;
  313. let NumMicroOps = 4;
  314. }
  315. def A64FXWrite_LD108: SchedWriteRes<[A64FXGI56]> {
  316. let Latency = 8;
  317. let NumMicroOps = 2;
  318. }
  319. def A64FXWrite_LD109: SchedWriteRes<[A64FXGI56]> {
  320. let Latency = 11;
  321. let NumMicroOps = 2;
  322. }
  323. def A64FXWrite_LD110: SchedWriteRes<[A64FXGI56]> {
  324. let Latency = 8;
  325. let NumMicroOps = 3;
  326. }
  327. def A64FXWrite_LD111: SchedWriteRes<[A64FXGI56]> {
  328. let Latency = 11;
  329. let NumMicroOps = 3;
  330. }
  331. def A64FXWrite_LD112: SchedWriteRes<[A64FXGI56]> {
  332. let Latency = 8;
  333. let NumMicroOps = 4;
  334. }
  335. def A64FXWrite_LD113: SchedWriteRes<[A64FXGI56]> {
  336. let Latency = 11;
  337. let NumMicroOps = 4;
  338. }
  339. def A64FXWrite_LD114: SchedWriteRes<[A64FXGI56]> {
  340. let Latency = 8;
  341. let NumMicroOps = 5;
  342. }
  343. def A64FXWrite_LD115: SchedWriteRes<[A64FXGI56]> {
  344. let Latency = 11;
  345. let NumMicroOps = 5;
  346. }
  347. def A64FXWrite_LD1I0: SchedWriteRes<[A64FXGI056]> {
  348. let Latency = 8;
  349. let NumMicroOps = 2;
  350. }
  351. def A64FXWrite_LD1I1: SchedWriteRes<[A64FXGI056]> {
  352. let Latency = 8;
  353. let NumMicroOps = 3;
  354. }
  355. def A64FXWrite_LD2I0: SchedWriteRes<[A64FXGI056]> {
  356. let Latency = 8;
  357. let NumMicroOps = 4;
  358. }
  359. def A64FXWrite_LD2I1: SchedWriteRes<[A64FXGI056]> {
  360. let Latency = 8;
  361. let NumMicroOps = 5;
  362. }
  363. def A64FXWrite_LD3I0: SchedWriteRes<[A64FXGI056]> {
  364. let Latency = 8;
  365. let NumMicroOps = 6;
  366. }
  367. def A64FXWrite_LD3I1: SchedWriteRes<[A64FXGI056]> {
  368. let Latency = 8;
  369. let NumMicroOps = 7;
  370. }
  371. def A64FXWrite_LD4I0: SchedWriteRes<[A64FXGI056]> {
  372. let Latency = 8;
  373. let NumMicroOps = 8;
  374. }
  375. def A64FXWrite_LD4I1: SchedWriteRes<[A64FXGI056]> {
  376. let Latency = 8;
  377. let NumMicroOps = 9;
  378. }
  379. def A64FXWrite_1Cyc_GI2456 : SchedWriteRes<[A64FXGI2456]> {
  380. let Latency = 1;
  381. }
  382. def A64FXWrite_FMOV_GV : SchedWriteRes<[A64FXGI03]> {
  383. let Latency = 10;
  384. }
  385. def A64FXWrite_FMOV_VG14 : SchedWriteRes<[A64FXGI03]> {
  386. let Latency = 14;
  387. }
  388. def A64FXWrite_FMOV_VG : SchedWriteRes<[A64FXGI03]> {
  389. let Latency = 25;
  390. }
  391. def A64FXWrite_ADDLV : SchedWriteRes<[A64FXGI03]> {
  392. let Latency = 12;
  393. }
  394. def A64FXWrite_MULLE : SchedWriteRes<[A64FXGI03]> {
  395. let Latency = 14;
  396. }
  397. def A64FXWrite_MULLV : SchedWriteRes<[A64FXGI03]> {
  398. let Latency = 14;
  399. }
  400. def A64FXWrite_MADDL : SchedWriteRes<[A64FXGI03]> {
  401. let Latency = 6;
  402. }
  403. def A64FXWrite_ABA : SchedWriteRes<[A64FXGI03]> {
  404. let Latency = 8;
  405. }
  406. def A64FXWrite_ABAL : SchedWriteRes<[A64FXGI03]> {
  407. let Latency = 10;
  408. }
  409. def A64FXWrite_ADDLV1 : SchedWriteRes<[A64FXGI03]> {
  410. let Latency = 12;
  411. let NumMicroOps = 6;
  412. }
  413. def A64FXWrite_MINMAXV : SchedWriteRes<[A64FXGI03]> {
  414. let Latency = 14;
  415. let NumMicroOps = 6;
  416. }
  417. def A64FXWrite_SQRDMULH : SchedWriteRes<[A64FXGI03]> {
  418. let Latency = 9;
  419. }
  420. def A64FXWrite_PMUL : SchedWriteRes<[A64FXGI03]> {
  421. let Latency = 8;
  422. }
  423. def A64FXWrite_SRSRAV : SchedWriteRes<[A64FXGI03]> {
  424. let Latency = 8;
  425. let NumMicroOps = 3;
  426. }
  427. def A64FXWrite_SSRAV : SchedWriteRes<[A64FXGI03]> {
  428. let Latency = 8;
  429. let NumMicroOps = 2;
  430. }
  431. def A64FXWrite_RSHRN : SchedWriteRes<[A64FXGI03]> {
  432. let Latency = 10;
  433. let NumMicroOps = 3;
  434. }
  435. def A64FXWrite_SHRN : SchedWriteRes<[A64FXGI03]> {
  436. let Latency = 10;
  437. let NumMicroOps = 2;
  438. }
  439. def A64FXWrite_ADDP : SchedWriteRes<[A64FXGI03]> {
  440. let Latency = 10;
  441. let NumMicroOps = 3;
  442. }
  443. def A64FXWrite_FMULXE : SchedWriteRes<[A64FXGI03]> {
  444. let Latency = 15;
  445. let NumMicroOps = 2;
  446. }
  447. def A64FXWrite_FADDPV : SchedWriteRes<[A64FXGI03]> {
  448. let Latency = 15;
  449. let NumMicroOps = 3;
  450. }
  451. def A64FXWrite_SADALP : SchedWriteRes<[A64FXGI03]> {
  452. let Latency = 10;
  453. let NumMicroOps = 3;
  454. }
  455. def A64FXWrite_SADDLP : SchedWriteRes<[A64FXGI03]> {
  456. let Latency = 10;
  457. let NumMicroOps = 2;
  458. }
  459. def A64FXWrite_FCVTXNV : SchedWriteRes<[A64FXGI03]> {
  460. let Latency = 15;
  461. let NumMicroOps = 2;
  462. }
  463. def A64FXWrite_FMAXVVH : SchedWriteRes<[A64FXGI03]> {
  464. let Latency = 14;
  465. let NumMicroOps = 7;
  466. }
  467. def A64FXWrite_FMAXVVS : SchedWriteRes<[A64FXGI03]> {
  468. let Latency = 14;
  469. }
  470. def A64FXWrite_BIF : SchedWriteRes<[A64FXGI03]> {
  471. let Latency = 5;
  472. }
  473. def A64FXWrite_DUPGENERAL : SchedWriteRes<[A64FXGI03]> {
  474. let Latency = 10;
  475. }
  476. def A64FXWrite_SHA00 : SchedWriteRes<[A64FXGI0]> {
  477. let Latency = 9;
  478. }
  479. def A64FXWrite_SHA01 : SchedWriteRes<[A64FXGI0]> {
  480. let Latency = 12;
  481. }
  482. def A64FXWrite_SMOV : SchedWriteRes<[A64FXGI03]> {
  483. let Latency = 25;
  484. }
  485. def A64FXWrite_TBX1 : SchedWriteRes<[A64FXGI03]> {
  486. let Latency = 10;
  487. let NumMicroOps = 3;
  488. }
  489. def A64FXWrite_TBX2 : SchedWriteRes<[A64FXGI03]> {
  490. let Latency = 10;
  491. let NumMicroOps = 5;
  492. }
  493. def A64FXWrite_TBX3 : SchedWriteRes<[A64FXGI03]> {
  494. let Latency = 10;
  495. let NumMicroOps = 7;
  496. }
  497. def A64FXWrite_TBX4 : SchedWriteRes<[A64FXGI03]> {
  498. let Latency = 10;
  499. let NumMicroOps = 9;
  500. }
  501. def A64FXWrite_PREF0: SchedWriteRes<[A64FXGI56]> {
  502. let Latency = 0;
  503. }
  504. def A64FXWrite_PREF1: SchedWriteRes<[A64FXGI56]> {
  505. let Latency = 0;
  506. }
  507. def A64FXWrite_SWP: SchedWriteRes<[A64FXGI56]> {
  508. let Latency = 0;
  509. }
  510. def A64FXWrite_STUR: SchedWriteRes<[A64FXGI56]> {
  511. let Latency = 0;
  512. }
  513. def A64FXWrite_STNP: SchedWriteRes<[A64FXGI56]> {
  514. let Latency = 0;
  515. }
  516. def A64FXWrite_STP01: SchedWriteRes<[A64FXGI56]> {
  517. let Latency = 0;
  518. }
  519. def A64FXWrite_ST10: SchedWriteRes<[A64FXGI56]> {
  520. let Latency = 0;
  521. }
  522. def A64FXWrite_ST11: SchedWriteRes<[A64FXGI56]> {
  523. let Latency = 0;
  524. }
  525. def A64FXWrite_ST12: SchedWriteRes<[A64FXGI56]> {
  526. let Latency = 0;
  527. }
  528. def A64FXWrite_ST13: SchedWriteRes<[A64FXGI56]> {
  529. let Latency = 0;
  530. }
  531. def A64FXWrite_ST14: SchedWriteRes<[A64FXGI56]> {
  532. let Latency = 1;
  533. }
  534. def A64FXWrite_ST15: SchedWriteRes<[A64FXGI56]> {
  535. let Latency = 1;
  536. }
  537. def A64FXWrite_ST16: SchedWriteRes<[A64FXGI56]> {
  538. let Latency = 1;
  539. }
  540. def A64FXWrite_ST17: SchedWriteRes<[A64FXGI56]> {
  541. let Latency = 1;
  542. }
  543. def A64FXWrite_ST1W_6: SchedWriteRes<[A64FXGI056]> {
  544. let Latency = 6;
  545. }
  546. def A64FXWrite_ST2W_7: SchedWriteRes<[A64FXGI056]> {
  547. let Latency = 7;
  548. }
  549. def A64FXWrite_ST3W_8: SchedWriteRes<[A64FXGI056]> {
  550. let Latency = 8;
  551. }
  552. def A64FXWrite_ST4W_9: SchedWriteRes<[A64FXGI056]> {
  553. let Latency = 9;
  554. }
  555. def A64FXWrite_ST1W_15: SchedWriteRes<[A64FXGI056]> {
  556. let Latency = 15;
  557. }
  558. def A64FXWrite_ST1W_19: SchedWriteRes<[A64FXGI056]> {
  559. let Latency = 19;
  560. }
  561. def A64FXWrite_CAS: SchedWriteRes<[A64FXGI56]> {
  562. let Latency = 7;
  563. }
  564. // Define commonly used read types.
  565. // No forwarding is provided for these types.
  566. def : ReadAdvance<ReadI, 0>;
  567. def : ReadAdvance<ReadISReg, 0>;
  568. def : ReadAdvance<ReadIEReg, 0>;
  569. def : ReadAdvance<ReadIM, 0>;
  570. def : ReadAdvance<ReadIMA, 0>;
  571. def : ReadAdvance<ReadID, 0>;
  572. def : ReadAdvance<ReadExtrHi, 0>;
  573. def : ReadAdvance<ReadAdrBase, 0>;
  574. def : ReadAdvance<ReadST, 0>;
  575. def : ReadAdvance<ReadVLD, 0>;
  576. //===----------------------------------------------------------------------===//
  577. // 3. Instruction Tables.
  578. //---
  579. // 3.1 Branch Instructions
  580. //---
  581. // Branch, immed
  582. // Branch and link, immed
  583. // Compare and branch
  584. def : WriteRes<WriteBr, [A64FXGI7]> {
  585. let Latency = 1;
  586. }
  587. // Branch, register
  588. // Branch and link, register != LR
  589. // Branch and link, register = LR
  590. def : WriteRes<WriteBrReg, [A64FXGI7]> {
  591. let Latency = 1;
  592. }
  593. def : WriteRes<WriteSys, []> { let Latency = 1; }
  594. def : WriteRes<WriteBarrier, []> { let Latency = 1; }
  595. def : WriteRes<WriteHint, []> { let Latency = 1; }
  596. def : WriteRes<WriteAtomic, []> {
  597. let Latency = 4;
  598. }
  599. //---
  600. // Branch
  601. //---
  602. def : InstRW<[A64FXWrite_1Cyc_GI7], (instrs B, BL, BR, BLR)>;
  603. def : InstRW<[A64FXWrite_1Cyc_GI7], (instrs RET)>;
  604. def : InstRW<[A64FXWrite_1Cyc_GI7], (instregex "^B..$")>;
  605. def : InstRW<[A64FXWrite_1Cyc_GI7],
  606. (instregex "^CBZ", "^CBNZ", "^TBZ", "^TBNZ")>;
  607. //---
  608. // 3.2 Arithmetic and Logical Instructions
  609. // 3.3 Move and Shift Instructions
  610. //---
  611. // ALU, basic
  612. // Conditional compare
  613. // Conditional select
  614. // Address generation
  615. def : WriteRes<WriteI, [A64FXGI2456]> {
  616. let Latency = 1;
  617. let ResourceCycles = [1];
  618. }
  619. def : InstRW<[WriteI],
  620. (instregex "ADD?(W|X)r(i|r|s|x)", "ADDS?(W|X)r(i|r|s|x)(64)?",
  621. "AND?(W|X)r(i|r|s|x)", "ANDS?(W|X)r(i|r|s|x)",
  622. "ADC(W|X)r",
  623. "BIC?(W|X)r(i|r|s|x)", "BICS?(W|X)r(i|r|s|x)",
  624. "EON?(W|X)r(i|r|s|x)", "ORN?(W|X)r(i|r|s|x)",
  625. "ORR?(W|X)r(i|r|s|x)", "SUB?(W|X)r(i|r|s|x)",
  626. "SUBS?(W|X)r(i|r|s|x)", "SBC(W|X)r",
  627. "SBCS(W|X)r", "CCMN(W|X)(i|r)",
  628. "CCMP(W|X)(i|r)", "CSEL(W|X)r",
  629. "CSINC(W|X)r", "CSINV(W|X)r",
  630. "CSNEG(W|X)r")>;
  631. def : InstRW<[WriteI], (instrs COPY)>;
  632. // ALU, extend and/or shift
  633. def : WriteRes<WriteISReg, [A64FXGI2456]> {
  634. let Latency = 2;
  635. let ResourceCycles = [1];
  636. }
  637. def : InstRW<[WriteISReg],
  638. (instregex "ADD?(W|X)r(i|r|s|x)", "ADDS?(W|X)r(i|r|s|x)(64)?",
  639. "AND?(W|X)r(i|r|s|x)", "ANDS?(W|X)r(i|r|s|x)",
  640. "ADC(W|X)r",
  641. "BIC?(W|X)r(i|r|s|x)", "BICS?(W|X)r(i|r|s|x)",
  642. "EON?(W|X)r(i|r|s|x)", "ORN?(W|X)r(i|r|s|x)",
  643. "ORR?(W|X)r(i|r|s|x)", "SUB?(W|X)r(i|r|s|x)",
  644. "SUBS?(W|X)r(i|r|s|x)", "SBC(W|X)r",
  645. "SBCS(W|X)r", "CCMN(W|X)(i|r)",
  646. "CCMP(W|X)(i|r)", "CSEL(W|X)r",
  647. "CSINC(W|X)r", "CSINV(W|X)r",
  648. "CSNEG(W|X)r")>;
  649. def : WriteRes<WriteIEReg, [A64FXGI2456]> {
  650. let Latency = 1;
  651. let ResourceCycles = [1];
  652. }
  653. def : InstRW<[WriteIEReg],
  654. (instregex "ADD?(W|X)r(i|r|s|x)", "ADDS?(W|X)r(i|r|s|x)(64)?",
  655. "AND?(W|X)r(i|r|s|x)", "ANDS?(W|X)r(i|r|s|x)",
  656. "ADC(W|X)r",
  657. "BIC?(W|X)r(i|r|s|x)", "BICS?(W|X)r(i|r|s|x)",
  658. "EON?(W|X)r(i|r|s|x)", "ORN?(W|X)r(i|r|s|x)",
  659. "ORR?(W|X)r(i|r|s|x)", "SUB?(W|X)r(i|r|s|x)",
  660. "SUBS?(W|X)r(i|r|s|x)", "SBC(W|X)r",
  661. "SBCS(W|X)r", "CCMN(W|X)(i|r)",
  662. "CCMP(W|X)(i|r)", "CSEL(W|X)r",
  663. "CSINC(W|X)r", "CSINV(W|X)r",
  664. "CSNEG(W|X)r")>;
  665. // Move immed
  666. def : WriteRes<WriteImm, [A64FXGI2456]> {
  667. let Latency = 1;
  668. let ResourceCycles = [1];
  669. }
  670. def : InstRW<[A64FXWrite_1Cyc_GI2456],
  671. (instrs MOVKWi, MOVKXi, MOVNWi, MOVNXi, MOVZWi, MOVZXi)>;
  672. def : InstRW<[A64FXWrite_2Cyc_GI24],
  673. (instrs ASRVWr, ASRVXr, LSLVWr, LSLVXr, RORVWr, RORVXr)>;
  674. // Variable shift
  675. def : WriteRes<WriteIS, [A64FXGI2456]> {
  676. let Latency = 1;
  677. let ResourceCycles = [1];
  678. }
  679. //---
  680. // 3.4 Divide and Multiply Instructions
  681. //---
  682. // Divide, W-form
  683. def : WriteRes<WriteID32, [A64FXGI4]> {
  684. let Latency = 39;
  685. let ResourceCycles = [39];
  686. }
  687. // Divide, X-form
  688. def : WriteRes<WriteID64, [A64FXGI4]> {
  689. let Latency = 23;
  690. let ResourceCycles = [23];
  691. }
  692. // Multiply accumulate, W-form
  693. def : WriteRes<WriteIM32, [A64FXGI2456]> {
  694. let Latency = 5;
  695. let ResourceCycles = [1];
  696. }
  697. // Multiply accumulate, X-form
  698. def : WriteRes<WriteIM64, [A64FXGI2456]> {
  699. let Latency = 5;
  700. let ResourceCycles = [1];
  701. }
  702. def : InstRW<[WriteIM32], (instrs MADDWrrr, MSUBWrrr)>;
  703. def : InstRW<[WriteIM32], (instrs MADDXrrr, MSUBXrrr)>;
  704. def : InstRW<[A64FXWrite_MADDL],
  705. (instregex "(S|U)(MADDL|MSUBL)rrr")>;
  706. def : InstRW<[WriteID32], (instrs SDIVWr, UDIVWr)>;
  707. def : InstRW<[WriteID64], (instrs SDIVXr, UDIVXr)>;
  708. // Bitfield extract, two reg
  709. def : WriteRes<WriteExtr, [A64FXGI2456]> {
  710. let Latency = 1;
  711. let ResourceCycles = [1];
  712. }
  713. // Multiply high
  714. def : InstRW<[A64FXWrite_5Cyc_GI2], (instrs SMULHrr, UMULHrr)>;
  715. // Miscellaneous Data-Processing Instructions
  716. // Bitfield extract
  717. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs EXTRWrri, EXTRXrri)>;
  718. // Bitifield move - basic
  719. def : InstRW<[A64FXWrite_1Cyc_GI24],
  720. (instrs SBFMWri, SBFMXri, UBFMWri, UBFMXri)>;
  721. // Bitfield move, insert
  722. def : InstRW<[A64FXWrite_4Cyc_NGI24], (instregex "^BFM")>;
  723. def : InstRW<[A64FXWrite_1Cyc_GI24], (instregex "(S|U)?BFM.*")>;
  724. // Count leading
  725. def : InstRW<[A64FXWrite_2Cyc_GI0], (instregex "^CLS(W|X)r$",
  726. "^CLZ(W|X)r$")>;
  727. // Reverse bits
  728. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs RBITWr, RBITXr)>;
  729. // Cryptography Extensions
  730. def : InstRW<[A64FXWrite_8Cyc_GI0], (instregex "^AES[DE]")>;
  731. def : InstRW<[A64FXWrite_8Cyc_GI0], (instregex "^AESI?MC")>;
  732. def : InstRW<[A64FXWrite_8Cyc_GI0], (instregex "^PMULL")>;
  733. def : InstRW<[A64FXWrite_SHA00], (instregex "^SHA1SU0")>;
  734. def : InstRW<[A64FXWrite_8Cyc_GI0], (instregex "^SHA1(H|SU1)")>;
  735. def : InstRW<[A64FXWrite_SHA01], (instregex "^SHA1[CMP]")>;
  736. def : InstRW<[A64FXWrite_8Cyc_GI0], (instregex "^SHA256SU0")>;
  737. def : InstRW<[A64FXWrite_8Cyc_GI0], (instregex "^SHA256SU1")>;
  738. def : InstRW<[A64FXWrite_SHA01], (instregex "^SHA256(H|H2)")>;
  739. // CRC Instructions
  740. def : InstRW<[A64FXWrite_10Cyc_GI4], (instrs CRC32Brr, CRC32Hrr)>;
  741. def : InstRW<[A64FXWrite_12Cyc_GI4], (instrs CRC32Wrr)>;
  742. def : InstRW<[A64FXWrite_20Cyc_GI4], (instrs CRC32Xrr)>;
  743. def : InstRW<[A64FXWrite_10Cyc_GI4], (instrs CRC32CBrr, CRC32CHrr)>;
  744. def : InstRW<[A64FXWrite_12Cyc_GI4], (instrs CRC32CWrr)>;
  745. def : InstRW<[A64FXWrite_20Cyc_GI4], (instrs CRC32CXrr)>;
  746. // Reverse bits/bytes
  747. // NOTE: Handled by WriteI.
  748. //---
  749. // 3.6 Load Instructions
  750. // 3.10 FP Load Instructions
  751. //---
  752. // Load register, literal
  753. // Load register, unscaled immed
  754. // Load register, immed unprivileged
  755. // Load register, unsigned immed
  756. def : WriteRes<WriteLD, [A64FXGI56]> {
  757. let Latency = 4;
  758. let ResourceCycles = [3];
  759. }
  760. // Load register, immed post-index
  761. // NOTE: Handled by WriteLD, WriteI.
  762. // Load register, immed pre-index
  763. // NOTE: Handled by WriteLD, WriteAdr.
  764. def : WriteRes<WriteAdr, [A64FXGI2456]> {
  765. let Latency = 1;
  766. let ResourceCycles = [1];
  767. }
  768. // Load pair, immed offset, normal
  769. // Load pair, immed offset, signed words, base != SP
  770. // Load pair, immed offset signed words, base = SP
  771. // LDP only breaks into *one* LS micro-op. Thus
  772. // the resources are handled by WriteLD.
  773. def : WriteRes<WriteLDHi, []> {
  774. let Latency = 5;
  775. }
  776. // Load register offset, basic
  777. // Load register, register offset, scale by 4/8
  778. // Load register, register offset, scale by 2
  779. // Load register offset, extend
  780. // Load register, register offset, extend, scale by 4/8
  781. // Load register, register offset, extend, scale by 2
  782. def A64FXWriteLDIdx : SchedWriteVariant<[
  783. SchedVar<ScaledIdxPred, [A64FXWrite_1Cyc_GI56]>,
  784. SchedVar<NoSchedPred, [A64FXWrite_1Cyc_GI56]>]>;
  785. def : SchedAlias<WriteLDIdx, A64FXWriteLDIdx>;
  786. def A64FXReadAdrBase : SchedReadVariant<[
  787. SchedVar<ScaledIdxPred, [ReadDefault]>,
  788. SchedVar<NoSchedPred, [ReadDefault]>]>;
  789. def : SchedAlias<ReadAdrBase, A64FXReadAdrBase>;
  790. // Load pair, immed pre-index, normal
  791. // Load pair, immed pre-index, signed words
  792. // Load pair, immed post-index, normal
  793. // Load pair, immed post-index, signed words
  794. // NOTE: Handled by WriteLD, WriteLDHi, WriteAdr.
  795. def : InstRW<[A64FXWrite_LDNP, WriteLDHi], (instrs LDNPDi)>;
  796. def : InstRW<[A64FXWrite_LDNP, WriteLDHi], (instrs LDNPQi)>;
  797. def : InstRW<[A64FXWrite_LDNP, WriteLDHi], (instrs LDNPSi)>;
  798. def : InstRW<[A64FXWrite_LDNP, WriteLDHi], (instrs LDNPWi)>;
  799. def : InstRW<[A64FXWrite_LDNP, WriteLDHi], (instrs LDNPXi)>;
  800. def : InstRW<[A64FXWrite_LDNP, WriteLDHi], (instrs LDPDi)>;
  801. def : InstRW<[A64FXWrite_LDNP, WriteLDHi], (instrs LDPQi)>;
  802. def : InstRW<[A64FXWrite_LDNP, WriteLDHi], (instrs LDPSi)>;
  803. def : InstRW<[A64FXWrite_LDNP, WriteLDHi], (instrs LDPSWi)>;
  804. def : InstRW<[A64FXWrite_LDNP, WriteLDHi], (instrs LDPWi)>;
  805. def : InstRW<[A64FXWrite_LDNP, WriteLDHi], (instrs LDPXi)>;
  806. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDRBui)>;
  807. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDRDui)>;
  808. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDRHui)>;
  809. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDRQui)>;
  810. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDRSui)>;
  811. def : InstRW<[A64FXWrite_5Cyc_GI6], (instrs LDRDl)>;
  812. def : InstRW<[A64FXWrite_5Cyc_GI6], (instrs LDRQl)>;
  813. def : InstRW<[A64FXWrite_5Cyc_GI6], (instrs LDRWl)>;
  814. def : InstRW<[A64FXWrite_5Cyc_GI6], (instrs LDRXl)>;
  815. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDTRBi)>;
  816. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDTRHi)>;
  817. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDTRWi)>;
  818. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDTRXi)>;
  819. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDTRSBWi)>;
  820. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDTRSBXi)>;
  821. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDTRSHWi)>;
  822. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDTRSHXi)>;
  823. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDTRSWi)>;
  824. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  825. (instrs LDPDpre)>;
  826. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  827. (instrs LDPQpre)>;
  828. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  829. (instrs LDPSpre)>;
  830. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  831. (instrs LDPWpre)>;
  832. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  833. (instrs LDPWpre)>;
  834. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRBpre)>;
  835. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRDpre)>;
  836. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRHpre)>;
  837. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRQpre)>;
  838. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRSpre)>;
  839. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRWpre)>;
  840. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRXpre)>;
  841. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRSBWpre)>;
  842. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRSBXpre)>;
  843. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRSBWpost)>;
  844. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRSBXpost)>;
  845. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRSHWpre)>;
  846. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRSHXpre)>;
  847. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRSHWpost)>;
  848. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRSHXpost)>;
  849. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRBBpre)>;
  850. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRBBpost)>;
  851. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRHHpre)>;
  852. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRHHpost)>;
  853. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  854. (instrs LDPDpost)>;
  855. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  856. (instrs LDPQpost)>;
  857. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  858. (instrs LDPSpost)>;
  859. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  860. (instrs LDPWpost)>;
  861. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  862. (instrs LDPXpost)>;
  863. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRBpost)>;
  864. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRDpost)>;
  865. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRHpost)>;
  866. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRQpost)>;
  867. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRSpost)>;
  868. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRWpost)>;
  869. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRXpost)>;
  870. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  871. (instrs LDPDpre)>;
  872. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  873. (instrs LDPQpre)>;
  874. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  875. (instrs LDPSpre)>;
  876. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  877. (instrs LDPWpre)>;
  878. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  879. (instrs LDPXpre)>;
  880. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRBpre)>;
  881. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRDpre)>;
  882. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRHpre)>;
  883. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRQpre)>;
  884. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRSpre)>;
  885. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRWpre)>;
  886. def : InstRW<[A64FXWrite_LDR01, WriteAdr], (instrs LDRXpre)>;
  887. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  888. (instrs LDPDpost)>;
  889. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  890. (instrs LDPQpost)>;
  891. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  892. (instrs LDPSpost)>;
  893. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  894. (instrs LDPWpost)>;
  895. def : InstRW<[A64FXWrite_LDP01, WriteLDHi, WriteAdr],
  896. (instrs LDPXpost)>;
  897. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRBpost)>;
  898. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRDpost)>;
  899. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRHpost)>;
  900. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRQpost)>;
  901. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRSpost)>;
  902. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRWpost)>;
  903. def : InstRW<[A64FXWrite_LDR01, WriteI], (instrs LDRXpost)>;
  904. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRBroW)>;
  905. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRDroW)>;
  906. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRHroW)>;
  907. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRHHroW)>;
  908. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRQroW)>;
  909. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRSroW)>;
  910. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRSHWroW)>;
  911. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRSHXroW)>;
  912. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRWroW)>;
  913. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRXroW)>;
  914. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRBroX)>;
  915. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRDroX)>;
  916. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRHHroX)>;
  917. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRHroX)>;
  918. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRQroX)>;
  919. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRSroX)>;
  920. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRSHWroX)>;
  921. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRSHXroX)>;
  922. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRWroX)>;
  923. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase], (instrs LDRXroX)>;
  924. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  925. (instrs LDRBroW)>;
  926. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  927. (instrs LDRBroW)>;
  928. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  929. (instrs LDRDroW)>;
  930. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  931. (instrs LDRHroW)>;
  932. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  933. (instrs LDRHHroW)>;
  934. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  935. (instrs LDRQroW)>;
  936. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  937. (instrs LDRSroW)>;
  938. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  939. (instrs LDRSHWroW)>;
  940. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  941. (instrs LDRSHXroW)>;
  942. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  943. (instrs LDRWroW)>;
  944. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  945. (instrs LDRXroW)>;
  946. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  947. (instrs LDRBroX)>;
  948. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  949. (instrs LDRDroX)>;
  950. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  951. (instrs LDRHroX)>;
  952. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  953. (instrs LDRHHroX)>;
  954. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  955. (instrs LDRQroX)>;
  956. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  957. (instrs LDRSroX)>;
  958. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  959. (instrs LDRSHWroX)>;
  960. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  961. (instrs LDRSHXroX)>;
  962. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  963. (instrs LDRWroX)>;
  964. def : InstRW<[A64FXWrite_5Cyc_GI56, ReadAdrBase],
  965. (instrs LDRXroX)>;
  966. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURBi)>;
  967. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURBBi)>;
  968. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURDi)>;
  969. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURHi)>;
  970. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURHHi)>;
  971. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURQi)>;
  972. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURSi)>;
  973. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURXi)>;
  974. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURSBWi)>;
  975. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURSBXi)>;
  976. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURSHWi)>;
  977. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURSHXi)>;
  978. def : InstRW<[A64FXWrite_5Cyc_GI56], (instrs LDURSWi)>;
  979. //---
  980. // Prefetch
  981. //---
  982. def : InstRW<[A64FXWrite_PREF0], (instrs PRFMl)>;
  983. def : InstRW<[A64FXWrite_PREF1], (instrs PRFUMi)>;
  984. def : InstRW<[A64FXWrite_PREF1], (instrs PRFMui)>;
  985. def : InstRW<[A64FXWrite_PREF1], (instrs PRFMroW)>;
  986. def : InstRW<[A64FXWrite_PREF1], (instrs PRFMroX)>;
  987. //--
  988. // 3.7 Store Instructions
  989. // 3.11 FP Store Instructions
  990. //--
  991. // Store register, unscaled immed
  992. // Store register, immed unprivileged
  993. // Store register, unsigned immed
  994. def : WriteRes<WriteST, [A64FXGI56]> {
  995. let Latency = 1;
  996. }
  997. // Store register, immed post-index
  998. // NOTE: Handled by WriteAdr, WriteST, ReadAdrBase
  999. // Store register, immed pre-index
  1000. // NOTE: Handled by WriteAdr, WriteST
  1001. // Store register, register offset, basic
  1002. // Store register, register offset, scaled by 4/8
  1003. // Store register, register offset, scaled by 2
  1004. // Store register, register offset, extend
  1005. // Store register, register offset, extend, scale by 4/8
  1006. // Store register, register offset, extend, scale by 1
  1007. def : WriteRes<WriteSTIdx, [A64FXGI56, A64FXGI2456]> {
  1008. let Latency = 1;
  1009. }
  1010. // Store pair, immed offset, W-form
  1011. // Store pair, immed offset, X-form
  1012. def : WriteRes<WriteSTP, [A64FXGI56]> {
  1013. let Latency = 1;
  1014. }
  1015. // Store pair, immed post-index, W-form
  1016. // Store pair, immed post-index, X-form
  1017. // Store pair, immed pre-index, W-form
  1018. // Store pair, immed pre-index, X-form
  1019. // NOTE: Handled by WriteAdr, WriteSTP.
  1020. def : InstRW<[A64FXWrite_STUR], (instrs STURBi)>;
  1021. def : InstRW<[A64FXWrite_STUR], (instrs STURBBi)>;
  1022. def : InstRW<[A64FXWrite_STUR], (instrs STURDi)>;
  1023. def : InstRW<[A64FXWrite_STUR], (instrs STURHi)>;
  1024. def : InstRW<[A64FXWrite_STUR], (instrs STURHHi)>;
  1025. def : InstRW<[A64FXWrite_STUR], (instrs STURQi)>;
  1026. def : InstRW<[A64FXWrite_STUR], (instrs STURSi)>;
  1027. def : InstRW<[A64FXWrite_STUR], (instrs STURWi)>;
  1028. def : InstRW<[A64FXWrite_STUR], (instrs STURXi)>;
  1029. def : InstRW<[WriteAdr, A64FXWrite_STUR], (instrs STTRBi)>;
  1030. def : InstRW<[WriteAdr, A64FXWrite_STUR], (instrs STTRHi)>;
  1031. def : InstRW<[WriteAdr, A64FXWrite_STUR], (instrs STTRWi)>;
  1032. def : InstRW<[WriteAdr, A64FXWrite_STUR], (instrs STTRXi)>;
  1033. def : InstRW<[A64FXWrite_STNP], (instrs STNPDi)>;
  1034. def : InstRW<[A64FXWrite_STNP], (instrs STNPQi)>;
  1035. def : InstRW<[A64FXWrite_STNP], (instrs STNPXi)>;
  1036. def : InstRW<[A64FXWrite_STNP], (instrs STNPWi)>;
  1037. def : InstRW<[A64FXWrite_STNP], (instrs STPDi)>;
  1038. def : InstRW<[A64FXWrite_STNP], (instrs STPQi)>;
  1039. def : InstRW<[A64FXWrite_STNP], (instrs STPXi)>;
  1040. def : InstRW<[A64FXWrite_STNP], (instrs STPWi)>;
  1041. def : InstRW<[A64FXWrite_STUR], (instrs STRBui)>;
  1042. def : InstRW<[A64FXWrite_STUR], (instrs STRBui)>;
  1043. def : InstRW<[A64FXWrite_STUR], (instrs STRDui)>;
  1044. def : InstRW<[A64FXWrite_STUR], (instrs STRDui)>;
  1045. def : InstRW<[A64FXWrite_STUR], (instrs STRHui)>;
  1046. def : InstRW<[A64FXWrite_STUR], (instrs STRHui)>;
  1047. def : InstRW<[A64FXWrite_STUR], (instrs STRQui)>;
  1048. def : InstRW<[A64FXWrite_STUR], (instrs STRQui)>;
  1049. def : InstRW<[A64FXWrite_STUR], (instrs STRXui)>;
  1050. def : InstRW<[A64FXWrite_STUR], (instrs STRXui)>;
  1051. def : InstRW<[A64FXWrite_STUR], (instrs STRWui)>;
  1052. def : InstRW<[A64FXWrite_STUR], (instrs STRWui)>;
  1053. def : InstRW<[A64FXWrite_STP01],
  1054. (instrs STPDpre, STPDpost)>;
  1055. def : InstRW<[A64FXWrite_STP01, ReadAdrBase],
  1056. (instrs STPDpre, STPDpost)>;
  1057. def : InstRW<[A64FXWrite_STP01],
  1058. (instrs STPDpre, STPDpost)>;
  1059. def : InstRW<[A64FXWrite_STP01, ReadAdrBase],
  1060. (instrs STPDpre, STPDpost)>;
  1061. def : InstRW<[A64FXWrite_STP01],
  1062. (instrs STPQpre, STPQpost)>;
  1063. def : InstRW<[A64FXWrite_STP01, ReadAdrBase],
  1064. (instrs STPQpre, STPQpost)>;
  1065. def : InstRW<[A64FXWrite_STP01],
  1066. (instrs STPQpre, STPQpost)>;
  1067. def : InstRW<[A64FXWrite_STP01, ReadAdrBase],
  1068. (instrs STPQpre, STPQpost)>;
  1069. def : InstRW<[A64FXWrite_STP01],
  1070. (instrs STPSpre, STPSpost)>;
  1071. def : InstRW<[A64FXWrite_STP01, ReadAdrBase],
  1072. (instrs STPSpre, STPSpost)>;
  1073. def : InstRW<[A64FXWrite_STP01],
  1074. (instrs STPSpre, STPSpost)>;
  1075. def : InstRW<[A64FXWrite_STP01, ReadAdrBase],
  1076. (instrs STPSpre, STPSpost)>;
  1077. def : InstRW<[A64FXWrite_STP01],
  1078. (instrs STPWpre, STPWpost)>;
  1079. def : InstRW<[A64FXWrite_STP01, ReadAdrBase],
  1080. (instrs STPWpre, STPWpost)>;
  1081. def : InstRW<[A64FXWrite_STP01],
  1082. (instrs STPWpre, STPWpost)>;
  1083. def : InstRW<[A64FXWrite_STP01, ReadAdrBase],
  1084. (instrs STPWpre, STPWpost)>;
  1085. def : InstRW<[A64FXWrite_STP01],
  1086. (instrs STPXpre, STPXpost)>;
  1087. def : InstRW<[A64FXWrite_STP01, ReadAdrBase],
  1088. (instrs STPXpre, STPXpost)>;
  1089. def : InstRW<[A64FXWrite_STP01],
  1090. (instrs STPXpre, STPXpost)>;
  1091. def : InstRW<[A64FXWrite_STP01, ReadAdrBase],
  1092. (instrs STPXpre, STPXpost)>;
  1093. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1094. (instrs STRBpre, STRBpost)>;
  1095. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1096. (instrs STRBpre, STRBpost)>;
  1097. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1098. (instrs STRBpre, STRBpost)>;
  1099. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1100. (instrs STRBpre, STRBpost)>;
  1101. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1102. (instrs STRBBpre, STRBBpost)>;
  1103. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1104. (instrs STRBBpre, STRBBpost)>;
  1105. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1106. (instrs STRBBpre, STRBBpost)>;
  1107. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1108. (instrs STRBBpre, STRBBpost)>;
  1109. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1110. (instrs STRDpre, STRDpost)>;
  1111. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1112. (instrs STRDpre, STRDpost)>;
  1113. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1114. (instrs STRDpre, STRDpost)>;
  1115. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1116. (instrs STRDpre, STRDpost)>;
  1117. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1118. (instrs STRHpre, STRHpost)>;
  1119. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1120. (instrs STRHpre, STRHpost)>;
  1121. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1122. (instrs STRHpre, STRHpost)>;
  1123. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1124. (instrs STRHpre, STRHpost)>;
  1125. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1126. (instrs STRHHpre, STRHHpost)>;
  1127. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1128. (instrs STRHHpre, STRHHpost)>;
  1129. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1130. (instrs STRHHpre, STRHHpost)>;
  1131. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1132. (instrs STRHHpre, STRHHpost)>;
  1133. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1134. (instrs STRQpre, STRQpost)>;
  1135. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1136. (instrs STRQpre, STRQpost)>;
  1137. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1138. (instrs STRQpre, STRQpost)>;
  1139. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1140. (instrs STRQpre, STRQpost)>;
  1141. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1142. (instrs STRSpre, STRSpost)>;
  1143. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1144. (instrs STRSpre, STRSpost)>;
  1145. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1146. (instrs STRSpre, STRSpost)>;
  1147. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1148. (instrs STRSpre, STRSpost)>;
  1149. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1150. (instrs STRWpre, STRWpost)>;
  1151. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1152. (instrs STRWpre, STRWpost)>;
  1153. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1154. (instrs STRWpre, STRWpost)>;
  1155. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1156. (instrs STRWpre, STRWpost)>;
  1157. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1158. (instrs STRXpre, STRXpost)>;
  1159. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1160. (instrs STRXpre, STRXpost)>;
  1161. def : InstRW<[WriteAdr, A64FXWrite_STP01],
  1162. (instrs STRXpre, STRXpost)>;
  1163. def : InstRW<[WriteAdr, A64FXWrite_STP01, ReadAdrBase],
  1164. (instrs STRXpre, STRXpost)>;
  1165. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1166. (instrs STRBroW, STRBroX)>;
  1167. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1168. (instrs STRBroW, STRBroX)>;
  1169. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1170. (instrs STRBBroW, STRBBroX)>;
  1171. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1172. (instrs STRBBroW, STRBBroX)>;
  1173. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1174. (instrs STRDroW, STRDroX)>;
  1175. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1176. (instrs STRDroW, STRDroX)>;
  1177. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1178. (instrs STRHroW, STRHroX)>;
  1179. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1180. (instrs STRHroW, STRHroX)>;
  1181. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1182. (instrs STRHHroW, STRHHroX)>;
  1183. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1184. (instrs STRHHroW, STRHHroX)>;
  1185. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1186. (instrs STRQroW, STRQroX)>;
  1187. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1188. (instrs STRQroW, STRQroX)>;
  1189. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1190. (instrs STRSroW, STRSroX)>;
  1191. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1192. (instrs STRSroW, STRSroX)>;
  1193. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1194. (instrs STRWroW, STRWroX)>;
  1195. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1196. (instrs STRWroW, STRWroX)>;
  1197. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1198. (instrs STRXroW, STRXroX)>;
  1199. def : InstRW<[A64FXWrite_STUR, ReadAdrBase],
  1200. (instrs STRXroW, STRXroX)>;
  1201. //---
  1202. // 3.8 FP Data Processing Instructions
  1203. //---
  1204. // FP absolute value
  1205. // FP min/max
  1206. // FP negate
  1207. def : WriteRes<WriteF, [A64FXGI03]> {
  1208. let Latency = 4;
  1209. let ResourceCycles = [2];
  1210. }
  1211. // FP arithmetic
  1212. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FADDDrr, FADDHrr)>;
  1213. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FSUBDrr, FSUBHrr)>;
  1214. // FP compare
  1215. def : WriteRes<WriteFCmp, [A64FXGI03]> {
  1216. let Latency = 4;
  1217. let ResourceCycles = [2];
  1218. }
  1219. // FP Div, Sqrt
  1220. def : WriteRes<WriteFDiv, [A64FXGI0]> {
  1221. let Latency = 43;
  1222. }
  1223. def A64FXXWriteFDiv : SchedWriteRes<[A64FXGI0]> {
  1224. let Latency = 38;
  1225. }
  1226. def A64FXXWriteFDivSP : SchedWriteRes<[A64FXGI0]> {
  1227. let Latency = 29;
  1228. }
  1229. def A64FXXWriteFDivDP : SchedWriteRes<[A64FXGI0]> {
  1230. let Latency = 43;
  1231. }
  1232. def A64FXXWriteFSqrtSP : SchedWriteRes<[A64FXGI0]> {
  1233. let Latency = 29;
  1234. }
  1235. def A64FXXWriteFSqrtDP : SchedWriteRes<[A64FXGI0]> {
  1236. let Latency = 43;
  1237. }
  1238. // FP divide, S-form
  1239. // FP square root, S-form
  1240. def : InstRW<[A64FXXWriteFDivSP], (instrs FDIVSrr)>;
  1241. def : InstRW<[A64FXXWriteFSqrtSP], (instrs FSQRTSr)>;
  1242. def : InstRW<[A64FXXWriteFDivSP], (instregex "^FDIVv.*32$")>;
  1243. def : InstRW<[A64FXXWriteFSqrtSP], (instregex "^.*SQRT.*32$")>;
  1244. def : InstRW<[A64FXXWriteFDivSP], (instregex "^FDIVSrr")>;
  1245. def : InstRW<[A64FXXWriteFSqrtSP], (instregex "^FSQRTSr")>;
  1246. // FP divide, D-form
  1247. // FP square root, D-form
  1248. def : InstRW<[A64FXXWriteFDivDP], (instrs FDIVDrr)>;
  1249. def : InstRW<[A64FXXWriteFSqrtDP], (instrs FSQRTDr)>;
  1250. def : InstRW<[A64FXXWriteFDivDP], (instregex "^FDIVv.*64$")>;
  1251. def : InstRW<[A64FXXWriteFSqrtDP], (instregex "^.*SQRT.*64$")>;
  1252. def : InstRW<[A64FXXWriteFDivDP], (instregex "^FDIVDrr")>;
  1253. def : InstRW<[A64FXXWriteFSqrtDP], (instregex "^FSQRTDr")>;
  1254. // FP multiply
  1255. // FP multiply accumulate
  1256. def : WriteRes<WriteFMul, [A64FXGI03]> {
  1257. let Latency = 9;
  1258. let ResourceCycles = [2];
  1259. }
  1260. def A64FXXWriteFMul : SchedWriteRes<[A64FXGI03]> {
  1261. let Latency = 9;
  1262. let ResourceCycles = [2];
  1263. }
  1264. def A64FXXWriteFMulAcc : SchedWriteRes<[A64FXGI03]> {
  1265. let Latency = 9;
  1266. let ResourceCycles = [2];
  1267. }
  1268. def : InstRW<[A64FXXWriteFMul], (instregex "^FMUL", "^FNMUL")>;
  1269. def : InstRW<[A64FXXWriteFMulAcc],
  1270. (instregex "^FMADD", "^FMSUB", "^FNMADD", "^FNMSUB")>;
  1271. // FP round to integral
  1272. def : InstRW<[A64FXWrite_9Cyc_GI03],
  1273. (instregex "^FRINT(A|I|M|N|P|X|Z)(Sr|Dr)")>;
  1274. // FP select
  1275. def : InstRW<[A64FXWrite_4Cyc_GI03], (instregex "^FCSEL")>;
  1276. //---
  1277. // 3.9 FP Miscellaneous Instructions
  1278. //---
  1279. // FP convert, from vec to vec reg
  1280. // FP convert, from gen to vec reg
  1281. // FP convert, from vec to gen reg
  1282. def : WriteRes<WriteFCvt, [A64FXGI03]> {
  1283. let Latency = 9;
  1284. let ResourceCycles = [2];
  1285. }
  1286. // FP move, immed
  1287. // FP move, register
  1288. def : WriteRes<WriteFImm, [A64FXGI0]> {
  1289. let Latency = 4;
  1290. let ResourceCycles = [2];
  1291. }
  1292. // FP transfer, from gen to vec reg
  1293. // FP transfer, from vec to gen reg
  1294. def : WriteRes<WriteFCopy, [A64FXGI0]> {
  1295. let Latency = 4;
  1296. let ResourceCycles = [2];
  1297. }
  1298. def : InstRW<[A64FXWrite_FMOV_GV], (instrs FMOVXDHighr)>;
  1299. def : InstRW<[A64FXWrite_FMOV_VG14], (instrs FMOVDXHighr)>;
  1300. //---
  1301. // 3.12 ASIMD Integer Instructions
  1302. //---
  1303. // ASIMD absolute diff, D-form
  1304. // ASIMD absolute diff, Q-form
  1305. // ASIMD absolute diff accum, D-form
  1306. // ASIMD absolute diff accum, Q-form
  1307. // ASIMD absolute diff accum long
  1308. // ASIMD absolute diff long
  1309. // ASIMD arith, basic
  1310. // ASIMD arith, complex
  1311. // ASIMD compare
  1312. // ASIMD logical (AND, BIC, EOR)
  1313. // ASIMD max/min, basic
  1314. // ASIMD max/min, reduce, 4H/4S
  1315. // ASIMD max/min, reduce, 8B/8H
  1316. // ASIMD max/min, reduce, 16B
  1317. // ASIMD multiply, D-form
  1318. // ASIMD multiply, Q-form
  1319. // ASIMD multiply accumulate long
  1320. // ASIMD multiply accumulate saturating long
  1321. // ASIMD multiply long
  1322. // ASIMD pairwise add and accumulate
  1323. // ASIMD shift accumulate
  1324. // ASIMD shift by immed, basic
  1325. // ASIMD shift by immed and insert, basic, D-form
  1326. // ASIMD shift by immed and insert, basic, Q-form
  1327. // ASIMD shift by immed, complex
  1328. // ASIMD shift by register, basic, D-form
  1329. // ASIMD shift by register, basic, Q-form
  1330. // ASIMD shift by register, complex, D-form
  1331. // ASIMD shift by register, complex, Q-form
  1332. def : WriteRes<WriteVd, [A64FXGI03]> {
  1333. let Latency = 4;
  1334. let ResourceCycles = [1];
  1335. }
  1336. def : WriteRes<WriteVq, [A64FXGI03]> {
  1337. let Latency = 4;
  1338. let ResourceCycles = [1];
  1339. }
  1340. // ASIMD arith, reduce, 4H/4S
  1341. // ASIMD arith, reduce, 8B/8H
  1342. // ASIMD arith, reduce, 16B
  1343. // ASIMD logical (MVN (alias for NOT), ORN, ORR)
  1344. def : InstRW<[A64FXWrite_4Cyc_GI03],
  1345. (instregex "^ANDv", "^BICv", "^EORv", "^ORRv", "^ORNv", "^NOTv")>;
  1346. // ASIMD arith, reduce
  1347. def : InstRW<[A64FXWrite_ADDLV],
  1348. (instregex "^ADDVv", "^SADDLVv", "^UADDLVv")>;
  1349. // ASIMD polynomial (8x8) multiply long
  1350. def : InstRW<[A64FXWrite_MULLE], (instregex "^(S|U|SQD)MULL")>;
  1351. def : InstRW<[A64FXWrite_MULLV],
  1352. (instregex "(S|U|SQD)(MLAL|MLSL|MULL)v.*")>;
  1353. def : InstRW<[A64FXWrite_8Cyc_GI03], (instregex "^PMULL(v8i8|v16i8)")>;
  1354. def : InstRW<[A64FXWrite_8Cyc_GI03], (instregex "^PMULL(v1i64|v2i64)")>;
  1355. // ASIMD absolute diff accum, D-form
  1356. def : InstRW<[A64FXWrite_ABA],
  1357. (instregex "^[SU]ABA(v8i8|v4i16|v2i32)$")>;
  1358. // ASIMD absolute diff accum, Q-form
  1359. def : InstRW<[A64FXWrite_ABA],
  1360. (instregex "^[SU]ABA(v16i8|v8i16|v4i32)$")>;
  1361. // ASIMD absolute diff accum long
  1362. def : InstRW<[A64FXWrite_ABAL],
  1363. (instregex "^[SU]ABAL")>;
  1364. // ASIMD arith, reduce, 4H/4S
  1365. def : InstRW<[A64FXWrite_ADDLV1],
  1366. (instregex "^[SU]?ADDL?V(v8i8|v4i16|v2i32)v$")>;
  1367. // ASIMD arith, reduce, 8B
  1368. def : InstRW<[A64FXWrite_ADDLV1],
  1369. (instregex "^[SU]?ADDL?V(v8i16|v4i32)v$")>;
  1370. // ASIMD arith, reduce, 16B/16H
  1371. def : InstRW<[A64FXWrite_ADDLV1],
  1372. (instregex "^[SU]?ADDL?Vv16i8v$")>;
  1373. // ASIMD max/min, reduce, 4H/4S
  1374. def : InstRW<[A64FXWrite_MINMAXV],
  1375. (instregex "^[SU](MIN|MAX)V(v4i16|v4i32)v$")>;
  1376. // ASIMD max/min, reduce, 8B/8H
  1377. def : InstRW<[A64FXWrite_MINMAXV],
  1378. (instregex "^[SU](MIN|MAX)V(v8i8|v8i16)v$")>;
  1379. // ASIMD max/min, reduce, 16B/16H
  1380. def : InstRW<[A64FXWrite_MINMAXV],
  1381. (instregex "^[SU](MIN|MAX)Vv16i8v$")>;
  1382. // ASIMD multiply, D-form
  1383. def : InstRW<[A64FXWrite_PMUL],
  1384. (instregex "^(P?MUL|SQR?DMUL)" #
  1385. "(v8i8|v4i16|v2i32|v1i8|v1i16|v1i32|v1i64)" #
  1386. "(_indexed)?$")>;
  1387. // ASIMD multiply, Q-form
  1388. def : InstRW<[A64FXWrite_PMUL],
  1389. (instregex "^(P?MUL)(v16i8|v8i16|v4i32)(_indexed)?$")>;
  1390. // ASIMD multiply, Q-form
  1391. def : InstRW<[A64FXWrite_SQRDMULH],
  1392. (instregex "^(SQR?DMULH)(v16i8|v8i16|v4i32)(_indexed)?$")>;
  1393. // ASIMD multiply accumulate, D-form
  1394. def : InstRW<[A64FXWrite_9Cyc_GI03],
  1395. (instregex "^ML[AS](v8i8|v4i16|v2i32)(_indexed)?$")>;
  1396. // ASIMD multiply accumulate, Q-form
  1397. def : InstRW<[A64FXWrite_9Cyc_GI03],
  1398. (instregex "^ML[AS](v16i8|v8i16|v4i32)(_indexed)?$")>;
  1399. // ASIMD shift accumulate
  1400. def : InstRW<[A64FXWrite_SRSRAV],
  1401. (instregex "SRSRAv", "URSRAv")>;
  1402. def : InstRW<[A64FXWrite_SSRAV],
  1403. (instregex "SSRAv", "USRAv")>;
  1404. // ASIMD shift by immed, basic
  1405. def : InstRW<[A64FXWrite_RSHRN],
  1406. (instregex "RSHRNv", "SQRSHRNv", "SQRSHRUNv", "UQRSHRNv")>;
  1407. def : InstRW<[A64FXWrite_SHRN],
  1408. (instregex "SHRNv", "SQSHRNv", "SQSHRUNv", "UQSHRNv")>;
  1409. def : InstRW<[A64FXWrite_6Cyc_GI3],
  1410. (instregex "SQXTNv", "SQXTUNv", "UQXTNv")>;
  1411. // ASIMD shift by immed, complex
  1412. def : InstRW<[A64FXWrite_ABA], (instregex "^[SU]?(Q|R){1,2}SHR")>;
  1413. def : InstRW<[A64FXWrite_6Cyc_GI3], (instregex "^SQSHLU")>;
  1414. // ASIMD shift by register, basic, Q-form
  1415. def : InstRW<[A64FXWrite_6Cyc_GI3],
  1416. (instregex "^[SU]SHL(v16i8|v8i16|v4i32|v2i64)")>;
  1417. // ASIMD shift by register, complex, D-form
  1418. def : InstRW<[A64FXWrite_6Cyc_GI3],
  1419. (instregex "^[SU][QR]{1,2}SHL" #
  1420. "(v1i8|v1i16|v1i32|v1i64|v8i8|v4i16|v2i32|b|d|h|s)")>;
  1421. // ASIMD shift by register, complex, Q-form
  1422. def : InstRW<[A64FXWrite_6Cyc_GI3],
  1423. (instregex "^[SU][QR]{1,2}SHL(v16i8|v8i16|v4i32|v2i64)")>;
  1424. // ASIMD Arithmetic
  1425. def : InstRW<[A64FXWrite_4Cyc_GI03],
  1426. (instregex "(ADD|SUB)(v8i8|v4i16|v2i32|v1i64)")>;
  1427. def : InstRW<[A64FXWrite_4Cyc_GI03],
  1428. (instregex "(ADD|SUB)(v16i8|v8i16|v4i32|v2i64)")>;
  1429. def : InstRW<[A64FXWrite_SHRN], (instregex "(ADD|SUB)HNv.*")>;
  1430. def : InstRW<[A64FXWrite_RSHRN], (instregex "(RADD|RSUB)HNv.*")>;
  1431. def : InstRW<[A64FXWrite_4Cyc_GI03],
  1432. (instregex "^SQADD", "^SQNEG", "^SQSUB", "^SRHADD",
  1433. "^SUQADD", "^UQADD", "^UQSUB", "^URHADD", "^USQADD")>;
  1434. def : InstRW<[A64FXWrite_ADDP],
  1435. (instregex "ADDP(v16i8|v8i16|v4i32|v2i64)")>;
  1436. def : InstRW<[A64FXWrite_4Cyc_GI03],
  1437. (instregex "((AND|ORN|EOR|EON)S?(Xr[rsi]|v16i8|v8i16|v4i32)|" #
  1438. "(ORR|BIC)S?(Xr[rs]|v16i8|v8i16|v4i32))")>;
  1439. def : InstRW<[A64FXWrite_4Cyc_GI0],
  1440. (instregex "(CLS|CLZ|CNT)(v4i32|v8i16|v16i8)")>;
  1441. def : InstRW<[A64FXWrite_SADALP], (instregex "^SADALP", "^UADALP")>;
  1442. def : InstRW<[A64FXWrite_SADDLP], (instregex "^SADDLPv", "^UADDLPv")>;
  1443. def : InstRW<[A64FXWrite_ADDLV1], (instregex "^SADDLV", "^UADDLV")>;
  1444. def : InstRW<[A64FXWrite_MINMAXV],
  1445. (instregex "^ADDVv", "^SMAXVv", "^UMAXVv", "^SMINVv", "^UMINVv")>;
  1446. def : InstRW<[A64FXWrite_ABA],
  1447. (instregex "^SABAv", "^UABAv", "^SABALv", "^UABALv")>;
  1448. def : InstRW<[A64FXWrite_4Cyc_GI03],
  1449. (instregex "^SQADDv", "^SQSUBv", "^UQADDv", "^UQSUBv")>;
  1450. def : InstRW<[A64FXWrite_4Cyc_GI03], (instregex "^SUQADDv", "^USQADDv")>;
  1451. def : InstRW<[A64FXWrite_SHRN],
  1452. (instregex "^ADDHNv", "^SUBHNv")>;
  1453. def : InstRW<[A64FXWrite_RSHRN],
  1454. (instregex "^RADDHNv", "^RSUBHNv")>;
  1455. def : InstRW<[A64FXWrite_4Cyc_GI03],
  1456. (instregex "^SQABS", "^SQADD", "^SQNEG", "^SQSUB",
  1457. "^SRHADD", "^SUQADD", "^UQADD", "^UQSUB",
  1458. "^URHADD", "^USQADD")>;
  1459. def : InstRW<[A64FXWrite_4Cyc_GI03],
  1460. (instregex "^CMEQv", "^CMGEv", "^CMGTv",
  1461. "^CMLEv", "^CMLTv", "^CMHIv", "^CMHSv")>;
  1462. def : InstRW<[A64FXWrite_MINMAXV],
  1463. (instregex "^SMAXv", "^SMINv", "^UMAXv", "^UMINv")>;
  1464. def : InstRW<[A64FXWrite_ADDP],
  1465. (instregex "^SMAXPv", "^SMINPv", "^UMAXPv", "^UMINPv")>;
  1466. def : InstRW<[A64FXWrite_4Cyc_GI03],
  1467. (instregex "^SABDv", "^UABDv")>;
  1468. def : InstRW<[A64FXWrite_TBX1],
  1469. (instregex "^SABDLv", "^UABDLv")>;
  1470. //---
  1471. // 3.13 ASIMD Floating-point Instructions
  1472. //---
  1473. // ASIMD FP absolute value
  1474. def : InstRW<[A64FXWrite_4Cyc_GI03], (instregex "^FABSv")>;
  1475. // ASIMD FP arith, normal, D-form
  1476. // ASIMD FP arith, normal, Q-form
  1477. def : InstRW<[A64FXWrite_9Cyc_GI03],
  1478. (instregex "^FABDv", "^FADDv", "^FSUBv")>;
  1479. // ASIMD FP arith, pairwise, D-form
  1480. // ASIMD FP arith, pairwise, Q-form
  1481. def : InstRW<[A64FXWrite_FADDPV], (instregex "^FADDPv")>;
  1482. // ASIMD FP compare, D-form
  1483. // ASIMD FP compare, Q-form
  1484. def : InstRW<[A64FXWrite_4Cyc_GI03], (instregex "^FACGEv", "^FACGTv")>;
  1485. def : InstRW<[A64FXWrite_4Cyc_GI03], (instregex "^FCMEQv", "^FCMGEv",
  1486. "^FCMGTv", "^FCMLEv",
  1487. "^FCMLTv")>;
  1488. // ASIMD FP round, D-form
  1489. def : InstRW<[A64FXWrite_9Cyc_GI03],
  1490. (instregex "^FRINT[AIMNPXZ](v2f32)")>;
  1491. // ASIMD FP round, Q-form
  1492. def : InstRW<[A64FXWrite_9Cyc_GI03],
  1493. (instregex "^FRINT[AIMNPXZ](v4f32|v2f64)")>;
  1494. // ASIMD FP convert, long
  1495. // ASIMD FP convert, narrow
  1496. // ASIMD FP convert, other, D-form
  1497. // ASIMD FP convert, other, Q-form
  1498. // ASIMD FP convert, long and narrow
  1499. def : InstRW<[A64FXWrite_FCVTXNV], (instregex "^FCVT(L|N|XN)v")>;
  1500. // ASIMD FP convert, other, D-form
  1501. def : InstRW<[A64FXWrite_FCVTXNV],
  1502. (instregex "^[FVSU]CVT([AMNPZ][SU])?(_Int)?(v2f32|v1i32|v2i32|v1i64)")>;
  1503. // ASIMD FP convert, other, Q-form
  1504. def : InstRW<[A64FXWrite_FCVTXNV],
  1505. (instregex "^[FVSU]CVT([AMNPZ][SU])?(_Int)?(v4f32|v2f64|v4i32|v2i64)")>;
  1506. // ASIMD FP divide, D-form, F32
  1507. def : InstRW<[A64FXXWriteFDivSP], (instrs FDIVv2f32)>;
  1508. def : InstRW<[A64FXXWriteFDivSP], (instregex "FDIVv2f32")>;
  1509. // ASIMD FP divide, Q-form, F32
  1510. def : InstRW<[A64FXXWriteFDiv], (instrs FDIVv4f32)>;
  1511. def : InstRW<[A64FXXWriteFDiv], (instregex "FDIVv4f32")>;
  1512. // ASIMD FP divide, Q-form, F64
  1513. def : InstRW<[A64FXXWriteFDivDP], (instrs FDIVv2f64)>;
  1514. def : InstRW<[A64FXXWriteFDivDP], (instregex "FDIVv2f64")>;
  1515. // ASIMD FP max/min, normal, D-form
  1516. // ASIMD FP max/min, normal, Q-form
  1517. def : InstRW<[A64FXWrite_4Cyc_GI0], (instregex "^FMAXv", "^FMAXNMv",
  1518. "^FMINv", "^FMINNMv")>;
  1519. // ASIMD FP max/min, pairwise, D-form
  1520. // ASIMD FP max/min, pairwise, Q-form
  1521. def : InstRW<[A64FXWrite_ADDP], (instregex "^FMAXPv", "^FMAXNMPv",
  1522. "^FMINPv", "^FMINNMPv")>;
  1523. // ASIMD FP max/min, reduce
  1524. def : InstRW<[A64FXWrite_FMAXVVH], (instregex "^FMAXVv", "^FMAXNMVv",
  1525. "^FMINVv", "^FMINNMVv")>;
  1526. // ASIMD FP multiply, D-form, FZ
  1527. // ASIMD FP multiply, D-form, no FZ
  1528. // ASIMD FP multiply, Q-form, FZ
  1529. // ASIMD FP multiply, Q-form, no FZ
  1530. def : InstRW<[A64FXWrite_9Cyc_GI03], (instregex "^FMULv", "^FMULXv")>;
  1531. def : InstRW<[A64FXWrite_FMULXE],
  1532. (instregex "^FMULX?(v2f32|v1i32|v2i32|v1i64|32|64)")>;
  1533. def : InstRW<[A64FXWrite_FMULXE],
  1534. (instregex "^FMULX?(v4f32|v2f64|v4i32|v2i64)")>;
  1535. // ASIMD FP multiply accumulate, Dform, FZ
  1536. // ASIMD FP multiply accumulate, Dform, no FZ
  1537. // ASIMD FP multiply accumulate, Qform, FZ
  1538. // ASIMD FP multiply accumulate, Qform, no FZ
  1539. def : InstRW<[A64FXWrite_9Cyc_GI03], (instregex "^FMLAv", "^FMLSv")>;
  1540. def : InstRW<[A64FXWrite_FMULXE],
  1541. (instregex "^FML[AS](v2f32|v1i32|v2i32|v1i64)")>;
  1542. def : InstRW<[A64FXWrite_FMULXE],
  1543. (instregex "^FML[AS](v4f32|v2f64|v4i32|v2i64)")>;
  1544. // ASIMD FP negate
  1545. def : InstRW<[A64FXWrite_4Cyc_GI03], (instregex "^FNEGv")>;
  1546. //--
  1547. // 3.14 ASIMD Miscellaneous Instructions
  1548. //--
  1549. // ASIMD bit reverse
  1550. def : InstRW<[A64FXWrite_1Cyc_GI2456], (instregex "^RBITv")>;
  1551. // ASIMD bitwise insert, D-form
  1552. // ASIMD bitwise insert, Q-form
  1553. def : InstRW<[A64FXWrite_BIF],
  1554. (instregex "^BIFv", "^BITv", "^BSLv")>;
  1555. // ASIMD count, D-form
  1556. // ASIMD count, Q-form
  1557. def : InstRW<[A64FXWrite_4Cyc_GI0],
  1558. (instregex "^CLSv", "^CLZv", "^CNTv")>;
  1559. // ASIMD duplicate, gen reg
  1560. // ASIMD duplicate, element
  1561. def : InstRW<[A64FXWrite_DUPGENERAL], (instregex "^DUPv")>;
  1562. def : InstRW<[A64FXWrite_6Cyc_GI0], (instregex "^DUP(i8|i16|i32|i64)$")>;
  1563. def : InstRW<[A64FXWrite_6Cyc_GI0], (instregex "^DUPv.+gpr")>;
  1564. // ASIMD extract
  1565. def : InstRW<[A64FXWrite_6Cyc_GI0], (instregex "^EXTv")>;
  1566. // ASIMD extract narrow
  1567. def : InstRW<[A64FXWrite_6Cyc_GI3], (instregex "^XTNv")>;
  1568. // ASIMD extract narrow, saturating
  1569. def : InstRW<[A64FXWrite_6Cyc_GI3],
  1570. (instregex "^SQXTNv", "^SQXTUNv", "^UQXTNv")>;
  1571. // ASIMD insert, element to element
  1572. def : InstRW<[A64FXWrite_6Cyc_GI0], (instregex "^INSv")>;
  1573. // ASIMD transfer, element to gen reg
  1574. def : InstRW<[A64FXWrite_SMOV], (instregex "^[SU]MOVv")>;
  1575. // ASIMD move, integer immed
  1576. def : InstRW<[A64FXWrite_4Cyc_GI0], (instregex "^MOVIv")>;
  1577. // ASIMD move, FP immed
  1578. def : InstRW<[A64FXWrite_4Cyc_GI0], (instregex "^FMOVv")>;
  1579. // ASIMD table lookup, D-form
  1580. def : InstRW<[A64FXWrite_6Cyc_GI3], (instregex "^TBLv8i8One")>;
  1581. def : InstRW<[A64FXWrite_TBX1], (instregex "^TBLv8i8Two")>;
  1582. def : InstRW<[A64FXWrite_TBX2], (instregex "^TBLv8i8Three")>;
  1583. def : InstRW<[A64FXWrite_TBX3], (instregex "^TBLv8i8Four")>;
  1584. def : InstRW<[A64FXWrite_TBX1], (instregex "^TBXv8i8One")>;
  1585. def : InstRW<[A64FXWrite_TBX2], (instregex "^TBXv8i8Two")>;
  1586. def : InstRW<[A64FXWrite_TBX3], (instregex "^TBXv8i8Three")>;
  1587. def : InstRW<[A64FXWrite_TBX4], (instregex "^TBXv8i8Four")>;
  1588. // ASIMD table lookup, Q-form
  1589. def : InstRW<[A64FXWrite_6Cyc_GI3], (instregex "^TBLv16i8One")>;
  1590. def : InstRW<[A64FXWrite_TBX1], (instregex "^TBLv16i8Two")>;
  1591. def : InstRW<[A64FXWrite_TBX2], (instregex "^TBLv16i8Three")>;
  1592. def : InstRW<[A64FXWrite_TBX3], (instregex "^TBLv16i8Four")>;
  1593. def : InstRW<[A64FXWrite_TBX1], (instregex "^TBXv16i8One")>;
  1594. def : InstRW<[A64FXWrite_TBX2], (instregex "^TBXv16i8Two")>;
  1595. def : InstRW<[A64FXWrite_TBX3], (instregex "^TBXv16i8Three")>;
  1596. def : InstRW<[A64FXWrite_TBX4], (instregex "^TBXv16i8Four")>;
  1597. // ASIMD transpose
  1598. def : InstRW<[A64FXWrite_6Cyc_GI0], (instregex "^TRN1", "^TRN2")>;
  1599. // ASIMD unzip/zip
  1600. def : InstRW<[A64FXWrite_6Cyc_GI0],
  1601. (instregex "^UZP1", "^UZP2", "^ZIP1", "^ZIP2")>;
  1602. // ASIMD reciprocal estimate, D-form
  1603. // ASIMD reciprocal estimate, Q-form
  1604. def : InstRW<[A64FXWrite_4Cyc_GI03],
  1605. (instregex "^FRECPEv", "^FRECPXv", "^URECPEv",
  1606. "^FRSQRTEv", "^URSQRTEv")>;
  1607. // ASIMD reciprocal step, D-form, FZ
  1608. // ASIMD reciprocal step, D-form, no FZ
  1609. // ASIMD reciprocal step, Q-form, FZ
  1610. // ASIMD reciprocal step, Q-form, no FZ
  1611. def : InstRW<[A64FXWrite_9Cyc_GI0], (instregex "^FRECPSv", "^FRSQRTSv")>;
  1612. // ASIMD reverse
  1613. def : InstRW<[A64FXWrite_4Cyc_GI03],
  1614. (instregex "^REV16v", "^REV32v", "^REV64v")>;
  1615. // ASIMD table lookup, D-form
  1616. // ASIMD table lookup, Q-form
  1617. def : InstRW<[A64FXWrite_6Cyc_GI0], (instregex "^TBLv", "^TBXv")>;
  1618. // ASIMD transfer, element to word or word
  1619. def : InstRW<[A64FXWrite_SMOV], (instregex "^[SU]MOVv")>;
  1620. // ASIMD transfer, element to gen reg
  1621. def : InstRW<[A64FXWrite_SMOV], (instregex "(S|U)MOVv.*")>;
  1622. // ASIMD transfer gen reg to element
  1623. def : InstRW<[A64FXWrite_6Cyc_GI0], (instregex "^INSv")>;
  1624. // ASIMD transpose
  1625. def : InstRW<[A64FXWrite_6Cyc_GI0], (instregex "^TRN1v", "^TRN2v",
  1626. "^UZP1v", "^UZP2v")>;
  1627. // ASIMD unzip/zip
  1628. def : InstRW<[A64FXWrite_6Cyc_GI0], (instregex "^ZIP1v", "^ZIP2v")>;
  1629. //--
  1630. // 3.15 ASIMD Load Instructions
  1631. //--
  1632. // ASIMD load, 1 element, multiple, 1 reg, D-form
  1633. // ASIMD load, 1 element, multiple, 1 reg, Q-form
  1634. def : InstRW<[A64FXWrite_8Cyc_GI56],
  1635. (instregex "^LD1Onev(8b|4h|2s|1d|2d)$")>;
  1636. def : InstRW<[A64FXWrite_11Cyc_GI56],
  1637. (instregex "^LD1Onev(16b|8h|4s)$")>;
  1638. def : InstRW<[A64FXWrite_LD108, WriteAdr],
  1639. (instregex "^LD1Onev(8b|4h|2s|1d|2d)_POST$")>;
  1640. def : InstRW<[A64FXWrite_LD109, WriteAdr],
  1641. (instregex "^LD1Onev(16b|8h|4s)_POST$")>;
  1642. // ASIMD load, 1 element, multiple, 2 reg, D-form
  1643. // ASIMD load, 1 element, multiple, 2 reg, Q-form
  1644. def : InstRW<[A64FXWrite_LD102],
  1645. (instregex "^LD1Twov(8b|4h|2s|1d|2d)$")>;
  1646. def : InstRW<[A64FXWrite_LD103],
  1647. (instregex "^LD1Twov(16b|8h|4s)$")>;
  1648. def : InstRW<[A64FXWrite_LD110, WriteAdr],
  1649. (instregex "^LD1Twov(8b|4h|2s|1d|2d)_POST$")>;
  1650. def : InstRW<[A64FXWrite_LD111, WriteAdr],
  1651. (instregex "^LD1Twov(16b|8h|4s)_POST$")>;
  1652. // ASIMD load, 1 element, multiple, 3 reg, D-form
  1653. // ASIMD load, 1 element, multiple, 3 reg, Q-form
  1654. def : InstRW<[A64FXWrite_LD104],
  1655. (instregex "^LD1Threev(8b|4h|2s|1d|2d)$")>;
  1656. def : InstRW<[A64FXWrite_LD105],
  1657. (instregex "^LD1Threev(16b|8h|4s)$")>;
  1658. def : InstRW<[A64FXWrite_LD112, WriteAdr],
  1659. (instregex "^LD1Threev(8b|4h|2s|1d|2d)_POST$")>;
  1660. def : InstRW<[A64FXWrite_LD113, WriteAdr],
  1661. (instregex "^LD1Threev(16b|8h|4s)_POST$")>;
  1662. // ASIMD load, 1 element, multiple, 4 reg, D-form
  1663. // ASIMD load, 1 element, multiple, 4 reg, Q-form
  1664. def : InstRW<[A64FXWrite_LD106],
  1665. (instregex "^LD1Fourv(8b|4h|2s|1d|2d)$")>;
  1666. def : InstRW<[A64FXWrite_LD107],
  1667. (instregex "^LD1Fourv(16b|8h|4s)$")>;
  1668. def : InstRW<[A64FXWrite_LD114, WriteAdr],
  1669. (instregex "^LD1Fourv(8b|4h|2s|1d|2d)_POST$")>;
  1670. def : InstRW<[A64FXWrite_LD115, WriteAdr],
  1671. (instregex "^LD1Fourv(16b|8h|4s)_POST$")>;
  1672. // ASIMD load, 1 element, one lane, B/H/S
  1673. // ASIMD load, 1 element, one lane, D
  1674. def : InstRW<[A64FXWrite_LD1I0], (instregex "^LD1i(8|16|32|64)$")>;
  1675. def : InstRW<[A64FXWrite_LD1I1, WriteAdr],
  1676. (instregex "^LD1i(8|16|32|64)_POST$")>;
  1677. // ASIMD load, 1 element, all lanes, D-form, B/H/S
  1678. // ASIMD load, 1 element, all lanes, D-form, D
  1679. // ASIMD load, 1 element, all lanes, Q-form
  1680. def : InstRW<[A64FXWrite_8Cyc_GI03],
  1681. (instregex "^LD1Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  1682. def : InstRW<[A64FXWrite_LD108, WriteAdr],
  1683. (instregex "^LD1Rv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  1684. // ASIMD load, 2 element, multiple, D-form, B/H/S
  1685. // ASIMD load, 2 element, multiple, Q-form, D
  1686. def : InstRW<[A64FXWrite_LD103],
  1687. (instregex "^LD2Twov(8b|4h|2s|16b|8h|4s|2d)$")>;
  1688. def : InstRW<[A64FXWrite_LD111, WriteAdr],
  1689. (instregex "^LD2Twov(8b|4h|2s|16b|8h|4s|2d)_POST$")>;
  1690. // ASIMD load, 2 element, one lane, B/H
  1691. // ASIMD load, 2 element, one lane, S
  1692. // ASIMD load, 2 element, one lane, D
  1693. def : InstRW<[A64FXWrite_LD2I0], (instregex "^LD2i(8|16|32|64)$")>;
  1694. def : InstRW<[A64FXWrite_LD2I1, WriteAdr],
  1695. (instregex "^LD2i(8|16|32|64)_POST$")>;
  1696. // ASIMD load, 2 element, all lanes, D-form, B/H/S
  1697. // ASIMD load, 2 element, all lanes, D-form, D
  1698. // ASIMD load, 2 element, all lanes, Q-form
  1699. def : InstRW<[A64FXWrite_LD102],
  1700. (instregex "^LD2Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  1701. def : InstRW<[A64FXWrite_LD110, WriteAdr],
  1702. (instregex "^LD2Rv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  1703. // ASIMD load, 3 element, multiple, D-form, B/H/S
  1704. // ASIMD load, 3 element, multiple, Q-form, B/H/S
  1705. // ASIMD load, 3 element, multiple, Q-form, D
  1706. def : InstRW<[A64FXWrite_LD105],
  1707. (instregex "^LD3Threev(8b|4h|2s|16b|8h|4s|2d)$")>;
  1708. def : InstRW<[A64FXWrite_LD113, WriteAdr],
  1709. (instregex "^LD3Threev(8b|4h|2s|16b|8h|4s|2d)_POST$")>;
  1710. // ASIMD load, 3 element, one lone, B/H
  1711. // ASIMD load, 3 element, one lane, S
  1712. // ASIMD load, 3 element, one lane, D
  1713. def : InstRW<[A64FXWrite_LD3I0], (instregex "^LD3i(8|16|32|64)$")>;
  1714. def : InstRW<[A64FXWrite_LD3I1, WriteAdr],
  1715. (instregex "^LD3i(8|16|32|64)_POST$")>;
  1716. // ASIMD load, 3 element, all lanes, D-form, B/H/S
  1717. // ASIMD load, 3 element, all lanes, D-form, D
  1718. // ASIMD load, 3 element, all lanes, Q-form, B/H/S
  1719. // ASIMD load, 3 element, all lanes, Q-form, D
  1720. def : InstRW<[A64FXWrite_LD104],
  1721. (instregex "^LD3Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  1722. def : InstRW<[A64FXWrite_LD112, WriteAdr],
  1723. (instregex "^LD3Rv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  1724. // ASIMD load, 4 element, multiple, D-form, B/H/S
  1725. // ASIMD load, 4 element, multiple, Q-form, B/H/S
  1726. // ASIMD load, 4 element, multiple, Q-form, D
  1727. def : InstRW<[A64FXWrite_LD107],
  1728. (instregex "^LD4Fourv(8b|4h|2s|16b|8h|4s|2d)$")>;
  1729. def : InstRW<[A64FXWrite_LD115, WriteAdr],
  1730. (instregex "^LD4Fourv(8b|4h|2s|16b|8h|4s|2d)_POST$")>;
  1731. // ASIMD load, 4 element, one lane, B/H
  1732. // ASIMD load, 4 element, one lane, S
  1733. // ASIMD load, 4 element, one lane, D
  1734. def : InstRW<[A64FXWrite_LD4I0], (instregex "^LD4i(8|16|32|64)$")>;
  1735. def : InstRW<[A64FXWrite_LD4I1, WriteAdr],
  1736. (instregex "^LD4i(8|16|32|64)_POST$")>;
  1737. // ASIMD load, 4 element, all lanes, D-form, B/H/S
  1738. // ASIMD load, 4 element, all lanes, D-form, D
  1739. // ASIMD load, 4 element, all lanes, Q-form, B/H/S
  1740. // ASIMD load, 4 element, all lanes, Q-form, D
  1741. def : InstRW<[A64FXWrite_LD106],
  1742. (instregex "^LD4Rv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  1743. def : InstRW<[A64FXWrite_LD114, WriteAdr],
  1744. (instregex "^LD4Rv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  1745. //--
  1746. // 3.16 ASIMD Store Instructions
  1747. //--
  1748. // ASIMD store, 1 element, multiple, 1 reg, D-form
  1749. // ASIMD store, 1 element, multiple, 1 reg, Q-form
  1750. def : InstRW<[A64FXWrite_ST10],
  1751. (instregex "^ST1Onev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  1752. def : InstRW<[A64FXWrite_ST14, WriteAdr],
  1753. (instregex "^ST1Onev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  1754. // ASIMD store, 1 element, multiple, 2 reg, D-form
  1755. // ASIMD store, 1 element, multiple, 2 reg, Q-form
  1756. def : InstRW<[A64FXWrite_ST11],
  1757. (instregex "^ST1Twov(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  1758. def : InstRW<[A64FXWrite_ST15, WriteAdr],
  1759. (instregex "^ST1Twov(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  1760. // ASIMD store, 1 element, multiple, 3 reg, D-form
  1761. // ASIMD store, 1 element, multiple, 3 reg, Q-form
  1762. def : InstRW<[A64FXWrite_ST12],
  1763. (instregex "^ST1Threev(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  1764. def : InstRW<[A64FXWrite_ST16, WriteAdr],
  1765. (instregex "^ST1Threev(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  1766. // ASIMD store, 1 element, multiple, 4 reg, D-form
  1767. // ASIMD store, 1 element, multiple, 4 reg, Q-form
  1768. def : InstRW<[A64FXWrite_ST13],
  1769. (instregex "^ST1Fourv(8b|4h|2s|1d|16b|8h|4s|2d)$")>;
  1770. def : InstRW<[A64FXWrite_ST17, WriteAdr],
  1771. (instregex "^ST1Fourv(8b|4h|2s|1d|16b|8h|4s|2d)_POST$")>;
  1772. // ASIMD store, 1 element, one lane, B/H/S
  1773. // ASIMD store, 1 element, one lane, D
  1774. def : InstRW<[A64FXWrite_ST10],
  1775. (instregex "^ST1i(8|16|32|64)$")>;
  1776. def : InstRW<[A64FXWrite_ST14, WriteAdr],
  1777. (instregex "^ST1i(8|16|32|64)_POST$")>;
  1778. // ASIMD store, 2 element, multiple, D-form, B/H/S
  1779. // ASIMD store, 2 element, multiple, Q-form, B/H/S
  1780. // ASIMD store, 2 element, multiple, Q-form, D
  1781. def : InstRW<[A64FXWrite_ST11],
  1782. (instregex "^ST2Twov(8b|4h|2s|16b|8h|4s|2d)$")>;
  1783. def : InstRW<[A64FXWrite_ST15, WriteAdr],
  1784. (instregex "^ST2Twov(8b|4h|2s|16b|8h|4s|2d)_POST$")>;
  1785. // ASIMD store, 2 element, one lane, B/H/S
  1786. // ASIMD store, 2 element, one lane, D
  1787. def : InstRW<[A64FXWrite_ST11],
  1788. (instregex "^ST2i(8|16|32|64)$")>;
  1789. def : InstRW<[A64FXWrite_ST15, WriteAdr],
  1790. (instregex "^ST2i(8|16|32|64)_POST$")>;
  1791. // ASIMD store, 3 element, multiple, D-form, B/H/S
  1792. // ASIMD store, 3 element, multiple, Q-form, B/H/S
  1793. // ASIMD store, 3 element, multiple, Q-form, D
  1794. def : InstRW<[A64FXWrite_ST12],
  1795. (instregex "^ST3Threev(8b|4h|2s|16b|8h|4s|2d)$")>;
  1796. def : InstRW<[A64FXWrite_ST16, WriteAdr],
  1797. (instregex "^ST3Threev(8b|4h|2s|16b|8h|4s|2d)_POST$")>;
  1798. // ASIMD store, 3 element, one lane, B/H
  1799. // ASIMD store, 3 element, one lane, S
  1800. // ASIMD store, 3 element, one lane, D
  1801. def : InstRW<[A64FXWrite_ST12], (instregex "^ST3i(8|16|32|64)$")>;
  1802. def : InstRW<[A64FXWrite_ST16, WriteAdr],
  1803. (instregex "^ST3i(8|16|32|64)_POST$")>;
  1804. // ASIMD store, 4 element, multiple, D-form, B/H/S
  1805. // ASIMD store, 4 element, multiple, Q-form, B/H/S
  1806. // ASIMD store, 4 element, multiple, Q-form, D
  1807. def : InstRW<[A64FXWrite_ST13],
  1808. (instregex "^ST4Fourv(8b|4h|2s|16b|8h|4s|2d)$")>;
  1809. def : InstRW<[A64FXWrite_ST17, WriteAdr],
  1810. (instregex "^ST4Fourv(8b|4h|2s|16b|8h|4s|2d)_POST$")>;
  1811. // ASIMD store, 4 element, one lane, B/H
  1812. // ASIMD store, 4 element, one lane, S
  1813. // ASIMD store, 4 element, one lane, D
  1814. def : InstRW<[A64FXWrite_ST13], (instregex "^ST4i(8|16|32|64)$")>;
  1815. def : InstRW<[A64FXWrite_ST17, WriteAdr],
  1816. (instregex "^ST4i(8|16|32|64)_POST$")>;
  1817. // V8.1a Atomics (LSE)
  1818. def : InstRW<[A64FXWrite_CAS, WriteAtomic],
  1819. (instrs CASB, CASH, CASW, CASX)>;
  1820. def : InstRW<[A64FXWrite_CAS, WriteAtomic],
  1821. (instrs CASAB, CASAH, CASAW, CASAX)>;
  1822. def : InstRW<[A64FXWrite_CAS, WriteAtomic],
  1823. (instrs CASLB, CASLH, CASLW, CASLX)>;
  1824. def : InstRW<[A64FXWrite_CAS, WriteAtomic],
  1825. (instrs CASALB, CASALH, CASALW, CASALX)>;
  1826. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1827. (instrs LDLARB, LDLARH, LDLARW, LDLARX)>;
  1828. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1829. (instrs LDADDB, LDADDH, LDADDW, LDADDX)>;
  1830. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1831. (instrs LDADDAB, LDADDAH, LDADDAW, LDADDAX)>;
  1832. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1833. (instrs LDADDLB, LDADDLH, LDADDLW, LDADDLX)>;
  1834. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1835. (instrs LDADDALB, LDADDALH, LDADDALW, LDADDALX)>;
  1836. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1837. (instrs LDCLRB, LDCLRH, LDCLRW, LDCLRX)>;
  1838. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1839. (instrs LDCLRAB, LDCLRAH, LDCLRAW, LDCLRAX)>;
  1840. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1841. (instrs LDCLRLB, LDCLRLH, LDCLRLW, LDCLRLX)>;
  1842. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1843. (instrs LDCLRALB, LDCLRALH, LDCLRALW, LDCLRALX)>;
  1844. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1845. (instrs LDEORB, LDEORH, LDEORW, LDEORX)>;
  1846. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1847. (instrs LDEORAB, LDEORAH, LDEORAW, LDEORAX)>;
  1848. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1849. (instrs LDEORLB, LDEORLH, LDEORLW, LDEORLX)>;
  1850. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1851. (instrs LDEORALB, LDEORALH, LDEORALW, LDEORALX)>;
  1852. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1853. (instrs LDSETB, LDSETH, LDSETW, LDSETX)>;
  1854. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1855. (instrs LDSETAB, LDSETAH, LDSETAW, LDSETAX)>;
  1856. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1857. (instrs LDSETLB, LDSETLH, LDSETLW, LDSETLX)>;
  1858. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1859. (instrs LDSETALB, LDSETALH, LDSETALW, LDSETALX)>;
  1860. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1861. (instrs LDSMAXB, LDSMAXH, LDSMAXW, LDSMAXX,
  1862. LDSMAXAB, LDSMAXAH, LDSMAXAW, LDSMAXAX,
  1863. LDSMAXLB, LDSMAXLH, LDSMAXLW, LDSMAXLX,
  1864. LDSMAXALB, LDSMAXALH, LDSMAXALW, LDSMAXALX)>;
  1865. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1866. (instrs LDSMINB, LDSMINH, LDSMINW, LDSMINX,
  1867. LDSMINAB, LDSMINAH, LDSMINAW, LDSMINAX,
  1868. LDSMINLB, LDSMINLH, LDSMINLW, LDSMINLX,
  1869. LDSMINALB, LDSMINALH, LDSMINALW, LDSMINALX)>;
  1870. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1871. (instrs LDUMAXB, LDUMAXH, LDUMAXW, LDUMAXX,
  1872. LDUMAXAB, LDUMAXAH, LDUMAXAW, LDUMAXAX,
  1873. LDUMAXLB, LDUMAXLH, LDUMAXLW, LDUMAXLX,
  1874. LDUMAXALB, LDUMAXALH, LDUMAXALW, LDUMAXALX)>;
  1875. def : InstRW<[A64FXWrite_5Cyc_GI5, WriteAtomic],
  1876. (instrs LDUMINB, LDUMINH, LDUMINW, LDUMINX,
  1877. LDUMINAB, LDUMINAH, LDUMINAW, LDUMINAX,
  1878. LDUMINLB, LDUMINLH, LDUMINLW, LDUMINLX,
  1879. LDUMINALB, LDUMINALH, LDUMINALW, LDUMINALX)>;
  1880. def : InstRW<[A64FXWrite_SWP, WriteAtomic],
  1881. (instrs SWPB, SWPH, SWPW, SWPX)>;
  1882. def : InstRW<[A64FXWrite_SWP, WriteAtomic],
  1883. (instrs SWPAB, SWPAH, SWPAW, SWPAX)>;
  1884. def : InstRW<[A64FXWrite_SWP, WriteAtomic],
  1885. (instrs SWPLB, SWPLH, SWPLW, SWPLX)>;
  1886. def : InstRW<[A64FXWrite_SWP, WriteAtomic],
  1887. (instrs SWPALB, SWPALH, SWPALW, SWPALX)>;
  1888. def : InstRW<[A64FXWrite_STUR, WriteAtomic],
  1889. (instrs STLLRB, STLLRH, STLLRW, STLLRX)>;
  1890. // [ 1] "abs $Zd, $Pg/m, $Zn";
  1891. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ABS_ZPmZ_B, ABS_ZPmZ_D, ABS_ZPmZ_H, ABS_ZPmZ_S)>;
  1892. // [ 2] "add $Zd, $Zn, $Zm";
  1893. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ADD_ZZZ_B, ADD_ZZZ_D, ADD_ZZZ_H, ADD_ZZZ_S)>;
  1894. // [ 3] "add $Zdn, $Pg/m, $_Zdn, $Zm";
  1895. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ADD_ZPmZ_B, ADD_ZPmZ_D, ADD_ZPmZ_H, ADD_ZPmZ_S)>;
  1896. // [ 4] "add $Zdn, $_Zdn, $imm";
  1897. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ADD_ZI_B, ADD_ZI_D, ADD_ZI_H, ADD_ZI_S)>;
  1898. // [ 5] "addpl $Rd, $Rn, $imm6";
  1899. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs ADDPL_XXI)>;
  1900. // [ 6] "addvl $Rd, $Rn, $imm6";
  1901. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs ADDVL_XXI)>;
  1902. // [ 7] "adr $Zd, [$Zn, $Zm]";
  1903. def : InstRW<[A64FXWrite_5Cyc_GI0], (instrs ADR_LSL_ZZZ_D_0, ADR_LSL_ZZZ_D_1, ADR_LSL_ZZZ_D_2, ADR_LSL_ZZZ_D_3, ADR_LSL_ZZZ_S_0, ADR_LSL_ZZZ_S_1, ADR_LSL_ZZZ_S_2, ADR_LSL_ZZZ_S_3, ADR_SXTW_ZZZ_D_0, ADR_SXTW_ZZZ_D_1, ADR_SXTW_ZZZ_D_2, ADR_SXTW_ZZZ_D_3, ADR_UXTW_ZZZ_D_0, ADR_UXTW_ZZZ_D_1, ADR_UXTW_ZZZ_D_2, ADR_UXTW_ZZZ_D_3)>;
  1904. // [ 8] "and $Pd, $Pg/z, $Pn, $Pm";
  1905. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs AND_PPzPP)>;
  1906. // [ 9] "and $Zd, $Zn, $Zm";
  1907. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs AND_ZZZ)>;
  1908. // [10] "and $Zdn, $Pg/m, $_Zdn, $Zm";
  1909. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs AND_ZPmZ_B, AND_ZPmZ_D, AND_ZPmZ_H, AND_ZPmZ_S)>;
  1910. // [11] "and $Zdn, $_Zdn, $imms13";
  1911. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs AND_ZI)>;
  1912. // [12] "ands $Pd, $Pg/z, $Pn, $Pm";
  1913. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs ANDS_PPzPP)>;
  1914. // [13] "andv $Vd, $Pg, $Zn";
  1915. def : InstRW<[A64FXWrite_14Cyc_GI03], (instrs ANDV_VPZ_B, ANDV_VPZ_D, ANDV_VPZ_H, ANDV_VPZ_S)>;
  1916. // [14] "asr $Zd, $Zn, $Zm";
  1917. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ASR_WIDE_ZZZ_B, ASR_WIDE_ZZZ_H, ASR_WIDE_ZZZ_S)>;
  1918. // [15] "asr $Zd, $Zn, $imm";
  1919. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ASR_ZZI_B, ASR_ZZI_D, ASR_ZZI_H, ASR_ZZI_S)>;
  1920. // [16] "asr $Zdn, $Pg/m, $_Zdn, $Zm";
  1921. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ASR_WIDE_ZPmZ_B, ASR_WIDE_ZPmZ_H, ASR_WIDE_ZPmZ_S, ASR_ZPmZ_B, ASR_ZPmZ_D, ASR_ZPmZ_H, ASR_ZPmZ_S)>;
  1922. // [17] "asr $Zdn, $Pg/m, $_Zdn, $imm";
  1923. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ASR_ZPmI_B, ASR_ZPmI_D, ASR_ZPmI_H, ASR_ZPmI_S)>;
  1924. // [18] "asrd $Zdn, $Pg/m, $_Zdn, $imm";
  1925. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ASRD_ZPmI_B, ASRD_ZPmI_D, ASRD_ZPmI_H, ASRD_ZPmI_S)>;
  1926. // [19] "asrr $Zdn, $Pg/m, $_Zdn, $Zm";
  1927. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ASRR_ZPmZ_B, ASRR_ZPmZ_D, ASRR_ZPmZ_H, ASRR_ZPmZ_S)>;
  1928. // [20] "bic $Pd, $Pg/z, $Pn, $Pm";
  1929. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BIC_PPzPP)>;
  1930. // [21] "bic $Zd, $Zn, $Zm";
  1931. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs BIC_ZZZ)>;
  1932. // [22] "bic $Zdn, $Pg/m, $_Zdn, $Zm";
  1933. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs BIC_ZPmZ_B, BIC_ZPmZ_D, BIC_ZPmZ_H, BIC_ZPmZ_S)>;
  1934. // [23] "bics $Pd, $Pg/z, $Pn, $Pm";
  1935. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BICS_PPzPP)>;
  1936. // [24] "brka $Pd, $Pg/m, $Pn";
  1937. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKA_PPmP)>;
  1938. // [25] "brka $Pd, $Pg/z, $Pn";
  1939. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKA_PPzP)>;
  1940. // [26] "brkas $Pd, $Pg/z, $Pn";
  1941. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKAS_PPzP)>;
  1942. // [27] "brkb $Pd, $Pg/m, $Pn";
  1943. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKB_PPmP)>;
  1944. // [28] "brkb $Pd, $Pg/z, $Pn";
  1945. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKB_PPzP)>;
  1946. // [29] "brkbs $Pd, $Pg/z, $Pn";
  1947. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKBS_PPzP)>;
  1948. // [30] "brkn $Pdm, $Pg/z, $Pn, $_Pdm";
  1949. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKN_PPzP)>;
  1950. // [31] "brkns $Pdm, $Pg/z, $Pn, $_Pdm";
  1951. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKNS_PPzP)>;
  1952. // [32] "brkpa $Pd, $Pg/z, $Pn, $Pm";
  1953. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKPA_PPzPP)>;
  1954. // [33] "brkpas $Pd, $Pg/z, $Pn, $Pm";
  1955. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKPAS_PPzPP)>;
  1956. // [34] "brkpb $Pd, $Pg/z, $Pn, $Pm";
  1957. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKPB_PPzPP)>;
  1958. // [35] "brkpbs $Pd, $Pg/z, $Pn, $Pm";
  1959. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs BRKPBS_PPzPP)>;
  1960. // [36] "clasta $Rdn, $Pg, $_Rdn, $Zm";
  1961. def : InstRW<[A64FXWrite_29Cyc_GI0256], (instrs CLASTA_RPZ_B, CLASTA_RPZ_D, CLASTA_RPZ_H, CLASTA_RPZ_S)>;
  1962. // [37] "clasta $Vdn, $Pg, $_Vdn, $Zm";
  1963. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs CLASTA_VPZ_B, CLASTA_VPZ_D, CLASTA_VPZ_H, CLASTA_VPZ_S)>;
  1964. // [38] "clasta $Zdn, $Pg, $_Zdn, $Zm";
  1965. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs CLASTA_ZPZ_B, CLASTA_ZPZ_D, CLASTA_ZPZ_H, CLASTA_ZPZ_S)>;
  1966. // [39] "clastb $Rdn, $Pg, $_Rdn, $Zm";
  1967. def : InstRW<[A64FXWrite_29Cyc_GI0256], (instrs CLASTB_RPZ_B, CLASTB_RPZ_D, CLASTB_RPZ_H, CLASTB_RPZ_S)>;
  1968. // [40] "clastb $Vdn, $Pg, $_Vdn, $Zm";
  1969. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs CLASTB_VPZ_B, CLASTB_VPZ_D, CLASTB_VPZ_H, CLASTB_VPZ_S)>;
  1970. // [41] "clastb $Zdn, $Pg, $_Zdn, $Zm";
  1971. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs CLASTB_ZPZ_B, CLASTB_ZPZ_D, CLASTB_ZPZ_H, CLASTB_ZPZ_S)>;
  1972. // [42] "cls $Zd, $Pg/m, $Zn";
  1973. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs CLS_ZPmZ_B, CLS_ZPmZ_D, CLS_ZPmZ_H, CLS_ZPmZ_S)>;
  1974. // [43] "clz $Zd, $Pg/m, $Zn";
  1975. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs CLZ_ZPmZ_B, CLZ_ZPmZ_D, CLZ_ZPmZ_H, CLZ_ZPmZ_S)>;
  1976. // [44] "cmpeq $Pd, $Pg/z, $Zn, $Zm";
  1977. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPEQ_PPzZZ_B, CMPEQ_PPzZZ_D, CMPEQ_PPzZZ_H, CMPEQ_PPzZZ_S, CMPEQ_WIDE_PPzZZ_B, CMPEQ_WIDE_PPzZZ_H, CMPEQ_WIDE_PPzZZ_S)>;
  1978. // [45] "cmpeq $Pd, $Pg/z, $Zn, $imm5";
  1979. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPEQ_PPzZI_B, CMPEQ_PPzZI_D, CMPEQ_PPzZI_H, CMPEQ_PPzZI_S)>;
  1980. // [46] "cmpge $Pd, $Pg/z, $Zn, $Zm";
  1981. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPGE_PPzZZ_B, CMPGE_PPzZZ_D, CMPGE_PPzZZ_H, CMPGE_PPzZZ_S, CMPGE_WIDE_PPzZZ_B, CMPGE_WIDE_PPzZZ_H, CMPGE_WIDE_PPzZZ_S)>;
  1982. // [47] "cmpge $Pd, $Pg/z, $Zn, $imm5";
  1983. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPGE_PPzZI_B, CMPGE_PPzZI_D, CMPGE_PPzZI_H, CMPGE_PPzZI_S)>;
  1984. // [48] "cmpgt $Pd, $Pg/z, $Zn, $Zm";
  1985. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPGT_PPzZZ_B, CMPGT_PPzZZ_D, CMPGT_PPzZZ_H, CMPGT_PPzZZ_S, CMPGT_WIDE_PPzZZ_B, CMPGT_WIDE_PPzZZ_H, CMPGT_WIDE_PPzZZ_S)>;
  1986. // [49] "cmpgt $Pd, $Pg/z, $Zn, $imm5";
  1987. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPGT_PPzZI_B, CMPGT_PPzZI_D, CMPGT_PPzZI_H, CMPGT_PPzZI_S)>;
  1988. // [50] "cmphi $Pd, $Pg/z, $Zn, $Zm";
  1989. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPHI_PPzZZ_B, CMPHI_PPzZZ_D, CMPHI_PPzZZ_H, CMPHI_PPzZZ_S, CMPHI_WIDE_PPzZZ_B, CMPHI_WIDE_PPzZZ_H, CMPHI_WIDE_PPzZZ_S)>;
  1990. // [51] "cmphi $Pd, $Pg/z, $Zn, $imm7";
  1991. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPHI_PPzZI_B, CMPHI_PPzZI_D, CMPHI_PPzZI_H, CMPHI_PPzZI_S)>;
  1992. // [52] "cmphs $Pd, $Pg/z, $Zn, $Zm";
  1993. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPHS_PPzZZ_B, CMPHS_PPzZZ_D, CMPHS_PPzZZ_H, CMPHS_PPzZZ_S, CMPHS_WIDE_PPzZZ_B, CMPHS_WIDE_PPzZZ_H, CMPHS_WIDE_PPzZZ_S)>;
  1994. // [53] "cmphs $Pd, $Pg/z, $Zn, $imm7";
  1995. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPHS_PPzZI_B, CMPHS_PPzZI_D, CMPHS_PPzZI_H, CMPHS_PPzZI_S)>;
  1996. // [54] "cmple $Pd, $Pg/z, $Zn, $Zm";
  1997. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPLE_WIDE_PPzZZ_B, CMPLE_WIDE_PPzZZ_H, CMPLE_WIDE_PPzZZ_S)>;
  1998. // [55] "cmple $Pd, $Pg/z, $Zn, $imm5";
  1999. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPLE_PPzZI_B, CMPLE_PPzZI_D, CMPLE_PPzZI_H, CMPLE_PPzZI_S)>;
  2000. // [56] "cmplo $Pd, $Pg/z, $Zn, $Zm";
  2001. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPLO_WIDE_PPzZZ_B, CMPLO_WIDE_PPzZZ_H, CMPLO_WIDE_PPzZZ_S)>;
  2002. // [57] "cmplo $Pd, $Pg/z, $Zn, $imm7";
  2003. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPLO_PPzZI_B, CMPLO_PPzZI_D, CMPLO_PPzZI_H, CMPLO_PPzZI_S)>;
  2004. // [58] "cmpls $Pd, $Pg/z, $Zn, $Zm";
  2005. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPLS_WIDE_PPzZZ_B, CMPLS_WIDE_PPzZZ_H, CMPLS_WIDE_PPzZZ_S)>;
  2006. // [59] "cmpls $Pd, $Pg/z, $Zn, $imm7";
  2007. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPLS_PPzZI_B, CMPLS_PPzZI_D, CMPLS_PPzZI_H, CMPLS_PPzZI_S)>;
  2008. // [60] "cmplt $Pd, $Pg/z, $Zn, $Zm";
  2009. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPLT_WIDE_PPzZZ_B, CMPLT_WIDE_PPzZZ_H, CMPLT_WIDE_PPzZZ_S)>;
  2010. // [61] "cmplt $Pd, $Pg/z, $Zn, $imm5";
  2011. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPLT_PPzZI_B, CMPLT_PPzZI_D, CMPLT_PPzZI_H, CMPLT_PPzZI_S)>;
  2012. // [62] "cmpne $Pd, $Pg/z, $Zn, $Zm";
  2013. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPNE_PPzZZ_B, CMPNE_PPzZZ_D, CMPNE_PPzZZ_H, CMPNE_PPzZZ_S, CMPNE_WIDE_PPzZZ_B, CMPNE_WIDE_PPzZZ_H, CMPNE_WIDE_PPzZZ_S)>;
  2014. // [63] "cmpne $Pd, $Pg/z, $Zn, $imm5";
  2015. def : InstRW<[A64FXWrite_4Cyc_GI01], (instrs CMPNE_PPzZI_B, CMPNE_PPzZI_D, CMPNE_PPzZI_H, CMPNE_PPzZI_S)>;
  2016. // [64] "cnot $Zd, $Pg/m, $Zn";
  2017. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs CNOT_ZPmZ_B, CNOT_ZPmZ_D, CNOT_ZPmZ_H, CNOT_ZPmZ_S)>;
  2018. // [65] "cnt $Zd, $Pg/m, $Zn";
  2019. def : InstRW<[A64FXWrite_4Cyc_GI3], (instrs CNT_ZPmZ_B, CNT_ZPmZ_D, CNT_ZPmZ_H, CNT_ZPmZ_S)>;
  2020. // [66] "cntb $Rd, $pattern, mul $imm4";
  2021. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs CNTB_XPiI)>;
  2022. // [67] "cntd $Rd, $pattern, mul $imm4";
  2023. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs CNTD_XPiI)>;
  2024. // [68] "cnth $Rd, $pattern, mul $imm4";
  2025. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs CNTH_XPiI)>;
  2026. // [69] "cntp $Rd, $Pg, $Pn";
  2027. def : InstRW<[A64FXWrite_6Cyc_GI01], (instrs CNTP_XPP_B, CNTP_XPP_D, CNTP_XPP_H, CNTP_XPP_S)>;
  2028. // [70] "cntw $Rd, $pattern, mul $imm4";
  2029. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs CNTW_XPiI)>;
  2030. // [71] "compact $Zd, $Pg, $Zn";
  2031. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs COMPACT_ZPZ_D, COMPACT_ZPZ_S)>;
  2032. // [72] "cpy $Zd, $Pg/m, $Rn";
  2033. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs CPY_ZPmR_B, CPY_ZPmR_D, CPY_ZPmR_H, CPY_ZPmR_S)>;
  2034. // [73] "cpy $Zd, $Pg/m, $Vn";
  2035. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs CPY_ZPmV_B, CPY_ZPmV_D, CPY_ZPmV_H, CPY_ZPmV_S)>;
  2036. // [74] "cpy $Zd, $Pg/m, $imm";
  2037. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs CPY_ZPmI_B, CPY_ZPmI_D, CPY_ZPmI_H, CPY_ZPmI_S)>;
  2038. // [75] "cpy $Zd, $Pg/z, $imm";
  2039. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs CPY_ZPzI_B, CPY_ZPzI_D, CPY_ZPzI_H, CPY_ZPzI_S)>;
  2040. // [76] "ctermeq $Rn, $Rm";
  2041. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs CTERMEQ_WW, CTERMEQ_XX)>;
  2042. // [77] "ctermne $Rn, $Rm";
  2043. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs CTERMNE_WW, CTERMNE_XX)>;
  2044. // [78] "decb $Rdn, $pattern, mul $imm4";
  2045. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs DECB_XPiI)>;
  2046. // [79] "decd $Rdn, $pattern, mul $imm4";
  2047. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs DECD_XPiI)>;
  2048. // [80] "decd $Zdn, $pattern, mul $imm4";
  2049. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs DECD_ZPiI)>;
  2050. // [81] "dech $Rdn, $pattern, mul $imm4";
  2051. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs DECH_XPiI)>;
  2052. // [82] "dech $Zdn, $pattern, mul $imm4";
  2053. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs DECH_ZPiI)>;
  2054. // [83] "decp $Rdn, $Pg";
  2055. def : InstRW<[A64FXWrite_6Cyc_GI124], (instrs DECP_XP_B, DECP_XP_D, DECP_XP_H, DECP_XP_S)>;
  2056. // [84] "decp $Zdn, $Pg";
  2057. def : InstRW<[A64FXWrite_12Cyc_GI01], (instrs DECP_ZP_D, DECP_ZP_H, DECP_ZP_S)>;
  2058. // [85] "decw $Rdn, $pattern, mul $imm4";
  2059. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs DECW_XPiI)>;
  2060. // [86] "decw $Zdn, $pattern, mul $imm4";
  2061. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs DECW_ZPiI)>;
  2062. // [87] "dup $Zd, $Rn";
  2063. def : InstRW<[A64FXWrite_8Cyc_GI01], (instrs DUP_ZR_B, DUP_ZR_D, DUP_ZR_H, DUP_ZR_S)>;
  2064. // [88] "dup $Zd, $Zn$idx";
  2065. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs DUP_ZZI_B, DUP_ZZI_D, DUP_ZZI_H, DUP_ZZI_Q, DUP_ZZI_S)>;
  2066. // [89] "dup $Zd, $imm";
  2067. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs DUP_ZI_B, DUP_ZI_D, DUP_ZI_H, DUP_ZI_S)>;
  2068. // [90] "dupm $Zd, $imms";
  2069. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs DUPM_ZI)>;
  2070. // [91] "eor $Pd, $Pg/z, $Pn, $Pm";
  2071. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs EOR_PPzPP)>;
  2072. // [92] "eor $Zd, $Zn, $Zm";
  2073. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs EOR_ZZZ)>;
  2074. // [93] "eor $Zdn, $Pg/m, $_Zdn, $Zm";
  2075. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs EOR_ZPmZ_B, EOR_ZPmZ_D, EOR_ZPmZ_H, EOR_ZPmZ_S)>;
  2076. // [94] "eor $Zdn, $_Zdn, $imms13";
  2077. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs EOR_ZI)>;
  2078. // [95] "eors $Pd, $Pg/z, $Pn, $Pm";
  2079. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs EORS_PPzPP)>;
  2080. // [96] "eorv $Vd, $Pg, $Zn";
  2081. def : InstRW<[A64FXWrite_14Cyc_GI03], (instrs EORV_VPZ_B, EORV_VPZ_D, EORV_VPZ_H, EORV_VPZ_S)>;
  2082. // [97] "ext $Zdn, $_Zdn, $Zm, $imm8";
  2083. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs EXT_ZZI)>;
  2084. // [99] "fabd $Zdn, $Pg/m, $_Zdn, $Zm";
  2085. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FABD_ZPmZ_D, FABD_ZPmZ_H, FABD_ZPmZ_S)>;
  2086. // [100] "fabs $Zd, $Pg/m, $Zn";
  2087. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FABS_ZPmZ_D, FABS_ZPmZ_H, FABS_ZPmZ_S)>;
  2088. // [101] "facge $Pd, $Pg/z, $Zn, $Zm";
  2089. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FACGE_PPzZZ_D, FACGE_PPzZZ_H, FACGE_PPzZZ_S)>;
  2090. // [102] "facgt $Pd, $Pg/z, $Zn, $Zm";
  2091. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FACGT_PPzZZ_D, FACGT_PPzZZ_H, FACGT_PPzZZ_S)>;
  2092. // [103] "fadd $Zd, $Zn, $Zm"; def is line 1638
  2093. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FADD_ZZZ_D, FADD_ZZZ_H, FADD_ZZZ_S)>;
  2094. // [104] "fadd $Zdn, $Pg/m, $_Zdn, $Zm"; def is line 1638
  2095. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FADD_ZPmZ_D, FADD_ZPmZ_H, FADD_ZPmZ_S)>;
  2096. // [105] "fadd $Zdn, $Pg/m, $_Zdn, $i1"; def is line 1638
  2097. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FADD_ZPmI_D, FADD_ZPmI_H, FADD_ZPmI_S)>;
  2098. // [106] "fadda $Vdn, $Pg, $_Vdn, $Zm";
  2099. def : InstRW<[A64FXWrite_18Cyc_GI03], (instrs FADDA_VPZ_D, FADDA_VPZ_H, FADDA_VPZ_S)>;
  2100. // [107] "faddv $Vd, $Pg, $Zn";
  2101. // H : 4 / 6 / ([1,2]9 / [1]6) x 4 / [1,2]9 = 75 cycle
  2102. // S : 4 / 6 / ([1,2]9 / [1]6) x 3 / [1,2]9 = 60 cycle
  2103. // D : 4 / 6 / ([1,2]9 / [1]6) x 2 / [1,2]9 = 45 cycle
  2104. def : InstRW<[A64FXWrite_75Cyc_GI03], (instrs FADDV_VPZ_H)>;
  2105. def : InstRW<[A64FXWrite_60Cyc_GI03], (instrs FADDV_VPZ_S)>;
  2106. def : InstRW<[A64FXWrite_45Cyc_GI03], (instrs FADDV_VPZ_D)>;
  2107. // [108] "fcadd $Zdn, $Pg/m, $_Zdn, $Zm, $imm";
  2108. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FCADD_ZPmZ_D, FCADD_ZPmZ_H, FCADD_ZPmZ_S)>;
  2109. // [109] "fcmeq $Pd, $Pg/z, $Zn, #0.0";
  2110. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCMEQ_PPzZ0_D, FCMEQ_PPzZ0_H, FCMEQ_PPzZ0_S)>;
  2111. // [110] "fcmeq $Pd, $Pg/z, $Zn, $Zm";
  2112. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCMEQ_PPzZZ_D, FCMEQ_PPzZZ_H, FCMEQ_PPzZZ_S)>;
  2113. // [111] "fcmge $Pd, $Pg/z, $Zn, #0.0";
  2114. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCMGE_PPzZ0_D, FCMGE_PPzZ0_H, FCMGE_PPzZ0_S)>;
  2115. // [112] "fcmge $Pd, $Pg/z, $Zn, $Zm";
  2116. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCMGE_PPzZZ_D, FCMGE_PPzZZ_H, FCMGE_PPzZZ_S)>;
  2117. // [113] "fcmgt $Pd, $Pg/z, $Zn, #0.0";
  2118. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCMGT_PPzZ0_D, FCMGT_PPzZ0_H, FCMGT_PPzZ0_S)>;
  2119. // [114] "fcmgt $Pd, $Pg/z, $Zn, $Zm";
  2120. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCMGT_PPzZZ_D, FCMGT_PPzZZ_H, FCMGT_PPzZZ_S)>;
  2121. // [115] "fcmla $Zda, $Pg/m, $Zn, $Zm, $imm";
  2122. def : InstRW<[A64FXWrite_15Cyc_GI03], (instrs FCMLA_ZPmZZ_D, FCMLA_ZPmZZ_H, FCMLA_ZPmZZ_S)>;
  2123. // [116] "fcmla $Zda, $Zn, $Zm$iop, $imm";
  2124. def : InstRW<[A64FXWrite_15Cyc_GI03], (instrs FCMLA_ZZZI_H, FCMLA_ZZZI_S)>;
  2125. // [117] "fcmle $Pd, $Pg/z, $Zn, #0.0";
  2126. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCMLE_PPzZ0_D, FCMLE_PPzZ0_H, FCMLE_PPzZ0_S)>;
  2127. // [118] "fcmlt $Pd, $Pg/z, $Zn, #0.0";
  2128. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCMLT_PPzZ0_D, FCMLT_PPzZ0_H, FCMLT_PPzZ0_S)>;
  2129. // [119] "fcmne $Pd, $Pg/z, $Zn, #0.0";
  2130. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCMNE_PPzZ0_D, FCMNE_PPzZ0_H, FCMNE_PPzZ0_S)>;
  2131. // [120] "fcmne $Pd, $Pg/z, $Zn, $Zm";
  2132. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCMNE_PPzZZ_D, FCMNE_PPzZZ_H, FCMNE_PPzZZ_S)>;
  2133. // [121] "fcmuo $Pd, $Pg/z, $Zn, $Zm";
  2134. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCMUO_PPzZZ_D, FCMUO_PPzZZ_H, FCMUO_PPzZZ_S)>;
  2135. // [122] "fcpy $Zd, $Pg/m, $imm8";
  2136. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FCPY_ZPmI_D, FCPY_ZPmI_H, FCPY_ZPmI_S)>;
  2137. // [123] "fcvt $Zd, $Pg/m, $Zn";
  2138. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FCVT_ZPmZ_DtoH, FCVT_ZPmZ_DtoS, FCVT_ZPmZ_HtoD, FCVT_ZPmZ_HtoS, FCVT_ZPmZ_StoD, FCVT_ZPmZ_StoH)>;
  2139. // [124] "fcvtzs $Zd, $Pg/m, $Zn";
  2140. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FCVTZS_ZPmZ_DtoD, FCVTZS_ZPmZ_DtoS, FCVTZS_ZPmZ_HtoD, FCVTZS_ZPmZ_HtoH, FCVTZS_ZPmZ_HtoS, FCVTZS_ZPmZ_StoD, FCVTZS_ZPmZ_StoS)>;
  2141. // [125] "fcvtzu $Zd, $Pg/m, $Zn";
  2142. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FCVTZU_ZPmZ_DtoD, FCVTZU_ZPmZ_DtoS, FCVTZU_ZPmZ_HtoD, FCVTZU_ZPmZ_HtoH, FCVTZU_ZPmZ_HtoS, FCVTZU_ZPmZ_StoD, FCVTZU_ZPmZ_StoS)>;
  2143. // [126] "fdiv $Zdn, $Pg/m, $_Zdn, $Zm";
  2144. def : InstRW<[A64FXWrite_154Cyc_GI0], (instrs FDIV_ZPmZ_D)>;
  2145. def : InstRW<[A64FXWrite_134Cyc_GI0], (instrs FDIV_ZPmZ_H)>;
  2146. def : InstRW<[A64FXWrite_98Cyc_GI0], (instrs FDIV_ZPmZ_S)>;
  2147. // [127] "fdivr $Zdn, $Pg/m, $_Zdn, $Zm";
  2148. def : InstRW<[A64FXWrite_154Cyc_GI0], (instrs FDIVR_ZPmZ_D)>;
  2149. def : InstRW<[A64FXWrite_134Cyc_GI0], (instrs FDIVR_ZPmZ_H)>;
  2150. def : InstRW<[A64FXWrite_98Cyc_GI0], (instrs FDIVR_ZPmZ_S)>;
  2151. // [128] "fdup $Zd, $imm8";
  2152. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FDUP_ZI_D, FDUP_ZI_H, FDUP_ZI_S)>;
  2153. // [129] "fexpa $Zd, $Zn";
  2154. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FEXPA_ZZ_D, FEXPA_ZZ_H, FEXPA_ZZ_S)>;
  2155. // [130] "fmad $Zdn, $Pg/m, $Zm, $Za";
  2156. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FMAD_ZPmZZ_D, FMAD_ZPmZZ_H, FMAD_ZPmZZ_S)>;
  2157. // [131] "fmax $Zdn, $Pg/m, $_Zdn, $Zm";
  2158. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FMAX_ZPmZ_D, FMAX_ZPmZ_H, FMAX_ZPmZ_S)>;
  2159. // [132] "fmax $Zdn, $Pg/m, $_Zdn, $i1";
  2160. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FMAX_ZPmI_D, FMAX_ZPmI_H, FMAX_ZPmI_S)>;
  2161. // [133] "fmaxnm $Zdn, $Pg/m, $_Zdn, $Zm";
  2162. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FMAXNM_ZPmZ_D, FMAXNM_ZPmZ_H, FMAXNM_ZPmZ_S)>;
  2163. // [134] "fmaxnm $Zdn, $Pg/m, $_Zdn, $i1";
  2164. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FMAXNM_ZPmI_D, FMAXNM_ZPmI_H, FMAXNM_ZPmI_S)>;
  2165. // [135] "fmaxnmv $Vd, $Pg, $Zn";
  2166. def : InstRW<[A64FXWrite_10Cyc_GI03], (instrs FMAXNMV_VPZ_D, FMAXNMV_VPZ_H, FMAXNMV_VPZ_S)>;
  2167. // [136] "fmaxv $Vd, $Pg, $Zn";
  2168. def : InstRW<[A64FXWrite_10Cyc_GI03], (instrs FMAXV_VPZ_D, FMAXV_VPZ_H, FMAXV_VPZ_S)>;
  2169. // [137] "fmin $Zdn, $Pg/m, $_Zdn, $Zm";
  2170. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FMIN_ZPmZ_D, FMIN_ZPmZ_H, FMIN_ZPmZ_S)>;
  2171. // [138] "fmin $Zdn, $Pg/m, $_Zdn, $i1";
  2172. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FMIN_ZPmI_D, FMIN_ZPmI_H, FMIN_ZPmI_S)>;
  2173. // [139] "fminnm $Zdn, $Pg/m, $_Zdn, $Zm";
  2174. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FMINNM_ZPmZ_D, FMINNM_ZPmZ_H, FMINNM_ZPmZ_S)>;
  2175. // [140] "fminnm $Zdn, $Pg/m, $_Zdn, $i1";
  2176. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs FMINNM_ZPmI_D, FMINNM_ZPmI_H, FMINNM_ZPmI_S)>;
  2177. // [141] "fminnmv $Vd, $Pg, $Zn";
  2178. def : InstRW<[A64FXWrite_10Cyc_GI03], (instrs FMINNMV_VPZ_D, FMINNMV_VPZ_H, FMINNMV_VPZ_S)>;
  2179. // [142] "fminv $Vd, $Pg, $Zn";
  2180. def : InstRW<[A64FXWrite_10Cyc_GI03], (instrs FMINV_VPZ_D, FMINV_VPZ_H, FMINV_VPZ_S)>;
  2181. // [143] "fmla $Zda, $Pg/m, $Zn, $Zm";
  2182. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FMLA_ZPmZZ_D, FMLA_ZPmZZ_H, FMLA_ZPmZZ_S)>;
  2183. // [144] "fmla $Zda, $Zn, $Zm$iop";
  2184. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FMLA_ZZZI_D, FMLA_ZZZI_H, FMLA_ZZZI_S)>;
  2185. // [145] "fmls $Zda, $Pg/m, $Zn, $Zm";
  2186. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FMLS_ZPmZZ_D, FMLS_ZPmZZ_H, FMLS_ZPmZZ_S)>;
  2187. // [146] "fmls $Zda, $Zn, $Zm$iop";
  2188. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FMLS_ZZZI_D, FMLS_ZZZI_H, FMLS_ZZZI_S)>;
  2189. // [147] "fmsb $Zdn, $Pg/m, $Zm, $Za";
  2190. // [148] "fmul $Zd, $Zn, $Zm";
  2191. // [149] "fmul $Zd, $Zn, $Zm$iop";
  2192. // [150] "fmul $Zdn, $Pg/m, $_Zdn, $Zm";
  2193. // [151] "fmul $Zdn, $Pg/m, $_Zdn, $i1";
  2194. // [152] "fmulx $Zdn, $Pg/m, $_Zdn, $Zm";
  2195. // [153] "fneg $Zd, $Pg/m, $Zn";
  2196. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FNEG_ZPmZ_D, FNEG_ZPmZ_H, FNEG_ZPmZ_S)>;
  2197. // [154] "fnmad $Zdn, $Pg/m, $Zm, $Za";
  2198. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FNMAD_ZPmZZ_D, FNMAD_ZPmZZ_H, FNMAD_ZPmZZ_S)>;
  2199. // [155] "fnmla $Zda, $Pg/m, $Zn, $Zm";
  2200. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FNMLA_ZPmZZ_D, FNMLA_ZPmZZ_H, FNMLA_ZPmZZ_S)>;
  2201. // [156] "fnmls $Zda, $Pg/m, $Zn, $Zm";
  2202. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FNMLS_ZPmZZ_D, FNMLS_ZPmZZ_H, FNMLS_ZPmZZ_S)>;
  2203. // [157] "fnmsb $Zdn, $Pg/m, $Zm, $Za";
  2204. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FNMSB_ZPmZZ_D, FNMSB_ZPmZZ_H, FNMSB_ZPmZZ_S)>;
  2205. // [158] "frecpe $Zd, $Zn";
  2206. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FRECPE_ZZ_D, FRECPE_ZZ_H, FRECPE_ZZ_S)>;
  2207. // [159] "frecps $Zd, $Zn, $Zm";
  2208. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FRECPS_ZZZ_D, FRECPS_ZZZ_H, FRECPS_ZZZ_S)>;
  2209. // [160] "frecpx $Zd, $Pg/m, $Zn";
  2210. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FRECPX_ZPmZ_D, FRECPX_ZPmZ_H, FRECPX_ZPmZ_S)>;
  2211. // [161] "frinta $Zd, $Pg/m, $Zn";
  2212. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FRINTA_ZPmZ_D, FRINTA_ZPmZ_H, FRINTA_ZPmZ_S)>;
  2213. // [162] "frinti $Zd, $Pg/m, $Zn";
  2214. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FRINTI_ZPmZ_D, FRINTI_ZPmZ_H, FRINTI_ZPmZ_S)>;
  2215. // [163] "frintm $Zd, $Pg/m, $Zn";
  2216. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FRINTM_ZPmZ_D, FRINTM_ZPmZ_H, FRINTM_ZPmZ_S)>;
  2217. // [164] "frintn $Zd, $Pg/m, $Zn";
  2218. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FRINTN_ZPmZ_D, FRINTN_ZPmZ_H, FRINTN_ZPmZ_S)>;
  2219. // [165] "frintp $Zd, $Pg/m, $Zn";
  2220. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FRINTP_ZPmZ_D, FRINTP_ZPmZ_H, FRINTP_ZPmZ_S)>;
  2221. // [166] "frintx $Zd, $Pg/m, $Zn";
  2222. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FRINTX_ZPmZ_D, FRINTX_ZPmZ_H, FRINTX_ZPmZ_S)>;
  2223. // [167] "frintz $Zd, $Pg/m, $Zn";
  2224. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FRINTZ_ZPmZ_D, FRINTZ_ZPmZ_H, FRINTZ_ZPmZ_S)>;
  2225. // [168] "frsqrte $Zd, $Zn";
  2226. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FRSQRTE_ZZ_D, FRSQRTE_ZZ_H, FRSQRTE_ZZ_S)>;
  2227. // [169] "frsqrts $Zd, $Zn, $Zm";
  2228. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs FRSQRTS_ZZZ_D, FRSQRTS_ZZZ_H, FRSQRTS_ZZZ_S)>;
  2229. // [170] "fscale $Zdn, $Pg/m, $_Zdn, $Zm";
  2230. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FSCALE_ZPmZ_D, FSCALE_ZPmZ_H, FSCALE_ZPmZ_S)>;
  2231. // [171] "fsqrt $Zd, $Pg/m, $Zn";
  2232. def : InstRW<[A64FXWrite_154Cyc_GI0], (instrs FSQRT_ZPmZ_D)>;
  2233. def : InstRW<[A64FXWrite_134Cyc_GI0], (instrs FSQRT_ZPmZ_H)>;
  2234. def : InstRW<[A64FXWrite_98Cyc_GI0], (instrs FSQRT_ZPmZ_S)>;
  2235. // [172] "fsub $Zd, $Zn, $Zm";
  2236. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FSUB_ZZZ_D, FSUB_ZZZ_H, FSUB_ZZZ_S)>;
  2237. // [173] "fsub $Zdn, $Pg/m, $_Zdn, $Zm";
  2238. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FSUB_ZPmZ_D, FSUB_ZPmZ_H, FSUB_ZPmZ_S)>;
  2239. // [174] "fsub $Zdn, $Pg/m, $_Zdn, $i1";
  2240. def : InstRW<[A64FXWrite_9Cyc_GI0], (instrs FSUB_ZPmI_D, FSUB_ZPmI_H, FSUB_ZPmI_S)>;
  2241. // [175] "fsubr $Zdn, $Pg/m, $_Zdn, $Zm";
  2242. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FSUBR_ZPmZ_D, FSUBR_ZPmZ_H, FSUBR_ZPmZ_S)>;
  2243. // [176] "fsubr $Zdn, $Pg/m, $_Zdn, $i1";
  2244. def : InstRW<[A64FXWrite_9Cyc_GI0], (instrs FSUBR_ZPmI_D, FSUBR_ZPmI_H, FSUBR_ZPmI_S)>;
  2245. // [177] "ftmad $Zdn, $_Zdn, $Zm, $imm3";
  2246. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FTMAD_ZZI_D, FTMAD_ZZI_H, FTMAD_ZZI_S)>;
  2247. // [178] "ftsmul $Zd, $Zn, $Zm";
  2248. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs FTSMUL_ZZZ_D, FTSMUL_ZZZ_H, FTSMUL_ZZZ_S)>;
  2249. // [180] "incb $Rdn, $pattern, mul $imm4";
  2250. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs INCB_XPiI)>;
  2251. // [181] "incd $Rdn, $pattern, mul $imm4";
  2252. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs INCD_XPiI)>;
  2253. // [182] "incd $Zdn, $pattern, mul $imm4";
  2254. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs INCD_ZPiI)>;
  2255. // [183] "inch $Rdn, $pattern, mul $imm4";
  2256. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs INCH_XPiI)>;
  2257. // [184] "inch $Zdn, $pattern, mul $imm4";
  2258. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs INCH_ZPiI)>;
  2259. // [185] "incp $Rdn, $Pg";
  2260. def : InstRW<[A64FXWrite_6Cyc_GI124], (instrs INCP_XP_B, INCP_XP_D, INCP_XP_H, INCP_XP_S)>;
  2261. // [186] "incp $Zdn, $Pg";
  2262. def : InstRW<[A64FXWrite_12Cyc_GI01], (instrs INCP_ZP_D, INCP_ZP_H, INCP_ZP_S)>;
  2263. // [187] "incw $Rdn, $pattern, mul $imm4";
  2264. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs INCW_XPiI)>;
  2265. // [188] "incw $Zdn, $pattern, mul $imm4";
  2266. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs INCW_ZPiI)>;
  2267. // [189] "index $Zd, $Rn, $Rm";
  2268. def : InstRW<[A64FXWrite_17Cyc_GI02], (instrs INDEX_RR_B, INDEX_RR_D, INDEX_RR_H, INDEX_RR_S)>;
  2269. // [190] "index $Zd, $Rn, $imm5";
  2270. def : InstRW<[A64FXWrite_21Cyc_GI02], (instrs INDEX_RI_B, INDEX_RI_D, INDEX_RI_H, INDEX_RI_S)>;
  2271. // [191] "index $Zd, $imm5, $Rm";
  2272. def : InstRW<[A64FXWrite_21Cyc_GI02], (instrs INDEX_IR_B, INDEX_IR_D, INDEX_IR_H, INDEX_IR_S)>;
  2273. // [192] "index $Zd, $imm5, $imm5b";
  2274. def : InstRW<[A64FXWrite_13Cyc_GI0], (instrs INDEX_II_B, INDEX_II_D, INDEX_II_H, INDEX_II_S)>;
  2275. // [193] "insr $Zdn, $Rm";
  2276. def : InstRW<[A64FXWrite_10Cyc_GI02], (instrs INSR_ZR_B, INSR_ZR_D, INSR_ZR_H, INSR_ZR_S)>;
  2277. // [194] "insr $Zdn, $Vm";
  2278. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs INSR_ZV_B, INSR_ZV_D, INSR_ZV_H, INSR_ZV_S)>;
  2279. // [195] "lasta $Rd, $Pg, $Zn";
  2280. def : InstRW<[A64FXWrite_25Cyc_GI056], (instrs LASTA_RPZ_B, LASTA_RPZ_D, LASTA_RPZ_H, LASTA_RPZ_S)>;
  2281. // [196] "lasta $Vd, $Pg, $Zn";
  2282. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs LASTA_VPZ_B, LASTA_VPZ_D, LASTA_VPZ_H, LASTA_VPZ_S)>;
  2283. // [197] "lastb $Rd, $Pg, $Zn";
  2284. def : InstRW<[A64FXWrite_25Cyc_GI056], (instrs LASTB_RPZ_B, LASTB_RPZ_D, LASTB_RPZ_H, LASTB_RPZ_S)>;
  2285. // [198] "lastb $Vd, $Pg, $Zn";
  2286. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs LASTB_VPZ_B, LASTB_VPZ_D, LASTB_VPZ_H, LASTB_VPZ_S)>;
  2287. // [199] "ld1b $Zt, $Pg/z, [$Rn, $Rm]";
  2288. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1B, LD1B_D, LD1B_H, LD1B_S)>;
  2289. // [200] "ld1b $Zt, $Pg/z, [$Rn, $Zm]";
  2290. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLD1B_D_REAL, GLD1B_D_SXTW_REAL, GLD1B_D_UXTW_REAL, GLD1B_S_SXTW_REAL, GLD1B_S_UXTW_REAL)>;
  2291. // [201] "ld1b $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2292. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1B_D_IMM_REAL, LD1B_H_IMM_REAL, LD1B_IMM_REAL, LD1B_S_IMM_REAL)>;
  2293. // [202] "ld1b $Zt, $Pg/z, [$Zn, $imm5]";
  2294. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLD1B_D_IMM_REAL, GLD1B_S_IMM_REAL)>;
  2295. // [203] "ld1d $Zt, $Pg/z, [$Rn, $Rm]";
  2296. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1D)>;
  2297. // [204] "ld1d $Zt, $Pg/z, [$Rn, $Zm]";
  2298. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLD1D_REAL, GLD1D_SCALED_REAL, GLD1D_SXTW_REAL, GLD1D_SXTW_SCALED_REAL, GLD1D_UXTW_REAL, GLD1D_UXTW_SCALED_REAL)>;
  2299. // [205] "ld1d $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2300. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1D_IMM_REAL)>;
  2301. // [206] "ld1d $Zt, $Pg/z, [$Zn, $imm5]";
  2302. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLD1D_IMM_REAL)>;
  2303. // [207] "ld1h $Zt, $Pg/z, [$Rn, $Rm]";
  2304. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1H, LD1H_D, LD1H_S)>;
  2305. // [208] "ld1h $Zt, $Pg/z, [$Rn, $Zm]";
  2306. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLD1H_D_REAL, GLD1H_D_SCALED_REAL, GLD1H_D_SXTW_REAL, GLD1H_D_SXTW_SCALED_REAL, GLD1H_D_UXTW_REAL, GLD1H_D_UXTW_SCALED_REAL, GLD1H_S_SXTW_REAL, GLD1H_S_SXTW_SCALED_REAL, GLD1H_S_UXTW_REAL, GLD1H_S_UXTW_SCALED_REAL)>;
  2307. // [209] "ld1h $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2308. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1H_D_IMM_REAL, LD1H_IMM_REAL, LD1H_S_IMM_REAL)>;
  2309. // [210] "ld1h $Zt, $Pg/z, [$Zn, $imm5]";
  2310. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLD1H_D_IMM_REAL, GLD1H_S_IMM_REAL)>;
  2311. // [211] "ld1rb $Zt, $Pg/z, [$Rn, $imm6]";
  2312. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RB_D_IMM, LD1RB_H_IMM, LD1RB_IMM, LD1RB_S_IMM)>;
  2313. // [212] "ld1rd $Zt, $Pg/z, [$Rn, $imm6]";
  2314. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RD_IMM)>;
  2315. // [213] "ld1rh $Zt, $Pg/z, [$Rn, $imm6]";
  2316. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RH_D_IMM, LD1RH_IMM, LD1RH_S_IMM)>;
  2317. // [214] "ld1rqb $Zt, $Pg/z, [$Rn, $Rm]";
  2318. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RQ_B)>;
  2319. // [215] "ld1rqb $Zt, $Pg/z, [$Rn, $imm4]";
  2320. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RQ_B_IMM)>;
  2321. // [216] "ld1rqd $Zt, $Pg/z, [$Rn, $Rm]";
  2322. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RQ_D)>;
  2323. // [217] "ld1rqd $Zt, $Pg/z, [$Rn, $imm4]";
  2324. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RQ_D_IMM)>;
  2325. // [218] "ld1rqh $Zt, $Pg/z, [$Rn, $Rm]";
  2326. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RQ_H)>;
  2327. // [219] "ld1rqh $Zt, $Pg/z, [$Rn, $imm4]";
  2328. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RQ_H_IMM)>;
  2329. // [220] "ld1rqw $Zt, $Pg/z, [$Rn, $Rm]";
  2330. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RQ_W)>;
  2331. // [221] "ld1rqw $Zt, $Pg/z, [$Rn, $imm4]";
  2332. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RQ_W_IMM)>;
  2333. // [222] "ld1rsb $Zt, $Pg/z, [$Rn, $imm6]";
  2334. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RSB_D_IMM, LD1RSB_H_IMM, LD1RSB_S_IMM)>;
  2335. // [223] "ld1rsh $Zt, $Pg/z, [$Rn, $imm6]";
  2336. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RSH_D_IMM, LD1RSH_S_IMM)>;
  2337. // [224] "ld1rsw $Zt, $Pg/z, [$Rn, $imm6]";
  2338. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RSW_IMM)>;
  2339. // [225] "ld1rw $Zt, $Pg/z, [$Rn, $imm6]";
  2340. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1RW_D_IMM, LD1RW_IMM)>;
  2341. // [226] "ld1sb $Zt, $Pg/z, [$Rn, $Rm]";
  2342. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1SB_D, LD1SB_H, LD1SB_S)>;
  2343. // [227] "ld1sb $Zt, $Pg/z, [$Rn, $Zm]";
  2344. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLD1SB_D_REAL, GLD1SB_D_SXTW_REAL, GLD1SB_D_UXTW_REAL, GLD1SB_S_SXTW_REAL, GLD1SB_S_UXTW_REAL)>;
  2345. // [228] "ld1sb $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2346. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1SB_D_IMM_REAL, LD1SB_H_IMM_REAL, LD1SB_S_IMM_REAL)>;
  2347. // [229] "ld1sb $Zt, $Pg/z, [$Zn, $imm5]";
  2348. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLD1SB_D_IMM_REAL, GLD1SB_S_IMM_REAL)>;
  2349. // [230] "ld1sh $Zt, $Pg/z, [$Rn, $Rm]";
  2350. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1SH_D, LD1SH_S)>;
  2351. // [231] "ld1sh $Zt, $Pg/z, [$Rn, $Zm]";
  2352. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLD1SH_D_REAL, GLD1SH_D_SCALED_REAL, GLD1SH_D_SXTW_REAL, GLD1SH_D_SXTW_SCALED_REAL, GLD1SH_D_UXTW_REAL, GLD1SH_D_UXTW_SCALED_REAL, GLD1SH_S_SXTW_REAL, GLD1SH_S_SXTW_SCALED_REAL, GLD1SH_S_UXTW_REAL, GLD1SH_S_UXTW_SCALED_REAL)>;
  2353. // [232] "ld1sh $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2354. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1SH_D_IMM_REAL, LD1SH_S_IMM_REAL)>;
  2355. // [233] "ld1sh $Zt, $Pg/z, [$Zn, $imm5]";
  2356. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLD1SH_D_IMM_REAL, GLD1SH_S_IMM_REAL)>;
  2357. // [234] "ld1sw $Zt, $Pg/z, [$Rn, $Rm]";
  2358. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1SW_D)>;
  2359. // [235] "ld1sw $Zt, $Pg/z, [$Rn, $Zm]";
  2360. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLD1SW_D_REAL, GLD1SW_D_SCALED_REAL, GLD1SW_D_SXTW_REAL, GLD1SW_D_SXTW_SCALED_REAL, GLD1SW_D_UXTW_REAL, GLD1SW_D_UXTW_SCALED_REAL)>;
  2361. // [236] "ld1sw $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2362. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1SW_D_IMM_REAL)>;
  2363. // [237] "ld1sw $Zt, $Pg/z, [$Zn, $imm5]";
  2364. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLD1SW_D_IMM_REAL)>;
  2365. // [238] "ld1w $Zt, $Pg/z, [$Rn, $Rm]";
  2366. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1W, LD1W_D)>;
  2367. // [239] "ld1w $Zt, $Pg/z, [$Rn, $Zm]";
  2368. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLD1W_D_REAL, GLD1W_D_SCALED_REAL, GLD1W_D_SXTW_REAL, GLD1W_D_SXTW_SCALED_REAL, GLD1W_D_UXTW_REAL, GLD1W_D_UXTW_SCALED_REAL, GLD1W_SXTW_REAL, GLD1W_SXTW_SCALED_REAL, GLD1W_UXTW_REAL, GLD1W_UXTW_SCALED_REAL)>;
  2369. // [240] "ld1w $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2370. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD1W_D_IMM_REAL, LD1W_IMM_REAL)>;
  2371. // [241] "ld1w $Zt, $Pg/z, [$Zn, $imm5]";
  2372. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLD1W_D_IMM_REAL, GLD1W_IMM_REAL)>;
  2373. // [242] "ld2b $Zt, $Pg/z, [$Rn, $Rm]";
  2374. def : InstRW<[A64FXWrite_44Cyc_GI56], (instrs LD2B)>;
  2375. // [243] "ld2b $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2376. def : InstRW<[A64FXWrite_44Cyc_GI56], (instrs LD2B_IMM)>;
  2377. // [244] "ld2d $Zt, $Pg/z, [$Rn, $Rm]";
  2378. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD2D)>;
  2379. // [245] "ld2d $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2380. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD2D_IMM)>;
  2381. // [246] "ld2h $Zt, $Pg/z, [$Rn, $Rm]";
  2382. def : InstRW<[A64FXWrite_44Cyc_GI56], (instrs LD2H)>;
  2383. // [247] "ld2h $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2384. def : InstRW<[A64FXWrite_44Cyc_GI56], (instrs LD2H_IMM)>;
  2385. // [248] "ld2w $Zt, $Pg/z, [$Rn, $Rm]";
  2386. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD2W)>;
  2387. // [249] "ld2w $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2388. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD2W_IMM)>;
  2389. // [250] "ld3b $Zt, $Pg/z, [$Rn, $Rm]";
  2390. def : InstRW<[A64FXWrite_44Cyc_GI56], (instrs LD3B)>;
  2391. // [251] "ld3b $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2392. def : InstRW<[A64FXWrite_44Cyc_GI56], (instrs LD3B_IMM)>;
  2393. // [252] "ld3d $Zt, $Pg/z, [$Rn, $Rm]";
  2394. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD3D)>;
  2395. // [253] "ld3d $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2396. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD3D_IMM)>;
  2397. // [254] "ld3h $Zt, $Pg/z, [$Rn, $Rm]";
  2398. def : InstRW<[A64FXWrite_44Cyc_GI56], (instrs LD3H)>;
  2399. // [255] "ld3h $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2400. def : InstRW<[A64FXWrite_44Cyc_GI56], (instrs LD3H_IMM)>;
  2401. // [256] "ld3w $Zt, $Pg/z, [$Rn, $Rm]";
  2402. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD3W)>;
  2403. // [257] "ld3w $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2404. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD3W_IMM)>;
  2405. // [258] "ld4b $Zt, $Pg/z, [$Rn, $Rm]";
  2406. def : InstRW<[A64FXWrite_44Cyc_GI56], (instrs LD4B)>;
  2407. // [259] "ld4b $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2408. def : InstRW<[A64FXWrite_44Cyc_GI56], (instrs LD4B_IMM)>;
  2409. // [260] "ld4d $Zt, $Pg/z, [$Rn, $Rm]";
  2410. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD4D)>;
  2411. // [261] "ld4d $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2412. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD4D_IMM)>;
  2413. // [262] "ld4h $Zt, $Pg/z, [$Rn, $Rm]";
  2414. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD4H)>;
  2415. // [263] "ld4h $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2416. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD4H_IMM)>;
  2417. // [264] "ld4w $Zt, $Pg/z, [$Rn, $Rm]";
  2418. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD4W)>;
  2419. // [265] "ld4w $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2420. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LD4W_IMM)>;
  2421. // [266] "ldff1b $Zt, $Pg/z, [$Rn, $Rm]";
  2422. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDFF1B_D_REAL, LDFF1B_H_REAL, LDFF1B_REAL, LDFF1B_S_REAL)>;
  2423. // [267] "ldff1b $Zt, $Pg/z, [$Rn, $Zm]";
  2424. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLDFF1B_D_REAL, GLDFF1B_D_SXTW_REAL, GLDFF1B_D_UXTW_REAL, GLDFF1B_S_SXTW_REAL, GLDFF1B_S_UXTW_REAL)>;
  2425. // [268] "ldff1b $Zt, $Pg/z, [$Zn, $imm5]";
  2426. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLDFF1B_D_IMM_REAL, GLDFF1B_S_IMM_REAL)>;
  2427. // [269] "ldff1d $Zt, $Pg/z, [$Rn, $Rm]";
  2428. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDFF1D_REAL)>;
  2429. // [270] "ldff1d $Zt, $Pg/z, [$Rn, $Zm]";
  2430. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLDFF1D_REAL, GLDFF1D_SCALED_REAL, GLDFF1D_SXTW_REAL, GLDFF1D_SXTW_SCALED_REAL, GLDFF1D_UXTW_REAL, GLDFF1D_UXTW_SCALED_REAL)>;
  2431. // [271] "ldff1d $Zt, $Pg/z, [$Zn, $imm5]";
  2432. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLDFF1D_IMM_REAL)>;
  2433. // [272] "ldff1h $Zt, $Pg/z, [$Rn, $Rm]";
  2434. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDFF1H_D_REAL, LDFF1H_REAL, LDFF1H_S_REAL)>;
  2435. // [273] "ldff1h $Zt, $Pg/z, [$Rn, $Zm]";
  2436. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLDFF1H_D_REAL, GLDFF1H_D_SCALED_REAL, GLDFF1H_D_SXTW_REAL, GLDFF1H_D_SXTW_SCALED_REAL, GLDFF1H_D_UXTW_REAL, GLDFF1H_D_UXTW_SCALED_REAL, GLDFF1H_S_SXTW_REAL, GLDFF1H_S_SXTW_SCALED_REAL, GLDFF1H_S_UXTW_REAL, GLDFF1H_S_UXTW_SCALED_REAL)>;
  2437. // [274] "ldff1h $Zt, $Pg/z, [$Zn, $imm5]";
  2438. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLDFF1H_D_IMM_REAL, GLDFF1H_S_IMM_REAL)>;
  2439. // [275] "ldff1sb $Zt, $Pg/z, [$Rn, $Rm]";
  2440. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDFF1SB_D_REAL, LDFF1SB_H_REAL, LDFF1SB_S_REAL)>;
  2441. // [276] "ldff1sb $Zt, $Pg/z, [$Rn, $Zm]";
  2442. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLDFF1SB_D_REAL, GLDFF1SB_D_SXTW_REAL, GLDFF1SB_D_UXTW_REAL, GLDFF1SB_S_SXTW_REAL, GLDFF1SB_S_UXTW_REAL)>;
  2443. // [277] "ldff1sb $Zt, $Pg/z, [$Zn, $imm5]";
  2444. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLDFF1SB_D_IMM_REAL, GLDFF1SB_S_IMM_REAL)>;
  2445. // [278] "ldff1sh $Zt, $Pg/z, [$Rn, $Rm]";
  2446. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDFF1SH_D_REAL, LDFF1SH_S_REAL)>;
  2447. // [279] "ldff1sh $Zt, $Pg/z, [$Rn, $Zm]";
  2448. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLDFF1SH_D_REAL, GLDFF1SH_D_SCALED_REAL, GLDFF1SH_D_SXTW_REAL, GLDFF1SH_D_SXTW_SCALED_REAL, GLDFF1SH_D_UXTW_REAL, GLDFF1SH_D_UXTW_SCALED_REAL, GLDFF1SH_S_SXTW_REAL, GLDFF1SH_S_SXTW_SCALED_REAL, GLDFF1SH_S_UXTW_REAL, GLDFF1SH_S_UXTW_SCALED_REAL)>;
  2449. // [280] "ldff1sh $Zt, $Pg/z, [$Zn, $imm5]";
  2450. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLDFF1SH_D_IMM_REAL, GLDFF1SH_S_IMM_REAL)>;
  2451. // [281] "ldff1sw $Zt, $Pg/z, [$Rn, $Rm]";
  2452. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDFF1SW_D_REAL)>;
  2453. // [282] "ldff1sw $Zt, $Pg/z, [$Rn, $Zm]";
  2454. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLDFF1SW_D_REAL, GLDFF1SW_D_SCALED_REAL, GLDFF1SW_D_SXTW_REAL, GLDFF1SW_D_SXTW_SCALED_REAL, GLDFF1SW_D_UXTW_REAL, GLDFF1SW_D_UXTW_SCALED_REAL)>;
  2455. // [283] "ldff1sw $Zt, $Pg/z, [$Zn, $imm5]";
  2456. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLDFF1SW_D_IMM_REAL)>;
  2457. // [284] "ldff1w $Zt, $Pg/z, [$Rn, $Rm]";
  2458. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDFF1W_D_REAL, LDFF1W_REAL)>;
  2459. // [285] "ldff1w $Zt, $Pg/z, [$Rn, $Zm]";
  2460. def : InstRW<[A64FXWrite_19Cyc_GI0256], (instrs GLDFF1W_D_REAL, GLDFF1W_D_SCALED_REAL, GLDFF1W_D_SXTW_REAL, GLDFF1W_D_SXTW_SCALED_REAL, GLDFF1W_D_UXTW_REAL, GLDFF1W_D_UXTW_SCALED_REAL, GLDFF1W_SXTW_REAL, GLDFF1W_SXTW_SCALED_REAL, GLDFF1W_UXTW_REAL, GLDFF1W_UXTW_SCALED_REAL)>;
  2461. // [286] "ldff1w $Zt, $Pg/z, [$Zn, $imm5]";
  2462. def : InstRW<[A64FXWrite_15Cyc_GI056], (instrs GLDFF1W_D_IMM_REAL, GLDFF1W_IMM_REAL)>;
  2463. // [287] "ldnf1b $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2464. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNF1B_D_IMM_REAL, LDNF1B_H_IMM_REAL, LDNF1B_IMM_REAL, LDNF1B_S_IMM_REAL)>;
  2465. // [288] "ldnf1d $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2466. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNF1D_IMM_REAL)>;
  2467. // [289] "ldnf1h $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2468. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNF1H_D_IMM_REAL, LDNF1H_IMM_REAL, LDNF1H_S_IMM_REAL)>;
  2469. // [290] "ldnf1sb $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2470. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNF1SB_D_IMM_REAL, LDNF1SB_H_IMM_REAL, LDNF1SB_S_IMM_REAL)>;
  2471. // [291] "ldnf1sh $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2472. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNF1SH_D_IMM_REAL, LDNF1SH_S_IMM_REAL)>;
  2473. // [292] "ldnf1sw $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2474. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNF1SW_D_IMM_REAL)>;
  2475. // [293] "ldnf1w $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2476. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNF1W_D_IMM_REAL, LDNF1W_IMM_REAL)>;
  2477. // [294] "ldnt1b $Zt, $Pg/z, [$Rn, $Rm]";
  2478. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNT1B_ZRR)>;
  2479. // [295] "ldnt1b $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2480. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNT1B_ZRI)>;
  2481. // [296] "ldnt1d $Zt, $Pg/z, [$Rn, $Rm]";
  2482. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNT1D_ZRR)>;
  2483. // [297] "ldnt1d $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2484. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNT1D_ZRI)>;
  2485. // [298] "ldnt1h $Zt, $Pg/z, [$Rn, $Rm]";
  2486. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNT1H_ZRR)>;
  2487. // [299] "ldnt1h $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2488. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNT1H_ZRI)>;
  2489. // [300] "ldnt1w $Zt, $Pg/z, [$Rn, $Rm]";
  2490. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNT1W_ZRR)>;
  2491. // [301] "ldnt1w $Zt, $Pg/z, [$Rn, $imm4, mul vl]";
  2492. def : InstRW<[A64FXWrite_11Cyc_GI56], (instrs LDNT1W_ZRI)>;
  2493. // [302] "ldr $Pt, [$Rn, $imm9, mul vl]";
  2494. def : InstRW<[A64FXWrite_11Cyc_GI5], (instrs LDR_PXI)>;
  2495. // [303] "ldr $Zt, [$Rn, $imm9, mul vl]";
  2496. def : InstRW<[A64FXWrite_11Cyc_GI5], (instrs LDR_ZXI)>;
  2497. // [304] "lsl $Zd, $Zn, $Zm";
  2498. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs LSL_WIDE_ZZZ_B, LSL_WIDE_ZZZ_H, LSL_WIDE_ZZZ_S)>;
  2499. // [305] "lsl $Zd, $Zn, $imm";
  2500. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs LSL_ZZI_B, LSL_ZZI_D, LSL_ZZI_H, LSL_ZZI_S)>;
  2501. // [306] "lsl $Zdn, $Pg/m, $_Zdn, $Zm";
  2502. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs LSL_WIDE_ZPmZ_B, LSL_WIDE_ZPmZ_H, LSL_WIDE_ZPmZ_S, LSL_ZPmZ_B, LSL_ZPmZ_D, LSL_ZPmZ_H, LSL_ZPmZ_S)>;
  2503. // [307] "lsl $Zdn, $Pg/m, $_Zdn, $imm";
  2504. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs LSL_ZPmI_B, LSL_ZPmI_D, LSL_ZPmI_H, LSL_ZPmI_S)>;
  2505. // [308] "lslr $Zdn, $Pg/m, $_Zdn, $Zm";
  2506. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs LSLR_ZPmZ_B, LSLR_ZPmZ_D, LSLR_ZPmZ_H, LSLR_ZPmZ_S)>;
  2507. // [309] "lsr $Zd, $Zn, $Zm";
  2508. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs LSR_WIDE_ZZZ_B, LSR_WIDE_ZZZ_H, LSR_WIDE_ZZZ_S)>;
  2509. // [310] "lsr $Zd, $Zn, $imm";
  2510. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs LSR_ZZI_B, LSR_ZZI_D, LSR_ZZI_H, LSR_ZZI_S)>;
  2511. // [311] "lsr $Zdn, $Pg/m, $_Zdn, $Zm";
  2512. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs LSR_WIDE_ZPmZ_B, LSR_WIDE_ZPmZ_H, LSR_WIDE_ZPmZ_S, LSR_ZPmZ_B, LSR_ZPmZ_D, LSR_ZPmZ_H, LSR_ZPmZ_S)>;
  2513. // [312] "lsr $Zdn, $Pg/m, $_Zdn, $imm";
  2514. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs LSR_ZPmI_B, LSR_ZPmI_D, LSR_ZPmI_H, LSR_ZPmI_S)>;
  2515. // [313] "lsrr $Zdn, $Pg/m, $_Zdn, $Zm";
  2516. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs LSRR_ZPmZ_B, LSRR_ZPmZ_D, LSRR_ZPmZ_H, LSRR_ZPmZ_S)>;
  2517. // [314] "mad $Zdn, $Pg/m, $Zm, $Za";
  2518. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs MAD_ZPmZZ_B, MAD_ZPmZZ_D, MAD_ZPmZZ_H, MAD_ZPmZZ_S)>;
  2519. // [315] "mla $Zda, $Pg/m, $Zn, $Zm";
  2520. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs MLA_ZPmZZ_B, MLA_ZPmZZ_D, MLA_ZPmZZ_H, MLA_ZPmZZ_S)>;
  2521. // [316] "mls $Zda, $Pg/m, $Zn, $Zm";
  2522. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs MLS_ZPmZZ_B, MLS_ZPmZZ_D, MLS_ZPmZZ_H, MLS_ZPmZZ_S)>;
  2523. // [317] "movprfx $Zd, $Pg/m, $Zn";
  2524. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs MOVPRFX_ZPmZ_B, MOVPRFX_ZPmZ_D, MOVPRFX_ZPmZ_H, MOVPRFX_ZPmZ_S)>;
  2525. // [318] "movprfx $Zd, $Pg/z, $Zn";
  2526. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs MOVPRFX_ZPzZ_B, MOVPRFX_ZPzZ_D, MOVPRFX_ZPzZ_H, MOVPRFX_ZPzZ_S)>;
  2527. // [319] "movprfx $Zd, $Zn";
  2528. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs MOVPRFX_ZZ)>;
  2529. // [320] "msb $Zdn, $Pg/m, $Zm, $Za";
  2530. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs MSB_ZPmZZ_B, MSB_ZPmZZ_D, MSB_ZPmZZ_H, MSB_ZPmZZ_S)>;
  2531. // [321] "mul $Zdn, $Pg/m, $_Zdn, $Zm";
  2532. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs MUL_ZPmZ_B, MUL_ZPmZ_D, MUL_ZPmZ_H, MUL_ZPmZ_S)>;
  2533. // [322] "mul $Zdn, $_Zdn, $imm";
  2534. def : InstRW<[A64FXWrite_9Cyc_GI0], (instrs MUL_ZI_B, MUL_ZI_D, MUL_ZI_H, MUL_ZI_S)>;
  2535. // [323] "nand $Pd, $Pg/z, $Pn, $Pm";
  2536. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs NAND_PPzPP)>;
  2537. // [324] "nands $Pd, $Pg/z, $Pn, $Pm";
  2538. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs NANDS_PPzPP)>;
  2539. // [325] "neg $Zd, $Pg/m, $Zn";
  2540. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs NEG_ZPmZ_B, NEG_ZPmZ_D, NEG_ZPmZ_H, NEG_ZPmZ_S)>;
  2541. // [326] "nor $Pd, $Pg/z, $Pn, $Pm";
  2542. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs NOR_PPzPP)>;
  2543. // [327] "nors $Pd, $Pg/z, $Pn, $Pm";
  2544. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs NORS_PPzPP)>;
  2545. // [328] "not $Zd, $Pg/m, $Zn";
  2546. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs NOT_ZPmZ_B, NOT_ZPmZ_D, NOT_ZPmZ_H, NOT_ZPmZ_S)>;
  2547. // [329] "orn $Pd, $Pg/z, $Pn, $Pm";
  2548. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs ORN_PPzPP)>;
  2549. // [330] "orns $Pd, $Pg/z, $Pn, $Pm";
  2550. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs ORNS_PPzPP)>;
  2551. // [331] "orr $Pd, $Pg/z, $Pn, $Pm";
  2552. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs ORR_PPzPP)>;
  2553. // [332] "orr $Zd, $Zn, $Zm";
  2554. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ORR_ZZZ)>;
  2555. // [333] "orr $Zdn, $Pg/m, $_Zdn, $Zm";
  2556. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs ORR_ZPmZ_B, ORR_ZPmZ_D, ORR_ZPmZ_H, ORR_ZPmZ_S)>;
  2557. // [334] "orr $Zdn, $_Zdn, $imms13";
  2558. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs ORR_ZI)>;
  2559. // [335] "orrs $Pd, $Pg/z, $Pn, $Pm";
  2560. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs ORRS_PPzPP)>;
  2561. // [336] "orv $Vd, $Pg, $Zn";
  2562. def : InstRW<[A64FXWrite_14Cyc_GI03], (instrs ORV_VPZ_B, ORV_VPZ_D, ORV_VPZ_H, ORV_VPZ_S)>;
  2563. // [337] "pfalse $Pd";
  2564. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs PFALSE)>;
  2565. // [338] "pnext $Pdn, $Pg, $_Pdn";
  2566. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs PNEXT_B, PNEXT_D, PNEXT_H, PNEXT_S)>;
  2567. // [339] "prfb $prfop, $Pg, [$Rn, $Rm]";
  2568. def : InstRW<[A64FXWrite_6Cyc_GI56], (instrs PRFB_PRR)>;
  2569. // [340] "prfb $prfop, $Pg, [$Rn, $Zm]";
  2570. def : InstRW<[A64FXWrite_14Cyc_GI0256], (instrs PRFB_D_SCALED, PRFB_D_SXTW_SCALED, PRFB_D_UXTW_SCALED, PRFB_S_SXTW_SCALED, PRFB_S_UXTW_SCALED)>;
  2571. // [341] "prfb $prfop, $Pg, [$Rn, $imm6, mul vl]";
  2572. def : InstRW<[A64FXWrite_6Cyc_GI56], (instrs PRFB_PRI)>;
  2573. // [342] "prfb $prfop, $Pg, [$Zn, $imm5]";
  2574. def : InstRW<[A64FXWrite_10Cyc_GI056], (instrs PRFB_D_PZI, PRFB_S_PZI)>;
  2575. // [343] "prfd $prfop, $Pg, [$Rn, $Rm]";
  2576. def : InstRW<[A64FXWrite_6Cyc_GI56], (instrs PRFD_PRR)>;
  2577. // [344] "prfd $prfop, $Pg, [$Rn, $Zm]";
  2578. def : InstRW<[A64FXWrite_14Cyc_GI0256], (instrs PRFD_D_SCALED, PRFD_D_SXTW_SCALED, PRFD_D_UXTW_SCALED, PRFD_S_SXTW_SCALED, PRFD_S_UXTW_SCALED)>;
  2579. // [345] "prfd $prfop, $Pg, [$Rn, $imm6, mul vl]";
  2580. def : InstRW<[A64FXWrite_6Cyc_GI56], (instrs PRFD_PRI)>;
  2581. // [346] "prfd $prfop, $Pg, [$Zn, $imm5]";
  2582. def : InstRW<[A64FXWrite_10Cyc_GI056], (instrs PRFD_D_PZI, PRFD_S_PZI)>;
  2583. // [347] "prfh $prfop, $Pg, [$Rn, $Rm]";
  2584. def : InstRW<[A64FXWrite_6Cyc_GI56], (instrs PRFH_PRR)>;
  2585. // [348] "prfh $prfop, $Pg, [$Rn, $Zm]";
  2586. def : InstRW<[A64FXWrite_14Cyc_GI0256], (instrs PRFH_D_SCALED, PRFH_D_SXTW_SCALED, PRFH_D_UXTW_SCALED, PRFH_S_SXTW_SCALED, PRFH_S_UXTW_SCALED)>;
  2587. // [349] "prfh $prfop, $Pg, [$Rn, $imm6, mul vl]";
  2588. def : InstRW<[A64FXWrite_6Cyc_GI56], (instrs PRFH_PRI)>;
  2589. // [350] "prfh $prfop, $Pg, [$Zn, $imm5]";
  2590. def : InstRW<[A64FXWrite_10Cyc_GI056], (instrs PRFH_D_PZI, PRFH_S_PZI)>;
  2591. // [351] "prfw $prfop, $Pg, [$Rn, $Rm]";
  2592. def : InstRW<[A64FXWrite_6Cyc_GI56], (instrs PRFS_PRR)>;
  2593. // [352] "prfw $prfop, $Pg, [$Rn, $Zm]";
  2594. def : InstRW<[A64FXWrite_14Cyc_GI0256], (instrs PRFW_D_SCALED, PRFW_D_SXTW_SCALED, PRFW_D_UXTW_SCALED, PRFW_S_SXTW_SCALED, PRFW_S_UXTW_SCALED)>;
  2595. // [353] "prfw $prfop, $Pg, [$Rn, $imm6, mul vl]";
  2596. def : InstRW<[A64FXWrite_6Cyc_GI56], (instrs PRFW_PRI)>;
  2597. // [354] "prfw $prfop, $Pg, [$Zn, $imm5]";
  2598. def : InstRW<[A64FXWrite_10Cyc_GI056], (instrs PRFW_D_PZI, PRFW_S_PZI)>;
  2599. // [355] "ptest $Pg, $Pn";
  2600. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs PTEST_PP)>;
  2601. // [356] "ptrue $Pd, $pattern";
  2602. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs PTRUE_B, PTRUE_D, PTRUE_H, PTRUE_S)>;
  2603. // [357] "ptrues $Pd, $pattern";
  2604. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs PTRUES_B, PTRUES_D, PTRUES_H, PTRUES_S)>;
  2605. // [358] "punpkhi $Pd, $Pn";
  2606. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs PUNPKHI_PP)>;
  2607. // [359] "punpklo $Pd, $Pn";
  2608. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs PUNPKLO_PP)>;
  2609. // [360] "rbit $Zd, $Pg/m, $Zn";
  2610. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs RBIT_ZPmZ_B, RBIT_ZPmZ_D, RBIT_ZPmZ_H, RBIT_ZPmZ_S)>;
  2611. // [361] "rdffr $Pd";
  2612. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs RDFFR_P)>;
  2613. // [362] "rdffr $Pd, $Pg/z";
  2614. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs RDFFR_PPz)>;
  2615. // [363] "rdffrs $Pd, $Pg/z";
  2616. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs RDFFRS_PPz)>;
  2617. // [364] "rdvl $Rd, $imm6";
  2618. def : InstRW<[A64FXWrite_1Cyc_GI24], (instrs RDVLI_XI)>;
  2619. // [365] "rev $Pd, $Pn";
  2620. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs REV_PP_B, REV_PP_D, REV_PP_H, REV_PP_S)>;
  2621. // [366] "rev $Zd, $Zn";
  2622. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs REV_ZZ_B, REV_ZZ_D, REV_ZZ_H, REV_ZZ_S)>;
  2623. // [367] "revb $Zd, $Pg/m, $Zn";
  2624. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs REVB_ZPmZ_D, REVB_ZPmZ_H, REVB_ZPmZ_S)>;
  2625. // [368] "revh $Zd, $Pg/m, $Zn";
  2626. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs REVH_ZPmZ_D, REVH_ZPmZ_S)>;
  2627. // [369] "revw $Zd, $Pg/m, $Zn";
  2628. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs REVW_ZPmZ_D)>;
  2629. // [370] "sabd $Zdn, $Pg/m, $_Zdn, $Zm";
  2630. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SABD_ZPmZ_B, SABD_ZPmZ_D, SABD_ZPmZ_H, SABD_ZPmZ_S)>;
  2631. // [371] "saddv $Vd, $Pg, $Zn";
  2632. def : InstRW<[A64FXWrite_12Cyc_GI03], (instrs SADDV_VPZ_B, SADDV_VPZ_H, SADDV_VPZ_S)>;
  2633. // [372] "scvtf $Zd, $Pg/m, $Zn";
  2634. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs SCVTF_ZPmZ_DtoD, SCVTF_ZPmZ_DtoH, SCVTF_ZPmZ_DtoS, SCVTF_ZPmZ_HtoH, SCVTF_ZPmZ_StoD, SCVTF_ZPmZ_StoH, SCVTF_ZPmZ_StoS)>;
  2635. // [373] "sdiv $Zdn, $Pg/m, $_Zdn, $Zm";
  2636. def : InstRW<[A64FXWrite_37Cyc_GI0], (instrs SDIV_ZPmZ_D, SDIV_ZPmZ_S)>;
  2637. // [374] "sdivr $Zdn, $Pg/m, $_Zdn, $Zm";
  2638. def : InstRW<[A64FXWrite_37Cyc_GI0], (instrs SDIVR_ZPmZ_D, SDIVR_ZPmZ_S)>;
  2639. // [375] "sdot $Zda, $Zn, $Zm";
  2640. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs SDOT_ZZZ_D, SDOT_ZZZ_S)>;
  2641. // [376] "sdot $Zda, $Zn, $Zm$iop";
  2642. def : InstRW<[A64FXWrite_15Cyc_NGI03], (instrs SDOT_ZZZI_D, SDOT_ZZZI_S)>;
  2643. // [377] "sel $Pd, $Pg, $Pn, $Pm";
  2644. def : InstRW<[A64FXWrite_3Cyc_GI1], (instrs SEL_PPPP)>;
  2645. // [378] "sel $Zd, $Pg, $Zn, $Zm";
  2646. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SEL_ZPZZ_B, SEL_ZPZZ_D, SEL_ZPZZ_H, SEL_ZPZZ_S)>;
  2647. // [379] "setffr";
  2648. def : InstRW<[A64FXWrite_6Cyc], (instrs SETFFR)>;
  2649. // [380] "smax $Zdn, $Pg/m, $_Zdn, $Zm";
  2650. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SMAX_ZPmZ_B, SMAX_ZPmZ_D, SMAX_ZPmZ_H, SMAX_ZPmZ_S)>;
  2651. // [381] "smax $Zdn, $_Zdn, $imm";
  2652. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs SMAX_ZI_B, SMAX_ZI_D, SMAX_ZI_H, SMAX_ZI_S)>;
  2653. // [382] "smaxv $Vd, $Pg, $Zn";
  2654. def : InstRW<[A64FXWrite_14Cyc_GI03], (instrs SMAXV_VPZ_B, SMAXV_VPZ_D, SMAXV_VPZ_H, SMAXV_VPZ_S)>;
  2655. // [383] "smin $Zdn, $Pg/m, $_Zdn, $Zm";
  2656. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SMIN_ZPmZ_B, SMIN_ZPmZ_D, SMIN_ZPmZ_H, SMIN_ZPmZ_S)>;
  2657. // [384] "smin $Zdn, $_Zdn, $imm";
  2658. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs SMIN_ZI_B, SMIN_ZI_D, SMIN_ZI_H, SMIN_ZI_S)>;
  2659. // [385] "sminv $Vd, $Pg, $Zn";
  2660. def : InstRW<[A64FXWrite_14Cyc_GI03], (instrs SMINV_VPZ_B, SMINV_VPZ_D, SMINV_VPZ_H, SMINV_VPZ_S)>;
  2661. // [386] "smulh $Zdn, $Pg/m, $_Zdn, $Zm";
  2662. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs SMULH_ZPmZ_B, SMULH_ZPmZ_D, SMULH_ZPmZ_H, SMULH_ZPmZ_S)>;
  2663. // [387] "splice $Zdn, $Pg, $_Zdn, $Zm";
  2664. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs SPLICE_ZPZ_B, SPLICE_ZPZ_D, SPLICE_ZPZ_H, SPLICE_ZPZ_S)>;
  2665. // [388] "sqadd $Zd, $Zn, $Zm";
  2666. // [389] "sqadd $Zdn, $_Zdn, $imm";
  2667. // [390] "sqdecb $Rdn, $_Rdn, $pattern, mul $imm4";
  2668. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQDECB_XPiWdI)>;
  2669. // [391] "sqdecb $Rdn, $pattern, mul $imm4";
  2670. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQDECB_XPiI)>;
  2671. // [392] "sqdecd $Rdn, $_Rdn, $pattern, mul $imm4";
  2672. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQDECD_XPiWdI)>;
  2673. // [393] "sqdecd $Rdn, $pattern, mul $imm4";
  2674. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQDECD_XPiI)>;
  2675. // [394] "sqdecd $Zdn, $pattern, mul $imm4";
  2676. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SQDECD_ZPiI)>;
  2677. // [395] "sqdech $Rdn, $_Rdn, $pattern, mul $imm4";
  2678. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQDECH_XPiWdI)>;
  2679. // [396] "sqdech $Rdn, $pattern, mul $imm4";
  2680. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQDECH_XPiI)>;
  2681. // [397] "sqdech $Zdn, $pattern, mul $imm4";
  2682. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SQDECH_ZPiI)>;
  2683. // [398] "sqdecp $Rdn, $Pg";
  2684. def : InstRW<[A64FXWrite_8Cyc_GI124], (instrs SQDECP_XP_B, SQDECP_XP_D, SQDECP_XP_H, SQDECP_XP_S)>;
  2685. // [399] "sqdecp $Rdn, $Pg, $_Rdn";
  2686. def : InstRW<[A64FXWrite_8Cyc_GI124], (instrs SQDECP_XPWd_B, SQDECP_XPWd_D, SQDECP_XPWd_H, SQDECP_XPWd_S)>;
  2687. // [400] "sqdecp $Zdn, $Pg";
  2688. def : InstRW<[A64FXWrite_12Cyc_GI01], (instrs SQDECP_ZP_D, SQDECP_ZP_H, SQDECP_ZP_S)>;
  2689. // [401] "sqdecw $Rdn, $_Rdn, $pattern, mul $imm4";
  2690. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQDECW_XPiWdI)>;
  2691. // [402] "sqdecw $Rdn, $pattern, mul $imm4";
  2692. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQDECW_XPiI)>;
  2693. // [403] "sqdecw $Zdn, $pattern, mul $imm4";
  2694. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SQDECW_ZPiI)>;
  2695. // [404] "sqincb $Rdn, $_Rdn, $pattern, mul $imm4";
  2696. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQINCB_XPiWdI)>;
  2697. // [405] "sqincb $Rdn, $pattern, mul $imm4";
  2698. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQINCB_XPiI)>;
  2699. // [406] "sqincd $Rdn, $_Rdn, $pattern, mul $imm4";
  2700. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQINCD_XPiWdI)>;
  2701. // [407] "sqincd $Rdn, $pattern, mul $imm4";
  2702. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQINCD_XPiI)>;
  2703. // [408] "sqincd $Zdn, $pattern, mul $imm4";
  2704. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SQINCD_ZPiI)>;
  2705. // [409] "sqinch $Rdn, $_Rdn, $pattern, mul $imm4";
  2706. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQINCH_XPiWdI)>;
  2707. // [410] "sqinch $Rdn, $pattern, mul $imm4";
  2708. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQINCH_XPiI)>;
  2709. // [411] "sqinch $Zdn, $pattern, mul $imm4";
  2710. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SQINCH_ZPiI)>;
  2711. // [412] "sqincp $Rdn, $Pg";
  2712. def : InstRW<[A64FXWrite_8Cyc_GI124], (instrs SQINCP_XP_B, SQINCP_XP_D, SQINCP_XP_H, SQINCP_XP_S)>;
  2713. // [413] "sqincp $Rdn, $Pg, $_Rdn";
  2714. def : InstRW<[A64FXWrite_8Cyc_GI124], (instrs SQINCP_XPWd_B, SQINCP_XPWd_D, SQINCP_XPWd_H, SQINCP_XPWd_S)>;
  2715. // [414] "sqincp $Zdn, $Pg";
  2716. def : InstRW<[A64FXWrite_12Cyc_GI01], (instrs SQINCP_ZP_D, SQINCP_ZP_H, SQINCP_ZP_S)>;
  2717. // [415] "sqincw $Rdn, $_Rdn, $pattern, mul $imm4";
  2718. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQINCW_XPiWdI)>;
  2719. // [416] "sqincw $Rdn, $pattern, mul $imm4";
  2720. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs SQINCW_XPiI)>;
  2721. // [417] "sqincw $Zdn, $pattern, mul $imm4";
  2722. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SQINCW_ZPiI)>;
  2723. // [418] "sqsub $Zd, $Zn, $Zm";
  2724. // [419] "sqsub $Zdn, $_Zdn, $imm";
  2725. // [420] "st1b $Zt, $Pg, [$Rn, $Rm]";
  2726. def : InstRW<[A64FXWrite_ST1W_6], (instrs ST1B, ST1B_D, ST1B_H, ST1B_S)>;
  2727. // [421] "st1b $Zt, $Pg, [$Rn, $Zm]";
  2728. def : InstRW<[A64FXWrite_ST1W_19], (instrs SST1B_D_REAL, SST1B_D_SXTW, SST1B_D_UXTW, SST1B_S_SXTW, SST1B_S_UXTW)>;
  2729. // [422] "st1b $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2730. def : InstRW<[A64FXWrite_ST1W_6], (instrs ST1B_D_IMM, ST1B_H_IMM, ST1B_IMM, ST1B_S_IMM)>;
  2731. // [423] "st1b $Zt, $Pg, [$Zn, $imm5]";
  2732. def : InstRW<[A64FXWrite_ST1W_15], (instrs SST1B_D_IMM, SST1B_S_IMM)>;
  2733. // [424] "st1d $Zt, $Pg, [$Rn, $Rm]";
  2734. def : InstRW<[A64FXWrite_ST1W_6], (instrs ST1D)>;
  2735. // [425] "st1d $Zt, $Pg, [$Rn, $Zm]";
  2736. def : InstRW<[A64FXWrite_ST1W_19], (instrs SST1D_REAL, SST1D_SCALED_SCALED_REAL, SST1D_SXTW, SST1D_SXTW_SCALED, SST1D_UXTW, SST1D_UXTW_SCALED)>;
  2737. // [426] "st1d $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2738. def : InstRW<[A64FXWrite_ST1W_6], (instrs ST1D_IMM)>;
  2739. // [427] "st1d $Zt, $Pg, [$Zn, $imm5]";
  2740. def : InstRW<[A64FXWrite_ST1W_15], (instrs SST1D_IMM)>;
  2741. // [428] "st1h $Zt, $Pg, [$Rn, $Rm]";
  2742. def : InstRW<[A64FXWrite_ST1W_6], (instrs ST1H, ST1H_D, ST1H_S)>;
  2743. // [429] "st1h $Zt, $Pg, [$Rn, $Zm]";
  2744. def : InstRW<[A64FXWrite_ST1W_19], (instrs SST1H_D_REAL, SST1H_D_SCALED_SCALED_REAL, SST1H_D_SXTW, SST1H_D_SXTW_SCALED, SST1H_D_UXTW, SST1H_D_UXTW_SCALED, SST1H_S_SXTW, SST1H_S_SXTW_SCALED, SST1H_S_UXTW, SST1H_S_UXTW_SCALED)>;
  2745. // [430] "st1h $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2746. def : InstRW<[A64FXWrite_ST1W_6], (instrs ST1H_D_IMM, ST1H_IMM, ST1H_S_IMM)>;
  2747. // [431] "st1h $Zt, $Pg, [$Zn, $imm5]";
  2748. def : InstRW<[A64FXWrite_ST1W_15], (instrs SST1H_D_IMM, SST1H_S_IMM)>;
  2749. // [432] "st1w $Zt, $Pg, [$Rn, $Rm]";
  2750. def : InstRW<[A64FXWrite_ST1W_6], (instrs ST1W, ST1W_D)>;
  2751. // [433] "st1w $Zt, $Pg, [$Rn, $Zm]";
  2752. def : InstRW<[A64FXWrite_ST1W_19], (instrs SST1W_D_REAL, SST1W_D_SCALED_SCALED_REAL, SST1W_D_SXTW, SST1W_D_SXTW_SCALED, SST1W_D_UXTW, SST1W_D_UXTW_SCALED, SST1W_SXTW, SST1W_SXTW_SCALED, SST1W_UXTW, SST1W_UXTW_SCALED)>;
  2753. // [434] "st1w $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2754. def : InstRW<[A64FXWrite_ST1W_6], (instrs ST1W_D_IMM, ST1W_IMM)>;
  2755. // [435] "st1w $Zt, $Pg, [$Zn, $imm5]";
  2756. def : InstRW<[A64FXWrite_ST1W_15], (instrs SST1W_D_IMM, SST1W_IMM)>;
  2757. // [436] "st2b $Zt, $Pg, [$Rn, $Rm]";
  2758. def : InstRW<[A64FXWrite_ST2W_7], (instrs ST2B)>;
  2759. // [437] "st2b $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2760. def : InstRW<[A64FXWrite_ST2W_7], (instrs ST2B_IMM)>;
  2761. // [438] "st2d $Zt, $Pg, [$Rn, $Rm]";
  2762. def : InstRW<[A64FXWrite_ST2W_7], (instrs ST2D)>;
  2763. // [439] "st2d $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2764. def : InstRW<[A64FXWrite_ST2W_7], (instrs ST2D_IMM)>;
  2765. // [440] "st2h $Zt, $Pg, [$Rn, $Rm]";
  2766. def : InstRW<[A64FXWrite_ST2W_7], (instrs ST2H)>;
  2767. // [441] "st2h $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2768. def : InstRW<[A64FXWrite_ST2W_7], (instrs ST2H_IMM)>;
  2769. // [442] "st2w $Zt, $Pg, [$Rn, $Rm]";
  2770. def : InstRW<[A64FXWrite_ST2W_7], (instrs ST2W)>;
  2771. // [443] "st2w $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2772. def : InstRW<[A64FXWrite_ST2W_7], (instrs ST2W_IMM)>;
  2773. // [444] "st3b $Zt, $Pg, [$Rn, $Rm]";
  2774. def : InstRW<[A64FXWrite_ST3W_8], (instrs ST3B)>;
  2775. // [445] "st3b $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2776. def : InstRW<[A64FXWrite_ST3W_8], (instrs ST3B_IMM)>;
  2777. // [446] "st3d $Zt, $Pg, [$Rn, $Rm]";
  2778. def : InstRW<[A64FXWrite_ST3W_8], (instrs ST3D)>;
  2779. // [447] "st3d $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2780. def : InstRW<[A64FXWrite_ST3W_8], (instrs ST3D_IMM)>;
  2781. // [448] "st3h $Zt, $Pg, [$Rn, $Rm]";
  2782. def : InstRW<[A64FXWrite_ST3W_8], (instrs ST3H)>;
  2783. // [449] "st3h $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2784. def : InstRW<[A64FXWrite_ST3W_8], (instrs ST3H_IMM)>;
  2785. // [450] "st3w $Zt, $Pg, [$Rn, $Rm]";
  2786. def : InstRW<[A64FXWrite_ST3W_8], (instrs ST3W)>;
  2787. // [451] "st3w $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2788. def : InstRW<[A64FXWrite_ST3W_8], (instrs ST3W_IMM)>;
  2789. // [452] "st4b $Zt, $Pg, [$Rn, $Rm]";
  2790. def : InstRW<[A64FXWrite_ST4W_9], (instrs ST4B)>;
  2791. // [453] "st4b $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2792. def : InstRW<[A64FXWrite_ST4W_9], (instrs ST4B_IMM)>;
  2793. // [454] "st4d $Zt, $Pg, [$Rn, $Rm]";
  2794. def : InstRW<[A64FXWrite_ST4W_9], (instrs ST4D)>;
  2795. // [455] "st4d $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2796. def : InstRW<[A64FXWrite_ST4W_9], (instrs ST4D_IMM)>;
  2797. // [456] "st4h $Zt, $Pg, [$Rn, $Rm]";
  2798. def : InstRW<[A64FXWrite_ST4W_9], (instrs ST4H)>;
  2799. // [457] "st4h $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2800. def : InstRW<[A64FXWrite_ST4W_9], (instrs ST4H_IMM)>;
  2801. // [458] "st4w $Zt, $Pg, [$Rn, $Rm]";
  2802. def : InstRW<[A64FXWrite_ST4W_9], (instrs ST4W)>;
  2803. // [459] "st4w $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2804. def : InstRW<[A64FXWrite_ST4W_9], (instrs ST4W_IMM)>;
  2805. // [460] "stnt1b $Zt, $Pg, [$Rn, $Rm]";
  2806. def : InstRW<[A64FXWrite_ST1W_6], (instrs STNT1B_ZRR)>;
  2807. // [461] "stnt1b $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2808. def : InstRW<[A64FXWrite_ST1W_6], (instrs STNT1B_ZRI)>;
  2809. // [462] "stnt1d $Zt, $Pg, [$Rn, $Rm]";
  2810. def : InstRW<[A64FXWrite_ST1W_6], (instrs STNT1D_ZRR)>;
  2811. // [463] "stnt1d $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2812. def : InstRW<[A64FXWrite_ST1W_6], (instrs STNT1D_ZRI)>;
  2813. // [464] "stnt1h $Zt, $Pg, [$Rn, $Rm]";
  2814. def : InstRW<[A64FXWrite_ST1W_6], (instrs STNT1H_ZRR)>;
  2815. // [465] "stnt1h $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2816. def : InstRW<[A64FXWrite_ST1W_6], (instrs STNT1H_ZRI)>;
  2817. // [466] "stnt1w $Zt, $Pg, [$Rn, $Rm]";
  2818. def : InstRW<[A64FXWrite_ST1W_6], (instrs STNT1W_ZRR)>;
  2819. // [467] "stnt1w $Zt, $Pg, [$Rn, $imm4, mul vl]";
  2820. def : InstRW<[A64FXWrite_ST1W_6], (instrs STNT1W_ZRI)>;
  2821. // [468] "str $Pt, [$Rn, $imm9, mul vl]";
  2822. def : InstRW<[A64FXWrite_6Cyc_GI15], (instrs STR_PXI)>;
  2823. // [469] "str $Zt, [$Rn, $imm9, mul vl]";
  2824. def : InstRW<[A64FXWrite_6Cyc_GI05], (instrs STR_ZXI)>;
  2825. // [470] "sub $Zd, $Zn, $Zm";
  2826. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SUB_ZZZ_B, SUB_ZZZ_D, SUB_ZZZ_H, SUB_ZZZ_S)>;
  2827. // [471] "sub $Zdn, $Pg/m, $_Zdn, $Zm";
  2828. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SUB_ZPmZ_B, SUB_ZPmZ_D, SUB_ZPmZ_H, SUB_ZPmZ_S)>;
  2829. // [472] "sub $Zdn, $_Zdn, $imm";
  2830. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SUB_ZI_B, SUB_ZI_D, SUB_ZI_H, SUB_ZI_S)>;
  2831. // [473] "subr $Zdn, $Pg/m, $_Zdn, $Zm";
  2832. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SUBR_ZPmZ_B, SUBR_ZPmZ_D, SUBR_ZPmZ_H, SUBR_ZPmZ_S)>;
  2833. // [474] "subr $Zdn, $_Zdn, $imm";
  2834. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs SUBR_ZI_B, SUBR_ZI_D, SUBR_ZI_H, SUBR_ZI_S)>;
  2835. // [475] "sunpkhi $Zd, $Zn";
  2836. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs SUNPKHI_ZZ_D, SUNPKHI_ZZ_H, SUNPKHI_ZZ_S)>;
  2837. // [476] "sunpklo $Zd, $Zn";
  2838. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs SUNPKLO_ZZ_D, SUNPKLO_ZZ_H, SUNPKLO_ZZ_S)>;
  2839. // [477] "sxtb $Zd, $Pg/m, $Zn";
  2840. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SXTB_ZPmZ_D, SXTB_ZPmZ_H, SXTB_ZPmZ_S)>;
  2841. // [478] "sxth $Zd, $Pg/m, $Zn";
  2842. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SXTH_ZPmZ_D, SXTH_ZPmZ_S)>;
  2843. // [479] "sxtw $Zd, $Pg/m, $Zn";
  2844. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs SXTW_ZPmZ_D)>;
  2845. // [480] "tbl $Zd, $Zn, $Zm";
  2846. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs TBL_ZZZ_B, TBL_ZZZ_D, TBL_ZZZ_H, TBL_ZZZ_S)>;
  2847. // [481] "trn1 $Pd, $Pn, $Pm";
  2848. // [482] "trn1 $Zd, $Zn, $Zm";
  2849. // [483] "trn2 $Pd, $Pn, $Pm";
  2850. // [484] "trn2 $Zd, $Zn, $Zm";
  2851. // [486] "uabd $Zdn, $Pg/m, $_Zdn, $Zm";
  2852. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UABD_ZPmZ_B, UABD_ZPmZ_D, UABD_ZPmZ_H, UABD_ZPmZ_S)>;
  2853. // [487] "uaddv $Vd, $Pg, $Zn";
  2854. def : InstRW<[A64FXWrite_12Cyc_GI03], (instrs UADDV_VPZ_B, UADDV_VPZ_D, UADDV_VPZ_H, UADDV_VPZ_S)>;
  2855. // [488] "ucvtf $Zd, $Pg/m, $Zn";
  2856. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs UCVTF_ZPmZ_DtoD, UCVTF_ZPmZ_DtoH, UCVTF_ZPmZ_DtoS, UCVTF_ZPmZ_HtoH, UCVTF_ZPmZ_StoD, UCVTF_ZPmZ_StoH, UCVTF_ZPmZ_StoS)>;
  2857. // [489] "udiv $Zdn, $Pg/m, $_Zdn, $Zm";
  2858. def : InstRW<[A64FXWrite_37Cyc_GI0], (instrs UDIV_ZPmZ_D, UDIV_ZPmZ_S)>;
  2859. // [490] "udivr $Zdn, $Pg/m, $_Zdn, $Zm";
  2860. def : InstRW<[A64FXWrite_37Cyc_GI0], (instrs UDIVR_ZPmZ_D, UDIVR_ZPmZ_S)>;
  2861. // [491] "udot $Zda, $Zn, $Zm";
  2862. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs UDOT_ZZZ_D, UDOT_ZZZ_S)>;
  2863. // [492] "udot $Zda, $Zn, $Zm$iop";
  2864. def : InstRW<[A64FXWrite_15Cyc_NGI03], (instrs UDOT_ZZZI_D, UDOT_ZZZI_S)>;
  2865. // [493] "umax $Zdn, $Pg/m, $_Zdn, $Zm";
  2866. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UMAX_ZPmZ_B, UMAX_ZPmZ_D, UMAX_ZPmZ_H, UMAX_ZPmZ_S)>;
  2867. // [494] "umax $Zdn, $_Zdn, $imm";
  2868. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs UMAX_ZI_B, UMAX_ZI_D, UMAX_ZI_H, UMAX_ZI_S)>;
  2869. // [495] "umaxv $Vd, $Pg, $Zn";
  2870. def : InstRW<[A64FXWrite_14Cyc_GI03], (instrs UMAXV_VPZ_B, UMAXV_VPZ_D, UMAXV_VPZ_H, UMAXV_VPZ_S)>;
  2871. // [496] "umin $Zdn, $Pg/m, $_Zdn, $Zm";
  2872. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UMIN_ZPmZ_B, UMIN_ZPmZ_D, UMIN_ZPmZ_H, UMIN_ZPmZ_S)>;
  2873. // [497] "umin $Zdn, $_Zdn, $imm";
  2874. def : InstRW<[A64FXWrite_4Cyc_GI0], (instrs UMIN_ZI_B, UMIN_ZI_D, UMIN_ZI_H, UMIN_ZI_S)>;
  2875. // [498] "uminv $Vd, $Pg, $Zn";
  2876. def : InstRW<[A64FXWrite_14Cyc_GI03], (instrs UMINV_VPZ_B, UMINV_VPZ_D, UMINV_VPZ_H, UMINV_VPZ_S)>;
  2877. // [499] "umulh $Zdn, $Pg/m, $_Zdn, $Zm";
  2878. def : InstRW<[A64FXWrite_9Cyc_GI03], (instrs UMULH_ZPmZ_B, UMULH_ZPmZ_D, UMULH_ZPmZ_H, UMULH_ZPmZ_S)>;
  2879. // [500] "uqadd $Zd, $Zn, $Zm";
  2880. // [501] "uqadd $Zdn, $_Zdn, $imm";
  2881. // [502] "uqdecb $Rdn, $pattern, mul $imm4";
  2882. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs UQDECB_WPiI, UQDECB_XPiI)>;
  2883. // [503] "uqdecd $Rdn, $pattern, mul $imm4";
  2884. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs UQDECD_WPiI, UQDECD_XPiI)>;
  2885. // [504] "uqdecd $Zdn, $pattern, mul $imm4";
  2886. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UQDECD_ZPiI)>;
  2887. // [505] "uqdech $Rdn, $pattern, mul $imm4";
  2888. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs UQDECH_WPiI, UQDECH_XPiI)>;
  2889. // [506] "uqdech $Zdn, $pattern, mul $imm4";
  2890. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UQDECH_ZPiI)>;
  2891. // [507] "uqdecp $Rdn, $Pg";
  2892. def : InstRW<[A64FXWrite_8Cyc_GI124], (instrs UQDECP_WP_B, UQDECP_WP_D, UQDECP_WP_H, UQDECP_WP_S, UQDECP_XP_B, UQDECP_XP_D, UQDECP_XP_H, UQDECP_XP_S)>;
  2893. // [508] "uqdecp $Zdn, $Pg";
  2894. def : InstRW<[A64FXWrite_12Cyc_GI01], (instrs UQDECP_ZP_D, UQDECP_ZP_H, UQDECP_ZP_S)>;
  2895. // [509] "uqdecw $Rdn, $pattern, mul $imm4";
  2896. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs UQDECW_WPiI, UQDECW_XPiI)>;
  2897. // [510] "uqdecw $Zdn, $pattern, mul $imm4";
  2898. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UQDECW_ZPiI)>;
  2899. // [511] "uqincb $Rdn, $pattern, mul $imm4";
  2900. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs UQINCB_WPiI, UQINCB_XPiI)>;
  2901. // [512] "uqincd $Rdn, $pattern, mul $imm4";
  2902. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs UQINCD_WPiI, UQINCD_XPiI)>;
  2903. // [513] "uqincd $Zdn, $pattern, mul $imm4";
  2904. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UQINCD_ZPiI)>;
  2905. // [514] "uqinch $Rdn, $pattern, mul $imm4";
  2906. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs UQINCH_WPiI, UQINCH_XPiI)>;
  2907. // [515] "uqinch $Zdn, $pattern, mul $imm4";
  2908. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UQINCH_ZPiI)>;
  2909. // [516] "uqincp $Rdn, $Pg";
  2910. def : InstRW<[A64FXWrite_8Cyc_GI124], (instrs UQINCP_WP_B, UQINCP_WP_D, UQINCP_WP_H, UQINCP_WP_S, UQINCP_XP_B, UQINCP_XP_D, UQINCP_XP_H, UQINCP_XP_S)>;
  2911. // [517] "uqincp $Zdn, $Pg";
  2912. def : InstRW<[A64FXWrite_12Cyc_GI01], (instrs UQINCP_ZP_D, UQINCP_ZP_H, UQINCP_ZP_S)>;
  2913. // [518] "uqincw $Rdn, $pattern, mul $imm4";
  2914. def : InstRW<[A64FXWrite_2Cyc_GI24], (instrs UQINCW_WPiI, UQINCW_XPiI)>;
  2915. // [519] "uqincw $Zdn, $pattern, mul $imm4";
  2916. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UQINCW_ZPiI)>;
  2917. // [520] "uqsub $Zd, $Zn, $Zm";
  2918. //@@@ def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UQSUB_ZZZ_B, UQSUB_ZZZ_D, UQSUB_ZZZ_H, UQSUB_ZZZ_S)>;
  2919. // [521] "uqsub $Zdn, $_Zdn, $imm";
  2920. //@@@ def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UQSUB_ZI_B, UQSUB_ZI_D, UQSUB_ZI_H, UQSUB_ZI_S)>;
  2921. // [522] "uunpkhi $Zd, $Zn";
  2922. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs UUNPKHI_ZZ_D, UUNPKHI_ZZ_H, UUNPKHI_ZZ_S)>;
  2923. // [523] "uunpklo $Zd, $Zn";
  2924. def : InstRW<[A64FXWrite_6Cyc_GI0], (instrs UUNPKLO_ZZ_D, UUNPKLO_ZZ_H, UUNPKLO_ZZ_S)>;
  2925. // [524] "uxtb $Zd, $Pg/m, $Zn";
  2926. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UXTB_ZPmZ_D, UXTB_ZPmZ_H, UXTB_ZPmZ_S)>;
  2927. // [525] "uxth $Zd, $Pg/m, $Zn";
  2928. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UXTH_ZPmZ_D, UXTH_ZPmZ_S)>;
  2929. // [526] "uxtw $Zd, $Pg/m, $Zn";
  2930. def : InstRW<[A64FXWrite_4Cyc_GI03], (instrs UXTW_ZPmZ_D)>;
  2931. // [527] "uzp1 $Pd, $Pn, $Pm";
  2932. // [528] "uzp1 $Zd, $Zn, $Zm";
  2933. // [529] "uzp2 $Pd, $Pn, $Pm";
  2934. // [530] "uzp2 $Zd, $Zn, $Zm";
  2935. // [531] "whilele $Pd, $Rn, $Rm";
  2936. def : InstRW<[A64FXWrite_4Cyc_GI12], (instrs WHILELE_PWW_B, WHILELE_PWW_D, WHILELE_PWW_H, WHILELE_PWW_S, WHILELE_PXX_B, WHILELE_PXX_D, WHILELE_PXX_H, WHILELE_PXX_S)>;
  2937. // [532] "whilelo $Pd, $Rn, $Rm";
  2938. def : InstRW<[A64FXWrite_4Cyc_GI12], (instrs WHILELO_PWW_B, WHILELO_PWW_D, WHILELO_PWW_H, WHILELO_PWW_S, WHILELO_PXX_B, WHILELO_PXX_D, WHILELO_PXX_H, WHILELO_PXX_S)>;
  2939. // [533] "whilels $Pd, $Rn, $Rm";
  2940. def : InstRW<[A64FXWrite_4Cyc_GI12], (instrs WHILELS_PWW_B, WHILELS_PWW_D, WHILELS_PWW_H, WHILELS_PWW_S, WHILELS_PXX_B, WHILELS_PXX_D, WHILELS_PXX_H, WHILELS_PXX_S)>;
  2941. // [534] "whilelt $Pd, $Rn, $Rm";
  2942. def : InstRW<[A64FXWrite_4Cyc_GI12], (instrs WHILELT_PWW_B, WHILELT_PWW_D, WHILELT_PWW_H, WHILELT_PWW_S, WHILELT_PXX_B, WHILELT_PXX_D, WHILELT_PXX_H, WHILELT_PXX_S)>;
  2943. // [535] "wrffr $Pn";
  2944. def : InstRW<[A64FXWrite_6Cyc_NGI1], (instrs WRFFR)>;
  2945. // [536] "zip1 $Pd, $Pn, $Pm";
  2946. // [537] "zip1 $Zd, $Zn, $Zm";
  2947. // [538] "zip2 $Pd, $Pn, $Pm";
  2948. // [539] "zip2 $Zd, $Zn, $Zm";
  2949. } // SchedModel = A64FXModel