sljitNativeTILEGX-encoder.c 240 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159
  1. /*
  2. * Stack-less Just-In-Time compiler
  3. *
  4. * Copyright 2013-2013 Tilera Corporation(jiwang@tilera.com). All rights reserved.
  5. * Copyright Zoltan Herczeg (hzmester@freemail.hu). All rights reserved.
  6. *
  7. * Redistribution and use in source and binary forms, with or without modification, are
  8. * permitted provided that the following conditions are met:
  9. *
  10. * 1. Redistributions of source code must retain the above copyright notice, this list of
  11. * conditions and the following disclaimer.
  12. *
  13. * 2. Redistributions in binary form must reproduce the above copyright notice, this list
  14. * of conditions and the following disclaimer in the documentation and/or other materials
  15. * provided with the distribution.
  16. *
  17. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND CONTRIBUTORS ``AS IS'' AND ANY
  18. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  19. * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
  20. * SHALL THE COPYRIGHT HOLDER(S) OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  21. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
  22. * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
  23. * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  24. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  25. * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. /* This code is owned by Tilera Corporation, and distributed as part
  28. of multiple projects. In sljit, the code is under BSD licence. */
  29. #include <stdio.h>
  30. #include <stdlib.h>
  31. #include <string.h>
  32. #define BFD_RELOC(x) R_##x
  33. /* Special registers. */
  34. #define TREG_LR 55
  35. #define TREG_SN 56
  36. #define TREG_ZERO 63
  37. /* Canonical name of each register. */
  38. const char *const tilegx_register_names[] =
  39. {
  40. "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
  41. "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",
  42. "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23",
  43. "r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31",
  44. "r32", "r33", "r34", "r35", "r36", "r37", "r38", "r39",
  45. "r40", "r41", "r42", "r43", "r44", "r45", "r46", "r47",
  46. "r48", "r49", "r50", "r51", "r52", "tp", "sp", "lr",
  47. "sn", "idn0", "idn1", "udn0", "udn1", "udn2", "udn3", "zero"
  48. };
  49. enum
  50. {
  51. R_NONE = 0,
  52. R_TILEGX_NONE = 0,
  53. R_TILEGX_64 = 1,
  54. R_TILEGX_32 = 2,
  55. R_TILEGX_16 = 3,
  56. R_TILEGX_8 = 4,
  57. R_TILEGX_64_PCREL = 5,
  58. R_TILEGX_32_PCREL = 6,
  59. R_TILEGX_16_PCREL = 7,
  60. R_TILEGX_8_PCREL = 8,
  61. R_TILEGX_HW0 = 9,
  62. R_TILEGX_HW1 = 10,
  63. R_TILEGX_HW2 = 11,
  64. R_TILEGX_HW3 = 12,
  65. R_TILEGX_HW0_LAST = 13,
  66. R_TILEGX_HW1_LAST = 14,
  67. R_TILEGX_HW2_LAST = 15,
  68. R_TILEGX_COPY = 16,
  69. R_TILEGX_GLOB_DAT = 17,
  70. R_TILEGX_JMP_SLOT = 18,
  71. R_TILEGX_RELATIVE = 19,
  72. R_TILEGX_BROFF_X1 = 20,
  73. R_TILEGX_JUMPOFF_X1 = 21,
  74. R_TILEGX_JUMPOFF_X1_PLT = 22,
  75. R_TILEGX_IMM8_X0 = 23,
  76. R_TILEGX_IMM8_Y0 = 24,
  77. R_TILEGX_IMM8_X1 = 25,
  78. R_TILEGX_IMM8_Y1 = 26,
  79. R_TILEGX_DEST_IMM8_X1 = 27,
  80. R_TILEGX_MT_IMM14_X1 = 28,
  81. R_TILEGX_MF_IMM14_X1 = 29,
  82. R_TILEGX_MMSTART_X0 = 30,
  83. R_TILEGX_MMEND_X0 = 31,
  84. R_TILEGX_SHAMT_X0 = 32,
  85. R_TILEGX_SHAMT_X1 = 33,
  86. R_TILEGX_SHAMT_Y0 = 34,
  87. R_TILEGX_SHAMT_Y1 = 35,
  88. R_TILEGX_IMM16_X0_HW0 = 36,
  89. R_TILEGX_IMM16_X1_HW0 = 37,
  90. R_TILEGX_IMM16_X0_HW1 = 38,
  91. R_TILEGX_IMM16_X1_HW1 = 39,
  92. R_TILEGX_IMM16_X0_HW2 = 40,
  93. R_TILEGX_IMM16_X1_HW2 = 41,
  94. R_TILEGX_IMM16_X0_HW3 = 42,
  95. R_TILEGX_IMM16_X1_HW3 = 43,
  96. R_TILEGX_IMM16_X0_HW0_LAST = 44,
  97. R_TILEGX_IMM16_X1_HW0_LAST = 45,
  98. R_TILEGX_IMM16_X0_HW1_LAST = 46,
  99. R_TILEGX_IMM16_X1_HW1_LAST = 47,
  100. R_TILEGX_IMM16_X0_HW2_LAST = 48,
  101. R_TILEGX_IMM16_X1_HW2_LAST = 49,
  102. R_TILEGX_IMM16_X0_HW0_PCREL = 50,
  103. R_TILEGX_IMM16_X1_HW0_PCREL = 51,
  104. R_TILEGX_IMM16_X0_HW1_PCREL = 52,
  105. R_TILEGX_IMM16_X1_HW1_PCREL = 53,
  106. R_TILEGX_IMM16_X0_HW2_PCREL = 54,
  107. R_TILEGX_IMM16_X1_HW2_PCREL = 55,
  108. R_TILEGX_IMM16_X0_HW3_PCREL = 56,
  109. R_TILEGX_IMM16_X1_HW3_PCREL = 57,
  110. R_TILEGX_IMM16_X0_HW0_LAST_PCREL = 58,
  111. R_TILEGX_IMM16_X1_HW0_LAST_PCREL = 59,
  112. R_TILEGX_IMM16_X0_HW1_LAST_PCREL = 60,
  113. R_TILEGX_IMM16_X1_HW1_LAST_PCREL = 61,
  114. R_TILEGX_IMM16_X0_HW2_LAST_PCREL = 62,
  115. R_TILEGX_IMM16_X1_HW2_LAST_PCREL = 63,
  116. R_TILEGX_IMM16_X0_HW0_GOT = 64,
  117. R_TILEGX_IMM16_X1_HW0_GOT = 65,
  118. R_TILEGX_IMM16_X0_HW0_PLT_PCREL = 66,
  119. R_TILEGX_IMM16_X1_HW0_PLT_PCREL = 67,
  120. R_TILEGX_IMM16_X0_HW1_PLT_PCREL = 68,
  121. R_TILEGX_IMM16_X1_HW1_PLT_PCREL = 69,
  122. R_TILEGX_IMM16_X0_HW2_PLT_PCREL = 70,
  123. R_TILEGX_IMM16_X1_HW2_PLT_PCREL = 71,
  124. R_TILEGX_IMM16_X0_HW0_LAST_GOT = 72,
  125. R_TILEGX_IMM16_X1_HW0_LAST_GOT = 73,
  126. R_TILEGX_IMM16_X0_HW1_LAST_GOT = 74,
  127. R_TILEGX_IMM16_X1_HW1_LAST_GOT = 75,
  128. R_TILEGX_IMM16_X0_HW0_TLS_GD = 78,
  129. R_TILEGX_IMM16_X1_HW0_TLS_GD = 79,
  130. R_TILEGX_IMM16_X0_HW0_TLS_LE = 80,
  131. R_TILEGX_IMM16_X1_HW0_TLS_LE = 81,
  132. R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE = 82,
  133. R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE = 83,
  134. R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE = 84,
  135. R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE = 85,
  136. R_TILEGX_IMM16_X0_HW0_LAST_TLS_GD = 86,
  137. R_TILEGX_IMM16_X1_HW0_LAST_TLS_GD = 87,
  138. R_TILEGX_IMM16_X0_HW1_LAST_TLS_GD = 88,
  139. R_TILEGX_IMM16_X1_HW1_LAST_TLS_GD = 89,
  140. R_TILEGX_IMM16_X0_HW0_TLS_IE = 92,
  141. R_TILEGX_IMM16_X1_HW0_TLS_IE = 93,
  142. R_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL = 94,
  143. R_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL = 95,
  144. R_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL = 96,
  145. R_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL = 97,
  146. R_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL = 98,
  147. R_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL = 99,
  148. R_TILEGX_IMM16_X0_HW0_LAST_TLS_IE = 100,
  149. R_TILEGX_IMM16_X1_HW0_LAST_TLS_IE = 101,
  150. R_TILEGX_IMM16_X0_HW1_LAST_TLS_IE = 102,
  151. R_TILEGX_IMM16_X1_HW1_LAST_TLS_IE = 103,
  152. R_TILEGX_TLS_DTPMOD64 = 106,
  153. R_TILEGX_TLS_DTPOFF64 = 107,
  154. R_TILEGX_TLS_TPOFF64 = 108,
  155. R_TILEGX_TLS_DTPMOD32 = 109,
  156. R_TILEGX_TLS_DTPOFF32 = 110,
  157. R_TILEGX_TLS_TPOFF32 = 111,
  158. R_TILEGX_TLS_GD_CALL = 112,
  159. R_TILEGX_IMM8_X0_TLS_GD_ADD = 113,
  160. R_TILEGX_IMM8_X1_TLS_GD_ADD = 114,
  161. R_TILEGX_IMM8_Y0_TLS_GD_ADD = 115,
  162. R_TILEGX_IMM8_Y1_TLS_GD_ADD = 116,
  163. R_TILEGX_TLS_IE_LOAD = 117,
  164. R_TILEGX_IMM8_X0_TLS_ADD = 118,
  165. R_TILEGX_IMM8_X1_TLS_ADD = 119,
  166. R_TILEGX_IMM8_Y0_TLS_ADD = 120,
  167. R_TILEGX_IMM8_Y1_TLS_ADD = 121,
  168. R_TILEGX_GNU_VTINHERIT = 128,
  169. R_TILEGX_GNU_VTENTRY = 129,
  170. R_TILEGX_IRELATIVE = 130,
  171. R_TILEGX_NUM = 131
  172. };
  173. typedef enum
  174. {
  175. TILEGX_PIPELINE_X0,
  176. TILEGX_PIPELINE_X1,
  177. TILEGX_PIPELINE_Y0,
  178. TILEGX_PIPELINE_Y1,
  179. TILEGX_PIPELINE_Y2,
  180. } tilegx_pipeline;
  181. typedef unsigned long long tilegx_bundle_bits;
  182. /* These are the bits that determine if a bundle is in the X encoding. */
  183. #define TILEGX_BUNDLE_MODE_MASK ((tilegx_bundle_bits)3 << 62)
  184. enum
  185. {
  186. /* Maximum number of instructions in a bundle (2 for X, 3 for Y). */
  187. TILEGX_MAX_INSTRUCTIONS_PER_BUNDLE = 3,
  188. /* How many different pipeline encodings are there? X0, X1, Y0, Y1, Y2. */
  189. TILEGX_NUM_PIPELINE_ENCODINGS = 5,
  190. /* Log base 2 of TILEGX_BUNDLE_SIZE_IN_BYTES. */
  191. TILEGX_LOG2_BUNDLE_SIZE_IN_BYTES = 3,
  192. /* Instructions take this many bytes. */
  193. TILEGX_BUNDLE_SIZE_IN_BYTES = 1 << TILEGX_LOG2_BUNDLE_SIZE_IN_BYTES,
  194. /* Log base 2 of TILEGX_BUNDLE_ALIGNMENT_IN_BYTES. */
  195. TILEGX_LOG2_BUNDLE_ALIGNMENT_IN_BYTES = 3,
  196. /* Bundles should be aligned modulo this number of bytes. */
  197. TILEGX_BUNDLE_ALIGNMENT_IN_BYTES =
  198. (1 << TILEGX_LOG2_BUNDLE_ALIGNMENT_IN_BYTES),
  199. /* Number of registers (some are magic, such as network I/O). */
  200. TILEGX_NUM_REGISTERS = 64,
  201. };
  202. /* Make a few "tile_" variables to simplify common code between
  203. architectures. */
  204. typedef tilegx_bundle_bits tile_bundle_bits;
  205. #define TILE_BUNDLE_SIZE_IN_BYTES TILEGX_BUNDLE_SIZE_IN_BYTES
  206. #define TILE_BUNDLE_ALIGNMENT_IN_BYTES TILEGX_BUNDLE_ALIGNMENT_IN_BYTES
  207. #define TILE_LOG2_BUNDLE_ALIGNMENT_IN_BYTES \
  208. TILEGX_LOG2_BUNDLE_ALIGNMENT_IN_BYTES
  209. /* 64-bit pattern for a { bpt ; nop } bundle. */
  210. #define TILEGX_BPT_BUNDLE 0x286a44ae51485000ULL
  211. typedef enum
  212. {
  213. TILEGX_OP_TYPE_REGISTER,
  214. TILEGX_OP_TYPE_IMMEDIATE,
  215. TILEGX_OP_TYPE_ADDRESS,
  216. TILEGX_OP_TYPE_SPR
  217. } tilegx_operand_type;
  218. struct tilegx_operand
  219. {
  220. /* Is this operand a register, immediate or address? */
  221. tilegx_operand_type type;
  222. /* The default relocation type for this operand. */
  223. signed int default_reloc : 16;
  224. /* How many bits is this value? (used for range checking) */
  225. unsigned int num_bits : 5;
  226. /* Is the value signed? (used for range checking) */
  227. unsigned int is_signed : 1;
  228. /* Is this operand a source register? */
  229. unsigned int is_src_reg : 1;
  230. /* Is this operand written? (i.e. is it a destination register) */
  231. unsigned int is_dest_reg : 1;
  232. /* Is this operand PC-relative? */
  233. unsigned int is_pc_relative : 1;
  234. /* By how many bits do we right shift the value before inserting? */
  235. unsigned int rightshift : 2;
  236. /* Return the bits for this operand to be ORed into an existing bundle. */
  237. tilegx_bundle_bits (*insert) (int op);
  238. /* Extract this operand and return it. */
  239. unsigned int (*extract) (tilegx_bundle_bits bundle);
  240. };
  241. typedef enum
  242. {
  243. TILEGX_OPC_BPT,
  244. TILEGX_OPC_INFO,
  245. TILEGX_OPC_INFOL,
  246. TILEGX_OPC_LD4S_TLS,
  247. TILEGX_OPC_LD_TLS,
  248. TILEGX_OPC_MOVE,
  249. TILEGX_OPC_MOVEI,
  250. TILEGX_OPC_MOVELI,
  251. TILEGX_OPC_PREFETCH,
  252. TILEGX_OPC_PREFETCH_ADD_L1,
  253. TILEGX_OPC_PREFETCH_ADD_L1_FAULT,
  254. TILEGX_OPC_PREFETCH_ADD_L2,
  255. TILEGX_OPC_PREFETCH_ADD_L2_FAULT,
  256. TILEGX_OPC_PREFETCH_ADD_L3,
  257. TILEGX_OPC_PREFETCH_ADD_L3_FAULT,
  258. TILEGX_OPC_PREFETCH_L1,
  259. TILEGX_OPC_PREFETCH_L1_FAULT,
  260. TILEGX_OPC_PREFETCH_L2,
  261. TILEGX_OPC_PREFETCH_L2_FAULT,
  262. TILEGX_OPC_PREFETCH_L3,
  263. TILEGX_OPC_PREFETCH_L3_FAULT,
  264. TILEGX_OPC_RAISE,
  265. TILEGX_OPC_ADD,
  266. TILEGX_OPC_ADDI,
  267. TILEGX_OPC_ADDLI,
  268. TILEGX_OPC_ADDX,
  269. TILEGX_OPC_ADDXI,
  270. TILEGX_OPC_ADDXLI,
  271. TILEGX_OPC_ADDXSC,
  272. TILEGX_OPC_AND,
  273. TILEGX_OPC_ANDI,
  274. TILEGX_OPC_BEQZ,
  275. TILEGX_OPC_BEQZT,
  276. TILEGX_OPC_BFEXTS,
  277. TILEGX_OPC_BFEXTU,
  278. TILEGX_OPC_BFINS,
  279. TILEGX_OPC_BGEZ,
  280. TILEGX_OPC_BGEZT,
  281. TILEGX_OPC_BGTZ,
  282. TILEGX_OPC_BGTZT,
  283. TILEGX_OPC_BLBC,
  284. TILEGX_OPC_BLBCT,
  285. TILEGX_OPC_BLBS,
  286. TILEGX_OPC_BLBST,
  287. TILEGX_OPC_BLEZ,
  288. TILEGX_OPC_BLEZT,
  289. TILEGX_OPC_BLTZ,
  290. TILEGX_OPC_BLTZT,
  291. TILEGX_OPC_BNEZ,
  292. TILEGX_OPC_BNEZT,
  293. TILEGX_OPC_CLZ,
  294. TILEGX_OPC_CMOVEQZ,
  295. TILEGX_OPC_CMOVNEZ,
  296. TILEGX_OPC_CMPEQ,
  297. TILEGX_OPC_CMPEQI,
  298. TILEGX_OPC_CMPEXCH,
  299. TILEGX_OPC_CMPEXCH4,
  300. TILEGX_OPC_CMPLES,
  301. TILEGX_OPC_CMPLEU,
  302. TILEGX_OPC_CMPLTS,
  303. TILEGX_OPC_CMPLTSI,
  304. TILEGX_OPC_CMPLTU,
  305. TILEGX_OPC_CMPLTUI,
  306. TILEGX_OPC_CMPNE,
  307. TILEGX_OPC_CMUL,
  308. TILEGX_OPC_CMULA,
  309. TILEGX_OPC_CMULAF,
  310. TILEGX_OPC_CMULF,
  311. TILEGX_OPC_CMULFR,
  312. TILEGX_OPC_CMULH,
  313. TILEGX_OPC_CMULHR,
  314. TILEGX_OPC_CRC32_32,
  315. TILEGX_OPC_CRC32_8,
  316. TILEGX_OPC_CTZ,
  317. TILEGX_OPC_DBLALIGN,
  318. TILEGX_OPC_DBLALIGN2,
  319. TILEGX_OPC_DBLALIGN4,
  320. TILEGX_OPC_DBLALIGN6,
  321. TILEGX_OPC_DRAIN,
  322. TILEGX_OPC_DTLBPR,
  323. TILEGX_OPC_EXCH,
  324. TILEGX_OPC_EXCH4,
  325. TILEGX_OPC_FDOUBLE_ADD_FLAGS,
  326. TILEGX_OPC_FDOUBLE_ADDSUB,
  327. TILEGX_OPC_FDOUBLE_MUL_FLAGS,
  328. TILEGX_OPC_FDOUBLE_PACK1,
  329. TILEGX_OPC_FDOUBLE_PACK2,
  330. TILEGX_OPC_FDOUBLE_SUB_FLAGS,
  331. TILEGX_OPC_FDOUBLE_UNPACK_MAX,
  332. TILEGX_OPC_FDOUBLE_UNPACK_MIN,
  333. TILEGX_OPC_FETCHADD,
  334. TILEGX_OPC_FETCHADD4,
  335. TILEGX_OPC_FETCHADDGEZ,
  336. TILEGX_OPC_FETCHADDGEZ4,
  337. TILEGX_OPC_FETCHAND,
  338. TILEGX_OPC_FETCHAND4,
  339. TILEGX_OPC_FETCHOR,
  340. TILEGX_OPC_FETCHOR4,
  341. TILEGX_OPC_FINV,
  342. TILEGX_OPC_FLUSH,
  343. TILEGX_OPC_FLUSHWB,
  344. TILEGX_OPC_FNOP,
  345. TILEGX_OPC_FSINGLE_ADD1,
  346. TILEGX_OPC_FSINGLE_ADDSUB2,
  347. TILEGX_OPC_FSINGLE_MUL1,
  348. TILEGX_OPC_FSINGLE_MUL2,
  349. TILEGX_OPC_FSINGLE_PACK1,
  350. TILEGX_OPC_FSINGLE_PACK2,
  351. TILEGX_OPC_FSINGLE_SUB1,
  352. TILEGX_OPC_ICOH,
  353. TILEGX_OPC_ILL,
  354. TILEGX_OPC_INV,
  355. TILEGX_OPC_IRET,
  356. TILEGX_OPC_J,
  357. TILEGX_OPC_JAL,
  358. TILEGX_OPC_JALR,
  359. TILEGX_OPC_JALRP,
  360. TILEGX_OPC_JR,
  361. TILEGX_OPC_JRP,
  362. TILEGX_OPC_LD,
  363. TILEGX_OPC_LD1S,
  364. TILEGX_OPC_LD1S_ADD,
  365. TILEGX_OPC_LD1U,
  366. TILEGX_OPC_LD1U_ADD,
  367. TILEGX_OPC_LD2S,
  368. TILEGX_OPC_LD2S_ADD,
  369. TILEGX_OPC_LD2U,
  370. TILEGX_OPC_LD2U_ADD,
  371. TILEGX_OPC_LD4S,
  372. TILEGX_OPC_LD4S_ADD,
  373. TILEGX_OPC_LD4U,
  374. TILEGX_OPC_LD4U_ADD,
  375. TILEGX_OPC_LD_ADD,
  376. TILEGX_OPC_LDNA,
  377. TILEGX_OPC_LDNA_ADD,
  378. TILEGX_OPC_LDNT,
  379. TILEGX_OPC_LDNT1S,
  380. TILEGX_OPC_LDNT1S_ADD,
  381. TILEGX_OPC_LDNT1U,
  382. TILEGX_OPC_LDNT1U_ADD,
  383. TILEGX_OPC_LDNT2S,
  384. TILEGX_OPC_LDNT2S_ADD,
  385. TILEGX_OPC_LDNT2U,
  386. TILEGX_OPC_LDNT2U_ADD,
  387. TILEGX_OPC_LDNT4S,
  388. TILEGX_OPC_LDNT4S_ADD,
  389. TILEGX_OPC_LDNT4U,
  390. TILEGX_OPC_LDNT4U_ADD,
  391. TILEGX_OPC_LDNT_ADD,
  392. TILEGX_OPC_LNK,
  393. TILEGX_OPC_MF,
  394. TILEGX_OPC_MFSPR,
  395. TILEGX_OPC_MM,
  396. TILEGX_OPC_MNZ,
  397. TILEGX_OPC_MTSPR,
  398. TILEGX_OPC_MUL_HS_HS,
  399. TILEGX_OPC_MUL_HS_HU,
  400. TILEGX_OPC_MUL_HS_LS,
  401. TILEGX_OPC_MUL_HS_LU,
  402. TILEGX_OPC_MUL_HU_HU,
  403. TILEGX_OPC_MUL_HU_LS,
  404. TILEGX_OPC_MUL_HU_LU,
  405. TILEGX_OPC_MUL_LS_LS,
  406. TILEGX_OPC_MUL_LS_LU,
  407. TILEGX_OPC_MUL_LU_LU,
  408. TILEGX_OPC_MULA_HS_HS,
  409. TILEGX_OPC_MULA_HS_HU,
  410. TILEGX_OPC_MULA_HS_LS,
  411. TILEGX_OPC_MULA_HS_LU,
  412. TILEGX_OPC_MULA_HU_HU,
  413. TILEGX_OPC_MULA_HU_LS,
  414. TILEGX_OPC_MULA_HU_LU,
  415. TILEGX_OPC_MULA_LS_LS,
  416. TILEGX_OPC_MULA_LS_LU,
  417. TILEGX_OPC_MULA_LU_LU,
  418. TILEGX_OPC_MULAX,
  419. TILEGX_OPC_MULX,
  420. TILEGX_OPC_MZ,
  421. TILEGX_OPC_NAP,
  422. TILEGX_OPC_NOP,
  423. TILEGX_OPC_NOR,
  424. TILEGX_OPC_OR,
  425. TILEGX_OPC_ORI,
  426. TILEGX_OPC_PCNT,
  427. TILEGX_OPC_REVBITS,
  428. TILEGX_OPC_REVBYTES,
  429. TILEGX_OPC_ROTL,
  430. TILEGX_OPC_ROTLI,
  431. TILEGX_OPC_SHL,
  432. TILEGX_OPC_SHL16INSLI,
  433. TILEGX_OPC_SHL1ADD,
  434. TILEGX_OPC_SHL1ADDX,
  435. TILEGX_OPC_SHL2ADD,
  436. TILEGX_OPC_SHL2ADDX,
  437. TILEGX_OPC_SHL3ADD,
  438. TILEGX_OPC_SHL3ADDX,
  439. TILEGX_OPC_SHLI,
  440. TILEGX_OPC_SHLX,
  441. TILEGX_OPC_SHLXI,
  442. TILEGX_OPC_SHRS,
  443. TILEGX_OPC_SHRSI,
  444. TILEGX_OPC_SHRU,
  445. TILEGX_OPC_SHRUI,
  446. TILEGX_OPC_SHRUX,
  447. TILEGX_OPC_SHRUXI,
  448. TILEGX_OPC_SHUFFLEBYTES,
  449. TILEGX_OPC_ST,
  450. TILEGX_OPC_ST1,
  451. TILEGX_OPC_ST1_ADD,
  452. TILEGX_OPC_ST2,
  453. TILEGX_OPC_ST2_ADD,
  454. TILEGX_OPC_ST4,
  455. TILEGX_OPC_ST4_ADD,
  456. TILEGX_OPC_ST_ADD,
  457. TILEGX_OPC_STNT,
  458. TILEGX_OPC_STNT1,
  459. TILEGX_OPC_STNT1_ADD,
  460. TILEGX_OPC_STNT2,
  461. TILEGX_OPC_STNT2_ADD,
  462. TILEGX_OPC_STNT4,
  463. TILEGX_OPC_STNT4_ADD,
  464. TILEGX_OPC_STNT_ADD,
  465. TILEGX_OPC_SUB,
  466. TILEGX_OPC_SUBX,
  467. TILEGX_OPC_SUBXSC,
  468. TILEGX_OPC_SWINT0,
  469. TILEGX_OPC_SWINT1,
  470. TILEGX_OPC_SWINT2,
  471. TILEGX_OPC_SWINT3,
  472. TILEGX_OPC_TBLIDXB0,
  473. TILEGX_OPC_TBLIDXB1,
  474. TILEGX_OPC_TBLIDXB2,
  475. TILEGX_OPC_TBLIDXB3,
  476. TILEGX_OPC_V1ADD,
  477. TILEGX_OPC_V1ADDI,
  478. TILEGX_OPC_V1ADDUC,
  479. TILEGX_OPC_V1ADIFFU,
  480. TILEGX_OPC_V1AVGU,
  481. TILEGX_OPC_V1CMPEQ,
  482. TILEGX_OPC_V1CMPEQI,
  483. TILEGX_OPC_V1CMPLES,
  484. TILEGX_OPC_V1CMPLEU,
  485. TILEGX_OPC_V1CMPLTS,
  486. TILEGX_OPC_V1CMPLTSI,
  487. TILEGX_OPC_V1CMPLTU,
  488. TILEGX_OPC_V1CMPLTUI,
  489. TILEGX_OPC_V1CMPNE,
  490. TILEGX_OPC_V1DDOTPU,
  491. TILEGX_OPC_V1DDOTPUA,
  492. TILEGX_OPC_V1DDOTPUS,
  493. TILEGX_OPC_V1DDOTPUSA,
  494. TILEGX_OPC_V1DOTP,
  495. TILEGX_OPC_V1DOTPA,
  496. TILEGX_OPC_V1DOTPU,
  497. TILEGX_OPC_V1DOTPUA,
  498. TILEGX_OPC_V1DOTPUS,
  499. TILEGX_OPC_V1DOTPUSA,
  500. TILEGX_OPC_V1INT_H,
  501. TILEGX_OPC_V1INT_L,
  502. TILEGX_OPC_V1MAXU,
  503. TILEGX_OPC_V1MAXUI,
  504. TILEGX_OPC_V1MINU,
  505. TILEGX_OPC_V1MINUI,
  506. TILEGX_OPC_V1MNZ,
  507. TILEGX_OPC_V1MULTU,
  508. TILEGX_OPC_V1MULU,
  509. TILEGX_OPC_V1MULUS,
  510. TILEGX_OPC_V1MZ,
  511. TILEGX_OPC_V1SADAU,
  512. TILEGX_OPC_V1SADU,
  513. TILEGX_OPC_V1SHL,
  514. TILEGX_OPC_V1SHLI,
  515. TILEGX_OPC_V1SHRS,
  516. TILEGX_OPC_V1SHRSI,
  517. TILEGX_OPC_V1SHRU,
  518. TILEGX_OPC_V1SHRUI,
  519. TILEGX_OPC_V1SUB,
  520. TILEGX_OPC_V1SUBUC,
  521. TILEGX_OPC_V2ADD,
  522. TILEGX_OPC_V2ADDI,
  523. TILEGX_OPC_V2ADDSC,
  524. TILEGX_OPC_V2ADIFFS,
  525. TILEGX_OPC_V2AVGS,
  526. TILEGX_OPC_V2CMPEQ,
  527. TILEGX_OPC_V2CMPEQI,
  528. TILEGX_OPC_V2CMPLES,
  529. TILEGX_OPC_V2CMPLEU,
  530. TILEGX_OPC_V2CMPLTS,
  531. TILEGX_OPC_V2CMPLTSI,
  532. TILEGX_OPC_V2CMPLTU,
  533. TILEGX_OPC_V2CMPLTUI,
  534. TILEGX_OPC_V2CMPNE,
  535. TILEGX_OPC_V2DOTP,
  536. TILEGX_OPC_V2DOTPA,
  537. TILEGX_OPC_V2INT_H,
  538. TILEGX_OPC_V2INT_L,
  539. TILEGX_OPC_V2MAXS,
  540. TILEGX_OPC_V2MAXSI,
  541. TILEGX_OPC_V2MINS,
  542. TILEGX_OPC_V2MINSI,
  543. TILEGX_OPC_V2MNZ,
  544. TILEGX_OPC_V2MULFSC,
  545. TILEGX_OPC_V2MULS,
  546. TILEGX_OPC_V2MULTS,
  547. TILEGX_OPC_V2MZ,
  548. TILEGX_OPC_V2PACKH,
  549. TILEGX_OPC_V2PACKL,
  550. TILEGX_OPC_V2PACKUC,
  551. TILEGX_OPC_V2SADAS,
  552. TILEGX_OPC_V2SADAU,
  553. TILEGX_OPC_V2SADS,
  554. TILEGX_OPC_V2SADU,
  555. TILEGX_OPC_V2SHL,
  556. TILEGX_OPC_V2SHLI,
  557. TILEGX_OPC_V2SHLSC,
  558. TILEGX_OPC_V2SHRS,
  559. TILEGX_OPC_V2SHRSI,
  560. TILEGX_OPC_V2SHRU,
  561. TILEGX_OPC_V2SHRUI,
  562. TILEGX_OPC_V2SUB,
  563. TILEGX_OPC_V2SUBSC,
  564. TILEGX_OPC_V4ADD,
  565. TILEGX_OPC_V4ADDSC,
  566. TILEGX_OPC_V4INT_H,
  567. TILEGX_OPC_V4INT_L,
  568. TILEGX_OPC_V4PACKSC,
  569. TILEGX_OPC_V4SHL,
  570. TILEGX_OPC_V4SHLSC,
  571. TILEGX_OPC_V4SHRS,
  572. TILEGX_OPC_V4SHRU,
  573. TILEGX_OPC_V4SUB,
  574. TILEGX_OPC_V4SUBSC,
  575. TILEGX_OPC_WH64,
  576. TILEGX_OPC_XOR,
  577. TILEGX_OPC_XORI,
  578. TILEGX_OPC_NONE
  579. } tilegx_mnemonic;
  580. enum
  581. {
  582. TILEGX_MAX_OPERANDS = 4 /* bfexts */
  583. };
  584. struct tilegx_opcode
  585. {
  586. /* The opcode mnemonic, e.g. "add" */
  587. const char *name;
  588. /* The enum value for this mnemonic. */
  589. tilegx_mnemonic mnemonic;
  590. /* A bit mask of which of the five pipes this instruction
  591. is compatible with:
  592. X0 0x01
  593. X1 0x02
  594. Y0 0x04
  595. Y1 0x08
  596. Y2 0x10 */
  597. unsigned char pipes;
  598. /* How many operands are there? */
  599. unsigned char num_operands;
  600. /* Which register does this write implicitly, or TREG_ZERO if none? */
  601. unsigned char implicitly_written_register;
  602. /* Can this be bundled with other instructions (almost always true). */
  603. unsigned char can_bundle;
  604. /* The description of the operands. Each of these is an
  605. * index into the tilegx_operands[] table. */
  606. unsigned char operands[TILEGX_NUM_PIPELINE_ENCODINGS][TILEGX_MAX_OPERANDS];
  607. /* A mask of which bits have predefined values for each pipeline.
  608. * This is useful for disassembly. */
  609. tilegx_bundle_bits fixed_bit_masks[TILEGX_NUM_PIPELINE_ENCODINGS];
  610. /* For each bit set in fixed_bit_masks, what the value is for this
  611. * instruction. */
  612. tilegx_bundle_bits fixed_bit_values[TILEGX_NUM_PIPELINE_ENCODINGS];
  613. };
  614. /* Used for non-textual disassembly into structs. */
  615. struct tilegx_decoded_instruction
  616. {
  617. const struct tilegx_opcode *opcode;
  618. const struct tilegx_operand *operands[TILEGX_MAX_OPERANDS];
  619. long long operand_values[TILEGX_MAX_OPERANDS];
  620. };
  621. enum
  622. {
  623. ADDI_IMM8_OPCODE_X0 = 1,
  624. ADDI_IMM8_OPCODE_X1 = 1,
  625. ADDI_OPCODE_Y0 = 0,
  626. ADDI_OPCODE_Y1 = 1,
  627. ADDLI_OPCODE_X0 = 1,
  628. ADDLI_OPCODE_X1 = 0,
  629. ADDXI_IMM8_OPCODE_X0 = 2,
  630. ADDXI_IMM8_OPCODE_X1 = 2,
  631. ADDXI_OPCODE_Y0 = 1,
  632. ADDXI_OPCODE_Y1 = 2,
  633. ADDXLI_OPCODE_X0 = 2,
  634. ADDXLI_OPCODE_X1 = 1,
  635. ADDXSC_RRR_0_OPCODE_X0 = 1,
  636. ADDXSC_RRR_0_OPCODE_X1 = 1,
  637. ADDX_RRR_0_OPCODE_X0 = 2,
  638. ADDX_RRR_0_OPCODE_X1 = 2,
  639. ADDX_RRR_0_OPCODE_Y0 = 0,
  640. ADDX_SPECIAL_0_OPCODE_Y1 = 0,
  641. ADD_RRR_0_OPCODE_X0 = 3,
  642. ADD_RRR_0_OPCODE_X1 = 3,
  643. ADD_RRR_0_OPCODE_Y0 = 1,
  644. ADD_SPECIAL_0_OPCODE_Y1 = 1,
  645. ANDI_IMM8_OPCODE_X0 = 3,
  646. ANDI_IMM8_OPCODE_X1 = 3,
  647. ANDI_OPCODE_Y0 = 2,
  648. ANDI_OPCODE_Y1 = 3,
  649. AND_RRR_0_OPCODE_X0 = 4,
  650. AND_RRR_0_OPCODE_X1 = 4,
  651. AND_RRR_5_OPCODE_Y0 = 0,
  652. AND_RRR_5_OPCODE_Y1 = 0,
  653. BEQZT_BRANCH_OPCODE_X1 = 16,
  654. BEQZ_BRANCH_OPCODE_X1 = 17,
  655. BFEXTS_BF_OPCODE_X0 = 4,
  656. BFEXTU_BF_OPCODE_X0 = 5,
  657. BFINS_BF_OPCODE_X0 = 6,
  658. BF_OPCODE_X0 = 3,
  659. BGEZT_BRANCH_OPCODE_X1 = 18,
  660. BGEZ_BRANCH_OPCODE_X1 = 19,
  661. BGTZT_BRANCH_OPCODE_X1 = 20,
  662. BGTZ_BRANCH_OPCODE_X1 = 21,
  663. BLBCT_BRANCH_OPCODE_X1 = 22,
  664. BLBC_BRANCH_OPCODE_X1 = 23,
  665. BLBST_BRANCH_OPCODE_X1 = 24,
  666. BLBS_BRANCH_OPCODE_X1 = 25,
  667. BLEZT_BRANCH_OPCODE_X1 = 26,
  668. BLEZ_BRANCH_OPCODE_X1 = 27,
  669. BLTZT_BRANCH_OPCODE_X1 = 28,
  670. BLTZ_BRANCH_OPCODE_X1 = 29,
  671. BNEZT_BRANCH_OPCODE_X1 = 30,
  672. BNEZ_BRANCH_OPCODE_X1 = 31,
  673. BRANCH_OPCODE_X1 = 2,
  674. CMOVEQZ_RRR_0_OPCODE_X0 = 5,
  675. CMOVEQZ_RRR_4_OPCODE_Y0 = 0,
  676. CMOVNEZ_RRR_0_OPCODE_X0 = 6,
  677. CMOVNEZ_RRR_4_OPCODE_Y0 = 1,
  678. CMPEQI_IMM8_OPCODE_X0 = 4,
  679. CMPEQI_IMM8_OPCODE_X1 = 4,
  680. CMPEQI_OPCODE_Y0 = 3,
  681. CMPEQI_OPCODE_Y1 = 4,
  682. CMPEQ_RRR_0_OPCODE_X0 = 7,
  683. CMPEQ_RRR_0_OPCODE_X1 = 5,
  684. CMPEQ_RRR_3_OPCODE_Y0 = 0,
  685. CMPEQ_RRR_3_OPCODE_Y1 = 2,
  686. CMPEXCH4_RRR_0_OPCODE_X1 = 6,
  687. CMPEXCH_RRR_0_OPCODE_X1 = 7,
  688. CMPLES_RRR_0_OPCODE_X0 = 8,
  689. CMPLES_RRR_0_OPCODE_X1 = 8,
  690. CMPLES_RRR_2_OPCODE_Y0 = 0,
  691. CMPLES_RRR_2_OPCODE_Y1 = 0,
  692. CMPLEU_RRR_0_OPCODE_X0 = 9,
  693. CMPLEU_RRR_0_OPCODE_X1 = 9,
  694. CMPLEU_RRR_2_OPCODE_Y0 = 1,
  695. CMPLEU_RRR_2_OPCODE_Y1 = 1,
  696. CMPLTSI_IMM8_OPCODE_X0 = 5,
  697. CMPLTSI_IMM8_OPCODE_X1 = 5,
  698. CMPLTSI_OPCODE_Y0 = 4,
  699. CMPLTSI_OPCODE_Y1 = 5,
  700. CMPLTS_RRR_0_OPCODE_X0 = 10,
  701. CMPLTS_RRR_0_OPCODE_X1 = 10,
  702. CMPLTS_RRR_2_OPCODE_Y0 = 2,
  703. CMPLTS_RRR_2_OPCODE_Y1 = 2,
  704. CMPLTUI_IMM8_OPCODE_X0 = 6,
  705. CMPLTUI_IMM8_OPCODE_X1 = 6,
  706. CMPLTU_RRR_0_OPCODE_X0 = 11,
  707. CMPLTU_RRR_0_OPCODE_X1 = 11,
  708. CMPLTU_RRR_2_OPCODE_Y0 = 3,
  709. CMPLTU_RRR_2_OPCODE_Y1 = 3,
  710. CMPNE_RRR_0_OPCODE_X0 = 12,
  711. CMPNE_RRR_0_OPCODE_X1 = 12,
  712. CMPNE_RRR_3_OPCODE_Y0 = 1,
  713. CMPNE_RRR_3_OPCODE_Y1 = 3,
  714. CMULAF_RRR_0_OPCODE_X0 = 13,
  715. CMULA_RRR_0_OPCODE_X0 = 14,
  716. CMULFR_RRR_0_OPCODE_X0 = 15,
  717. CMULF_RRR_0_OPCODE_X0 = 16,
  718. CMULHR_RRR_0_OPCODE_X0 = 17,
  719. CMULH_RRR_0_OPCODE_X0 = 18,
  720. CMUL_RRR_0_OPCODE_X0 = 19,
  721. CNTLZ_UNARY_OPCODE_X0 = 1,
  722. CNTLZ_UNARY_OPCODE_Y0 = 1,
  723. CNTTZ_UNARY_OPCODE_X0 = 2,
  724. CNTTZ_UNARY_OPCODE_Y0 = 2,
  725. CRC32_32_RRR_0_OPCODE_X0 = 20,
  726. CRC32_8_RRR_0_OPCODE_X0 = 21,
  727. DBLALIGN2_RRR_0_OPCODE_X0 = 22,
  728. DBLALIGN2_RRR_0_OPCODE_X1 = 13,
  729. DBLALIGN4_RRR_0_OPCODE_X0 = 23,
  730. DBLALIGN4_RRR_0_OPCODE_X1 = 14,
  731. DBLALIGN6_RRR_0_OPCODE_X0 = 24,
  732. DBLALIGN6_RRR_0_OPCODE_X1 = 15,
  733. DBLALIGN_RRR_0_OPCODE_X0 = 25,
  734. DRAIN_UNARY_OPCODE_X1 = 1,
  735. DTLBPR_UNARY_OPCODE_X1 = 2,
  736. EXCH4_RRR_0_OPCODE_X1 = 16,
  737. EXCH_RRR_0_OPCODE_X1 = 17,
  738. FDOUBLE_ADDSUB_RRR_0_OPCODE_X0 = 26,
  739. FDOUBLE_ADD_FLAGS_RRR_0_OPCODE_X0 = 27,
  740. FDOUBLE_MUL_FLAGS_RRR_0_OPCODE_X0 = 28,
  741. FDOUBLE_PACK1_RRR_0_OPCODE_X0 = 29,
  742. FDOUBLE_PACK2_RRR_0_OPCODE_X0 = 30,
  743. FDOUBLE_SUB_FLAGS_RRR_0_OPCODE_X0 = 31,
  744. FDOUBLE_UNPACK_MAX_RRR_0_OPCODE_X0 = 32,
  745. FDOUBLE_UNPACK_MIN_RRR_0_OPCODE_X0 = 33,
  746. FETCHADD4_RRR_0_OPCODE_X1 = 18,
  747. FETCHADDGEZ4_RRR_0_OPCODE_X1 = 19,
  748. FETCHADDGEZ_RRR_0_OPCODE_X1 = 20,
  749. FETCHADD_RRR_0_OPCODE_X1 = 21,
  750. FETCHAND4_RRR_0_OPCODE_X1 = 22,
  751. FETCHAND_RRR_0_OPCODE_X1 = 23,
  752. FETCHOR4_RRR_0_OPCODE_X1 = 24,
  753. FETCHOR_RRR_0_OPCODE_X1 = 25,
  754. FINV_UNARY_OPCODE_X1 = 3,
  755. FLUSHWB_UNARY_OPCODE_X1 = 4,
  756. FLUSH_UNARY_OPCODE_X1 = 5,
  757. FNOP_UNARY_OPCODE_X0 = 3,
  758. FNOP_UNARY_OPCODE_X1 = 6,
  759. FNOP_UNARY_OPCODE_Y0 = 3,
  760. FNOP_UNARY_OPCODE_Y1 = 8,
  761. FSINGLE_ADD1_RRR_0_OPCODE_X0 = 34,
  762. FSINGLE_ADDSUB2_RRR_0_OPCODE_X0 = 35,
  763. FSINGLE_MUL1_RRR_0_OPCODE_X0 = 36,
  764. FSINGLE_MUL2_RRR_0_OPCODE_X0 = 37,
  765. FSINGLE_PACK1_UNARY_OPCODE_X0 = 4,
  766. FSINGLE_PACK1_UNARY_OPCODE_Y0 = 4,
  767. FSINGLE_PACK2_RRR_0_OPCODE_X0 = 38,
  768. FSINGLE_SUB1_RRR_0_OPCODE_X0 = 39,
  769. ICOH_UNARY_OPCODE_X1 = 7,
  770. ILL_UNARY_OPCODE_X1 = 8,
  771. ILL_UNARY_OPCODE_Y1 = 9,
  772. IMM8_OPCODE_X0 = 4,
  773. IMM8_OPCODE_X1 = 3,
  774. INV_UNARY_OPCODE_X1 = 9,
  775. IRET_UNARY_OPCODE_X1 = 10,
  776. JALRP_UNARY_OPCODE_X1 = 11,
  777. JALRP_UNARY_OPCODE_Y1 = 10,
  778. JALR_UNARY_OPCODE_X1 = 12,
  779. JALR_UNARY_OPCODE_Y1 = 11,
  780. JAL_JUMP_OPCODE_X1 = 0,
  781. JRP_UNARY_OPCODE_X1 = 13,
  782. JRP_UNARY_OPCODE_Y1 = 12,
  783. JR_UNARY_OPCODE_X1 = 14,
  784. JR_UNARY_OPCODE_Y1 = 13,
  785. JUMP_OPCODE_X1 = 4,
  786. J_JUMP_OPCODE_X1 = 1,
  787. LD1S_ADD_IMM8_OPCODE_X1 = 7,
  788. LD1S_OPCODE_Y2 = 0,
  789. LD1S_UNARY_OPCODE_X1 = 15,
  790. LD1U_ADD_IMM8_OPCODE_X1 = 8,
  791. LD1U_OPCODE_Y2 = 1,
  792. LD1U_UNARY_OPCODE_X1 = 16,
  793. LD2S_ADD_IMM8_OPCODE_X1 = 9,
  794. LD2S_OPCODE_Y2 = 2,
  795. LD2S_UNARY_OPCODE_X1 = 17,
  796. LD2U_ADD_IMM8_OPCODE_X1 = 10,
  797. LD2U_OPCODE_Y2 = 3,
  798. LD2U_UNARY_OPCODE_X1 = 18,
  799. LD4S_ADD_IMM8_OPCODE_X1 = 11,
  800. LD4S_OPCODE_Y2 = 1,
  801. LD4S_UNARY_OPCODE_X1 = 19,
  802. LD4U_ADD_IMM8_OPCODE_X1 = 12,
  803. LD4U_OPCODE_Y2 = 2,
  804. LD4U_UNARY_OPCODE_X1 = 20,
  805. LDNA_UNARY_OPCODE_X1 = 21,
  806. LDNT1S_ADD_IMM8_OPCODE_X1 = 13,
  807. LDNT1S_UNARY_OPCODE_X1 = 22,
  808. LDNT1U_ADD_IMM8_OPCODE_X1 = 14,
  809. LDNT1U_UNARY_OPCODE_X1 = 23,
  810. LDNT2S_ADD_IMM8_OPCODE_X1 = 15,
  811. LDNT2S_UNARY_OPCODE_X1 = 24,
  812. LDNT2U_ADD_IMM8_OPCODE_X1 = 16,
  813. LDNT2U_UNARY_OPCODE_X1 = 25,
  814. LDNT4S_ADD_IMM8_OPCODE_X1 = 17,
  815. LDNT4S_UNARY_OPCODE_X1 = 26,
  816. LDNT4U_ADD_IMM8_OPCODE_X1 = 18,
  817. LDNT4U_UNARY_OPCODE_X1 = 27,
  818. LDNT_ADD_IMM8_OPCODE_X1 = 19,
  819. LDNT_UNARY_OPCODE_X1 = 28,
  820. LD_ADD_IMM8_OPCODE_X1 = 20,
  821. LD_OPCODE_Y2 = 3,
  822. LD_UNARY_OPCODE_X1 = 29,
  823. LNK_UNARY_OPCODE_X1 = 30,
  824. LNK_UNARY_OPCODE_Y1 = 14,
  825. LWNA_ADD_IMM8_OPCODE_X1 = 21,
  826. MFSPR_IMM8_OPCODE_X1 = 22,
  827. MF_UNARY_OPCODE_X1 = 31,
  828. MM_BF_OPCODE_X0 = 7,
  829. MNZ_RRR_0_OPCODE_X0 = 40,
  830. MNZ_RRR_0_OPCODE_X1 = 26,
  831. MNZ_RRR_4_OPCODE_Y0 = 2,
  832. MNZ_RRR_4_OPCODE_Y1 = 2,
  833. MODE_OPCODE_YA2 = 1,
  834. MODE_OPCODE_YB2 = 2,
  835. MODE_OPCODE_YC2 = 3,
  836. MTSPR_IMM8_OPCODE_X1 = 23,
  837. MULAX_RRR_0_OPCODE_X0 = 41,
  838. MULAX_RRR_3_OPCODE_Y0 = 2,
  839. MULA_HS_HS_RRR_0_OPCODE_X0 = 42,
  840. MULA_HS_HS_RRR_9_OPCODE_Y0 = 0,
  841. MULA_HS_HU_RRR_0_OPCODE_X0 = 43,
  842. MULA_HS_LS_RRR_0_OPCODE_X0 = 44,
  843. MULA_HS_LU_RRR_0_OPCODE_X0 = 45,
  844. MULA_HU_HU_RRR_0_OPCODE_X0 = 46,
  845. MULA_HU_HU_RRR_9_OPCODE_Y0 = 1,
  846. MULA_HU_LS_RRR_0_OPCODE_X0 = 47,
  847. MULA_HU_LU_RRR_0_OPCODE_X0 = 48,
  848. MULA_LS_LS_RRR_0_OPCODE_X0 = 49,
  849. MULA_LS_LS_RRR_9_OPCODE_Y0 = 2,
  850. MULA_LS_LU_RRR_0_OPCODE_X0 = 50,
  851. MULA_LU_LU_RRR_0_OPCODE_X0 = 51,
  852. MULA_LU_LU_RRR_9_OPCODE_Y0 = 3,
  853. MULX_RRR_0_OPCODE_X0 = 52,
  854. MULX_RRR_3_OPCODE_Y0 = 3,
  855. MUL_HS_HS_RRR_0_OPCODE_X0 = 53,
  856. MUL_HS_HS_RRR_8_OPCODE_Y0 = 0,
  857. MUL_HS_HU_RRR_0_OPCODE_X0 = 54,
  858. MUL_HS_LS_RRR_0_OPCODE_X0 = 55,
  859. MUL_HS_LU_RRR_0_OPCODE_X0 = 56,
  860. MUL_HU_HU_RRR_0_OPCODE_X0 = 57,
  861. MUL_HU_HU_RRR_8_OPCODE_Y0 = 1,
  862. MUL_HU_LS_RRR_0_OPCODE_X0 = 58,
  863. MUL_HU_LU_RRR_0_OPCODE_X0 = 59,
  864. MUL_LS_LS_RRR_0_OPCODE_X0 = 60,
  865. MUL_LS_LS_RRR_8_OPCODE_Y0 = 2,
  866. MUL_LS_LU_RRR_0_OPCODE_X0 = 61,
  867. MUL_LU_LU_RRR_0_OPCODE_X0 = 62,
  868. MUL_LU_LU_RRR_8_OPCODE_Y0 = 3,
  869. MZ_RRR_0_OPCODE_X0 = 63,
  870. MZ_RRR_0_OPCODE_X1 = 27,
  871. MZ_RRR_4_OPCODE_Y0 = 3,
  872. MZ_RRR_4_OPCODE_Y1 = 3,
  873. NAP_UNARY_OPCODE_X1 = 32,
  874. NOP_UNARY_OPCODE_X0 = 5,
  875. NOP_UNARY_OPCODE_X1 = 33,
  876. NOP_UNARY_OPCODE_Y0 = 5,
  877. NOP_UNARY_OPCODE_Y1 = 15,
  878. NOR_RRR_0_OPCODE_X0 = 64,
  879. NOR_RRR_0_OPCODE_X1 = 28,
  880. NOR_RRR_5_OPCODE_Y0 = 1,
  881. NOR_RRR_5_OPCODE_Y1 = 1,
  882. ORI_IMM8_OPCODE_X0 = 7,
  883. ORI_IMM8_OPCODE_X1 = 24,
  884. OR_RRR_0_OPCODE_X0 = 65,
  885. OR_RRR_0_OPCODE_X1 = 29,
  886. OR_RRR_5_OPCODE_Y0 = 2,
  887. OR_RRR_5_OPCODE_Y1 = 2,
  888. PCNT_UNARY_OPCODE_X0 = 6,
  889. PCNT_UNARY_OPCODE_Y0 = 6,
  890. REVBITS_UNARY_OPCODE_X0 = 7,
  891. REVBITS_UNARY_OPCODE_Y0 = 7,
  892. REVBYTES_UNARY_OPCODE_X0 = 8,
  893. REVBYTES_UNARY_OPCODE_Y0 = 8,
  894. ROTLI_SHIFT_OPCODE_X0 = 1,
  895. ROTLI_SHIFT_OPCODE_X1 = 1,
  896. ROTLI_SHIFT_OPCODE_Y0 = 0,
  897. ROTLI_SHIFT_OPCODE_Y1 = 0,
  898. ROTL_RRR_0_OPCODE_X0 = 66,
  899. ROTL_RRR_0_OPCODE_X1 = 30,
  900. ROTL_RRR_6_OPCODE_Y0 = 0,
  901. ROTL_RRR_6_OPCODE_Y1 = 0,
  902. RRR_0_OPCODE_X0 = 5,
  903. RRR_0_OPCODE_X1 = 5,
  904. RRR_0_OPCODE_Y0 = 5,
  905. RRR_0_OPCODE_Y1 = 6,
  906. RRR_1_OPCODE_Y0 = 6,
  907. RRR_1_OPCODE_Y1 = 7,
  908. RRR_2_OPCODE_Y0 = 7,
  909. RRR_2_OPCODE_Y1 = 8,
  910. RRR_3_OPCODE_Y0 = 8,
  911. RRR_3_OPCODE_Y1 = 9,
  912. RRR_4_OPCODE_Y0 = 9,
  913. RRR_4_OPCODE_Y1 = 10,
  914. RRR_5_OPCODE_Y0 = 10,
  915. RRR_5_OPCODE_Y1 = 11,
  916. RRR_6_OPCODE_Y0 = 11,
  917. RRR_6_OPCODE_Y1 = 12,
  918. RRR_7_OPCODE_Y0 = 12,
  919. RRR_7_OPCODE_Y1 = 13,
  920. RRR_8_OPCODE_Y0 = 13,
  921. RRR_9_OPCODE_Y0 = 14,
  922. SHIFT_OPCODE_X0 = 6,
  923. SHIFT_OPCODE_X1 = 6,
  924. SHIFT_OPCODE_Y0 = 15,
  925. SHIFT_OPCODE_Y1 = 14,
  926. SHL16INSLI_OPCODE_X0 = 7,
  927. SHL16INSLI_OPCODE_X1 = 7,
  928. SHL1ADDX_RRR_0_OPCODE_X0 = 67,
  929. SHL1ADDX_RRR_0_OPCODE_X1 = 31,
  930. SHL1ADDX_RRR_7_OPCODE_Y0 = 1,
  931. SHL1ADDX_RRR_7_OPCODE_Y1 = 1,
  932. SHL1ADD_RRR_0_OPCODE_X0 = 68,
  933. SHL1ADD_RRR_0_OPCODE_X1 = 32,
  934. SHL1ADD_RRR_1_OPCODE_Y0 = 0,
  935. SHL1ADD_RRR_1_OPCODE_Y1 = 0,
  936. SHL2ADDX_RRR_0_OPCODE_X0 = 69,
  937. SHL2ADDX_RRR_0_OPCODE_X1 = 33,
  938. SHL2ADDX_RRR_7_OPCODE_Y0 = 2,
  939. SHL2ADDX_RRR_7_OPCODE_Y1 = 2,
  940. SHL2ADD_RRR_0_OPCODE_X0 = 70,
  941. SHL2ADD_RRR_0_OPCODE_X1 = 34,
  942. SHL2ADD_RRR_1_OPCODE_Y0 = 1,
  943. SHL2ADD_RRR_1_OPCODE_Y1 = 1,
  944. SHL3ADDX_RRR_0_OPCODE_X0 = 71,
  945. SHL3ADDX_RRR_0_OPCODE_X1 = 35,
  946. SHL3ADDX_RRR_7_OPCODE_Y0 = 3,
  947. SHL3ADDX_RRR_7_OPCODE_Y1 = 3,
  948. SHL3ADD_RRR_0_OPCODE_X0 = 72,
  949. SHL3ADD_RRR_0_OPCODE_X1 = 36,
  950. SHL3ADD_RRR_1_OPCODE_Y0 = 2,
  951. SHL3ADD_RRR_1_OPCODE_Y1 = 2,
  952. SHLI_SHIFT_OPCODE_X0 = 2,
  953. SHLI_SHIFT_OPCODE_X1 = 2,
  954. SHLI_SHIFT_OPCODE_Y0 = 1,
  955. SHLI_SHIFT_OPCODE_Y1 = 1,
  956. SHLXI_SHIFT_OPCODE_X0 = 3,
  957. SHLXI_SHIFT_OPCODE_X1 = 3,
  958. SHLX_RRR_0_OPCODE_X0 = 73,
  959. SHLX_RRR_0_OPCODE_X1 = 37,
  960. SHL_RRR_0_OPCODE_X0 = 74,
  961. SHL_RRR_0_OPCODE_X1 = 38,
  962. SHL_RRR_6_OPCODE_Y0 = 1,
  963. SHL_RRR_6_OPCODE_Y1 = 1,
  964. SHRSI_SHIFT_OPCODE_X0 = 4,
  965. SHRSI_SHIFT_OPCODE_X1 = 4,
  966. SHRSI_SHIFT_OPCODE_Y0 = 2,
  967. SHRSI_SHIFT_OPCODE_Y1 = 2,
  968. SHRS_RRR_0_OPCODE_X0 = 75,
  969. SHRS_RRR_0_OPCODE_X1 = 39,
  970. SHRS_RRR_6_OPCODE_Y0 = 2,
  971. SHRS_RRR_6_OPCODE_Y1 = 2,
  972. SHRUI_SHIFT_OPCODE_X0 = 5,
  973. SHRUI_SHIFT_OPCODE_X1 = 5,
  974. SHRUI_SHIFT_OPCODE_Y0 = 3,
  975. SHRUI_SHIFT_OPCODE_Y1 = 3,
  976. SHRUXI_SHIFT_OPCODE_X0 = 6,
  977. SHRUXI_SHIFT_OPCODE_X1 = 6,
  978. SHRUX_RRR_0_OPCODE_X0 = 76,
  979. SHRUX_RRR_0_OPCODE_X1 = 40,
  980. SHRU_RRR_0_OPCODE_X0 = 77,
  981. SHRU_RRR_0_OPCODE_X1 = 41,
  982. SHRU_RRR_6_OPCODE_Y0 = 3,
  983. SHRU_RRR_6_OPCODE_Y1 = 3,
  984. SHUFFLEBYTES_RRR_0_OPCODE_X0 = 78,
  985. ST1_ADD_IMM8_OPCODE_X1 = 25,
  986. ST1_OPCODE_Y2 = 0,
  987. ST1_RRR_0_OPCODE_X1 = 42,
  988. ST2_ADD_IMM8_OPCODE_X1 = 26,
  989. ST2_OPCODE_Y2 = 1,
  990. ST2_RRR_0_OPCODE_X1 = 43,
  991. ST4_ADD_IMM8_OPCODE_X1 = 27,
  992. ST4_OPCODE_Y2 = 2,
  993. ST4_RRR_0_OPCODE_X1 = 44,
  994. STNT1_ADD_IMM8_OPCODE_X1 = 28,
  995. STNT1_RRR_0_OPCODE_X1 = 45,
  996. STNT2_ADD_IMM8_OPCODE_X1 = 29,
  997. STNT2_RRR_0_OPCODE_X1 = 46,
  998. STNT4_ADD_IMM8_OPCODE_X1 = 30,
  999. STNT4_RRR_0_OPCODE_X1 = 47,
  1000. STNT_ADD_IMM8_OPCODE_X1 = 31,
  1001. STNT_RRR_0_OPCODE_X1 = 48,
  1002. ST_ADD_IMM8_OPCODE_X1 = 32,
  1003. ST_OPCODE_Y2 = 3,
  1004. ST_RRR_0_OPCODE_X1 = 49,
  1005. SUBXSC_RRR_0_OPCODE_X0 = 79,
  1006. SUBXSC_RRR_0_OPCODE_X1 = 50,
  1007. SUBX_RRR_0_OPCODE_X0 = 80,
  1008. SUBX_RRR_0_OPCODE_X1 = 51,
  1009. SUBX_RRR_0_OPCODE_Y0 = 2,
  1010. SUBX_RRR_0_OPCODE_Y1 = 2,
  1011. SUB_RRR_0_OPCODE_X0 = 81,
  1012. SUB_RRR_0_OPCODE_X1 = 52,
  1013. SUB_RRR_0_OPCODE_Y0 = 3,
  1014. SUB_RRR_0_OPCODE_Y1 = 3,
  1015. SWINT0_UNARY_OPCODE_X1 = 34,
  1016. SWINT1_UNARY_OPCODE_X1 = 35,
  1017. SWINT2_UNARY_OPCODE_X1 = 36,
  1018. SWINT3_UNARY_OPCODE_X1 = 37,
  1019. TBLIDXB0_UNARY_OPCODE_X0 = 9,
  1020. TBLIDXB0_UNARY_OPCODE_Y0 = 9,
  1021. TBLIDXB1_UNARY_OPCODE_X0 = 10,
  1022. TBLIDXB1_UNARY_OPCODE_Y0 = 10,
  1023. TBLIDXB2_UNARY_OPCODE_X0 = 11,
  1024. TBLIDXB2_UNARY_OPCODE_Y0 = 11,
  1025. TBLIDXB3_UNARY_OPCODE_X0 = 12,
  1026. TBLIDXB3_UNARY_OPCODE_Y0 = 12,
  1027. UNARY_RRR_0_OPCODE_X0 = 82,
  1028. UNARY_RRR_0_OPCODE_X1 = 53,
  1029. UNARY_RRR_1_OPCODE_Y0 = 3,
  1030. UNARY_RRR_1_OPCODE_Y1 = 3,
  1031. V1ADDI_IMM8_OPCODE_X0 = 8,
  1032. V1ADDI_IMM8_OPCODE_X1 = 33,
  1033. V1ADDUC_RRR_0_OPCODE_X0 = 83,
  1034. V1ADDUC_RRR_0_OPCODE_X1 = 54,
  1035. V1ADD_RRR_0_OPCODE_X0 = 84,
  1036. V1ADD_RRR_0_OPCODE_X1 = 55,
  1037. V1ADIFFU_RRR_0_OPCODE_X0 = 85,
  1038. V1AVGU_RRR_0_OPCODE_X0 = 86,
  1039. V1CMPEQI_IMM8_OPCODE_X0 = 9,
  1040. V1CMPEQI_IMM8_OPCODE_X1 = 34,
  1041. V1CMPEQ_RRR_0_OPCODE_X0 = 87,
  1042. V1CMPEQ_RRR_0_OPCODE_X1 = 56,
  1043. V1CMPLES_RRR_0_OPCODE_X0 = 88,
  1044. V1CMPLES_RRR_0_OPCODE_X1 = 57,
  1045. V1CMPLEU_RRR_0_OPCODE_X0 = 89,
  1046. V1CMPLEU_RRR_0_OPCODE_X1 = 58,
  1047. V1CMPLTSI_IMM8_OPCODE_X0 = 10,
  1048. V1CMPLTSI_IMM8_OPCODE_X1 = 35,
  1049. V1CMPLTS_RRR_0_OPCODE_X0 = 90,
  1050. V1CMPLTS_RRR_0_OPCODE_X1 = 59,
  1051. V1CMPLTUI_IMM8_OPCODE_X0 = 11,
  1052. V1CMPLTUI_IMM8_OPCODE_X1 = 36,
  1053. V1CMPLTU_RRR_0_OPCODE_X0 = 91,
  1054. V1CMPLTU_RRR_0_OPCODE_X1 = 60,
  1055. V1CMPNE_RRR_0_OPCODE_X0 = 92,
  1056. V1CMPNE_RRR_0_OPCODE_X1 = 61,
  1057. V1DDOTPUA_RRR_0_OPCODE_X0 = 161,
  1058. V1DDOTPUSA_RRR_0_OPCODE_X0 = 93,
  1059. V1DDOTPUS_RRR_0_OPCODE_X0 = 94,
  1060. V1DDOTPU_RRR_0_OPCODE_X0 = 162,
  1061. V1DOTPA_RRR_0_OPCODE_X0 = 95,
  1062. V1DOTPUA_RRR_0_OPCODE_X0 = 163,
  1063. V1DOTPUSA_RRR_0_OPCODE_X0 = 96,
  1064. V1DOTPUS_RRR_0_OPCODE_X0 = 97,
  1065. V1DOTPU_RRR_0_OPCODE_X0 = 164,
  1066. V1DOTP_RRR_0_OPCODE_X0 = 98,
  1067. V1INT_H_RRR_0_OPCODE_X0 = 99,
  1068. V1INT_H_RRR_0_OPCODE_X1 = 62,
  1069. V1INT_L_RRR_0_OPCODE_X0 = 100,
  1070. V1INT_L_RRR_0_OPCODE_X1 = 63,
  1071. V1MAXUI_IMM8_OPCODE_X0 = 12,
  1072. V1MAXUI_IMM8_OPCODE_X1 = 37,
  1073. V1MAXU_RRR_0_OPCODE_X0 = 101,
  1074. V1MAXU_RRR_0_OPCODE_X1 = 64,
  1075. V1MINUI_IMM8_OPCODE_X0 = 13,
  1076. V1MINUI_IMM8_OPCODE_X1 = 38,
  1077. V1MINU_RRR_0_OPCODE_X0 = 102,
  1078. V1MINU_RRR_0_OPCODE_X1 = 65,
  1079. V1MNZ_RRR_0_OPCODE_X0 = 103,
  1080. V1MNZ_RRR_0_OPCODE_X1 = 66,
  1081. V1MULTU_RRR_0_OPCODE_X0 = 104,
  1082. V1MULUS_RRR_0_OPCODE_X0 = 105,
  1083. V1MULU_RRR_0_OPCODE_X0 = 106,
  1084. V1MZ_RRR_0_OPCODE_X0 = 107,
  1085. V1MZ_RRR_0_OPCODE_X1 = 67,
  1086. V1SADAU_RRR_0_OPCODE_X0 = 108,
  1087. V1SADU_RRR_0_OPCODE_X0 = 109,
  1088. V1SHLI_SHIFT_OPCODE_X0 = 7,
  1089. V1SHLI_SHIFT_OPCODE_X1 = 7,
  1090. V1SHL_RRR_0_OPCODE_X0 = 110,
  1091. V1SHL_RRR_0_OPCODE_X1 = 68,
  1092. V1SHRSI_SHIFT_OPCODE_X0 = 8,
  1093. V1SHRSI_SHIFT_OPCODE_X1 = 8,
  1094. V1SHRS_RRR_0_OPCODE_X0 = 111,
  1095. V1SHRS_RRR_0_OPCODE_X1 = 69,
  1096. V1SHRUI_SHIFT_OPCODE_X0 = 9,
  1097. V1SHRUI_SHIFT_OPCODE_X1 = 9,
  1098. V1SHRU_RRR_0_OPCODE_X0 = 112,
  1099. V1SHRU_RRR_0_OPCODE_X1 = 70,
  1100. V1SUBUC_RRR_0_OPCODE_X0 = 113,
  1101. V1SUBUC_RRR_0_OPCODE_X1 = 71,
  1102. V1SUB_RRR_0_OPCODE_X0 = 114,
  1103. V1SUB_RRR_0_OPCODE_X1 = 72,
  1104. V2ADDI_IMM8_OPCODE_X0 = 14,
  1105. V2ADDI_IMM8_OPCODE_X1 = 39,
  1106. V2ADDSC_RRR_0_OPCODE_X0 = 115,
  1107. V2ADDSC_RRR_0_OPCODE_X1 = 73,
  1108. V2ADD_RRR_0_OPCODE_X0 = 116,
  1109. V2ADD_RRR_0_OPCODE_X1 = 74,
  1110. V2ADIFFS_RRR_0_OPCODE_X0 = 117,
  1111. V2AVGS_RRR_0_OPCODE_X0 = 118,
  1112. V2CMPEQI_IMM8_OPCODE_X0 = 15,
  1113. V2CMPEQI_IMM8_OPCODE_X1 = 40,
  1114. V2CMPEQ_RRR_0_OPCODE_X0 = 119,
  1115. V2CMPEQ_RRR_0_OPCODE_X1 = 75,
  1116. V2CMPLES_RRR_0_OPCODE_X0 = 120,
  1117. V2CMPLES_RRR_0_OPCODE_X1 = 76,
  1118. V2CMPLEU_RRR_0_OPCODE_X0 = 121,
  1119. V2CMPLEU_RRR_0_OPCODE_X1 = 77,
  1120. V2CMPLTSI_IMM8_OPCODE_X0 = 16,
  1121. V2CMPLTSI_IMM8_OPCODE_X1 = 41,
  1122. V2CMPLTS_RRR_0_OPCODE_X0 = 122,
  1123. V2CMPLTS_RRR_0_OPCODE_X1 = 78,
  1124. V2CMPLTUI_IMM8_OPCODE_X0 = 17,
  1125. V2CMPLTUI_IMM8_OPCODE_X1 = 42,
  1126. V2CMPLTU_RRR_0_OPCODE_X0 = 123,
  1127. V2CMPLTU_RRR_0_OPCODE_X1 = 79,
  1128. V2CMPNE_RRR_0_OPCODE_X0 = 124,
  1129. V2CMPNE_RRR_0_OPCODE_X1 = 80,
  1130. V2DOTPA_RRR_0_OPCODE_X0 = 125,
  1131. V2DOTP_RRR_0_OPCODE_X0 = 126,
  1132. V2INT_H_RRR_0_OPCODE_X0 = 127,
  1133. V2INT_H_RRR_0_OPCODE_X1 = 81,
  1134. V2INT_L_RRR_0_OPCODE_X0 = 128,
  1135. V2INT_L_RRR_0_OPCODE_X1 = 82,
  1136. V2MAXSI_IMM8_OPCODE_X0 = 18,
  1137. V2MAXSI_IMM8_OPCODE_X1 = 43,
  1138. V2MAXS_RRR_0_OPCODE_X0 = 129,
  1139. V2MAXS_RRR_0_OPCODE_X1 = 83,
  1140. V2MINSI_IMM8_OPCODE_X0 = 19,
  1141. V2MINSI_IMM8_OPCODE_X1 = 44,
  1142. V2MINS_RRR_0_OPCODE_X0 = 130,
  1143. V2MINS_RRR_0_OPCODE_X1 = 84,
  1144. V2MNZ_RRR_0_OPCODE_X0 = 131,
  1145. V2MNZ_RRR_0_OPCODE_X1 = 85,
  1146. V2MULFSC_RRR_0_OPCODE_X0 = 132,
  1147. V2MULS_RRR_0_OPCODE_X0 = 133,
  1148. V2MULTS_RRR_0_OPCODE_X0 = 134,
  1149. V2MZ_RRR_0_OPCODE_X0 = 135,
  1150. V2MZ_RRR_0_OPCODE_X1 = 86,
  1151. V2PACKH_RRR_0_OPCODE_X0 = 136,
  1152. V2PACKH_RRR_0_OPCODE_X1 = 87,
  1153. V2PACKL_RRR_0_OPCODE_X0 = 137,
  1154. V2PACKL_RRR_0_OPCODE_X1 = 88,
  1155. V2PACKUC_RRR_0_OPCODE_X0 = 138,
  1156. V2PACKUC_RRR_0_OPCODE_X1 = 89,
  1157. V2SADAS_RRR_0_OPCODE_X0 = 139,
  1158. V2SADAU_RRR_0_OPCODE_X0 = 140,
  1159. V2SADS_RRR_0_OPCODE_X0 = 141,
  1160. V2SADU_RRR_0_OPCODE_X0 = 142,
  1161. V2SHLI_SHIFT_OPCODE_X0 = 10,
  1162. V2SHLI_SHIFT_OPCODE_X1 = 10,
  1163. V2SHLSC_RRR_0_OPCODE_X0 = 143,
  1164. V2SHLSC_RRR_0_OPCODE_X1 = 90,
  1165. V2SHL_RRR_0_OPCODE_X0 = 144,
  1166. V2SHL_RRR_0_OPCODE_X1 = 91,
  1167. V2SHRSI_SHIFT_OPCODE_X0 = 11,
  1168. V2SHRSI_SHIFT_OPCODE_X1 = 11,
  1169. V2SHRS_RRR_0_OPCODE_X0 = 145,
  1170. V2SHRS_RRR_0_OPCODE_X1 = 92,
  1171. V2SHRUI_SHIFT_OPCODE_X0 = 12,
  1172. V2SHRUI_SHIFT_OPCODE_X1 = 12,
  1173. V2SHRU_RRR_0_OPCODE_X0 = 146,
  1174. V2SHRU_RRR_0_OPCODE_X1 = 93,
  1175. V2SUBSC_RRR_0_OPCODE_X0 = 147,
  1176. V2SUBSC_RRR_0_OPCODE_X1 = 94,
  1177. V2SUB_RRR_0_OPCODE_X0 = 148,
  1178. V2SUB_RRR_0_OPCODE_X1 = 95,
  1179. V4ADDSC_RRR_0_OPCODE_X0 = 149,
  1180. V4ADDSC_RRR_0_OPCODE_X1 = 96,
  1181. V4ADD_RRR_0_OPCODE_X0 = 150,
  1182. V4ADD_RRR_0_OPCODE_X1 = 97,
  1183. V4INT_H_RRR_0_OPCODE_X0 = 151,
  1184. V4INT_H_RRR_0_OPCODE_X1 = 98,
  1185. V4INT_L_RRR_0_OPCODE_X0 = 152,
  1186. V4INT_L_RRR_0_OPCODE_X1 = 99,
  1187. V4PACKSC_RRR_0_OPCODE_X0 = 153,
  1188. V4PACKSC_RRR_0_OPCODE_X1 = 100,
  1189. V4SHLSC_RRR_0_OPCODE_X0 = 154,
  1190. V4SHLSC_RRR_0_OPCODE_X1 = 101,
  1191. V4SHL_RRR_0_OPCODE_X0 = 155,
  1192. V4SHL_RRR_0_OPCODE_X1 = 102,
  1193. V4SHRS_RRR_0_OPCODE_X0 = 156,
  1194. V4SHRS_RRR_0_OPCODE_X1 = 103,
  1195. V4SHRU_RRR_0_OPCODE_X0 = 157,
  1196. V4SHRU_RRR_0_OPCODE_X1 = 104,
  1197. V4SUBSC_RRR_0_OPCODE_X0 = 158,
  1198. V4SUBSC_RRR_0_OPCODE_X1 = 105,
  1199. V4SUB_RRR_0_OPCODE_X0 = 159,
  1200. V4SUB_RRR_0_OPCODE_X1 = 106,
  1201. WH64_UNARY_OPCODE_X1 = 38,
  1202. XORI_IMM8_OPCODE_X0 = 20,
  1203. XORI_IMM8_OPCODE_X1 = 45,
  1204. XOR_RRR_0_OPCODE_X0 = 160,
  1205. XOR_RRR_0_OPCODE_X1 = 107,
  1206. XOR_RRR_5_OPCODE_Y0 = 3,
  1207. XOR_RRR_5_OPCODE_Y1 = 3
  1208. };
  1209. static __inline unsigned int
  1210. get_BFEnd_X0(tilegx_bundle_bits num)
  1211. {
  1212. const unsigned int n = (unsigned int)num;
  1213. return (((n >> 12)) & 0x3f);
  1214. }
  1215. static __inline unsigned int
  1216. get_BFOpcodeExtension_X0(tilegx_bundle_bits num)
  1217. {
  1218. const unsigned int n = (unsigned int)num;
  1219. return (((n >> 24)) & 0xf);
  1220. }
  1221. static __inline unsigned int
  1222. get_BFStart_X0(tilegx_bundle_bits num)
  1223. {
  1224. const unsigned int n = (unsigned int)num;
  1225. return (((n >> 18)) & 0x3f);
  1226. }
  1227. static __inline unsigned int
  1228. get_BrOff_X1(tilegx_bundle_bits n)
  1229. {
  1230. return (((unsigned int)(n >> 31)) & 0x0000003f) |
  1231. (((unsigned int)(n >> 37)) & 0x0001ffc0);
  1232. }
  1233. static __inline unsigned int
  1234. get_BrType_X1(tilegx_bundle_bits n)
  1235. {
  1236. return (((unsigned int)(n >> 54)) & 0x1f);
  1237. }
  1238. static __inline unsigned int
  1239. get_Dest_Imm8_X1(tilegx_bundle_bits n)
  1240. {
  1241. return (((unsigned int)(n >> 31)) & 0x0000003f) |
  1242. (((unsigned int)(n >> 43)) & 0x000000c0);
  1243. }
  1244. static __inline unsigned int
  1245. get_Dest_X0(tilegx_bundle_bits num)
  1246. {
  1247. const unsigned int n = (unsigned int)num;
  1248. return (((n >> 0)) & 0x3f);
  1249. }
  1250. static __inline unsigned int
  1251. get_Dest_X1(tilegx_bundle_bits n)
  1252. {
  1253. return (((unsigned int)(n >> 31)) & 0x3f);
  1254. }
  1255. static __inline unsigned int
  1256. get_Dest_Y0(tilegx_bundle_bits num)
  1257. {
  1258. const unsigned int n = (unsigned int)num;
  1259. return (((n >> 0)) & 0x3f);
  1260. }
  1261. static __inline unsigned int
  1262. get_Dest_Y1(tilegx_bundle_bits n)
  1263. {
  1264. return (((unsigned int)(n >> 31)) & 0x3f);
  1265. }
  1266. static __inline unsigned int
  1267. get_Imm16_X0(tilegx_bundle_bits num)
  1268. {
  1269. const unsigned int n = (unsigned int)num;
  1270. return (((n >> 12)) & 0xffff);
  1271. }
  1272. static __inline unsigned int
  1273. get_Imm16_X1(tilegx_bundle_bits n)
  1274. {
  1275. return (((unsigned int)(n >> 43)) & 0xffff);
  1276. }
  1277. static __inline unsigned int
  1278. get_Imm8OpcodeExtension_X0(tilegx_bundle_bits num)
  1279. {
  1280. const unsigned int n = (unsigned int)num;
  1281. return (((n >> 20)) & 0xff);
  1282. }
  1283. static __inline unsigned int
  1284. get_Imm8OpcodeExtension_X1(tilegx_bundle_bits n)
  1285. {
  1286. return (((unsigned int)(n >> 51)) & 0xff);
  1287. }
  1288. static __inline unsigned int
  1289. get_Imm8_X0(tilegx_bundle_bits num)
  1290. {
  1291. const unsigned int n = (unsigned int)num;
  1292. return (((n >> 12)) & 0xff);
  1293. }
  1294. static __inline unsigned int
  1295. get_Imm8_X1(tilegx_bundle_bits n)
  1296. {
  1297. return (((unsigned int)(n >> 43)) & 0xff);
  1298. }
  1299. static __inline unsigned int
  1300. get_Imm8_Y0(tilegx_bundle_bits num)
  1301. {
  1302. const unsigned int n = (unsigned int)num;
  1303. return (((n >> 12)) & 0xff);
  1304. }
  1305. static __inline unsigned int
  1306. get_Imm8_Y1(tilegx_bundle_bits n)
  1307. {
  1308. return (((unsigned int)(n >> 43)) & 0xff);
  1309. }
  1310. static __inline unsigned int
  1311. get_JumpOff_X1(tilegx_bundle_bits n)
  1312. {
  1313. return (((unsigned int)(n >> 31)) & 0x7ffffff);
  1314. }
  1315. static __inline unsigned int
  1316. get_JumpOpcodeExtension_X1(tilegx_bundle_bits n)
  1317. {
  1318. return (((unsigned int)(n >> 58)) & 0x1);
  1319. }
  1320. static __inline unsigned int
  1321. get_MF_Imm14_X1(tilegx_bundle_bits n)
  1322. {
  1323. return (((unsigned int)(n >> 37)) & 0x3fff);
  1324. }
  1325. static __inline unsigned int
  1326. get_MT_Imm14_X1(tilegx_bundle_bits n)
  1327. {
  1328. return (((unsigned int)(n >> 31)) & 0x0000003f) |
  1329. (((unsigned int)(n >> 37)) & 0x00003fc0);
  1330. }
  1331. static __inline unsigned int
  1332. get_Mode(tilegx_bundle_bits n)
  1333. {
  1334. return (((unsigned int)(n >> 62)) & 0x3);
  1335. }
  1336. static __inline unsigned int
  1337. get_Opcode_X0(tilegx_bundle_bits num)
  1338. {
  1339. const unsigned int n = (unsigned int)num;
  1340. return (((n >> 28)) & 0x7);
  1341. }
  1342. static __inline unsigned int
  1343. get_Opcode_X1(tilegx_bundle_bits n)
  1344. {
  1345. return (((unsigned int)(n >> 59)) & 0x7);
  1346. }
  1347. static __inline unsigned int
  1348. get_Opcode_Y0(tilegx_bundle_bits num)
  1349. {
  1350. const unsigned int n = (unsigned int)num;
  1351. return (((n >> 27)) & 0xf);
  1352. }
  1353. static __inline unsigned int
  1354. get_Opcode_Y1(tilegx_bundle_bits n)
  1355. {
  1356. return (((unsigned int)(n >> 58)) & 0xf);
  1357. }
  1358. static __inline unsigned int
  1359. get_Opcode_Y2(tilegx_bundle_bits n)
  1360. {
  1361. return (((n >> 26)) & 0x00000001) |
  1362. (((unsigned int)(n >> 56)) & 0x00000002);
  1363. }
  1364. static __inline unsigned int
  1365. get_RRROpcodeExtension_X0(tilegx_bundle_bits num)
  1366. {
  1367. const unsigned int n = (unsigned int)num;
  1368. return (((n >> 18)) & 0x3ff);
  1369. }
  1370. static __inline unsigned int
  1371. get_RRROpcodeExtension_X1(tilegx_bundle_bits n)
  1372. {
  1373. return (((unsigned int)(n >> 49)) & 0x3ff);
  1374. }
  1375. static __inline unsigned int
  1376. get_RRROpcodeExtension_Y0(tilegx_bundle_bits num)
  1377. {
  1378. const unsigned int n = (unsigned int)num;
  1379. return (((n >> 18)) & 0x3);
  1380. }
  1381. static __inline unsigned int
  1382. get_RRROpcodeExtension_Y1(tilegx_bundle_bits n)
  1383. {
  1384. return (((unsigned int)(n >> 49)) & 0x3);
  1385. }
  1386. static __inline unsigned int
  1387. get_ShAmt_X0(tilegx_bundle_bits num)
  1388. {
  1389. const unsigned int n = (unsigned int)num;
  1390. return (((n >> 12)) & 0x3f);
  1391. }
  1392. static __inline unsigned int
  1393. get_ShAmt_X1(tilegx_bundle_bits n)
  1394. {
  1395. return (((unsigned int)(n >> 43)) & 0x3f);
  1396. }
  1397. static __inline unsigned int
  1398. get_ShAmt_Y0(tilegx_bundle_bits num)
  1399. {
  1400. const unsigned int n = (unsigned int)num;
  1401. return (((n >> 12)) & 0x3f);
  1402. }
  1403. static __inline unsigned int
  1404. get_ShAmt_Y1(tilegx_bundle_bits n)
  1405. {
  1406. return (((unsigned int)(n >> 43)) & 0x3f);
  1407. }
  1408. static __inline unsigned int
  1409. get_ShiftOpcodeExtension_X0(tilegx_bundle_bits num)
  1410. {
  1411. const unsigned int n = (unsigned int)num;
  1412. return (((n >> 18)) & 0x3ff);
  1413. }
  1414. static __inline unsigned int
  1415. get_ShiftOpcodeExtension_X1(tilegx_bundle_bits n)
  1416. {
  1417. return (((unsigned int)(n >> 49)) & 0x3ff);
  1418. }
  1419. static __inline unsigned int
  1420. get_ShiftOpcodeExtension_Y0(tilegx_bundle_bits num)
  1421. {
  1422. const unsigned int n = (unsigned int)num;
  1423. return (((n >> 18)) & 0x3);
  1424. }
  1425. static __inline unsigned int
  1426. get_ShiftOpcodeExtension_Y1(tilegx_bundle_bits n)
  1427. {
  1428. return (((unsigned int)(n >> 49)) & 0x3);
  1429. }
  1430. static __inline unsigned int
  1431. get_SrcA_X0(tilegx_bundle_bits num)
  1432. {
  1433. const unsigned int n = (unsigned int)num;
  1434. return (((n >> 6)) & 0x3f);
  1435. }
  1436. static __inline unsigned int
  1437. get_SrcA_X1(tilegx_bundle_bits n)
  1438. {
  1439. return (((unsigned int)(n >> 37)) & 0x3f);
  1440. }
  1441. static __inline unsigned int
  1442. get_SrcA_Y0(tilegx_bundle_bits num)
  1443. {
  1444. const unsigned int n = (unsigned int)num;
  1445. return (((n >> 6)) & 0x3f);
  1446. }
  1447. static __inline unsigned int
  1448. get_SrcA_Y1(tilegx_bundle_bits n)
  1449. {
  1450. return (((unsigned int)(n >> 37)) & 0x3f);
  1451. }
  1452. static __inline unsigned int
  1453. get_SrcA_Y2(tilegx_bundle_bits num)
  1454. {
  1455. const unsigned int n = (unsigned int)num;
  1456. return (((n >> 20)) & 0x3f);
  1457. }
  1458. static __inline unsigned int
  1459. get_SrcBDest_Y2(tilegx_bundle_bits n)
  1460. {
  1461. return (((unsigned int)(n >> 51)) & 0x3f);
  1462. }
  1463. static __inline unsigned int
  1464. get_SrcB_X0(tilegx_bundle_bits num)
  1465. {
  1466. const unsigned int n = (unsigned int)num;
  1467. return (((n >> 12)) & 0x3f);
  1468. }
  1469. static __inline unsigned int
  1470. get_SrcB_X1(tilegx_bundle_bits n)
  1471. {
  1472. return (((unsigned int)(n >> 43)) & 0x3f);
  1473. }
  1474. static __inline unsigned int
  1475. get_SrcB_Y0(tilegx_bundle_bits num)
  1476. {
  1477. const unsigned int n = (unsigned int)num;
  1478. return (((n >> 12)) & 0x3f);
  1479. }
  1480. static __inline unsigned int
  1481. get_SrcB_Y1(tilegx_bundle_bits n)
  1482. {
  1483. return (((unsigned int)(n >> 43)) & 0x3f);
  1484. }
  1485. static __inline unsigned int
  1486. get_UnaryOpcodeExtension_X0(tilegx_bundle_bits num)
  1487. {
  1488. const unsigned int n = (unsigned int)num;
  1489. return (((n >> 12)) & 0x3f);
  1490. }
  1491. static __inline unsigned int
  1492. get_UnaryOpcodeExtension_X1(tilegx_bundle_bits n)
  1493. {
  1494. return (((unsigned int)(n >> 43)) & 0x3f);
  1495. }
  1496. static __inline unsigned int
  1497. get_UnaryOpcodeExtension_Y0(tilegx_bundle_bits num)
  1498. {
  1499. const unsigned int n = (unsigned int)num;
  1500. return (((n >> 12)) & 0x3f);
  1501. }
  1502. static __inline unsigned int
  1503. get_UnaryOpcodeExtension_Y1(tilegx_bundle_bits n)
  1504. {
  1505. return (((unsigned int)(n >> 43)) & 0x3f);
  1506. }
  1507. static __inline int
  1508. sign_extend(int n, int num_bits)
  1509. {
  1510. int shift = (int)(sizeof(int) * 8 - num_bits);
  1511. return (n << shift) >> shift;
  1512. }
  1513. static __inline tilegx_bundle_bits
  1514. create_BFEnd_X0(int num)
  1515. {
  1516. const unsigned int n = (unsigned int)num;
  1517. return ((n & 0x3f) << 12);
  1518. }
  1519. static __inline tilegx_bundle_bits
  1520. create_BFOpcodeExtension_X0(int num)
  1521. {
  1522. const unsigned int n = (unsigned int)num;
  1523. return ((n & 0xf) << 24);
  1524. }
  1525. static __inline tilegx_bundle_bits
  1526. create_BFStart_X0(int num)
  1527. {
  1528. const unsigned int n = (unsigned int)num;
  1529. return ((n & 0x3f) << 18);
  1530. }
  1531. static __inline tilegx_bundle_bits
  1532. create_BrOff_X1(int num)
  1533. {
  1534. const unsigned int n = (unsigned int)num;
  1535. return (((tilegx_bundle_bits)(n & 0x0000003f)) << 31) |
  1536. (((tilegx_bundle_bits)(n & 0x0001ffc0)) << 37);
  1537. }
  1538. static __inline tilegx_bundle_bits
  1539. create_BrType_X1(int num)
  1540. {
  1541. const unsigned int n = (unsigned int)num;
  1542. return (((tilegx_bundle_bits)(n & 0x1f)) << 54);
  1543. }
  1544. static __inline tilegx_bundle_bits
  1545. create_Dest_Imm8_X1(int num)
  1546. {
  1547. const unsigned int n = (unsigned int)num;
  1548. return (((tilegx_bundle_bits)(n & 0x0000003f)) << 31) |
  1549. (((tilegx_bundle_bits)(n & 0x000000c0)) << 43);
  1550. }
  1551. static __inline tilegx_bundle_bits
  1552. create_Dest_X0(int num)
  1553. {
  1554. const unsigned int n = (unsigned int)num;
  1555. return ((n & 0x3f) << 0);
  1556. }
  1557. static __inline tilegx_bundle_bits
  1558. create_Dest_X1(int num)
  1559. {
  1560. const unsigned int n = (unsigned int)num;
  1561. return (((tilegx_bundle_bits)(n & 0x3f)) << 31);
  1562. }
  1563. static __inline tilegx_bundle_bits
  1564. create_Dest_Y0(int num)
  1565. {
  1566. const unsigned int n = (unsigned int)num;
  1567. return ((n & 0x3f) << 0);
  1568. }
  1569. static __inline tilegx_bundle_bits
  1570. create_Dest_Y1(int num)
  1571. {
  1572. const unsigned int n = (unsigned int)num;
  1573. return (((tilegx_bundle_bits)(n & 0x3f)) << 31);
  1574. }
  1575. static __inline tilegx_bundle_bits
  1576. create_Imm16_X0(int num)
  1577. {
  1578. const unsigned int n = (unsigned int)num;
  1579. return ((n & 0xffff) << 12);
  1580. }
  1581. static __inline tilegx_bundle_bits
  1582. create_Imm16_X1(int num)
  1583. {
  1584. const unsigned int n = (unsigned int)num;
  1585. return (((tilegx_bundle_bits)(n & 0xffff)) << 43);
  1586. }
  1587. static __inline tilegx_bundle_bits
  1588. create_Imm8OpcodeExtension_X0(int num)
  1589. {
  1590. const unsigned int n = (unsigned int)num;
  1591. return ((n & 0xff) << 20);
  1592. }
  1593. static __inline tilegx_bundle_bits
  1594. create_Imm8OpcodeExtension_X1(int num)
  1595. {
  1596. const unsigned int n = (unsigned int)num;
  1597. return (((tilegx_bundle_bits)(n & 0xff)) << 51);
  1598. }
  1599. static __inline tilegx_bundle_bits
  1600. create_Imm8_X0(int num)
  1601. {
  1602. const unsigned int n = (unsigned int)num;
  1603. return ((n & 0xff) << 12);
  1604. }
  1605. static __inline tilegx_bundle_bits
  1606. create_Imm8_X1(int num)
  1607. {
  1608. const unsigned int n = (unsigned int)num;
  1609. return (((tilegx_bundle_bits)(n & 0xff)) << 43);
  1610. }
  1611. static __inline tilegx_bundle_bits
  1612. create_Imm8_Y0(int num)
  1613. {
  1614. const unsigned int n = (unsigned int)num;
  1615. return ((n & 0xff) << 12);
  1616. }
  1617. static __inline tilegx_bundle_bits
  1618. create_Imm8_Y1(int num)
  1619. {
  1620. const unsigned int n = (unsigned int)num;
  1621. return (((tilegx_bundle_bits)(n & 0xff)) << 43);
  1622. }
  1623. static __inline tilegx_bundle_bits
  1624. create_JumpOff_X1(int num)
  1625. {
  1626. const unsigned int n = (unsigned int)num;
  1627. return (((tilegx_bundle_bits)(n & 0x7ffffff)) << 31);
  1628. }
  1629. static __inline tilegx_bundle_bits
  1630. create_JumpOpcodeExtension_X1(int num)
  1631. {
  1632. const unsigned int n = (unsigned int)num;
  1633. return (((tilegx_bundle_bits)(n & 0x1)) << 58);
  1634. }
  1635. static __inline tilegx_bundle_bits
  1636. create_MF_Imm14_X1(int num)
  1637. {
  1638. const unsigned int n = (unsigned int)num;
  1639. return (((tilegx_bundle_bits)(n & 0x3fff)) << 37);
  1640. }
  1641. static __inline tilegx_bundle_bits
  1642. create_MT_Imm14_X1(int num)
  1643. {
  1644. const unsigned int n = (unsigned int)num;
  1645. return (((tilegx_bundle_bits)(n & 0x0000003f)) << 31) |
  1646. (((tilegx_bundle_bits)(n & 0x00003fc0)) << 37);
  1647. }
  1648. static __inline tilegx_bundle_bits
  1649. create_Mode(int num)
  1650. {
  1651. const unsigned int n = (unsigned int)num;
  1652. return (((tilegx_bundle_bits)(n & 0x3)) << 62);
  1653. }
  1654. static __inline tilegx_bundle_bits
  1655. create_Opcode_X0(int num)
  1656. {
  1657. const unsigned int n = (unsigned int)num;
  1658. return ((n & 0x7) << 28);
  1659. }
  1660. static __inline tilegx_bundle_bits
  1661. create_Opcode_X1(int num)
  1662. {
  1663. const unsigned int n = (unsigned int)num;
  1664. return (((tilegx_bundle_bits)(n & 0x7)) << 59);
  1665. }
  1666. static __inline tilegx_bundle_bits
  1667. create_Opcode_Y0(int num)
  1668. {
  1669. const unsigned int n = (unsigned int)num;
  1670. return ((n & 0xf) << 27);
  1671. }
  1672. static __inline tilegx_bundle_bits
  1673. create_Opcode_Y1(int num)
  1674. {
  1675. const unsigned int n = (unsigned int)num;
  1676. return (((tilegx_bundle_bits)(n & 0xf)) << 58);
  1677. }
  1678. static __inline tilegx_bundle_bits
  1679. create_Opcode_Y2(int num)
  1680. {
  1681. const unsigned int n = (unsigned int)num;
  1682. return ((n & 0x00000001) << 26) |
  1683. (((tilegx_bundle_bits)(n & 0x00000002)) << 56);
  1684. }
  1685. static __inline tilegx_bundle_bits
  1686. create_RRROpcodeExtension_X0(int num)
  1687. {
  1688. const unsigned int n = (unsigned int)num;
  1689. return ((n & 0x3ff) << 18);
  1690. }
  1691. static __inline tilegx_bundle_bits
  1692. create_RRROpcodeExtension_X1(int num)
  1693. {
  1694. const unsigned int n = (unsigned int)num;
  1695. return (((tilegx_bundle_bits)(n & 0x3ff)) << 49);
  1696. }
  1697. static __inline tilegx_bundle_bits
  1698. create_RRROpcodeExtension_Y0(int num)
  1699. {
  1700. const unsigned int n = (unsigned int)num;
  1701. return ((n & 0x3) << 18);
  1702. }
  1703. static __inline tilegx_bundle_bits
  1704. create_RRROpcodeExtension_Y1(int num)
  1705. {
  1706. const unsigned int n = (unsigned int)num;
  1707. return (((tilegx_bundle_bits)(n & 0x3)) << 49);
  1708. }
  1709. static __inline tilegx_bundle_bits
  1710. create_ShAmt_X0(int num)
  1711. {
  1712. const unsigned int n = (unsigned int)num;
  1713. return ((n & 0x3f) << 12);
  1714. }
  1715. static __inline tilegx_bundle_bits
  1716. create_ShAmt_X1(int num)
  1717. {
  1718. const unsigned int n = (unsigned int)num;
  1719. return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
  1720. }
  1721. static __inline tilegx_bundle_bits
  1722. create_ShAmt_Y0(int num)
  1723. {
  1724. const unsigned int n = (unsigned int)num;
  1725. return ((n & 0x3f) << 12);
  1726. }
  1727. static __inline tilegx_bundle_bits
  1728. create_ShAmt_Y1(int num)
  1729. {
  1730. const unsigned int n = (unsigned int)num;
  1731. return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
  1732. }
  1733. static __inline tilegx_bundle_bits
  1734. create_ShiftOpcodeExtension_X0(int num)
  1735. {
  1736. const unsigned int n = (unsigned int)num;
  1737. return ((n & 0x3ff) << 18);
  1738. }
  1739. static __inline tilegx_bundle_bits
  1740. create_ShiftOpcodeExtension_X1(int num)
  1741. {
  1742. const unsigned int n = (unsigned int)num;
  1743. return (((tilegx_bundle_bits)(n & 0x3ff)) << 49);
  1744. }
  1745. static __inline tilegx_bundle_bits
  1746. create_ShiftOpcodeExtension_Y0(int num)
  1747. {
  1748. const unsigned int n = (unsigned int)num;
  1749. return ((n & 0x3) << 18);
  1750. }
  1751. static __inline tilegx_bundle_bits
  1752. create_ShiftOpcodeExtension_Y1(int num)
  1753. {
  1754. const unsigned int n = (unsigned int)num;
  1755. return (((tilegx_bundle_bits)(n & 0x3)) << 49);
  1756. }
  1757. static __inline tilegx_bundle_bits
  1758. create_SrcA_X0(int num)
  1759. {
  1760. const unsigned int n = (unsigned int)num;
  1761. return ((n & 0x3f) << 6);
  1762. }
  1763. static __inline tilegx_bundle_bits
  1764. create_SrcA_X1(int num)
  1765. {
  1766. const unsigned int n = (unsigned int)num;
  1767. return (((tilegx_bundle_bits)(n & 0x3f)) << 37);
  1768. }
  1769. static __inline tilegx_bundle_bits
  1770. create_SrcA_Y0(int num)
  1771. {
  1772. const unsigned int n = (unsigned int)num;
  1773. return ((n & 0x3f) << 6);
  1774. }
  1775. static __inline tilegx_bundle_bits
  1776. create_SrcA_Y1(int num)
  1777. {
  1778. const unsigned int n = (unsigned int)num;
  1779. return (((tilegx_bundle_bits)(n & 0x3f)) << 37);
  1780. }
  1781. static __inline tilegx_bundle_bits
  1782. create_SrcA_Y2(int num)
  1783. {
  1784. const unsigned int n = (unsigned int)num;
  1785. return ((n & 0x3f) << 20);
  1786. }
  1787. static __inline tilegx_bundle_bits
  1788. create_SrcBDest_Y2(int num)
  1789. {
  1790. const unsigned int n = (unsigned int)num;
  1791. return (((tilegx_bundle_bits)(n & 0x3f)) << 51);
  1792. }
  1793. static __inline tilegx_bundle_bits
  1794. create_SrcB_X0(int num)
  1795. {
  1796. const unsigned int n = (unsigned int)num;
  1797. return ((n & 0x3f) << 12);
  1798. }
  1799. static __inline tilegx_bundle_bits
  1800. create_SrcB_X1(int num)
  1801. {
  1802. const unsigned int n = (unsigned int)num;
  1803. return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
  1804. }
  1805. static __inline tilegx_bundle_bits
  1806. create_SrcB_Y0(int num)
  1807. {
  1808. const unsigned int n = (unsigned int)num;
  1809. return ((n & 0x3f) << 12);
  1810. }
  1811. static __inline tilegx_bundle_bits
  1812. create_SrcB_Y1(int num)
  1813. {
  1814. const unsigned int n = (unsigned int)num;
  1815. return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
  1816. }
  1817. static __inline tilegx_bundle_bits
  1818. create_UnaryOpcodeExtension_X0(int num)
  1819. {
  1820. const unsigned int n = (unsigned int)num;
  1821. return ((n & 0x3f) << 12);
  1822. }
  1823. static __inline tilegx_bundle_bits
  1824. create_UnaryOpcodeExtension_X1(int num)
  1825. {
  1826. const unsigned int n = (unsigned int)num;
  1827. return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
  1828. }
  1829. static __inline tilegx_bundle_bits
  1830. create_UnaryOpcodeExtension_Y0(int num)
  1831. {
  1832. const unsigned int n = (unsigned int)num;
  1833. return ((n & 0x3f) << 12);
  1834. }
  1835. static __inline tilegx_bundle_bits
  1836. create_UnaryOpcodeExtension_Y1(int num)
  1837. {
  1838. const unsigned int n = (unsigned int)num;
  1839. return (((tilegx_bundle_bits)(n & 0x3f)) << 43);
  1840. }
  1841. const struct tilegx_opcode tilegx_opcodes[336] =
  1842. {
  1843. { "bpt", TILEGX_OPC_BPT, 0x2, 0, TREG_ZERO, 0,
  1844. { { 0, }, { }, { 0, }, { 0, }, { 0, } },
  1845. #ifndef DISASM_ONLY
  1846. {
  1847. 0ULL,
  1848. 0xffffffff80000000ULL,
  1849. 0ULL,
  1850. 0ULL,
  1851. 0ULL
  1852. },
  1853. {
  1854. -1ULL,
  1855. 0x286a44ae00000000ULL,
  1856. -1ULL,
  1857. -1ULL,
  1858. -1ULL
  1859. }
  1860. #endif
  1861. },
  1862. { "info", TILEGX_OPC_INFO, 0xf, 1, TREG_ZERO, 1,
  1863. { { 0 }, { 1 }, { 2 }, { 3 }, { 0, } },
  1864. #ifndef DISASM_ONLY
  1865. {
  1866. 0xc00000007ff00fffULL,
  1867. 0xfff807ff80000000ULL,
  1868. 0x0000000078000fffULL,
  1869. 0x3c0007ff80000000ULL,
  1870. 0ULL
  1871. },
  1872. {
  1873. 0x0000000040300fffULL,
  1874. 0x181807ff80000000ULL,
  1875. 0x0000000010000fffULL,
  1876. 0x0c0007ff80000000ULL,
  1877. -1ULL
  1878. }
  1879. #endif
  1880. },
  1881. { "infol", TILEGX_OPC_INFOL, 0x3, 1, TREG_ZERO, 1,
  1882. { { 4 }, { 5 }, { 0, }, { 0, }, { 0, } },
  1883. #ifndef DISASM_ONLY
  1884. {
  1885. 0xc000000070000fffULL,
  1886. 0xf80007ff80000000ULL,
  1887. 0ULL,
  1888. 0ULL,
  1889. 0ULL
  1890. },
  1891. {
  1892. 0x0000000070000fffULL,
  1893. 0x380007ff80000000ULL,
  1894. -1ULL,
  1895. -1ULL,
  1896. -1ULL
  1897. }
  1898. #endif
  1899. },
  1900. { "ld4s_tls", TILEGX_OPC_LD4S_TLS, 0x2, 3, TREG_ZERO, 1,
  1901. { { 0, }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  1902. #ifndef DISASM_ONLY
  1903. {
  1904. 0ULL,
  1905. 0xfffff80000000000ULL,
  1906. 0ULL,
  1907. 0ULL,
  1908. 0ULL
  1909. },
  1910. {
  1911. -1ULL,
  1912. 0x1858000000000000ULL,
  1913. -1ULL,
  1914. -1ULL,
  1915. -1ULL
  1916. }
  1917. #endif
  1918. },
  1919. { "ld_tls", TILEGX_OPC_LD_TLS, 0x2, 3, TREG_ZERO, 1,
  1920. { { 0, }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  1921. #ifndef DISASM_ONLY
  1922. {
  1923. 0ULL,
  1924. 0xfffff80000000000ULL,
  1925. 0ULL,
  1926. 0ULL,
  1927. 0ULL
  1928. },
  1929. {
  1930. -1ULL,
  1931. 0x18a0000000000000ULL,
  1932. -1ULL,
  1933. -1ULL,
  1934. -1ULL
  1935. }
  1936. #endif
  1937. },
  1938. { "move", TILEGX_OPC_MOVE, 0xf, 2, TREG_ZERO, 1,
  1939. { { 8, 9 }, { 6, 7 }, { 10, 11 }, { 12, 13 }, { 0, } },
  1940. #ifndef DISASM_ONLY
  1941. {
  1942. 0xc00000007ffff000ULL,
  1943. 0xfffff80000000000ULL,
  1944. 0x00000000780ff000ULL,
  1945. 0x3c07f80000000000ULL,
  1946. 0ULL
  1947. },
  1948. {
  1949. 0x000000005107f000ULL,
  1950. 0x283bf80000000000ULL,
  1951. 0x00000000500bf000ULL,
  1952. 0x2c05f80000000000ULL,
  1953. -1ULL
  1954. }
  1955. #endif
  1956. },
  1957. { "movei", TILEGX_OPC_MOVEI, 0xf, 2, TREG_ZERO, 1,
  1958. { { 8, 0 }, { 6, 1 }, { 10, 2 }, { 12, 3 }, { 0, } },
  1959. #ifndef DISASM_ONLY
  1960. {
  1961. 0xc00000007ff00fc0ULL,
  1962. 0xfff807e000000000ULL,
  1963. 0x0000000078000fc0ULL,
  1964. 0x3c0007e000000000ULL,
  1965. 0ULL
  1966. },
  1967. {
  1968. 0x0000000040100fc0ULL,
  1969. 0x180807e000000000ULL,
  1970. 0x0000000000000fc0ULL,
  1971. 0x040007e000000000ULL,
  1972. -1ULL
  1973. }
  1974. #endif
  1975. },
  1976. { "moveli", TILEGX_OPC_MOVELI, 0x3, 2, TREG_ZERO, 1,
  1977. { { 8, 4 }, { 6, 5 }, { 0, }, { 0, }, { 0, } },
  1978. #ifndef DISASM_ONLY
  1979. {
  1980. 0xc000000070000fc0ULL,
  1981. 0xf80007e000000000ULL,
  1982. 0ULL,
  1983. 0ULL,
  1984. 0ULL
  1985. },
  1986. {
  1987. 0x0000000010000fc0ULL,
  1988. 0x000007e000000000ULL,
  1989. -1ULL,
  1990. -1ULL,
  1991. -1ULL
  1992. }
  1993. #endif
  1994. },
  1995. { "prefetch", TILEGX_OPC_PREFETCH, 0x12, 1, TREG_ZERO, 1,
  1996. { { 0, }, { 7 }, { 0, }, { 0, }, { 14 } },
  1997. #ifndef DISASM_ONLY
  1998. {
  1999. 0ULL,
  2000. 0xfffff81f80000000ULL,
  2001. 0ULL,
  2002. 0ULL,
  2003. 0xc3f8000004000000ULL
  2004. },
  2005. {
  2006. -1ULL,
  2007. 0x286a801f80000000ULL,
  2008. -1ULL,
  2009. -1ULL,
  2010. 0x41f8000004000000ULL
  2011. }
  2012. #endif
  2013. },
  2014. { "prefetch_add_l1", TILEGX_OPC_PREFETCH_ADD_L1, 0x2, 2, TREG_ZERO, 1,
  2015. { { 0, }, { 15, 1 }, { 0, }, { 0, }, { 0, } },
  2016. #ifndef DISASM_ONLY
  2017. {
  2018. 0ULL,
  2019. 0xfff8001f80000000ULL,
  2020. 0ULL,
  2021. 0ULL,
  2022. 0ULL
  2023. },
  2024. {
  2025. -1ULL,
  2026. 0x1840001f80000000ULL,
  2027. -1ULL,
  2028. -1ULL,
  2029. -1ULL
  2030. }
  2031. #endif
  2032. },
  2033. { "prefetch_add_l1_fault", TILEGX_OPC_PREFETCH_ADD_L1_FAULT, 0x2, 2, TREG_ZERO, 1,
  2034. { { 0, }, { 15, 1 }, { 0, }, { 0, }, { 0, } },
  2035. #ifndef DISASM_ONLY
  2036. {
  2037. 0ULL,
  2038. 0xfff8001f80000000ULL,
  2039. 0ULL,
  2040. 0ULL,
  2041. 0ULL
  2042. },
  2043. {
  2044. -1ULL,
  2045. 0x1838001f80000000ULL,
  2046. -1ULL,
  2047. -1ULL,
  2048. -1ULL
  2049. }
  2050. #endif
  2051. },
  2052. { "prefetch_add_l2", TILEGX_OPC_PREFETCH_ADD_L2, 0x2, 2, TREG_ZERO, 1,
  2053. { { 0, }, { 15, 1 }, { 0, }, { 0, }, { 0, } },
  2054. #ifndef DISASM_ONLY
  2055. {
  2056. 0ULL,
  2057. 0xfff8001f80000000ULL,
  2058. 0ULL,
  2059. 0ULL,
  2060. 0ULL
  2061. },
  2062. {
  2063. -1ULL,
  2064. 0x1850001f80000000ULL,
  2065. -1ULL,
  2066. -1ULL,
  2067. -1ULL
  2068. }
  2069. #endif
  2070. },
  2071. { "prefetch_add_l2_fault", TILEGX_OPC_PREFETCH_ADD_L2_FAULT, 0x2, 2, TREG_ZERO, 1,
  2072. { { 0, }, { 15, 1 }, { 0, }, { 0, }, { 0, } },
  2073. #ifndef DISASM_ONLY
  2074. {
  2075. 0ULL,
  2076. 0xfff8001f80000000ULL,
  2077. 0ULL,
  2078. 0ULL,
  2079. 0ULL
  2080. },
  2081. {
  2082. -1ULL,
  2083. 0x1848001f80000000ULL,
  2084. -1ULL,
  2085. -1ULL,
  2086. -1ULL
  2087. }
  2088. #endif
  2089. },
  2090. { "prefetch_add_l3", TILEGX_OPC_PREFETCH_ADD_L3, 0x2, 2, TREG_ZERO, 1,
  2091. { { 0, }, { 15, 1 }, { 0, }, { 0, }, { 0, } },
  2092. #ifndef DISASM_ONLY
  2093. {
  2094. 0ULL,
  2095. 0xfff8001f80000000ULL,
  2096. 0ULL,
  2097. 0ULL,
  2098. 0ULL
  2099. },
  2100. {
  2101. -1ULL,
  2102. 0x1860001f80000000ULL,
  2103. -1ULL,
  2104. -1ULL,
  2105. -1ULL
  2106. }
  2107. #endif
  2108. },
  2109. { "prefetch_add_l3_fault", TILEGX_OPC_PREFETCH_ADD_L3_FAULT, 0x2, 2, TREG_ZERO, 1,
  2110. { { 0, }, { 15, 1 }, { 0, }, { 0, }, { 0, } },
  2111. #ifndef DISASM_ONLY
  2112. {
  2113. 0ULL,
  2114. 0xfff8001f80000000ULL,
  2115. 0ULL,
  2116. 0ULL,
  2117. 0ULL
  2118. },
  2119. {
  2120. -1ULL,
  2121. 0x1858001f80000000ULL,
  2122. -1ULL,
  2123. -1ULL,
  2124. -1ULL
  2125. }
  2126. #endif
  2127. },
  2128. { "prefetch_l1", TILEGX_OPC_PREFETCH_L1, 0x12, 1, TREG_ZERO, 1,
  2129. { { 0, }, { 7 }, { 0, }, { 0, }, { 14 } },
  2130. #ifndef DISASM_ONLY
  2131. {
  2132. 0ULL,
  2133. 0xfffff81f80000000ULL,
  2134. 0ULL,
  2135. 0ULL,
  2136. 0xc3f8000004000000ULL
  2137. },
  2138. {
  2139. -1ULL,
  2140. 0x286a801f80000000ULL,
  2141. -1ULL,
  2142. -1ULL,
  2143. 0x41f8000004000000ULL
  2144. }
  2145. #endif
  2146. },
  2147. { "prefetch_l1_fault", TILEGX_OPC_PREFETCH_L1_FAULT, 0x12, 1, TREG_ZERO, 1,
  2148. { { 0, }, { 7 }, { 0, }, { 0, }, { 14 } },
  2149. #ifndef DISASM_ONLY
  2150. {
  2151. 0ULL,
  2152. 0xfffff81f80000000ULL,
  2153. 0ULL,
  2154. 0ULL,
  2155. 0xc3f8000004000000ULL
  2156. },
  2157. {
  2158. -1ULL,
  2159. 0x286a781f80000000ULL,
  2160. -1ULL,
  2161. -1ULL,
  2162. 0x41f8000000000000ULL
  2163. }
  2164. #endif
  2165. },
  2166. { "prefetch_l2", TILEGX_OPC_PREFETCH_L2, 0x12, 1, TREG_ZERO, 1,
  2167. { { 0, }, { 7 }, { 0, }, { 0, }, { 14 } },
  2168. #ifndef DISASM_ONLY
  2169. {
  2170. 0ULL,
  2171. 0xfffff81f80000000ULL,
  2172. 0ULL,
  2173. 0ULL,
  2174. 0xc3f8000004000000ULL
  2175. },
  2176. {
  2177. -1ULL,
  2178. 0x286a901f80000000ULL,
  2179. -1ULL,
  2180. -1ULL,
  2181. 0x43f8000004000000ULL
  2182. }
  2183. #endif
  2184. },
  2185. { "prefetch_l2_fault", TILEGX_OPC_PREFETCH_L2_FAULT, 0x12, 1, TREG_ZERO, 1,
  2186. { { 0, }, { 7 }, { 0, }, { 0, }, { 14 } },
  2187. #ifndef DISASM_ONLY
  2188. {
  2189. 0ULL,
  2190. 0xfffff81f80000000ULL,
  2191. 0ULL,
  2192. 0ULL,
  2193. 0xc3f8000004000000ULL
  2194. },
  2195. {
  2196. -1ULL,
  2197. 0x286a881f80000000ULL,
  2198. -1ULL,
  2199. -1ULL,
  2200. 0x43f8000000000000ULL
  2201. }
  2202. #endif
  2203. },
  2204. { "prefetch_l3", TILEGX_OPC_PREFETCH_L3, 0x12, 1, TREG_ZERO, 1,
  2205. { { 0, }, { 7 }, { 0, }, { 0, }, { 14 } },
  2206. #ifndef DISASM_ONLY
  2207. {
  2208. 0ULL,
  2209. 0xfffff81f80000000ULL,
  2210. 0ULL,
  2211. 0ULL,
  2212. 0xc3f8000004000000ULL
  2213. },
  2214. {
  2215. -1ULL,
  2216. 0x286aa01f80000000ULL,
  2217. -1ULL,
  2218. -1ULL,
  2219. 0x83f8000000000000ULL
  2220. }
  2221. #endif
  2222. },
  2223. { "prefetch_l3_fault", TILEGX_OPC_PREFETCH_L3_FAULT, 0x12, 1, TREG_ZERO, 1,
  2224. { { 0, }, { 7 }, { 0, }, { 0, }, { 14 } },
  2225. #ifndef DISASM_ONLY
  2226. {
  2227. 0ULL,
  2228. 0xfffff81f80000000ULL,
  2229. 0ULL,
  2230. 0ULL,
  2231. 0xc3f8000004000000ULL
  2232. },
  2233. {
  2234. -1ULL,
  2235. 0x286a981f80000000ULL,
  2236. -1ULL,
  2237. -1ULL,
  2238. 0x81f8000004000000ULL
  2239. }
  2240. #endif
  2241. },
  2242. { "raise", TILEGX_OPC_RAISE, 0x2, 0, TREG_ZERO, 1,
  2243. { { 0, }, { }, { 0, }, { 0, }, { 0, } },
  2244. #ifndef DISASM_ONLY
  2245. {
  2246. 0ULL,
  2247. 0xffffffff80000000ULL,
  2248. 0ULL,
  2249. 0ULL,
  2250. 0ULL
  2251. },
  2252. {
  2253. -1ULL,
  2254. 0x286a44ae80000000ULL,
  2255. -1ULL,
  2256. -1ULL,
  2257. -1ULL
  2258. }
  2259. #endif
  2260. },
  2261. { "add", TILEGX_OPC_ADD, 0xf, 3, TREG_ZERO, 1,
  2262. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  2263. #ifndef DISASM_ONLY
  2264. {
  2265. 0xc00000007ffc0000ULL,
  2266. 0xfffe000000000000ULL,
  2267. 0x00000000780c0000ULL,
  2268. 0x3c06000000000000ULL,
  2269. 0ULL
  2270. },
  2271. {
  2272. 0x00000000500c0000ULL,
  2273. 0x2806000000000000ULL,
  2274. 0x0000000028040000ULL,
  2275. 0x1802000000000000ULL,
  2276. -1ULL
  2277. }
  2278. #endif
  2279. },
  2280. { "addi", TILEGX_OPC_ADDI, 0xf, 3, TREG_ZERO, 1,
  2281. { { 8, 9, 0 }, { 6, 7, 1 }, { 10, 11, 2 }, { 12, 13, 3 }, { 0, } },
  2282. #ifndef DISASM_ONLY
  2283. {
  2284. 0xc00000007ff00000ULL,
  2285. 0xfff8000000000000ULL,
  2286. 0x0000000078000000ULL,
  2287. 0x3c00000000000000ULL,
  2288. 0ULL
  2289. },
  2290. {
  2291. 0x0000000040100000ULL,
  2292. 0x1808000000000000ULL,
  2293. 0ULL,
  2294. 0x0400000000000000ULL,
  2295. -1ULL
  2296. }
  2297. #endif
  2298. },
  2299. { "addli", TILEGX_OPC_ADDLI, 0x3, 3, TREG_ZERO, 1,
  2300. { { 8, 9, 4 }, { 6, 7, 5 }, { 0, }, { 0, }, { 0, } },
  2301. #ifndef DISASM_ONLY
  2302. {
  2303. 0xc000000070000000ULL,
  2304. 0xf800000000000000ULL,
  2305. 0ULL,
  2306. 0ULL,
  2307. 0ULL
  2308. },
  2309. {
  2310. 0x0000000010000000ULL,
  2311. 0ULL,
  2312. -1ULL,
  2313. -1ULL,
  2314. -1ULL
  2315. }
  2316. #endif
  2317. },
  2318. { "addx", TILEGX_OPC_ADDX, 0xf, 3, TREG_ZERO, 1,
  2319. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  2320. #ifndef DISASM_ONLY
  2321. {
  2322. 0xc00000007ffc0000ULL,
  2323. 0xfffe000000000000ULL,
  2324. 0x00000000780c0000ULL,
  2325. 0x3c06000000000000ULL,
  2326. 0ULL
  2327. },
  2328. {
  2329. 0x0000000050080000ULL,
  2330. 0x2804000000000000ULL,
  2331. 0x0000000028000000ULL,
  2332. 0x1800000000000000ULL,
  2333. -1ULL
  2334. }
  2335. #endif
  2336. },
  2337. { "addxi", TILEGX_OPC_ADDXI, 0xf, 3, TREG_ZERO, 1,
  2338. { { 8, 9, 0 }, { 6, 7, 1 }, { 10, 11, 2 }, { 12, 13, 3 }, { 0, } },
  2339. #ifndef DISASM_ONLY
  2340. {
  2341. 0xc00000007ff00000ULL,
  2342. 0xfff8000000000000ULL,
  2343. 0x0000000078000000ULL,
  2344. 0x3c00000000000000ULL,
  2345. 0ULL
  2346. },
  2347. {
  2348. 0x0000000040200000ULL,
  2349. 0x1810000000000000ULL,
  2350. 0x0000000008000000ULL,
  2351. 0x0800000000000000ULL,
  2352. -1ULL
  2353. }
  2354. #endif
  2355. },
  2356. { "addxli", TILEGX_OPC_ADDXLI, 0x3, 3, TREG_ZERO, 1,
  2357. { { 8, 9, 4 }, { 6, 7, 5 }, { 0, }, { 0, }, { 0, } },
  2358. #ifndef DISASM_ONLY
  2359. {
  2360. 0xc000000070000000ULL,
  2361. 0xf800000000000000ULL,
  2362. 0ULL,
  2363. 0ULL,
  2364. 0ULL
  2365. },
  2366. {
  2367. 0x0000000020000000ULL,
  2368. 0x0800000000000000ULL,
  2369. -1ULL,
  2370. -1ULL,
  2371. -1ULL
  2372. }
  2373. #endif
  2374. },
  2375. { "addxsc", TILEGX_OPC_ADDXSC, 0x3, 3, TREG_ZERO, 1,
  2376. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  2377. #ifndef DISASM_ONLY
  2378. {
  2379. 0xc00000007ffc0000ULL,
  2380. 0xfffe000000000000ULL,
  2381. 0ULL,
  2382. 0ULL,
  2383. 0ULL
  2384. },
  2385. {
  2386. 0x0000000050040000ULL,
  2387. 0x2802000000000000ULL,
  2388. -1ULL,
  2389. -1ULL,
  2390. -1ULL
  2391. }
  2392. #endif
  2393. },
  2394. { "and", TILEGX_OPC_AND, 0xf, 3, TREG_ZERO, 1,
  2395. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  2396. #ifndef DISASM_ONLY
  2397. {
  2398. 0xc00000007ffc0000ULL,
  2399. 0xfffe000000000000ULL,
  2400. 0x00000000780c0000ULL,
  2401. 0x3c06000000000000ULL,
  2402. 0ULL
  2403. },
  2404. {
  2405. 0x0000000050100000ULL,
  2406. 0x2808000000000000ULL,
  2407. 0x0000000050000000ULL,
  2408. 0x2c00000000000000ULL,
  2409. -1ULL
  2410. }
  2411. #endif
  2412. },
  2413. { "andi", TILEGX_OPC_ANDI, 0xf, 3, TREG_ZERO, 1,
  2414. { { 8, 9, 0 }, { 6, 7, 1 }, { 10, 11, 2 }, { 12, 13, 3 }, { 0, } },
  2415. #ifndef DISASM_ONLY
  2416. {
  2417. 0xc00000007ff00000ULL,
  2418. 0xfff8000000000000ULL,
  2419. 0x0000000078000000ULL,
  2420. 0x3c00000000000000ULL,
  2421. 0ULL
  2422. },
  2423. {
  2424. 0x0000000040300000ULL,
  2425. 0x1818000000000000ULL,
  2426. 0x0000000010000000ULL,
  2427. 0x0c00000000000000ULL,
  2428. -1ULL
  2429. }
  2430. #endif
  2431. },
  2432. { "beqz", TILEGX_OPC_BEQZ, 0x2, 2, TREG_ZERO, 1,
  2433. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2434. #ifndef DISASM_ONLY
  2435. {
  2436. 0ULL,
  2437. 0xffc0000000000000ULL,
  2438. 0ULL,
  2439. 0ULL,
  2440. 0ULL
  2441. },
  2442. {
  2443. -1ULL,
  2444. 0x1440000000000000ULL,
  2445. -1ULL,
  2446. -1ULL,
  2447. -1ULL
  2448. }
  2449. #endif
  2450. },
  2451. { "beqzt", TILEGX_OPC_BEQZT, 0x2, 2, TREG_ZERO, 1,
  2452. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2453. #ifndef DISASM_ONLY
  2454. {
  2455. 0ULL,
  2456. 0xffc0000000000000ULL,
  2457. 0ULL,
  2458. 0ULL,
  2459. 0ULL
  2460. },
  2461. {
  2462. -1ULL,
  2463. 0x1400000000000000ULL,
  2464. -1ULL,
  2465. -1ULL,
  2466. -1ULL
  2467. }
  2468. #endif
  2469. },
  2470. { "bfexts", TILEGX_OPC_BFEXTS, 0x1, 4, TREG_ZERO, 1,
  2471. { { 8, 9, 21, 22 }, { 0, }, { 0, }, { 0, }, { 0, } },
  2472. #ifndef DISASM_ONLY
  2473. {
  2474. 0xc00000007f000000ULL,
  2475. 0ULL,
  2476. 0ULL,
  2477. 0ULL,
  2478. 0ULL
  2479. },
  2480. {
  2481. 0x0000000034000000ULL,
  2482. -1ULL,
  2483. -1ULL,
  2484. -1ULL,
  2485. -1ULL
  2486. }
  2487. #endif
  2488. },
  2489. { "bfextu", TILEGX_OPC_BFEXTU, 0x1, 4, TREG_ZERO, 1,
  2490. { { 8, 9, 21, 22 }, { 0, }, { 0, }, { 0, }, { 0, } },
  2491. #ifndef DISASM_ONLY
  2492. {
  2493. 0xc00000007f000000ULL,
  2494. 0ULL,
  2495. 0ULL,
  2496. 0ULL,
  2497. 0ULL
  2498. },
  2499. {
  2500. 0x0000000035000000ULL,
  2501. -1ULL,
  2502. -1ULL,
  2503. -1ULL,
  2504. -1ULL
  2505. }
  2506. #endif
  2507. },
  2508. { "bfins", TILEGX_OPC_BFINS, 0x1, 4, TREG_ZERO, 1,
  2509. { { 23, 9, 21, 22 }, { 0, }, { 0, }, { 0, }, { 0, } },
  2510. #ifndef DISASM_ONLY
  2511. {
  2512. 0xc00000007f000000ULL,
  2513. 0ULL,
  2514. 0ULL,
  2515. 0ULL,
  2516. 0ULL
  2517. },
  2518. {
  2519. 0x0000000036000000ULL,
  2520. -1ULL,
  2521. -1ULL,
  2522. -1ULL,
  2523. -1ULL
  2524. }
  2525. #endif
  2526. },
  2527. { "bgez", TILEGX_OPC_BGEZ, 0x2, 2, TREG_ZERO, 1,
  2528. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2529. #ifndef DISASM_ONLY
  2530. {
  2531. 0ULL,
  2532. 0xffc0000000000000ULL,
  2533. 0ULL,
  2534. 0ULL,
  2535. 0ULL
  2536. },
  2537. {
  2538. -1ULL,
  2539. 0x14c0000000000000ULL,
  2540. -1ULL,
  2541. -1ULL,
  2542. -1ULL
  2543. }
  2544. #endif
  2545. },
  2546. { "bgezt", TILEGX_OPC_BGEZT, 0x2, 2, TREG_ZERO, 1,
  2547. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2548. #ifndef DISASM_ONLY
  2549. {
  2550. 0ULL,
  2551. 0xffc0000000000000ULL,
  2552. 0ULL,
  2553. 0ULL,
  2554. 0ULL
  2555. },
  2556. {
  2557. -1ULL,
  2558. 0x1480000000000000ULL,
  2559. -1ULL,
  2560. -1ULL,
  2561. -1ULL
  2562. }
  2563. #endif
  2564. },
  2565. { "bgtz", TILEGX_OPC_BGTZ, 0x2, 2, TREG_ZERO, 1,
  2566. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2567. #ifndef DISASM_ONLY
  2568. {
  2569. 0ULL,
  2570. 0xffc0000000000000ULL,
  2571. 0ULL,
  2572. 0ULL,
  2573. 0ULL
  2574. },
  2575. {
  2576. -1ULL,
  2577. 0x1540000000000000ULL,
  2578. -1ULL,
  2579. -1ULL,
  2580. -1ULL
  2581. }
  2582. #endif
  2583. },
  2584. { "bgtzt", TILEGX_OPC_BGTZT, 0x2, 2, TREG_ZERO, 1,
  2585. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2586. #ifndef DISASM_ONLY
  2587. {
  2588. 0ULL,
  2589. 0xffc0000000000000ULL,
  2590. 0ULL,
  2591. 0ULL,
  2592. 0ULL
  2593. },
  2594. {
  2595. -1ULL,
  2596. 0x1500000000000000ULL,
  2597. -1ULL,
  2598. -1ULL,
  2599. -1ULL
  2600. }
  2601. #endif
  2602. },
  2603. { "blbc", TILEGX_OPC_BLBC, 0x2, 2, TREG_ZERO, 1,
  2604. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2605. #ifndef DISASM_ONLY
  2606. {
  2607. 0ULL,
  2608. 0xffc0000000000000ULL,
  2609. 0ULL,
  2610. 0ULL,
  2611. 0ULL
  2612. },
  2613. {
  2614. -1ULL,
  2615. 0x15c0000000000000ULL,
  2616. -1ULL,
  2617. -1ULL,
  2618. -1ULL
  2619. }
  2620. #endif
  2621. },
  2622. { "blbct", TILEGX_OPC_BLBCT, 0x2, 2, TREG_ZERO, 1,
  2623. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2624. #ifndef DISASM_ONLY
  2625. {
  2626. 0ULL,
  2627. 0xffc0000000000000ULL,
  2628. 0ULL,
  2629. 0ULL,
  2630. 0ULL
  2631. },
  2632. {
  2633. -1ULL,
  2634. 0x1580000000000000ULL,
  2635. -1ULL,
  2636. -1ULL,
  2637. -1ULL
  2638. }
  2639. #endif
  2640. },
  2641. { "blbs", TILEGX_OPC_BLBS, 0x2, 2, TREG_ZERO, 1,
  2642. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2643. #ifndef DISASM_ONLY
  2644. {
  2645. 0ULL,
  2646. 0xffc0000000000000ULL,
  2647. 0ULL,
  2648. 0ULL,
  2649. 0ULL
  2650. },
  2651. {
  2652. -1ULL,
  2653. 0x1640000000000000ULL,
  2654. -1ULL,
  2655. -1ULL,
  2656. -1ULL
  2657. }
  2658. #endif
  2659. },
  2660. { "blbst", TILEGX_OPC_BLBST, 0x2, 2, TREG_ZERO, 1,
  2661. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2662. #ifndef DISASM_ONLY
  2663. {
  2664. 0ULL,
  2665. 0xffc0000000000000ULL,
  2666. 0ULL,
  2667. 0ULL,
  2668. 0ULL
  2669. },
  2670. {
  2671. -1ULL,
  2672. 0x1600000000000000ULL,
  2673. -1ULL,
  2674. -1ULL,
  2675. -1ULL
  2676. }
  2677. #endif
  2678. },
  2679. { "blez", TILEGX_OPC_BLEZ, 0x2, 2, TREG_ZERO, 1,
  2680. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2681. #ifndef DISASM_ONLY
  2682. {
  2683. 0ULL,
  2684. 0xffc0000000000000ULL,
  2685. 0ULL,
  2686. 0ULL,
  2687. 0ULL
  2688. },
  2689. {
  2690. -1ULL,
  2691. 0x16c0000000000000ULL,
  2692. -1ULL,
  2693. -1ULL,
  2694. -1ULL
  2695. }
  2696. #endif
  2697. },
  2698. { "blezt", TILEGX_OPC_BLEZT, 0x2, 2, TREG_ZERO, 1,
  2699. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2700. #ifndef DISASM_ONLY
  2701. {
  2702. 0ULL,
  2703. 0xffc0000000000000ULL,
  2704. 0ULL,
  2705. 0ULL,
  2706. 0ULL
  2707. },
  2708. {
  2709. -1ULL,
  2710. 0x1680000000000000ULL,
  2711. -1ULL,
  2712. -1ULL,
  2713. -1ULL
  2714. }
  2715. #endif
  2716. },
  2717. { "bltz", TILEGX_OPC_BLTZ, 0x2, 2, TREG_ZERO, 1,
  2718. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2719. #ifndef DISASM_ONLY
  2720. {
  2721. 0ULL,
  2722. 0xffc0000000000000ULL,
  2723. 0ULL,
  2724. 0ULL,
  2725. 0ULL
  2726. },
  2727. {
  2728. -1ULL,
  2729. 0x1740000000000000ULL,
  2730. -1ULL,
  2731. -1ULL,
  2732. -1ULL
  2733. }
  2734. #endif
  2735. },
  2736. { "bltzt", TILEGX_OPC_BLTZT, 0x2, 2, TREG_ZERO, 1,
  2737. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2738. #ifndef DISASM_ONLY
  2739. {
  2740. 0ULL,
  2741. 0xffc0000000000000ULL,
  2742. 0ULL,
  2743. 0ULL,
  2744. 0ULL
  2745. },
  2746. {
  2747. -1ULL,
  2748. 0x1700000000000000ULL,
  2749. -1ULL,
  2750. -1ULL,
  2751. -1ULL
  2752. }
  2753. #endif
  2754. },
  2755. { "bnez", TILEGX_OPC_BNEZ, 0x2, 2, TREG_ZERO, 1,
  2756. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2757. #ifndef DISASM_ONLY
  2758. {
  2759. 0ULL,
  2760. 0xffc0000000000000ULL,
  2761. 0ULL,
  2762. 0ULL,
  2763. 0ULL
  2764. },
  2765. {
  2766. -1ULL,
  2767. 0x17c0000000000000ULL,
  2768. -1ULL,
  2769. -1ULL,
  2770. -1ULL
  2771. }
  2772. #endif
  2773. },
  2774. { "bnezt", TILEGX_OPC_BNEZT, 0x2, 2, TREG_ZERO, 1,
  2775. { { 0, }, { 7, 20 }, { 0, }, { 0, }, { 0, } },
  2776. #ifndef DISASM_ONLY
  2777. {
  2778. 0ULL,
  2779. 0xffc0000000000000ULL,
  2780. 0ULL,
  2781. 0ULL,
  2782. 0ULL
  2783. },
  2784. {
  2785. -1ULL,
  2786. 0x1780000000000000ULL,
  2787. -1ULL,
  2788. -1ULL,
  2789. -1ULL
  2790. }
  2791. #endif
  2792. },
  2793. { "clz", TILEGX_OPC_CLZ, 0x5, 2, TREG_ZERO, 1,
  2794. { { 8, 9 }, { 0, }, { 10, 11 }, { 0, }, { 0, } },
  2795. #ifndef DISASM_ONLY
  2796. {
  2797. 0xc00000007ffff000ULL,
  2798. 0ULL,
  2799. 0x00000000780ff000ULL,
  2800. 0ULL,
  2801. 0ULL
  2802. },
  2803. {
  2804. 0x0000000051481000ULL,
  2805. -1ULL,
  2806. 0x00000000300c1000ULL,
  2807. -1ULL,
  2808. -1ULL
  2809. }
  2810. #endif
  2811. },
  2812. { "cmoveqz", TILEGX_OPC_CMOVEQZ, 0x5, 3, TREG_ZERO, 1,
  2813. { { 23, 9, 16 }, { 0, }, { 24, 11, 18 }, { 0, }, { 0, } },
  2814. #ifndef DISASM_ONLY
  2815. {
  2816. 0xc00000007ffc0000ULL,
  2817. 0ULL,
  2818. 0x00000000780c0000ULL,
  2819. 0ULL,
  2820. 0ULL
  2821. },
  2822. {
  2823. 0x0000000050140000ULL,
  2824. -1ULL,
  2825. 0x0000000048000000ULL,
  2826. -1ULL,
  2827. -1ULL
  2828. }
  2829. #endif
  2830. },
  2831. { "cmovnez", TILEGX_OPC_CMOVNEZ, 0x5, 3, TREG_ZERO, 1,
  2832. { { 23, 9, 16 }, { 0, }, { 24, 11, 18 }, { 0, }, { 0, } },
  2833. #ifndef DISASM_ONLY
  2834. {
  2835. 0xc00000007ffc0000ULL,
  2836. 0ULL,
  2837. 0x00000000780c0000ULL,
  2838. 0ULL,
  2839. 0ULL
  2840. },
  2841. {
  2842. 0x0000000050180000ULL,
  2843. -1ULL,
  2844. 0x0000000048040000ULL,
  2845. -1ULL,
  2846. -1ULL
  2847. }
  2848. #endif
  2849. },
  2850. { "cmpeq", TILEGX_OPC_CMPEQ, 0xf, 3, TREG_ZERO, 1,
  2851. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  2852. #ifndef DISASM_ONLY
  2853. {
  2854. 0xc00000007ffc0000ULL,
  2855. 0xfffe000000000000ULL,
  2856. 0x00000000780c0000ULL,
  2857. 0x3c06000000000000ULL,
  2858. 0ULL
  2859. },
  2860. {
  2861. 0x00000000501c0000ULL,
  2862. 0x280a000000000000ULL,
  2863. 0x0000000040000000ULL,
  2864. 0x2404000000000000ULL,
  2865. -1ULL
  2866. }
  2867. #endif
  2868. },
  2869. { "cmpeqi", TILEGX_OPC_CMPEQI, 0xf, 3, TREG_ZERO, 1,
  2870. { { 8, 9, 0 }, { 6, 7, 1 }, { 10, 11, 2 }, { 12, 13, 3 }, { 0, } },
  2871. #ifndef DISASM_ONLY
  2872. {
  2873. 0xc00000007ff00000ULL,
  2874. 0xfff8000000000000ULL,
  2875. 0x0000000078000000ULL,
  2876. 0x3c00000000000000ULL,
  2877. 0ULL
  2878. },
  2879. {
  2880. 0x0000000040400000ULL,
  2881. 0x1820000000000000ULL,
  2882. 0x0000000018000000ULL,
  2883. 0x1000000000000000ULL,
  2884. -1ULL
  2885. }
  2886. #endif
  2887. },
  2888. { "cmpexch", TILEGX_OPC_CMPEXCH, 0x2, 3, TREG_ZERO, 1,
  2889. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  2890. #ifndef DISASM_ONLY
  2891. {
  2892. 0ULL,
  2893. 0xfffe000000000000ULL,
  2894. 0ULL,
  2895. 0ULL,
  2896. 0ULL
  2897. },
  2898. {
  2899. -1ULL,
  2900. 0x280e000000000000ULL,
  2901. -1ULL,
  2902. -1ULL,
  2903. -1ULL
  2904. }
  2905. #endif
  2906. },
  2907. { "cmpexch4", TILEGX_OPC_CMPEXCH4, 0x2, 3, TREG_ZERO, 1,
  2908. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  2909. #ifndef DISASM_ONLY
  2910. {
  2911. 0ULL,
  2912. 0xfffe000000000000ULL,
  2913. 0ULL,
  2914. 0ULL,
  2915. 0ULL
  2916. },
  2917. {
  2918. -1ULL,
  2919. 0x280c000000000000ULL,
  2920. -1ULL,
  2921. -1ULL,
  2922. -1ULL
  2923. }
  2924. #endif
  2925. },
  2926. { "cmples", TILEGX_OPC_CMPLES, 0xf, 3, TREG_ZERO, 1,
  2927. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  2928. #ifndef DISASM_ONLY
  2929. {
  2930. 0xc00000007ffc0000ULL,
  2931. 0xfffe000000000000ULL,
  2932. 0x00000000780c0000ULL,
  2933. 0x3c06000000000000ULL,
  2934. 0ULL
  2935. },
  2936. {
  2937. 0x0000000050200000ULL,
  2938. 0x2810000000000000ULL,
  2939. 0x0000000038000000ULL,
  2940. 0x2000000000000000ULL,
  2941. -1ULL
  2942. }
  2943. #endif
  2944. },
  2945. { "cmpleu", TILEGX_OPC_CMPLEU, 0xf, 3, TREG_ZERO, 1,
  2946. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  2947. #ifndef DISASM_ONLY
  2948. {
  2949. 0xc00000007ffc0000ULL,
  2950. 0xfffe000000000000ULL,
  2951. 0x00000000780c0000ULL,
  2952. 0x3c06000000000000ULL,
  2953. 0ULL
  2954. },
  2955. {
  2956. 0x0000000050240000ULL,
  2957. 0x2812000000000000ULL,
  2958. 0x0000000038040000ULL,
  2959. 0x2002000000000000ULL,
  2960. -1ULL
  2961. }
  2962. #endif
  2963. },
  2964. { "cmplts", TILEGX_OPC_CMPLTS, 0xf, 3, TREG_ZERO, 1,
  2965. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  2966. #ifndef DISASM_ONLY
  2967. {
  2968. 0xc00000007ffc0000ULL,
  2969. 0xfffe000000000000ULL,
  2970. 0x00000000780c0000ULL,
  2971. 0x3c06000000000000ULL,
  2972. 0ULL
  2973. },
  2974. {
  2975. 0x0000000050280000ULL,
  2976. 0x2814000000000000ULL,
  2977. 0x0000000038080000ULL,
  2978. 0x2004000000000000ULL,
  2979. -1ULL
  2980. }
  2981. #endif
  2982. },
  2983. { "cmpltsi", TILEGX_OPC_CMPLTSI, 0xf, 3, TREG_ZERO, 1,
  2984. { { 8, 9, 0 }, { 6, 7, 1 }, { 10, 11, 2 }, { 12, 13, 3 }, { 0, } },
  2985. #ifndef DISASM_ONLY
  2986. {
  2987. 0xc00000007ff00000ULL,
  2988. 0xfff8000000000000ULL,
  2989. 0x0000000078000000ULL,
  2990. 0x3c00000000000000ULL,
  2991. 0ULL
  2992. },
  2993. {
  2994. 0x0000000040500000ULL,
  2995. 0x1828000000000000ULL,
  2996. 0x0000000020000000ULL,
  2997. 0x1400000000000000ULL,
  2998. -1ULL
  2999. }
  3000. #endif
  3001. },
  3002. { "cmpltu", TILEGX_OPC_CMPLTU, 0xf, 3, TREG_ZERO, 1,
  3003. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  3004. #ifndef DISASM_ONLY
  3005. {
  3006. 0xc00000007ffc0000ULL,
  3007. 0xfffe000000000000ULL,
  3008. 0x00000000780c0000ULL,
  3009. 0x3c06000000000000ULL,
  3010. 0ULL
  3011. },
  3012. {
  3013. 0x00000000502c0000ULL,
  3014. 0x2816000000000000ULL,
  3015. 0x00000000380c0000ULL,
  3016. 0x2006000000000000ULL,
  3017. -1ULL
  3018. }
  3019. #endif
  3020. },
  3021. { "cmpltui", TILEGX_OPC_CMPLTUI, 0x3, 3, TREG_ZERO, 1,
  3022. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  3023. #ifndef DISASM_ONLY
  3024. {
  3025. 0xc00000007ff00000ULL,
  3026. 0xfff8000000000000ULL,
  3027. 0ULL,
  3028. 0ULL,
  3029. 0ULL
  3030. },
  3031. {
  3032. 0x0000000040600000ULL,
  3033. 0x1830000000000000ULL,
  3034. -1ULL,
  3035. -1ULL,
  3036. -1ULL
  3037. }
  3038. #endif
  3039. },
  3040. { "cmpne", TILEGX_OPC_CMPNE, 0xf, 3, TREG_ZERO, 1,
  3041. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  3042. #ifndef DISASM_ONLY
  3043. {
  3044. 0xc00000007ffc0000ULL,
  3045. 0xfffe000000000000ULL,
  3046. 0x00000000780c0000ULL,
  3047. 0x3c06000000000000ULL,
  3048. 0ULL
  3049. },
  3050. {
  3051. 0x0000000050300000ULL,
  3052. 0x2818000000000000ULL,
  3053. 0x0000000040040000ULL,
  3054. 0x2406000000000000ULL,
  3055. -1ULL
  3056. }
  3057. #endif
  3058. },
  3059. { "cmul", TILEGX_OPC_CMUL, 0x1, 3, TREG_ZERO, 1,
  3060. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3061. #ifndef DISASM_ONLY
  3062. {
  3063. 0xc00000007ffc0000ULL,
  3064. 0ULL,
  3065. 0ULL,
  3066. 0ULL,
  3067. 0ULL
  3068. },
  3069. {
  3070. 0x00000000504c0000ULL,
  3071. -1ULL,
  3072. -1ULL,
  3073. -1ULL,
  3074. -1ULL
  3075. }
  3076. #endif
  3077. },
  3078. { "cmula", TILEGX_OPC_CMULA, 0x1, 3, TREG_ZERO, 1,
  3079. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3080. #ifndef DISASM_ONLY
  3081. {
  3082. 0xc00000007ffc0000ULL,
  3083. 0ULL,
  3084. 0ULL,
  3085. 0ULL,
  3086. 0ULL
  3087. },
  3088. {
  3089. 0x0000000050380000ULL,
  3090. -1ULL,
  3091. -1ULL,
  3092. -1ULL,
  3093. -1ULL
  3094. }
  3095. #endif
  3096. },
  3097. { "cmulaf", TILEGX_OPC_CMULAF, 0x1, 3, TREG_ZERO, 1,
  3098. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3099. #ifndef DISASM_ONLY
  3100. {
  3101. 0xc00000007ffc0000ULL,
  3102. 0ULL,
  3103. 0ULL,
  3104. 0ULL,
  3105. 0ULL
  3106. },
  3107. {
  3108. 0x0000000050340000ULL,
  3109. -1ULL,
  3110. -1ULL,
  3111. -1ULL,
  3112. -1ULL
  3113. }
  3114. #endif
  3115. },
  3116. { "cmulf", TILEGX_OPC_CMULF, 0x1, 3, TREG_ZERO, 1,
  3117. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3118. #ifndef DISASM_ONLY
  3119. {
  3120. 0xc00000007ffc0000ULL,
  3121. 0ULL,
  3122. 0ULL,
  3123. 0ULL,
  3124. 0ULL
  3125. },
  3126. {
  3127. 0x0000000050400000ULL,
  3128. -1ULL,
  3129. -1ULL,
  3130. -1ULL,
  3131. -1ULL
  3132. }
  3133. #endif
  3134. },
  3135. { "cmulfr", TILEGX_OPC_CMULFR, 0x1, 3, TREG_ZERO, 1,
  3136. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3137. #ifndef DISASM_ONLY
  3138. {
  3139. 0xc00000007ffc0000ULL,
  3140. 0ULL,
  3141. 0ULL,
  3142. 0ULL,
  3143. 0ULL
  3144. },
  3145. {
  3146. 0x00000000503c0000ULL,
  3147. -1ULL,
  3148. -1ULL,
  3149. -1ULL,
  3150. -1ULL
  3151. }
  3152. #endif
  3153. },
  3154. { "cmulh", TILEGX_OPC_CMULH, 0x1, 3, TREG_ZERO, 1,
  3155. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3156. #ifndef DISASM_ONLY
  3157. {
  3158. 0xc00000007ffc0000ULL,
  3159. 0ULL,
  3160. 0ULL,
  3161. 0ULL,
  3162. 0ULL
  3163. },
  3164. {
  3165. 0x0000000050480000ULL,
  3166. -1ULL,
  3167. -1ULL,
  3168. -1ULL,
  3169. -1ULL
  3170. }
  3171. #endif
  3172. },
  3173. { "cmulhr", TILEGX_OPC_CMULHR, 0x1, 3, TREG_ZERO, 1,
  3174. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3175. #ifndef DISASM_ONLY
  3176. {
  3177. 0xc00000007ffc0000ULL,
  3178. 0ULL,
  3179. 0ULL,
  3180. 0ULL,
  3181. 0ULL
  3182. },
  3183. {
  3184. 0x0000000050440000ULL,
  3185. -1ULL,
  3186. -1ULL,
  3187. -1ULL,
  3188. -1ULL
  3189. }
  3190. #endif
  3191. },
  3192. { "crc32_32", TILEGX_OPC_CRC32_32, 0x1, 3, TREG_ZERO, 1,
  3193. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3194. #ifndef DISASM_ONLY
  3195. {
  3196. 0xc00000007ffc0000ULL,
  3197. 0ULL,
  3198. 0ULL,
  3199. 0ULL,
  3200. 0ULL
  3201. },
  3202. {
  3203. 0x0000000050500000ULL,
  3204. -1ULL,
  3205. -1ULL,
  3206. -1ULL,
  3207. -1ULL
  3208. }
  3209. #endif
  3210. },
  3211. { "crc32_8", TILEGX_OPC_CRC32_8, 0x1, 3, TREG_ZERO, 1,
  3212. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3213. #ifndef DISASM_ONLY
  3214. {
  3215. 0xc00000007ffc0000ULL,
  3216. 0ULL,
  3217. 0ULL,
  3218. 0ULL,
  3219. 0ULL
  3220. },
  3221. {
  3222. 0x0000000050540000ULL,
  3223. -1ULL,
  3224. -1ULL,
  3225. -1ULL,
  3226. -1ULL
  3227. }
  3228. #endif
  3229. },
  3230. { "ctz", TILEGX_OPC_CTZ, 0x5, 2, TREG_ZERO, 1,
  3231. { { 8, 9 }, { 0, }, { 10, 11 }, { 0, }, { 0, } },
  3232. #ifndef DISASM_ONLY
  3233. {
  3234. 0xc00000007ffff000ULL,
  3235. 0ULL,
  3236. 0x00000000780ff000ULL,
  3237. 0ULL,
  3238. 0ULL
  3239. },
  3240. {
  3241. 0x0000000051482000ULL,
  3242. -1ULL,
  3243. 0x00000000300c2000ULL,
  3244. -1ULL,
  3245. -1ULL
  3246. }
  3247. #endif
  3248. },
  3249. { "dblalign", TILEGX_OPC_DBLALIGN, 0x1, 3, TREG_ZERO, 1,
  3250. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3251. #ifndef DISASM_ONLY
  3252. {
  3253. 0xc00000007ffc0000ULL,
  3254. 0ULL,
  3255. 0ULL,
  3256. 0ULL,
  3257. 0ULL
  3258. },
  3259. {
  3260. 0x0000000050640000ULL,
  3261. -1ULL,
  3262. -1ULL,
  3263. -1ULL,
  3264. -1ULL
  3265. }
  3266. #endif
  3267. },
  3268. { "dblalign2", TILEGX_OPC_DBLALIGN2, 0x3, 3, TREG_ZERO, 1,
  3269. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3270. #ifndef DISASM_ONLY
  3271. {
  3272. 0xc00000007ffc0000ULL,
  3273. 0xfffe000000000000ULL,
  3274. 0ULL,
  3275. 0ULL,
  3276. 0ULL
  3277. },
  3278. {
  3279. 0x0000000050580000ULL,
  3280. 0x281a000000000000ULL,
  3281. -1ULL,
  3282. -1ULL,
  3283. -1ULL
  3284. }
  3285. #endif
  3286. },
  3287. { "dblalign4", TILEGX_OPC_DBLALIGN4, 0x3, 3, TREG_ZERO, 1,
  3288. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3289. #ifndef DISASM_ONLY
  3290. {
  3291. 0xc00000007ffc0000ULL,
  3292. 0xfffe000000000000ULL,
  3293. 0ULL,
  3294. 0ULL,
  3295. 0ULL
  3296. },
  3297. {
  3298. 0x00000000505c0000ULL,
  3299. 0x281c000000000000ULL,
  3300. -1ULL,
  3301. -1ULL,
  3302. -1ULL
  3303. }
  3304. #endif
  3305. },
  3306. { "dblalign6", TILEGX_OPC_DBLALIGN6, 0x3, 3, TREG_ZERO, 1,
  3307. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3308. #ifndef DISASM_ONLY
  3309. {
  3310. 0xc00000007ffc0000ULL,
  3311. 0xfffe000000000000ULL,
  3312. 0ULL,
  3313. 0ULL,
  3314. 0ULL
  3315. },
  3316. {
  3317. 0x0000000050600000ULL,
  3318. 0x281e000000000000ULL,
  3319. -1ULL,
  3320. -1ULL,
  3321. -1ULL
  3322. }
  3323. #endif
  3324. },
  3325. { "drain", TILEGX_OPC_DRAIN, 0x2, 0, TREG_ZERO, 0,
  3326. { { 0, }, { }, { 0, }, { 0, }, { 0, } },
  3327. #ifndef DISASM_ONLY
  3328. {
  3329. 0ULL,
  3330. 0xfffff80000000000ULL,
  3331. 0ULL,
  3332. 0ULL,
  3333. 0ULL
  3334. },
  3335. {
  3336. -1ULL,
  3337. 0x286a080000000000ULL,
  3338. -1ULL,
  3339. -1ULL,
  3340. -1ULL
  3341. }
  3342. #endif
  3343. },
  3344. { "dtlbpr", TILEGX_OPC_DTLBPR, 0x2, 1, TREG_ZERO, 1,
  3345. { { 0, }, { 7 }, { 0, }, { 0, }, { 0, } },
  3346. #ifndef DISASM_ONLY
  3347. {
  3348. 0ULL,
  3349. 0xfffff80000000000ULL,
  3350. 0ULL,
  3351. 0ULL,
  3352. 0ULL
  3353. },
  3354. {
  3355. -1ULL,
  3356. 0x286a100000000000ULL,
  3357. -1ULL,
  3358. -1ULL,
  3359. -1ULL
  3360. }
  3361. #endif
  3362. },
  3363. { "exch", TILEGX_OPC_EXCH, 0x2, 3, TREG_ZERO, 1,
  3364. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3365. #ifndef DISASM_ONLY
  3366. {
  3367. 0ULL,
  3368. 0xfffe000000000000ULL,
  3369. 0ULL,
  3370. 0ULL,
  3371. 0ULL
  3372. },
  3373. {
  3374. -1ULL,
  3375. 0x2822000000000000ULL,
  3376. -1ULL,
  3377. -1ULL,
  3378. -1ULL
  3379. }
  3380. #endif
  3381. },
  3382. { "exch4", TILEGX_OPC_EXCH4, 0x2, 3, TREG_ZERO, 1,
  3383. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3384. #ifndef DISASM_ONLY
  3385. {
  3386. 0ULL,
  3387. 0xfffe000000000000ULL,
  3388. 0ULL,
  3389. 0ULL,
  3390. 0ULL
  3391. },
  3392. {
  3393. -1ULL,
  3394. 0x2820000000000000ULL,
  3395. -1ULL,
  3396. -1ULL,
  3397. -1ULL
  3398. }
  3399. #endif
  3400. },
  3401. { "fdouble_add_flags", TILEGX_OPC_FDOUBLE_ADD_FLAGS, 0x1, 3, TREG_ZERO, 1,
  3402. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3403. #ifndef DISASM_ONLY
  3404. {
  3405. 0xc00000007ffc0000ULL,
  3406. 0ULL,
  3407. 0ULL,
  3408. 0ULL,
  3409. 0ULL
  3410. },
  3411. {
  3412. 0x00000000506c0000ULL,
  3413. -1ULL,
  3414. -1ULL,
  3415. -1ULL,
  3416. -1ULL
  3417. }
  3418. #endif
  3419. },
  3420. { "fdouble_addsub", TILEGX_OPC_FDOUBLE_ADDSUB, 0x1, 3, TREG_ZERO, 1,
  3421. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3422. #ifndef DISASM_ONLY
  3423. {
  3424. 0xc00000007ffc0000ULL,
  3425. 0ULL,
  3426. 0ULL,
  3427. 0ULL,
  3428. 0ULL
  3429. },
  3430. {
  3431. 0x0000000050680000ULL,
  3432. -1ULL,
  3433. -1ULL,
  3434. -1ULL,
  3435. -1ULL
  3436. }
  3437. #endif
  3438. },
  3439. { "fdouble_mul_flags", TILEGX_OPC_FDOUBLE_MUL_FLAGS, 0x1, 3, TREG_ZERO, 1,
  3440. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3441. #ifndef DISASM_ONLY
  3442. {
  3443. 0xc00000007ffc0000ULL,
  3444. 0ULL,
  3445. 0ULL,
  3446. 0ULL,
  3447. 0ULL
  3448. },
  3449. {
  3450. 0x0000000050700000ULL,
  3451. -1ULL,
  3452. -1ULL,
  3453. -1ULL,
  3454. -1ULL
  3455. }
  3456. #endif
  3457. },
  3458. { "fdouble_pack1", TILEGX_OPC_FDOUBLE_PACK1, 0x1, 3, TREG_ZERO, 1,
  3459. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3460. #ifndef DISASM_ONLY
  3461. {
  3462. 0xc00000007ffc0000ULL,
  3463. 0ULL,
  3464. 0ULL,
  3465. 0ULL,
  3466. 0ULL
  3467. },
  3468. {
  3469. 0x0000000050740000ULL,
  3470. -1ULL,
  3471. -1ULL,
  3472. -1ULL,
  3473. -1ULL
  3474. }
  3475. #endif
  3476. },
  3477. { "fdouble_pack2", TILEGX_OPC_FDOUBLE_PACK2, 0x1, 3, TREG_ZERO, 1,
  3478. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3479. #ifndef DISASM_ONLY
  3480. {
  3481. 0xc00000007ffc0000ULL,
  3482. 0ULL,
  3483. 0ULL,
  3484. 0ULL,
  3485. 0ULL
  3486. },
  3487. {
  3488. 0x0000000050780000ULL,
  3489. -1ULL,
  3490. -1ULL,
  3491. -1ULL,
  3492. -1ULL
  3493. }
  3494. #endif
  3495. },
  3496. { "fdouble_sub_flags", TILEGX_OPC_FDOUBLE_SUB_FLAGS, 0x1, 3, TREG_ZERO, 1,
  3497. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3498. #ifndef DISASM_ONLY
  3499. {
  3500. 0xc00000007ffc0000ULL,
  3501. 0ULL,
  3502. 0ULL,
  3503. 0ULL,
  3504. 0ULL
  3505. },
  3506. {
  3507. 0x00000000507c0000ULL,
  3508. -1ULL,
  3509. -1ULL,
  3510. -1ULL,
  3511. -1ULL
  3512. }
  3513. #endif
  3514. },
  3515. { "fdouble_unpack_max", TILEGX_OPC_FDOUBLE_UNPACK_MAX, 0x1, 3, TREG_ZERO, 1,
  3516. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3517. #ifndef DISASM_ONLY
  3518. {
  3519. 0xc00000007ffc0000ULL,
  3520. 0ULL,
  3521. 0ULL,
  3522. 0ULL,
  3523. 0ULL
  3524. },
  3525. {
  3526. 0x0000000050800000ULL,
  3527. -1ULL,
  3528. -1ULL,
  3529. -1ULL,
  3530. -1ULL
  3531. }
  3532. #endif
  3533. },
  3534. { "fdouble_unpack_min", TILEGX_OPC_FDOUBLE_UNPACK_MIN, 0x1, 3, TREG_ZERO, 1,
  3535. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3536. #ifndef DISASM_ONLY
  3537. {
  3538. 0xc00000007ffc0000ULL,
  3539. 0ULL,
  3540. 0ULL,
  3541. 0ULL,
  3542. 0ULL
  3543. },
  3544. {
  3545. 0x0000000050840000ULL,
  3546. -1ULL,
  3547. -1ULL,
  3548. -1ULL,
  3549. -1ULL
  3550. }
  3551. #endif
  3552. },
  3553. { "fetchadd", TILEGX_OPC_FETCHADD, 0x2, 3, TREG_ZERO, 1,
  3554. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3555. #ifndef DISASM_ONLY
  3556. {
  3557. 0ULL,
  3558. 0xfffe000000000000ULL,
  3559. 0ULL,
  3560. 0ULL,
  3561. 0ULL
  3562. },
  3563. {
  3564. -1ULL,
  3565. 0x282a000000000000ULL,
  3566. -1ULL,
  3567. -1ULL,
  3568. -1ULL
  3569. }
  3570. #endif
  3571. },
  3572. { "fetchadd4", TILEGX_OPC_FETCHADD4, 0x2, 3, TREG_ZERO, 1,
  3573. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3574. #ifndef DISASM_ONLY
  3575. {
  3576. 0ULL,
  3577. 0xfffe000000000000ULL,
  3578. 0ULL,
  3579. 0ULL,
  3580. 0ULL
  3581. },
  3582. {
  3583. -1ULL,
  3584. 0x2824000000000000ULL,
  3585. -1ULL,
  3586. -1ULL,
  3587. -1ULL
  3588. }
  3589. #endif
  3590. },
  3591. { "fetchaddgez", TILEGX_OPC_FETCHADDGEZ, 0x2, 3, TREG_ZERO, 1,
  3592. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3593. #ifndef DISASM_ONLY
  3594. {
  3595. 0ULL,
  3596. 0xfffe000000000000ULL,
  3597. 0ULL,
  3598. 0ULL,
  3599. 0ULL
  3600. },
  3601. {
  3602. -1ULL,
  3603. 0x2828000000000000ULL,
  3604. -1ULL,
  3605. -1ULL,
  3606. -1ULL
  3607. }
  3608. #endif
  3609. },
  3610. { "fetchaddgez4", TILEGX_OPC_FETCHADDGEZ4, 0x2, 3, TREG_ZERO, 1,
  3611. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3612. #ifndef DISASM_ONLY
  3613. {
  3614. 0ULL,
  3615. 0xfffe000000000000ULL,
  3616. 0ULL,
  3617. 0ULL,
  3618. 0ULL
  3619. },
  3620. {
  3621. -1ULL,
  3622. 0x2826000000000000ULL,
  3623. -1ULL,
  3624. -1ULL,
  3625. -1ULL
  3626. }
  3627. #endif
  3628. },
  3629. { "fetchand", TILEGX_OPC_FETCHAND, 0x2, 3, TREG_ZERO, 1,
  3630. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3631. #ifndef DISASM_ONLY
  3632. {
  3633. 0ULL,
  3634. 0xfffe000000000000ULL,
  3635. 0ULL,
  3636. 0ULL,
  3637. 0ULL
  3638. },
  3639. {
  3640. -1ULL,
  3641. 0x282e000000000000ULL,
  3642. -1ULL,
  3643. -1ULL,
  3644. -1ULL
  3645. }
  3646. #endif
  3647. },
  3648. { "fetchand4", TILEGX_OPC_FETCHAND4, 0x2, 3, TREG_ZERO, 1,
  3649. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3650. #ifndef DISASM_ONLY
  3651. {
  3652. 0ULL,
  3653. 0xfffe000000000000ULL,
  3654. 0ULL,
  3655. 0ULL,
  3656. 0ULL
  3657. },
  3658. {
  3659. -1ULL,
  3660. 0x282c000000000000ULL,
  3661. -1ULL,
  3662. -1ULL,
  3663. -1ULL
  3664. }
  3665. #endif
  3666. },
  3667. { "fetchor", TILEGX_OPC_FETCHOR, 0x2, 3, TREG_ZERO, 1,
  3668. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3669. #ifndef DISASM_ONLY
  3670. {
  3671. 0ULL,
  3672. 0xfffe000000000000ULL,
  3673. 0ULL,
  3674. 0ULL,
  3675. 0ULL
  3676. },
  3677. {
  3678. -1ULL,
  3679. 0x2832000000000000ULL,
  3680. -1ULL,
  3681. -1ULL,
  3682. -1ULL
  3683. }
  3684. #endif
  3685. },
  3686. { "fetchor4", TILEGX_OPC_FETCHOR4, 0x2, 3, TREG_ZERO, 1,
  3687. { { 0, }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  3688. #ifndef DISASM_ONLY
  3689. {
  3690. 0ULL,
  3691. 0xfffe000000000000ULL,
  3692. 0ULL,
  3693. 0ULL,
  3694. 0ULL
  3695. },
  3696. {
  3697. -1ULL,
  3698. 0x2830000000000000ULL,
  3699. -1ULL,
  3700. -1ULL,
  3701. -1ULL
  3702. }
  3703. #endif
  3704. },
  3705. { "finv", TILEGX_OPC_FINV, 0x2, 1, TREG_ZERO, 1,
  3706. { { 0, }, { 7 }, { 0, }, { 0, }, { 0, } },
  3707. #ifndef DISASM_ONLY
  3708. {
  3709. 0ULL,
  3710. 0xfffff80000000000ULL,
  3711. 0ULL,
  3712. 0ULL,
  3713. 0ULL
  3714. },
  3715. {
  3716. -1ULL,
  3717. 0x286a180000000000ULL,
  3718. -1ULL,
  3719. -1ULL,
  3720. -1ULL
  3721. }
  3722. #endif
  3723. },
  3724. { "flush", TILEGX_OPC_FLUSH, 0x2, 1, TREG_ZERO, 1,
  3725. { { 0, }, { 7 }, { 0, }, { 0, }, { 0, } },
  3726. #ifndef DISASM_ONLY
  3727. {
  3728. 0ULL,
  3729. 0xfffff80000000000ULL,
  3730. 0ULL,
  3731. 0ULL,
  3732. 0ULL
  3733. },
  3734. {
  3735. -1ULL,
  3736. 0x286a280000000000ULL,
  3737. -1ULL,
  3738. -1ULL,
  3739. -1ULL
  3740. }
  3741. #endif
  3742. },
  3743. { "flushwb", TILEGX_OPC_FLUSHWB, 0x2, 0, TREG_ZERO, 1,
  3744. { { 0, }, { }, { 0, }, { 0, }, { 0, } },
  3745. #ifndef DISASM_ONLY
  3746. {
  3747. 0ULL,
  3748. 0xfffff80000000000ULL,
  3749. 0ULL,
  3750. 0ULL,
  3751. 0ULL
  3752. },
  3753. {
  3754. -1ULL,
  3755. 0x286a200000000000ULL,
  3756. -1ULL,
  3757. -1ULL,
  3758. -1ULL
  3759. }
  3760. #endif
  3761. },
  3762. { "fnop", TILEGX_OPC_FNOP, 0xf, 0, TREG_ZERO, 1,
  3763. { { }, { }, { }, { }, { 0, } },
  3764. #ifndef DISASM_ONLY
  3765. {
  3766. 0xc00000007ffff000ULL,
  3767. 0xfffff80000000000ULL,
  3768. 0x00000000780ff000ULL,
  3769. 0x3c07f80000000000ULL,
  3770. 0ULL
  3771. },
  3772. {
  3773. 0x0000000051483000ULL,
  3774. 0x286a300000000000ULL,
  3775. 0x00000000300c3000ULL,
  3776. 0x1c06400000000000ULL,
  3777. -1ULL
  3778. }
  3779. #endif
  3780. },
  3781. { "fsingle_add1", TILEGX_OPC_FSINGLE_ADD1, 0x1, 3, TREG_ZERO, 1,
  3782. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3783. #ifndef DISASM_ONLY
  3784. {
  3785. 0xc00000007ffc0000ULL,
  3786. 0ULL,
  3787. 0ULL,
  3788. 0ULL,
  3789. 0ULL
  3790. },
  3791. {
  3792. 0x0000000050880000ULL,
  3793. -1ULL,
  3794. -1ULL,
  3795. -1ULL,
  3796. -1ULL
  3797. }
  3798. #endif
  3799. },
  3800. { "fsingle_addsub2", TILEGX_OPC_FSINGLE_ADDSUB2, 0x1, 3, TREG_ZERO, 1,
  3801. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3802. #ifndef DISASM_ONLY
  3803. {
  3804. 0xc00000007ffc0000ULL,
  3805. 0ULL,
  3806. 0ULL,
  3807. 0ULL,
  3808. 0ULL
  3809. },
  3810. {
  3811. 0x00000000508c0000ULL,
  3812. -1ULL,
  3813. -1ULL,
  3814. -1ULL,
  3815. -1ULL
  3816. }
  3817. #endif
  3818. },
  3819. { "fsingle_mul1", TILEGX_OPC_FSINGLE_MUL1, 0x1, 3, TREG_ZERO, 1,
  3820. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3821. #ifndef DISASM_ONLY
  3822. {
  3823. 0xc00000007ffc0000ULL,
  3824. 0ULL,
  3825. 0ULL,
  3826. 0ULL,
  3827. 0ULL
  3828. },
  3829. {
  3830. 0x0000000050900000ULL,
  3831. -1ULL,
  3832. -1ULL,
  3833. -1ULL,
  3834. -1ULL
  3835. }
  3836. #endif
  3837. },
  3838. { "fsingle_mul2", TILEGX_OPC_FSINGLE_MUL2, 0x1, 3, TREG_ZERO, 1,
  3839. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3840. #ifndef DISASM_ONLY
  3841. {
  3842. 0xc00000007ffc0000ULL,
  3843. 0ULL,
  3844. 0ULL,
  3845. 0ULL,
  3846. 0ULL
  3847. },
  3848. {
  3849. 0x0000000050940000ULL,
  3850. -1ULL,
  3851. -1ULL,
  3852. -1ULL,
  3853. -1ULL
  3854. }
  3855. #endif
  3856. },
  3857. { "fsingle_pack1", TILEGX_OPC_FSINGLE_PACK1, 0x5, 2, TREG_ZERO, 1,
  3858. { { 8, 9 }, { 0, }, { 10, 11 }, { 0, }, { 0, } },
  3859. #ifndef DISASM_ONLY
  3860. {
  3861. 0xc00000007ffff000ULL,
  3862. 0ULL,
  3863. 0x00000000780ff000ULL,
  3864. 0ULL,
  3865. 0ULL
  3866. },
  3867. {
  3868. 0x0000000051484000ULL,
  3869. -1ULL,
  3870. 0x00000000300c4000ULL,
  3871. -1ULL,
  3872. -1ULL
  3873. }
  3874. #endif
  3875. },
  3876. { "fsingle_pack2", TILEGX_OPC_FSINGLE_PACK2, 0x1, 3, TREG_ZERO, 1,
  3877. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3878. #ifndef DISASM_ONLY
  3879. {
  3880. 0xc00000007ffc0000ULL,
  3881. 0ULL,
  3882. 0ULL,
  3883. 0ULL,
  3884. 0ULL
  3885. },
  3886. {
  3887. 0x0000000050980000ULL,
  3888. -1ULL,
  3889. -1ULL,
  3890. -1ULL,
  3891. -1ULL
  3892. }
  3893. #endif
  3894. },
  3895. { "fsingle_sub1", TILEGX_OPC_FSINGLE_SUB1, 0x1, 3, TREG_ZERO, 1,
  3896. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  3897. #ifndef DISASM_ONLY
  3898. {
  3899. 0xc00000007ffc0000ULL,
  3900. 0ULL,
  3901. 0ULL,
  3902. 0ULL,
  3903. 0ULL
  3904. },
  3905. {
  3906. 0x00000000509c0000ULL,
  3907. -1ULL,
  3908. -1ULL,
  3909. -1ULL,
  3910. -1ULL
  3911. }
  3912. #endif
  3913. },
  3914. { "icoh", TILEGX_OPC_ICOH, 0x2, 1, TREG_ZERO, 1,
  3915. { { 0, }, { 7 }, { 0, }, { 0, }, { 0, } },
  3916. #ifndef DISASM_ONLY
  3917. {
  3918. 0ULL,
  3919. 0xfffff80000000000ULL,
  3920. 0ULL,
  3921. 0ULL,
  3922. 0ULL
  3923. },
  3924. {
  3925. -1ULL,
  3926. 0x286a380000000000ULL,
  3927. -1ULL,
  3928. -1ULL,
  3929. -1ULL
  3930. }
  3931. #endif
  3932. },
  3933. { "ill", TILEGX_OPC_ILL, 0xa, 0, TREG_ZERO, 1,
  3934. { { 0, }, { }, { 0, }, { }, { 0, } },
  3935. #ifndef DISASM_ONLY
  3936. {
  3937. 0ULL,
  3938. 0xfffff80000000000ULL,
  3939. 0ULL,
  3940. 0x3c07f80000000000ULL,
  3941. 0ULL
  3942. },
  3943. {
  3944. -1ULL,
  3945. 0x286a400000000000ULL,
  3946. -1ULL,
  3947. 0x1c06480000000000ULL,
  3948. -1ULL
  3949. }
  3950. #endif
  3951. },
  3952. { "inv", TILEGX_OPC_INV, 0x2, 1, TREG_ZERO, 1,
  3953. { { 0, }, { 7 }, { 0, }, { 0, }, { 0, } },
  3954. #ifndef DISASM_ONLY
  3955. {
  3956. 0ULL,
  3957. 0xfffff80000000000ULL,
  3958. 0ULL,
  3959. 0ULL,
  3960. 0ULL
  3961. },
  3962. {
  3963. -1ULL,
  3964. 0x286a480000000000ULL,
  3965. -1ULL,
  3966. -1ULL,
  3967. -1ULL
  3968. }
  3969. #endif
  3970. },
  3971. { "iret", TILEGX_OPC_IRET, 0x2, 0, TREG_ZERO, 1,
  3972. { { 0, }, { }, { 0, }, { 0, }, { 0, } },
  3973. #ifndef DISASM_ONLY
  3974. {
  3975. 0ULL,
  3976. 0xfffff80000000000ULL,
  3977. 0ULL,
  3978. 0ULL,
  3979. 0ULL
  3980. },
  3981. {
  3982. -1ULL,
  3983. 0x286a500000000000ULL,
  3984. -1ULL,
  3985. -1ULL,
  3986. -1ULL
  3987. }
  3988. #endif
  3989. },
  3990. { "j", TILEGX_OPC_J, 0x2, 1, TREG_ZERO, 1,
  3991. { { 0, }, { 25 }, { 0, }, { 0, }, { 0, } },
  3992. #ifndef DISASM_ONLY
  3993. {
  3994. 0ULL,
  3995. 0xfc00000000000000ULL,
  3996. 0ULL,
  3997. 0ULL,
  3998. 0ULL
  3999. },
  4000. {
  4001. -1ULL,
  4002. 0x2400000000000000ULL,
  4003. -1ULL,
  4004. -1ULL,
  4005. -1ULL
  4006. }
  4007. #endif
  4008. },
  4009. { "jal", TILEGX_OPC_JAL, 0x2, 1, TREG_LR, 1,
  4010. { { 0, }, { 25 }, { 0, }, { 0, }, { 0, } },
  4011. #ifndef DISASM_ONLY
  4012. {
  4013. 0ULL,
  4014. 0xfc00000000000000ULL,
  4015. 0ULL,
  4016. 0ULL,
  4017. 0ULL
  4018. },
  4019. {
  4020. -1ULL,
  4021. 0x2000000000000000ULL,
  4022. -1ULL,
  4023. -1ULL,
  4024. -1ULL
  4025. }
  4026. #endif
  4027. },
  4028. { "jalr", TILEGX_OPC_JALR, 0xa, 1, TREG_LR, 1,
  4029. { { 0, }, { 7 }, { 0, }, { 13 }, { 0, } },
  4030. #ifndef DISASM_ONLY
  4031. {
  4032. 0ULL,
  4033. 0xfffff80000000000ULL,
  4034. 0ULL,
  4035. 0x3c07f80000000000ULL,
  4036. 0ULL
  4037. },
  4038. {
  4039. -1ULL,
  4040. 0x286a600000000000ULL,
  4041. -1ULL,
  4042. 0x1c06580000000000ULL,
  4043. -1ULL
  4044. }
  4045. #endif
  4046. },
  4047. { "jalrp", TILEGX_OPC_JALRP, 0xa, 1, TREG_LR, 1,
  4048. { { 0, }, { 7 }, { 0, }, { 13 }, { 0, } },
  4049. #ifndef DISASM_ONLY
  4050. {
  4051. 0ULL,
  4052. 0xfffff80000000000ULL,
  4053. 0ULL,
  4054. 0x3c07f80000000000ULL,
  4055. 0ULL
  4056. },
  4057. {
  4058. -1ULL,
  4059. 0x286a580000000000ULL,
  4060. -1ULL,
  4061. 0x1c06500000000000ULL,
  4062. -1ULL
  4063. }
  4064. #endif
  4065. },
  4066. { "jr", TILEGX_OPC_JR, 0xa, 1, TREG_ZERO, 1,
  4067. { { 0, }, { 7 }, { 0, }, { 13 }, { 0, } },
  4068. #ifndef DISASM_ONLY
  4069. {
  4070. 0ULL,
  4071. 0xfffff80000000000ULL,
  4072. 0ULL,
  4073. 0x3c07f80000000000ULL,
  4074. 0ULL
  4075. },
  4076. {
  4077. -1ULL,
  4078. 0x286a700000000000ULL,
  4079. -1ULL,
  4080. 0x1c06680000000000ULL,
  4081. -1ULL
  4082. }
  4083. #endif
  4084. },
  4085. { "jrp", TILEGX_OPC_JRP, 0xa, 1, TREG_ZERO, 1,
  4086. { { 0, }, { 7 }, { 0, }, { 13 }, { 0, } },
  4087. #ifndef DISASM_ONLY
  4088. {
  4089. 0ULL,
  4090. 0xfffff80000000000ULL,
  4091. 0ULL,
  4092. 0x3c07f80000000000ULL,
  4093. 0ULL
  4094. },
  4095. {
  4096. -1ULL,
  4097. 0x286a680000000000ULL,
  4098. -1ULL,
  4099. 0x1c06600000000000ULL,
  4100. -1ULL
  4101. }
  4102. #endif
  4103. },
  4104. { "ld", TILEGX_OPC_LD, 0x12, 2, TREG_ZERO, 1,
  4105. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 26, 14 } },
  4106. #ifndef DISASM_ONLY
  4107. {
  4108. 0ULL,
  4109. 0xfffff80000000000ULL,
  4110. 0ULL,
  4111. 0ULL,
  4112. 0xc200000004000000ULL
  4113. },
  4114. {
  4115. -1ULL,
  4116. 0x286ae80000000000ULL,
  4117. -1ULL,
  4118. -1ULL,
  4119. 0x8200000004000000ULL
  4120. }
  4121. #endif
  4122. },
  4123. { "ld1s", TILEGX_OPC_LD1S, 0x12, 2, TREG_ZERO, 1,
  4124. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 26, 14 } },
  4125. #ifndef DISASM_ONLY
  4126. {
  4127. 0ULL,
  4128. 0xfffff80000000000ULL,
  4129. 0ULL,
  4130. 0ULL,
  4131. 0xc200000004000000ULL
  4132. },
  4133. {
  4134. -1ULL,
  4135. 0x286a780000000000ULL,
  4136. -1ULL,
  4137. -1ULL,
  4138. 0x4000000000000000ULL
  4139. }
  4140. #endif
  4141. },
  4142. { "ld1s_add", TILEGX_OPC_LD1S_ADD, 0x2, 3, TREG_ZERO, 1,
  4143. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4144. #ifndef DISASM_ONLY
  4145. {
  4146. 0ULL,
  4147. 0xfff8000000000000ULL,
  4148. 0ULL,
  4149. 0ULL,
  4150. 0ULL
  4151. },
  4152. {
  4153. -1ULL,
  4154. 0x1838000000000000ULL,
  4155. -1ULL,
  4156. -1ULL,
  4157. -1ULL
  4158. }
  4159. #endif
  4160. },
  4161. { "ld1u", TILEGX_OPC_LD1U, 0x12, 2, TREG_ZERO, 1,
  4162. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 26, 14 } },
  4163. #ifndef DISASM_ONLY
  4164. {
  4165. 0ULL,
  4166. 0xfffff80000000000ULL,
  4167. 0ULL,
  4168. 0ULL,
  4169. 0xc200000004000000ULL
  4170. },
  4171. {
  4172. -1ULL,
  4173. 0x286a800000000000ULL,
  4174. -1ULL,
  4175. -1ULL,
  4176. 0x4000000004000000ULL
  4177. }
  4178. #endif
  4179. },
  4180. { "ld1u_add", TILEGX_OPC_LD1U_ADD, 0x2, 3, TREG_ZERO, 1,
  4181. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4182. #ifndef DISASM_ONLY
  4183. {
  4184. 0ULL,
  4185. 0xfff8000000000000ULL,
  4186. 0ULL,
  4187. 0ULL,
  4188. 0ULL
  4189. },
  4190. {
  4191. -1ULL,
  4192. 0x1840000000000000ULL,
  4193. -1ULL,
  4194. -1ULL,
  4195. -1ULL
  4196. }
  4197. #endif
  4198. },
  4199. { "ld2s", TILEGX_OPC_LD2S, 0x12, 2, TREG_ZERO, 1,
  4200. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 26, 14 } },
  4201. #ifndef DISASM_ONLY
  4202. {
  4203. 0ULL,
  4204. 0xfffff80000000000ULL,
  4205. 0ULL,
  4206. 0ULL,
  4207. 0xc200000004000000ULL
  4208. },
  4209. {
  4210. -1ULL,
  4211. 0x286a880000000000ULL,
  4212. -1ULL,
  4213. -1ULL,
  4214. 0x4200000000000000ULL
  4215. }
  4216. #endif
  4217. },
  4218. { "ld2s_add", TILEGX_OPC_LD2S_ADD, 0x2, 3, TREG_ZERO, 1,
  4219. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4220. #ifndef DISASM_ONLY
  4221. {
  4222. 0ULL,
  4223. 0xfff8000000000000ULL,
  4224. 0ULL,
  4225. 0ULL,
  4226. 0ULL
  4227. },
  4228. {
  4229. -1ULL,
  4230. 0x1848000000000000ULL,
  4231. -1ULL,
  4232. -1ULL,
  4233. -1ULL
  4234. }
  4235. #endif
  4236. },
  4237. { "ld2u", TILEGX_OPC_LD2U, 0x12, 2, TREG_ZERO, 1,
  4238. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 26, 14 } },
  4239. #ifndef DISASM_ONLY
  4240. {
  4241. 0ULL,
  4242. 0xfffff80000000000ULL,
  4243. 0ULL,
  4244. 0ULL,
  4245. 0xc200000004000000ULL
  4246. },
  4247. {
  4248. -1ULL,
  4249. 0x286a900000000000ULL,
  4250. -1ULL,
  4251. -1ULL,
  4252. 0x4200000004000000ULL
  4253. }
  4254. #endif
  4255. },
  4256. { "ld2u_add", TILEGX_OPC_LD2U_ADD, 0x2, 3, TREG_ZERO, 1,
  4257. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4258. #ifndef DISASM_ONLY
  4259. {
  4260. 0ULL,
  4261. 0xfff8000000000000ULL,
  4262. 0ULL,
  4263. 0ULL,
  4264. 0ULL
  4265. },
  4266. {
  4267. -1ULL,
  4268. 0x1850000000000000ULL,
  4269. -1ULL,
  4270. -1ULL,
  4271. -1ULL
  4272. }
  4273. #endif
  4274. },
  4275. { "ld4s", TILEGX_OPC_LD4S, 0x12, 2, TREG_ZERO, 1,
  4276. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 26, 14 } },
  4277. #ifndef DISASM_ONLY
  4278. {
  4279. 0ULL,
  4280. 0xfffff80000000000ULL,
  4281. 0ULL,
  4282. 0ULL,
  4283. 0xc200000004000000ULL
  4284. },
  4285. {
  4286. -1ULL,
  4287. 0x286a980000000000ULL,
  4288. -1ULL,
  4289. -1ULL,
  4290. 0x8000000004000000ULL
  4291. }
  4292. #endif
  4293. },
  4294. { "ld4s_add", TILEGX_OPC_LD4S_ADD, 0x2, 3, TREG_ZERO, 1,
  4295. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4296. #ifndef DISASM_ONLY
  4297. {
  4298. 0ULL,
  4299. 0xfff8000000000000ULL,
  4300. 0ULL,
  4301. 0ULL,
  4302. 0ULL
  4303. },
  4304. {
  4305. -1ULL,
  4306. 0x1858000000000000ULL,
  4307. -1ULL,
  4308. -1ULL,
  4309. -1ULL
  4310. }
  4311. #endif
  4312. },
  4313. { "ld4u", TILEGX_OPC_LD4U, 0x12, 2, TREG_ZERO, 1,
  4314. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 26, 14 } },
  4315. #ifndef DISASM_ONLY
  4316. {
  4317. 0ULL,
  4318. 0xfffff80000000000ULL,
  4319. 0ULL,
  4320. 0ULL,
  4321. 0xc200000004000000ULL
  4322. },
  4323. {
  4324. -1ULL,
  4325. 0x286aa00000000000ULL,
  4326. -1ULL,
  4327. -1ULL,
  4328. 0x8200000000000000ULL
  4329. }
  4330. #endif
  4331. },
  4332. { "ld4u_add", TILEGX_OPC_LD4U_ADD, 0x2, 3, TREG_ZERO, 1,
  4333. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4334. #ifndef DISASM_ONLY
  4335. {
  4336. 0ULL,
  4337. 0xfff8000000000000ULL,
  4338. 0ULL,
  4339. 0ULL,
  4340. 0ULL
  4341. },
  4342. {
  4343. -1ULL,
  4344. 0x1860000000000000ULL,
  4345. -1ULL,
  4346. -1ULL,
  4347. -1ULL
  4348. }
  4349. #endif
  4350. },
  4351. { "ld_add", TILEGX_OPC_LD_ADD, 0x2, 3, TREG_ZERO, 1,
  4352. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4353. #ifndef DISASM_ONLY
  4354. {
  4355. 0ULL,
  4356. 0xfff8000000000000ULL,
  4357. 0ULL,
  4358. 0ULL,
  4359. 0ULL
  4360. },
  4361. {
  4362. -1ULL,
  4363. 0x18a0000000000000ULL,
  4364. -1ULL,
  4365. -1ULL,
  4366. -1ULL
  4367. }
  4368. #endif
  4369. },
  4370. { "ldna", TILEGX_OPC_LDNA, 0x2, 2, TREG_ZERO, 1,
  4371. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 0, } },
  4372. #ifndef DISASM_ONLY
  4373. {
  4374. 0ULL,
  4375. 0xfffff80000000000ULL,
  4376. 0ULL,
  4377. 0ULL,
  4378. 0ULL
  4379. },
  4380. {
  4381. -1ULL,
  4382. 0x286aa80000000000ULL,
  4383. -1ULL,
  4384. -1ULL,
  4385. -1ULL
  4386. }
  4387. #endif
  4388. },
  4389. { "ldna_add", TILEGX_OPC_LDNA_ADD, 0x2, 3, TREG_ZERO, 1,
  4390. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4391. #ifndef DISASM_ONLY
  4392. {
  4393. 0ULL,
  4394. 0xfff8000000000000ULL,
  4395. 0ULL,
  4396. 0ULL,
  4397. 0ULL
  4398. },
  4399. {
  4400. -1ULL,
  4401. 0x18a8000000000000ULL,
  4402. -1ULL,
  4403. -1ULL,
  4404. -1ULL
  4405. }
  4406. #endif
  4407. },
  4408. { "ldnt", TILEGX_OPC_LDNT, 0x2, 2, TREG_ZERO, 1,
  4409. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 0, } },
  4410. #ifndef DISASM_ONLY
  4411. {
  4412. 0ULL,
  4413. 0xfffff80000000000ULL,
  4414. 0ULL,
  4415. 0ULL,
  4416. 0ULL
  4417. },
  4418. {
  4419. -1ULL,
  4420. 0x286ae00000000000ULL,
  4421. -1ULL,
  4422. -1ULL,
  4423. -1ULL
  4424. }
  4425. #endif
  4426. },
  4427. { "ldnt1s", TILEGX_OPC_LDNT1S, 0x2, 2, TREG_ZERO, 1,
  4428. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 0, } },
  4429. #ifndef DISASM_ONLY
  4430. {
  4431. 0ULL,
  4432. 0xfffff80000000000ULL,
  4433. 0ULL,
  4434. 0ULL,
  4435. 0ULL
  4436. },
  4437. {
  4438. -1ULL,
  4439. 0x286ab00000000000ULL,
  4440. -1ULL,
  4441. -1ULL,
  4442. -1ULL
  4443. }
  4444. #endif
  4445. },
  4446. { "ldnt1s_add", TILEGX_OPC_LDNT1S_ADD, 0x2, 3, TREG_ZERO, 1,
  4447. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4448. #ifndef DISASM_ONLY
  4449. {
  4450. 0ULL,
  4451. 0xfff8000000000000ULL,
  4452. 0ULL,
  4453. 0ULL,
  4454. 0ULL
  4455. },
  4456. {
  4457. -1ULL,
  4458. 0x1868000000000000ULL,
  4459. -1ULL,
  4460. -1ULL,
  4461. -1ULL
  4462. }
  4463. #endif
  4464. },
  4465. { "ldnt1u", TILEGX_OPC_LDNT1U, 0x2, 2, TREG_ZERO, 1,
  4466. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 0, } },
  4467. #ifndef DISASM_ONLY
  4468. {
  4469. 0ULL,
  4470. 0xfffff80000000000ULL,
  4471. 0ULL,
  4472. 0ULL,
  4473. 0ULL
  4474. },
  4475. {
  4476. -1ULL,
  4477. 0x286ab80000000000ULL,
  4478. -1ULL,
  4479. -1ULL,
  4480. -1ULL
  4481. }
  4482. #endif
  4483. },
  4484. { "ldnt1u_add", TILEGX_OPC_LDNT1U_ADD, 0x2, 3, TREG_ZERO, 1,
  4485. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4486. #ifndef DISASM_ONLY
  4487. {
  4488. 0ULL,
  4489. 0xfff8000000000000ULL,
  4490. 0ULL,
  4491. 0ULL,
  4492. 0ULL
  4493. },
  4494. {
  4495. -1ULL,
  4496. 0x1870000000000000ULL,
  4497. -1ULL,
  4498. -1ULL,
  4499. -1ULL
  4500. }
  4501. #endif
  4502. },
  4503. { "ldnt2s", TILEGX_OPC_LDNT2S, 0x2, 2, TREG_ZERO, 1,
  4504. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 0, } },
  4505. #ifndef DISASM_ONLY
  4506. {
  4507. 0ULL,
  4508. 0xfffff80000000000ULL,
  4509. 0ULL,
  4510. 0ULL,
  4511. 0ULL
  4512. },
  4513. {
  4514. -1ULL,
  4515. 0x286ac00000000000ULL,
  4516. -1ULL,
  4517. -1ULL,
  4518. -1ULL
  4519. }
  4520. #endif
  4521. },
  4522. { "ldnt2s_add", TILEGX_OPC_LDNT2S_ADD, 0x2, 3, TREG_ZERO, 1,
  4523. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4524. #ifndef DISASM_ONLY
  4525. {
  4526. 0ULL,
  4527. 0xfff8000000000000ULL,
  4528. 0ULL,
  4529. 0ULL,
  4530. 0ULL
  4531. },
  4532. {
  4533. -1ULL,
  4534. 0x1878000000000000ULL,
  4535. -1ULL,
  4536. -1ULL,
  4537. -1ULL
  4538. }
  4539. #endif
  4540. },
  4541. { "ldnt2u", TILEGX_OPC_LDNT2U, 0x2, 2, TREG_ZERO, 1,
  4542. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 0, } },
  4543. #ifndef DISASM_ONLY
  4544. {
  4545. 0ULL,
  4546. 0xfffff80000000000ULL,
  4547. 0ULL,
  4548. 0ULL,
  4549. 0ULL
  4550. },
  4551. {
  4552. -1ULL,
  4553. 0x286ac80000000000ULL,
  4554. -1ULL,
  4555. -1ULL,
  4556. -1ULL
  4557. }
  4558. #endif
  4559. },
  4560. { "ldnt2u_add", TILEGX_OPC_LDNT2U_ADD, 0x2, 3, TREG_ZERO, 1,
  4561. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4562. #ifndef DISASM_ONLY
  4563. {
  4564. 0ULL,
  4565. 0xfff8000000000000ULL,
  4566. 0ULL,
  4567. 0ULL,
  4568. 0ULL
  4569. },
  4570. {
  4571. -1ULL,
  4572. 0x1880000000000000ULL,
  4573. -1ULL,
  4574. -1ULL,
  4575. -1ULL
  4576. }
  4577. #endif
  4578. },
  4579. { "ldnt4s", TILEGX_OPC_LDNT4S, 0x2, 2, TREG_ZERO, 1,
  4580. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 0, } },
  4581. #ifndef DISASM_ONLY
  4582. {
  4583. 0ULL,
  4584. 0xfffff80000000000ULL,
  4585. 0ULL,
  4586. 0ULL,
  4587. 0ULL
  4588. },
  4589. {
  4590. -1ULL,
  4591. 0x286ad00000000000ULL,
  4592. -1ULL,
  4593. -1ULL,
  4594. -1ULL
  4595. }
  4596. #endif
  4597. },
  4598. { "ldnt4s_add", TILEGX_OPC_LDNT4S_ADD, 0x2, 3, TREG_ZERO, 1,
  4599. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4600. #ifndef DISASM_ONLY
  4601. {
  4602. 0ULL,
  4603. 0xfff8000000000000ULL,
  4604. 0ULL,
  4605. 0ULL,
  4606. 0ULL
  4607. },
  4608. {
  4609. -1ULL,
  4610. 0x1888000000000000ULL,
  4611. -1ULL,
  4612. -1ULL,
  4613. -1ULL
  4614. }
  4615. #endif
  4616. },
  4617. { "ldnt4u", TILEGX_OPC_LDNT4U, 0x2, 2, TREG_ZERO, 1,
  4618. { { 0, }, { 6, 7 }, { 0, }, { 0, }, { 0, } },
  4619. #ifndef DISASM_ONLY
  4620. {
  4621. 0ULL,
  4622. 0xfffff80000000000ULL,
  4623. 0ULL,
  4624. 0ULL,
  4625. 0ULL
  4626. },
  4627. {
  4628. -1ULL,
  4629. 0x286ad80000000000ULL,
  4630. -1ULL,
  4631. -1ULL,
  4632. -1ULL
  4633. }
  4634. #endif
  4635. },
  4636. { "ldnt4u_add", TILEGX_OPC_LDNT4U_ADD, 0x2, 3, TREG_ZERO, 1,
  4637. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4638. #ifndef DISASM_ONLY
  4639. {
  4640. 0ULL,
  4641. 0xfff8000000000000ULL,
  4642. 0ULL,
  4643. 0ULL,
  4644. 0ULL
  4645. },
  4646. {
  4647. -1ULL,
  4648. 0x1890000000000000ULL,
  4649. -1ULL,
  4650. -1ULL,
  4651. -1ULL
  4652. }
  4653. #endif
  4654. },
  4655. { "ldnt_add", TILEGX_OPC_LDNT_ADD, 0x2, 3, TREG_ZERO, 1,
  4656. { { 0, }, { 6, 15, 1 }, { 0, }, { 0, }, { 0, } },
  4657. #ifndef DISASM_ONLY
  4658. {
  4659. 0ULL,
  4660. 0xfff8000000000000ULL,
  4661. 0ULL,
  4662. 0ULL,
  4663. 0ULL
  4664. },
  4665. {
  4666. -1ULL,
  4667. 0x1898000000000000ULL,
  4668. -1ULL,
  4669. -1ULL,
  4670. -1ULL
  4671. }
  4672. #endif
  4673. },
  4674. { "lnk", TILEGX_OPC_LNK, 0xa, 1, TREG_ZERO, 1,
  4675. { { 0, }, { 6 }, { 0, }, { 12 }, { 0, } },
  4676. #ifndef DISASM_ONLY
  4677. {
  4678. 0ULL,
  4679. 0xfffff80000000000ULL,
  4680. 0ULL,
  4681. 0x3c07f80000000000ULL,
  4682. 0ULL
  4683. },
  4684. {
  4685. -1ULL,
  4686. 0x286af00000000000ULL,
  4687. -1ULL,
  4688. 0x1c06700000000000ULL,
  4689. -1ULL
  4690. }
  4691. #endif
  4692. },
  4693. { "mf", TILEGX_OPC_MF, 0x2, 0, TREG_ZERO, 1,
  4694. { { 0, }, { }, { 0, }, { 0, }, { 0, } },
  4695. #ifndef DISASM_ONLY
  4696. {
  4697. 0ULL,
  4698. 0xfffff80000000000ULL,
  4699. 0ULL,
  4700. 0ULL,
  4701. 0ULL
  4702. },
  4703. {
  4704. -1ULL,
  4705. 0x286af80000000000ULL,
  4706. -1ULL,
  4707. -1ULL,
  4708. -1ULL
  4709. }
  4710. #endif
  4711. },
  4712. { "mfspr", TILEGX_OPC_MFSPR, 0x2, 2, TREG_ZERO, 1,
  4713. { { 0, }, { 6, 27 }, { 0, }, { 0, }, { 0, } },
  4714. #ifndef DISASM_ONLY
  4715. {
  4716. 0ULL,
  4717. 0xfff8000000000000ULL,
  4718. 0ULL,
  4719. 0ULL,
  4720. 0ULL
  4721. },
  4722. {
  4723. -1ULL,
  4724. 0x18b0000000000000ULL,
  4725. -1ULL,
  4726. -1ULL,
  4727. -1ULL
  4728. }
  4729. #endif
  4730. },
  4731. { "mm", TILEGX_OPC_MM, 0x1, 4, TREG_ZERO, 1,
  4732. { { 23, 9, 21, 22 }, { 0, }, { 0, }, { 0, }, { 0, } },
  4733. #ifndef DISASM_ONLY
  4734. {
  4735. 0xc00000007f000000ULL,
  4736. 0ULL,
  4737. 0ULL,
  4738. 0ULL,
  4739. 0ULL
  4740. },
  4741. {
  4742. 0x0000000037000000ULL,
  4743. -1ULL,
  4744. -1ULL,
  4745. -1ULL,
  4746. -1ULL
  4747. }
  4748. #endif
  4749. },
  4750. { "mnz", TILEGX_OPC_MNZ, 0xf, 3, TREG_ZERO, 1,
  4751. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  4752. #ifndef DISASM_ONLY
  4753. {
  4754. 0xc00000007ffc0000ULL,
  4755. 0xfffe000000000000ULL,
  4756. 0x00000000780c0000ULL,
  4757. 0x3c06000000000000ULL,
  4758. 0ULL
  4759. },
  4760. {
  4761. 0x0000000050a00000ULL,
  4762. 0x2834000000000000ULL,
  4763. 0x0000000048080000ULL,
  4764. 0x2804000000000000ULL,
  4765. -1ULL
  4766. }
  4767. #endif
  4768. },
  4769. { "mtspr", TILEGX_OPC_MTSPR, 0x2, 2, TREG_ZERO, 1,
  4770. { { 0, }, { 28, 7 }, { 0, }, { 0, }, { 0, } },
  4771. #ifndef DISASM_ONLY
  4772. {
  4773. 0ULL,
  4774. 0xfff8000000000000ULL,
  4775. 0ULL,
  4776. 0ULL,
  4777. 0ULL
  4778. },
  4779. {
  4780. -1ULL,
  4781. 0x18b8000000000000ULL,
  4782. -1ULL,
  4783. -1ULL,
  4784. -1ULL
  4785. }
  4786. #endif
  4787. },
  4788. { "mul_hs_hs", TILEGX_OPC_MUL_HS_HS, 0x5, 3, TREG_ZERO, 1,
  4789. { { 8, 9, 16 }, { 0, }, { 10, 11, 18 }, { 0, }, { 0, } },
  4790. #ifndef DISASM_ONLY
  4791. {
  4792. 0xc00000007ffc0000ULL,
  4793. 0ULL,
  4794. 0x00000000780c0000ULL,
  4795. 0ULL,
  4796. 0ULL
  4797. },
  4798. {
  4799. 0x0000000050d40000ULL,
  4800. -1ULL,
  4801. 0x0000000068000000ULL,
  4802. -1ULL,
  4803. -1ULL
  4804. }
  4805. #endif
  4806. },
  4807. { "mul_hs_hu", TILEGX_OPC_MUL_HS_HU, 0x1, 3, TREG_ZERO, 1,
  4808. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  4809. #ifndef DISASM_ONLY
  4810. {
  4811. 0xc00000007ffc0000ULL,
  4812. 0ULL,
  4813. 0ULL,
  4814. 0ULL,
  4815. 0ULL
  4816. },
  4817. {
  4818. 0x0000000050d80000ULL,
  4819. -1ULL,
  4820. -1ULL,
  4821. -1ULL,
  4822. -1ULL
  4823. }
  4824. #endif
  4825. },
  4826. { "mul_hs_ls", TILEGX_OPC_MUL_HS_LS, 0x1, 3, TREG_ZERO, 1,
  4827. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  4828. #ifndef DISASM_ONLY
  4829. {
  4830. 0xc00000007ffc0000ULL,
  4831. 0ULL,
  4832. 0ULL,
  4833. 0ULL,
  4834. 0ULL
  4835. },
  4836. {
  4837. 0x0000000050dc0000ULL,
  4838. -1ULL,
  4839. -1ULL,
  4840. -1ULL,
  4841. -1ULL
  4842. }
  4843. #endif
  4844. },
  4845. { "mul_hs_lu", TILEGX_OPC_MUL_HS_LU, 0x1, 3, TREG_ZERO, 1,
  4846. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  4847. #ifndef DISASM_ONLY
  4848. {
  4849. 0xc00000007ffc0000ULL,
  4850. 0ULL,
  4851. 0ULL,
  4852. 0ULL,
  4853. 0ULL
  4854. },
  4855. {
  4856. 0x0000000050e00000ULL,
  4857. -1ULL,
  4858. -1ULL,
  4859. -1ULL,
  4860. -1ULL
  4861. }
  4862. #endif
  4863. },
  4864. { "mul_hu_hu", TILEGX_OPC_MUL_HU_HU, 0x5, 3, TREG_ZERO, 1,
  4865. { { 8, 9, 16 }, { 0, }, { 10, 11, 18 }, { 0, }, { 0, } },
  4866. #ifndef DISASM_ONLY
  4867. {
  4868. 0xc00000007ffc0000ULL,
  4869. 0ULL,
  4870. 0x00000000780c0000ULL,
  4871. 0ULL,
  4872. 0ULL
  4873. },
  4874. {
  4875. 0x0000000050e40000ULL,
  4876. -1ULL,
  4877. 0x0000000068040000ULL,
  4878. -1ULL,
  4879. -1ULL
  4880. }
  4881. #endif
  4882. },
  4883. { "mul_hu_ls", TILEGX_OPC_MUL_HU_LS, 0x1, 3, TREG_ZERO, 1,
  4884. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  4885. #ifndef DISASM_ONLY
  4886. {
  4887. 0xc00000007ffc0000ULL,
  4888. 0ULL,
  4889. 0ULL,
  4890. 0ULL,
  4891. 0ULL
  4892. },
  4893. {
  4894. 0x0000000050e80000ULL,
  4895. -1ULL,
  4896. -1ULL,
  4897. -1ULL,
  4898. -1ULL
  4899. }
  4900. #endif
  4901. },
  4902. { "mul_hu_lu", TILEGX_OPC_MUL_HU_LU, 0x1, 3, TREG_ZERO, 1,
  4903. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  4904. #ifndef DISASM_ONLY
  4905. {
  4906. 0xc00000007ffc0000ULL,
  4907. 0ULL,
  4908. 0ULL,
  4909. 0ULL,
  4910. 0ULL
  4911. },
  4912. {
  4913. 0x0000000050ec0000ULL,
  4914. -1ULL,
  4915. -1ULL,
  4916. -1ULL,
  4917. -1ULL
  4918. }
  4919. #endif
  4920. },
  4921. { "mul_ls_ls", TILEGX_OPC_MUL_LS_LS, 0x5, 3, TREG_ZERO, 1,
  4922. { { 8, 9, 16 }, { 0, }, { 10, 11, 18 }, { 0, }, { 0, } },
  4923. #ifndef DISASM_ONLY
  4924. {
  4925. 0xc00000007ffc0000ULL,
  4926. 0ULL,
  4927. 0x00000000780c0000ULL,
  4928. 0ULL,
  4929. 0ULL
  4930. },
  4931. {
  4932. 0x0000000050f00000ULL,
  4933. -1ULL,
  4934. 0x0000000068080000ULL,
  4935. -1ULL,
  4936. -1ULL
  4937. }
  4938. #endif
  4939. },
  4940. { "mul_ls_lu", TILEGX_OPC_MUL_LS_LU, 0x1, 3, TREG_ZERO, 1,
  4941. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  4942. #ifndef DISASM_ONLY
  4943. {
  4944. 0xc00000007ffc0000ULL,
  4945. 0ULL,
  4946. 0ULL,
  4947. 0ULL,
  4948. 0ULL
  4949. },
  4950. {
  4951. 0x0000000050f40000ULL,
  4952. -1ULL,
  4953. -1ULL,
  4954. -1ULL,
  4955. -1ULL
  4956. }
  4957. #endif
  4958. },
  4959. { "mul_lu_lu", TILEGX_OPC_MUL_LU_LU, 0x5, 3, TREG_ZERO, 1,
  4960. { { 8, 9, 16 }, { 0, }, { 10, 11, 18 }, { 0, }, { 0, } },
  4961. #ifndef DISASM_ONLY
  4962. {
  4963. 0xc00000007ffc0000ULL,
  4964. 0ULL,
  4965. 0x00000000780c0000ULL,
  4966. 0ULL,
  4967. 0ULL
  4968. },
  4969. {
  4970. 0x0000000050f80000ULL,
  4971. -1ULL,
  4972. 0x00000000680c0000ULL,
  4973. -1ULL,
  4974. -1ULL
  4975. }
  4976. #endif
  4977. },
  4978. { "mula_hs_hs", TILEGX_OPC_MULA_HS_HS, 0x5, 3, TREG_ZERO, 1,
  4979. { { 23, 9, 16 }, { 0, }, { 24, 11, 18 }, { 0, }, { 0, } },
  4980. #ifndef DISASM_ONLY
  4981. {
  4982. 0xc00000007ffc0000ULL,
  4983. 0ULL,
  4984. 0x00000000780c0000ULL,
  4985. 0ULL,
  4986. 0ULL
  4987. },
  4988. {
  4989. 0x0000000050a80000ULL,
  4990. -1ULL,
  4991. 0x0000000070000000ULL,
  4992. -1ULL,
  4993. -1ULL
  4994. }
  4995. #endif
  4996. },
  4997. { "mula_hs_hu", TILEGX_OPC_MULA_HS_HU, 0x1, 3, TREG_ZERO, 1,
  4998. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  4999. #ifndef DISASM_ONLY
  5000. {
  5001. 0xc00000007ffc0000ULL,
  5002. 0ULL,
  5003. 0ULL,
  5004. 0ULL,
  5005. 0ULL
  5006. },
  5007. {
  5008. 0x0000000050ac0000ULL,
  5009. -1ULL,
  5010. -1ULL,
  5011. -1ULL,
  5012. -1ULL
  5013. }
  5014. #endif
  5015. },
  5016. { "mula_hs_ls", TILEGX_OPC_MULA_HS_LS, 0x1, 3, TREG_ZERO, 1,
  5017. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  5018. #ifndef DISASM_ONLY
  5019. {
  5020. 0xc00000007ffc0000ULL,
  5021. 0ULL,
  5022. 0ULL,
  5023. 0ULL,
  5024. 0ULL
  5025. },
  5026. {
  5027. 0x0000000050b00000ULL,
  5028. -1ULL,
  5029. -1ULL,
  5030. -1ULL,
  5031. -1ULL
  5032. }
  5033. #endif
  5034. },
  5035. { "mula_hs_lu", TILEGX_OPC_MULA_HS_LU, 0x1, 3, TREG_ZERO, 1,
  5036. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  5037. #ifndef DISASM_ONLY
  5038. {
  5039. 0xc00000007ffc0000ULL,
  5040. 0ULL,
  5041. 0ULL,
  5042. 0ULL,
  5043. 0ULL
  5044. },
  5045. {
  5046. 0x0000000050b40000ULL,
  5047. -1ULL,
  5048. -1ULL,
  5049. -1ULL,
  5050. -1ULL
  5051. }
  5052. #endif
  5053. },
  5054. { "mula_hu_hu", TILEGX_OPC_MULA_HU_HU, 0x5, 3, TREG_ZERO, 1,
  5055. { { 23, 9, 16 }, { 0, }, { 24, 11, 18 }, { 0, }, { 0, } },
  5056. #ifndef DISASM_ONLY
  5057. {
  5058. 0xc00000007ffc0000ULL,
  5059. 0ULL,
  5060. 0x00000000780c0000ULL,
  5061. 0ULL,
  5062. 0ULL
  5063. },
  5064. {
  5065. 0x0000000050b80000ULL,
  5066. -1ULL,
  5067. 0x0000000070040000ULL,
  5068. -1ULL,
  5069. -1ULL
  5070. }
  5071. #endif
  5072. },
  5073. { "mula_hu_ls", TILEGX_OPC_MULA_HU_LS, 0x1, 3, TREG_ZERO, 1,
  5074. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  5075. #ifndef DISASM_ONLY
  5076. {
  5077. 0xc00000007ffc0000ULL,
  5078. 0ULL,
  5079. 0ULL,
  5080. 0ULL,
  5081. 0ULL
  5082. },
  5083. {
  5084. 0x0000000050bc0000ULL,
  5085. -1ULL,
  5086. -1ULL,
  5087. -1ULL,
  5088. -1ULL
  5089. }
  5090. #endif
  5091. },
  5092. { "mula_hu_lu", TILEGX_OPC_MULA_HU_LU, 0x1, 3, TREG_ZERO, 1,
  5093. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  5094. #ifndef DISASM_ONLY
  5095. {
  5096. 0xc00000007ffc0000ULL,
  5097. 0ULL,
  5098. 0ULL,
  5099. 0ULL,
  5100. 0ULL
  5101. },
  5102. {
  5103. 0x0000000050c00000ULL,
  5104. -1ULL,
  5105. -1ULL,
  5106. -1ULL,
  5107. -1ULL
  5108. }
  5109. #endif
  5110. },
  5111. { "mula_ls_ls", TILEGX_OPC_MULA_LS_LS, 0x5, 3, TREG_ZERO, 1,
  5112. { { 23, 9, 16 }, { 0, }, { 24, 11, 18 }, { 0, }, { 0, } },
  5113. #ifndef DISASM_ONLY
  5114. {
  5115. 0xc00000007ffc0000ULL,
  5116. 0ULL,
  5117. 0x00000000780c0000ULL,
  5118. 0ULL,
  5119. 0ULL
  5120. },
  5121. {
  5122. 0x0000000050c40000ULL,
  5123. -1ULL,
  5124. 0x0000000070080000ULL,
  5125. -1ULL,
  5126. -1ULL
  5127. }
  5128. #endif
  5129. },
  5130. { "mula_ls_lu", TILEGX_OPC_MULA_LS_LU, 0x1, 3, TREG_ZERO, 1,
  5131. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  5132. #ifndef DISASM_ONLY
  5133. {
  5134. 0xc00000007ffc0000ULL,
  5135. 0ULL,
  5136. 0ULL,
  5137. 0ULL,
  5138. 0ULL
  5139. },
  5140. {
  5141. 0x0000000050c80000ULL,
  5142. -1ULL,
  5143. -1ULL,
  5144. -1ULL,
  5145. -1ULL
  5146. }
  5147. #endif
  5148. },
  5149. { "mula_lu_lu", TILEGX_OPC_MULA_LU_LU, 0x5, 3, TREG_ZERO, 1,
  5150. { { 23, 9, 16 }, { 0, }, { 24, 11, 18 }, { 0, }, { 0, } },
  5151. #ifndef DISASM_ONLY
  5152. {
  5153. 0xc00000007ffc0000ULL,
  5154. 0ULL,
  5155. 0x00000000780c0000ULL,
  5156. 0ULL,
  5157. 0ULL
  5158. },
  5159. {
  5160. 0x0000000050cc0000ULL,
  5161. -1ULL,
  5162. 0x00000000700c0000ULL,
  5163. -1ULL,
  5164. -1ULL
  5165. }
  5166. #endif
  5167. },
  5168. { "mulax", TILEGX_OPC_MULAX, 0x5, 3, TREG_ZERO, 1,
  5169. { { 23, 9, 16 }, { 0, }, { 24, 11, 18 }, { 0, }, { 0, } },
  5170. #ifndef DISASM_ONLY
  5171. {
  5172. 0xc00000007ffc0000ULL,
  5173. 0ULL,
  5174. 0x00000000780c0000ULL,
  5175. 0ULL,
  5176. 0ULL
  5177. },
  5178. {
  5179. 0x0000000050a40000ULL,
  5180. -1ULL,
  5181. 0x0000000040080000ULL,
  5182. -1ULL,
  5183. -1ULL
  5184. }
  5185. #endif
  5186. },
  5187. { "mulx", TILEGX_OPC_MULX, 0x5, 3, TREG_ZERO, 1,
  5188. { { 8, 9, 16 }, { 0, }, { 10, 11, 18 }, { 0, }, { 0, } },
  5189. #ifndef DISASM_ONLY
  5190. {
  5191. 0xc00000007ffc0000ULL,
  5192. 0ULL,
  5193. 0x00000000780c0000ULL,
  5194. 0ULL,
  5195. 0ULL
  5196. },
  5197. {
  5198. 0x0000000050d00000ULL,
  5199. -1ULL,
  5200. 0x00000000400c0000ULL,
  5201. -1ULL,
  5202. -1ULL
  5203. }
  5204. #endif
  5205. },
  5206. { "mz", TILEGX_OPC_MZ, 0xf, 3, TREG_ZERO, 1,
  5207. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5208. #ifndef DISASM_ONLY
  5209. {
  5210. 0xc00000007ffc0000ULL,
  5211. 0xfffe000000000000ULL,
  5212. 0x00000000780c0000ULL,
  5213. 0x3c06000000000000ULL,
  5214. 0ULL
  5215. },
  5216. {
  5217. 0x0000000050fc0000ULL,
  5218. 0x2836000000000000ULL,
  5219. 0x00000000480c0000ULL,
  5220. 0x2806000000000000ULL,
  5221. -1ULL
  5222. }
  5223. #endif
  5224. },
  5225. { "nap", TILEGX_OPC_NAP, 0x2, 0, TREG_ZERO, 0,
  5226. { { 0, }, { }, { 0, }, { 0, }, { 0, } },
  5227. #ifndef DISASM_ONLY
  5228. {
  5229. 0ULL,
  5230. 0xfffff80000000000ULL,
  5231. 0ULL,
  5232. 0ULL,
  5233. 0ULL
  5234. },
  5235. {
  5236. -1ULL,
  5237. 0x286b000000000000ULL,
  5238. -1ULL,
  5239. -1ULL,
  5240. -1ULL
  5241. }
  5242. #endif
  5243. },
  5244. { "nop", TILEGX_OPC_NOP, 0xf, 0, TREG_ZERO, 1,
  5245. { { }, { }, { }, { }, { 0, } },
  5246. #ifndef DISASM_ONLY
  5247. {
  5248. 0xc00000007ffff000ULL,
  5249. 0xfffff80000000000ULL,
  5250. 0x00000000780ff000ULL,
  5251. 0x3c07f80000000000ULL,
  5252. 0ULL
  5253. },
  5254. {
  5255. 0x0000000051485000ULL,
  5256. 0x286b080000000000ULL,
  5257. 0x00000000300c5000ULL,
  5258. 0x1c06780000000000ULL,
  5259. -1ULL
  5260. }
  5261. #endif
  5262. },
  5263. { "nor", TILEGX_OPC_NOR, 0xf, 3, TREG_ZERO, 1,
  5264. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5265. #ifndef DISASM_ONLY
  5266. {
  5267. 0xc00000007ffc0000ULL,
  5268. 0xfffe000000000000ULL,
  5269. 0x00000000780c0000ULL,
  5270. 0x3c06000000000000ULL,
  5271. 0ULL
  5272. },
  5273. {
  5274. 0x0000000051000000ULL,
  5275. 0x2838000000000000ULL,
  5276. 0x0000000050040000ULL,
  5277. 0x2c02000000000000ULL,
  5278. -1ULL
  5279. }
  5280. #endif
  5281. },
  5282. { "or", TILEGX_OPC_OR, 0xf, 3, TREG_ZERO, 1,
  5283. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5284. #ifndef DISASM_ONLY
  5285. {
  5286. 0xc00000007ffc0000ULL,
  5287. 0xfffe000000000000ULL,
  5288. 0x00000000780c0000ULL,
  5289. 0x3c06000000000000ULL,
  5290. 0ULL
  5291. },
  5292. {
  5293. 0x0000000051040000ULL,
  5294. 0x283a000000000000ULL,
  5295. 0x0000000050080000ULL,
  5296. 0x2c04000000000000ULL,
  5297. -1ULL
  5298. }
  5299. #endif
  5300. },
  5301. { "ori", TILEGX_OPC_ORI, 0x3, 3, TREG_ZERO, 1,
  5302. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  5303. #ifndef DISASM_ONLY
  5304. {
  5305. 0xc00000007ff00000ULL,
  5306. 0xfff8000000000000ULL,
  5307. 0ULL,
  5308. 0ULL,
  5309. 0ULL
  5310. },
  5311. {
  5312. 0x0000000040700000ULL,
  5313. 0x18c0000000000000ULL,
  5314. -1ULL,
  5315. -1ULL,
  5316. -1ULL
  5317. }
  5318. #endif
  5319. },
  5320. { "pcnt", TILEGX_OPC_PCNT, 0x5, 2, TREG_ZERO, 1,
  5321. { { 8, 9 }, { 0, }, { 10, 11 }, { 0, }, { 0, } },
  5322. #ifndef DISASM_ONLY
  5323. {
  5324. 0xc00000007ffff000ULL,
  5325. 0ULL,
  5326. 0x00000000780ff000ULL,
  5327. 0ULL,
  5328. 0ULL
  5329. },
  5330. {
  5331. 0x0000000051486000ULL,
  5332. -1ULL,
  5333. 0x00000000300c6000ULL,
  5334. -1ULL,
  5335. -1ULL
  5336. }
  5337. #endif
  5338. },
  5339. { "revbits", TILEGX_OPC_REVBITS, 0x5, 2, TREG_ZERO, 1,
  5340. { { 8, 9 }, { 0, }, { 10, 11 }, { 0, }, { 0, } },
  5341. #ifndef DISASM_ONLY
  5342. {
  5343. 0xc00000007ffff000ULL,
  5344. 0ULL,
  5345. 0x00000000780ff000ULL,
  5346. 0ULL,
  5347. 0ULL
  5348. },
  5349. {
  5350. 0x0000000051487000ULL,
  5351. -1ULL,
  5352. 0x00000000300c7000ULL,
  5353. -1ULL,
  5354. -1ULL
  5355. }
  5356. #endif
  5357. },
  5358. { "revbytes", TILEGX_OPC_REVBYTES, 0x5, 2, TREG_ZERO, 1,
  5359. { { 8, 9 }, { 0, }, { 10, 11 }, { 0, }, { 0, } },
  5360. #ifndef DISASM_ONLY
  5361. {
  5362. 0xc00000007ffff000ULL,
  5363. 0ULL,
  5364. 0x00000000780ff000ULL,
  5365. 0ULL,
  5366. 0ULL
  5367. },
  5368. {
  5369. 0x0000000051488000ULL,
  5370. -1ULL,
  5371. 0x00000000300c8000ULL,
  5372. -1ULL,
  5373. -1ULL
  5374. }
  5375. #endif
  5376. },
  5377. { "rotl", TILEGX_OPC_ROTL, 0xf, 3, TREG_ZERO, 1,
  5378. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5379. #ifndef DISASM_ONLY
  5380. {
  5381. 0xc00000007ffc0000ULL,
  5382. 0xfffe000000000000ULL,
  5383. 0x00000000780c0000ULL,
  5384. 0x3c06000000000000ULL,
  5385. 0ULL
  5386. },
  5387. {
  5388. 0x0000000051080000ULL,
  5389. 0x283c000000000000ULL,
  5390. 0x0000000058000000ULL,
  5391. 0x3000000000000000ULL,
  5392. -1ULL
  5393. }
  5394. #endif
  5395. },
  5396. { "rotli", TILEGX_OPC_ROTLI, 0xf, 3, TREG_ZERO, 1,
  5397. { { 8, 9, 29 }, { 6, 7, 30 }, { 10, 11, 31 }, { 12, 13, 32 }, { 0, } },
  5398. #ifndef DISASM_ONLY
  5399. {
  5400. 0xc00000007ffc0000ULL,
  5401. 0xfffe000000000000ULL,
  5402. 0x00000000780c0000ULL,
  5403. 0x3c06000000000000ULL,
  5404. 0ULL
  5405. },
  5406. {
  5407. 0x0000000060040000ULL,
  5408. 0x3002000000000000ULL,
  5409. 0x0000000078000000ULL,
  5410. 0x3800000000000000ULL,
  5411. -1ULL
  5412. }
  5413. #endif
  5414. },
  5415. { "shl", TILEGX_OPC_SHL, 0xf, 3, TREG_ZERO, 1,
  5416. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5417. #ifndef DISASM_ONLY
  5418. {
  5419. 0xc00000007ffc0000ULL,
  5420. 0xfffe000000000000ULL,
  5421. 0x00000000780c0000ULL,
  5422. 0x3c06000000000000ULL,
  5423. 0ULL
  5424. },
  5425. {
  5426. 0x0000000051280000ULL,
  5427. 0x284c000000000000ULL,
  5428. 0x0000000058040000ULL,
  5429. 0x3002000000000000ULL,
  5430. -1ULL
  5431. }
  5432. #endif
  5433. },
  5434. { "shl16insli", TILEGX_OPC_SHL16INSLI, 0x3, 3, TREG_ZERO, 1,
  5435. { { 8, 9, 4 }, { 6, 7, 5 }, { 0, }, { 0, }, { 0, } },
  5436. #ifndef DISASM_ONLY
  5437. {
  5438. 0xc000000070000000ULL,
  5439. 0xf800000000000000ULL,
  5440. 0ULL,
  5441. 0ULL,
  5442. 0ULL
  5443. },
  5444. {
  5445. 0x0000000070000000ULL,
  5446. 0x3800000000000000ULL,
  5447. -1ULL,
  5448. -1ULL,
  5449. -1ULL
  5450. }
  5451. #endif
  5452. },
  5453. { "shl1add", TILEGX_OPC_SHL1ADD, 0xf, 3, TREG_ZERO, 1,
  5454. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5455. #ifndef DISASM_ONLY
  5456. {
  5457. 0xc00000007ffc0000ULL,
  5458. 0xfffe000000000000ULL,
  5459. 0x00000000780c0000ULL,
  5460. 0x3c06000000000000ULL,
  5461. 0ULL
  5462. },
  5463. {
  5464. 0x0000000051100000ULL,
  5465. 0x2840000000000000ULL,
  5466. 0x0000000030000000ULL,
  5467. 0x1c00000000000000ULL,
  5468. -1ULL
  5469. }
  5470. #endif
  5471. },
  5472. { "shl1addx", TILEGX_OPC_SHL1ADDX, 0xf, 3, TREG_ZERO, 1,
  5473. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5474. #ifndef DISASM_ONLY
  5475. {
  5476. 0xc00000007ffc0000ULL,
  5477. 0xfffe000000000000ULL,
  5478. 0x00000000780c0000ULL,
  5479. 0x3c06000000000000ULL,
  5480. 0ULL
  5481. },
  5482. {
  5483. 0x00000000510c0000ULL,
  5484. 0x283e000000000000ULL,
  5485. 0x0000000060040000ULL,
  5486. 0x3402000000000000ULL,
  5487. -1ULL
  5488. }
  5489. #endif
  5490. },
  5491. { "shl2add", TILEGX_OPC_SHL2ADD, 0xf, 3, TREG_ZERO, 1,
  5492. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5493. #ifndef DISASM_ONLY
  5494. {
  5495. 0xc00000007ffc0000ULL,
  5496. 0xfffe000000000000ULL,
  5497. 0x00000000780c0000ULL,
  5498. 0x3c06000000000000ULL,
  5499. 0ULL
  5500. },
  5501. {
  5502. 0x0000000051180000ULL,
  5503. 0x2844000000000000ULL,
  5504. 0x0000000030040000ULL,
  5505. 0x1c02000000000000ULL,
  5506. -1ULL
  5507. }
  5508. #endif
  5509. },
  5510. { "shl2addx", TILEGX_OPC_SHL2ADDX, 0xf, 3, TREG_ZERO, 1,
  5511. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5512. #ifndef DISASM_ONLY
  5513. {
  5514. 0xc00000007ffc0000ULL,
  5515. 0xfffe000000000000ULL,
  5516. 0x00000000780c0000ULL,
  5517. 0x3c06000000000000ULL,
  5518. 0ULL
  5519. },
  5520. {
  5521. 0x0000000051140000ULL,
  5522. 0x2842000000000000ULL,
  5523. 0x0000000060080000ULL,
  5524. 0x3404000000000000ULL,
  5525. -1ULL
  5526. }
  5527. #endif
  5528. },
  5529. { "shl3add", TILEGX_OPC_SHL3ADD, 0xf, 3, TREG_ZERO, 1,
  5530. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5531. #ifndef DISASM_ONLY
  5532. {
  5533. 0xc00000007ffc0000ULL,
  5534. 0xfffe000000000000ULL,
  5535. 0x00000000780c0000ULL,
  5536. 0x3c06000000000000ULL,
  5537. 0ULL
  5538. },
  5539. {
  5540. 0x0000000051200000ULL,
  5541. 0x2848000000000000ULL,
  5542. 0x0000000030080000ULL,
  5543. 0x1c04000000000000ULL,
  5544. -1ULL
  5545. }
  5546. #endif
  5547. },
  5548. { "shl3addx", TILEGX_OPC_SHL3ADDX, 0xf, 3, TREG_ZERO, 1,
  5549. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5550. #ifndef DISASM_ONLY
  5551. {
  5552. 0xc00000007ffc0000ULL,
  5553. 0xfffe000000000000ULL,
  5554. 0x00000000780c0000ULL,
  5555. 0x3c06000000000000ULL,
  5556. 0ULL
  5557. },
  5558. {
  5559. 0x00000000511c0000ULL,
  5560. 0x2846000000000000ULL,
  5561. 0x00000000600c0000ULL,
  5562. 0x3406000000000000ULL,
  5563. -1ULL
  5564. }
  5565. #endif
  5566. },
  5567. { "shli", TILEGX_OPC_SHLI, 0xf, 3, TREG_ZERO, 1,
  5568. { { 8, 9, 29 }, { 6, 7, 30 }, { 10, 11, 31 }, { 12, 13, 32 }, { 0, } },
  5569. #ifndef DISASM_ONLY
  5570. {
  5571. 0xc00000007ffc0000ULL,
  5572. 0xfffe000000000000ULL,
  5573. 0x00000000780c0000ULL,
  5574. 0x3c06000000000000ULL,
  5575. 0ULL
  5576. },
  5577. {
  5578. 0x0000000060080000ULL,
  5579. 0x3004000000000000ULL,
  5580. 0x0000000078040000ULL,
  5581. 0x3802000000000000ULL,
  5582. -1ULL
  5583. }
  5584. #endif
  5585. },
  5586. { "shlx", TILEGX_OPC_SHLX, 0x3, 3, TREG_ZERO, 1,
  5587. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  5588. #ifndef DISASM_ONLY
  5589. {
  5590. 0xc00000007ffc0000ULL,
  5591. 0xfffe000000000000ULL,
  5592. 0ULL,
  5593. 0ULL,
  5594. 0ULL
  5595. },
  5596. {
  5597. 0x0000000051240000ULL,
  5598. 0x284a000000000000ULL,
  5599. -1ULL,
  5600. -1ULL,
  5601. -1ULL
  5602. }
  5603. #endif
  5604. },
  5605. { "shlxi", TILEGX_OPC_SHLXI, 0x3, 3, TREG_ZERO, 1,
  5606. { { 8, 9, 29 }, { 6, 7, 30 }, { 0, }, { 0, }, { 0, } },
  5607. #ifndef DISASM_ONLY
  5608. {
  5609. 0xc00000007ffc0000ULL,
  5610. 0xfffe000000000000ULL,
  5611. 0ULL,
  5612. 0ULL,
  5613. 0ULL
  5614. },
  5615. {
  5616. 0x00000000600c0000ULL,
  5617. 0x3006000000000000ULL,
  5618. -1ULL,
  5619. -1ULL,
  5620. -1ULL
  5621. }
  5622. #endif
  5623. },
  5624. { "shrs", TILEGX_OPC_SHRS, 0xf, 3, TREG_ZERO, 1,
  5625. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5626. #ifndef DISASM_ONLY
  5627. {
  5628. 0xc00000007ffc0000ULL,
  5629. 0xfffe000000000000ULL,
  5630. 0x00000000780c0000ULL,
  5631. 0x3c06000000000000ULL,
  5632. 0ULL
  5633. },
  5634. {
  5635. 0x00000000512c0000ULL,
  5636. 0x284e000000000000ULL,
  5637. 0x0000000058080000ULL,
  5638. 0x3004000000000000ULL,
  5639. -1ULL
  5640. }
  5641. #endif
  5642. },
  5643. { "shrsi", TILEGX_OPC_SHRSI, 0xf, 3, TREG_ZERO, 1,
  5644. { { 8, 9, 29 }, { 6, 7, 30 }, { 10, 11, 31 }, { 12, 13, 32 }, { 0, } },
  5645. #ifndef DISASM_ONLY
  5646. {
  5647. 0xc00000007ffc0000ULL,
  5648. 0xfffe000000000000ULL,
  5649. 0x00000000780c0000ULL,
  5650. 0x3c06000000000000ULL,
  5651. 0ULL
  5652. },
  5653. {
  5654. 0x0000000060100000ULL,
  5655. 0x3008000000000000ULL,
  5656. 0x0000000078080000ULL,
  5657. 0x3804000000000000ULL,
  5658. -1ULL
  5659. }
  5660. #endif
  5661. },
  5662. { "shru", TILEGX_OPC_SHRU, 0xf, 3, TREG_ZERO, 1,
  5663. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  5664. #ifndef DISASM_ONLY
  5665. {
  5666. 0xc00000007ffc0000ULL,
  5667. 0xfffe000000000000ULL,
  5668. 0x00000000780c0000ULL,
  5669. 0x3c06000000000000ULL,
  5670. 0ULL
  5671. },
  5672. {
  5673. 0x0000000051340000ULL,
  5674. 0x2852000000000000ULL,
  5675. 0x00000000580c0000ULL,
  5676. 0x3006000000000000ULL,
  5677. -1ULL
  5678. }
  5679. #endif
  5680. },
  5681. { "shrui", TILEGX_OPC_SHRUI, 0xf, 3, TREG_ZERO, 1,
  5682. { { 8, 9, 29 }, { 6, 7, 30 }, { 10, 11, 31 }, { 12, 13, 32 }, { 0, } },
  5683. #ifndef DISASM_ONLY
  5684. {
  5685. 0xc00000007ffc0000ULL,
  5686. 0xfffe000000000000ULL,
  5687. 0x00000000780c0000ULL,
  5688. 0x3c06000000000000ULL,
  5689. 0ULL
  5690. },
  5691. {
  5692. 0x0000000060140000ULL,
  5693. 0x300a000000000000ULL,
  5694. 0x00000000780c0000ULL,
  5695. 0x3806000000000000ULL,
  5696. -1ULL
  5697. }
  5698. #endif
  5699. },
  5700. { "shrux", TILEGX_OPC_SHRUX, 0x3, 3, TREG_ZERO, 1,
  5701. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  5702. #ifndef DISASM_ONLY
  5703. {
  5704. 0xc00000007ffc0000ULL,
  5705. 0xfffe000000000000ULL,
  5706. 0ULL,
  5707. 0ULL,
  5708. 0ULL
  5709. },
  5710. {
  5711. 0x0000000051300000ULL,
  5712. 0x2850000000000000ULL,
  5713. -1ULL,
  5714. -1ULL,
  5715. -1ULL
  5716. }
  5717. #endif
  5718. },
  5719. { "shruxi", TILEGX_OPC_SHRUXI, 0x3, 3, TREG_ZERO, 1,
  5720. { { 8, 9, 29 }, { 6, 7, 30 }, { 0, }, { 0, }, { 0, } },
  5721. #ifndef DISASM_ONLY
  5722. {
  5723. 0xc00000007ffc0000ULL,
  5724. 0xfffe000000000000ULL,
  5725. 0ULL,
  5726. 0ULL,
  5727. 0ULL
  5728. },
  5729. {
  5730. 0x0000000060180000ULL,
  5731. 0x300c000000000000ULL,
  5732. -1ULL,
  5733. -1ULL,
  5734. -1ULL
  5735. }
  5736. #endif
  5737. },
  5738. { "shufflebytes", TILEGX_OPC_SHUFFLEBYTES, 0x1, 3, TREG_ZERO, 1,
  5739. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  5740. #ifndef DISASM_ONLY
  5741. {
  5742. 0xc00000007ffc0000ULL,
  5743. 0ULL,
  5744. 0ULL,
  5745. 0ULL,
  5746. 0ULL
  5747. },
  5748. {
  5749. 0x0000000051380000ULL,
  5750. -1ULL,
  5751. -1ULL,
  5752. -1ULL,
  5753. -1ULL
  5754. }
  5755. #endif
  5756. },
  5757. { "st", TILEGX_OPC_ST, 0x12, 2, TREG_ZERO, 1,
  5758. { { 0, }, { 7, 17 }, { 0, }, { 0, }, { 14, 33 } },
  5759. #ifndef DISASM_ONLY
  5760. {
  5761. 0ULL,
  5762. 0xfffe000000000000ULL,
  5763. 0ULL,
  5764. 0ULL,
  5765. 0xc200000004000000ULL
  5766. },
  5767. {
  5768. -1ULL,
  5769. 0x2862000000000000ULL,
  5770. -1ULL,
  5771. -1ULL,
  5772. 0xc200000004000000ULL
  5773. }
  5774. #endif
  5775. },
  5776. { "st1", TILEGX_OPC_ST1, 0x12, 2, TREG_ZERO, 1,
  5777. { { 0, }, { 7, 17 }, { 0, }, { 0, }, { 14, 33 } },
  5778. #ifndef DISASM_ONLY
  5779. {
  5780. 0ULL,
  5781. 0xfffe000000000000ULL,
  5782. 0ULL,
  5783. 0ULL,
  5784. 0xc200000004000000ULL
  5785. },
  5786. {
  5787. -1ULL,
  5788. 0x2854000000000000ULL,
  5789. -1ULL,
  5790. -1ULL,
  5791. 0xc000000000000000ULL
  5792. }
  5793. #endif
  5794. },
  5795. { "st1_add", TILEGX_OPC_ST1_ADD, 0x2, 3, TREG_ZERO, 1,
  5796. { { 0, }, { 15, 17, 34 }, { 0, }, { 0, }, { 0, } },
  5797. #ifndef DISASM_ONLY
  5798. {
  5799. 0ULL,
  5800. 0xfff8000000000000ULL,
  5801. 0ULL,
  5802. 0ULL,
  5803. 0ULL
  5804. },
  5805. {
  5806. -1ULL,
  5807. 0x18c8000000000000ULL,
  5808. -1ULL,
  5809. -1ULL,
  5810. -1ULL
  5811. }
  5812. #endif
  5813. },
  5814. { "st2", TILEGX_OPC_ST2, 0x12, 2, TREG_ZERO, 1,
  5815. { { 0, }, { 7, 17 }, { 0, }, { 0, }, { 14, 33 } },
  5816. #ifndef DISASM_ONLY
  5817. {
  5818. 0ULL,
  5819. 0xfffe000000000000ULL,
  5820. 0ULL,
  5821. 0ULL,
  5822. 0xc200000004000000ULL
  5823. },
  5824. {
  5825. -1ULL,
  5826. 0x2856000000000000ULL,
  5827. -1ULL,
  5828. -1ULL,
  5829. 0xc000000004000000ULL
  5830. }
  5831. #endif
  5832. },
  5833. { "st2_add", TILEGX_OPC_ST2_ADD, 0x2, 3, TREG_ZERO, 1,
  5834. { { 0, }, { 15, 17, 34 }, { 0, }, { 0, }, { 0, } },
  5835. #ifndef DISASM_ONLY
  5836. {
  5837. 0ULL,
  5838. 0xfff8000000000000ULL,
  5839. 0ULL,
  5840. 0ULL,
  5841. 0ULL
  5842. },
  5843. {
  5844. -1ULL,
  5845. 0x18d0000000000000ULL,
  5846. -1ULL,
  5847. -1ULL,
  5848. -1ULL
  5849. }
  5850. #endif
  5851. },
  5852. { "st4", TILEGX_OPC_ST4, 0x12, 2, TREG_ZERO, 1,
  5853. { { 0, }, { 7, 17 }, { 0, }, { 0, }, { 14, 33 } },
  5854. #ifndef DISASM_ONLY
  5855. {
  5856. 0ULL,
  5857. 0xfffe000000000000ULL,
  5858. 0ULL,
  5859. 0ULL,
  5860. 0xc200000004000000ULL
  5861. },
  5862. {
  5863. -1ULL,
  5864. 0x2858000000000000ULL,
  5865. -1ULL,
  5866. -1ULL,
  5867. 0xc200000000000000ULL
  5868. }
  5869. #endif
  5870. },
  5871. { "st4_add", TILEGX_OPC_ST4_ADD, 0x2, 3, TREG_ZERO, 1,
  5872. { { 0, }, { 15, 17, 34 }, { 0, }, { 0, }, { 0, } },
  5873. #ifndef DISASM_ONLY
  5874. {
  5875. 0ULL,
  5876. 0xfff8000000000000ULL,
  5877. 0ULL,
  5878. 0ULL,
  5879. 0ULL
  5880. },
  5881. {
  5882. -1ULL,
  5883. 0x18d8000000000000ULL,
  5884. -1ULL,
  5885. -1ULL,
  5886. -1ULL
  5887. }
  5888. #endif
  5889. },
  5890. { "st_add", TILEGX_OPC_ST_ADD, 0x2, 3, TREG_ZERO, 1,
  5891. { { 0, }, { 15, 17, 34 }, { 0, }, { 0, }, { 0, } },
  5892. #ifndef DISASM_ONLY
  5893. {
  5894. 0ULL,
  5895. 0xfff8000000000000ULL,
  5896. 0ULL,
  5897. 0ULL,
  5898. 0ULL
  5899. },
  5900. {
  5901. -1ULL,
  5902. 0x1900000000000000ULL,
  5903. -1ULL,
  5904. -1ULL,
  5905. -1ULL
  5906. }
  5907. #endif
  5908. },
  5909. { "stnt", TILEGX_OPC_STNT, 0x2, 2, TREG_ZERO, 1,
  5910. { { 0, }, { 7, 17 }, { 0, }, { 0, }, { 0, } },
  5911. #ifndef DISASM_ONLY
  5912. {
  5913. 0ULL,
  5914. 0xfffe000000000000ULL,
  5915. 0ULL,
  5916. 0ULL,
  5917. 0ULL
  5918. },
  5919. {
  5920. -1ULL,
  5921. 0x2860000000000000ULL,
  5922. -1ULL,
  5923. -1ULL,
  5924. -1ULL
  5925. }
  5926. #endif
  5927. },
  5928. { "stnt1", TILEGX_OPC_STNT1, 0x2, 2, TREG_ZERO, 1,
  5929. { { 0, }, { 7, 17 }, { 0, }, { 0, }, { 0, } },
  5930. #ifndef DISASM_ONLY
  5931. {
  5932. 0ULL,
  5933. 0xfffe000000000000ULL,
  5934. 0ULL,
  5935. 0ULL,
  5936. 0ULL
  5937. },
  5938. {
  5939. -1ULL,
  5940. 0x285a000000000000ULL,
  5941. -1ULL,
  5942. -1ULL,
  5943. -1ULL
  5944. }
  5945. #endif
  5946. },
  5947. { "stnt1_add", TILEGX_OPC_STNT1_ADD, 0x2, 3, TREG_ZERO, 1,
  5948. { { 0, }, { 15, 17, 34 }, { 0, }, { 0, }, { 0, } },
  5949. #ifndef DISASM_ONLY
  5950. {
  5951. 0ULL,
  5952. 0xfff8000000000000ULL,
  5953. 0ULL,
  5954. 0ULL,
  5955. 0ULL
  5956. },
  5957. {
  5958. -1ULL,
  5959. 0x18e0000000000000ULL,
  5960. -1ULL,
  5961. -1ULL,
  5962. -1ULL
  5963. }
  5964. #endif
  5965. },
  5966. { "stnt2", TILEGX_OPC_STNT2, 0x2, 2, TREG_ZERO, 1,
  5967. { { 0, }, { 7, 17 }, { 0, }, { 0, }, { 0, } },
  5968. #ifndef DISASM_ONLY
  5969. {
  5970. 0ULL,
  5971. 0xfffe000000000000ULL,
  5972. 0ULL,
  5973. 0ULL,
  5974. 0ULL
  5975. },
  5976. {
  5977. -1ULL,
  5978. 0x285c000000000000ULL,
  5979. -1ULL,
  5980. -1ULL,
  5981. -1ULL
  5982. }
  5983. #endif
  5984. },
  5985. { "stnt2_add", TILEGX_OPC_STNT2_ADD, 0x2, 3, TREG_ZERO, 1,
  5986. { { 0, }, { 15, 17, 34 }, { 0, }, { 0, }, { 0, } },
  5987. #ifndef DISASM_ONLY
  5988. {
  5989. 0ULL,
  5990. 0xfff8000000000000ULL,
  5991. 0ULL,
  5992. 0ULL,
  5993. 0ULL
  5994. },
  5995. {
  5996. -1ULL,
  5997. 0x18e8000000000000ULL,
  5998. -1ULL,
  5999. -1ULL,
  6000. -1ULL
  6001. }
  6002. #endif
  6003. },
  6004. { "stnt4", TILEGX_OPC_STNT4, 0x2, 2, TREG_ZERO, 1,
  6005. { { 0, }, { 7, 17 }, { 0, }, { 0, }, { 0, } },
  6006. #ifndef DISASM_ONLY
  6007. {
  6008. 0ULL,
  6009. 0xfffe000000000000ULL,
  6010. 0ULL,
  6011. 0ULL,
  6012. 0ULL
  6013. },
  6014. {
  6015. -1ULL,
  6016. 0x285e000000000000ULL,
  6017. -1ULL,
  6018. -1ULL,
  6019. -1ULL
  6020. }
  6021. #endif
  6022. },
  6023. { "stnt4_add", TILEGX_OPC_STNT4_ADD, 0x2, 3, TREG_ZERO, 1,
  6024. { { 0, }, { 15, 17, 34 }, { 0, }, { 0, }, { 0, } },
  6025. #ifndef DISASM_ONLY
  6026. {
  6027. 0ULL,
  6028. 0xfff8000000000000ULL,
  6029. 0ULL,
  6030. 0ULL,
  6031. 0ULL
  6032. },
  6033. {
  6034. -1ULL,
  6035. 0x18f0000000000000ULL,
  6036. -1ULL,
  6037. -1ULL,
  6038. -1ULL
  6039. }
  6040. #endif
  6041. },
  6042. { "stnt_add", TILEGX_OPC_STNT_ADD, 0x2, 3, TREG_ZERO, 1,
  6043. { { 0, }, { 15, 17, 34 }, { 0, }, { 0, }, { 0, } },
  6044. #ifndef DISASM_ONLY
  6045. {
  6046. 0ULL,
  6047. 0xfff8000000000000ULL,
  6048. 0ULL,
  6049. 0ULL,
  6050. 0ULL
  6051. },
  6052. {
  6053. -1ULL,
  6054. 0x18f8000000000000ULL,
  6055. -1ULL,
  6056. -1ULL,
  6057. -1ULL
  6058. }
  6059. #endif
  6060. },
  6061. { "sub", TILEGX_OPC_SUB, 0xf, 3, TREG_ZERO, 1,
  6062. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  6063. #ifndef DISASM_ONLY
  6064. {
  6065. 0xc00000007ffc0000ULL,
  6066. 0xfffe000000000000ULL,
  6067. 0x00000000780c0000ULL,
  6068. 0x3c06000000000000ULL,
  6069. 0ULL
  6070. },
  6071. {
  6072. 0x0000000051440000ULL,
  6073. 0x2868000000000000ULL,
  6074. 0x00000000280c0000ULL,
  6075. 0x1806000000000000ULL,
  6076. -1ULL
  6077. }
  6078. #endif
  6079. },
  6080. { "subx", TILEGX_OPC_SUBX, 0xf, 3, TREG_ZERO, 1,
  6081. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  6082. #ifndef DISASM_ONLY
  6083. {
  6084. 0xc00000007ffc0000ULL,
  6085. 0xfffe000000000000ULL,
  6086. 0x00000000780c0000ULL,
  6087. 0x3c06000000000000ULL,
  6088. 0ULL
  6089. },
  6090. {
  6091. 0x0000000051400000ULL,
  6092. 0x2866000000000000ULL,
  6093. 0x0000000028080000ULL,
  6094. 0x1804000000000000ULL,
  6095. -1ULL
  6096. }
  6097. #endif
  6098. },
  6099. { "subxsc", TILEGX_OPC_SUBXSC, 0x3, 3, TREG_ZERO, 1,
  6100. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6101. #ifndef DISASM_ONLY
  6102. {
  6103. 0xc00000007ffc0000ULL,
  6104. 0xfffe000000000000ULL,
  6105. 0ULL,
  6106. 0ULL,
  6107. 0ULL
  6108. },
  6109. {
  6110. 0x00000000513c0000ULL,
  6111. 0x2864000000000000ULL,
  6112. -1ULL,
  6113. -1ULL,
  6114. -1ULL
  6115. }
  6116. #endif
  6117. },
  6118. { "swint0", TILEGX_OPC_SWINT0, 0x2, 0, TREG_ZERO, 0,
  6119. { { 0, }, { }, { 0, }, { 0, }, { 0, } },
  6120. #ifndef DISASM_ONLY
  6121. {
  6122. 0ULL,
  6123. 0xfffff80000000000ULL,
  6124. 0ULL,
  6125. 0ULL,
  6126. 0ULL
  6127. },
  6128. {
  6129. -1ULL,
  6130. 0x286b100000000000ULL,
  6131. -1ULL,
  6132. -1ULL,
  6133. -1ULL
  6134. }
  6135. #endif
  6136. },
  6137. { "swint1", TILEGX_OPC_SWINT1, 0x2, 0, TREG_ZERO, 0,
  6138. { { 0, }, { }, { 0, }, { 0, }, { 0, } },
  6139. #ifndef DISASM_ONLY
  6140. {
  6141. 0ULL,
  6142. 0xfffff80000000000ULL,
  6143. 0ULL,
  6144. 0ULL,
  6145. 0ULL
  6146. },
  6147. {
  6148. -1ULL,
  6149. 0x286b180000000000ULL,
  6150. -1ULL,
  6151. -1ULL,
  6152. -1ULL
  6153. }
  6154. #endif
  6155. },
  6156. { "swint2", TILEGX_OPC_SWINT2, 0x2, 0, TREG_ZERO, 0,
  6157. { { 0, }, { }, { 0, }, { 0, }, { 0, } },
  6158. #ifndef DISASM_ONLY
  6159. {
  6160. 0ULL,
  6161. 0xfffff80000000000ULL,
  6162. 0ULL,
  6163. 0ULL,
  6164. 0ULL
  6165. },
  6166. {
  6167. -1ULL,
  6168. 0x286b200000000000ULL,
  6169. -1ULL,
  6170. -1ULL,
  6171. -1ULL
  6172. }
  6173. #endif
  6174. },
  6175. { "swint3", TILEGX_OPC_SWINT3, 0x2, 0, TREG_ZERO, 0,
  6176. { { 0, }, { }, { 0, }, { 0, }, { 0, } },
  6177. #ifndef DISASM_ONLY
  6178. {
  6179. 0ULL,
  6180. 0xfffff80000000000ULL,
  6181. 0ULL,
  6182. 0ULL,
  6183. 0ULL
  6184. },
  6185. {
  6186. -1ULL,
  6187. 0x286b280000000000ULL,
  6188. -1ULL,
  6189. -1ULL,
  6190. -1ULL
  6191. }
  6192. #endif
  6193. },
  6194. { "tblidxb0", TILEGX_OPC_TBLIDXB0, 0x5, 2, TREG_ZERO, 1,
  6195. { { 23, 9 }, { 0, }, { 24, 11 }, { 0, }, { 0, } },
  6196. #ifndef DISASM_ONLY
  6197. {
  6198. 0xc00000007ffff000ULL,
  6199. 0ULL,
  6200. 0x00000000780ff000ULL,
  6201. 0ULL,
  6202. 0ULL
  6203. },
  6204. {
  6205. 0x0000000051489000ULL,
  6206. -1ULL,
  6207. 0x00000000300c9000ULL,
  6208. -1ULL,
  6209. -1ULL
  6210. }
  6211. #endif
  6212. },
  6213. { "tblidxb1", TILEGX_OPC_TBLIDXB1, 0x5, 2, TREG_ZERO, 1,
  6214. { { 23, 9 }, { 0, }, { 24, 11 }, { 0, }, { 0, } },
  6215. #ifndef DISASM_ONLY
  6216. {
  6217. 0xc00000007ffff000ULL,
  6218. 0ULL,
  6219. 0x00000000780ff000ULL,
  6220. 0ULL,
  6221. 0ULL
  6222. },
  6223. {
  6224. 0x000000005148a000ULL,
  6225. -1ULL,
  6226. 0x00000000300ca000ULL,
  6227. -1ULL,
  6228. -1ULL
  6229. }
  6230. #endif
  6231. },
  6232. { "tblidxb2", TILEGX_OPC_TBLIDXB2, 0x5, 2, TREG_ZERO, 1,
  6233. { { 23, 9 }, { 0, }, { 24, 11 }, { 0, }, { 0, } },
  6234. #ifndef DISASM_ONLY
  6235. {
  6236. 0xc00000007ffff000ULL,
  6237. 0ULL,
  6238. 0x00000000780ff000ULL,
  6239. 0ULL,
  6240. 0ULL
  6241. },
  6242. {
  6243. 0x000000005148b000ULL,
  6244. -1ULL,
  6245. 0x00000000300cb000ULL,
  6246. -1ULL,
  6247. -1ULL
  6248. }
  6249. #endif
  6250. },
  6251. { "tblidxb3", TILEGX_OPC_TBLIDXB3, 0x5, 2, TREG_ZERO, 1,
  6252. { { 23, 9 }, { 0, }, { 24, 11 }, { 0, }, { 0, } },
  6253. #ifndef DISASM_ONLY
  6254. {
  6255. 0xc00000007ffff000ULL,
  6256. 0ULL,
  6257. 0x00000000780ff000ULL,
  6258. 0ULL,
  6259. 0ULL
  6260. },
  6261. {
  6262. 0x000000005148c000ULL,
  6263. -1ULL,
  6264. 0x00000000300cc000ULL,
  6265. -1ULL,
  6266. -1ULL
  6267. }
  6268. #endif
  6269. },
  6270. { "v1add", TILEGX_OPC_V1ADD, 0x3, 3, TREG_ZERO, 1,
  6271. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6272. #ifndef DISASM_ONLY
  6273. {
  6274. 0xc00000007ffc0000ULL,
  6275. 0xfffe000000000000ULL,
  6276. 0ULL,
  6277. 0ULL,
  6278. 0ULL
  6279. },
  6280. {
  6281. 0x0000000051500000ULL,
  6282. 0x286e000000000000ULL,
  6283. -1ULL,
  6284. -1ULL,
  6285. -1ULL
  6286. }
  6287. #endif
  6288. },
  6289. { "v1addi", TILEGX_OPC_V1ADDI, 0x3, 3, TREG_ZERO, 1,
  6290. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  6291. #ifndef DISASM_ONLY
  6292. {
  6293. 0xc00000007ff00000ULL,
  6294. 0xfff8000000000000ULL,
  6295. 0ULL,
  6296. 0ULL,
  6297. 0ULL
  6298. },
  6299. {
  6300. 0x0000000040800000ULL,
  6301. 0x1908000000000000ULL,
  6302. -1ULL,
  6303. -1ULL,
  6304. -1ULL
  6305. }
  6306. #endif
  6307. },
  6308. { "v1adduc", TILEGX_OPC_V1ADDUC, 0x3, 3, TREG_ZERO, 1,
  6309. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6310. #ifndef DISASM_ONLY
  6311. {
  6312. 0xc00000007ffc0000ULL,
  6313. 0xfffe000000000000ULL,
  6314. 0ULL,
  6315. 0ULL,
  6316. 0ULL
  6317. },
  6318. {
  6319. 0x00000000514c0000ULL,
  6320. 0x286c000000000000ULL,
  6321. -1ULL,
  6322. -1ULL,
  6323. -1ULL
  6324. }
  6325. #endif
  6326. },
  6327. { "v1adiffu", TILEGX_OPC_V1ADIFFU, 0x1, 3, TREG_ZERO, 1,
  6328. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6329. #ifndef DISASM_ONLY
  6330. {
  6331. 0xc00000007ffc0000ULL,
  6332. 0ULL,
  6333. 0ULL,
  6334. 0ULL,
  6335. 0ULL
  6336. },
  6337. {
  6338. 0x0000000051540000ULL,
  6339. -1ULL,
  6340. -1ULL,
  6341. -1ULL,
  6342. -1ULL
  6343. }
  6344. #endif
  6345. },
  6346. { "v1avgu", TILEGX_OPC_V1AVGU, 0x1, 3, TREG_ZERO, 1,
  6347. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6348. #ifndef DISASM_ONLY
  6349. {
  6350. 0xc00000007ffc0000ULL,
  6351. 0ULL,
  6352. 0ULL,
  6353. 0ULL,
  6354. 0ULL
  6355. },
  6356. {
  6357. 0x0000000051580000ULL,
  6358. -1ULL,
  6359. -1ULL,
  6360. -1ULL,
  6361. -1ULL
  6362. }
  6363. #endif
  6364. },
  6365. { "v1cmpeq", TILEGX_OPC_V1CMPEQ, 0x3, 3, TREG_ZERO, 1,
  6366. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6367. #ifndef DISASM_ONLY
  6368. {
  6369. 0xc00000007ffc0000ULL,
  6370. 0xfffe000000000000ULL,
  6371. 0ULL,
  6372. 0ULL,
  6373. 0ULL
  6374. },
  6375. {
  6376. 0x00000000515c0000ULL,
  6377. 0x2870000000000000ULL,
  6378. -1ULL,
  6379. -1ULL,
  6380. -1ULL
  6381. }
  6382. #endif
  6383. },
  6384. { "v1cmpeqi", TILEGX_OPC_V1CMPEQI, 0x3, 3, TREG_ZERO, 1,
  6385. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  6386. #ifndef DISASM_ONLY
  6387. {
  6388. 0xc00000007ff00000ULL,
  6389. 0xfff8000000000000ULL,
  6390. 0ULL,
  6391. 0ULL,
  6392. 0ULL
  6393. },
  6394. {
  6395. 0x0000000040900000ULL,
  6396. 0x1910000000000000ULL,
  6397. -1ULL,
  6398. -1ULL,
  6399. -1ULL
  6400. }
  6401. #endif
  6402. },
  6403. { "v1cmples", TILEGX_OPC_V1CMPLES, 0x3, 3, TREG_ZERO, 1,
  6404. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6405. #ifndef DISASM_ONLY
  6406. {
  6407. 0xc00000007ffc0000ULL,
  6408. 0xfffe000000000000ULL,
  6409. 0ULL,
  6410. 0ULL,
  6411. 0ULL
  6412. },
  6413. {
  6414. 0x0000000051600000ULL,
  6415. 0x2872000000000000ULL,
  6416. -1ULL,
  6417. -1ULL,
  6418. -1ULL
  6419. }
  6420. #endif
  6421. },
  6422. { "v1cmpleu", TILEGX_OPC_V1CMPLEU, 0x3, 3, TREG_ZERO, 1,
  6423. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6424. #ifndef DISASM_ONLY
  6425. {
  6426. 0xc00000007ffc0000ULL,
  6427. 0xfffe000000000000ULL,
  6428. 0ULL,
  6429. 0ULL,
  6430. 0ULL
  6431. },
  6432. {
  6433. 0x0000000051640000ULL,
  6434. 0x2874000000000000ULL,
  6435. -1ULL,
  6436. -1ULL,
  6437. -1ULL
  6438. }
  6439. #endif
  6440. },
  6441. { "v1cmplts", TILEGX_OPC_V1CMPLTS, 0x3, 3, TREG_ZERO, 1,
  6442. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6443. #ifndef DISASM_ONLY
  6444. {
  6445. 0xc00000007ffc0000ULL,
  6446. 0xfffe000000000000ULL,
  6447. 0ULL,
  6448. 0ULL,
  6449. 0ULL
  6450. },
  6451. {
  6452. 0x0000000051680000ULL,
  6453. 0x2876000000000000ULL,
  6454. -1ULL,
  6455. -1ULL,
  6456. -1ULL
  6457. }
  6458. #endif
  6459. },
  6460. { "v1cmpltsi", TILEGX_OPC_V1CMPLTSI, 0x3, 3, TREG_ZERO, 1,
  6461. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  6462. #ifndef DISASM_ONLY
  6463. {
  6464. 0xc00000007ff00000ULL,
  6465. 0xfff8000000000000ULL,
  6466. 0ULL,
  6467. 0ULL,
  6468. 0ULL
  6469. },
  6470. {
  6471. 0x0000000040a00000ULL,
  6472. 0x1918000000000000ULL,
  6473. -1ULL,
  6474. -1ULL,
  6475. -1ULL
  6476. }
  6477. #endif
  6478. },
  6479. { "v1cmpltu", TILEGX_OPC_V1CMPLTU, 0x3, 3, TREG_ZERO, 1,
  6480. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6481. #ifndef DISASM_ONLY
  6482. {
  6483. 0xc00000007ffc0000ULL,
  6484. 0xfffe000000000000ULL,
  6485. 0ULL,
  6486. 0ULL,
  6487. 0ULL
  6488. },
  6489. {
  6490. 0x00000000516c0000ULL,
  6491. 0x2878000000000000ULL,
  6492. -1ULL,
  6493. -1ULL,
  6494. -1ULL
  6495. }
  6496. #endif
  6497. },
  6498. { "v1cmpltui", TILEGX_OPC_V1CMPLTUI, 0x3, 3, TREG_ZERO, 1,
  6499. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  6500. #ifndef DISASM_ONLY
  6501. {
  6502. 0xc00000007ff00000ULL,
  6503. 0xfff8000000000000ULL,
  6504. 0ULL,
  6505. 0ULL,
  6506. 0ULL
  6507. },
  6508. {
  6509. 0x0000000040b00000ULL,
  6510. 0x1920000000000000ULL,
  6511. -1ULL,
  6512. -1ULL,
  6513. -1ULL
  6514. }
  6515. #endif
  6516. },
  6517. { "v1cmpne", TILEGX_OPC_V1CMPNE, 0x3, 3, TREG_ZERO, 1,
  6518. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6519. #ifndef DISASM_ONLY
  6520. {
  6521. 0xc00000007ffc0000ULL,
  6522. 0xfffe000000000000ULL,
  6523. 0ULL,
  6524. 0ULL,
  6525. 0ULL
  6526. },
  6527. {
  6528. 0x0000000051700000ULL,
  6529. 0x287a000000000000ULL,
  6530. -1ULL,
  6531. -1ULL,
  6532. -1ULL
  6533. }
  6534. #endif
  6535. },
  6536. { "v1ddotpu", TILEGX_OPC_V1DDOTPU, 0x1, 3, TREG_ZERO, 1,
  6537. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6538. #ifndef DISASM_ONLY
  6539. {
  6540. 0xc00000007ffc0000ULL,
  6541. 0ULL,
  6542. 0ULL,
  6543. 0ULL,
  6544. 0ULL
  6545. },
  6546. {
  6547. 0x0000000052880000ULL,
  6548. -1ULL,
  6549. -1ULL,
  6550. -1ULL,
  6551. -1ULL
  6552. }
  6553. #endif
  6554. },
  6555. { "v1ddotpua", TILEGX_OPC_V1DDOTPUA, 0x1, 3, TREG_ZERO, 1,
  6556. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6557. #ifndef DISASM_ONLY
  6558. {
  6559. 0xc00000007ffc0000ULL,
  6560. 0ULL,
  6561. 0ULL,
  6562. 0ULL,
  6563. 0ULL
  6564. },
  6565. {
  6566. 0x0000000052840000ULL,
  6567. -1ULL,
  6568. -1ULL,
  6569. -1ULL,
  6570. -1ULL
  6571. }
  6572. #endif
  6573. },
  6574. { "v1ddotpus", TILEGX_OPC_V1DDOTPUS, 0x1, 3, TREG_ZERO, 1,
  6575. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6576. #ifndef DISASM_ONLY
  6577. {
  6578. 0xc00000007ffc0000ULL,
  6579. 0ULL,
  6580. 0ULL,
  6581. 0ULL,
  6582. 0ULL
  6583. },
  6584. {
  6585. 0x0000000051780000ULL,
  6586. -1ULL,
  6587. -1ULL,
  6588. -1ULL,
  6589. -1ULL
  6590. }
  6591. #endif
  6592. },
  6593. { "v1ddotpusa", TILEGX_OPC_V1DDOTPUSA, 0x1, 3, TREG_ZERO, 1,
  6594. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6595. #ifndef DISASM_ONLY
  6596. {
  6597. 0xc00000007ffc0000ULL,
  6598. 0ULL,
  6599. 0ULL,
  6600. 0ULL,
  6601. 0ULL
  6602. },
  6603. {
  6604. 0x0000000051740000ULL,
  6605. -1ULL,
  6606. -1ULL,
  6607. -1ULL,
  6608. -1ULL
  6609. }
  6610. #endif
  6611. },
  6612. { "v1dotp", TILEGX_OPC_V1DOTP, 0x1, 3, TREG_ZERO, 1,
  6613. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6614. #ifndef DISASM_ONLY
  6615. {
  6616. 0xc00000007ffc0000ULL,
  6617. 0ULL,
  6618. 0ULL,
  6619. 0ULL,
  6620. 0ULL
  6621. },
  6622. {
  6623. 0x0000000051880000ULL,
  6624. -1ULL,
  6625. -1ULL,
  6626. -1ULL,
  6627. -1ULL
  6628. }
  6629. #endif
  6630. },
  6631. { "v1dotpa", TILEGX_OPC_V1DOTPA, 0x1, 3, TREG_ZERO, 1,
  6632. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6633. #ifndef DISASM_ONLY
  6634. {
  6635. 0xc00000007ffc0000ULL,
  6636. 0ULL,
  6637. 0ULL,
  6638. 0ULL,
  6639. 0ULL
  6640. },
  6641. {
  6642. 0x00000000517c0000ULL,
  6643. -1ULL,
  6644. -1ULL,
  6645. -1ULL,
  6646. -1ULL
  6647. }
  6648. #endif
  6649. },
  6650. { "v1dotpu", TILEGX_OPC_V1DOTPU, 0x1, 3, TREG_ZERO, 1,
  6651. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6652. #ifndef DISASM_ONLY
  6653. {
  6654. 0xc00000007ffc0000ULL,
  6655. 0ULL,
  6656. 0ULL,
  6657. 0ULL,
  6658. 0ULL
  6659. },
  6660. {
  6661. 0x0000000052900000ULL,
  6662. -1ULL,
  6663. -1ULL,
  6664. -1ULL,
  6665. -1ULL
  6666. }
  6667. #endif
  6668. },
  6669. { "v1dotpua", TILEGX_OPC_V1DOTPUA, 0x1, 3, TREG_ZERO, 1,
  6670. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6671. #ifndef DISASM_ONLY
  6672. {
  6673. 0xc00000007ffc0000ULL,
  6674. 0ULL,
  6675. 0ULL,
  6676. 0ULL,
  6677. 0ULL
  6678. },
  6679. {
  6680. 0x00000000528c0000ULL,
  6681. -1ULL,
  6682. -1ULL,
  6683. -1ULL,
  6684. -1ULL
  6685. }
  6686. #endif
  6687. },
  6688. { "v1dotpus", TILEGX_OPC_V1DOTPUS, 0x1, 3, TREG_ZERO, 1,
  6689. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6690. #ifndef DISASM_ONLY
  6691. {
  6692. 0xc00000007ffc0000ULL,
  6693. 0ULL,
  6694. 0ULL,
  6695. 0ULL,
  6696. 0ULL
  6697. },
  6698. {
  6699. 0x0000000051840000ULL,
  6700. -1ULL,
  6701. -1ULL,
  6702. -1ULL,
  6703. -1ULL
  6704. }
  6705. #endif
  6706. },
  6707. { "v1dotpusa", TILEGX_OPC_V1DOTPUSA, 0x1, 3, TREG_ZERO, 1,
  6708. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6709. #ifndef DISASM_ONLY
  6710. {
  6711. 0xc00000007ffc0000ULL,
  6712. 0ULL,
  6713. 0ULL,
  6714. 0ULL,
  6715. 0ULL
  6716. },
  6717. {
  6718. 0x0000000051800000ULL,
  6719. -1ULL,
  6720. -1ULL,
  6721. -1ULL,
  6722. -1ULL
  6723. }
  6724. #endif
  6725. },
  6726. { "v1int_h", TILEGX_OPC_V1INT_H, 0x3, 3, TREG_ZERO, 1,
  6727. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6728. #ifndef DISASM_ONLY
  6729. {
  6730. 0xc00000007ffc0000ULL,
  6731. 0xfffe000000000000ULL,
  6732. 0ULL,
  6733. 0ULL,
  6734. 0ULL
  6735. },
  6736. {
  6737. 0x00000000518c0000ULL,
  6738. 0x287c000000000000ULL,
  6739. -1ULL,
  6740. -1ULL,
  6741. -1ULL
  6742. }
  6743. #endif
  6744. },
  6745. { "v1int_l", TILEGX_OPC_V1INT_L, 0x3, 3, TREG_ZERO, 1,
  6746. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6747. #ifndef DISASM_ONLY
  6748. {
  6749. 0xc00000007ffc0000ULL,
  6750. 0xfffe000000000000ULL,
  6751. 0ULL,
  6752. 0ULL,
  6753. 0ULL
  6754. },
  6755. {
  6756. 0x0000000051900000ULL,
  6757. 0x287e000000000000ULL,
  6758. -1ULL,
  6759. -1ULL,
  6760. -1ULL
  6761. }
  6762. #endif
  6763. },
  6764. { "v1maxu", TILEGX_OPC_V1MAXU, 0x3, 3, TREG_ZERO, 1,
  6765. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6766. #ifndef DISASM_ONLY
  6767. {
  6768. 0xc00000007ffc0000ULL,
  6769. 0xfffe000000000000ULL,
  6770. 0ULL,
  6771. 0ULL,
  6772. 0ULL
  6773. },
  6774. {
  6775. 0x0000000051940000ULL,
  6776. 0x2880000000000000ULL,
  6777. -1ULL,
  6778. -1ULL,
  6779. -1ULL
  6780. }
  6781. #endif
  6782. },
  6783. { "v1maxui", TILEGX_OPC_V1MAXUI, 0x3, 3, TREG_ZERO, 1,
  6784. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  6785. #ifndef DISASM_ONLY
  6786. {
  6787. 0xc00000007ff00000ULL,
  6788. 0xfff8000000000000ULL,
  6789. 0ULL,
  6790. 0ULL,
  6791. 0ULL
  6792. },
  6793. {
  6794. 0x0000000040c00000ULL,
  6795. 0x1928000000000000ULL,
  6796. -1ULL,
  6797. -1ULL,
  6798. -1ULL
  6799. }
  6800. #endif
  6801. },
  6802. { "v1minu", TILEGX_OPC_V1MINU, 0x3, 3, TREG_ZERO, 1,
  6803. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6804. #ifndef DISASM_ONLY
  6805. {
  6806. 0xc00000007ffc0000ULL,
  6807. 0xfffe000000000000ULL,
  6808. 0ULL,
  6809. 0ULL,
  6810. 0ULL
  6811. },
  6812. {
  6813. 0x0000000051980000ULL,
  6814. 0x2882000000000000ULL,
  6815. -1ULL,
  6816. -1ULL,
  6817. -1ULL
  6818. }
  6819. #endif
  6820. },
  6821. { "v1minui", TILEGX_OPC_V1MINUI, 0x3, 3, TREG_ZERO, 1,
  6822. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  6823. #ifndef DISASM_ONLY
  6824. {
  6825. 0xc00000007ff00000ULL,
  6826. 0xfff8000000000000ULL,
  6827. 0ULL,
  6828. 0ULL,
  6829. 0ULL
  6830. },
  6831. {
  6832. 0x0000000040d00000ULL,
  6833. 0x1930000000000000ULL,
  6834. -1ULL,
  6835. -1ULL,
  6836. -1ULL
  6837. }
  6838. #endif
  6839. },
  6840. { "v1mnz", TILEGX_OPC_V1MNZ, 0x3, 3, TREG_ZERO, 1,
  6841. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6842. #ifndef DISASM_ONLY
  6843. {
  6844. 0xc00000007ffc0000ULL,
  6845. 0xfffe000000000000ULL,
  6846. 0ULL,
  6847. 0ULL,
  6848. 0ULL
  6849. },
  6850. {
  6851. 0x00000000519c0000ULL,
  6852. 0x2884000000000000ULL,
  6853. -1ULL,
  6854. -1ULL,
  6855. -1ULL
  6856. }
  6857. #endif
  6858. },
  6859. { "v1multu", TILEGX_OPC_V1MULTU, 0x1, 3, TREG_ZERO, 1,
  6860. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6861. #ifndef DISASM_ONLY
  6862. {
  6863. 0xc00000007ffc0000ULL,
  6864. 0ULL,
  6865. 0ULL,
  6866. 0ULL,
  6867. 0ULL
  6868. },
  6869. {
  6870. 0x0000000051a00000ULL,
  6871. -1ULL,
  6872. -1ULL,
  6873. -1ULL,
  6874. -1ULL
  6875. }
  6876. #endif
  6877. },
  6878. { "v1mulu", TILEGX_OPC_V1MULU, 0x1, 3, TREG_ZERO, 1,
  6879. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6880. #ifndef DISASM_ONLY
  6881. {
  6882. 0xc00000007ffc0000ULL,
  6883. 0ULL,
  6884. 0ULL,
  6885. 0ULL,
  6886. 0ULL
  6887. },
  6888. {
  6889. 0x0000000051a80000ULL,
  6890. -1ULL,
  6891. -1ULL,
  6892. -1ULL,
  6893. -1ULL
  6894. }
  6895. #endif
  6896. },
  6897. { "v1mulus", TILEGX_OPC_V1MULUS, 0x1, 3, TREG_ZERO, 1,
  6898. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6899. #ifndef DISASM_ONLY
  6900. {
  6901. 0xc00000007ffc0000ULL,
  6902. 0ULL,
  6903. 0ULL,
  6904. 0ULL,
  6905. 0ULL
  6906. },
  6907. {
  6908. 0x0000000051a40000ULL,
  6909. -1ULL,
  6910. -1ULL,
  6911. -1ULL,
  6912. -1ULL
  6913. }
  6914. #endif
  6915. },
  6916. { "v1mz", TILEGX_OPC_V1MZ, 0x3, 3, TREG_ZERO, 1,
  6917. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6918. #ifndef DISASM_ONLY
  6919. {
  6920. 0xc00000007ffc0000ULL,
  6921. 0xfffe000000000000ULL,
  6922. 0ULL,
  6923. 0ULL,
  6924. 0ULL
  6925. },
  6926. {
  6927. 0x0000000051ac0000ULL,
  6928. 0x2886000000000000ULL,
  6929. -1ULL,
  6930. -1ULL,
  6931. -1ULL
  6932. }
  6933. #endif
  6934. },
  6935. { "v1sadau", TILEGX_OPC_V1SADAU, 0x1, 3, TREG_ZERO, 1,
  6936. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6937. #ifndef DISASM_ONLY
  6938. {
  6939. 0xc00000007ffc0000ULL,
  6940. 0ULL,
  6941. 0ULL,
  6942. 0ULL,
  6943. 0ULL
  6944. },
  6945. {
  6946. 0x0000000051b00000ULL,
  6947. -1ULL,
  6948. -1ULL,
  6949. -1ULL,
  6950. -1ULL
  6951. }
  6952. #endif
  6953. },
  6954. { "v1sadu", TILEGX_OPC_V1SADU, 0x1, 3, TREG_ZERO, 1,
  6955. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  6956. #ifndef DISASM_ONLY
  6957. {
  6958. 0xc00000007ffc0000ULL,
  6959. 0ULL,
  6960. 0ULL,
  6961. 0ULL,
  6962. 0ULL
  6963. },
  6964. {
  6965. 0x0000000051b40000ULL,
  6966. -1ULL,
  6967. -1ULL,
  6968. -1ULL,
  6969. -1ULL
  6970. }
  6971. #endif
  6972. },
  6973. { "v1shl", TILEGX_OPC_V1SHL, 0x3, 3, TREG_ZERO, 1,
  6974. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  6975. #ifndef DISASM_ONLY
  6976. {
  6977. 0xc00000007ffc0000ULL,
  6978. 0xfffe000000000000ULL,
  6979. 0ULL,
  6980. 0ULL,
  6981. 0ULL
  6982. },
  6983. {
  6984. 0x0000000051b80000ULL,
  6985. 0x2888000000000000ULL,
  6986. -1ULL,
  6987. -1ULL,
  6988. -1ULL
  6989. }
  6990. #endif
  6991. },
  6992. { "v1shli", TILEGX_OPC_V1SHLI, 0x3, 3, TREG_ZERO, 1,
  6993. { { 8, 9, 29 }, { 6, 7, 30 }, { 0, }, { 0, }, { 0, } },
  6994. #ifndef DISASM_ONLY
  6995. {
  6996. 0xc00000007ffc0000ULL,
  6997. 0xfffe000000000000ULL,
  6998. 0ULL,
  6999. 0ULL,
  7000. 0ULL
  7001. },
  7002. {
  7003. 0x00000000601c0000ULL,
  7004. 0x300e000000000000ULL,
  7005. -1ULL,
  7006. -1ULL,
  7007. -1ULL
  7008. }
  7009. #endif
  7010. },
  7011. { "v1shrs", TILEGX_OPC_V1SHRS, 0x3, 3, TREG_ZERO, 1,
  7012. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7013. #ifndef DISASM_ONLY
  7014. {
  7015. 0xc00000007ffc0000ULL,
  7016. 0xfffe000000000000ULL,
  7017. 0ULL,
  7018. 0ULL,
  7019. 0ULL
  7020. },
  7021. {
  7022. 0x0000000051bc0000ULL,
  7023. 0x288a000000000000ULL,
  7024. -1ULL,
  7025. -1ULL,
  7026. -1ULL
  7027. }
  7028. #endif
  7029. },
  7030. { "v1shrsi", TILEGX_OPC_V1SHRSI, 0x3, 3, TREG_ZERO, 1,
  7031. { { 8, 9, 29 }, { 6, 7, 30 }, { 0, }, { 0, }, { 0, } },
  7032. #ifndef DISASM_ONLY
  7033. {
  7034. 0xc00000007ffc0000ULL,
  7035. 0xfffe000000000000ULL,
  7036. 0ULL,
  7037. 0ULL,
  7038. 0ULL
  7039. },
  7040. {
  7041. 0x0000000060200000ULL,
  7042. 0x3010000000000000ULL,
  7043. -1ULL,
  7044. -1ULL,
  7045. -1ULL
  7046. }
  7047. #endif
  7048. },
  7049. { "v1shru", TILEGX_OPC_V1SHRU, 0x3, 3, TREG_ZERO, 1,
  7050. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7051. #ifndef DISASM_ONLY
  7052. {
  7053. 0xc00000007ffc0000ULL,
  7054. 0xfffe000000000000ULL,
  7055. 0ULL,
  7056. 0ULL,
  7057. 0ULL
  7058. },
  7059. {
  7060. 0x0000000051c00000ULL,
  7061. 0x288c000000000000ULL,
  7062. -1ULL,
  7063. -1ULL,
  7064. -1ULL
  7065. }
  7066. #endif
  7067. },
  7068. { "v1shrui", TILEGX_OPC_V1SHRUI, 0x3, 3, TREG_ZERO, 1,
  7069. { { 8, 9, 29 }, { 6, 7, 30 }, { 0, }, { 0, }, { 0, } },
  7070. #ifndef DISASM_ONLY
  7071. {
  7072. 0xc00000007ffc0000ULL,
  7073. 0xfffe000000000000ULL,
  7074. 0ULL,
  7075. 0ULL,
  7076. 0ULL
  7077. },
  7078. {
  7079. 0x0000000060240000ULL,
  7080. 0x3012000000000000ULL,
  7081. -1ULL,
  7082. -1ULL,
  7083. -1ULL
  7084. }
  7085. #endif
  7086. },
  7087. { "v1sub", TILEGX_OPC_V1SUB, 0x3, 3, TREG_ZERO, 1,
  7088. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7089. #ifndef DISASM_ONLY
  7090. {
  7091. 0xc00000007ffc0000ULL,
  7092. 0xfffe000000000000ULL,
  7093. 0ULL,
  7094. 0ULL,
  7095. 0ULL
  7096. },
  7097. {
  7098. 0x0000000051c80000ULL,
  7099. 0x2890000000000000ULL,
  7100. -1ULL,
  7101. -1ULL,
  7102. -1ULL
  7103. }
  7104. #endif
  7105. },
  7106. { "v1subuc", TILEGX_OPC_V1SUBUC, 0x3, 3, TREG_ZERO, 1,
  7107. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7108. #ifndef DISASM_ONLY
  7109. {
  7110. 0xc00000007ffc0000ULL,
  7111. 0xfffe000000000000ULL,
  7112. 0ULL,
  7113. 0ULL,
  7114. 0ULL
  7115. },
  7116. {
  7117. 0x0000000051c40000ULL,
  7118. 0x288e000000000000ULL,
  7119. -1ULL,
  7120. -1ULL,
  7121. -1ULL
  7122. }
  7123. #endif
  7124. },
  7125. { "v2add", TILEGX_OPC_V2ADD, 0x3, 3, TREG_ZERO, 1,
  7126. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7127. #ifndef DISASM_ONLY
  7128. {
  7129. 0xc00000007ffc0000ULL,
  7130. 0xfffe000000000000ULL,
  7131. 0ULL,
  7132. 0ULL,
  7133. 0ULL
  7134. },
  7135. {
  7136. 0x0000000051d00000ULL,
  7137. 0x2894000000000000ULL,
  7138. -1ULL,
  7139. -1ULL,
  7140. -1ULL
  7141. }
  7142. #endif
  7143. },
  7144. { "v2addi", TILEGX_OPC_V2ADDI, 0x3, 3, TREG_ZERO, 1,
  7145. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  7146. #ifndef DISASM_ONLY
  7147. {
  7148. 0xc00000007ff00000ULL,
  7149. 0xfff8000000000000ULL,
  7150. 0ULL,
  7151. 0ULL,
  7152. 0ULL
  7153. },
  7154. {
  7155. 0x0000000040e00000ULL,
  7156. 0x1938000000000000ULL,
  7157. -1ULL,
  7158. -1ULL,
  7159. -1ULL
  7160. }
  7161. #endif
  7162. },
  7163. { "v2addsc", TILEGX_OPC_V2ADDSC, 0x3, 3, TREG_ZERO, 1,
  7164. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7165. #ifndef DISASM_ONLY
  7166. {
  7167. 0xc00000007ffc0000ULL,
  7168. 0xfffe000000000000ULL,
  7169. 0ULL,
  7170. 0ULL,
  7171. 0ULL
  7172. },
  7173. {
  7174. 0x0000000051cc0000ULL,
  7175. 0x2892000000000000ULL,
  7176. -1ULL,
  7177. -1ULL,
  7178. -1ULL
  7179. }
  7180. #endif
  7181. },
  7182. { "v2adiffs", TILEGX_OPC_V2ADIFFS, 0x1, 3, TREG_ZERO, 1,
  7183. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  7184. #ifndef DISASM_ONLY
  7185. {
  7186. 0xc00000007ffc0000ULL,
  7187. 0ULL,
  7188. 0ULL,
  7189. 0ULL,
  7190. 0ULL
  7191. },
  7192. {
  7193. 0x0000000051d40000ULL,
  7194. -1ULL,
  7195. -1ULL,
  7196. -1ULL,
  7197. -1ULL
  7198. }
  7199. #endif
  7200. },
  7201. { "v2avgs", TILEGX_OPC_V2AVGS, 0x1, 3, TREG_ZERO, 1,
  7202. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  7203. #ifndef DISASM_ONLY
  7204. {
  7205. 0xc00000007ffc0000ULL,
  7206. 0ULL,
  7207. 0ULL,
  7208. 0ULL,
  7209. 0ULL
  7210. },
  7211. {
  7212. 0x0000000051d80000ULL,
  7213. -1ULL,
  7214. -1ULL,
  7215. -1ULL,
  7216. -1ULL
  7217. }
  7218. #endif
  7219. },
  7220. { "v2cmpeq", TILEGX_OPC_V2CMPEQ, 0x3, 3, TREG_ZERO, 1,
  7221. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7222. #ifndef DISASM_ONLY
  7223. {
  7224. 0xc00000007ffc0000ULL,
  7225. 0xfffe000000000000ULL,
  7226. 0ULL,
  7227. 0ULL,
  7228. 0ULL
  7229. },
  7230. {
  7231. 0x0000000051dc0000ULL,
  7232. 0x2896000000000000ULL,
  7233. -1ULL,
  7234. -1ULL,
  7235. -1ULL
  7236. }
  7237. #endif
  7238. },
  7239. { "v2cmpeqi", TILEGX_OPC_V2CMPEQI, 0x3, 3, TREG_ZERO, 1,
  7240. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  7241. #ifndef DISASM_ONLY
  7242. {
  7243. 0xc00000007ff00000ULL,
  7244. 0xfff8000000000000ULL,
  7245. 0ULL,
  7246. 0ULL,
  7247. 0ULL
  7248. },
  7249. {
  7250. 0x0000000040f00000ULL,
  7251. 0x1940000000000000ULL,
  7252. -1ULL,
  7253. -1ULL,
  7254. -1ULL
  7255. }
  7256. #endif
  7257. },
  7258. { "v2cmples", TILEGX_OPC_V2CMPLES, 0x3, 3, TREG_ZERO, 1,
  7259. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7260. #ifndef DISASM_ONLY
  7261. {
  7262. 0xc00000007ffc0000ULL,
  7263. 0xfffe000000000000ULL,
  7264. 0ULL,
  7265. 0ULL,
  7266. 0ULL
  7267. },
  7268. {
  7269. 0x0000000051e00000ULL,
  7270. 0x2898000000000000ULL,
  7271. -1ULL,
  7272. -1ULL,
  7273. -1ULL
  7274. }
  7275. #endif
  7276. },
  7277. { "v2cmpleu", TILEGX_OPC_V2CMPLEU, 0x3, 3, TREG_ZERO, 1,
  7278. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7279. #ifndef DISASM_ONLY
  7280. {
  7281. 0xc00000007ffc0000ULL,
  7282. 0xfffe000000000000ULL,
  7283. 0ULL,
  7284. 0ULL,
  7285. 0ULL
  7286. },
  7287. {
  7288. 0x0000000051e40000ULL,
  7289. 0x289a000000000000ULL,
  7290. -1ULL,
  7291. -1ULL,
  7292. -1ULL
  7293. }
  7294. #endif
  7295. },
  7296. { "v2cmplts", TILEGX_OPC_V2CMPLTS, 0x3, 3, TREG_ZERO, 1,
  7297. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7298. #ifndef DISASM_ONLY
  7299. {
  7300. 0xc00000007ffc0000ULL,
  7301. 0xfffe000000000000ULL,
  7302. 0ULL,
  7303. 0ULL,
  7304. 0ULL
  7305. },
  7306. {
  7307. 0x0000000051e80000ULL,
  7308. 0x289c000000000000ULL,
  7309. -1ULL,
  7310. -1ULL,
  7311. -1ULL
  7312. }
  7313. #endif
  7314. },
  7315. { "v2cmpltsi", TILEGX_OPC_V2CMPLTSI, 0x3, 3, TREG_ZERO, 1,
  7316. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  7317. #ifndef DISASM_ONLY
  7318. {
  7319. 0xc00000007ff00000ULL,
  7320. 0xfff8000000000000ULL,
  7321. 0ULL,
  7322. 0ULL,
  7323. 0ULL
  7324. },
  7325. {
  7326. 0x0000000041000000ULL,
  7327. 0x1948000000000000ULL,
  7328. -1ULL,
  7329. -1ULL,
  7330. -1ULL
  7331. }
  7332. #endif
  7333. },
  7334. { "v2cmpltu", TILEGX_OPC_V2CMPLTU, 0x3, 3, TREG_ZERO, 1,
  7335. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7336. #ifndef DISASM_ONLY
  7337. {
  7338. 0xc00000007ffc0000ULL,
  7339. 0xfffe000000000000ULL,
  7340. 0ULL,
  7341. 0ULL,
  7342. 0ULL
  7343. },
  7344. {
  7345. 0x0000000051ec0000ULL,
  7346. 0x289e000000000000ULL,
  7347. -1ULL,
  7348. -1ULL,
  7349. -1ULL
  7350. }
  7351. #endif
  7352. },
  7353. { "v2cmpltui", TILEGX_OPC_V2CMPLTUI, 0x3, 3, TREG_ZERO, 1,
  7354. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  7355. #ifndef DISASM_ONLY
  7356. {
  7357. 0xc00000007ff00000ULL,
  7358. 0xfff8000000000000ULL,
  7359. 0ULL,
  7360. 0ULL,
  7361. 0ULL
  7362. },
  7363. {
  7364. 0x0000000041100000ULL,
  7365. 0x1950000000000000ULL,
  7366. -1ULL,
  7367. -1ULL,
  7368. -1ULL
  7369. }
  7370. #endif
  7371. },
  7372. { "v2cmpne", TILEGX_OPC_V2CMPNE, 0x3, 3, TREG_ZERO, 1,
  7373. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7374. #ifndef DISASM_ONLY
  7375. {
  7376. 0xc00000007ffc0000ULL,
  7377. 0xfffe000000000000ULL,
  7378. 0ULL,
  7379. 0ULL,
  7380. 0ULL
  7381. },
  7382. {
  7383. 0x0000000051f00000ULL,
  7384. 0x28a0000000000000ULL,
  7385. -1ULL,
  7386. -1ULL,
  7387. -1ULL
  7388. }
  7389. #endif
  7390. },
  7391. { "v2dotp", TILEGX_OPC_V2DOTP, 0x1, 3, TREG_ZERO, 1,
  7392. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  7393. #ifndef DISASM_ONLY
  7394. {
  7395. 0xc00000007ffc0000ULL,
  7396. 0ULL,
  7397. 0ULL,
  7398. 0ULL,
  7399. 0ULL
  7400. },
  7401. {
  7402. 0x0000000051f80000ULL,
  7403. -1ULL,
  7404. -1ULL,
  7405. -1ULL,
  7406. -1ULL
  7407. }
  7408. #endif
  7409. },
  7410. { "v2dotpa", TILEGX_OPC_V2DOTPA, 0x1, 3, TREG_ZERO, 1,
  7411. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  7412. #ifndef DISASM_ONLY
  7413. {
  7414. 0xc00000007ffc0000ULL,
  7415. 0ULL,
  7416. 0ULL,
  7417. 0ULL,
  7418. 0ULL
  7419. },
  7420. {
  7421. 0x0000000051f40000ULL,
  7422. -1ULL,
  7423. -1ULL,
  7424. -1ULL,
  7425. -1ULL
  7426. }
  7427. #endif
  7428. },
  7429. { "v2int_h", TILEGX_OPC_V2INT_H, 0x3, 3, TREG_ZERO, 1,
  7430. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7431. #ifndef DISASM_ONLY
  7432. {
  7433. 0xc00000007ffc0000ULL,
  7434. 0xfffe000000000000ULL,
  7435. 0ULL,
  7436. 0ULL,
  7437. 0ULL
  7438. },
  7439. {
  7440. 0x0000000051fc0000ULL,
  7441. 0x28a2000000000000ULL,
  7442. -1ULL,
  7443. -1ULL,
  7444. -1ULL
  7445. }
  7446. #endif
  7447. },
  7448. { "v2int_l", TILEGX_OPC_V2INT_L, 0x3, 3, TREG_ZERO, 1,
  7449. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7450. #ifndef DISASM_ONLY
  7451. {
  7452. 0xc00000007ffc0000ULL,
  7453. 0xfffe000000000000ULL,
  7454. 0ULL,
  7455. 0ULL,
  7456. 0ULL
  7457. },
  7458. {
  7459. 0x0000000052000000ULL,
  7460. 0x28a4000000000000ULL,
  7461. -1ULL,
  7462. -1ULL,
  7463. -1ULL
  7464. }
  7465. #endif
  7466. },
  7467. { "v2maxs", TILEGX_OPC_V2MAXS, 0x3, 3, TREG_ZERO, 1,
  7468. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7469. #ifndef DISASM_ONLY
  7470. {
  7471. 0xc00000007ffc0000ULL,
  7472. 0xfffe000000000000ULL,
  7473. 0ULL,
  7474. 0ULL,
  7475. 0ULL
  7476. },
  7477. {
  7478. 0x0000000052040000ULL,
  7479. 0x28a6000000000000ULL,
  7480. -1ULL,
  7481. -1ULL,
  7482. -1ULL
  7483. }
  7484. #endif
  7485. },
  7486. { "v2maxsi", TILEGX_OPC_V2MAXSI, 0x3, 3, TREG_ZERO, 1,
  7487. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  7488. #ifndef DISASM_ONLY
  7489. {
  7490. 0xc00000007ff00000ULL,
  7491. 0xfff8000000000000ULL,
  7492. 0ULL,
  7493. 0ULL,
  7494. 0ULL
  7495. },
  7496. {
  7497. 0x0000000041200000ULL,
  7498. 0x1958000000000000ULL,
  7499. -1ULL,
  7500. -1ULL,
  7501. -1ULL
  7502. }
  7503. #endif
  7504. },
  7505. { "v2mins", TILEGX_OPC_V2MINS, 0x3, 3, TREG_ZERO, 1,
  7506. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7507. #ifndef DISASM_ONLY
  7508. {
  7509. 0xc00000007ffc0000ULL,
  7510. 0xfffe000000000000ULL,
  7511. 0ULL,
  7512. 0ULL,
  7513. 0ULL
  7514. },
  7515. {
  7516. 0x0000000052080000ULL,
  7517. 0x28a8000000000000ULL,
  7518. -1ULL,
  7519. -1ULL,
  7520. -1ULL
  7521. }
  7522. #endif
  7523. },
  7524. { "v2minsi", TILEGX_OPC_V2MINSI, 0x3, 3, TREG_ZERO, 1,
  7525. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  7526. #ifndef DISASM_ONLY
  7527. {
  7528. 0xc00000007ff00000ULL,
  7529. 0xfff8000000000000ULL,
  7530. 0ULL,
  7531. 0ULL,
  7532. 0ULL
  7533. },
  7534. {
  7535. 0x0000000041300000ULL,
  7536. 0x1960000000000000ULL,
  7537. -1ULL,
  7538. -1ULL,
  7539. -1ULL
  7540. }
  7541. #endif
  7542. },
  7543. { "v2mnz", TILEGX_OPC_V2MNZ, 0x3, 3, TREG_ZERO, 1,
  7544. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7545. #ifndef DISASM_ONLY
  7546. {
  7547. 0xc00000007ffc0000ULL,
  7548. 0xfffe000000000000ULL,
  7549. 0ULL,
  7550. 0ULL,
  7551. 0ULL
  7552. },
  7553. {
  7554. 0x00000000520c0000ULL,
  7555. 0x28aa000000000000ULL,
  7556. -1ULL,
  7557. -1ULL,
  7558. -1ULL
  7559. }
  7560. #endif
  7561. },
  7562. { "v2mulfsc", TILEGX_OPC_V2MULFSC, 0x1, 3, TREG_ZERO, 1,
  7563. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  7564. #ifndef DISASM_ONLY
  7565. {
  7566. 0xc00000007ffc0000ULL,
  7567. 0ULL,
  7568. 0ULL,
  7569. 0ULL,
  7570. 0ULL
  7571. },
  7572. {
  7573. 0x0000000052100000ULL,
  7574. -1ULL,
  7575. -1ULL,
  7576. -1ULL,
  7577. -1ULL
  7578. }
  7579. #endif
  7580. },
  7581. { "v2muls", TILEGX_OPC_V2MULS, 0x1, 3, TREG_ZERO, 1,
  7582. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  7583. #ifndef DISASM_ONLY
  7584. {
  7585. 0xc00000007ffc0000ULL,
  7586. 0ULL,
  7587. 0ULL,
  7588. 0ULL,
  7589. 0ULL
  7590. },
  7591. {
  7592. 0x0000000052140000ULL,
  7593. -1ULL,
  7594. -1ULL,
  7595. -1ULL,
  7596. -1ULL
  7597. }
  7598. #endif
  7599. },
  7600. { "v2mults", TILEGX_OPC_V2MULTS, 0x1, 3, TREG_ZERO, 1,
  7601. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  7602. #ifndef DISASM_ONLY
  7603. {
  7604. 0xc00000007ffc0000ULL,
  7605. 0ULL,
  7606. 0ULL,
  7607. 0ULL,
  7608. 0ULL
  7609. },
  7610. {
  7611. 0x0000000052180000ULL,
  7612. -1ULL,
  7613. -1ULL,
  7614. -1ULL,
  7615. -1ULL
  7616. }
  7617. #endif
  7618. },
  7619. { "v2mz", TILEGX_OPC_V2MZ, 0x3, 3, TREG_ZERO, 1,
  7620. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7621. #ifndef DISASM_ONLY
  7622. {
  7623. 0xc00000007ffc0000ULL,
  7624. 0xfffe000000000000ULL,
  7625. 0ULL,
  7626. 0ULL,
  7627. 0ULL
  7628. },
  7629. {
  7630. 0x00000000521c0000ULL,
  7631. 0x28ac000000000000ULL,
  7632. -1ULL,
  7633. -1ULL,
  7634. -1ULL
  7635. }
  7636. #endif
  7637. },
  7638. { "v2packh", TILEGX_OPC_V2PACKH, 0x3, 3, TREG_ZERO, 1,
  7639. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7640. #ifndef DISASM_ONLY
  7641. {
  7642. 0xc00000007ffc0000ULL,
  7643. 0xfffe000000000000ULL,
  7644. 0ULL,
  7645. 0ULL,
  7646. 0ULL
  7647. },
  7648. {
  7649. 0x0000000052200000ULL,
  7650. 0x28ae000000000000ULL,
  7651. -1ULL,
  7652. -1ULL,
  7653. -1ULL
  7654. }
  7655. #endif
  7656. },
  7657. { "v2packl", TILEGX_OPC_V2PACKL, 0x3, 3, TREG_ZERO, 1,
  7658. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7659. #ifndef DISASM_ONLY
  7660. {
  7661. 0xc00000007ffc0000ULL,
  7662. 0xfffe000000000000ULL,
  7663. 0ULL,
  7664. 0ULL,
  7665. 0ULL
  7666. },
  7667. {
  7668. 0x0000000052240000ULL,
  7669. 0x28b0000000000000ULL,
  7670. -1ULL,
  7671. -1ULL,
  7672. -1ULL
  7673. }
  7674. #endif
  7675. },
  7676. { "v2packuc", TILEGX_OPC_V2PACKUC, 0x3, 3, TREG_ZERO, 1,
  7677. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7678. #ifndef DISASM_ONLY
  7679. {
  7680. 0xc00000007ffc0000ULL,
  7681. 0xfffe000000000000ULL,
  7682. 0ULL,
  7683. 0ULL,
  7684. 0ULL
  7685. },
  7686. {
  7687. 0x0000000052280000ULL,
  7688. 0x28b2000000000000ULL,
  7689. -1ULL,
  7690. -1ULL,
  7691. -1ULL
  7692. }
  7693. #endif
  7694. },
  7695. { "v2sadas", TILEGX_OPC_V2SADAS, 0x1, 3, TREG_ZERO, 1,
  7696. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  7697. #ifndef DISASM_ONLY
  7698. {
  7699. 0xc00000007ffc0000ULL,
  7700. 0ULL,
  7701. 0ULL,
  7702. 0ULL,
  7703. 0ULL
  7704. },
  7705. {
  7706. 0x00000000522c0000ULL,
  7707. -1ULL,
  7708. -1ULL,
  7709. -1ULL,
  7710. -1ULL
  7711. }
  7712. #endif
  7713. },
  7714. { "v2sadau", TILEGX_OPC_V2SADAU, 0x1, 3, TREG_ZERO, 1,
  7715. { { 23, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  7716. #ifndef DISASM_ONLY
  7717. {
  7718. 0xc00000007ffc0000ULL,
  7719. 0ULL,
  7720. 0ULL,
  7721. 0ULL,
  7722. 0ULL
  7723. },
  7724. {
  7725. 0x0000000052300000ULL,
  7726. -1ULL,
  7727. -1ULL,
  7728. -1ULL,
  7729. -1ULL
  7730. }
  7731. #endif
  7732. },
  7733. { "v2sads", TILEGX_OPC_V2SADS, 0x1, 3, TREG_ZERO, 1,
  7734. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  7735. #ifndef DISASM_ONLY
  7736. {
  7737. 0xc00000007ffc0000ULL,
  7738. 0ULL,
  7739. 0ULL,
  7740. 0ULL,
  7741. 0ULL
  7742. },
  7743. {
  7744. 0x0000000052340000ULL,
  7745. -1ULL,
  7746. -1ULL,
  7747. -1ULL,
  7748. -1ULL
  7749. }
  7750. #endif
  7751. },
  7752. { "v2sadu", TILEGX_OPC_V2SADU, 0x1, 3, TREG_ZERO, 1,
  7753. { { 8, 9, 16 }, { 0, }, { 0, }, { 0, }, { 0, } },
  7754. #ifndef DISASM_ONLY
  7755. {
  7756. 0xc00000007ffc0000ULL,
  7757. 0ULL,
  7758. 0ULL,
  7759. 0ULL,
  7760. 0ULL
  7761. },
  7762. {
  7763. 0x0000000052380000ULL,
  7764. -1ULL,
  7765. -1ULL,
  7766. -1ULL,
  7767. -1ULL
  7768. }
  7769. #endif
  7770. },
  7771. { "v2shl", TILEGX_OPC_V2SHL, 0x3, 3, TREG_ZERO, 1,
  7772. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7773. #ifndef DISASM_ONLY
  7774. {
  7775. 0xc00000007ffc0000ULL,
  7776. 0xfffe000000000000ULL,
  7777. 0ULL,
  7778. 0ULL,
  7779. 0ULL
  7780. },
  7781. {
  7782. 0x0000000052400000ULL,
  7783. 0x28b6000000000000ULL,
  7784. -1ULL,
  7785. -1ULL,
  7786. -1ULL
  7787. }
  7788. #endif
  7789. },
  7790. { "v2shli", TILEGX_OPC_V2SHLI, 0x3, 3, TREG_ZERO, 1,
  7791. { { 8, 9, 29 }, { 6, 7, 30 }, { 0, }, { 0, }, { 0, } },
  7792. #ifndef DISASM_ONLY
  7793. {
  7794. 0xc00000007ffc0000ULL,
  7795. 0xfffe000000000000ULL,
  7796. 0ULL,
  7797. 0ULL,
  7798. 0ULL
  7799. },
  7800. {
  7801. 0x0000000060280000ULL,
  7802. 0x3014000000000000ULL,
  7803. -1ULL,
  7804. -1ULL,
  7805. -1ULL
  7806. }
  7807. #endif
  7808. },
  7809. { "v2shlsc", TILEGX_OPC_V2SHLSC, 0x3, 3, TREG_ZERO, 1,
  7810. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7811. #ifndef DISASM_ONLY
  7812. {
  7813. 0xc00000007ffc0000ULL,
  7814. 0xfffe000000000000ULL,
  7815. 0ULL,
  7816. 0ULL,
  7817. 0ULL
  7818. },
  7819. {
  7820. 0x00000000523c0000ULL,
  7821. 0x28b4000000000000ULL,
  7822. -1ULL,
  7823. -1ULL,
  7824. -1ULL
  7825. }
  7826. #endif
  7827. },
  7828. { "v2shrs", TILEGX_OPC_V2SHRS, 0x3, 3, TREG_ZERO, 1,
  7829. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7830. #ifndef DISASM_ONLY
  7831. {
  7832. 0xc00000007ffc0000ULL,
  7833. 0xfffe000000000000ULL,
  7834. 0ULL,
  7835. 0ULL,
  7836. 0ULL
  7837. },
  7838. {
  7839. 0x0000000052440000ULL,
  7840. 0x28b8000000000000ULL,
  7841. -1ULL,
  7842. -1ULL,
  7843. -1ULL
  7844. }
  7845. #endif
  7846. },
  7847. { "v2shrsi", TILEGX_OPC_V2SHRSI, 0x3, 3, TREG_ZERO, 1,
  7848. { { 8, 9, 29 }, { 6, 7, 30 }, { 0, }, { 0, }, { 0, } },
  7849. #ifndef DISASM_ONLY
  7850. {
  7851. 0xc00000007ffc0000ULL,
  7852. 0xfffe000000000000ULL,
  7853. 0ULL,
  7854. 0ULL,
  7855. 0ULL
  7856. },
  7857. {
  7858. 0x00000000602c0000ULL,
  7859. 0x3016000000000000ULL,
  7860. -1ULL,
  7861. -1ULL,
  7862. -1ULL
  7863. }
  7864. #endif
  7865. },
  7866. { "v2shru", TILEGX_OPC_V2SHRU, 0x3, 3, TREG_ZERO, 1,
  7867. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7868. #ifndef DISASM_ONLY
  7869. {
  7870. 0xc00000007ffc0000ULL,
  7871. 0xfffe000000000000ULL,
  7872. 0ULL,
  7873. 0ULL,
  7874. 0ULL
  7875. },
  7876. {
  7877. 0x0000000052480000ULL,
  7878. 0x28ba000000000000ULL,
  7879. -1ULL,
  7880. -1ULL,
  7881. -1ULL
  7882. }
  7883. #endif
  7884. },
  7885. { "v2shrui", TILEGX_OPC_V2SHRUI, 0x3, 3, TREG_ZERO, 1,
  7886. { { 8, 9, 29 }, { 6, 7, 30 }, { 0, }, { 0, }, { 0, } },
  7887. #ifndef DISASM_ONLY
  7888. {
  7889. 0xc00000007ffc0000ULL,
  7890. 0xfffe000000000000ULL,
  7891. 0ULL,
  7892. 0ULL,
  7893. 0ULL
  7894. },
  7895. {
  7896. 0x0000000060300000ULL,
  7897. 0x3018000000000000ULL,
  7898. -1ULL,
  7899. -1ULL,
  7900. -1ULL
  7901. }
  7902. #endif
  7903. },
  7904. { "v2sub", TILEGX_OPC_V2SUB, 0x3, 3, TREG_ZERO, 1,
  7905. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7906. #ifndef DISASM_ONLY
  7907. {
  7908. 0xc00000007ffc0000ULL,
  7909. 0xfffe000000000000ULL,
  7910. 0ULL,
  7911. 0ULL,
  7912. 0ULL
  7913. },
  7914. {
  7915. 0x0000000052500000ULL,
  7916. 0x28be000000000000ULL,
  7917. -1ULL,
  7918. -1ULL,
  7919. -1ULL
  7920. }
  7921. #endif
  7922. },
  7923. { "v2subsc", TILEGX_OPC_V2SUBSC, 0x3, 3, TREG_ZERO, 1,
  7924. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7925. #ifndef DISASM_ONLY
  7926. {
  7927. 0xc00000007ffc0000ULL,
  7928. 0xfffe000000000000ULL,
  7929. 0ULL,
  7930. 0ULL,
  7931. 0ULL
  7932. },
  7933. {
  7934. 0x00000000524c0000ULL,
  7935. 0x28bc000000000000ULL,
  7936. -1ULL,
  7937. -1ULL,
  7938. -1ULL
  7939. }
  7940. #endif
  7941. },
  7942. { "v4add", TILEGX_OPC_V4ADD, 0x3, 3, TREG_ZERO, 1,
  7943. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7944. #ifndef DISASM_ONLY
  7945. {
  7946. 0xc00000007ffc0000ULL,
  7947. 0xfffe000000000000ULL,
  7948. 0ULL,
  7949. 0ULL,
  7950. 0ULL
  7951. },
  7952. {
  7953. 0x0000000052580000ULL,
  7954. 0x28c2000000000000ULL,
  7955. -1ULL,
  7956. -1ULL,
  7957. -1ULL
  7958. }
  7959. #endif
  7960. },
  7961. { "v4addsc", TILEGX_OPC_V4ADDSC, 0x3, 3, TREG_ZERO, 1,
  7962. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7963. #ifndef DISASM_ONLY
  7964. {
  7965. 0xc00000007ffc0000ULL,
  7966. 0xfffe000000000000ULL,
  7967. 0ULL,
  7968. 0ULL,
  7969. 0ULL
  7970. },
  7971. {
  7972. 0x0000000052540000ULL,
  7973. 0x28c0000000000000ULL,
  7974. -1ULL,
  7975. -1ULL,
  7976. -1ULL
  7977. }
  7978. #endif
  7979. },
  7980. { "v4int_h", TILEGX_OPC_V4INT_H, 0x3, 3, TREG_ZERO, 1,
  7981. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  7982. #ifndef DISASM_ONLY
  7983. {
  7984. 0xc00000007ffc0000ULL,
  7985. 0xfffe000000000000ULL,
  7986. 0ULL,
  7987. 0ULL,
  7988. 0ULL
  7989. },
  7990. {
  7991. 0x00000000525c0000ULL,
  7992. 0x28c4000000000000ULL,
  7993. -1ULL,
  7994. -1ULL,
  7995. -1ULL
  7996. }
  7997. #endif
  7998. },
  7999. { "v4int_l", TILEGX_OPC_V4INT_L, 0x3, 3, TREG_ZERO, 1,
  8000. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  8001. #ifndef DISASM_ONLY
  8002. {
  8003. 0xc00000007ffc0000ULL,
  8004. 0xfffe000000000000ULL,
  8005. 0ULL,
  8006. 0ULL,
  8007. 0ULL
  8008. },
  8009. {
  8010. 0x0000000052600000ULL,
  8011. 0x28c6000000000000ULL,
  8012. -1ULL,
  8013. -1ULL,
  8014. -1ULL
  8015. }
  8016. #endif
  8017. },
  8018. { "v4packsc", TILEGX_OPC_V4PACKSC, 0x3, 3, TREG_ZERO, 1,
  8019. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  8020. #ifndef DISASM_ONLY
  8021. {
  8022. 0xc00000007ffc0000ULL,
  8023. 0xfffe000000000000ULL,
  8024. 0ULL,
  8025. 0ULL,
  8026. 0ULL
  8027. },
  8028. {
  8029. 0x0000000052640000ULL,
  8030. 0x28c8000000000000ULL,
  8031. -1ULL,
  8032. -1ULL,
  8033. -1ULL
  8034. }
  8035. #endif
  8036. },
  8037. { "v4shl", TILEGX_OPC_V4SHL, 0x3, 3, TREG_ZERO, 1,
  8038. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  8039. #ifndef DISASM_ONLY
  8040. {
  8041. 0xc00000007ffc0000ULL,
  8042. 0xfffe000000000000ULL,
  8043. 0ULL,
  8044. 0ULL,
  8045. 0ULL
  8046. },
  8047. {
  8048. 0x00000000526c0000ULL,
  8049. 0x28cc000000000000ULL,
  8050. -1ULL,
  8051. -1ULL,
  8052. -1ULL
  8053. }
  8054. #endif
  8055. },
  8056. { "v4shlsc", TILEGX_OPC_V4SHLSC, 0x3, 3, TREG_ZERO, 1,
  8057. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  8058. #ifndef DISASM_ONLY
  8059. {
  8060. 0xc00000007ffc0000ULL,
  8061. 0xfffe000000000000ULL,
  8062. 0ULL,
  8063. 0ULL,
  8064. 0ULL
  8065. },
  8066. {
  8067. 0x0000000052680000ULL,
  8068. 0x28ca000000000000ULL,
  8069. -1ULL,
  8070. -1ULL,
  8071. -1ULL
  8072. }
  8073. #endif
  8074. },
  8075. { "v4shrs", TILEGX_OPC_V4SHRS, 0x3, 3, TREG_ZERO, 1,
  8076. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  8077. #ifndef DISASM_ONLY
  8078. {
  8079. 0xc00000007ffc0000ULL,
  8080. 0xfffe000000000000ULL,
  8081. 0ULL,
  8082. 0ULL,
  8083. 0ULL
  8084. },
  8085. {
  8086. 0x0000000052700000ULL,
  8087. 0x28ce000000000000ULL,
  8088. -1ULL,
  8089. -1ULL,
  8090. -1ULL
  8091. }
  8092. #endif
  8093. },
  8094. { "v4shru", TILEGX_OPC_V4SHRU, 0x3, 3, TREG_ZERO, 1,
  8095. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  8096. #ifndef DISASM_ONLY
  8097. {
  8098. 0xc00000007ffc0000ULL,
  8099. 0xfffe000000000000ULL,
  8100. 0ULL,
  8101. 0ULL,
  8102. 0ULL
  8103. },
  8104. {
  8105. 0x0000000052740000ULL,
  8106. 0x28d0000000000000ULL,
  8107. -1ULL,
  8108. -1ULL,
  8109. -1ULL
  8110. }
  8111. #endif
  8112. },
  8113. { "v4sub", TILEGX_OPC_V4SUB, 0x3, 3, TREG_ZERO, 1,
  8114. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  8115. #ifndef DISASM_ONLY
  8116. {
  8117. 0xc00000007ffc0000ULL,
  8118. 0xfffe000000000000ULL,
  8119. 0ULL,
  8120. 0ULL,
  8121. 0ULL
  8122. },
  8123. {
  8124. 0x00000000527c0000ULL,
  8125. 0x28d4000000000000ULL,
  8126. -1ULL,
  8127. -1ULL,
  8128. -1ULL
  8129. }
  8130. #endif
  8131. },
  8132. { "v4subsc", TILEGX_OPC_V4SUBSC, 0x3, 3, TREG_ZERO, 1,
  8133. { { 8, 9, 16 }, { 6, 7, 17 }, { 0, }, { 0, }, { 0, } },
  8134. #ifndef DISASM_ONLY
  8135. {
  8136. 0xc00000007ffc0000ULL,
  8137. 0xfffe000000000000ULL,
  8138. 0ULL,
  8139. 0ULL,
  8140. 0ULL
  8141. },
  8142. {
  8143. 0x0000000052780000ULL,
  8144. 0x28d2000000000000ULL,
  8145. -1ULL,
  8146. -1ULL,
  8147. -1ULL
  8148. }
  8149. #endif
  8150. },
  8151. { "wh64", TILEGX_OPC_WH64, 0x2, 1, TREG_ZERO, 1,
  8152. { { 0, }, { 7 }, { 0, }, { 0, }, { 0, } },
  8153. #ifndef DISASM_ONLY
  8154. {
  8155. 0ULL,
  8156. 0xfffff80000000000ULL,
  8157. 0ULL,
  8158. 0ULL,
  8159. 0ULL
  8160. },
  8161. {
  8162. -1ULL,
  8163. 0x286b300000000000ULL,
  8164. -1ULL,
  8165. -1ULL,
  8166. -1ULL
  8167. }
  8168. #endif
  8169. },
  8170. { "xor", TILEGX_OPC_XOR, 0xf, 3, TREG_ZERO, 1,
  8171. { { 8, 9, 16 }, { 6, 7, 17 }, { 10, 11, 18 }, { 12, 13, 19 }, { 0, } },
  8172. #ifndef DISASM_ONLY
  8173. {
  8174. 0xc00000007ffc0000ULL,
  8175. 0xfffe000000000000ULL,
  8176. 0x00000000780c0000ULL,
  8177. 0x3c06000000000000ULL,
  8178. 0ULL
  8179. },
  8180. {
  8181. 0x0000000052800000ULL,
  8182. 0x28d6000000000000ULL,
  8183. 0x00000000500c0000ULL,
  8184. 0x2c06000000000000ULL,
  8185. -1ULL
  8186. }
  8187. #endif
  8188. },
  8189. { "xori", TILEGX_OPC_XORI, 0x3, 3, TREG_ZERO, 1,
  8190. { { 8, 9, 0 }, { 6, 7, 1 }, { 0, }, { 0, }, { 0, } },
  8191. #ifndef DISASM_ONLY
  8192. {
  8193. 0xc00000007ff00000ULL,
  8194. 0xfff8000000000000ULL,
  8195. 0ULL,
  8196. 0ULL,
  8197. 0ULL
  8198. },
  8199. {
  8200. 0x0000000041400000ULL,
  8201. 0x1968000000000000ULL,
  8202. -1ULL,
  8203. -1ULL,
  8204. -1ULL
  8205. }
  8206. #endif
  8207. },
  8208. { NULL, TILEGX_OPC_NONE, 0, 0, TREG_ZERO, 0, { { 0, } },
  8209. #ifndef DISASM_ONLY
  8210. { 0, }, { 0, }
  8211. #endif
  8212. }
  8213. };
  8214. #define BITFIELD(start, size) ((start) | (((1 << (size)) - 1) << 6))
  8215. #define CHILD(array_index) (TILEGX_OPC_NONE + (array_index))
  8216. static const unsigned short decode_X0_fsm[936] =
  8217. {
  8218. BITFIELD(22, 9) /* index 0 */,
  8219. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8220. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8221. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8222. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8223. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8224. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8225. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8226. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8227. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8228. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8229. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8230. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8231. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8232. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8233. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8234. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8235. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8236. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8237. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8238. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8239. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8240. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8241. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8242. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8243. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8244. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8245. CHILD(513), CHILD(513), CHILD(513), CHILD(513), TILEGX_OPC_ADDXLI,
  8246. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8247. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8248. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8249. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8250. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8251. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8252. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8253. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8254. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8255. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8256. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8257. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8258. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8259. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8260. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8261. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_NONE,
  8262. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8263. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8264. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8265. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_BFEXTS,
  8266. TILEGX_OPC_BFEXTS, TILEGX_OPC_BFEXTS, TILEGX_OPC_BFEXTS, TILEGX_OPC_BFEXTU,
  8267. TILEGX_OPC_BFEXTU, TILEGX_OPC_BFEXTU, TILEGX_OPC_BFEXTU, TILEGX_OPC_BFINS,
  8268. TILEGX_OPC_BFINS, TILEGX_OPC_BFINS, TILEGX_OPC_BFINS, TILEGX_OPC_MM,
  8269. TILEGX_OPC_MM, TILEGX_OPC_MM, TILEGX_OPC_MM, TILEGX_OPC_NONE,
  8270. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8271. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8272. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8273. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8274. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8275. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8276. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8277. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, CHILD(528), CHILD(578),
  8278. CHILD(583), CHILD(588), CHILD(593), CHILD(598), TILEGX_OPC_NONE,
  8279. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8280. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8281. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8282. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8283. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8284. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8285. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8286. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8287. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8288. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8289. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8290. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8291. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8292. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8293. TILEGX_OPC_NONE, CHILD(603), CHILD(620), CHILD(637), CHILD(654), CHILD(671),
  8294. CHILD(703), CHILD(797), CHILD(814), CHILD(831), CHILD(848), CHILD(865),
  8295. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8296. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8297. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8298. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8299. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8300. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8301. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8302. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8303. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8304. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8305. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8306. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8307. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8308. TILEGX_OPC_NONE, CHILD(889), TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8309. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8310. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8311. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8312. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8313. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8314. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8315. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8316. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8317. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8318. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8319. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8320. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8321. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8322. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8323. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8324. TILEGX_OPC_NONE, CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906),
  8325. CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906),
  8326. CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906),
  8327. CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906),
  8328. CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906),
  8329. CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906),
  8330. CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906),
  8331. CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906),
  8332. CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906),
  8333. CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906),
  8334. CHILD(906), CHILD(906), CHILD(906), CHILD(906), CHILD(906),
  8335. BITFIELD(6, 2) /* index 513 */,
  8336. TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, CHILD(518),
  8337. BITFIELD(8, 2) /* index 518 */,
  8338. TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, CHILD(523),
  8339. BITFIELD(10, 2) /* index 523 */,
  8340. TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, TILEGX_OPC_MOVELI,
  8341. BITFIELD(20, 2) /* index 528 */,
  8342. TILEGX_OPC_NONE, CHILD(533), TILEGX_OPC_ADDXI, CHILD(548),
  8343. BITFIELD(6, 2) /* index 533 */,
  8344. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, CHILD(538),
  8345. BITFIELD(8, 2) /* index 538 */,
  8346. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, CHILD(543),
  8347. BITFIELD(10, 2) /* index 543 */,
  8348. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_MOVEI,
  8349. BITFIELD(0, 2) /* index 548 */,
  8350. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(553),
  8351. BITFIELD(2, 2) /* index 553 */,
  8352. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(558),
  8353. BITFIELD(4, 2) /* index 558 */,
  8354. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(563),
  8355. BITFIELD(6, 2) /* index 563 */,
  8356. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(568),
  8357. BITFIELD(8, 2) /* index 568 */,
  8358. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(573),
  8359. BITFIELD(10, 2) /* index 573 */,
  8360. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_INFO,
  8361. BITFIELD(20, 2) /* index 578 */,
  8362. TILEGX_OPC_CMPEQI, TILEGX_OPC_CMPLTSI, TILEGX_OPC_CMPLTUI, TILEGX_OPC_ORI,
  8363. BITFIELD(20, 2) /* index 583 */,
  8364. TILEGX_OPC_V1ADDI, TILEGX_OPC_V1CMPEQI, TILEGX_OPC_V1CMPLTSI,
  8365. TILEGX_OPC_V1CMPLTUI,
  8366. BITFIELD(20, 2) /* index 588 */,
  8367. TILEGX_OPC_V1MAXUI, TILEGX_OPC_V1MINUI, TILEGX_OPC_V2ADDI,
  8368. TILEGX_OPC_V2CMPEQI,
  8369. BITFIELD(20, 2) /* index 593 */,
  8370. TILEGX_OPC_V2CMPLTSI, TILEGX_OPC_V2CMPLTUI, TILEGX_OPC_V2MAXSI,
  8371. TILEGX_OPC_V2MINSI,
  8372. BITFIELD(20, 2) /* index 598 */,
  8373. TILEGX_OPC_XORI, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8374. BITFIELD(18, 4) /* index 603 */,
  8375. TILEGX_OPC_NONE, TILEGX_OPC_ADDXSC, TILEGX_OPC_ADDX, TILEGX_OPC_ADD,
  8376. TILEGX_OPC_AND, TILEGX_OPC_CMOVEQZ, TILEGX_OPC_CMOVNEZ, TILEGX_OPC_CMPEQ,
  8377. TILEGX_OPC_CMPLES, TILEGX_OPC_CMPLEU, TILEGX_OPC_CMPLTS, TILEGX_OPC_CMPLTU,
  8378. TILEGX_OPC_CMPNE, TILEGX_OPC_CMULAF, TILEGX_OPC_CMULA, TILEGX_OPC_CMULFR,
  8379. BITFIELD(18, 4) /* index 620 */,
  8380. TILEGX_OPC_CMULF, TILEGX_OPC_CMULHR, TILEGX_OPC_CMULH, TILEGX_OPC_CMUL,
  8381. TILEGX_OPC_CRC32_32, TILEGX_OPC_CRC32_8, TILEGX_OPC_DBLALIGN2,
  8382. TILEGX_OPC_DBLALIGN4, TILEGX_OPC_DBLALIGN6, TILEGX_OPC_DBLALIGN,
  8383. TILEGX_OPC_FDOUBLE_ADDSUB, TILEGX_OPC_FDOUBLE_ADD_FLAGS,
  8384. TILEGX_OPC_FDOUBLE_MUL_FLAGS, TILEGX_OPC_FDOUBLE_PACK1,
  8385. TILEGX_OPC_FDOUBLE_PACK2, TILEGX_OPC_FDOUBLE_SUB_FLAGS,
  8386. BITFIELD(18, 4) /* index 637 */,
  8387. TILEGX_OPC_FDOUBLE_UNPACK_MAX, TILEGX_OPC_FDOUBLE_UNPACK_MIN,
  8388. TILEGX_OPC_FSINGLE_ADD1, TILEGX_OPC_FSINGLE_ADDSUB2,
  8389. TILEGX_OPC_FSINGLE_MUL1, TILEGX_OPC_FSINGLE_MUL2, TILEGX_OPC_FSINGLE_PACK2,
  8390. TILEGX_OPC_FSINGLE_SUB1, TILEGX_OPC_MNZ, TILEGX_OPC_MULAX,
  8391. TILEGX_OPC_MULA_HS_HS, TILEGX_OPC_MULA_HS_HU, TILEGX_OPC_MULA_HS_LS,
  8392. TILEGX_OPC_MULA_HS_LU, TILEGX_OPC_MULA_HU_HU, TILEGX_OPC_MULA_HU_LS,
  8393. BITFIELD(18, 4) /* index 654 */,
  8394. TILEGX_OPC_MULA_HU_LU, TILEGX_OPC_MULA_LS_LS, TILEGX_OPC_MULA_LS_LU,
  8395. TILEGX_OPC_MULA_LU_LU, TILEGX_OPC_MULX, TILEGX_OPC_MUL_HS_HS,
  8396. TILEGX_OPC_MUL_HS_HU, TILEGX_OPC_MUL_HS_LS, TILEGX_OPC_MUL_HS_LU,
  8397. TILEGX_OPC_MUL_HU_HU, TILEGX_OPC_MUL_HU_LS, TILEGX_OPC_MUL_HU_LU,
  8398. TILEGX_OPC_MUL_LS_LS, TILEGX_OPC_MUL_LS_LU, TILEGX_OPC_MUL_LU_LU,
  8399. TILEGX_OPC_MZ,
  8400. BITFIELD(18, 4) /* index 671 */,
  8401. TILEGX_OPC_NOR, CHILD(688), TILEGX_OPC_ROTL, TILEGX_OPC_SHL1ADDX,
  8402. TILEGX_OPC_SHL1ADD, TILEGX_OPC_SHL2ADDX, TILEGX_OPC_SHL2ADD,
  8403. TILEGX_OPC_SHL3ADDX, TILEGX_OPC_SHL3ADD, TILEGX_OPC_SHLX, TILEGX_OPC_SHL,
  8404. TILEGX_OPC_SHRS, TILEGX_OPC_SHRUX, TILEGX_OPC_SHRU, TILEGX_OPC_SHUFFLEBYTES,
  8405. TILEGX_OPC_SUBXSC,
  8406. BITFIELD(12, 2) /* index 688 */,
  8407. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, CHILD(693),
  8408. BITFIELD(14, 2) /* index 693 */,
  8409. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, CHILD(698),
  8410. BITFIELD(16, 2) /* index 698 */,
  8411. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_MOVE,
  8412. BITFIELD(18, 4) /* index 703 */,
  8413. TILEGX_OPC_SUBX, TILEGX_OPC_SUB, CHILD(720), TILEGX_OPC_V1ADDUC,
  8414. TILEGX_OPC_V1ADD, TILEGX_OPC_V1ADIFFU, TILEGX_OPC_V1AVGU,
  8415. TILEGX_OPC_V1CMPEQ, TILEGX_OPC_V1CMPLES, TILEGX_OPC_V1CMPLEU,
  8416. TILEGX_OPC_V1CMPLTS, TILEGX_OPC_V1CMPLTU, TILEGX_OPC_V1CMPNE,
  8417. TILEGX_OPC_V1DDOTPUSA, TILEGX_OPC_V1DDOTPUS, TILEGX_OPC_V1DOTPA,
  8418. BITFIELD(12, 4) /* index 720 */,
  8419. TILEGX_OPC_NONE, CHILD(737), CHILD(742), CHILD(747), CHILD(752), CHILD(757),
  8420. CHILD(762), CHILD(767), CHILD(772), CHILD(777), CHILD(782), CHILD(787),
  8421. CHILD(792), TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8422. BITFIELD(16, 2) /* index 737 */,
  8423. TILEGX_OPC_CLZ, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8424. BITFIELD(16, 2) /* index 742 */,
  8425. TILEGX_OPC_CTZ, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8426. BITFIELD(16, 2) /* index 747 */,
  8427. TILEGX_OPC_FNOP, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8428. BITFIELD(16, 2) /* index 752 */,
  8429. TILEGX_OPC_FSINGLE_PACK1, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8430. BITFIELD(16, 2) /* index 757 */,
  8431. TILEGX_OPC_NOP, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8432. BITFIELD(16, 2) /* index 762 */,
  8433. TILEGX_OPC_PCNT, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8434. BITFIELD(16, 2) /* index 767 */,
  8435. TILEGX_OPC_REVBITS, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8436. BITFIELD(16, 2) /* index 772 */,
  8437. TILEGX_OPC_REVBYTES, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8438. BITFIELD(16, 2) /* index 777 */,
  8439. TILEGX_OPC_TBLIDXB0, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8440. BITFIELD(16, 2) /* index 782 */,
  8441. TILEGX_OPC_TBLIDXB1, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8442. BITFIELD(16, 2) /* index 787 */,
  8443. TILEGX_OPC_TBLIDXB2, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8444. BITFIELD(16, 2) /* index 792 */,
  8445. TILEGX_OPC_TBLIDXB3, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8446. BITFIELD(18, 4) /* index 797 */,
  8447. TILEGX_OPC_V1DOTPUSA, TILEGX_OPC_V1DOTPUS, TILEGX_OPC_V1DOTP,
  8448. TILEGX_OPC_V1INT_H, TILEGX_OPC_V1INT_L, TILEGX_OPC_V1MAXU,
  8449. TILEGX_OPC_V1MINU, TILEGX_OPC_V1MNZ, TILEGX_OPC_V1MULTU, TILEGX_OPC_V1MULUS,
  8450. TILEGX_OPC_V1MULU, TILEGX_OPC_V1MZ, TILEGX_OPC_V1SADAU, TILEGX_OPC_V1SADU,
  8451. TILEGX_OPC_V1SHL, TILEGX_OPC_V1SHRS,
  8452. BITFIELD(18, 4) /* index 814 */,
  8453. TILEGX_OPC_V1SHRU, TILEGX_OPC_V1SUBUC, TILEGX_OPC_V1SUB, TILEGX_OPC_V2ADDSC,
  8454. TILEGX_OPC_V2ADD, TILEGX_OPC_V2ADIFFS, TILEGX_OPC_V2AVGS,
  8455. TILEGX_OPC_V2CMPEQ, TILEGX_OPC_V2CMPLES, TILEGX_OPC_V2CMPLEU,
  8456. TILEGX_OPC_V2CMPLTS, TILEGX_OPC_V2CMPLTU, TILEGX_OPC_V2CMPNE,
  8457. TILEGX_OPC_V2DOTPA, TILEGX_OPC_V2DOTP, TILEGX_OPC_V2INT_H,
  8458. BITFIELD(18, 4) /* index 831 */,
  8459. TILEGX_OPC_V2INT_L, TILEGX_OPC_V2MAXS, TILEGX_OPC_V2MINS, TILEGX_OPC_V2MNZ,
  8460. TILEGX_OPC_V2MULFSC, TILEGX_OPC_V2MULS, TILEGX_OPC_V2MULTS, TILEGX_OPC_V2MZ,
  8461. TILEGX_OPC_V2PACKH, TILEGX_OPC_V2PACKL, TILEGX_OPC_V2PACKUC,
  8462. TILEGX_OPC_V2SADAS, TILEGX_OPC_V2SADAU, TILEGX_OPC_V2SADS,
  8463. TILEGX_OPC_V2SADU, TILEGX_OPC_V2SHLSC,
  8464. BITFIELD(18, 4) /* index 848 */,
  8465. TILEGX_OPC_V2SHL, TILEGX_OPC_V2SHRS, TILEGX_OPC_V2SHRU, TILEGX_OPC_V2SUBSC,
  8466. TILEGX_OPC_V2SUB, TILEGX_OPC_V4ADDSC, TILEGX_OPC_V4ADD, TILEGX_OPC_V4INT_H,
  8467. TILEGX_OPC_V4INT_L, TILEGX_OPC_V4PACKSC, TILEGX_OPC_V4SHLSC,
  8468. TILEGX_OPC_V4SHL, TILEGX_OPC_V4SHRS, TILEGX_OPC_V4SHRU, TILEGX_OPC_V4SUBSC,
  8469. TILEGX_OPC_V4SUB,
  8470. BITFIELD(18, 3) /* index 865 */,
  8471. CHILD(874), CHILD(877), CHILD(880), CHILD(883), CHILD(886), TILEGX_OPC_NONE,
  8472. TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8473. BITFIELD(21, 1) /* index 874 */,
  8474. TILEGX_OPC_XOR, TILEGX_OPC_NONE,
  8475. BITFIELD(21, 1) /* index 877 */,
  8476. TILEGX_OPC_V1DDOTPUA, TILEGX_OPC_NONE,
  8477. BITFIELD(21, 1) /* index 880 */,
  8478. TILEGX_OPC_V1DDOTPU, TILEGX_OPC_NONE,
  8479. BITFIELD(21, 1) /* index 883 */,
  8480. TILEGX_OPC_V1DOTPUA, TILEGX_OPC_NONE,
  8481. BITFIELD(21, 1) /* index 886 */,
  8482. TILEGX_OPC_V1DOTPU, TILEGX_OPC_NONE,
  8483. BITFIELD(18, 4) /* index 889 */,
  8484. TILEGX_OPC_NONE, TILEGX_OPC_ROTLI, TILEGX_OPC_SHLI, TILEGX_OPC_SHLXI,
  8485. TILEGX_OPC_SHRSI, TILEGX_OPC_SHRUI, TILEGX_OPC_SHRUXI, TILEGX_OPC_V1SHLI,
  8486. TILEGX_OPC_V1SHRSI, TILEGX_OPC_V1SHRUI, TILEGX_OPC_V2SHLI,
  8487. TILEGX_OPC_V2SHRSI, TILEGX_OPC_V2SHRUI, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8488. TILEGX_OPC_NONE,
  8489. BITFIELD(0, 2) /* index 906 */,
  8490. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8491. CHILD(911),
  8492. BITFIELD(2, 2) /* index 911 */,
  8493. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8494. CHILD(916),
  8495. BITFIELD(4, 2) /* index 916 */,
  8496. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8497. CHILD(921),
  8498. BITFIELD(6, 2) /* index 921 */,
  8499. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8500. CHILD(926),
  8501. BITFIELD(8, 2) /* index 926 */,
  8502. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8503. CHILD(931),
  8504. BITFIELD(10, 2) /* index 931 */,
  8505. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8506. TILEGX_OPC_INFOL,
  8507. };
  8508. static const unsigned short decode_X1_fsm[1266] =
  8509. {
  8510. BITFIELD(53, 9) /* index 0 */,
  8511. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8512. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8513. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8514. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8515. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8516. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8517. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8518. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8519. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8520. CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513), CHILD(513),
  8521. CHILD(513), CHILD(513), CHILD(513), CHILD(513), TILEGX_OPC_ADDXLI,
  8522. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8523. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8524. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8525. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8526. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8527. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8528. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8529. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8530. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8531. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8532. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8533. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8534. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8535. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8536. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI,
  8537. TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_ADDXLI, TILEGX_OPC_NONE,
  8538. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8539. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8540. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8541. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8542. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8543. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8544. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8545. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_BEQZT,
  8546. TILEGX_OPC_BEQZT, TILEGX_OPC_BEQZ, TILEGX_OPC_BEQZ, TILEGX_OPC_BGEZT,
  8547. TILEGX_OPC_BGEZT, TILEGX_OPC_BGEZ, TILEGX_OPC_BGEZ, TILEGX_OPC_BGTZT,
  8548. TILEGX_OPC_BGTZT, TILEGX_OPC_BGTZ, TILEGX_OPC_BGTZ, TILEGX_OPC_BLBCT,
  8549. TILEGX_OPC_BLBCT, TILEGX_OPC_BLBC, TILEGX_OPC_BLBC, TILEGX_OPC_BLBST,
  8550. TILEGX_OPC_BLBST, TILEGX_OPC_BLBS, TILEGX_OPC_BLBS, TILEGX_OPC_BLEZT,
  8551. TILEGX_OPC_BLEZT, TILEGX_OPC_BLEZ, TILEGX_OPC_BLEZ, TILEGX_OPC_BLTZT,
  8552. TILEGX_OPC_BLTZT, TILEGX_OPC_BLTZ, TILEGX_OPC_BLTZ, TILEGX_OPC_BNEZT,
  8553. TILEGX_OPC_BNEZT, TILEGX_OPC_BNEZ, TILEGX_OPC_BNEZ, CHILD(528), CHILD(578),
  8554. CHILD(598), CHILD(703), CHILD(723), CHILD(728), CHILD(753), CHILD(758),
  8555. CHILD(763), CHILD(768), CHILD(773), CHILD(778), TILEGX_OPC_NONE,
  8556. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8557. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8558. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8559. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8560. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8561. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8562. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8563. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8564. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8565. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8566. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8567. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8568. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_JAL,
  8569. TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL,
  8570. TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL,
  8571. TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL,
  8572. TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL,
  8573. TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL,
  8574. TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL,
  8575. TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL,
  8576. TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_JAL, TILEGX_OPC_J, TILEGX_OPC_J,
  8577. TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J,
  8578. TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J,
  8579. TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J,
  8580. TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J,
  8581. TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J,
  8582. TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J, TILEGX_OPC_J,
  8583. CHILD(783), CHILD(800), CHILD(832), CHILD(849), CHILD(1168), CHILD(1185),
  8584. CHILD(1202), TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8585. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8586. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8587. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8588. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8589. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8590. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8591. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8592. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8593. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8594. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8595. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8596. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8597. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8598. TILEGX_OPC_NONE, TILEGX_OPC_NONE, CHILD(1219), TILEGX_OPC_NONE,
  8599. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8600. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8601. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8602. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8603. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8604. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8605. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8606. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8607. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8608. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8609. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8610. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8611. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8612. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8613. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8614. TILEGX_OPC_NONE, TILEGX_OPC_NONE, CHILD(1236), CHILD(1236), CHILD(1236),
  8615. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8616. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8617. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8618. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8619. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8620. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8621. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8622. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8623. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8624. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8625. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8626. CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236), CHILD(1236),
  8627. CHILD(1236),
  8628. BITFIELD(37, 2) /* index 513 */,
  8629. TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, CHILD(518),
  8630. BITFIELD(39, 2) /* index 518 */,
  8631. TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, CHILD(523),
  8632. BITFIELD(41, 2) /* index 523 */,
  8633. TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, TILEGX_OPC_ADDLI, TILEGX_OPC_MOVELI,
  8634. BITFIELD(51, 2) /* index 528 */,
  8635. TILEGX_OPC_NONE, CHILD(533), TILEGX_OPC_ADDXI, CHILD(548),
  8636. BITFIELD(37, 2) /* index 533 */,
  8637. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, CHILD(538),
  8638. BITFIELD(39, 2) /* index 538 */,
  8639. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, CHILD(543),
  8640. BITFIELD(41, 2) /* index 543 */,
  8641. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_MOVEI,
  8642. BITFIELD(31, 2) /* index 548 */,
  8643. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(553),
  8644. BITFIELD(33, 2) /* index 553 */,
  8645. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(558),
  8646. BITFIELD(35, 2) /* index 558 */,
  8647. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(563),
  8648. BITFIELD(37, 2) /* index 563 */,
  8649. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(568),
  8650. BITFIELD(39, 2) /* index 568 */,
  8651. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(573),
  8652. BITFIELD(41, 2) /* index 573 */,
  8653. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_INFO,
  8654. BITFIELD(51, 2) /* index 578 */,
  8655. TILEGX_OPC_CMPEQI, TILEGX_OPC_CMPLTSI, TILEGX_OPC_CMPLTUI, CHILD(583),
  8656. BITFIELD(31, 2) /* index 583 */,
  8657. TILEGX_OPC_LD1S_ADD, TILEGX_OPC_LD1S_ADD, TILEGX_OPC_LD1S_ADD, CHILD(588),
  8658. BITFIELD(33, 2) /* index 588 */,
  8659. TILEGX_OPC_LD1S_ADD, TILEGX_OPC_LD1S_ADD, TILEGX_OPC_LD1S_ADD, CHILD(593),
  8660. BITFIELD(35, 2) /* index 593 */,
  8661. TILEGX_OPC_LD1S_ADD, TILEGX_OPC_LD1S_ADD, TILEGX_OPC_LD1S_ADD,
  8662. TILEGX_OPC_PREFETCH_ADD_L1_FAULT,
  8663. BITFIELD(51, 2) /* index 598 */,
  8664. CHILD(603), CHILD(618), CHILD(633), CHILD(648),
  8665. BITFIELD(31, 2) /* index 603 */,
  8666. TILEGX_OPC_LD1U_ADD, TILEGX_OPC_LD1U_ADD, TILEGX_OPC_LD1U_ADD, CHILD(608),
  8667. BITFIELD(33, 2) /* index 608 */,
  8668. TILEGX_OPC_LD1U_ADD, TILEGX_OPC_LD1U_ADD, TILEGX_OPC_LD1U_ADD, CHILD(613),
  8669. BITFIELD(35, 2) /* index 613 */,
  8670. TILEGX_OPC_LD1U_ADD, TILEGX_OPC_LD1U_ADD, TILEGX_OPC_LD1U_ADD,
  8671. TILEGX_OPC_PREFETCH_ADD_L1,
  8672. BITFIELD(31, 2) /* index 618 */,
  8673. TILEGX_OPC_LD2S_ADD, TILEGX_OPC_LD2S_ADD, TILEGX_OPC_LD2S_ADD, CHILD(623),
  8674. BITFIELD(33, 2) /* index 623 */,
  8675. TILEGX_OPC_LD2S_ADD, TILEGX_OPC_LD2S_ADD, TILEGX_OPC_LD2S_ADD, CHILD(628),
  8676. BITFIELD(35, 2) /* index 628 */,
  8677. TILEGX_OPC_LD2S_ADD, TILEGX_OPC_LD2S_ADD, TILEGX_OPC_LD2S_ADD,
  8678. TILEGX_OPC_PREFETCH_ADD_L2_FAULT,
  8679. BITFIELD(31, 2) /* index 633 */,
  8680. TILEGX_OPC_LD2U_ADD, TILEGX_OPC_LD2U_ADD, TILEGX_OPC_LD2U_ADD, CHILD(638),
  8681. BITFIELD(33, 2) /* index 638 */,
  8682. TILEGX_OPC_LD2U_ADD, TILEGX_OPC_LD2U_ADD, TILEGX_OPC_LD2U_ADD, CHILD(643),
  8683. BITFIELD(35, 2) /* index 643 */,
  8684. TILEGX_OPC_LD2U_ADD, TILEGX_OPC_LD2U_ADD, TILEGX_OPC_LD2U_ADD,
  8685. TILEGX_OPC_PREFETCH_ADD_L2,
  8686. BITFIELD(31, 2) /* index 648 */,
  8687. CHILD(653), CHILD(653), CHILD(653), CHILD(673),
  8688. BITFIELD(43, 2) /* index 653 */,
  8689. CHILD(658), TILEGX_OPC_LD4S_ADD, TILEGX_OPC_LD4S_ADD, TILEGX_OPC_LD4S_ADD,
  8690. BITFIELD(45, 2) /* index 658 */,
  8691. CHILD(663), TILEGX_OPC_LD4S_ADD, TILEGX_OPC_LD4S_ADD, TILEGX_OPC_LD4S_ADD,
  8692. BITFIELD(47, 2) /* index 663 */,
  8693. CHILD(668), TILEGX_OPC_LD4S_ADD, TILEGX_OPC_LD4S_ADD, TILEGX_OPC_LD4S_ADD,
  8694. BITFIELD(49, 2) /* index 668 */,
  8695. TILEGX_OPC_LD4S_TLS, TILEGX_OPC_LD4S_ADD, TILEGX_OPC_LD4S_ADD,
  8696. TILEGX_OPC_LD4S_ADD,
  8697. BITFIELD(33, 2) /* index 673 */,
  8698. CHILD(653), CHILD(653), CHILD(653), CHILD(678),
  8699. BITFIELD(35, 2) /* index 678 */,
  8700. CHILD(653), CHILD(653), CHILD(653), CHILD(683),
  8701. BITFIELD(43, 2) /* index 683 */,
  8702. CHILD(688), TILEGX_OPC_PREFETCH_ADD_L3_FAULT,
  8703. TILEGX_OPC_PREFETCH_ADD_L3_FAULT, TILEGX_OPC_PREFETCH_ADD_L3_FAULT,
  8704. BITFIELD(45, 2) /* index 688 */,
  8705. CHILD(693), TILEGX_OPC_PREFETCH_ADD_L3_FAULT,
  8706. TILEGX_OPC_PREFETCH_ADD_L3_FAULT, TILEGX_OPC_PREFETCH_ADD_L3_FAULT,
  8707. BITFIELD(47, 2) /* index 693 */,
  8708. CHILD(698), TILEGX_OPC_PREFETCH_ADD_L3_FAULT,
  8709. TILEGX_OPC_PREFETCH_ADD_L3_FAULT, TILEGX_OPC_PREFETCH_ADD_L3_FAULT,
  8710. BITFIELD(49, 2) /* index 698 */,
  8711. TILEGX_OPC_LD4S_TLS, TILEGX_OPC_PREFETCH_ADD_L3_FAULT,
  8712. TILEGX_OPC_PREFETCH_ADD_L3_FAULT, TILEGX_OPC_PREFETCH_ADD_L3_FAULT,
  8713. BITFIELD(51, 2) /* index 703 */,
  8714. CHILD(708), TILEGX_OPC_LDNT1S_ADD, TILEGX_OPC_LDNT1U_ADD,
  8715. TILEGX_OPC_LDNT2S_ADD,
  8716. BITFIELD(31, 2) /* index 708 */,
  8717. TILEGX_OPC_LD4U_ADD, TILEGX_OPC_LD4U_ADD, TILEGX_OPC_LD4U_ADD, CHILD(713),
  8718. BITFIELD(33, 2) /* index 713 */,
  8719. TILEGX_OPC_LD4U_ADD, TILEGX_OPC_LD4U_ADD, TILEGX_OPC_LD4U_ADD, CHILD(718),
  8720. BITFIELD(35, 2) /* index 718 */,
  8721. TILEGX_OPC_LD4U_ADD, TILEGX_OPC_LD4U_ADD, TILEGX_OPC_LD4U_ADD,
  8722. TILEGX_OPC_PREFETCH_ADD_L3,
  8723. BITFIELD(51, 2) /* index 723 */,
  8724. TILEGX_OPC_LDNT2U_ADD, TILEGX_OPC_LDNT4S_ADD, TILEGX_OPC_LDNT4U_ADD,
  8725. TILEGX_OPC_LDNT_ADD,
  8726. BITFIELD(51, 2) /* index 728 */,
  8727. CHILD(733), TILEGX_OPC_LDNA_ADD, TILEGX_OPC_MFSPR, TILEGX_OPC_MTSPR,
  8728. BITFIELD(43, 2) /* index 733 */,
  8729. CHILD(738), TILEGX_OPC_LD_ADD, TILEGX_OPC_LD_ADD, TILEGX_OPC_LD_ADD,
  8730. BITFIELD(45, 2) /* index 738 */,
  8731. CHILD(743), TILEGX_OPC_LD_ADD, TILEGX_OPC_LD_ADD, TILEGX_OPC_LD_ADD,
  8732. BITFIELD(47, 2) /* index 743 */,
  8733. CHILD(748), TILEGX_OPC_LD_ADD, TILEGX_OPC_LD_ADD, TILEGX_OPC_LD_ADD,
  8734. BITFIELD(49, 2) /* index 748 */,
  8735. TILEGX_OPC_LD_TLS, TILEGX_OPC_LD_ADD, TILEGX_OPC_LD_ADD, TILEGX_OPC_LD_ADD,
  8736. BITFIELD(51, 2) /* index 753 */,
  8737. TILEGX_OPC_ORI, TILEGX_OPC_ST1_ADD, TILEGX_OPC_ST2_ADD, TILEGX_OPC_ST4_ADD,
  8738. BITFIELD(51, 2) /* index 758 */,
  8739. TILEGX_OPC_STNT1_ADD, TILEGX_OPC_STNT2_ADD, TILEGX_OPC_STNT4_ADD,
  8740. TILEGX_OPC_STNT_ADD,
  8741. BITFIELD(51, 2) /* index 763 */,
  8742. TILEGX_OPC_ST_ADD, TILEGX_OPC_V1ADDI, TILEGX_OPC_V1CMPEQI,
  8743. TILEGX_OPC_V1CMPLTSI,
  8744. BITFIELD(51, 2) /* index 768 */,
  8745. TILEGX_OPC_V1CMPLTUI, TILEGX_OPC_V1MAXUI, TILEGX_OPC_V1MINUI,
  8746. TILEGX_OPC_V2ADDI,
  8747. BITFIELD(51, 2) /* index 773 */,
  8748. TILEGX_OPC_V2CMPEQI, TILEGX_OPC_V2CMPLTSI, TILEGX_OPC_V2CMPLTUI,
  8749. TILEGX_OPC_V2MAXSI,
  8750. BITFIELD(51, 2) /* index 778 */,
  8751. TILEGX_OPC_V2MINSI, TILEGX_OPC_XORI, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8752. BITFIELD(49, 4) /* index 783 */,
  8753. TILEGX_OPC_NONE, TILEGX_OPC_ADDXSC, TILEGX_OPC_ADDX, TILEGX_OPC_ADD,
  8754. TILEGX_OPC_AND, TILEGX_OPC_CMPEQ, TILEGX_OPC_CMPEXCH4, TILEGX_OPC_CMPEXCH,
  8755. TILEGX_OPC_CMPLES, TILEGX_OPC_CMPLEU, TILEGX_OPC_CMPLTS, TILEGX_OPC_CMPLTU,
  8756. TILEGX_OPC_CMPNE, TILEGX_OPC_DBLALIGN2, TILEGX_OPC_DBLALIGN4,
  8757. TILEGX_OPC_DBLALIGN6,
  8758. BITFIELD(49, 4) /* index 800 */,
  8759. TILEGX_OPC_EXCH4, TILEGX_OPC_EXCH, TILEGX_OPC_FETCHADD4,
  8760. TILEGX_OPC_FETCHADDGEZ4, TILEGX_OPC_FETCHADDGEZ, TILEGX_OPC_FETCHADD,
  8761. TILEGX_OPC_FETCHAND4, TILEGX_OPC_FETCHAND, TILEGX_OPC_FETCHOR4,
  8762. TILEGX_OPC_FETCHOR, TILEGX_OPC_MNZ, TILEGX_OPC_MZ, TILEGX_OPC_NOR,
  8763. CHILD(817), TILEGX_OPC_ROTL, TILEGX_OPC_SHL1ADDX,
  8764. BITFIELD(43, 2) /* index 817 */,
  8765. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, CHILD(822),
  8766. BITFIELD(45, 2) /* index 822 */,
  8767. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, CHILD(827),
  8768. BITFIELD(47, 2) /* index 827 */,
  8769. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_MOVE,
  8770. BITFIELD(49, 4) /* index 832 */,
  8771. TILEGX_OPC_SHL1ADD, TILEGX_OPC_SHL2ADDX, TILEGX_OPC_SHL2ADD,
  8772. TILEGX_OPC_SHL3ADDX, TILEGX_OPC_SHL3ADD, TILEGX_OPC_SHLX, TILEGX_OPC_SHL,
  8773. TILEGX_OPC_SHRS, TILEGX_OPC_SHRUX, TILEGX_OPC_SHRU, TILEGX_OPC_ST1,
  8774. TILEGX_OPC_ST2, TILEGX_OPC_ST4, TILEGX_OPC_STNT1, TILEGX_OPC_STNT2,
  8775. TILEGX_OPC_STNT4,
  8776. BITFIELD(46, 7) /* index 849 */,
  8777. TILEGX_OPC_STNT, TILEGX_OPC_STNT, TILEGX_OPC_STNT, TILEGX_OPC_STNT,
  8778. TILEGX_OPC_STNT, TILEGX_OPC_STNT, TILEGX_OPC_STNT, TILEGX_OPC_STNT,
  8779. TILEGX_OPC_ST, TILEGX_OPC_ST, TILEGX_OPC_ST, TILEGX_OPC_ST, TILEGX_OPC_ST,
  8780. TILEGX_OPC_ST, TILEGX_OPC_ST, TILEGX_OPC_ST, TILEGX_OPC_SUBXSC,
  8781. TILEGX_OPC_SUBXSC, TILEGX_OPC_SUBXSC, TILEGX_OPC_SUBXSC, TILEGX_OPC_SUBXSC,
  8782. TILEGX_OPC_SUBXSC, TILEGX_OPC_SUBXSC, TILEGX_OPC_SUBXSC, TILEGX_OPC_SUBX,
  8783. TILEGX_OPC_SUBX, TILEGX_OPC_SUBX, TILEGX_OPC_SUBX, TILEGX_OPC_SUBX,
  8784. TILEGX_OPC_SUBX, TILEGX_OPC_SUBX, TILEGX_OPC_SUBX, TILEGX_OPC_SUB,
  8785. TILEGX_OPC_SUB, TILEGX_OPC_SUB, TILEGX_OPC_SUB, TILEGX_OPC_SUB,
  8786. TILEGX_OPC_SUB, TILEGX_OPC_SUB, TILEGX_OPC_SUB, CHILD(978), CHILD(987),
  8787. CHILD(1066), CHILD(1150), CHILD(1159), TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8788. TILEGX_OPC_NONE, TILEGX_OPC_V1ADDUC, TILEGX_OPC_V1ADDUC, TILEGX_OPC_V1ADDUC,
  8789. TILEGX_OPC_V1ADDUC, TILEGX_OPC_V1ADDUC, TILEGX_OPC_V1ADDUC,
  8790. TILEGX_OPC_V1ADDUC, TILEGX_OPC_V1ADDUC, TILEGX_OPC_V1ADD, TILEGX_OPC_V1ADD,
  8791. TILEGX_OPC_V1ADD, TILEGX_OPC_V1ADD, TILEGX_OPC_V1ADD, TILEGX_OPC_V1ADD,
  8792. TILEGX_OPC_V1ADD, TILEGX_OPC_V1ADD, TILEGX_OPC_V1CMPEQ, TILEGX_OPC_V1CMPEQ,
  8793. TILEGX_OPC_V1CMPEQ, TILEGX_OPC_V1CMPEQ, TILEGX_OPC_V1CMPEQ,
  8794. TILEGX_OPC_V1CMPEQ, TILEGX_OPC_V1CMPEQ, TILEGX_OPC_V1CMPEQ,
  8795. TILEGX_OPC_V1CMPLES, TILEGX_OPC_V1CMPLES, TILEGX_OPC_V1CMPLES,
  8796. TILEGX_OPC_V1CMPLES, TILEGX_OPC_V1CMPLES, TILEGX_OPC_V1CMPLES,
  8797. TILEGX_OPC_V1CMPLES, TILEGX_OPC_V1CMPLES, TILEGX_OPC_V1CMPLEU,
  8798. TILEGX_OPC_V1CMPLEU, TILEGX_OPC_V1CMPLEU, TILEGX_OPC_V1CMPLEU,
  8799. TILEGX_OPC_V1CMPLEU, TILEGX_OPC_V1CMPLEU, TILEGX_OPC_V1CMPLEU,
  8800. TILEGX_OPC_V1CMPLEU, TILEGX_OPC_V1CMPLTS, TILEGX_OPC_V1CMPLTS,
  8801. TILEGX_OPC_V1CMPLTS, TILEGX_OPC_V1CMPLTS, TILEGX_OPC_V1CMPLTS,
  8802. TILEGX_OPC_V1CMPLTS, TILEGX_OPC_V1CMPLTS, TILEGX_OPC_V1CMPLTS,
  8803. TILEGX_OPC_V1CMPLTU, TILEGX_OPC_V1CMPLTU, TILEGX_OPC_V1CMPLTU,
  8804. TILEGX_OPC_V1CMPLTU, TILEGX_OPC_V1CMPLTU, TILEGX_OPC_V1CMPLTU,
  8805. TILEGX_OPC_V1CMPLTU, TILEGX_OPC_V1CMPLTU, TILEGX_OPC_V1CMPNE,
  8806. TILEGX_OPC_V1CMPNE, TILEGX_OPC_V1CMPNE, TILEGX_OPC_V1CMPNE,
  8807. TILEGX_OPC_V1CMPNE, TILEGX_OPC_V1CMPNE, TILEGX_OPC_V1CMPNE,
  8808. TILEGX_OPC_V1CMPNE, TILEGX_OPC_V1INT_H, TILEGX_OPC_V1INT_H,
  8809. TILEGX_OPC_V1INT_H, TILEGX_OPC_V1INT_H, TILEGX_OPC_V1INT_H,
  8810. TILEGX_OPC_V1INT_H, TILEGX_OPC_V1INT_H, TILEGX_OPC_V1INT_H,
  8811. TILEGX_OPC_V1INT_L, TILEGX_OPC_V1INT_L, TILEGX_OPC_V1INT_L,
  8812. TILEGX_OPC_V1INT_L, TILEGX_OPC_V1INT_L, TILEGX_OPC_V1INT_L,
  8813. TILEGX_OPC_V1INT_L, TILEGX_OPC_V1INT_L,
  8814. BITFIELD(43, 3) /* index 978 */,
  8815. TILEGX_OPC_NONE, TILEGX_OPC_DRAIN, TILEGX_OPC_DTLBPR, TILEGX_OPC_FINV,
  8816. TILEGX_OPC_FLUSHWB, TILEGX_OPC_FLUSH, TILEGX_OPC_FNOP, TILEGX_OPC_ICOH,
  8817. BITFIELD(43, 3) /* index 987 */,
  8818. CHILD(996), TILEGX_OPC_INV, TILEGX_OPC_IRET, TILEGX_OPC_JALRP,
  8819. TILEGX_OPC_JALR, TILEGX_OPC_JRP, TILEGX_OPC_JR, CHILD(1051),
  8820. BITFIELD(31, 2) /* index 996 */,
  8821. CHILD(1001), CHILD(1026), TILEGX_OPC_ILL, TILEGX_OPC_ILL,
  8822. BITFIELD(33, 2) /* index 1001 */,
  8823. TILEGX_OPC_ILL, TILEGX_OPC_ILL, TILEGX_OPC_ILL, CHILD(1006),
  8824. BITFIELD(35, 2) /* index 1006 */,
  8825. TILEGX_OPC_ILL, CHILD(1011), TILEGX_OPC_ILL, TILEGX_OPC_ILL,
  8826. BITFIELD(37, 2) /* index 1011 */,
  8827. TILEGX_OPC_ILL, CHILD(1016), TILEGX_OPC_ILL, TILEGX_OPC_ILL,
  8828. BITFIELD(39, 2) /* index 1016 */,
  8829. TILEGX_OPC_ILL, CHILD(1021), TILEGX_OPC_ILL, TILEGX_OPC_ILL,
  8830. BITFIELD(41, 2) /* index 1021 */,
  8831. TILEGX_OPC_ILL, TILEGX_OPC_ILL, TILEGX_OPC_BPT, TILEGX_OPC_ILL,
  8832. BITFIELD(33, 2) /* index 1026 */,
  8833. TILEGX_OPC_ILL, TILEGX_OPC_ILL, TILEGX_OPC_ILL, CHILD(1031),
  8834. BITFIELD(35, 2) /* index 1031 */,
  8835. TILEGX_OPC_ILL, CHILD(1036), TILEGX_OPC_ILL, TILEGX_OPC_ILL,
  8836. BITFIELD(37, 2) /* index 1036 */,
  8837. TILEGX_OPC_ILL, CHILD(1041), TILEGX_OPC_ILL, TILEGX_OPC_ILL,
  8838. BITFIELD(39, 2) /* index 1041 */,
  8839. TILEGX_OPC_ILL, CHILD(1046), TILEGX_OPC_ILL, TILEGX_OPC_ILL,
  8840. BITFIELD(41, 2) /* index 1046 */,
  8841. TILEGX_OPC_ILL, TILEGX_OPC_ILL, TILEGX_OPC_RAISE, TILEGX_OPC_ILL,
  8842. BITFIELD(31, 2) /* index 1051 */,
  8843. TILEGX_OPC_LD1S, TILEGX_OPC_LD1S, TILEGX_OPC_LD1S, CHILD(1056),
  8844. BITFIELD(33, 2) /* index 1056 */,
  8845. TILEGX_OPC_LD1S, TILEGX_OPC_LD1S, TILEGX_OPC_LD1S, CHILD(1061),
  8846. BITFIELD(35, 2) /* index 1061 */,
  8847. TILEGX_OPC_LD1S, TILEGX_OPC_LD1S, TILEGX_OPC_LD1S,
  8848. TILEGX_OPC_PREFETCH_L1_FAULT,
  8849. BITFIELD(43, 3) /* index 1066 */,
  8850. CHILD(1075), CHILD(1090), CHILD(1105), CHILD(1120), CHILD(1135),
  8851. TILEGX_OPC_LDNA, TILEGX_OPC_LDNT1S, TILEGX_OPC_LDNT1U,
  8852. BITFIELD(31, 2) /* index 1075 */,
  8853. TILEGX_OPC_LD1U, TILEGX_OPC_LD1U, TILEGX_OPC_LD1U, CHILD(1080),
  8854. BITFIELD(33, 2) /* index 1080 */,
  8855. TILEGX_OPC_LD1U, TILEGX_OPC_LD1U, TILEGX_OPC_LD1U, CHILD(1085),
  8856. BITFIELD(35, 2) /* index 1085 */,
  8857. TILEGX_OPC_LD1U, TILEGX_OPC_LD1U, TILEGX_OPC_LD1U, TILEGX_OPC_PREFETCH,
  8858. BITFIELD(31, 2) /* index 1090 */,
  8859. TILEGX_OPC_LD2S, TILEGX_OPC_LD2S, TILEGX_OPC_LD2S, CHILD(1095),
  8860. BITFIELD(33, 2) /* index 1095 */,
  8861. TILEGX_OPC_LD2S, TILEGX_OPC_LD2S, TILEGX_OPC_LD2S, CHILD(1100),
  8862. BITFIELD(35, 2) /* index 1100 */,
  8863. TILEGX_OPC_LD2S, TILEGX_OPC_LD2S, TILEGX_OPC_LD2S,
  8864. TILEGX_OPC_PREFETCH_L2_FAULT,
  8865. BITFIELD(31, 2) /* index 1105 */,
  8866. TILEGX_OPC_LD2U, TILEGX_OPC_LD2U, TILEGX_OPC_LD2U, CHILD(1110),
  8867. BITFIELD(33, 2) /* index 1110 */,
  8868. TILEGX_OPC_LD2U, TILEGX_OPC_LD2U, TILEGX_OPC_LD2U, CHILD(1115),
  8869. BITFIELD(35, 2) /* index 1115 */,
  8870. TILEGX_OPC_LD2U, TILEGX_OPC_LD2U, TILEGX_OPC_LD2U, TILEGX_OPC_PREFETCH_L2,
  8871. BITFIELD(31, 2) /* index 1120 */,
  8872. TILEGX_OPC_LD4S, TILEGX_OPC_LD4S, TILEGX_OPC_LD4S, CHILD(1125),
  8873. BITFIELD(33, 2) /* index 1125 */,
  8874. TILEGX_OPC_LD4S, TILEGX_OPC_LD4S, TILEGX_OPC_LD4S, CHILD(1130),
  8875. BITFIELD(35, 2) /* index 1130 */,
  8876. TILEGX_OPC_LD4S, TILEGX_OPC_LD4S, TILEGX_OPC_LD4S,
  8877. TILEGX_OPC_PREFETCH_L3_FAULT,
  8878. BITFIELD(31, 2) /* index 1135 */,
  8879. TILEGX_OPC_LD4U, TILEGX_OPC_LD4U, TILEGX_OPC_LD4U, CHILD(1140),
  8880. BITFIELD(33, 2) /* index 1140 */,
  8881. TILEGX_OPC_LD4U, TILEGX_OPC_LD4U, TILEGX_OPC_LD4U, CHILD(1145),
  8882. BITFIELD(35, 2) /* index 1145 */,
  8883. TILEGX_OPC_LD4U, TILEGX_OPC_LD4U, TILEGX_OPC_LD4U, TILEGX_OPC_PREFETCH_L3,
  8884. BITFIELD(43, 3) /* index 1150 */,
  8885. TILEGX_OPC_LDNT2S, TILEGX_OPC_LDNT2U, TILEGX_OPC_LDNT4S, TILEGX_OPC_LDNT4U,
  8886. TILEGX_OPC_LDNT, TILEGX_OPC_LD, TILEGX_OPC_LNK, TILEGX_OPC_MF,
  8887. BITFIELD(43, 3) /* index 1159 */,
  8888. TILEGX_OPC_NAP, TILEGX_OPC_NOP, TILEGX_OPC_SWINT0, TILEGX_OPC_SWINT1,
  8889. TILEGX_OPC_SWINT2, TILEGX_OPC_SWINT3, TILEGX_OPC_WH64, TILEGX_OPC_NONE,
  8890. BITFIELD(49, 4) /* index 1168 */,
  8891. TILEGX_OPC_V1MAXU, TILEGX_OPC_V1MINU, TILEGX_OPC_V1MNZ, TILEGX_OPC_V1MZ,
  8892. TILEGX_OPC_V1SHL, TILEGX_OPC_V1SHRS, TILEGX_OPC_V1SHRU, TILEGX_OPC_V1SUBUC,
  8893. TILEGX_OPC_V1SUB, TILEGX_OPC_V2ADDSC, TILEGX_OPC_V2ADD, TILEGX_OPC_V2CMPEQ,
  8894. TILEGX_OPC_V2CMPLES, TILEGX_OPC_V2CMPLEU, TILEGX_OPC_V2CMPLTS,
  8895. TILEGX_OPC_V2CMPLTU,
  8896. BITFIELD(49, 4) /* index 1185 */,
  8897. TILEGX_OPC_V2CMPNE, TILEGX_OPC_V2INT_H, TILEGX_OPC_V2INT_L,
  8898. TILEGX_OPC_V2MAXS, TILEGX_OPC_V2MINS, TILEGX_OPC_V2MNZ, TILEGX_OPC_V2MZ,
  8899. TILEGX_OPC_V2PACKH, TILEGX_OPC_V2PACKL, TILEGX_OPC_V2PACKUC,
  8900. TILEGX_OPC_V2SHLSC, TILEGX_OPC_V2SHL, TILEGX_OPC_V2SHRS, TILEGX_OPC_V2SHRU,
  8901. TILEGX_OPC_V2SUBSC, TILEGX_OPC_V2SUB,
  8902. BITFIELD(49, 4) /* index 1202 */,
  8903. TILEGX_OPC_V4ADDSC, TILEGX_OPC_V4ADD, TILEGX_OPC_V4INT_H,
  8904. TILEGX_OPC_V4INT_L, TILEGX_OPC_V4PACKSC, TILEGX_OPC_V4SHLSC,
  8905. TILEGX_OPC_V4SHL, TILEGX_OPC_V4SHRS, TILEGX_OPC_V4SHRU, TILEGX_OPC_V4SUBSC,
  8906. TILEGX_OPC_V4SUB, TILEGX_OPC_XOR, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8907. TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8908. BITFIELD(49, 4) /* index 1219 */,
  8909. TILEGX_OPC_NONE, TILEGX_OPC_ROTLI, TILEGX_OPC_SHLI, TILEGX_OPC_SHLXI,
  8910. TILEGX_OPC_SHRSI, TILEGX_OPC_SHRUI, TILEGX_OPC_SHRUXI, TILEGX_OPC_V1SHLI,
  8911. TILEGX_OPC_V1SHRSI, TILEGX_OPC_V1SHRUI, TILEGX_OPC_V2SHLI,
  8912. TILEGX_OPC_V2SHRSI, TILEGX_OPC_V2SHRUI, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8913. TILEGX_OPC_NONE,
  8914. BITFIELD(31, 2) /* index 1236 */,
  8915. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8916. CHILD(1241),
  8917. BITFIELD(33, 2) /* index 1241 */,
  8918. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8919. CHILD(1246),
  8920. BITFIELD(35, 2) /* index 1246 */,
  8921. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8922. CHILD(1251),
  8923. BITFIELD(37, 2) /* index 1251 */,
  8924. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8925. CHILD(1256),
  8926. BITFIELD(39, 2) /* index 1256 */,
  8927. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8928. CHILD(1261),
  8929. BITFIELD(41, 2) /* index 1261 */,
  8930. TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI, TILEGX_OPC_SHL16INSLI,
  8931. TILEGX_OPC_INFOL,
  8932. };
  8933. static const unsigned short decode_Y0_fsm[178] =
  8934. {
  8935. BITFIELD(27, 4) /* index 0 */,
  8936. CHILD(17), TILEGX_OPC_ADDXI, CHILD(32), TILEGX_OPC_CMPEQI,
  8937. TILEGX_OPC_CMPLTSI, CHILD(62), CHILD(67), CHILD(118), CHILD(123),
  8938. CHILD(128), CHILD(133), CHILD(153), CHILD(158), CHILD(163), CHILD(168),
  8939. CHILD(173),
  8940. BITFIELD(6, 2) /* index 17 */,
  8941. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, CHILD(22),
  8942. BITFIELD(8, 2) /* index 22 */,
  8943. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, CHILD(27),
  8944. BITFIELD(10, 2) /* index 27 */,
  8945. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_MOVEI,
  8946. BITFIELD(0, 2) /* index 32 */,
  8947. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(37),
  8948. BITFIELD(2, 2) /* index 37 */,
  8949. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(42),
  8950. BITFIELD(4, 2) /* index 42 */,
  8951. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(47),
  8952. BITFIELD(6, 2) /* index 47 */,
  8953. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(52),
  8954. BITFIELD(8, 2) /* index 52 */,
  8955. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(57),
  8956. BITFIELD(10, 2) /* index 57 */,
  8957. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_INFO,
  8958. BITFIELD(18, 2) /* index 62 */,
  8959. TILEGX_OPC_ADDX, TILEGX_OPC_ADD, TILEGX_OPC_SUBX, TILEGX_OPC_SUB,
  8960. BITFIELD(15, 5) /* index 67 */,
  8961. TILEGX_OPC_SHL1ADD, TILEGX_OPC_SHL1ADD, TILEGX_OPC_SHL1ADD,
  8962. TILEGX_OPC_SHL1ADD, TILEGX_OPC_SHL1ADD, TILEGX_OPC_SHL1ADD,
  8963. TILEGX_OPC_SHL1ADD, TILEGX_OPC_SHL1ADD, TILEGX_OPC_SHL2ADD,
  8964. TILEGX_OPC_SHL2ADD, TILEGX_OPC_SHL2ADD, TILEGX_OPC_SHL2ADD,
  8965. TILEGX_OPC_SHL2ADD, TILEGX_OPC_SHL2ADD, TILEGX_OPC_SHL2ADD,
  8966. TILEGX_OPC_SHL2ADD, TILEGX_OPC_SHL3ADD, TILEGX_OPC_SHL3ADD,
  8967. TILEGX_OPC_SHL3ADD, TILEGX_OPC_SHL3ADD, TILEGX_OPC_SHL3ADD,
  8968. TILEGX_OPC_SHL3ADD, TILEGX_OPC_SHL3ADD, TILEGX_OPC_SHL3ADD, CHILD(100),
  8969. CHILD(109), TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8970. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8971. BITFIELD(12, 3) /* index 100 */,
  8972. TILEGX_OPC_NONE, TILEGX_OPC_CLZ, TILEGX_OPC_CTZ, TILEGX_OPC_FNOP,
  8973. TILEGX_OPC_FSINGLE_PACK1, TILEGX_OPC_NOP, TILEGX_OPC_PCNT,
  8974. TILEGX_OPC_REVBITS,
  8975. BITFIELD(12, 3) /* index 109 */,
  8976. TILEGX_OPC_REVBYTES, TILEGX_OPC_TBLIDXB0, TILEGX_OPC_TBLIDXB1,
  8977. TILEGX_OPC_TBLIDXB2, TILEGX_OPC_TBLIDXB3, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  8978. TILEGX_OPC_NONE,
  8979. BITFIELD(18, 2) /* index 118 */,
  8980. TILEGX_OPC_CMPLES, TILEGX_OPC_CMPLEU, TILEGX_OPC_CMPLTS, TILEGX_OPC_CMPLTU,
  8981. BITFIELD(18, 2) /* index 123 */,
  8982. TILEGX_OPC_CMPEQ, TILEGX_OPC_CMPNE, TILEGX_OPC_MULAX, TILEGX_OPC_MULX,
  8983. BITFIELD(18, 2) /* index 128 */,
  8984. TILEGX_OPC_CMOVEQZ, TILEGX_OPC_CMOVNEZ, TILEGX_OPC_MNZ, TILEGX_OPC_MZ,
  8985. BITFIELD(18, 2) /* index 133 */,
  8986. TILEGX_OPC_AND, TILEGX_OPC_NOR, CHILD(138), TILEGX_OPC_XOR,
  8987. BITFIELD(12, 2) /* index 138 */,
  8988. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, CHILD(143),
  8989. BITFIELD(14, 2) /* index 143 */,
  8990. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, CHILD(148),
  8991. BITFIELD(16, 2) /* index 148 */,
  8992. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_MOVE,
  8993. BITFIELD(18, 2) /* index 153 */,
  8994. TILEGX_OPC_ROTL, TILEGX_OPC_SHL, TILEGX_OPC_SHRS, TILEGX_OPC_SHRU,
  8995. BITFIELD(18, 2) /* index 158 */,
  8996. TILEGX_OPC_NONE, TILEGX_OPC_SHL1ADDX, TILEGX_OPC_SHL2ADDX,
  8997. TILEGX_OPC_SHL3ADDX,
  8998. BITFIELD(18, 2) /* index 163 */,
  8999. TILEGX_OPC_MUL_HS_HS, TILEGX_OPC_MUL_HU_HU, TILEGX_OPC_MUL_LS_LS,
  9000. TILEGX_OPC_MUL_LU_LU,
  9001. BITFIELD(18, 2) /* index 168 */,
  9002. TILEGX_OPC_MULA_HS_HS, TILEGX_OPC_MULA_HU_HU, TILEGX_OPC_MULA_LS_LS,
  9003. TILEGX_OPC_MULA_LU_LU,
  9004. BITFIELD(18, 2) /* index 173 */,
  9005. TILEGX_OPC_ROTLI, TILEGX_OPC_SHLI, TILEGX_OPC_SHRSI, TILEGX_OPC_SHRUI,
  9006. };
  9007. static const unsigned short decode_Y1_fsm[167] =
  9008. {
  9009. BITFIELD(58, 4) /* index 0 */,
  9010. TILEGX_OPC_NONE, CHILD(17), TILEGX_OPC_ADDXI, CHILD(32), TILEGX_OPC_CMPEQI,
  9011. TILEGX_OPC_CMPLTSI, CHILD(62), CHILD(67), CHILD(117), CHILD(122),
  9012. CHILD(127), CHILD(132), CHILD(152), CHILD(157), CHILD(162), TILEGX_OPC_NONE,
  9013. BITFIELD(37, 2) /* index 17 */,
  9014. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, CHILD(22),
  9015. BITFIELD(39, 2) /* index 22 */,
  9016. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, CHILD(27),
  9017. BITFIELD(41, 2) /* index 27 */,
  9018. TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_ADDI, TILEGX_OPC_MOVEI,
  9019. BITFIELD(31, 2) /* index 32 */,
  9020. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(37),
  9021. BITFIELD(33, 2) /* index 37 */,
  9022. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(42),
  9023. BITFIELD(35, 2) /* index 42 */,
  9024. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(47),
  9025. BITFIELD(37, 2) /* index 47 */,
  9026. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(52),
  9027. BITFIELD(39, 2) /* index 52 */,
  9028. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, CHILD(57),
  9029. BITFIELD(41, 2) /* index 57 */,
  9030. TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_ANDI, TILEGX_OPC_INFO,
  9031. BITFIELD(49, 2) /* index 62 */,
  9032. TILEGX_OPC_ADDX, TILEGX_OPC_ADD, TILEGX_OPC_SUBX, TILEGX_OPC_SUB,
  9033. BITFIELD(47, 4) /* index 67 */,
  9034. TILEGX_OPC_SHL1ADD, TILEGX_OPC_SHL1ADD, TILEGX_OPC_SHL1ADD,
  9035. TILEGX_OPC_SHL1ADD, TILEGX_OPC_SHL2ADD, TILEGX_OPC_SHL2ADD,
  9036. TILEGX_OPC_SHL2ADD, TILEGX_OPC_SHL2ADD, TILEGX_OPC_SHL3ADD,
  9037. TILEGX_OPC_SHL3ADD, TILEGX_OPC_SHL3ADD, TILEGX_OPC_SHL3ADD, CHILD(84),
  9038. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_NONE,
  9039. BITFIELD(43, 3) /* index 84 */,
  9040. CHILD(93), CHILD(96), CHILD(99), CHILD(102), CHILD(105), CHILD(108),
  9041. CHILD(111), CHILD(114),
  9042. BITFIELD(46, 1) /* index 93 */,
  9043. TILEGX_OPC_NONE, TILEGX_OPC_FNOP,
  9044. BITFIELD(46, 1) /* index 96 */,
  9045. TILEGX_OPC_NONE, TILEGX_OPC_ILL,
  9046. BITFIELD(46, 1) /* index 99 */,
  9047. TILEGX_OPC_NONE, TILEGX_OPC_JALRP,
  9048. BITFIELD(46, 1) /* index 102 */,
  9049. TILEGX_OPC_NONE, TILEGX_OPC_JALR,
  9050. BITFIELD(46, 1) /* index 105 */,
  9051. TILEGX_OPC_NONE, TILEGX_OPC_JRP,
  9052. BITFIELD(46, 1) /* index 108 */,
  9053. TILEGX_OPC_NONE, TILEGX_OPC_JR,
  9054. BITFIELD(46, 1) /* index 111 */,
  9055. TILEGX_OPC_NONE, TILEGX_OPC_LNK,
  9056. BITFIELD(46, 1) /* index 114 */,
  9057. TILEGX_OPC_NONE, TILEGX_OPC_NOP,
  9058. BITFIELD(49, 2) /* index 117 */,
  9059. TILEGX_OPC_CMPLES, TILEGX_OPC_CMPLEU, TILEGX_OPC_CMPLTS, TILEGX_OPC_CMPLTU,
  9060. BITFIELD(49, 2) /* index 122 */,
  9061. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_CMPEQ, TILEGX_OPC_CMPNE,
  9062. BITFIELD(49, 2) /* index 127 */,
  9063. TILEGX_OPC_NONE, TILEGX_OPC_NONE, TILEGX_OPC_MNZ, TILEGX_OPC_MZ,
  9064. BITFIELD(49, 2) /* index 132 */,
  9065. TILEGX_OPC_AND, TILEGX_OPC_NOR, CHILD(137), TILEGX_OPC_XOR,
  9066. BITFIELD(43, 2) /* index 137 */,
  9067. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, CHILD(142),
  9068. BITFIELD(45, 2) /* index 142 */,
  9069. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, CHILD(147),
  9070. BITFIELD(47, 2) /* index 147 */,
  9071. TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_OR, TILEGX_OPC_MOVE,
  9072. BITFIELD(49, 2) /* index 152 */,
  9073. TILEGX_OPC_ROTL, TILEGX_OPC_SHL, TILEGX_OPC_SHRS, TILEGX_OPC_SHRU,
  9074. BITFIELD(49, 2) /* index 157 */,
  9075. TILEGX_OPC_NONE, TILEGX_OPC_SHL1ADDX, TILEGX_OPC_SHL2ADDX,
  9076. TILEGX_OPC_SHL3ADDX,
  9077. BITFIELD(49, 2) /* index 162 */,
  9078. TILEGX_OPC_ROTLI, TILEGX_OPC_SHLI, TILEGX_OPC_SHRSI, TILEGX_OPC_SHRUI,
  9079. };
  9080. static const unsigned short decode_Y2_fsm[118] =
  9081. {
  9082. BITFIELD(62, 2) /* index 0 */,
  9083. TILEGX_OPC_NONE, CHILD(5), CHILD(66), CHILD(109),
  9084. BITFIELD(55, 3) /* index 5 */,
  9085. CHILD(14), CHILD(14), CHILD(14), CHILD(17), CHILD(40), CHILD(40), CHILD(40),
  9086. CHILD(43),
  9087. BITFIELD(26, 1) /* index 14 */,
  9088. TILEGX_OPC_LD1S, TILEGX_OPC_LD1U,
  9089. BITFIELD(26, 1) /* index 17 */,
  9090. CHILD(20), CHILD(30),
  9091. BITFIELD(51, 2) /* index 20 */,
  9092. TILEGX_OPC_LD1S, TILEGX_OPC_LD1S, TILEGX_OPC_LD1S, CHILD(25),
  9093. BITFIELD(53, 2) /* index 25 */,
  9094. TILEGX_OPC_LD1S, TILEGX_OPC_LD1S, TILEGX_OPC_LD1S,
  9095. TILEGX_OPC_PREFETCH_L1_FAULT,
  9096. BITFIELD(51, 2) /* index 30 */,
  9097. TILEGX_OPC_LD1U, TILEGX_OPC_LD1U, TILEGX_OPC_LD1U, CHILD(35),
  9098. BITFIELD(53, 2) /* index 35 */,
  9099. TILEGX_OPC_LD1U, TILEGX_OPC_LD1U, TILEGX_OPC_LD1U, TILEGX_OPC_PREFETCH,
  9100. BITFIELD(26, 1) /* index 40 */,
  9101. TILEGX_OPC_LD2S, TILEGX_OPC_LD2U,
  9102. BITFIELD(26, 1) /* index 43 */,
  9103. CHILD(46), CHILD(56),
  9104. BITFIELD(51, 2) /* index 46 */,
  9105. TILEGX_OPC_LD2S, TILEGX_OPC_LD2S, TILEGX_OPC_LD2S, CHILD(51),
  9106. BITFIELD(53, 2) /* index 51 */,
  9107. TILEGX_OPC_LD2S, TILEGX_OPC_LD2S, TILEGX_OPC_LD2S,
  9108. TILEGX_OPC_PREFETCH_L2_FAULT,
  9109. BITFIELD(51, 2) /* index 56 */,
  9110. TILEGX_OPC_LD2U, TILEGX_OPC_LD2U, TILEGX_OPC_LD2U, CHILD(61),
  9111. BITFIELD(53, 2) /* index 61 */,
  9112. TILEGX_OPC_LD2U, TILEGX_OPC_LD2U, TILEGX_OPC_LD2U, TILEGX_OPC_PREFETCH_L2,
  9113. BITFIELD(56, 2) /* index 66 */,
  9114. CHILD(71), CHILD(74), CHILD(90), CHILD(93),
  9115. BITFIELD(26, 1) /* index 71 */,
  9116. TILEGX_OPC_NONE, TILEGX_OPC_LD4S,
  9117. BITFIELD(26, 1) /* index 74 */,
  9118. TILEGX_OPC_NONE, CHILD(77),
  9119. BITFIELD(51, 2) /* index 77 */,
  9120. TILEGX_OPC_LD4S, TILEGX_OPC_LD4S, TILEGX_OPC_LD4S, CHILD(82),
  9121. BITFIELD(53, 2) /* index 82 */,
  9122. TILEGX_OPC_LD4S, TILEGX_OPC_LD4S, TILEGX_OPC_LD4S, CHILD(87),
  9123. BITFIELD(55, 1) /* index 87 */,
  9124. TILEGX_OPC_LD4S, TILEGX_OPC_PREFETCH_L3_FAULT,
  9125. BITFIELD(26, 1) /* index 90 */,
  9126. TILEGX_OPC_LD4U, TILEGX_OPC_LD,
  9127. BITFIELD(26, 1) /* index 93 */,
  9128. CHILD(96), TILEGX_OPC_LD,
  9129. BITFIELD(51, 2) /* index 96 */,
  9130. TILEGX_OPC_LD4U, TILEGX_OPC_LD4U, TILEGX_OPC_LD4U, CHILD(101),
  9131. BITFIELD(53, 2) /* index 101 */,
  9132. TILEGX_OPC_LD4U, TILEGX_OPC_LD4U, TILEGX_OPC_LD4U, CHILD(106),
  9133. BITFIELD(55, 1) /* index 106 */,
  9134. TILEGX_OPC_LD4U, TILEGX_OPC_PREFETCH_L3,
  9135. BITFIELD(26, 1) /* index 109 */,
  9136. CHILD(112), CHILD(115),
  9137. BITFIELD(57, 1) /* index 112 */,
  9138. TILEGX_OPC_ST1, TILEGX_OPC_ST4,
  9139. BITFIELD(57, 1) /* index 115 */,
  9140. TILEGX_OPC_ST2, TILEGX_OPC_ST,
  9141. };
  9142. #undef BITFIELD
  9143. #undef CHILD
  9144. const unsigned short * const
  9145. tilegx_bundle_decoder_fsms[TILEGX_NUM_PIPELINE_ENCODINGS] =
  9146. {
  9147. decode_X0_fsm,
  9148. decode_X1_fsm,
  9149. decode_Y0_fsm,
  9150. decode_Y1_fsm,
  9151. decode_Y2_fsm
  9152. };
  9153. const struct tilegx_operand tilegx_operands[35] =
  9154. {
  9155. {
  9156. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_IMM8_X0),
  9157. 8, 1, 0, 0, 0, 0,
  9158. create_Imm8_X0, get_Imm8_X0
  9159. },
  9160. {
  9161. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_IMM8_X1),
  9162. 8, 1, 0, 0, 0, 0,
  9163. create_Imm8_X1, get_Imm8_X1
  9164. },
  9165. {
  9166. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_IMM8_Y0),
  9167. 8, 1, 0, 0, 0, 0,
  9168. create_Imm8_Y0, get_Imm8_Y0
  9169. },
  9170. {
  9171. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_IMM8_Y1),
  9172. 8, 1, 0, 0, 0, 0,
  9173. create_Imm8_Y1, get_Imm8_Y1
  9174. },
  9175. {
  9176. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_IMM16_X0_HW0_LAST),
  9177. 16, 1, 0, 0, 0, 0,
  9178. create_Imm16_X0, get_Imm16_X0
  9179. },
  9180. {
  9181. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_IMM16_X1_HW0_LAST),
  9182. 16, 1, 0, 0, 0, 0,
  9183. create_Imm16_X1, get_Imm16_X1
  9184. },
  9185. {
  9186. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9187. 6, 0, 0, 1, 0, 0,
  9188. create_Dest_X1, get_Dest_X1
  9189. },
  9190. {
  9191. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9192. 6, 0, 1, 0, 0, 0,
  9193. create_SrcA_X1, get_SrcA_X1
  9194. },
  9195. {
  9196. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9197. 6, 0, 0, 1, 0, 0,
  9198. create_Dest_X0, get_Dest_X0
  9199. },
  9200. {
  9201. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9202. 6, 0, 1, 0, 0, 0,
  9203. create_SrcA_X0, get_SrcA_X0
  9204. },
  9205. {
  9206. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9207. 6, 0, 0, 1, 0, 0,
  9208. create_Dest_Y0, get_Dest_Y0
  9209. },
  9210. {
  9211. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9212. 6, 0, 1, 0, 0, 0,
  9213. create_SrcA_Y0, get_SrcA_Y0
  9214. },
  9215. {
  9216. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9217. 6, 0, 0, 1, 0, 0,
  9218. create_Dest_Y1, get_Dest_Y1
  9219. },
  9220. {
  9221. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9222. 6, 0, 1, 0, 0, 0,
  9223. create_SrcA_Y1, get_SrcA_Y1
  9224. },
  9225. {
  9226. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9227. 6, 0, 1, 0, 0, 0,
  9228. create_SrcA_Y2, get_SrcA_Y2
  9229. },
  9230. {
  9231. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9232. 6, 0, 1, 1, 0, 0,
  9233. create_SrcA_X1, get_SrcA_X1
  9234. },
  9235. {
  9236. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9237. 6, 0, 1, 0, 0, 0,
  9238. create_SrcB_X0, get_SrcB_X0
  9239. },
  9240. {
  9241. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9242. 6, 0, 1, 0, 0, 0,
  9243. create_SrcB_X1, get_SrcB_X1
  9244. },
  9245. {
  9246. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9247. 6, 0, 1, 0, 0, 0,
  9248. create_SrcB_Y0, get_SrcB_Y0
  9249. },
  9250. {
  9251. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9252. 6, 0, 1, 0, 0, 0,
  9253. create_SrcB_Y1, get_SrcB_Y1
  9254. },
  9255. {
  9256. TILEGX_OP_TYPE_ADDRESS, BFD_RELOC(TILEGX_BROFF_X1),
  9257. 17, 1, 0, 0, 1, TILEGX_LOG2_BUNDLE_ALIGNMENT_IN_BYTES,
  9258. create_BrOff_X1, get_BrOff_X1
  9259. },
  9260. {
  9261. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_MMSTART_X0),
  9262. 6, 0, 0, 0, 0, 0,
  9263. create_BFStart_X0, get_BFStart_X0
  9264. },
  9265. {
  9266. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_MMEND_X0),
  9267. 6, 0, 0, 0, 0, 0,
  9268. create_BFEnd_X0, get_BFEnd_X0
  9269. },
  9270. {
  9271. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9272. 6, 0, 1, 1, 0, 0,
  9273. create_Dest_X0, get_Dest_X0
  9274. },
  9275. {
  9276. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9277. 6, 0, 1, 1, 0, 0,
  9278. create_Dest_Y0, get_Dest_Y0
  9279. },
  9280. {
  9281. TILEGX_OP_TYPE_ADDRESS, BFD_RELOC(TILEGX_JUMPOFF_X1),
  9282. 27, 1, 0, 0, 1, TILEGX_LOG2_BUNDLE_ALIGNMENT_IN_BYTES,
  9283. create_JumpOff_X1, get_JumpOff_X1
  9284. },
  9285. {
  9286. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9287. 6, 0, 0, 1, 0, 0,
  9288. create_SrcBDest_Y2, get_SrcBDest_Y2
  9289. },
  9290. {
  9291. TILEGX_OP_TYPE_SPR, BFD_RELOC(TILEGX_MF_IMM14_X1),
  9292. 14, 0, 0, 0, 0, 0,
  9293. create_MF_Imm14_X1, get_MF_Imm14_X1
  9294. },
  9295. {
  9296. TILEGX_OP_TYPE_SPR, BFD_RELOC(TILEGX_MT_IMM14_X1),
  9297. 14, 0, 0, 0, 0, 0,
  9298. create_MT_Imm14_X1, get_MT_Imm14_X1
  9299. },
  9300. {
  9301. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_SHAMT_X0),
  9302. 6, 0, 0, 0, 0, 0,
  9303. create_ShAmt_X0, get_ShAmt_X0
  9304. },
  9305. {
  9306. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_SHAMT_X1),
  9307. 6, 0, 0, 0, 0, 0,
  9308. create_ShAmt_X1, get_ShAmt_X1
  9309. },
  9310. {
  9311. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_SHAMT_Y0),
  9312. 6, 0, 0, 0, 0, 0,
  9313. create_ShAmt_Y0, get_ShAmt_Y0
  9314. },
  9315. {
  9316. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_SHAMT_Y1),
  9317. 6, 0, 0, 0, 0, 0,
  9318. create_ShAmt_Y1, get_ShAmt_Y1
  9319. },
  9320. {
  9321. TILEGX_OP_TYPE_REGISTER, BFD_RELOC(NONE),
  9322. 6, 0, 1, 0, 0, 0,
  9323. create_SrcBDest_Y2, get_SrcBDest_Y2
  9324. },
  9325. {
  9326. TILEGX_OP_TYPE_IMMEDIATE, BFD_RELOC(TILEGX_DEST_IMM8_X1),
  9327. 8, 1, 0, 0, 0, 0,
  9328. create_Dest_Imm8_X1, get_Dest_Imm8_X1
  9329. }
  9330. };
  9331. /* Given a set of bundle bits and a specific pipe, returns which
  9332. * instruction the bundle contains in that pipe.
  9333. */
  9334. const struct tilegx_opcode *
  9335. find_opcode(tilegx_bundle_bits bits, tilegx_pipeline pipe)
  9336. {
  9337. const unsigned short *table = tilegx_bundle_decoder_fsms[pipe];
  9338. int index = 0;
  9339. while (1)
  9340. {
  9341. unsigned short bitspec = table[index];
  9342. unsigned int bitfield =
  9343. ((unsigned int)(bits >> (bitspec & 63))) & (bitspec >> 6);
  9344. unsigned short next = table[index + 1 + bitfield];
  9345. if (next <= TILEGX_OPC_NONE)
  9346. return &tilegx_opcodes[next];
  9347. index = next - TILEGX_OPC_NONE;
  9348. }
  9349. }
  9350. int
  9351. parse_insn_tilegx(tilegx_bundle_bits bits,
  9352. unsigned long long pc,
  9353. struct tilegx_decoded_instruction
  9354. decoded[TILEGX_MAX_INSTRUCTIONS_PER_BUNDLE])
  9355. {
  9356. int num_instructions = 0;
  9357. int pipe;
  9358. int min_pipe, max_pipe;
  9359. if ((bits & TILEGX_BUNDLE_MODE_MASK) == 0)
  9360. {
  9361. min_pipe = TILEGX_PIPELINE_X0;
  9362. max_pipe = TILEGX_PIPELINE_X1;
  9363. }
  9364. else
  9365. {
  9366. min_pipe = TILEGX_PIPELINE_Y0;
  9367. max_pipe = TILEGX_PIPELINE_Y2;
  9368. }
  9369. /* For each pipe, find an instruction that fits. */
  9370. for (pipe = min_pipe; pipe <= max_pipe; pipe++)
  9371. {
  9372. const struct tilegx_opcode *opc;
  9373. struct tilegx_decoded_instruction *d;
  9374. int i;
  9375. d = &decoded[num_instructions++];
  9376. opc = find_opcode (bits, (tilegx_pipeline)pipe);
  9377. d->opcode = opc;
  9378. /* Decode each operand, sign extending, etc. as appropriate. */
  9379. for (i = 0; i < opc->num_operands; i++)
  9380. {
  9381. const struct tilegx_operand *op =
  9382. &tilegx_operands[opc->operands[pipe][i]];
  9383. int raw_opval = op->extract (bits);
  9384. long long opval;
  9385. if (op->is_signed)
  9386. {
  9387. /* Sign-extend the operand. */
  9388. int shift = (int)((sizeof(int) * 8) - op->num_bits);
  9389. raw_opval = (raw_opval << shift) >> shift;
  9390. }
  9391. /* Adjust PC-relative scaled branch offsets. */
  9392. if (op->type == TILEGX_OP_TYPE_ADDRESS)
  9393. opval = (raw_opval * TILEGX_BUNDLE_SIZE_IN_BYTES) + pc;
  9394. else
  9395. opval = raw_opval;
  9396. /* Record the final value. */
  9397. d->operands[i] = op;
  9398. d->operand_values[i] = opval;
  9399. }
  9400. }
  9401. return num_instructions;
  9402. }
  9403. struct tilegx_spr
  9404. {
  9405. /* The number */
  9406. int number;
  9407. /* The name */
  9408. const char *name;
  9409. };
  9410. static int
  9411. tilegx_spr_compare (const void *a_ptr, const void *b_ptr)
  9412. {
  9413. const struct tilegx_spr *a = (const struct tilegx_spr *) a_ptr;
  9414. const struct tilegx_spr *b = (const struct tilegx_spr *) b_ptr;
  9415. return (a->number - b->number);
  9416. }
  9417. const struct tilegx_spr tilegx_sprs[] = {
  9418. { 0, "MPL_MEM_ERROR_SET_0" },
  9419. { 1, "MPL_MEM_ERROR_SET_1" },
  9420. { 2, "MPL_MEM_ERROR_SET_2" },
  9421. { 3, "MPL_MEM_ERROR_SET_3" },
  9422. { 4, "MPL_MEM_ERROR" },
  9423. { 5, "MEM_ERROR_CBOX_ADDR" },
  9424. { 6, "MEM_ERROR_CBOX_STATUS" },
  9425. { 7, "MEM_ERROR_ENABLE" },
  9426. { 8, "MEM_ERROR_MBOX_ADDR" },
  9427. { 9, "MEM_ERROR_MBOX_STATUS" },
  9428. { 10, "SBOX_ERROR" },
  9429. { 11, "XDN_DEMUX_ERROR" },
  9430. { 256, "MPL_SINGLE_STEP_3_SET_0" },
  9431. { 257, "MPL_SINGLE_STEP_3_SET_1" },
  9432. { 258, "MPL_SINGLE_STEP_3_SET_2" },
  9433. { 259, "MPL_SINGLE_STEP_3_SET_3" },
  9434. { 260, "MPL_SINGLE_STEP_3" },
  9435. { 261, "SINGLE_STEP_CONTROL_3" },
  9436. { 512, "MPL_SINGLE_STEP_2_SET_0" },
  9437. { 513, "MPL_SINGLE_STEP_2_SET_1" },
  9438. { 514, "MPL_SINGLE_STEP_2_SET_2" },
  9439. { 515, "MPL_SINGLE_STEP_2_SET_3" },
  9440. { 516, "MPL_SINGLE_STEP_2" },
  9441. { 517, "SINGLE_STEP_CONTROL_2" },
  9442. { 768, "MPL_SINGLE_STEP_1_SET_0" },
  9443. { 769, "MPL_SINGLE_STEP_1_SET_1" },
  9444. { 770, "MPL_SINGLE_STEP_1_SET_2" },
  9445. { 771, "MPL_SINGLE_STEP_1_SET_3" },
  9446. { 772, "MPL_SINGLE_STEP_1" },
  9447. { 773, "SINGLE_STEP_CONTROL_1" },
  9448. { 1024, "MPL_SINGLE_STEP_0_SET_0" },
  9449. { 1025, "MPL_SINGLE_STEP_0_SET_1" },
  9450. { 1026, "MPL_SINGLE_STEP_0_SET_2" },
  9451. { 1027, "MPL_SINGLE_STEP_0_SET_3" },
  9452. { 1028, "MPL_SINGLE_STEP_0" },
  9453. { 1029, "SINGLE_STEP_CONTROL_0" },
  9454. { 1280, "MPL_IDN_COMPLETE_SET_0" },
  9455. { 1281, "MPL_IDN_COMPLETE_SET_1" },
  9456. { 1282, "MPL_IDN_COMPLETE_SET_2" },
  9457. { 1283, "MPL_IDN_COMPLETE_SET_3" },
  9458. { 1284, "MPL_IDN_COMPLETE" },
  9459. { 1285, "IDN_COMPLETE_PENDING" },
  9460. { 1536, "MPL_UDN_COMPLETE_SET_0" },
  9461. { 1537, "MPL_UDN_COMPLETE_SET_1" },
  9462. { 1538, "MPL_UDN_COMPLETE_SET_2" },
  9463. { 1539, "MPL_UDN_COMPLETE_SET_3" },
  9464. { 1540, "MPL_UDN_COMPLETE" },
  9465. { 1541, "UDN_COMPLETE_PENDING" },
  9466. { 1792, "MPL_ITLB_MISS_SET_0" },
  9467. { 1793, "MPL_ITLB_MISS_SET_1" },
  9468. { 1794, "MPL_ITLB_MISS_SET_2" },
  9469. { 1795, "MPL_ITLB_MISS_SET_3" },
  9470. { 1796, "MPL_ITLB_MISS" },
  9471. { 1797, "ITLB_TSB_BASE_ADDR_0" },
  9472. { 1798, "ITLB_TSB_BASE_ADDR_1" },
  9473. { 1920, "ITLB_CURRENT_ATTR" },
  9474. { 1921, "ITLB_CURRENT_PA" },
  9475. { 1922, "ITLB_CURRENT_VA" },
  9476. { 1923, "ITLB_INDEX" },
  9477. { 1924, "ITLB_MATCH_0" },
  9478. { 1925, "ITLB_PERF" },
  9479. { 1926, "ITLB_PR" },
  9480. { 1927, "ITLB_TSB_ADDR_0" },
  9481. { 1928, "ITLB_TSB_ADDR_1" },
  9482. { 1929, "ITLB_TSB_FILL_CURRENT_ATTR" },
  9483. { 1930, "ITLB_TSB_FILL_MATCH" },
  9484. { 1931, "NUMBER_ITLB" },
  9485. { 1932, "REPLACEMENT_ITLB" },
  9486. { 1933, "WIRED_ITLB" },
  9487. { 2048, "MPL_ILL_SET_0" },
  9488. { 2049, "MPL_ILL_SET_1" },
  9489. { 2050, "MPL_ILL_SET_2" },
  9490. { 2051, "MPL_ILL_SET_3" },
  9491. { 2052, "MPL_ILL" },
  9492. { 2304, "MPL_GPV_SET_0" },
  9493. { 2305, "MPL_GPV_SET_1" },
  9494. { 2306, "MPL_GPV_SET_2" },
  9495. { 2307, "MPL_GPV_SET_3" },
  9496. { 2308, "MPL_GPV" },
  9497. { 2309, "GPV_REASON" },
  9498. { 2560, "MPL_IDN_ACCESS_SET_0" },
  9499. { 2561, "MPL_IDN_ACCESS_SET_1" },
  9500. { 2562, "MPL_IDN_ACCESS_SET_2" },
  9501. { 2563, "MPL_IDN_ACCESS_SET_3" },
  9502. { 2564, "MPL_IDN_ACCESS" },
  9503. { 2565, "IDN_DEMUX_COUNT_0" },
  9504. { 2566, "IDN_DEMUX_COUNT_1" },
  9505. { 2567, "IDN_FLUSH_EGRESS" },
  9506. { 2568, "IDN_PENDING" },
  9507. { 2569, "IDN_ROUTE_ORDER" },
  9508. { 2570, "IDN_SP_FIFO_CNT" },
  9509. { 2688, "IDN_DATA_AVAIL" },
  9510. { 2816, "MPL_UDN_ACCESS_SET_0" },
  9511. { 2817, "MPL_UDN_ACCESS_SET_1" },
  9512. { 2818, "MPL_UDN_ACCESS_SET_2" },
  9513. { 2819, "MPL_UDN_ACCESS_SET_3" },
  9514. { 2820, "MPL_UDN_ACCESS" },
  9515. { 2821, "UDN_DEMUX_COUNT_0" },
  9516. { 2822, "UDN_DEMUX_COUNT_1" },
  9517. { 2823, "UDN_DEMUX_COUNT_2" },
  9518. { 2824, "UDN_DEMUX_COUNT_3" },
  9519. { 2825, "UDN_FLUSH_EGRESS" },
  9520. { 2826, "UDN_PENDING" },
  9521. { 2827, "UDN_ROUTE_ORDER" },
  9522. { 2828, "UDN_SP_FIFO_CNT" },
  9523. { 2944, "UDN_DATA_AVAIL" },
  9524. { 3072, "MPL_SWINT_3_SET_0" },
  9525. { 3073, "MPL_SWINT_3_SET_1" },
  9526. { 3074, "MPL_SWINT_3_SET_2" },
  9527. { 3075, "MPL_SWINT_3_SET_3" },
  9528. { 3076, "MPL_SWINT_3" },
  9529. { 3328, "MPL_SWINT_2_SET_0" },
  9530. { 3329, "MPL_SWINT_2_SET_1" },
  9531. { 3330, "MPL_SWINT_2_SET_2" },
  9532. { 3331, "MPL_SWINT_2_SET_3" },
  9533. { 3332, "MPL_SWINT_2" },
  9534. { 3584, "MPL_SWINT_1_SET_0" },
  9535. { 3585, "MPL_SWINT_1_SET_1" },
  9536. { 3586, "MPL_SWINT_1_SET_2" },
  9537. { 3587, "MPL_SWINT_1_SET_3" },
  9538. { 3588, "MPL_SWINT_1" },
  9539. { 3840, "MPL_SWINT_0_SET_0" },
  9540. { 3841, "MPL_SWINT_0_SET_1" },
  9541. { 3842, "MPL_SWINT_0_SET_2" },
  9542. { 3843, "MPL_SWINT_0_SET_3" },
  9543. { 3844, "MPL_SWINT_0" },
  9544. { 4096, "MPL_ILL_TRANS_SET_0" },
  9545. { 4097, "MPL_ILL_TRANS_SET_1" },
  9546. { 4098, "MPL_ILL_TRANS_SET_2" },
  9547. { 4099, "MPL_ILL_TRANS_SET_3" },
  9548. { 4100, "MPL_ILL_TRANS" },
  9549. { 4101, "ILL_TRANS_REASON" },
  9550. { 4102, "ILL_VA_PC" },
  9551. { 4352, "MPL_UNALIGN_DATA_SET_0" },
  9552. { 4353, "MPL_UNALIGN_DATA_SET_1" },
  9553. { 4354, "MPL_UNALIGN_DATA_SET_2" },
  9554. { 4355, "MPL_UNALIGN_DATA_SET_3" },
  9555. { 4356, "MPL_UNALIGN_DATA" },
  9556. { 4608, "MPL_DTLB_MISS_SET_0" },
  9557. { 4609, "MPL_DTLB_MISS_SET_1" },
  9558. { 4610, "MPL_DTLB_MISS_SET_2" },
  9559. { 4611, "MPL_DTLB_MISS_SET_3" },
  9560. { 4612, "MPL_DTLB_MISS" },
  9561. { 4613, "DTLB_TSB_BASE_ADDR_0" },
  9562. { 4614, "DTLB_TSB_BASE_ADDR_1" },
  9563. { 4736, "AAR" },
  9564. { 4737, "CACHE_PINNED_WAYS" },
  9565. { 4738, "DTLB_BAD_ADDR" },
  9566. { 4739, "DTLB_BAD_ADDR_REASON" },
  9567. { 4740, "DTLB_CURRENT_ATTR" },
  9568. { 4741, "DTLB_CURRENT_PA" },
  9569. { 4742, "DTLB_CURRENT_VA" },
  9570. { 4743, "DTLB_INDEX" },
  9571. { 4744, "DTLB_MATCH_0" },
  9572. { 4745, "DTLB_PERF" },
  9573. { 4746, "DTLB_TSB_ADDR_0" },
  9574. { 4747, "DTLB_TSB_ADDR_1" },
  9575. { 4748, "DTLB_TSB_FILL_CURRENT_ATTR" },
  9576. { 4749, "DTLB_TSB_FILL_MATCH" },
  9577. { 4750, "NUMBER_DTLB" },
  9578. { 4751, "REPLACEMENT_DTLB" },
  9579. { 4752, "WIRED_DTLB" },
  9580. { 4864, "MPL_DTLB_ACCESS_SET_0" },
  9581. { 4865, "MPL_DTLB_ACCESS_SET_1" },
  9582. { 4866, "MPL_DTLB_ACCESS_SET_2" },
  9583. { 4867, "MPL_DTLB_ACCESS_SET_3" },
  9584. { 4868, "MPL_DTLB_ACCESS" },
  9585. { 5120, "MPL_IDN_FIREWALL_SET_0" },
  9586. { 5121, "MPL_IDN_FIREWALL_SET_1" },
  9587. { 5122, "MPL_IDN_FIREWALL_SET_2" },
  9588. { 5123, "MPL_IDN_FIREWALL_SET_3" },
  9589. { 5124, "MPL_IDN_FIREWALL" },
  9590. { 5125, "IDN_DIRECTION_PROTECT" },
  9591. { 5376, "MPL_UDN_FIREWALL_SET_0" },
  9592. { 5377, "MPL_UDN_FIREWALL_SET_1" },
  9593. { 5378, "MPL_UDN_FIREWALL_SET_2" },
  9594. { 5379, "MPL_UDN_FIREWALL_SET_3" },
  9595. { 5380, "MPL_UDN_FIREWALL" },
  9596. { 5381, "UDN_DIRECTION_PROTECT" },
  9597. { 5632, "MPL_TILE_TIMER_SET_0" },
  9598. { 5633, "MPL_TILE_TIMER_SET_1" },
  9599. { 5634, "MPL_TILE_TIMER_SET_2" },
  9600. { 5635, "MPL_TILE_TIMER_SET_3" },
  9601. { 5636, "MPL_TILE_TIMER" },
  9602. { 5637, "TILE_TIMER_CONTROL" },
  9603. { 5888, "MPL_AUX_TILE_TIMER_SET_0" },
  9604. { 5889, "MPL_AUX_TILE_TIMER_SET_1" },
  9605. { 5890, "MPL_AUX_TILE_TIMER_SET_2" },
  9606. { 5891, "MPL_AUX_TILE_TIMER_SET_3" },
  9607. { 5892, "MPL_AUX_TILE_TIMER" },
  9608. { 5893, "AUX_TILE_TIMER_CONTROL" },
  9609. { 6144, "MPL_IDN_TIMER_SET_0" },
  9610. { 6145, "MPL_IDN_TIMER_SET_1" },
  9611. { 6146, "MPL_IDN_TIMER_SET_2" },
  9612. { 6147, "MPL_IDN_TIMER_SET_3" },
  9613. { 6148, "MPL_IDN_TIMER" },
  9614. { 6149, "IDN_DEADLOCK_COUNT" },
  9615. { 6150, "IDN_DEADLOCK_TIMEOUT" },
  9616. { 6400, "MPL_UDN_TIMER_SET_0" },
  9617. { 6401, "MPL_UDN_TIMER_SET_1" },
  9618. { 6402, "MPL_UDN_TIMER_SET_2" },
  9619. { 6403, "MPL_UDN_TIMER_SET_3" },
  9620. { 6404, "MPL_UDN_TIMER" },
  9621. { 6405, "UDN_DEADLOCK_COUNT" },
  9622. { 6406, "UDN_DEADLOCK_TIMEOUT" },
  9623. { 6656, "MPL_IDN_AVAIL_SET_0" },
  9624. { 6657, "MPL_IDN_AVAIL_SET_1" },
  9625. { 6658, "MPL_IDN_AVAIL_SET_2" },
  9626. { 6659, "MPL_IDN_AVAIL_SET_3" },
  9627. { 6660, "MPL_IDN_AVAIL" },
  9628. { 6661, "IDN_AVAIL_EN" },
  9629. { 6912, "MPL_UDN_AVAIL_SET_0" },
  9630. { 6913, "MPL_UDN_AVAIL_SET_1" },
  9631. { 6914, "MPL_UDN_AVAIL_SET_2" },
  9632. { 6915, "MPL_UDN_AVAIL_SET_3" },
  9633. { 6916, "MPL_UDN_AVAIL" },
  9634. { 6917, "UDN_AVAIL_EN" },
  9635. { 7168, "MPL_IPI_3_SET_0" },
  9636. { 7169, "MPL_IPI_3_SET_1" },
  9637. { 7170, "MPL_IPI_3_SET_2" },
  9638. { 7171, "MPL_IPI_3_SET_3" },
  9639. { 7172, "MPL_IPI_3" },
  9640. { 7173, "IPI_EVENT_3" },
  9641. { 7174, "IPI_EVENT_RESET_3" },
  9642. { 7175, "IPI_EVENT_SET_3" },
  9643. { 7176, "IPI_MASK_3" },
  9644. { 7177, "IPI_MASK_RESET_3" },
  9645. { 7178, "IPI_MASK_SET_3" },
  9646. { 7424, "MPL_IPI_2_SET_0" },
  9647. { 7425, "MPL_IPI_2_SET_1" },
  9648. { 7426, "MPL_IPI_2_SET_2" },
  9649. { 7427, "MPL_IPI_2_SET_3" },
  9650. { 7428, "MPL_IPI_2" },
  9651. { 7429, "IPI_EVENT_2" },
  9652. { 7430, "IPI_EVENT_RESET_2" },
  9653. { 7431, "IPI_EVENT_SET_2" },
  9654. { 7432, "IPI_MASK_2" },
  9655. { 7433, "IPI_MASK_RESET_2" },
  9656. { 7434, "IPI_MASK_SET_2" },
  9657. { 7680, "MPL_IPI_1_SET_0" },
  9658. { 7681, "MPL_IPI_1_SET_1" },
  9659. { 7682, "MPL_IPI_1_SET_2" },
  9660. { 7683, "MPL_IPI_1_SET_3" },
  9661. { 7684, "MPL_IPI_1" },
  9662. { 7685, "IPI_EVENT_1" },
  9663. { 7686, "IPI_EVENT_RESET_1" },
  9664. { 7687, "IPI_EVENT_SET_1" },
  9665. { 7688, "IPI_MASK_1" },
  9666. { 7689, "IPI_MASK_RESET_1" },
  9667. { 7690, "IPI_MASK_SET_1" },
  9668. { 7936, "MPL_IPI_0_SET_0" },
  9669. { 7937, "MPL_IPI_0_SET_1" },
  9670. { 7938, "MPL_IPI_0_SET_2" },
  9671. { 7939, "MPL_IPI_0_SET_3" },
  9672. { 7940, "MPL_IPI_0" },
  9673. { 7941, "IPI_EVENT_0" },
  9674. { 7942, "IPI_EVENT_RESET_0" },
  9675. { 7943, "IPI_EVENT_SET_0" },
  9676. { 7944, "IPI_MASK_0" },
  9677. { 7945, "IPI_MASK_RESET_0" },
  9678. { 7946, "IPI_MASK_SET_0" },
  9679. { 8192, "MPL_PERF_COUNT_SET_0" },
  9680. { 8193, "MPL_PERF_COUNT_SET_1" },
  9681. { 8194, "MPL_PERF_COUNT_SET_2" },
  9682. { 8195, "MPL_PERF_COUNT_SET_3" },
  9683. { 8196, "MPL_PERF_COUNT" },
  9684. { 8197, "PERF_COUNT_0" },
  9685. { 8198, "PERF_COUNT_1" },
  9686. { 8199, "PERF_COUNT_CTL" },
  9687. { 8200, "PERF_COUNT_DN_CTL" },
  9688. { 8201, "PERF_COUNT_STS" },
  9689. { 8202, "WATCH_MASK" },
  9690. { 8203, "WATCH_VAL" },
  9691. { 8448, "MPL_AUX_PERF_COUNT_SET_0" },
  9692. { 8449, "MPL_AUX_PERF_COUNT_SET_1" },
  9693. { 8450, "MPL_AUX_PERF_COUNT_SET_2" },
  9694. { 8451, "MPL_AUX_PERF_COUNT_SET_3" },
  9695. { 8452, "MPL_AUX_PERF_COUNT" },
  9696. { 8453, "AUX_PERF_COUNT_0" },
  9697. { 8454, "AUX_PERF_COUNT_1" },
  9698. { 8455, "AUX_PERF_COUNT_CTL" },
  9699. { 8456, "AUX_PERF_COUNT_STS" },
  9700. { 8704, "MPL_INTCTRL_3_SET_0" },
  9701. { 8705, "MPL_INTCTRL_3_SET_1" },
  9702. { 8706, "MPL_INTCTRL_3_SET_2" },
  9703. { 8707, "MPL_INTCTRL_3_SET_3" },
  9704. { 8708, "MPL_INTCTRL_3" },
  9705. { 8709, "INTCTRL_3_STATUS" },
  9706. { 8710, "INTERRUPT_MASK_3" },
  9707. { 8711, "INTERRUPT_MASK_RESET_3" },
  9708. { 8712, "INTERRUPT_MASK_SET_3" },
  9709. { 8713, "INTERRUPT_VECTOR_BASE_3" },
  9710. { 8714, "SINGLE_STEP_EN_0_3" },
  9711. { 8715, "SINGLE_STEP_EN_1_3" },
  9712. { 8716, "SINGLE_STEP_EN_2_3" },
  9713. { 8717, "SINGLE_STEP_EN_3_3" },
  9714. { 8832, "EX_CONTEXT_3_0" },
  9715. { 8833, "EX_CONTEXT_3_1" },
  9716. { 8834, "SYSTEM_SAVE_3_0" },
  9717. { 8835, "SYSTEM_SAVE_3_1" },
  9718. { 8836, "SYSTEM_SAVE_3_2" },
  9719. { 8837, "SYSTEM_SAVE_3_3" },
  9720. { 8960, "MPL_INTCTRL_2_SET_0" },
  9721. { 8961, "MPL_INTCTRL_2_SET_1" },
  9722. { 8962, "MPL_INTCTRL_2_SET_2" },
  9723. { 8963, "MPL_INTCTRL_2_SET_3" },
  9724. { 8964, "MPL_INTCTRL_2" },
  9725. { 8965, "INTCTRL_2_STATUS" },
  9726. { 8966, "INTERRUPT_MASK_2" },
  9727. { 8967, "INTERRUPT_MASK_RESET_2" },
  9728. { 8968, "INTERRUPT_MASK_SET_2" },
  9729. { 8969, "INTERRUPT_VECTOR_BASE_2" },
  9730. { 8970, "SINGLE_STEP_EN_0_2" },
  9731. { 8971, "SINGLE_STEP_EN_1_2" },
  9732. { 8972, "SINGLE_STEP_EN_2_2" },
  9733. { 8973, "SINGLE_STEP_EN_3_2" },
  9734. { 9088, "EX_CONTEXT_2_0" },
  9735. { 9089, "EX_CONTEXT_2_1" },
  9736. { 9090, "SYSTEM_SAVE_2_0" },
  9737. { 9091, "SYSTEM_SAVE_2_1" },
  9738. { 9092, "SYSTEM_SAVE_2_2" },
  9739. { 9093, "SYSTEM_SAVE_2_3" },
  9740. { 9216, "MPL_INTCTRL_1_SET_0" },
  9741. { 9217, "MPL_INTCTRL_1_SET_1" },
  9742. { 9218, "MPL_INTCTRL_1_SET_2" },
  9743. { 9219, "MPL_INTCTRL_1_SET_3" },
  9744. { 9220, "MPL_INTCTRL_1" },
  9745. { 9221, "INTCTRL_1_STATUS" },
  9746. { 9222, "INTERRUPT_MASK_1" },
  9747. { 9223, "INTERRUPT_MASK_RESET_1" },
  9748. { 9224, "INTERRUPT_MASK_SET_1" },
  9749. { 9225, "INTERRUPT_VECTOR_BASE_1" },
  9750. { 9226, "SINGLE_STEP_EN_0_1" },
  9751. { 9227, "SINGLE_STEP_EN_1_1" },
  9752. { 9228, "SINGLE_STEP_EN_2_1" },
  9753. { 9229, "SINGLE_STEP_EN_3_1" },
  9754. { 9344, "EX_CONTEXT_1_0" },
  9755. { 9345, "EX_CONTEXT_1_1" },
  9756. { 9346, "SYSTEM_SAVE_1_0" },
  9757. { 9347, "SYSTEM_SAVE_1_1" },
  9758. { 9348, "SYSTEM_SAVE_1_2" },
  9759. { 9349, "SYSTEM_SAVE_1_3" },
  9760. { 9472, "MPL_INTCTRL_0_SET_0" },
  9761. { 9473, "MPL_INTCTRL_0_SET_1" },
  9762. { 9474, "MPL_INTCTRL_0_SET_2" },
  9763. { 9475, "MPL_INTCTRL_0_SET_3" },
  9764. { 9476, "MPL_INTCTRL_0" },
  9765. { 9477, "INTCTRL_0_STATUS" },
  9766. { 9478, "INTERRUPT_MASK_0" },
  9767. { 9479, "INTERRUPT_MASK_RESET_0" },
  9768. { 9480, "INTERRUPT_MASK_SET_0" },
  9769. { 9481, "INTERRUPT_VECTOR_BASE_0" },
  9770. { 9482, "SINGLE_STEP_EN_0_0" },
  9771. { 9483, "SINGLE_STEP_EN_1_0" },
  9772. { 9484, "SINGLE_STEP_EN_2_0" },
  9773. { 9485, "SINGLE_STEP_EN_3_0" },
  9774. { 9600, "EX_CONTEXT_0_0" },
  9775. { 9601, "EX_CONTEXT_0_1" },
  9776. { 9602, "SYSTEM_SAVE_0_0" },
  9777. { 9603, "SYSTEM_SAVE_0_1" },
  9778. { 9604, "SYSTEM_SAVE_0_2" },
  9779. { 9605, "SYSTEM_SAVE_0_3" },
  9780. { 9728, "MPL_BOOT_ACCESS_SET_0" },
  9781. { 9729, "MPL_BOOT_ACCESS_SET_1" },
  9782. { 9730, "MPL_BOOT_ACCESS_SET_2" },
  9783. { 9731, "MPL_BOOT_ACCESS_SET_3" },
  9784. { 9732, "MPL_BOOT_ACCESS" },
  9785. { 9733, "BIG_ENDIAN_CONFIG" },
  9786. { 9734, "CACHE_INVALIDATION_COMPRESSION_MODE" },
  9787. { 9735, "CACHE_INVALIDATION_MASK_0" },
  9788. { 9736, "CACHE_INVALIDATION_MASK_1" },
  9789. { 9737, "CACHE_INVALIDATION_MASK_2" },
  9790. { 9738, "CBOX_CACHEASRAM_CONFIG" },
  9791. { 9739, "CBOX_CACHE_CONFIG" },
  9792. { 9740, "CBOX_HOME_MAP_ADDR" },
  9793. { 9741, "CBOX_HOME_MAP_DATA" },
  9794. { 9742, "CBOX_MMAP_0" },
  9795. { 9743, "CBOX_MMAP_1" },
  9796. { 9744, "CBOX_MMAP_2" },
  9797. { 9745, "CBOX_MMAP_3" },
  9798. { 9746, "CBOX_MSR" },
  9799. { 9747, "DIAG_BCST_CTL" },
  9800. { 9748, "DIAG_BCST_MASK" },
  9801. { 9749, "DIAG_BCST_TRIGGER" },
  9802. { 9750, "DIAG_MUX_CTL" },
  9803. { 9751, "DIAG_TRACE_CTL" },
  9804. { 9752, "DIAG_TRACE_DATA" },
  9805. { 9753, "DIAG_TRACE_STS" },
  9806. { 9754, "IDN_DEMUX_BUF_THRESH" },
  9807. { 9755, "L1_I_PIN_WAY_0" },
  9808. { 9756, "MEM_ROUTE_ORDER" },
  9809. { 9757, "MEM_STRIPE_CONFIG" },
  9810. { 9758, "PERF_COUNT_PLS" },
  9811. { 9759, "PSEUDO_RANDOM_NUMBER_MODIFY" },
  9812. { 9760, "QUIESCE_CTL" },
  9813. { 9761, "RSHIM_COORD" },
  9814. { 9762, "SBOX_CONFIG" },
  9815. { 9763, "UDN_DEMUX_BUF_THRESH" },
  9816. { 9764, "XDN_CORE_STARVATION_COUNT" },
  9817. { 9765, "XDN_ROUND_ROBIN_ARB_CTL" },
  9818. { 9856, "CYCLE_MODIFY" },
  9819. { 9857, "I_AAR" },
  9820. { 9984, "MPL_WORLD_ACCESS_SET_0" },
  9821. { 9985, "MPL_WORLD_ACCESS_SET_1" },
  9822. { 9986, "MPL_WORLD_ACCESS_SET_2" },
  9823. { 9987, "MPL_WORLD_ACCESS_SET_3" },
  9824. { 9988, "MPL_WORLD_ACCESS" },
  9825. { 9989, "DONE" },
  9826. { 9990, "DSTREAM_PF" },
  9827. { 9991, "FAIL" },
  9828. { 9992, "INTERRUPT_CRITICAL_SECTION" },
  9829. { 9993, "PASS" },
  9830. { 9994, "PSEUDO_RANDOM_NUMBER" },
  9831. { 9995, "TILE_COORD" },
  9832. { 9996, "TILE_RTF_HWM" },
  9833. { 10112, "CMPEXCH_VALUE" },
  9834. { 10113, "CYCLE" },
  9835. { 10114, "EVENT_BEGIN" },
  9836. { 10115, "EVENT_END" },
  9837. { 10116, "PROC_STATUS" },
  9838. { 10117, "SIM_CONTROL" },
  9839. { 10118, "SIM_SOCKET" },
  9840. { 10119, "STATUS_SATURATE" },
  9841. { 10240, "MPL_I_ASID_SET_0" },
  9842. { 10241, "MPL_I_ASID_SET_1" },
  9843. { 10242, "MPL_I_ASID_SET_2" },
  9844. { 10243, "MPL_I_ASID_SET_3" },
  9845. { 10244, "MPL_I_ASID" },
  9846. { 10245, "I_ASID" },
  9847. { 10496, "MPL_D_ASID_SET_0" },
  9848. { 10497, "MPL_D_ASID_SET_1" },
  9849. { 10498, "MPL_D_ASID_SET_2" },
  9850. { 10499, "MPL_D_ASID_SET_3" },
  9851. { 10500, "MPL_D_ASID" },
  9852. { 10501, "D_ASID" },
  9853. { 10752, "MPL_DOUBLE_FAULT_SET_0" },
  9854. { 10753, "MPL_DOUBLE_FAULT_SET_1" },
  9855. { 10754, "MPL_DOUBLE_FAULT_SET_2" },
  9856. { 10755, "MPL_DOUBLE_FAULT_SET_3" },
  9857. { 10756, "MPL_DOUBLE_FAULT" },
  9858. { 10757, "LAST_INTERRUPT_REASON" },
  9859. };
  9860. const int tilegx_num_sprs = 441;
  9861. const char *
  9862. get_tilegx_spr_name (int num)
  9863. {
  9864. void *result;
  9865. struct tilegx_spr key;
  9866. key.number = num;
  9867. result = bsearch((const void *) &key, (const void *) tilegx_sprs,
  9868. tilegx_num_sprs, sizeof (struct tilegx_spr),
  9869. tilegx_spr_compare);
  9870. if (result == NULL)
  9871. {
  9872. return (NULL);
  9873. }
  9874. else
  9875. {
  9876. struct tilegx_spr *result_ptr = (struct tilegx_spr *) result;
  9877. return (result_ptr->name);
  9878. }
  9879. }
  9880. int
  9881. print_insn_tilegx (unsigned char * memaddr)
  9882. {
  9883. struct tilegx_decoded_instruction
  9884. decoded[TILEGX_MAX_INSTRUCTIONS_PER_BUNDLE];
  9885. unsigned char opbuf[TILEGX_BUNDLE_SIZE_IN_BYTES];
  9886. int i, num_instructions, num_printed;
  9887. tilegx_mnemonic padding_mnemonic;
  9888. memcpy((void *)opbuf, (void *)memaddr, TILEGX_BUNDLE_SIZE_IN_BYTES);
  9889. /* Parse the instructions in the bundle. */
  9890. num_instructions =
  9891. parse_insn_tilegx (*(unsigned long long *)opbuf, (unsigned long long)memaddr, decoded);
  9892. /* Print the instructions in the bundle. */
  9893. printf("{ ");
  9894. num_printed = 0;
  9895. /* Determine which nop opcode is used for padding and should be skipped. */
  9896. padding_mnemonic = TILEGX_OPC_FNOP;
  9897. for (i = 0; i < num_instructions; i++)
  9898. {
  9899. if (!decoded[i].opcode->can_bundle)
  9900. {
  9901. /* Instructions that cannot be bundled are padded out with nops,
  9902. rather than fnops. Displaying them is always clutter. */
  9903. padding_mnemonic = TILEGX_OPC_NOP;
  9904. break;
  9905. }
  9906. }
  9907. for (i = 0; i < num_instructions; i++)
  9908. {
  9909. const struct tilegx_opcode *opcode = decoded[i].opcode;
  9910. const char *name;
  9911. int j;
  9912. /* Do not print out fnops, unless everything is an fnop, in
  9913. which case we will print out just the last one. */
  9914. if (opcode->mnemonic == padding_mnemonic
  9915. && (num_printed > 0 || i + 1 < num_instructions))
  9916. continue;
  9917. if (num_printed > 0)
  9918. printf(" ; ");
  9919. ++num_printed;
  9920. name = opcode->name;
  9921. if (name == NULL)
  9922. name = "<invalid>";
  9923. printf("%s", name);
  9924. for (j = 0; j < opcode->num_operands; j++)
  9925. {
  9926. unsigned long long num;
  9927. const struct tilegx_operand *op;
  9928. const char *spr_name;
  9929. if (j > 0)
  9930. printf (",");
  9931. printf (" ");
  9932. num = decoded[i].operand_values[j];
  9933. op = decoded[i].operands[j];
  9934. switch (op->type)
  9935. {
  9936. case TILEGX_OP_TYPE_REGISTER:
  9937. printf ("%s", tilegx_register_names[(int)num]);
  9938. break;
  9939. case TILEGX_OP_TYPE_SPR:
  9940. spr_name = get_tilegx_spr_name(num);
  9941. if (spr_name != NULL)
  9942. printf ("%s", spr_name);
  9943. else
  9944. printf ("%d", (int)num);
  9945. break;
  9946. case TILEGX_OP_TYPE_IMMEDIATE:
  9947. printf ("%d", (int)num);
  9948. break;
  9949. case TILEGX_OP_TYPE_ADDRESS:
  9950. printf ("0x%016llx", num);
  9951. break;
  9952. default:
  9953. abort ();
  9954. }
  9955. }
  9956. }
  9957. printf (" }\n");
  9958. return TILEGX_BUNDLE_SIZE_IN_BYTES;
  9959. }