as.info 1.2 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068
  1. This is as.info, produced by makeinfo version 6.8 from as.texi.
  2. This file documents the GNU Assembler "as".
  3. Copyright (C) 1991-2022 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with no
  7. Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
  8. Texts. A copy of the license is included in the section entitled "GNU
  9. Free Documentation License".
  10. INFO-DIR-SECTION Software development
  11. START-INFO-DIR-ENTRY
  12. * As: (as). The GNU assembler.
  13. * Gas: (as). The GNU assembler.
  14. END-INFO-DIR-ENTRY
  15. 
  16. File: as.info, Node: Top, Next: Overview, Up: (dir)
  17. Using as
  18. ********
  19. This file is a user guide to the GNU assembler 'as' (GNU Binutils)
  20. version 2.38.
  21. This document is distributed under the terms of the GNU Free
  22. Documentation License. A copy of the license is included in the section
  23. entitled "GNU Free Documentation License".
  24. * Menu:
  25. * Overview:: Overview
  26. * Invoking:: Command-Line Options
  27. * Syntax:: Syntax
  28. * Sections:: Sections and Relocation
  29. * Symbols:: Symbols
  30. * Expressions:: Expressions
  31. * Pseudo Ops:: Assembler Directives
  32. * Object Attributes:: Object Attributes
  33. * Machine Dependencies:: Machine Dependent Features
  34. * Reporting Bugs:: Reporting Bugs
  35. * Acknowledgements:: Who Did What
  36. * GNU Free Documentation License:: GNU Free Documentation License
  37. * AS Index:: AS Index
  38. 
  39. File: as.info, Node: Overview, Next: Invoking, Prev: Top, Up: Top
  40. 1 Overview
  41. **********
  42. Here is a brief summary of how to invoke 'as'. For details, see *note
  43. Command-Line Options: Invoking.
  44. as [-a[cdghlns][=FILE]] [-alternate] [-D]
  45. [-compress-debug-sections] [-nocompress-debug-sections]
  46. [-debug-prefix-map OLD=NEW]
  47. [-defsym SYM=VAL] [-f] [-g] [-gstabs]
  48. [-gstabs+] [-gdwarf-<N>] [-gdwarf-sections]
  49. [-gdwarf-cie-version=VERSION]
  50. [-help] [-I DIR] [-J]
  51. [-K] [-L] [-listing-lhs-width=NUM]
  52. [-listing-lhs-width2=NUM] [-listing-rhs-width=NUM]
  53. [-listing-cont-lines=NUM] [-keep-locals]
  54. [-no-pad-sections]
  55. [-o OBJFILE] [-R]
  56. [-statistics]
  57. [-v] [-version] [-version]
  58. [-W] [-warn] [-fatal-warnings] [-w] [-x]
  59. [-Z] [@FILE]
  60. [-sectname-subst] [-size-check=[error|warning]]
  61. [-elf-stt-common=[no|yes]]
  62. [-generate-missing-build-notes=[no|yes]]
  63. [-multibyte-handling=[allow|warn|warn-sym-only]]
  64. [-target-help] [TARGET-OPTIONS]
  65. [-|FILES ...]
  66. _Target AArch64 options:_
  67. [-EB|-EL]
  68. [-mabi=ABI]
  69. _Target Alpha options:_
  70. [-mCPU]
  71. [-mdebug | -no-mdebug]
  72. [-replace | -noreplace]
  73. [-relax] [-g] [-GSIZE]
  74. [-F] [-32addr]
  75. _Target ARC options:_
  76. [-mcpu=CPU]
  77. [-mA6|-mARC600|-mARC601|-mA7|-mARC700|-mEM|-mHS]
  78. [-mcode-density]
  79. [-mrelax]
  80. [-EB|-EL]
  81. _Target ARM options:_
  82. [-mcpu=PROCESSOR[+EXTENSION...]]
  83. [-march=ARCHITECTURE[+EXTENSION...]]
  84. [-mfpu=FLOATING-POINT-FORMAT]
  85. [-mfloat-abi=ABI]
  86. [-meabi=VER]
  87. [-mthumb]
  88. [-EB|-EL]
  89. [-mapcs-32|-mapcs-26|-mapcs-float|
  90. -mapcs-reentrant]
  91. [-mthumb-interwork] [-k]
  92. _Target Blackfin options:_
  93. [-mcpu=PROCESSOR[-SIREVISION]]
  94. [-mfdpic]
  95. [-mno-fdpic]
  96. [-mnopic]
  97. _Target BPF options:_
  98. [-EL] [-EB]
  99. _Target CRIS options:_
  100. [-underscore | -no-underscore]
  101. [-pic] [-N]
  102. [-emulation=criself | -emulation=crisaout]
  103. [-march=v0_v10 | -march=v10 | -march=v32 | -march=common_v10_v32]
  104. _Target C-SKY options:_
  105. [-march=ARCH] [-mcpu=CPU]
  106. [-EL] [-mlittle-endian] [-EB] [-mbig-endian]
  107. [-fpic] [-pic]
  108. [-mljump] [-mno-ljump]
  109. [-force2bsr] [-mforce2bsr] [-no-force2bsr] [-mno-force2bsr]
  110. [-jsri2bsr] [-mjsri2bsr] [-no-jsri2bsr ] [-mno-jsri2bsr]
  111. [-mnolrw ] [-mno-lrw]
  112. [-melrw] [-mno-elrw]
  113. [-mlaf ] [-mliterals-after-func]
  114. [-mno-laf] [-mno-literals-after-func]
  115. [-mlabr] [-mliterals-after-br]
  116. [-mno-labr] [-mnoliterals-after-br]
  117. [-mistack] [-mno-istack]
  118. [-mhard-float] [-mmp] [-mcp] [-mcache]
  119. [-msecurity] [-mtrust]
  120. [-mdsp] [-medsp] [-mvdsp]
  121. _Target D10V options:_
  122. [-O]
  123. _Target D30V options:_
  124. [-O|-n|-N]
  125. _Target EPIPHANY options:_
  126. [-mepiphany|-mepiphany16]
  127. _Target H8/300 options:_
  128. [-h-tick-hex]
  129. _Target i386 options:_
  130. [-32|-x32|-64] [-n]
  131. [-march=CPU[+EXTENSION...]] [-mtune=CPU]
  132. _Target IA-64 options:_
  133. [-mconstant-gp|-mauto-pic]
  134. [-milp32|-milp64|-mlp64|-mp64]
  135. [-mle|mbe]
  136. [-mtune=itanium1|-mtune=itanium2]
  137. [-munwind-check=warning|-munwind-check=error]
  138. [-mhint.b=ok|-mhint.b=warning|-mhint.b=error]
  139. [-x|-xexplicit] [-xauto] [-xdebug]
  140. _Target IP2K options:_
  141. [-mip2022|-mip2022ext]
  142. _Target M32C options:_
  143. [-m32c|-m16c] [-relax] [-h-tick-hex]
  144. _Target M32R options:_
  145. [-m32rx|-[no-]warn-explicit-parallel-conflicts|
  146. -W[n]p]
  147. _Target M680X0 options:_
  148. [-l] [-m68000|-m68010|-m68020|...]
  149. _Target M68HC11 options:_
  150. [-m68hc11|-m68hc12|-m68hcs12|-mm9s12x|-mm9s12xg]
  151. [-mshort|-mlong]
  152. [-mshort-double|-mlong-double]
  153. [-force-long-branches] [-short-branches]
  154. [-strict-direct-mode] [-print-insn-syntax]
  155. [-print-opcodes] [-generate-example]
  156. _Target MCORE options:_
  157. [-jsri2bsr] [-sifilter] [-relax]
  158. [-mcpu=[210|340]]
  159. _Target Meta options:_
  160. [-mcpu=CPU] [-mfpu=CPU] [-mdsp=CPU]
  161. _Target MICROBLAZE options:_
  162. _Target MIPS options:_
  163. [-nocpp] [-EL] [-EB] [-O[OPTIMIZATION LEVEL]]
  164. [-g[DEBUG LEVEL]] [-G NUM] [-KPIC] [-call_shared]
  165. [-non_shared] [-xgot [-mvxworks-pic]
  166. [-mabi=ABI] [-32] [-n32] [-64] [-mfp32] [-mgp32]
  167. [-mfp64] [-mgp64] [-mfpxx]
  168. [-modd-spreg] [-mno-odd-spreg]
  169. [-march=CPU] [-mtune=CPU] [-mips1] [-mips2]
  170. [-mips3] [-mips4] [-mips5] [-mips32] [-mips32r2]
  171. [-mips32r3] [-mips32r5] [-mips32r6] [-mips64] [-mips64r2]
  172. [-mips64r3] [-mips64r5] [-mips64r6]
  173. [-construct-floats] [-no-construct-floats]
  174. [-mignore-branch-isa] [-mno-ignore-branch-isa]
  175. [-mnan=ENCODING]
  176. [-trap] [-no-break] [-break] [-no-trap]
  177. [-mips16] [-no-mips16]
  178. [-mmips16e2] [-mno-mips16e2]
  179. [-mmicromips] [-mno-micromips]
  180. [-msmartmips] [-mno-smartmips]
  181. [-mips3d] [-no-mips3d]
  182. [-mdmx] [-no-mdmx]
  183. [-mdsp] [-mno-dsp]
  184. [-mdspr2] [-mno-dspr2]
  185. [-mdspr3] [-mno-dspr3]
  186. [-mmsa] [-mno-msa]
  187. [-mxpa] [-mno-xpa]
  188. [-mmt] [-mno-mt]
  189. [-mmcu] [-mno-mcu]
  190. [-mcrc] [-mno-crc]
  191. [-mginv] [-mno-ginv]
  192. [-mloongson-mmi] [-mno-loongson-mmi]
  193. [-mloongson-cam] [-mno-loongson-cam]
  194. [-mloongson-ext] [-mno-loongson-ext]
  195. [-mloongson-ext2] [-mno-loongson-ext2]
  196. [-minsn32] [-mno-insn32]
  197. [-mfix7000] [-mno-fix7000]
  198. [-mfix-rm7000] [-mno-fix-rm7000]
  199. [-mfix-vr4120] [-mno-fix-vr4120]
  200. [-mfix-vr4130] [-mno-fix-vr4130]
  201. [-mfix-r5900] [-mno-fix-r5900]
  202. [-mdebug] [-no-mdebug]
  203. [-mpdr] [-mno-pdr]
  204. _Target MMIX options:_
  205. [-fixed-special-register-names] [-globalize-symbols]
  206. [-gnu-syntax] [-relax] [-no-predefined-symbols]
  207. [-no-expand] [-no-merge-gregs] [-x]
  208. [-linker-allocated-gregs]
  209. _Target Nios II options:_
  210. [-relax-all] [-relax-section] [-no-relax]
  211. [-EB] [-EL]
  212. _Target NDS32 options:_
  213. [-EL] [-EB] [-O] [-Os] [-mcpu=CPU]
  214. [-misa=ISA] [-mabi=ABI] [-mall-ext]
  215. [-m[no-]16-bit] [-m[no-]perf-ext] [-m[no-]perf2-ext]
  216. [-m[no-]string-ext] [-m[no-]dsp-ext] [-m[no-]mac] [-m[no-]div]
  217. [-m[no-]audio-isa-ext] [-m[no-]fpu-sp-ext] [-m[no-]fpu-dp-ext]
  218. [-m[no-]fpu-fma] [-mfpu-freg=FREG] [-mreduced-regs]
  219. [-mfull-regs] [-m[no-]dx-regs] [-mpic] [-mno-relax]
  220. [-mb2bb]
  221. _Target PDP11 options:_
  222. [-mpic|-mno-pic] [-mall] [-mno-extensions]
  223. [-mEXTENSION|-mno-EXTENSION]
  224. [-mCPU] [-mMACHINE]
  225. _Target picoJava options:_
  226. [-mb|-me]
  227. _Target PowerPC options:_
  228. [-a32|-a64]
  229. [-mpwrx|-mpwr2|-mpwr|-m601|-mppc|-mppc32|-m603|-m604|-m403|-m405|
  230. -m440|-m464|-m476|-m7400|-m7410|-m7450|-m7455|-m750cl|-mgekko|
  231. -mbroadway|-mppc64|-m620|-me500|-e500x2|-me500mc|-me500mc64|-me5500|
  232. -me6500|-mppc64bridge|-mbooke|-mpower4|-mpwr4|-mpower5|-mpwr5|-mpwr5x|
  233. -mpower6|-mpwr6|-mpower7|-mpwr7|-mpower8|-mpwr8|-mpower9|-mpwr9-ma2|
  234. -mcell|-mspe|-mspe2|-mtitan|-me300|-mcom]
  235. [-many] [-maltivec|-mvsx|-mhtm|-mvle]
  236. [-mregnames|-mno-regnames]
  237. [-mrelocatable|-mrelocatable-lib|-K PIC] [-memb]
  238. [-mlittle|-mlittle-endian|-le|-mbig|-mbig-endian|-be]
  239. [-msolaris|-mno-solaris]
  240. [-nops=COUNT]
  241. _Target PRU options:_
  242. [-link-relax]
  243. [-mnolink-relax]
  244. [-mno-warn-regname-label]
  245. _Target RISC-V options:_
  246. [-fpic|-fPIC|-fno-pic]
  247. [-march=ISA]
  248. [-mabi=ABI]
  249. [-mlittle-endian|-mbig-endian]
  250. _Target RL78 options:_
  251. [-mg10]
  252. [-m32bit-doubles|-m64bit-doubles]
  253. _Target RX options:_
  254. [-mlittle-endian|-mbig-endian]
  255. [-m32bit-doubles|-m64bit-doubles]
  256. [-muse-conventional-section-names]
  257. [-msmall-data-limit]
  258. [-mpid]
  259. [-mrelax]
  260. [-mint-register=NUMBER]
  261. [-mgcc-abi|-mrx-abi]
  262. _Target s390 options:_
  263. [-m31|-m64] [-mesa|-mzarch] [-march=CPU]
  264. [-mregnames|-mno-regnames]
  265. [-mwarn-areg-zero]
  266. _Target SCORE options:_
  267. [-EB][-EL][-FIXDD][-NWARN]
  268. [-SCORE5][-SCORE5U][-SCORE7][-SCORE3]
  269. [-march=score7][-march=score3]
  270. [-USE_R1][-KPIC][-O0][-G NUM][-V]
  271. _Target SPARC options:_
  272. [-Av6|-Av7|-Av8|-Aleon|-Asparclet|-Asparclite
  273. -Av8plus|-Av8plusa|-Av8plusb|-Av8plusc|-Av8plusd
  274. -Av8plusv|-Av8plusm|-Av9|-Av9a|-Av9b|-Av9c
  275. -Av9d|-Av9e|-Av9v|-Av9m|-Asparc|-Asparcvis
  276. -Asparcvis2|-Asparcfmaf|-Asparcima|-Asparcvis3
  277. -Asparcvisr|-Asparc5]
  278. [-xarch=v8plus|-xarch=v8plusa]|-xarch=v8plusb|-xarch=v8plusc
  279. -xarch=v8plusd|-xarch=v8plusv|-xarch=v8plusm|-xarch=v9
  280. -xarch=v9a|-xarch=v9b|-xarch=v9c|-xarch=v9d|-xarch=v9e
  281. -xarch=v9v|-xarch=v9m|-xarch=sparc|-xarch=sparcvis
  282. -xarch=sparcvis2|-xarch=sparcfmaf|-xarch=sparcima
  283. -xarch=sparcvis3|-xarch=sparcvisr|-xarch=sparc5
  284. -bump]
  285. [-32|-64]
  286. [-enforce-aligned-data][-dcti-couples-detect]
  287. _Target TIC54X options:_
  288. [-mcpu=54[123589]|-mcpu=54[56]lp] [-mfar-mode|-mf]
  289. [-merrors-to-file <FILENAME>|-me <FILENAME>]
  290. _Target TIC6X options:_
  291. [-march=ARCH] [-mbig-endian|-mlittle-endian]
  292. [-mdsbt|-mno-dsbt] [-mpid=no|-mpid=near|-mpid=far]
  293. [-mpic|-mno-pic]
  294. _Target TILE-Gx options:_
  295. [-m32|-m64][-EB][-EL]
  296. _Target Visium options:_
  297. [-mtune=ARCH]
  298. _Target Xtensa options:_
  299. [-[no-]text-section-literals] [-[no-]auto-litpools]
  300. [-[no-]absolute-literals]
  301. [-[no-]target-align] [-[no-]longcalls]
  302. [-[no-]transform]
  303. [-rename-section OLDNAME=NEWNAME]
  304. [-[no-]trampolines]
  305. [-abi-windowed|-abi-call0]
  306. _Target Z80 options:_
  307. [-march=CPU[-EXT][+EXT]]
  308. [-local-prefix=PREFIX]
  309. [-colonless]
  310. [-sdcc]
  311. [-fp-s=FORMAT]
  312. [-fp-d=FORMAT]
  313. '@FILE'
  314. Read command-line options from FILE. The options read are inserted
  315. in place of the original @FILE option. If FILE does not exist, or
  316. cannot be read, then the option will be treated literally, and not
  317. removed.
  318. Options in FILE are separated by whitespace. A whitespace
  319. character may be included in an option by surrounding the entire
  320. option in either single or double quotes. Any character (including
  321. a backslash) may be included by prefixing the character to be
  322. included with a backslash. The FILE may itself contain additional
  323. @FILE options; any such options will be processed recursively.
  324. '-a[cdghlmns]'
  325. Turn on listings, in any of a variety of ways:
  326. '-ac'
  327. omit false conditionals
  328. '-ad'
  329. omit debugging directives
  330. '-ag'
  331. include general information, like as version and options
  332. passed
  333. '-ah'
  334. include high-level source
  335. '-al'
  336. include assembly
  337. '-am'
  338. include macro expansions
  339. '-an'
  340. omit forms processing
  341. '-as'
  342. include symbols
  343. '=file'
  344. set the name of the listing file
  345. You may combine these options; for example, use '-aln' for assembly
  346. listing without forms processing. The '=file' option, if used,
  347. must be the last one. By itself, '-a' defaults to '-ahls'.
  348. '--alternate'
  349. Begin in alternate macro mode. *Note '.altmacro': Altmacro.
  350. '--compress-debug-sections'
  351. Compress DWARF debug sections using zlib with SHF_COMPRESSED from
  352. the ELF ABI. The resulting object file may not be compatible with
  353. older linkers and object file utilities. Note if compression would
  354. make a given section _larger_ then it is not compressed.
  355. '--compress-debug-sections=none'
  356. '--compress-debug-sections=zlib'
  357. '--compress-debug-sections=zlib-gnu'
  358. '--compress-debug-sections=zlib-gabi'
  359. These options control how DWARF debug sections are compressed.
  360. '--compress-debug-sections=none' is equivalent to
  361. '--nocompress-debug-sections'. '--compress-debug-sections=zlib'
  362. and '--compress-debug-sections=zlib-gabi' are equivalent to
  363. '--compress-debug-sections'. '--compress-debug-sections=zlib-gnu'
  364. compresses DWARF debug sections using zlib. The debug sections are
  365. renamed to begin with '.zdebug'. Note if compression would make a
  366. given section _larger_ then it is not compressed nor renamed.
  367. '--nocompress-debug-sections'
  368. Do not compress DWARF debug sections. This is usually the default
  369. for all targets except the x86/x86_64, but a configure time option
  370. can be used to override this.
  371. '-D'
  372. Ignored. This option is accepted for script compatibility with
  373. calls to other assemblers.
  374. '--debug-prefix-map OLD=NEW'
  375. When assembling files in directory 'OLD', record debugging
  376. information describing them as in 'NEW' instead.
  377. '--defsym SYM=VALUE'
  378. Define the symbol SYM to be VALUE before assembling the input file.
  379. VALUE must be an integer constant. As in C, a leading '0x'
  380. indicates a hexadecimal value, and a leading '0' indicates an octal
  381. value. The value of the symbol can be overridden inside a source
  382. file via the use of a '.set' pseudo-op.
  383. '-f'
  384. "fast"--skip whitespace and comment preprocessing (assume source is
  385. compiler output).
  386. '-g'
  387. '--gen-debug'
  388. Generate debugging information for each assembler source line using
  389. whichever debug format is preferred by the target. This currently
  390. means either STABS, ECOFF or DWARF2. When the debug format is
  391. DWARF then a '.debug_info' and '.debug_line' section is only
  392. emitted when the assembly file doesn't generate one itself.
  393. '--gstabs'
  394. Generate stabs debugging information for each assembler line. This
  395. may help debugging assembler code, if the debugger can handle it.
  396. '--gstabs+'
  397. Generate stabs debugging information for each assembler line, with
  398. GNU extensions that probably only gdb can handle, and that could
  399. make other debuggers crash or refuse to read your program. This
  400. may help debugging assembler code. Currently the only GNU
  401. extension is the location of the current working directory at
  402. assembling time.
  403. '--gdwarf-2'
  404. Generate DWARF2 debugging information for each assembler line.
  405. This may help debugging assembler code, if the debugger can handle
  406. it. Note--this option is only supported by some targets, not all
  407. of them.
  408. '--gdwarf-3'
  409. This option is the same as the '--gdwarf-2' option, except that it
  410. allows for the possibility of the generation of extra debug
  411. information as per version 3 of the DWARF specification. Note -
  412. enabling this option does not guarantee the generation of any extra
  413. information, the choice to do so is on a per target basis.
  414. '--gdwarf-4'
  415. This option is the same as the '--gdwarf-2' option, except that it
  416. allows for the possibility of the generation of extra debug
  417. information as per version 4 of the DWARF specification. Note -
  418. enabling this option does not guarantee the generation of any extra
  419. information, the choice to do so is on a per target basis.
  420. '--gdwarf-5'
  421. This option is the same as the '--gdwarf-2' option, except that it
  422. allows for the possibility of the generation of extra debug
  423. information as per version 5 of the DWARF specification. Note -
  424. enabling this option does not guarantee the generation of any extra
  425. information, the choice to do so is on a per target basis.
  426. '--gdwarf-sections'
  427. Instead of creating a .debug_line section, create a series of
  428. .debug_line.FOO sections where FOO is the name of the corresponding
  429. code section. For example a code section called .TEXT.FUNC will
  430. have its dwarf line number information placed into a section called
  431. .DEBUG_LINE.TEXT.FUNC. If the code section is just called .TEXT
  432. then debug line section will still be called just .DEBUG_LINE
  433. without any suffix.
  434. '--gdwarf-cie-version=VERSION'
  435. Control which version of DWARF Common Information Entries (CIEs)
  436. are produced. When this flag is not specificed the default is
  437. version 1, though some targets can modify this default. Other
  438. possible values for VERSION are 3 or 4.
  439. '--size-check=error'
  440. '--size-check=warning'
  441. Issue an error or warning for invalid ELF .size directive.
  442. '--elf-stt-common=no'
  443. '--elf-stt-common=yes'
  444. These options control whether the ELF assembler should generate
  445. common symbols with the 'STT_COMMON' type. The default can be
  446. controlled by a configure option '--enable-elf-stt-common'.
  447. '--generate-missing-build-notes=yes'
  448. '--generate-missing-build-notes=no'
  449. These options control whether the ELF assembler should generate GNU
  450. Build attribute notes if none are present in the input sources.
  451. The default can be controlled by the
  452. '--enable-generate-build-notes' configure option.
  453. '--help'
  454. Print a summary of the command-line options and exit.
  455. '--target-help'
  456. Print a summary of all target specific options and exit.
  457. '-I DIR'
  458. Add directory DIR to the search list for '.include' directives.
  459. '-J'
  460. Don't warn about signed overflow.
  461. '-K'
  462. Issue warnings when difference tables altered for long
  463. displacements.
  464. '-L'
  465. '--keep-locals'
  466. Keep (in the symbol table) local symbols. These symbols start with
  467. system-specific local label prefixes, typically '.L' for ELF
  468. systems or 'L' for traditional a.out systems. *Note Symbol
  469. Names::.
  470. '--listing-lhs-width=NUMBER'
  471. Set the maximum width, in words, of the output data column for an
  472. assembler listing to NUMBER.
  473. '--listing-lhs-width2=NUMBER'
  474. Set the maximum width, in words, of the output data column for
  475. continuation lines in an assembler listing to NUMBER.
  476. '--listing-rhs-width=NUMBER'
  477. Set the maximum width of an input source line, as displayed in a
  478. listing, to NUMBER bytes.
  479. '--listing-cont-lines=NUMBER'
  480. Set the maximum number of lines printed in a listing for a single
  481. line of input to NUMBER + 1.
  482. '--multibyte-handling=allow'
  483. '--multibyte-handling=warn'
  484. '--multibyte-handling=warn-sym-only'
  485. Controls how the assembler handles multibyte characters in the
  486. input. The default (which can be restored by using the 'allow'
  487. argument) is to allow such characters without complaint. Using the
  488. 'warn' argument will make the assembler generate a warning message
  489. whenever any multibyte character is encountered. Using the
  490. 'warn-sym-only' argument will only cause a warning to be generated
  491. when a symbol is defined with a name that contains multibyte
  492. characters. (References to undefined symbols will not generate a
  493. warning).
  494. '--no-pad-sections'
  495. Stop the assembler for padding the ends of output sections to the
  496. alignment of that section. The default is to pad the sections, but
  497. this can waste space which might be needed on targets which have
  498. tight memory constraints.
  499. '-o OBJFILE'
  500. Name the object-file output from 'as' OBJFILE.
  501. '-R'
  502. Fold the data section into the text section.
  503. '--sectname-subst'
  504. Honor substitution sequences in section names. *Note '.section
  505. NAME': Section Name Substitutions.
  506. '--statistics'
  507. Print the maximum space (in bytes) and total time (in seconds) used
  508. by assembly.
  509. '--strip-local-absolute'
  510. Remove local absolute symbols from the outgoing symbol table.
  511. '-v'
  512. '-version'
  513. Print the 'as' version.
  514. '--version'
  515. Print the 'as' version and exit.
  516. '-W'
  517. '--no-warn'
  518. Suppress warning messages.
  519. '--fatal-warnings'
  520. Treat warnings as errors.
  521. '--warn'
  522. Don't suppress warning messages or treat them as errors.
  523. '-w'
  524. Ignored.
  525. '-x'
  526. Ignored.
  527. '-Z'
  528. Generate an object file even after errors.
  529. '-- | FILES ...'
  530. Standard input, or source files to assemble.
  531. *Note AArch64 Options::, for the options available when as is
  532. configured for the 64-bit mode of the ARM Architecture (AArch64).
  533. *Note Alpha Options::, for the options available when as is
  534. configured for an Alpha processor.
  535. The following options are available when as is configured for an ARC
  536. processor.
  537. '-mcpu=CPU'
  538. This option selects the core processor variant.
  539. '-EB | -EL'
  540. Select either big-endian (-EB) or little-endian (-EL) output.
  541. '-mcode-density'
  542. Enable Code Density extension instructions.
  543. The following options are available when as is configured for the ARM
  544. processor family.
  545. '-mcpu=PROCESSOR[+EXTENSION...]'
  546. Specify which ARM processor variant is the target.
  547. '-march=ARCHITECTURE[+EXTENSION...]'
  548. Specify which ARM architecture variant is used by the target.
  549. '-mfpu=FLOATING-POINT-FORMAT'
  550. Select which Floating Point architecture is the target.
  551. '-mfloat-abi=ABI'
  552. Select which floating point ABI is in use.
  553. '-mthumb'
  554. Enable Thumb only instruction decoding.
  555. '-mapcs-32 | -mapcs-26 | -mapcs-float | -mapcs-reentrant'
  556. Select which procedure calling convention is in use.
  557. '-EB | -EL'
  558. Select either big-endian (-EB) or little-endian (-EL) output.
  559. '-mthumb-interwork'
  560. Specify that the code has been generated with interworking between
  561. Thumb and ARM code in mind.
  562. '-mccs'
  563. Turns on CodeComposer Studio assembly syntax compatibility mode.
  564. '-k'
  565. Specify that PIC code has been generated.
  566. *Note Blackfin Options::, for the options available when as is
  567. configured for the Blackfin processor family.
  568. *Note BPF Options::, for the options available when as is configured
  569. for the Linux kernel BPF processor family.
  570. See the info pages for documentation of the CRIS-specific options.
  571. *Note C-SKY Options::, for the options available when as is
  572. configured for the C-SKY processor family.
  573. The following options are available when as is configured for a D10V
  574. processor.
  575. '-O'
  576. Optimize output by parallelizing instructions.
  577. The following options are available when as is configured for a D30V
  578. processor.
  579. '-O'
  580. Optimize output by parallelizing instructions.
  581. '-n'
  582. Warn when nops are generated.
  583. '-N'
  584. Warn when a nop after a 32-bit multiply instruction is generated.
  585. The following options are available when as is configured for the
  586. Adapteva EPIPHANY series.
  587. *Note Epiphany Options::, for the options available when as is
  588. configured for an Epiphany processor.
  589. *Note i386-Options::, for the options available when as is configured
  590. for an i386 processor.
  591. The following options are available when as is configured for the
  592. Ubicom IP2K series.
  593. '-mip2022ext'
  594. Specifies that the extended IP2022 instructions are allowed.
  595. '-mip2022'
  596. Restores the default behaviour, which restricts the permitted
  597. instructions to just the basic IP2022 ones.
  598. The following options are available when as is configured for the
  599. Renesas M32C and M16C processors.
  600. '-m32c'
  601. Assemble M32C instructions.
  602. '-m16c'
  603. Assemble M16C instructions (the default).
  604. '-relax'
  605. Enable support for link-time relaxations.
  606. '-h-tick-hex'
  607. Support H'00 style hex constants in addition to 0x00 style.
  608. The following options are available when as is configured for the
  609. Renesas M32R (formerly Mitsubishi M32R) series.
  610. '--m32rx'
  611. Specify which processor in the M32R family is the target. The
  612. default is normally the M32R, but this option changes it to the
  613. M32RX.
  614. '--warn-explicit-parallel-conflicts or --Wp'
  615. Produce warning messages when questionable parallel constructs are
  616. encountered.
  617. '--no-warn-explicit-parallel-conflicts or --Wnp'
  618. Do not produce warning messages when questionable parallel
  619. constructs are encountered.
  620. The following options are available when as is configured for the
  621. Motorola 68000 series.
  622. '-l'
  623. Shorten references to undefined symbols, to one word instead of
  624. two.
  625. '-m68000 | -m68008 | -m68010 | -m68020 | -m68030'
  626. '| -m68040 | -m68060 | -m68302 | -m68331 | -m68332'
  627. '| -m68333 | -m68340 | -mcpu32 | -m5200'
  628. Specify what processor in the 68000 family is the target. The
  629. default is normally the 68020, but this can be changed at
  630. configuration time.
  631. '-m68881 | -m68882 | -mno-68881 | -mno-68882'
  632. The target machine does (or does not) have a floating-point
  633. coprocessor. The default is to assume a coprocessor for 68020,
  634. 68030, and cpu32. Although the basic 68000 is not compatible with
  635. the 68881, a combination of the two can be specified, since it's
  636. possible to do emulation of the coprocessor instructions with the
  637. main processor.
  638. '-m68851 | -mno-68851'
  639. The target machine does (or does not) have a memory-management unit
  640. coprocessor. The default is to assume an MMU for 68020 and up.
  641. *Note Nios II Options::, for the options available when as is
  642. configured for an Altera Nios II processor.
  643. For details about the PDP-11 machine dependent features options, see
  644. *note PDP-11-Options::.
  645. '-mpic | -mno-pic'
  646. Generate position-independent (or position-dependent) code. The
  647. default is '-mpic'.
  648. '-mall'
  649. '-mall-extensions'
  650. Enable all instruction set extensions. This is the default.
  651. '-mno-extensions'
  652. Disable all instruction set extensions.
  653. '-mEXTENSION | -mno-EXTENSION'
  654. Enable (or disable) a particular instruction set extension.
  655. '-mCPU'
  656. Enable the instruction set extensions supported by a particular
  657. CPU, and disable all other extensions.
  658. '-mMACHINE'
  659. Enable the instruction set extensions supported by a particular
  660. machine model, and disable all other extensions.
  661. The following options are available when as is configured for a
  662. picoJava processor.
  663. '-mb'
  664. Generate "big endian" format output.
  665. '-ml'
  666. Generate "little endian" format output.
  667. *Note PRU Options::, for the options available when as is configured
  668. for a PRU processor.
  669. The following options are available when as is configured for the
  670. Motorola 68HC11 or 68HC12 series.
  671. '-m68hc11 | -m68hc12 | -m68hcs12 | -mm9s12x | -mm9s12xg'
  672. Specify what processor is the target. The default is defined by
  673. the configuration option when building the assembler.
  674. '--xgate-ramoffset'
  675. Instruct the linker to offset RAM addresses from S12X address space
  676. into XGATE address space.
  677. '-mshort'
  678. Specify to use the 16-bit integer ABI.
  679. '-mlong'
  680. Specify to use the 32-bit integer ABI.
  681. '-mshort-double'
  682. Specify to use the 32-bit double ABI.
  683. '-mlong-double'
  684. Specify to use the 64-bit double ABI.
  685. '--force-long-branches'
  686. Relative branches are turned into absolute ones. This concerns
  687. conditional branches, unconditional branches and branches to a sub
  688. routine.
  689. '-S | --short-branches'
  690. Do not turn relative branches into absolute ones when the offset is
  691. out of range.
  692. '--strict-direct-mode'
  693. Do not turn the direct addressing mode into extended addressing
  694. mode when the instruction does not support direct addressing mode.
  695. '--print-insn-syntax'
  696. Print the syntax of instruction in case of error.
  697. '--print-opcodes'
  698. Print the list of instructions with syntax and then exit.
  699. '--generate-example'
  700. Print an example of instruction for each possible instruction and
  701. then exit. This option is only useful for testing 'as'.
  702. The following options are available when 'as' is configured for the
  703. SPARC architecture:
  704. '-Av6 | -Av7 | -Av8 | -Asparclet | -Asparclite'
  705. '-Av8plus | -Av8plusa | -Av9 | -Av9a'
  706. Explicitly select a variant of the SPARC architecture.
  707. '-Av8plus' and '-Av8plusa' select a 32 bit environment. '-Av9' and
  708. '-Av9a' select a 64 bit environment.
  709. '-Av8plusa' and '-Av9a' enable the SPARC V9 instruction set with
  710. UltraSPARC extensions.
  711. '-xarch=v8plus | -xarch=v8plusa'
  712. For compatibility with the Solaris v9 assembler. These options are
  713. equivalent to -Av8plus and -Av8plusa, respectively.
  714. '-bump'
  715. Warn when the assembler switches to another architecture.
  716. The following options are available when as is configured for the
  717. 'c54x architecture.
  718. '-mfar-mode'
  719. Enable extended addressing mode. All addresses and relocations
  720. will assume extended addressing (usually 23 bits).
  721. '-mcpu=CPU_VERSION'
  722. Sets the CPU version being compiled for.
  723. '-merrors-to-file FILENAME'
  724. Redirect error output to a file, for broken systems which don't
  725. support such behaviour in the shell.
  726. The following options are available when as is configured for a MIPS
  727. processor.
  728. '-G NUM'
  729. This option sets the largest size of an object that can be
  730. referenced implicitly with the 'gp' register. It is only accepted
  731. for targets that use ECOFF format, such as a DECstation running
  732. Ultrix. The default value is 8.
  733. '-EB'
  734. Generate "big endian" format output.
  735. '-EL'
  736. Generate "little endian" format output.
  737. '-mips1'
  738. '-mips2'
  739. '-mips3'
  740. '-mips4'
  741. '-mips5'
  742. '-mips32'
  743. '-mips32r2'
  744. '-mips32r3'
  745. '-mips32r5'
  746. '-mips32r6'
  747. '-mips64'
  748. '-mips64r2'
  749. '-mips64r3'
  750. '-mips64r5'
  751. '-mips64r6'
  752. Generate code for a particular MIPS Instruction Set Architecture
  753. level. '-mips1' is an alias for '-march=r3000', '-mips2' is an
  754. alias for '-march=r6000', '-mips3' is an alias for '-march=r4000'
  755. and '-mips4' is an alias for '-march=r8000'. '-mips5', '-mips32',
  756. '-mips32r2', '-mips32r3', '-mips32r5', '-mips32r6', '-mips64',
  757. '-mips64r2', '-mips64r3', '-mips64r5', and '-mips64r6' correspond
  758. to generic MIPS V, MIPS32, MIPS32 Release 2, MIPS32 Release 3,
  759. MIPS32 Release 5, MIPS32 Release 6, MIPS64, MIPS64 Release 2,
  760. MIPS64 Release 3, MIPS64 Release 5, and MIPS64 Release 6 ISA
  761. processors, respectively.
  762. '-march=CPU'
  763. Generate code for a particular MIPS CPU.
  764. '-mtune=CPU'
  765. Schedule and tune for a particular MIPS CPU.
  766. '-mfix7000'
  767. '-mno-fix7000'
  768. Cause nops to be inserted if the read of the destination register
  769. of an mfhi or mflo instruction occurs in the following two
  770. instructions.
  771. '-mfix-rm7000'
  772. '-mno-fix-rm7000'
  773. Cause nops to be inserted if a dmult or dmultu instruction is
  774. followed by a load instruction.
  775. '-mfix-r5900'
  776. '-mno-fix-r5900'
  777. Do not attempt to schedule the preceding instruction into the delay
  778. slot of a branch instruction placed at the end of a short loop of
  779. six instructions or fewer and always schedule a 'nop' instruction
  780. there instead. The short loop bug under certain conditions causes
  781. loops to execute only once or twice, due to a hardware bug in the
  782. R5900 chip.
  783. '-mdebug'
  784. '-no-mdebug'
  785. Cause stabs-style debugging output to go into an ECOFF-style
  786. .mdebug section instead of the standard ELF .stabs sections.
  787. '-mpdr'
  788. '-mno-pdr'
  789. Control generation of '.pdr' sections.
  790. '-mgp32'
  791. '-mfp32'
  792. The register sizes are normally inferred from the ISA and ABI, but
  793. these flags force a certain group of registers to be treated as 32
  794. bits wide at all times. '-mgp32' controls the size of
  795. general-purpose registers and '-mfp32' controls the size of
  796. floating-point registers.
  797. '-mgp64'
  798. '-mfp64'
  799. The register sizes are normally inferred from the ISA and ABI, but
  800. these flags force a certain group of registers to be treated as 64
  801. bits wide at all times. '-mgp64' controls the size of
  802. general-purpose registers and '-mfp64' controls the size of
  803. floating-point registers.
  804. '-mfpxx'
  805. The register sizes are normally inferred from the ISA and ABI, but
  806. using this flag in combination with '-mabi=32' enables an ABI
  807. variant which will operate correctly with floating-point registers
  808. which are 32 or 64 bits wide.
  809. '-modd-spreg'
  810. '-mno-odd-spreg'
  811. Enable use of floating-point operations on odd-numbered
  812. single-precision registers when supported by the ISA. '-mfpxx'
  813. implies '-mno-odd-spreg', otherwise the default is '-modd-spreg'.
  814. '-mips16'
  815. '-no-mips16'
  816. Generate code for the MIPS 16 processor. This is equivalent to
  817. putting '.module mips16' at the start of the assembly file.
  818. '-no-mips16' turns off this option.
  819. '-mmips16e2'
  820. '-mno-mips16e2'
  821. Enable the use of MIPS16e2 instructions in MIPS16 mode. This is
  822. equivalent to putting '.module mips16e2' at the start of the
  823. assembly file. '-mno-mips16e2' turns off this option.
  824. '-mmicromips'
  825. '-mno-micromips'
  826. Generate code for the microMIPS processor. This is equivalent to
  827. putting '.module micromips' at the start of the assembly file.
  828. '-mno-micromips' turns off this option. This is equivalent to
  829. putting '.module nomicromips' at the start of the assembly file.
  830. '-msmartmips'
  831. '-mno-smartmips'
  832. Enables the SmartMIPS extension to the MIPS32 instruction set.
  833. This is equivalent to putting '.module smartmips' at the start of
  834. the assembly file. '-mno-smartmips' turns off this option.
  835. '-mips3d'
  836. '-no-mips3d'
  837. Generate code for the MIPS-3D Application Specific Extension. This
  838. tells the assembler to accept MIPS-3D instructions. '-no-mips3d'
  839. turns off this option.
  840. '-mdmx'
  841. '-no-mdmx'
  842. Generate code for the MDMX Application Specific Extension. This
  843. tells the assembler to accept MDMX instructions. '-no-mdmx' turns
  844. off this option.
  845. '-mdsp'
  846. '-mno-dsp'
  847. Generate code for the DSP Release 1 Application Specific Extension.
  848. This tells the assembler to accept DSP Release 1 instructions.
  849. '-mno-dsp' turns off this option.
  850. '-mdspr2'
  851. '-mno-dspr2'
  852. Generate code for the DSP Release 2 Application Specific Extension.
  853. This option implies '-mdsp'. This tells the assembler to accept
  854. DSP Release 2 instructions. '-mno-dspr2' turns off this option.
  855. '-mdspr3'
  856. '-mno-dspr3'
  857. Generate code for the DSP Release 3 Application Specific Extension.
  858. This option implies '-mdsp' and '-mdspr2'. This tells the
  859. assembler to accept DSP Release 3 instructions. '-mno-dspr3' turns
  860. off this option.
  861. '-mmsa'
  862. '-mno-msa'
  863. Generate code for the MIPS SIMD Architecture Extension. This tells
  864. the assembler to accept MSA instructions. '-mno-msa' turns off
  865. this option.
  866. '-mxpa'
  867. '-mno-xpa'
  868. Generate code for the MIPS eXtended Physical Address (XPA)
  869. Extension. This tells the assembler to accept XPA instructions.
  870. '-mno-xpa' turns off this option.
  871. '-mmt'
  872. '-mno-mt'
  873. Generate code for the MT Application Specific Extension. This
  874. tells the assembler to accept MT instructions. '-mno-mt' turns off
  875. this option.
  876. '-mmcu'
  877. '-mno-mcu'
  878. Generate code for the MCU Application Specific Extension. This
  879. tells the assembler to accept MCU instructions. '-mno-mcu' turns
  880. off this option.
  881. '-mcrc'
  882. '-mno-crc'
  883. Generate code for the MIPS cyclic redundancy check (CRC)
  884. Application Specific Extension. This tells the assembler to accept
  885. CRC instructions. '-mno-crc' turns off this option.
  886. '-mginv'
  887. '-mno-ginv'
  888. Generate code for the Global INValidate (GINV) Application Specific
  889. Extension. This tells the assembler to accept GINV instructions.
  890. '-mno-ginv' turns off this option.
  891. '-mloongson-mmi'
  892. '-mno-loongson-mmi'
  893. Generate code for the Loongson MultiMedia extensions Instructions
  894. (MMI) Application Specific Extension. This tells the assembler to
  895. accept MMI instructions. '-mno-loongson-mmi' turns off this
  896. option.
  897. '-mloongson-cam'
  898. '-mno-loongson-cam'
  899. Generate code for the Loongson Content Address Memory (CAM)
  900. instructions. This tells the assembler to accept Loongson CAM
  901. instructions. '-mno-loongson-cam' turns off this option.
  902. '-mloongson-ext'
  903. '-mno-loongson-ext'
  904. Generate code for the Loongson EXTensions (EXT) instructions. This
  905. tells the assembler to accept Loongson EXT instructions.
  906. '-mno-loongson-ext' turns off this option.
  907. '-mloongson-ext2'
  908. '-mno-loongson-ext2'
  909. Generate code for the Loongson EXTensions R2 (EXT2) instructions.
  910. This option implies '-mloongson-ext'. This tells the assembler to
  911. accept Loongson EXT2 instructions. '-mno-loongson-ext2' turns off
  912. this option.
  913. '-minsn32'
  914. '-mno-insn32'
  915. Only use 32-bit instruction encodings when generating code for the
  916. microMIPS processor. This option inhibits the use of any 16-bit
  917. instructions. This is equivalent to putting '.set insn32' at the
  918. start of the assembly file. '-mno-insn32' turns off this option.
  919. This is equivalent to putting '.set noinsn32' at the start of the
  920. assembly file. By default '-mno-insn32' is selected, allowing all
  921. instructions to be used.
  922. '--construct-floats'
  923. '--no-construct-floats'
  924. The '--no-construct-floats' option disables the construction of
  925. double width floating point constants by loading the two halves of
  926. the value into the two single width floating point registers that
  927. make up the double width register. By default '--construct-floats'
  928. is selected, allowing construction of these floating point
  929. constants.
  930. '--relax-branch'
  931. '--no-relax-branch'
  932. The '--relax-branch' option enables the relaxation of out-of-range
  933. branches. By default '--no-relax-branch' is selected, causing any
  934. out-of-range branches to produce an error.
  935. '-mignore-branch-isa'
  936. '-mno-ignore-branch-isa'
  937. Ignore branch checks for invalid transitions between ISA modes.
  938. The semantics of branches does not provide for an ISA mode switch,
  939. so in most cases the ISA mode a branch has been encoded for has to
  940. be the same as the ISA mode of the branch's target label.
  941. Therefore GAS has checks implemented that verify in branch assembly
  942. that the two ISA modes match. '-mignore-branch-isa' disables these
  943. checks. By default '-mno-ignore-branch-isa' is selected, causing
  944. any invalid branch requiring a transition between ISA modes to
  945. produce an error.
  946. '-mnan=ENCODING'
  947. Select between the IEEE 754-2008 ('-mnan=2008') or the legacy
  948. ('-mnan=legacy') NaN encoding format. The latter is the default.
  949. '--emulation=NAME'
  950. This option was formerly used to switch between ELF and ECOFF
  951. output on targets like IRIX 5 that supported both. MIPS ECOFF
  952. support was removed in GAS 2.24, so the option now serves little
  953. purpose. It is retained for backwards compatibility.
  954. The available configuration names are: 'mipself', 'mipslelf' and
  955. 'mipsbelf'. Choosing 'mipself' now has no effect, since the output
  956. is always ELF. 'mipslelf' and 'mipsbelf' select little- and
  957. big-endian output respectively, but '-EL' and '-EB' are now the
  958. preferred options instead.
  959. '-nocpp'
  960. 'as' ignores this option. It is accepted for compatibility with
  961. the native tools.
  962. '--trap'
  963. '--no-trap'
  964. '--break'
  965. '--no-break'
  966. Control how to deal with multiplication overflow and division by
  967. zero. '--trap' or '--no-break' (which are synonyms) take a trap
  968. exception (and only work for Instruction Set Architecture level 2
  969. and higher); '--break' or '--no-trap' (also synonyms, and the
  970. default) take a break exception.
  971. '-n'
  972. When this option is used, 'as' will issue a warning every time it
  973. generates a nop instruction from a macro.
  974. The following options are available when as is configured for an
  975. MCore processor.
  976. '-jsri2bsr'
  977. '-nojsri2bsr'
  978. Enable or disable the JSRI to BSR transformation. By default this
  979. is enabled. The command-line option '-nojsri2bsr' can be used to
  980. disable it.
  981. '-sifilter'
  982. '-nosifilter'
  983. Enable or disable the silicon filter behaviour. By default this is
  984. disabled. The default can be overridden by the '-sifilter'
  985. command-line option.
  986. '-relax'
  987. Alter jump instructions for long displacements.
  988. '-mcpu=[210|340]'
  989. Select the cpu type on the target hardware. This controls which
  990. instructions can be assembled.
  991. '-EB'
  992. Assemble for a big endian target.
  993. '-EL'
  994. Assemble for a little endian target.
  995. *Note Meta Options::, for the options available when as is configured
  996. for a Meta processor.
  997. See the info pages for documentation of the MMIX-specific options.
  998. *Note NDS32 Options::, for the options available when as is
  999. configured for a NDS32 processor.
  1000. *Note PowerPC-Opts::, for the options available when as is configured
  1001. for a PowerPC processor.
  1002. *Note RISC-V-Options::, for the options available when as is
  1003. configured for a RISC-V processor.
  1004. See the info pages for documentation of the RX-specific options.
  1005. The following options are available when as is configured for the
  1006. s390 processor family.
  1007. '-m31'
  1008. '-m64'
  1009. Select the word size, either 31/32 bits or 64 bits.
  1010. '-mesa'
  1011. '-mzarch'
  1012. Select the architecture mode, either the Enterprise System
  1013. Architecture (esa) or the z/Architecture mode (zarch).
  1014. '-march=PROCESSOR'
  1015. Specify which s390 processor variant is the target, 'g5' (or
  1016. 'arch3'), 'g6', 'z900' (or 'arch5'), 'z990' (or 'arch6'), 'z9-109',
  1017. 'z9-ec' (or 'arch7'), 'z10' (or 'arch8'), 'z196' (or 'arch9'),
  1018. 'zEC12' (or 'arch10'), 'z13' (or 'arch11'), 'z14' (or 'arch12'), or
  1019. 'z15' (or 'arch13').
  1020. '-mregnames'
  1021. '-mno-regnames'
  1022. Allow or disallow symbolic names for registers.
  1023. '-mwarn-areg-zero'
  1024. Warn whenever the operand for a base or index register has been
  1025. specified but evaluates to zero.
  1026. *Note TIC6X Options::, for the options available when as is
  1027. configured for a TMS320C6000 processor.
  1028. *Note TILE-Gx Options::, for the options available when as is
  1029. configured for a TILE-Gx processor.
  1030. *Note Visium Options::, for the options available when as is
  1031. configured for a Visium processor.
  1032. *Note Xtensa Options::, for the options available when as is
  1033. configured for an Xtensa processor.
  1034. *Note Z80 Options::, for the options available when as is configured
  1035. for an Z80 processor.
  1036. * Menu:
  1037. * Manual:: Structure of this Manual
  1038. * GNU Assembler:: The GNU Assembler
  1039. * Object Formats:: Object File Formats
  1040. * Command Line:: Command Line
  1041. * Input Files:: Input Files
  1042. * Object:: Output (Object) File
  1043. * Errors:: Error and Warning Messages
  1044. 
  1045. File: as.info, Node: Manual, Next: GNU Assembler, Up: Overview
  1046. 1.1 Structure of this Manual
  1047. ============================
  1048. This manual is intended to describe what you need to know to use GNU
  1049. 'as'. We cover the syntax expected in source files, including notation
  1050. for symbols, constants, and expressions; the directives that 'as'
  1051. understands; and of course how to invoke 'as'.
  1052. This manual also describes some of the machine-dependent features of
  1053. various flavors of the assembler.
  1054. On the other hand, this manual is _not_ intended as an introduction
  1055. to programming in assembly language--let alone programming in general!
  1056. In a similar vein, we make no attempt to introduce the machine
  1057. architecture; we do _not_ describe the instruction set, standard
  1058. mnemonics, registers or addressing modes that are standard to a
  1059. particular architecture. You may want to consult the manufacturer's
  1060. machine architecture manual for this information.
  1061. 
  1062. File: as.info, Node: GNU Assembler, Next: Object Formats, Prev: Manual, Up: Overview
  1063. 1.2 The GNU Assembler
  1064. =====================
  1065. GNU 'as' is really a family of assemblers. If you use (or have used)
  1066. the GNU assembler on one architecture, you should find a fairly similar
  1067. environment when you use it on another architecture. Each version has
  1068. much in common with the others, including object file formats, most
  1069. assembler directives (often called "pseudo-ops") and assembler syntax.
  1070. 'as' is primarily intended to assemble the output of the GNU C
  1071. compiler 'gcc' for use by the linker 'ld'. Nevertheless, we've tried to
  1072. make 'as' assemble correctly everything that other assemblers for the
  1073. same machine would assemble. Any exceptions are documented explicitly
  1074. (*note Machine Dependencies::). This doesn't mean 'as' always uses the
  1075. same syntax as another assembler for the same architecture; for example,
  1076. we know of several incompatible versions of 680x0 assembly language
  1077. syntax.
  1078. Unlike older assemblers, 'as' is designed to assemble a source
  1079. program in one pass of the source file. This has a subtle impact on the
  1080. '.org' directive (*note '.org': Org.).
  1081. 
  1082. File: as.info, Node: Object Formats, Next: Command Line, Prev: GNU Assembler, Up: Overview
  1083. 1.3 Object File Formats
  1084. =======================
  1085. The GNU assembler can be configured to produce several alternative
  1086. object file formats. For the most part, this does not affect how you
  1087. write assembly language programs; but directives for debugging symbols
  1088. are typically different in different file formats. *Note Symbol
  1089. Attributes: Symbol Attributes.
  1090. 
  1091. File: as.info, Node: Command Line, Next: Input Files, Prev: Object Formats, Up: Overview
  1092. 1.4 Command Line
  1093. ================
  1094. After the program name 'as', the command line may contain options and
  1095. file names. Options may appear in any order, and may be before, after,
  1096. or between file names. The order of file names is significant.
  1097. '--' (two hyphens) by itself names the standard input file
  1098. explicitly, as one of the files for 'as' to assemble.
  1099. Except for '--' any command-line argument that begins with a hyphen
  1100. ('-') is an option. Each option changes the behavior of 'as'. No
  1101. option changes the way another option works. An option is a '-'
  1102. followed by one or more letters; the case of the letter is important.
  1103. All options are optional.
  1104. Some options expect exactly one file name to follow them. The file
  1105. name may either immediately follow the option's letter (compatible with
  1106. older assemblers) or it may be the next command argument (GNU standard).
  1107. These two command lines are equivalent:
  1108. as -o my-object-file.o mumble.s
  1109. as -omy-object-file.o mumble.s
  1110. 
  1111. File: as.info, Node: Input Files, Next: Object, Prev: Command Line, Up: Overview
  1112. 1.5 Input Files
  1113. ===============
  1114. We use the phrase "source program", abbreviated "source", to describe
  1115. the program input to one run of 'as'. The program may be in one or more
  1116. files; how the source is partitioned into files doesn't change the
  1117. meaning of the source.
  1118. The source program is a concatenation of the text in all the files,
  1119. in the order specified.
  1120. Each time you run 'as' it assembles exactly one source program. The
  1121. source program is made up of one or more files. (The standard input is
  1122. also a file.)
  1123. You give 'as' a command line that has zero or more input file names.
  1124. The input files are read (from left file name to right). A command-line
  1125. argument (in any position) that has no special meaning is taken to be an
  1126. input file name.
  1127. If you give 'as' no file names it attempts to read one input file
  1128. from the 'as' standard input, which is normally your terminal. You may
  1129. have to type <ctl-D> to tell 'as' there is no more program to assemble.
  1130. Use '--' if you need to explicitly name the standard input file in
  1131. your command line.
  1132. If the source is empty, 'as' produces a small, empty object file.
  1133. Filenames and Line-numbers
  1134. --------------------------
  1135. There are two ways of locating a line in the input file (or files) and
  1136. either may be used in reporting error messages. One way refers to a
  1137. line number in a physical file; the other refers to a line number in a
  1138. "logical" file. *Note Error and Warning Messages: Errors.
  1139. "Physical files" are those files named in the command line given to
  1140. 'as'.
  1141. "Logical files" are simply names declared explicitly by assembler
  1142. directives; they bear no relation to physical files. Logical file names
  1143. help error messages reflect the original source file, when 'as' source
  1144. is itself synthesized from other files. 'as' understands the '#'
  1145. directives emitted by the 'gcc' preprocessor. See also *note '.file':
  1146. File.
  1147. 
  1148. File: as.info, Node: Object, Next: Errors, Prev: Input Files, Up: Overview
  1149. 1.6 Output (Object) File
  1150. ========================
  1151. Every time you run 'as' it produces an output file, which is your
  1152. assembly language program translated into numbers. This file is the
  1153. object file. Its default name is 'a.out'. You can give it another name
  1154. by using the '-o' option. Conventionally, object file names end with
  1155. '.o'. The default name is used for historical reasons: older assemblers
  1156. were capable of assembling self-contained programs directly into a
  1157. runnable program. (For some formats, this isn't currently possible, but
  1158. it can be done for the 'a.out' format.)
  1159. The object file is meant for input to the linker 'ld'. It contains
  1160. assembled program code, information to help 'ld' integrate the assembled
  1161. program into a runnable file, and (optionally) symbolic information for
  1162. the debugger.
  1163. 
  1164. File: as.info, Node: Errors, Prev: Object, Up: Overview
  1165. 1.7 Error and Warning Messages
  1166. ==============================
  1167. 'as' may write warnings and error messages to the standard error file
  1168. (usually your terminal). This should not happen when a compiler runs
  1169. 'as' automatically. Warnings report an assumption made so that 'as'
  1170. could keep assembling a flawed program; errors report a grave problem
  1171. that stops the assembly.
  1172. Warning messages have the format
  1173. file_name:NNN:Warning Message Text
  1174. (where NNN is a line number). If both a logical file name (*note
  1175. '.file': File.) and a logical line number (*note '.line': Line.) have
  1176. been given then they will be used, otherwise the file name and line
  1177. number in the current assembler source file will be used. The message
  1178. text is intended to be self explanatory (in the grand Unix tradition).
  1179. Note the file name must be set via the logical version of the '.file'
  1180. directive, not the DWARF2 version of the '.file' directive. For
  1181. example:
  1182. .file 2 "bar.c"
  1183. error_assembler_source
  1184. .file "foo.c"
  1185. .line 30
  1186. error_c_source
  1187. produces this output:
  1188. Assembler messages:
  1189. asm.s:2: Error: no such instruction: `error_assembler_source'
  1190. foo.c:31: Error: no such instruction: `error_c_source'
  1191. Error messages have the format
  1192. file_name:NNN:FATAL:Error Message Text
  1193. The file name and line number are derived as for warning messages.
  1194. The actual message text may be rather less explanatory because many of
  1195. them aren't supposed to happen.
  1196. 
  1197. File: as.info, Node: Invoking, Next: Syntax, Prev: Overview, Up: Top
  1198. 2 Command-Line Options
  1199. **********************
  1200. This chapter describes command-line options available in _all_ versions
  1201. of the GNU assembler; see *note Machine Dependencies::, for options
  1202. specific to particular machine architectures.
  1203. If you are invoking 'as' via the GNU C compiler, you can use the
  1204. '-Wa' option to pass arguments through to the assembler. The assembler
  1205. arguments must be separated from each other (and the '-Wa') by commas.
  1206. For example:
  1207. gcc -c -g -O -Wa,-alh,-L file.c
  1208. This passes two options to the assembler: '-alh' (emit a listing to
  1209. standard output with high-level and assembly source) and '-L' (retain
  1210. local symbols in the symbol table).
  1211. Usually you do not need to use this '-Wa' mechanism, since many
  1212. compiler command-line options are automatically passed to the assembler
  1213. by the compiler. (You can call the GNU compiler driver with the '-v'
  1214. option to see precisely what options it passes to each compilation pass,
  1215. including the assembler.)
  1216. * Menu:
  1217. * a:: -a[cdghlns] enable listings
  1218. * alternate:: -alternate enable alternate macro syntax
  1219. * D:: -D for compatibility
  1220. * f:: -f to work faster
  1221. * I:: -I for .include search path
  1222. * K:: -K for difference tables
  1223. * L:: -L to retain local symbols
  1224. * listing:: -listing-XXX to configure listing output
  1225. * M:: -M or -mri to assemble in MRI compatibility mode
  1226. * MD:: -MD for dependency tracking
  1227. * no-pad-sections:: -no-pad-sections to stop section padding
  1228. * o:: -o to name the object file
  1229. * R:: -R to join data and text sections
  1230. * statistics:: -statistics to see statistics about assembly
  1231. * traditional-format:: -traditional-format for compatible output
  1232. * v:: -v to announce version
  1233. * W:: -W, -no-warn, -warn, -fatal-warnings to control warnings
  1234. * Z:: -Z to make object file even after errors
  1235. 
  1236. File: as.info, Node: a, Next: alternate, Up: Invoking
  1237. 2.1 Enable Listings: '-a[cdghlns]'
  1238. ==================================
  1239. These options enable listing output from the assembler. By itself, '-a'
  1240. requests high-level, assembly, and symbols listing. You can use other
  1241. letters to select specific options for the list: '-ah' requests a
  1242. high-level language listing, '-al' requests an output-program assembly
  1243. listing, and '-as' requests a symbol table listing. High-level listings
  1244. require that a compiler debugging option like '-g' be used, and that
  1245. assembly listings ('-al') be requested also.
  1246. Use the '-ag' option to print a first section with general assembly
  1247. information, like as version, switches passed, or time stamp.
  1248. Use the '-ac' option to omit false conditionals from a listing. Any
  1249. lines which are not assembled because of a false '.if' (or '.ifdef', or
  1250. any other conditional), or a true '.if' followed by an '.else', will be
  1251. omitted from the listing.
  1252. Use the '-ad' option to omit debugging directives from the listing.
  1253. Once you have specified one of these options, you can further control
  1254. listing output and its appearance using the directives '.list',
  1255. '.nolist', '.psize', '.eject', '.title', and '.sbttl'. The '-an' option
  1256. turns off all forms processing. If you do not request listing output
  1257. with one of the '-a' options, the listing-control directives have no
  1258. effect.
  1259. The letters after '-a' may be combined into one option, _e.g._,
  1260. '-aln'.
  1261. Note if the assembler source is coming from the standard input (e.g.,
  1262. because it is being created by 'gcc' and the '-pipe' command-line switch
  1263. is being used) then the listing will not contain any comments or
  1264. preprocessor directives. This is because the listing code buffers input
  1265. source lines from stdin only after they have been preprocessed by the
  1266. assembler. This reduces memory usage and makes the code more efficient.
  1267. 
  1268. File: as.info, Node: alternate, Next: D, Prev: a, Up: Invoking
  1269. 2.2 '--alternate'
  1270. =================
  1271. Begin in alternate macro mode, see *note '.altmacro': Altmacro.
  1272. 
  1273. File: as.info, Node: D, Next: f, Prev: alternate, Up: Invoking
  1274. 2.3 '-D'
  1275. ========
  1276. This option has no effect whatsoever, but it is accepted to make it more
  1277. likely that scripts written for other assemblers also work with 'as'.
  1278. 
  1279. File: as.info, Node: f, Next: I, Prev: D, Up: Invoking
  1280. 2.4 Work Faster: '-f'
  1281. =====================
  1282. '-f' should only be used when assembling programs written by a (trusted)
  1283. compiler. '-f' stops the assembler from doing whitespace and comment
  1284. preprocessing on the input file(s) before assembling them. *Note
  1285. Preprocessing: Preprocessing.
  1286. _Warning:_ if you use '-f' when the files actually need to be
  1287. preprocessed (if they contain comments, for example), 'as' does not
  1288. work correctly.
  1289. 
  1290. File: as.info, Node: I, Next: K, Prev: f, Up: Invoking
  1291. 2.5 '.include' Search Path: '-I' PATH
  1292. =====================================
  1293. Use this option to add a PATH to the list of directories 'as' searches
  1294. for files specified in '.include' directives (*note '.include':
  1295. Include.). You may use '-I' as many times as necessary to include a
  1296. variety of paths. The current working directory is always searched
  1297. first; after that, 'as' searches any '-I' directories in the same order
  1298. as they were specified (left to right) on the command line.
  1299. 
  1300. File: as.info, Node: K, Next: L, Prev: I, Up: Invoking
  1301. 2.6 Difference Tables: '-K'
  1302. ===========================
  1303. 'as' sometimes alters the code emitted for directives of the form '.word
  1304. SYM1-SYM2'. *Note '.word': Word. You can use the '-K' option if you
  1305. want a warning issued when this is done.
  1306. 
  1307. File: as.info, Node: L, Next: listing, Prev: K, Up: Invoking
  1308. 2.7 Include Local Symbols: '-L'
  1309. ===============================
  1310. Symbols beginning with system-specific local label prefixes, typically
  1311. '.L' for ELF systems or 'L' for traditional a.out systems, are called
  1312. "local symbols". *Note Symbol Names::. Normally you do not see such
  1313. symbols when debugging, because they are intended for the use of
  1314. programs (like compilers) that compose assembler programs, not for your
  1315. notice. Normally both 'as' and 'ld' discard such symbols, so you do not
  1316. normally debug with them.
  1317. This option tells 'as' to retain those local symbols in the object
  1318. file. Usually if you do this you also tell the linker 'ld' to preserve
  1319. those symbols.
  1320. 
  1321. File: as.info, Node: listing, Next: M, Prev: L, Up: Invoking
  1322. 2.8 Configuring listing output: '--listing'
  1323. ===========================================
  1324. The listing feature of the assembler can be enabled via the command-line
  1325. switch '-a' (*note a::). This feature combines the input source file(s)
  1326. with a hex dump of the corresponding locations in the output object
  1327. file, and displays them as a listing file. The format of this listing
  1328. can be controlled by directives inside the assembler source (i.e.,
  1329. '.list' (*note List::), '.title' (*note Title::), '.sbttl' (*note
  1330. Sbttl::), '.psize' (*note Psize::), and '.eject' (*note Eject::) and
  1331. also by the following switches:
  1332. '--listing-lhs-width='number''
  1333. Sets the maximum width, in words, of the first line of the hex byte
  1334. dump. This dump appears on the left hand side of the listing
  1335. output.
  1336. '--listing-lhs-width2='number''
  1337. Sets the maximum width, in words, of any further lines of the hex
  1338. byte dump for a given input source line. If this value is not
  1339. specified, it defaults to being the same as the value specified for
  1340. '--listing-lhs-width'. If neither switch is used the default is to
  1341. one.
  1342. '--listing-rhs-width='number''
  1343. Sets the maximum width, in characters, of the source line that is
  1344. displayed alongside the hex dump. The default value for this
  1345. parameter is 100. The source line is displayed on the right hand
  1346. side of the listing output.
  1347. '--listing-cont-lines='number''
  1348. Sets the maximum number of continuation lines of hex dump that will
  1349. be displayed for a given single line of source input. The default
  1350. value is 4.
  1351. 
  1352. File: as.info, Node: M, Next: MD, Prev: listing, Up: Invoking
  1353. 2.9 Assemble in MRI Compatibility Mode: '-M'
  1354. ============================================
  1355. The '-M' or '--mri' option selects MRI compatibility mode. This changes
  1356. the syntax and pseudo-op handling of 'as' to make it compatible with the
  1357. 'ASM68K' assembler from Microtec Research. The exact nature of the MRI
  1358. syntax will not be documented here; see the MRI manuals for more
  1359. information. Note in particular that the handling of macros and macro
  1360. arguments is somewhat different. The purpose of this option is to
  1361. permit assembling existing MRI assembler code using 'as'.
  1362. The MRI compatibility is not complete. Certain operations of the MRI
  1363. assembler depend upon its object file format, and can not be supported
  1364. using other object file formats. Supporting these would require
  1365. enhancing each object file format individually. These are:
  1366. * global symbols in common section
  1367. The m68k MRI assembler supports common sections which are merged by
  1368. the linker. Other object file formats do not support this. 'as'
  1369. handles common sections by treating them as a single common symbol.
  1370. It permits local symbols to be defined within a common section, but
  1371. it can not support global symbols, since it has no way to describe
  1372. them.
  1373. * complex relocations
  1374. The MRI assemblers support relocations against a negated section
  1375. address, and relocations which combine the start addresses of two
  1376. or more sections. These are not support by other object file
  1377. formats.
  1378. * 'END' pseudo-op specifying start address
  1379. The MRI 'END' pseudo-op permits the specification of a start
  1380. address. This is not supported by other object file formats. The
  1381. start address may instead be specified using the '-e' option to the
  1382. linker, or in a linker script.
  1383. * 'IDNT', '.ident' and 'NAME' pseudo-ops
  1384. The MRI 'IDNT', '.ident' and 'NAME' pseudo-ops assign a module name
  1385. to the output file. This is not supported by other object file
  1386. formats.
  1387. * 'ORG' pseudo-op
  1388. The m68k MRI 'ORG' pseudo-op begins an absolute section at a given
  1389. address. This differs from the usual 'as' '.org' pseudo-op, which
  1390. changes the location within the current section. Absolute sections
  1391. are not supported by other object file formats. The address of a
  1392. section may be assigned within a linker script.
  1393. There are some other features of the MRI assembler which are not
  1394. supported by 'as', typically either because they are difficult or
  1395. because they seem of little consequence. Some of these may be supported
  1396. in future releases.
  1397. * EBCDIC strings
  1398. EBCDIC strings are not supported.
  1399. * packed binary coded decimal
  1400. Packed binary coded decimal is not supported. This means that the
  1401. 'DC.P' and 'DCB.P' pseudo-ops are not supported.
  1402. * 'FEQU' pseudo-op
  1403. The m68k 'FEQU' pseudo-op is not supported.
  1404. * 'NOOBJ' pseudo-op
  1405. The m68k 'NOOBJ' pseudo-op is not supported.
  1406. * 'OPT' branch control options
  1407. The m68k 'OPT' branch control options--'B', 'BRS', 'BRB', 'BRL',
  1408. and 'BRW'--are ignored. 'as' automatically relaxes all branches,
  1409. whether forward or backward, to an appropriate size, so these
  1410. options serve no purpose.
  1411. * 'OPT' list control options
  1412. The following m68k 'OPT' list control options are ignored: 'C',
  1413. 'CEX', 'CL', 'CRE', 'E', 'G', 'I', 'M', 'MEX', 'MC', 'MD', 'X'.
  1414. * other 'OPT' options
  1415. The following m68k 'OPT' options are ignored: 'NEST', 'O', 'OLD',
  1416. 'OP', 'P', 'PCO', 'PCR', 'PCS', 'R'.
  1417. * 'OPT' 'D' option is default
  1418. The m68k 'OPT' 'D' option is the default, unlike the MRI assembler.
  1419. 'OPT NOD' may be used to turn it off.
  1420. * 'XREF' pseudo-op.
  1421. The m68k 'XREF' pseudo-op is ignored.
  1422. 
  1423. File: as.info, Node: MD, Next: no-pad-sections, Prev: M, Up: Invoking
  1424. 2.10 Dependency Tracking: '--MD'
  1425. ================================
  1426. 'as' can generate a dependency file for the file it creates. This file
  1427. consists of a single rule suitable for 'make' describing the
  1428. dependencies of the main source file.
  1429. The rule is written to the file named in its argument.
  1430. This feature is used in the automatic updating of makefiles.
  1431. 
  1432. File: as.info, Node: no-pad-sections, Next: o, Prev: MD, Up: Invoking
  1433. 2.11 Output Section Padding
  1434. ===========================
  1435. Normally the assembler will pad the end of each output section up to its
  1436. alignment boundary. But this can waste space, which can be significant
  1437. on memory constrained targets. So the '--no-pad-sections' option will
  1438. disable this behaviour.
  1439. 
  1440. File: as.info, Node: o, Next: R, Prev: no-pad-sections, Up: Invoking
  1441. 2.12 Name the Object File: '-o'
  1442. ===============================
  1443. There is always one object file output when you run 'as'. By default it
  1444. has the name 'a.out'. You use this option (which takes exactly one
  1445. filename) to give the object file a different name.
  1446. Whatever the object file is called, 'as' overwrites any existing file
  1447. of the same name.
  1448. 
  1449. File: as.info, Node: R, Next: statistics, Prev: o, Up: Invoking
  1450. 2.13 Join Data and Text Sections: '-R'
  1451. ======================================
  1452. '-R' tells 'as' to write the object file as if all data-section data
  1453. lives in the text section. This is only done at the very last moment:
  1454. your binary data are the same, but data section parts are relocated
  1455. differently. The data section part of your object file is zero bytes
  1456. long because all its bytes are appended to the text section. (*Note
  1457. Sections and Relocation: Sections.)
  1458. When you specify '-R' it would be possible to generate shorter
  1459. address displacements (because we do not have to cross between text and
  1460. data section). We refrain from doing this simply for compatibility with
  1461. older versions of 'as'. In future, '-R' may work this way.
  1462. When 'as' is configured for COFF or ELF output, this option is only
  1463. useful if you use sections named '.text' and '.data'.
  1464. '-R' is not supported for any of the HPPA targets. Using '-R'
  1465. generates a warning from 'as'.
  1466. 
  1467. File: as.info, Node: statistics, Next: traditional-format, Prev: R, Up: Invoking
  1468. 2.14 Display Assembly Statistics: '--statistics'
  1469. ================================================
  1470. Use '--statistics' to display two statistics about the resources used by
  1471. 'as': the maximum amount of space allocated during the assembly (in
  1472. bytes), and the total execution time taken for the assembly (in CPU
  1473. seconds).
  1474. 
  1475. File: as.info, Node: traditional-format, Next: v, Prev: statistics, Up: Invoking
  1476. 2.15 Compatible Output: '--traditional-format'
  1477. ==============================================
  1478. For some targets, the output of 'as' is different in some ways from the
  1479. output of some existing assembler. This switch requests 'as' to use the
  1480. traditional format instead.
  1481. For example, it disables the exception frame optimizations which 'as'
  1482. normally does by default on 'gcc' output.
  1483. 
  1484. File: as.info, Node: v, Next: W, Prev: traditional-format, Up: Invoking
  1485. 2.16 Announce Version: '-v'
  1486. ===========================
  1487. You can find out what version of as is running by including the option
  1488. '-v' (which you can also spell as '-version') on the command line.
  1489. 
  1490. File: as.info, Node: W, Next: Z, Prev: v, Up: Invoking
  1491. 2.17 Control Warnings: '-W', '--warn', '--no-warn', '--fatal-warnings'
  1492. ======================================================================
  1493. 'as' should never give a warning or error message when assembling
  1494. compiler output. But programs written by people often cause 'as' to
  1495. give a warning that a particular assumption was made. All such warnings
  1496. are directed to the standard error file.
  1497. If you use the '-W' and '--no-warn' options, no warnings are issued.
  1498. This only affects the warning messages: it does not change any
  1499. particular of how 'as' assembles your file. Errors, which stop the
  1500. assembly, are still reported.
  1501. If you use the '--fatal-warnings' option, 'as' considers files that
  1502. generate warnings to be in error.
  1503. You can switch these options off again by specifying '--warn', which
  1504. causes warnings to be output as usual.
  1505. 
  1506. File: as.info, Node: Z, Prev: W, Up: Invoking
  1507. 2.18 Generate Object File in Spite of Errors: '-Z'
  1508. ==================================================
  1509. After an error message, 'as' normally produces no output. If for some
  1510. reason you are interested in object file output even after 'as' gives an
  1511. error message on your program, use the '-Z' option. If there are any
  1512. errors, 'as' continues anyways, and writes an object file after a final
  1513. warning message of the form 'N errors, M warnings, generating bad object
  1514. file.'
  1515. 
  1516. File: as.info, Node: Syntax, Next: Sections, Prev: Invoking, Up: Top
  1517. 3 Syntax
  1518. ********
  1519. This chapter describes the machine-independent syntax allowed in a
  1520. source file. 'as' syntax is similar to what many other assemblers use;
  1521. it is inspired by the BSD 4.2 assembler, except that 'as' does not
  1522. assemble Vax bit-fields.
  1523. * Menu:
  1524. * Preprocessing:: Preprocessing
  1525. * Whitespace:: Whitespace
  1526. * Comments:: Comments
  1527. * Symbol Intro:: Symbols
  1528. * Statements:: Statements
  1529. * Constants:: Constants
  1530. 
  1531. File: as.info, Node: Preprocessing, Next: Whitespace, Up: Syntax
  1532. 3.1 Preprocessing
  1533. =================
  1534. The 'as' internal preprocessor:
  1535. * adjusts and removes extra whitespace. It leaves one space or tab
  1536. before the keywords on a line, and turns any other whitespace on
  1537. the line into a single space.
  1538. * removes all comments, replacing them with a single space, or an
  1539. appropriate number of newlines.
  1540. * converts character constants into the appropriate numeric values.
  1541. It does not do macro processing, include file handling, or anything
  1542. else you may get from your C compiler's preprocessor. You can do
  1543. include file processing with the '.include' directive (*note '.include':
  1544. Include.). You can use the GNU C compiler driver to get other "CPP"
  1545. style preprocessing by giving the input file a '.S' suffix. See the
  1546. 'Options Controlling the Kind of Output' section of the GCC manual for
  1547. more details
  1548. (https://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html#Overall-Options)
  1549. Excess whitespace, comments, and character constants cannot be used
  1550. in the portions of the input text that are not preprocessed.
  1551. If the first line of an input file is '#NO_APP' or if you use the
  1552. '-f' option, whitespace and comments are not removed from the input
  1553. file. Within an input file, you can ask for whitespace and comment
  1554. removal in specific portions of the by putting a line that says '#APP'
  1555. before the text that may contain whitespace or comments, and putting a
  1556. line that says '#NO_APP' after this text. This feature is mainly intend
  1557. to support 'asm' statements in compilers whose output is otherwise free
  1558. of comments and whitespace.
  1559. 
  1560. File: as.info, Node: Whitespace, Next: Comments, Prev: Preprocessing, Up: Syntax
  1561. 3.2 Whitespace
  1562. ==============
  1563. "Whitespace" is one or more blanks or tabs, in any order. Whitespace is
  1564. used to separate symbols, and to make programs neater for people to
  1565. read. Unless within character constants (*note Character Constants:
  1566. Characters.), any whitespace means the same as exactly one space.
  1567. 
  1568. File: as.info, Node: Comments, Next: Symbol Intro, Prev: Whitespace, Up: Syntax
  1569. 3.3 Comments
  1570. ============
  1571. There are two ways of rendering comments to 'as'. In both cases the
  1572. comment is equivalent to one space.
  1573. Anything from '/*' through the next '*/' is a comment. This means
  1574. you may not nest these comments.
  1575. /*
  1576. The only way to include a newline ('\n') in a comment
  1577. is to use this sort of comment.
  1578. */
  1579. /* This sort of comment does not nest. */
  1580. Anything from a "line comment" character up to the next newline is
  1581. considered a comment and is ignored. The line comment character is
  1582. target specific, and some targets multiple comment characters. Some
  1583. targets also have line comment characters that only work if they are the
  1584. first character on a line. Some targets use a sequence of two
  1585. characters to introduce a line comment. Some targets can also change
  1586. their line comment characters depending upon command-line options that
  1587. have been used. For more details see the _Syntax_ section in the
  1588. documentation for individual targets.
  1589. If the line comment character is the hash sign ('#') then it still
  1590. has the special ability to enable and disable preprocessing (*note
  1591. Preprocessing::) and to specify logical line numbers:
  1592. To be compatible with past assemblers, lines that begin with '#' have
  1593. a special interpretation. Following the '#' should be an absolute
  1594. expression (*note Expressions::): the logical line number of the _next_
  1595. line. Then a string (*note Strings: Strings.) is allowed: if present it
  1596. is a new logical file name. The rest of the line, if any, should be
  1597. whitespace.
  1598. If the first non-whitespace characters on the line are not numeric,
  1599. the line is ignored. (Just like a comment.)
  1600. # This is an ordinary comment.
  1601. # 42-6 "new_file_name" # New logical file name
  1602. # This is logical line # 36.
  1603. This feature is deprecated, and may disappear from future versions of
  1604. 'as'.
  1605. 
  1606. File: as.info, Node: Symbol Intro, Next: Statements, Prev: Comments, Up: Syntax
  1607. 3.4 Symbols
  1608. ===========
  1609. A "symbol" is one or more characters chosen from the set of all letters
  1610. (both upper and lower case), digits and the three characters '_.$'. On
  1611. most machines, you can also use '$' in symbol names; exceptions are
  1612. noted in *note Machine Dependencies::. No symbol may begin with a
  1613. digit. Case is significant. There is no length limit; all characters
  1614. are significant. Multibyte characters are supported, but note that the
  1615. setting of the '--multibyte-handling' option might prevent their use.
  1616. Symbols are delimited by characters not in that set, or by the beginning
  1617. of a file (since the source program must end with a newline, the end of
  1618. a file is not a possible symbol delimiter). *Note Symbols::.
  1619. Symbol names may also be enclosed in double quote '"' characters. In
  1620. such cases any characters are allowed, except for the NUL character. If
  1621. a double quote character is to be included in the symbol name it must be
  1622. preceded by a backslash '\' character.
  1623. 
  1624. File: as.info, Node: Statements, Next: Constants, Prev: Symbol Intro, Up: Syntax
  1625. 3.5 Statements
  1626. ==============
  1627. A "statement" ends at a newline character ('\n') or a "line separator
  1628. character". The line separator character is target specific and
  1629. described in the _Syntax_ section of each target's documentation. Not
  1630. all targets support a line separator character. The newline or line
  1631. separator character is considered to be part of the preceding statement.
  1632. Newlines and separators within character constants are an exception:
  1633. they do not end statements.
  1634. It is an error to end any statement with end-of-file: the last
  1635. character of any input file should be a newline.
  1636. An empty statement is allowed, and may include whitespace. It is
  1637. ignored.
  1638. A statement begins with zero or more labels, optionally followed by a
  1639. key symbol which determines what kind of statement it is. The key
  1640. symbol determines the syntax of the rest of the statement. If the
  1641. symbol begins with a dot '.' then the statement is an assembler
  1642. directive: typically valid for any computer. If the symbol begins with
  1643. a letter the statement is an assembly language "instruction": it
  1644. assembles into a machine language instruction. Different versions of
  1645. 'as' for different computers recognize different instructions. In fact,
  1646. the same symbol may represent a different instruction in a different
  1647. computer's assembly language.
  1648. A label is a symbol immediately followed by a colon (':').
  1649. Whitespace before a label or after a colon is permitted, but you may not
  1650. have whitespace between a label's symbol and its colon. *Note Labels::.
  1651. For HPPA targets, labels need not be immediately followed by a colon,
  1652. but the definition of a label must begin in column zero. This also
  1653. implies that only one label may be defined on each line.
  1654. label: .directive followed by something
  1655. another_label: # This is an empty statement.
  1656. instruction operand_1, operand_2, ...
  1657. 
  1658. File: as.info, Node: Constants, Prev: Statements, Up: Syntax
  1659. 3.6 Constants
  1660. =============
  1661. A constant is a number, written so that its value is known by
  1662. inspection, without knowing any context. Like this:
  1663. .byte 74, 0112, 092, 0x4A, 0X4a, 'J, '\J # All the same value.
  1664. .ascii "Ring the bell\7" # A string constant.
  1665. .octa 0x123456789abcdef0123456789ABCDEF0 # A bignum.
  1666. .float 0f-314159265358979323846264338327\
  1667. 95028841971.693993751E-40 # - pi, a flonum.
  1668. * Menu:
  1669. * Characters:: Character Constants
  1670. * Numbers:: Number Constants
  1671. 
  1672. File: as.info, Node: Characters, Next: Numbers, Up: Constants
  1673. 3.6.1 Character Constants
  1674. -------------------------
  1675. There are two kinds of character constants. A "character" stands for
  1676. one character in one byte and its value may be used in numeric
  1677. expressions. String constants (properly called string _literals_) are
  1678. potentially many bytes and their values may not be used in arithmetic
  1679. expressions.
  1680. * Menu:
  1681. * Strings:: Strings
  1682. * Chars:: Characters
  1683. 
  1684. File: as.info, Node: Strings, Next: Chars, Up: Characters
  1685. 3.6.1.1 Strings
  1686. ...............
  1687. A "string" is written between double-quotes. It may contain
  1688. double-quotes or null characters. The way to get special characters
  1689. into a string is to "escape" these characters: precede them with a
  1690. backslash '\' character. For example '\\' represents one backslash: the
  1691. first '\' is an escape which tells 'as' to interpret the second
  1692. character literally as a backslash (which prevents 'as' from recognizing
  1693. the second '\' as an escape character). The complete list of escapes
  1694. follows.
  1695. '\b'
  1696. Mnemonic for backspace; for ASCII this is octal code 010.
  1697. 'backslash-f'
  1698. Mnemonic for FormFeed; for ASCII this is octal code 014.
  1699. '\n'
  1700. Mnemonic for newline; for ASCII this is octal code 012.
  1701. '\r'
  1702. Mnemonic for carriage-Return; for ASCII this is octal code 015.
  1703. '\t'
  1704. Mnemonic for horizontal Tab; for ASCII this is octal code 011.
  1705. '\ DIGIT DIGIT DIGIT'
  1706. An octal character code. The numeric code is 3 octal digits. For
  1707. compatibility with other Unix systems, 8 and 9 are accepted as
  1708. digits: for example, '\008' has the value 010, and '\009' the value
  1709. 011.
  1710. '\x HEX-DIGITS...'
  1711. A hex character code. All trailing hex digits are combined.
  1712. Either upper or lower case 'x' works.
  1713. '\\'
  1714. Represents one '\' character.
  1715. '\"'
  1716. Represents one '"' character. Needed in strings to represent this
  1717. character, because an unescaped '"' would end the string.
  1718. '\ ANYTHING-ELSE'
  1719. Any other character when escaped by '\' gives a warning, but
  1720. assembles as if the '\' was not present. The idea is that if you
  1721. used an escape sequence you clearly didn't want the literal
  1722. interpretation of the following character. However 'as' has no
  1723. other interpretation, so 'as' knows it is giving you the wrong code
  1724. and warns you of the fact.
  1725. Which characters are escapable, and what those escapes represent,
  1726. varies widely among assemblers. The current set is what we think the
  1727. BSD 4.2 assembler recognizes, and is a subset of what most C compilers
  1728. recognize. If you are in doubt, do not use an escape sequence.
  1729. 
  1730. File: as.info, Node: Chars, Prev: Strings, Up: Characters
  1731. 3.6.1.2 Characters
  1732. ..................
  1733. A single character may be written as a single quote immediately followed
  1734. by that character. Some backslash escapes apply to characters, '\b',
  1735. '\f', '\n', '\r', '\t', and '\"' with the same meaning as for strings,
  1736. plus '\'' for a single quote. So if you want to write the character
  1737. backslash, you must write ''\\' where the first '\' escapes the second
  1738. '\'. As you can see, the quote is an acute accent, not a grave accent.
  1739. A newline immediately following an acute accent is taken as a literal
  1740. character and does not count as the end of a statement. The value of a
  1741. character constant in a numeric expression is the machine's byte-wide
  1742. code for that character. 'as' assumes your character code is ASCII:
  1743. ''A' means 65, ''B' means 66, and so on.
  1744. 
  1745. File: as.info, Node: Numbers, Prev: Characters, Up: Constants
  1746. 3.6.2 Number Constants
  1747. ----------------------
  1748. 'as' distinguishes three kinds of numbers according to how they are
  1749. stored in the target machine. _Integers_ are numbers that would fit
  1750. into an 'int' in the C language. _Bignums_ are integers, but they are
  1751. stored in more than 32 bits. _Flonums_ are floating point numbers,
  1752. described below.
  1753. * Menu:
  1754. * Integers:: Integers
  1755. * Bignums:: Bignums
  1756. * Flonums:: Flonums
  1757. 
  1758. File: as.info, Node: Integers, Next: Bignums, Up: Numbers
  1759. 3.6.2.1 Integers
  1760. ................
  1761. A binary integer is '0b' or '0B' followed by zero or more of the binary
  1762. digits '01'.
  1763. An octal integer is '0' followed by zero or more of the octal digits
  1764. ('01234567').
  1765. A decimal integer starts with a non-zero digit followed by zero or
  1766. more digits ('0123456789').
  1767. A hexadecimal integer is '0x' or '0X' followed by one or more
  1768. hexadecimal digits chosen from '0123456789abcdefABCDEF'.
  1769. Integers have the usual values. To denote a negative integer, use
  1770. the prefix operator '-' discussed under expressions (*note Prefix
  1771. Operators: Prefix Ops.).
  1772. 
  1773. File: as.info, Node: Bignums, Next: Flonums, Prev: Integers, Up: Numbers
  1774. 3.6.2.2 Bignums
  1775. ...............
  1776. A "bignum" has the same syntax and semantics as an integer except that
  1777. the number (or its negative) takes more than 32 bits to represent in
  1778. binary. The distinction is made because in some places integers are
  1779. permitted while bignums are not.
  1780. 
  1781. File: as.info, Node: Flonums, Prev: Bignums, Up: Numbers
  1782. 3.6.2.3 Flonums
  1783. ...............
  1784. A "flonum" represents a floating point number. The translation is
  1785. indirect: a decimal floating point number from the text is converted by
  1786. 'as' to a generic binary floating point number of more than sufficient
  1787. precision. This generic floating point number is converted to a
  1788. particular computer's floating point format (or formats) by a portion of
  1789. 'as' specialized to that computer.
  1790. A flonum is written by writing (in order)
  1791. * The digit '0'. ('0' is optional on the HPPA.)
  1792. * A letter, to tell 'as' the rest of the number is a flonum. 'e' is
  1793. recommended. Case is not important.
  1794. On the H8/300 and Renesas / SuperH SH architectures, the letter
  1795. must be one of the letters 'DFPRSX' (in upper or lower case).
  1796. On the ARC, the letter must be one of the letters 'DFRS' (in upper
  1797. or lower case).
  1798. On the HPPA architecture, the letter must be 'E' (upper case only).
  1799. * An optional sign: either '+' or '-'.
  1800. * An optional "integer part": zero or more decimal digits.
  1801. * An optional "fractional part": '.' followed by zero or more decimal
  1802. digits.
  1803. * An optional exponent, consisting of:
  1804. * An 'E' or 'e'.
  1805. * Optional sign: either '+' or '-'.
  1806. * One or more decimal digits.
  1807. At least one of the integer part or the fractional part must be
  1808. present. The floating point number has the usual base-10 value.
  1809. 'as' does all processing using integers. Flonums are computed
  1810. independently of any floating point hardware in the computer running
  1811. 'as'.
  1812. 
  1813. File: as.info, Node: Sections, Next: Symbols, Prev: Syntax, Up: Top
  1814. 4 Sections and Relocation
  1815. *************************
  1816. * Menu:
  1817. * Secs Background:: Background
  1818. * Ld Sections:: Linker Sections
  1819. * As Sections:: Assembler Internal Sections
  1820. * Sub-Sections:: Sub-Sections
  1821. * bss:: bss Section
  1822. 
  1823. File: as.info, Node: Secs Background, Next: Ld Sections, Up: Sections
  1824. 4.1 Background
  1825. ==============
  1826. Roughly, a section is a range of addresses, with no gaps; all data "in"
  1827. those addresses is treated the same for some particular purpose. For
  1828. example there may be a "read only" section.
  1829. The linker 'ld' reads many object files (partial programs) and
  1830. combines their contents to form a runnable program. When 'as' emits an
  1831. object file, the partial program is assumed to start at address 0. 'ld'
  1832. assigns the final addresses for the partial program, so that different
  1833. partial programs do not overlap. This is actually an
  1834. oversimplification, but it suffices to explain how 'as' uses sections.
  1835. 'ld' moves blocks of bytes of your program to their run-time
  1836. addresses. These blocks slide to their run-time addresses as rigid
  1837. units; their length does not change and neither does the order of bytes
  1838. within them. Such a rigid unit is called a _section_. Assigning
  1839. run-time addresses to sections is called "relocation". It includes the
  1840. task of adjusting mentions of object-file addresses so they refer to the
  1841. proper run-time addresses. For the H8/300, and for the Renesas / SuperH
  1842. SH, 'as' pads sections if needed to ensure they end on a word (sixteen
  1843. bit) boundary.
  1844. An object file written by 'as' has at least three sections, any of
  1845. which may be empty. These are named "text", "data" and "bss" sections.
  1846. When it generates COFF or ELF output, 'as' can also generate whatever
  1847. other named sections you specify using the '.section' directive (*note
  1848. '.section': Section.). If you do not use any directives that place
  1849. output in the '.text' or '.data' sections, these sections still exist,
  1850. but are empty.
  1851. When 'as' generates SOM or ELF output for the HPPA, 'as' can also
  1852. generate whatever other named sections you specify using the '.space'
  1853. and '.subspace' directives. See 'HP9000 Series 800 Assembly Language
  1854. Reference Manual' (HP 92432-90001) for details on the '.space' and
  1855. '.subspace' assembler directives.
  1856. Additionally, 'as' uses different names for the standard text, data,
  1857. and bss sections when generating SOM output. Program text is placed
  1858. into the '$CODE$' section, data into '$DATA$', and BSS into '$BSS$'.
  1859. Within the object file, the text section starts at address '0', the
  1860. data section follows, and the bss section follows the data section.
  1861. When generating either SOM or ELF output files on the HPPA, the text
  1862. section starts at address '0', the data section at address '0x4000000',
  1863. and the bss section follows the data section.
  1864. To let 'ld' know which data changes when the sections are relocated,
  1865. and how to change that data, 'as' also writes to the object file details
  1866. of the relocation needed. To perform relocation 'ld' must know, each
  1867. time an address in the object file is mentioned:
  1868. * Where in the object file is the beginning of this reference to an
  1869. address?
  1870. * How long (in bytes) is this reference?
  1871. * Which section does the address refer to? What is the numeric value
  1872. of
  1873. (ADDRESS) - (START-ADDRESS OF SECTION)?
  1874. * Is the reference to an address "Program-Counter relative"?
  1875. In fact, every address 'as' ever uses is expressed as
  1876. (SECTION) + (OFFSET INTO SECTION)
  1877. Further, most expressions 'as' computes have this section-relative
  1878. nature. (For some object formats, such as SOM for the HPPA, some
  1879. expressions are symbol-relative instead.)
  1880. In this manual we use the notation {SECNAME N} to mean "offset N into
  1881. section SECNAME."
  1882. Apart from text, data and bss sections you need to know about the
  1883. "absolute" section. When 'ld' mixes partial programs, addresses in the
  1884. absolute section remain unchanged. For example, address '{absolute 0}'
  1885. is "relocated" to run-time address 0 by 'ld'. Although the linker never
  1886. arranges two partial programs' data sections with overlapping addresses
  1887. after linking, _by definition_ their absolute sections must overlap.
  1888. Address '{absolute 239}' in one part of a program is always the same
  1889. address when the program is running as address '{absolute 239}' in any
  1890. other part of the program.
  1891. The idea of sections is extended to the "undefined" section. Any
  1892. address whose section is unknown at assembly time is by definition
  1893. rendered {undefined U}--where U is filled in later. Since numbers are
  1894. always defined, the only way to generate an undefined address is to
  1895. mention an undefined symbol. A reference to a named common block would
  1896. be such a symbol: its value is unknown at assembly time so it has
  1897. section _undefined_.
  1898. By analogy the word _section_ is used to describe groups of sections
  1899. in the linked program. 'ld' puts all partial programs' text sections in
  1900. contiguous addresses in the linked program. It is customary to refer to
  1901. the _text section_ of a program, meaning all the addresses of all
  1902. partial programs' text sections. Likewise for data and bss sections.
  1903. Some sections are manipulated by 'ld'; others are invented for use of
  1904. 'as' and have no meaning except during assembly.
  1905. 
  1906. File: as.info, Node: Ld Sections, Next: As Sections, Prev: Secs Background, Up: Sections
  1907. 4.2 Linker Sections
  1908. ===================
  1909. 'ld' deals with just four kinds of sections, summarized below.
  1910. *named sections*
  1911. *text section*
  1912. *data section*
  1913. These sections hold your program. 'as' and 'ld' treat them as
  1914. separate but equal sections. Anything you can say of one section
  1915. is true of another. When the program is running, however, it is
  1916. customary for the text section to be unalterable. The text section
  1917. is often shared among processes: it contains instructions,
  1918. constants and the like. The data section of a running program is
  1919. usually alterable: for example, C variables would be stored in the
  1920. data section.
  1921. *bss section*
  1922. This section contains zeroed bytes when your program begins
  1923. running. It is used to hold uninitialized variables or common
  1924. storage. The length of each partial program's bss section is
  1925. important, but because it starts out containing zeroed bytes there
  1926. is no need to store explicit zero bytes in the object file. The
  1927. bss section was invented to eliminate those explicit zeros from
  1928. object files.
  1929. *absolute section*
  1930. Address 0 of this section is always "relocated" to runtime address
  1931. 0. This is useful if you want to refer to an address that 'ld'
  1932. must not change when relocating. In this sense we speak of
  1933. absolute addresses being "unrelocatable": they do not change during
  1934. relocation.
  1935. *undefined section*
  1936. This "section" is a catch-all for address references to objects not
  1937. in the preceding sections.
  1938. An idealized example of three relocatable sections follows. The
  1939. example uses the traditional section names '.text' and '.data'. Memory
  1940. addresses are on the horizontal axis.
  1941. +-----+----+--+
  1942. partial program # 1: |ttttt|dddd|00|
  1943. +-----+----+--+
  1944. text data bss
  1945. seg. seg. seg.
  1946. +---+---+---+
  1947. partial program # 2: |TTT|DDD|000|
  1948. +---+---+---+
  1949. +--+---+-----+--+----+---+-----+~~
  1950. linked program: | |TTT|ttttt| |dddd|DDD|00000|
  1951. +--+---+-----+--+----+---+-----+~~
  1952. addresses: 0 ...
  1953. 
  1954. File: as.info, Node: As Sections, Next: Sub-Sections, Prev: Ld Sections, Up: Sections
  1955. 4.3 Assembler Internal Sections
  1956. ===============================
  1957. These sections are meant only for the internal use of 'as'. They have
  1958. no meaning at run-time. You do not really need to know about these
  1959. sections for most purposes; but they can be mentioned in 'as' warning
  1960. messages, so it might be helpful to have an idea of their meanings to
  1961. 'as'. These sections are used to permit the value of every expression
  1962. in your assembly language program to be a section-relative address.
  1963. ASSEMBLER-INTERNAL-LOGIC-ERROR!
  1964. An internal assembler logic error has been found. This means there
  1965. is a bug in the assembler.
  1966. expr section
  1967. The assembler stores complex expression internally as combinations
  1968. of symbols. When it needs to represent an expression as a symbol,
  1969. it puts it in the expr section.
  1970. 
  1971. File: as.info, Node: Sub-Sections, Next: bss, Prev: As Sections, Up: Sections
  1972. 4.4 Sub-Sections
  1973. ================
  1974. Assembled bytes conventionally fall into two sections: text and data.
  1975. You may have separate groups of data in named sections that you want to
  1976. end up near to each other in the object file, even though they are not
  1977. contiguous in the assembler source. 'as' allows you to use
  1978. "subsections" for this purpose. Within each section, there can be
  1979. numbered subsections with values from 0 to 8192. Objects assembled into
  1980. the same subsection go into the object file together with other objects
  1981. in the same subsection. For example, a compiler might want to store
  1982. constants in the text section, but might not want to have them
  1983. interspersed with the program being assembled. In this case, the
  1984. compiler could issue a '.text 0' before each section of code being
  1985. output, and a '.text 1' before each group of constants being output.
  1986. Subsections are optional. If you do not use subsections, everything
  1987. goes in subsection number zero.
  1988. Each subsection is zero-padded up to a multiple of four bytes.
  1989. (Subsections may be padded a different amount on different flavors of
  1990. 'as'.)
  1991. Subsections appear in your object file in numeric order, lowest
  1992. numbered to highest. (All this to be compatible with other people's
  1993. assemblers.) The object file contains no representation of subsections;
  1994. 'ld' and other programs that manipulate object files see no trace of
  1995. them. They just see all your text subsections as a text section, and
  1996. all your data subsections as a data section.
  1997. To specify which subsection you want subsequent statements assembled
  1998. into, use a numeric argument to specify it, in a '.text EXPRESSION' or a
  1999. '.data EXPRESSION' statement. When generating COFF output, you can also
  2000. use an extra subsection argument with arbitrary named sections:
  2001. '.section NAME, EXPRESSION'. When generating ELF output, you can also
  2002. use the '.subsection' directive (*note SubSection::) to specify a
  2003. subsection: '.subsection EXPRESSION'. EXPRESSION should be an absolute
  2004. expression (*note Expressions::). If you just say '.text' then '.text
  2005. 0' is assumed. Likewise '.data' means '.data 0'. Assembly begins in
  2006. 'text 0'. For instance:
  2007. .text 0 # The default subsection is text 0 anyway.
  2008. .ascii "This lives in the first text subsection. *"
  2009. .text 1
  2010. .ascii "But this lives in the second text subsection."
  2011. .data 0
  2012. .ascii "This lives in the data section,"
  2013. .ascii "in the first data subsection."
  2014. .text 0
  2015. .ascii "This lives in the first text section,"
  2016. .ascii "immediately following the asterisk (*)."
  2017. Each section has a "location counter" incremented by one for every
  2018. byte assembled into that section. Because subsections are merely a
  2019. convenience restricted to 'as' there is no concept of a subsection
  2020. location counter. There is no way to directly manipulate a location
  2021. counter--but the '.align' directive changes it, and any label definition
  2022. captures its current value. The location counter of the section where
  2023. statements are being assembled is said to be the "active" location
  2024. counter.
  2025. 
  2026. File: as.info, Node: bss, Prev: Sub-Sections, Up: Sections
  2027. 4.5 bss Section
  2028. ===============
  2029. The bss section is used for local common variable storage. You may
  2030. allocate address space in the bss section, but you may not dictate data
  2031. to load into it before your program executes. When your program starts
  2032. running, all the contents of the bss section are zeroed bytes.
  2033. The '.lcomm' pseudo-op defines a symbol in the bss section; see *note
  2034. '.lcomm': Lcomm.
  2035. The '.comm' pseudo-op may be used to declare a common symbol, which
  2036. is another form of uninitialized symbol; see *note '.comm': Comm.
  2037. When assembling for a target which supports multiple sections, such
  2038. as ELF or COFF, you may switch into the '.bss' section and define
  2039. symbols as usual; see *note '.section': Section. You may only assemble
  2040. zero values into the section. Typically the section will only contain
  2041. symbol definitions and '.skip' directives (*note '.skip': Skip.).
  2042. 
  2043. File: as.info, Node: Symbols, Next: Expressions, Prev: Sections, Up: Top
  2044. 5 Symbols
  2045. *********
  2046. Symbols are a central concept: the programmer uses symbols to name
  2047. things, the linker uses symbols to link, and the debugger uses symbols
  2048. to debug.
  2049. _Warning:_ 'as' does not place symbols in the object file in the
  2050. same order they were declared. This may break some debuggers.
  2051. * Menu:
  2052. * Labels:: Labels
  2053. * Setting Symbols:: Giving Symbols Other Values
  2054. * Symbol Names:: Symbol Names
  2055. * Dot:: The Special Dot Symbol
  2056. * Symbol Attributes:: Symbol Attributes
  2057. 
  2058. File: as.info, Node: Labels, Next: Setting Symbols, Up: Symbols
  2059. 5.1 Labels
  2060. ==========
  2061. A "label" is written as a symbol immediately followed by a colon ':'.
  2062. The symbol then represents the current value of the active location
  2063. counter, and is, for example, a suitable instruction operand. You are
  2064. warned if you use the same symbol to represent two different locations:
  2065. the first definition overrides any other definitions.
  2066. On the HPPA, the usual form for a label need not be immediately
  2067. followed by a colon, but instead must start in column zero. Only one
  2068. label may be defined on a single line. To work around this, the HPPA
  2069. version of 'as' also provides a special directive '.label' for defining
  2070. labels more flexibly.
  2071. 
  2072. File: as.info, Node: Setting Symbols, Next: Symbol Names, Prev: Labels, Up: Symbols
  2073. 5.2 Giving Symbols Other Values
  2074. ===============================
  2075. A symbol can be given an arbitrary value by writing a symbol, followed
  2076. by an equals sign '=', followed by an expression (*note Expressions::).
  2077. This is equivalent to using the '.set' directive. *Note '.set': Set.
  2078. In the same way, using a double equals sign '=''=' here represents an
  2079. equivalent of the '.eqv' directive. *Note '.eqv': Eqv.
  2080. Blackfin does not support symbol assignment with '='.
  2081. 
  2082. File: as.info, Node: Symbol Names, Next: Dot, Prev: Setting Symbols, Up: Symbols
  2083. 5.3 Symbol Names
  2084. ================
  2085. Symbol names begin with a letter or with one of '._'. On most machines,
  2086. you can also use '$' in symbol names; exceptions are noted in *note
  2087. Machine Dependencies::. That character may be followed by any string of
  2088. digits, letters, dollar signs (unless otherwise noted for a particular
  2089. target machine), and underscores. These restrictions do not apply when
  2090. quoting symbol names by '"', which is permitted for most targets.
  2091. Escaping characters in quoted symbol names with '\' generally extends
  2092. only to '\' itself and '"', at the time of writing.
  2093. Case of letters is significant: 'foo' is a different symbol name than
  2094. 'Foo'.
  2095. Symbol names do not start with a digit. An exception to this rule is
  2096. made for Local Labels. See below.
  2097. Multibyte characters are supported, but note that the setting of the
  2098. 'multibyte-handling' option might prevent their use. To generate a
  2099. symbol name containing multibyte characters enclose it within double
  2100. quotes and use escape codes. cf *Note Strings::. Generating a
  2101. multibyte symbol name from a label is not currently supported.
  2102. Since multibyte symbol names are unusual, and could possibly be used
  2103. maliciously, 'as' provides a command line option
  2104. ('--multibyte-handling=warn-sym-only') which can be used to generate a
  2105. warning message whenever a symbol name containing multibyte characters
  2106. is defined.
  2107. Each symbol has exactly one name. Each name in an assembly language
  2108. program refers to exactly one symbol. You may use that symbol name any
  2109. number of times in a program.
  2110. Local Symbol Names
  2111. ------------------
  2112. A local symbol is any symbol beginning with certain local label
  2113. prefixes. By default, the local label prefix is '.L' for ELF systems or
  2114. 'L' for traditional a.out systems, but each target may have its own set
  2115. of local label prefixes. On the HPPA local symbols begin with 'L$'.
  2116. Local symbols are defined and used within the assembler, but they are
  2117. normally not saved in object files. Thus, they are not visible when
  2118. debugging. You may use the '-L' option (*note Include Local Symbols:
  2119. L.) to retain the local symbols in the object files.
  2120. Local Labels
  2121. ------------
  2122. Local labels are different from local symbols. Local labels help
  2123. compilers and programmers use names temporarily. They create symbols
  2124. which are guaranteed to be unique over the entire scope of the input
  2125. source code and which can be referred to by a simple notation. To
  2126. define a local label, write a label of the form 'N:' (where N represents
  2127. any non-negative integer). To refer to the most recent previous
  2128. definition of that label write 'Nb', using the same number as when you
  2129. defined the label. To refer to the next definition of a local label,
  2130. write 'Nf'. The 'b' stands for "backwards" and the 'f' stands for
  2131. "forwards".
  2132. There is no restriction on how you can use these labels, and you can
  2133. reuse them too. So that it is possible to repeatedly define the same
  2134. local label (using the same number 'N'), although you can only refer to
  2135. the most recently defined local label of that number (for a backwards
  2136. reference) or the next definition of a specific local label for a
  2137. forward reference. It is also worth noting that the first 10 local
  2138. labels ('0:'...'9:') are implemented in a slightly more efficient manner
  2139. than the others.
  2140. Here is an example:
  2141. 1: branch 1f
  2142. 2: branch 1b
  2143. 1: branch 2f
  2144. 2: branch 1b
  2145. Which is the equivalent of:
  2146. label_1: branch label_3
  2147. label_2: branch label_1
  2148. label_3: branch label_4
  2149. label_4: branch label_3
  2150. Local label names are only a notational device. They are immediately
  2151. transformed into more conventional symbol names before the assembler
  2152. uses them. The symbol names are stored in the symbol table, appear in
  2153. error messages, and are optionally emitted to the object file. The
  2154. names are constructed using these parts:
  2155. '_local label prefix_'
  2156. All local symbols begin with the system-specific local label
  2157. prefix. Normally both 'as' and 'ld' forget symbols that start with
  2158. the local label prefix. These labels are used for symbols you are
  2159. never intended to see. If you use the '-L' option then 'as'
  2160. retains these symbols in the object file. If you also instruct
  2161. 'ld' to retain these symbols, you may use them in debugging.
  2162. 'NUMBER'
  2163. This is the number that was used in the local label definition. So
  2164. if the label is written '55:' then the number is '55'.
  2165. 'C-B'
  2166. This unusual character is included so you do not accidentally
  2167. invent a symbol of the same name. The character has ASCII value of
  2168. '\002' (control-B).
  2169. '_ordinal number_'
  2170. This is a serial number to keep the labels distinct. The first
  2171. definition of '0:' gets the number '1'. The 15th definition of
  2172. '0:' gets the number '15', and so on. Likewise the first
  2173. definition of '1:' gets the number '1' and its 15th definition gets
  2174. '15' as well.
  2175. So for example, the first '1:' may be named '.L1C-B1', and the 44th
  2176. '3:' may be named '.L3C-B44'.
  2177. Dollar Local Labels
  2178. -------------------
  2179. On some targets 'as' also supports an even more local form of local
  2180. labels called dollar labels. These labels go out of scope (i.e., they
  2181. become undefined) as soon as a non-local label is defined. Thus they
  2182. remain valid for only a small region of the input source code. Normal
  2183. local labels, by contrast, remain in scope for the entire file, or until
  2184. they are redefined by another occurrence of the same local label.
  2185. Dollar labels are defined in exactly the same way as ordinary local
  2186. labels, except that they have a dollar sign suffix to their numeric
  2187. value, e.g., '55$:'.
  2188. They can also be distinguished from ordinary local labels by their
  2189. transformed names which use ASCII character '\001' (control-A) as the
  2190. magic character to distinguish them from ordinary labels. For example,
  2191. the fifth definition of '6$' may be named '.L6'C-A'5'.
  2192. 
  2193. File: as.info, Node: Dot, Next: Symbol Attributes, Prev: Symbol Names, Up: Symbols
  2194. 5.4 The Special Dot Symbol
  2195. ==========================
  2196. The special symbol '.' refers to the current address that 'as' is
  2197. assembling into. Thus, the expression 'melvin: .long .' defines
  2198. 'melvin' to contain its own address. Assigning a value to '.' is
  2199. treated the same as a '.org' directive. Thus, the expression '.=.+4' is
  2200. the same as saying '.space 4'.
  2201. 
  2202. File: as.info, Node: Symbol Attributes, Prev: Dot, Up: Symbols
  2203. 5.5 Symbol Attributes
  2204. =====================
  2205. Every symbol has, as well as its name, the attributes "Value" and
  2206. "Type". Depending on output format, symbols can also have auxiliary
  2207. attributes.
  2208. If you use a symbol without defining it, 'as' assumes zero for all
  2209. these attributes, and probably won't warn you. This makes the symbol an
  2210. externally defined symbol, which is generally what you would want.
  2211. * Menu:
  2212. * Symbol Value:: Value
  2213. * Symbol Type:: Type
  2214. * a.out Symbols:: Symbol Attributes: 'a.out'
  2215. * COFF Symbols:: Symbol Attributes for COFF
  2216. * SOM Symbols:: Symbol Attributes for SOM
  2217. 
  2218. File: as.info, Node: Symbol Value, Next: Symbol Type, Up: Symbol Attributes
  2219. 5.5.1 Value
  2220. -----------
  2221. The value of a symbol is (usually) 32 bits. For a symbol which labels a
  2222. location in the text, data, bss or absolute sections the value is the
  2223. number of addresses from the start of that section to the label.
  2224. Naturally for text, data and bss sections the value of a symbol changes
  2225. as 'ld' changes section base addresses during linking. Absolute
  2226. symbols' values do not change during linking: that is why they are
  2227. called absolute.
  2228. The value of an undefined symbol is treated in a special way. If it
  2229. is 0 then the symbol is not defined in this assembler source file, and
  2230. 'ld' tries to determine its value from other files linked into the same
  2231. program. You make this kind of symbol simply by mentioning a symbol
  2232. name without defining it. A non-zero value represents a '.comm' common
  2233. declaration. The value is how much common storage to reserve, in bytes
  2234. (addresses). The symbol refers to the first address of the allocated
  2235. storage.
  2236. 
  2237. File: as.info, Node: Symbol Type, Next: a.out Symbols, Prev: Symbol Value, Up: Symbol Attributes
  2238. 5.5.2 Type
  2239. ----------
  2240. The type attribute of a symbol contains relocation (section)
  2241. information, any flag settings indicating that a symbol is external, and
  2242. (optionally), other information for linkers and debuggers. The exact
  2243. format depends on the object-code output format in use.
  2244. 
  2245. File: as.info, Node: a.out Symbols, Next: COFF Symbols, Prev: Symbol Type, Up: Symbol Attributes
  2246. 5.5.3 Symbol Attributes: 'a.out'
  2247. --------------------------------
  2248. * Menu:
  2249. * Symbol Desc:: Descriptor
  2250. * Symbol Other:: Other
  2251. 
  2252. File: as.info, Node: Symbol Desc, Next: Symbol Other, Up: a.out Symbols
  2253. 5.5.3.1 Descriptor
  2254. ..................
  2255. This is an arbitrary 16-bit value. You may establish a symbol's
  2256. descriptor value by using a '.desc' statement (*note '.desc': Desc.). A
  2257. descriptor value means nothing to 'as'.
  2258. 
  2259. File: as.info, Node: Symbol Other, Prev: Symbol Desc, Up: a.out Symbols
  2260. 5.5.3.2 Other
  2261. .............
  2262. This is an arbitrary 8-bit value. It means nothing to 'as'.
  2263. 
  2264. File: as.info, Node: COFF Symbols, Next: SOM Symbols, Prev: a.out Symbols, Up: Symbol Attributes
  2265. 5.5.4 Symbol Attributes for COFF
  2266. --------------------------------
  2267. The COFF format supports a multitude of auxiliary symbol attributes;
  2268. like the primary symbol attributes, they are set between '.def' and
  2269. '.endef' directives.
  2270. 5.5.4.1 Primary Attributes
  2271. ..........................
  2272. The symbol name is set with '.def'; the value and type, respectively,
  2273. with '.val' and '.type'.
  2274. 5.5.4.2 Auxiliary Attributes
  2275. ............................
  2276. The 'as' directives '.dim', '.line', '.scl', '.size', '.tag', and
  2277. '.weak' can generate auxiliary symbol table information for COFF.
  2278. 
  2279. File: as.info, Node: SOM Symbols, Prev: COFF Symbols, Up: Symbol Attributes
  2280. 5.5.5 Symbol Attributes for SOM
  2281. -------------------------------
  2282. The SOM format for the HPPA supports a multitude of symbol attributes
  2283. set with the '.EXPORT' and '.IMPORT' directives.
  2284. The attributes are described in 'HP9000 Series 800 Assembly Language
  2285. Reference Manual' (HP 92432-90001) under the 'IMPORT' and 'EXPORT'
  2286. assembler directive documentation.
  2287. 
  2288. File: as.info, Node: Expressions, Next: Pseudo Ops, Prev: Symbols, Up: Top
  2289. 6 Expressions
  2290. *************
  2291. An "expression" specifies an address or numeric value. Whitespace may
  2292. precede and/or follow an expression.
  2293. The result of an expression must be an absolute number, or else an
  2294. offset into a particular section. If an expression is not absolute, and
  2295. there is not enough information when 'as' sees the expression to know
  2296. its section, a second pass over the source program might be necessary to
  2297. interpret the expression--but the second pass is currently not
  2298. implemented. 'as' aborts with an error message in this situation.
  2299. * Menu:
  2300. * Empty Exprs:: Empty Expressions
  2301. * Integer Exprs:: Integer Expressions
  2302. 
  2303. File: as.info, Node: Empty Exprs, Next: Integer Exprs, Up: Expressions
  2304. 6.1 Empty Expressions
  2305. =====================
  2306. An empty expression has no value: it is just whitespace or null.
  2307. Wherever an absolute expression is required, you may omit the
  2308. expression, and 'as' assumes a value of (absolute) 0. This is
  2309. compatible with other assemblers.
  2310. 
  2311. File: as.info, Node: Integer Exprs, Prev: Empty Exprs, Up: Expressions
  2312. 6.2 Integer Expressions
  2313. =======================
  2314. An "integer expression" is one or more _arguments_ delimited by
  2315. _operators_.
  2316. * Menu:
  2317. * Arguments:: Arguments
  2318. * Operators:: Operators
  2319. * Prefix Ops:: Prefix Operators
  2320. * Infix Ops:: Infix Operators
  2321. 
  2322. File: as.info, Node: Arguments, Next: Operators, Up: Integer Exprs
  2323. 6.2.1 Arguments
  2324. ---------------
  2325. "Arguments" are symbols, numbers or subexpressions. In other contexts
  2326. arguments are sometimes called "arithmetic operands". In this manual,
  2327. to avoid confusing them with the "instruction operands" of the machine
  2328. language, we use the term "argument" to refer to parts of expressions
  2329. only, reserving the word "operand" to refer only to machine instruction
  2330. operands.
  2331. Symbols are evaluated to yield {SECTION NNN} where SECTION is one of
  2332. text, data, bss, absolute, or undefined. NNN is a signed, 2's
  2333. complement 32 bit integer.
  2334. Numbers are usually integers.
  2335. A number can be a flonum or bignum. In this case, you are warned
  2336. that only the low order 32 bits are used, and 'as' pretends these 32
  2337. bits are an integer. You may write integer-manipulating instructions
  2338. that act on exotic constants, compatible with other assemblers.
  2339. Subexpressions are a left parenthesis '(' followed by an integer
  2340. expression, followed by a right parenthesis ')'; or a prefix operator
  2341. followed by an argument.
  2342. 
  2343. File: as.info, Node: Operators, Next: Prefix Ops, Prev: Arguments, Up: Integer Exprs
  2344. 6.2.2 Operators
  2345. ---------------
  2346. "Operators" are arithmetic functions, like '+' or '%'. Prefix operators
  2347. are followed by an argument. Infix operators appear between their
  2348. arguments. Operators may be preceded and/or followed by whitespace.
  2349. 
  2350. File: as.info, Node: Prefix Ops, Next: Infix Ops, Prev: Operators, Up: Integer Exprs
  2351. 6.2.3 Prefix Operator
  2352. ---------------------
  2353. 'as' has the following "prefix operators". They each take one argument,
  2354. which must be absolute.
  2355. '-'
  2356. "Negation". Two's complement negation.
  2357. '~'
  2358. "Complementation". Bitwise not.
  2359. 
  2360. File: as.info, Node: Infix Ops, Prev: Prefix Ops, Up: Integer Exprs
  2361. 6.2.4 Infix Operators
  2362. ---------------------
  2363. "Infix operators" take two arguments, one on either side. Operators
  2364. have precedence, but operations with equal precedence are performed left
  2365. to right. Apart from '+' or '-', both arguments must be absolute, and
  2366. the result is absolute.
  2367. 1. Highest Precedence
  2368. '*'
  2369. "Multiplication".
  2370. '/'
  2371. "Division". Truncation is the same as the C operator '/'
  2372. '%'
  2373. "Remainder".
  2374. '<<'
  2375. "Shift Left". Same as the C operator '<<'.
  2376. '>>'
  2377. "Shift Right". Same as the C operator '>>'.
  2378. 2. Intermediate precedence
  2379. '|'
  2380. "Bitwise Inclusive Or".
  2381. '&'
  2382. "Bitwise And".
  2383. '^'
  2384. "Bitwise Exclusive Or".
  2385. '!'
  2386. "Bitwise Or Not".
  2387. 3. Low Precedence
  2388. '+'
  2389. "Addition". If either argument is absolute, the result has
  2390. the section of the other argument. You may not add together
  2391. arguments from different sections.
  2392. '-'
  2393. "Subtraction". If the right argument is absolute, the result
  2394. has the section of the left argument. If both arguments are
  2395. in the same section, the result is absolute. You may not
  2396. subtract arguments from different sections.
  2397. '=='
  2398. "Is Equal To"
  2399. '<>'
  2400. '!='
  2401. "Is Not Equal To"
  2402. '<'
  2403. "Is Less Than"
  2404. '>'
  2405. "Is Greater Than"
  2406. '>='
  2407. "Is Greater Than Or Equal To"
  2408. '<='
  2409. "Is Less Than Or Equal To"
  2410. The comparison operators can be used as infix operators. A
  2411. true results has a value of -1 whereas a false result has a
  2412. value of 0. Note, these operators perform signed comparisons.
  2413. 4. Lowest Precedence
  2414. '&&'
  2415. "Logical And".
  2416. '||'
  2417. "Logical Or".
  2418. These two logical operations can be used to combine the
  2419. results of sub expressions. Note, unlike the comparison
  2420. operators a true result returns a value of 1 but a false
  2421. results does still return 0. Also note that the logical or
  2422. operator has a slightly lower precedence than logical and.
  2423. In short, it's only meaningful to add or subtract the _offsets_ in an
  2424. address; you can only have a defined section in one of the two
  2425. arguments.
  2426. 
  2427. File: as.info, Node: Pseudo Ops, Next: Object Attributes, Prev: Expressions, Up: Top
  2428. 7 Assembler Directives
  2429. **********************
  2430. All assembler directives have names that begin with a period ('.'). The
  2431. names are case insensitive for most targets, and usually written in
  2432. lower case.
  2433. This chapter discusses directives that are available regardless of
  2434. the target machine configuration for the GNU assembler. Some machine
  2435. configurations provide additional directives. *Note Machine
  2436. Dependencies::.
  2437. * Menu:
  2438. * Abort:: '.abort'
  2439. * ABORT (COFF):: '.ABORT'
  2440. * Align:: '.align [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2441. * Altmacro:: '.altmacro'
  2442. * Ascii:: '.ascii "STRING"'...
  2443. * Asciz:: '.asciz "STRING"'...
  2444. * Attach_to_group:: '.attach_to_group NAME'
  2445. * Balign:: '.balign [ABS-EXPR[, ABS-EXPR]]'
  2446. * Bss:: '.bss SUBSECTION'
  2447. * Bundle directives:: '.bundle_align_mode ABS-EXPR', etc
  2448. * Byte:: '.byte EXPRESSIONS'
  2449. * CFI directives:: '.cfi_startproc [simple]', '.cfi_endproc', etc.
  2450. * Comm:: '.comm SYMBOL , LENGTH '
  2451. * Data:: '.data SUBSECTION'
  2452. * Dc:: '.dc[SIZE] EXPRESSIONS'
  2453. * Dcb:: '.dcb[SIZE] NUMBER [,FILL]'
  2454. * Ds:: '.ds[SIZE] NUMBER [,FILL]'
  2455. * Def:: '.def NAME'
  2456. * Desc:: '.desc SYMBOL, ABS-EXPRESSION'
  2457. * Dim:: '.dim'
  2458. * Double:: '.double FLONUMS'
  2459. * Eject:: '.eject'
  2460. * Else:: '.else'
  2461. * Elseif:: '.elseif'
  2462. * End:: '.end'
  2463. * Endef:: '.endef'
  2464. * Endfunc:: '.endfunc'
  2465. * Endif:: '.endif'
  2466. * Equ:: '.equ SYMBOL, EXPRESSION'
  2467. * Equiv:: '.equiv SYMBOL, EXPRESSION'
  2468. * Eqv:: '.eqv SYMBOL, EXPRESSION'
  2469. * Err:: '.err'
  2470. * Error:: '.error STRING'
  2471. * Exitm:: '.exitm'
  2472. * Extern:: '.extern'
  2473. * Fail:: '.fail'
  2474. * File:: '.file'
  2475. * Fill:: '.fill REPEAT , SIZE , VALUE'
  2476. * Float:: '.float FLONUMS'
  2477. * Func:: '.func'
  2478. * Global:: '.global SYMBOL', '.globl SYMBOL'
  2479. * Gnu_attribute:: '.gnu_attribute TAG,VALUE'
  2480. * Hidden:: '.hidden NAMES'
  2481. * hword:: '.hword EXPRESSIONS'
  2482. * Ident:: '.ident'
  2483. * If:: '.if ABSOLUTE EXPRESSION'
  2484. * Incbin:: '.incbin "FILE"[,SKIP[,COUNT]]'
  2485. * Include:: '.include "FILE"'
  2486. * Int:: '.int EXPRESSIONS'
  2487. * Internal:: '.internal NAMES'
  2488. * Irp:: '.irp SYMBOL,VALUES'...
  2489. * Irpc:: '.irpc SYMBOL,VALUES'...
  2490. * Lcomm:: '.lcomm SYMBOL , LENGTH'
  2491. * Lflags:: '.lflags'
  2492. * Line:: '.line LINE-NUMBER'
  2493. * Linkonce:: '.linkonce [TYPE]'
  2494. * List:: '.list'
  2495. * Ln:: '.ln LINE-NUMBER'
  2496. * Loc:: '.loc FILENO LINENO'
  2497. * Loc_mark_labels:: '.loc_mark_labels ENABLE'
  2498. * Local:: '.local NAMES'
  2499. * Long:: '.long EXPRESSIONS'
  2500. * Macro:: '.macro NAME ARGS'...
  2501. * MRI:: '.mri VAL'
  2502. * Noaltmacro:: '.noaltmacro'
  2503. * Nolist:: '.nolist'
  2504. * Nop:: '.nop'
  2505. * Nops:: '.nops SIZE[, CONTROL]'
  2506. * Octa:: '.octa BIGNUMS'
  2507. * Offset:: '.offset LOC'
  2508. * Org:: '.org NEW-LC, FILL'
  2509. * P2align:: '.p2align [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2510. * PopSection:: '.popsection'
  2511. * Previous:: '.previous'
  2512. * Print:: '.print STRING'
  2513. * Protected:: '.protected NAMES'
  2514. * Psize:: '.psize LINES, COLUMNS'
  2515. * Purgem:: '.purgem NAME'
  2516. * PushSection:: '.pushsection NAME'
  2517. * Quad:: '.quad BIGNUMS'
  2518. * Reloc:: '.reloc OFFSET, RELOC_NAME[, EXPRESSION]'
  2519. * Rept:: '.rept COUNT'
  2520. * Sbttl:: '.sbttl "SUBHEADING"'
  2521. * Scl:: '.scl CLASS'
  2522. * Section:: '.section NAME[, FLAGS]'
  2523. * Set:: '.set SYMBOL, EXPRESSION'
  2524. * Short:: '.short EXPRESSIONS'
  2525. * Single:: '.single FLONUMS'
  2526. * Size:: '.size [NAME , EXPRESSION]'
  2527. * Skip:: '.skip SIZE [,FILL]'
  2528. * Sleb128:: '.sleb128 EXPRESSIONS'
  2529. * Space:: '.space SIZE [,FILL]'
  2530. * Stab:: '.stabd, .stabn, .stabs'
  2531. * String:: '.string "STR"', '.string8 "STR"', '.string16 "STR"', '.string32 "STR"', '.string64 "STR"'
  2532. * Struct:: '.struct EXPRESSION'
  2533. * SubSection:: '.subsection'
  2534. * Symver:: '.symver NAME,NAME2@NODENAME[,VISIBILITY]'
  2535. * Tag:: '.tag STRUCTNAME'
  2536. * Text:: '.text SUBSECTION'
  2537. * Title:: '.title "HEADING"'
  2538. * Tls_common:: '.tls_common SYMBOL, LENGTH[, ALIGNMENT]'
  2539. * Type:: '.type <INT | NAME , TYPE DESCRIPTION>'
  2540. * Uleb128:: '.uleb128 EXPRESSIONS'
  2541. * Val:: '.val ADDR'
  2542. * Version:: '.version "STRING"'
  2543. * VTableEntry:: '.vtable_entry TABLE, OFFSET'
  2544. * VTableInherit:: '.vtable_inherit CHILD, PARENT'
  2545. * Warning:: '.warning STRING'
  2546. * Weak:: '.weak NAMES'
  2547. * Weakref:: '.weakref ALIAS, SYMBOL'
  2548. * Word:: '.word EXPRESSIONS'
  2549. * Zero:: '.zero SIZE'
  2550. * 2byte:: '.2byte EXPRESSIONS'
  2551. * 4byte:: '.4byte EXPRESSIONS'
  2552. * 8byte:: '.8byte BIGNUMS'
  2553. * Deprecated:: Deprecated Directives
  2554. 
  2555. File: as.info, Node: Abort, Next: ABORT (COFF), Up: Pseudo Ops
  2556. 7.1 '.abort'
  2557. ============
  2558. This directive stops the assembly immediately. It is for compatibility
  2559. with other assemblers. The original idea was that the assembly language
  2560. source would be piped into the assembler. If the sender of the source
  2561. quit, it could use this directive tells 'as' to quit also. One day
  2562. '.abort' will not be supported.
  2563. 
  2564. File: as.info, Node: ABORT (COFF), Next: Align, Prev: Abort, Up: Pseudo Ops
  2565. 7.2 '.ABORT' (COFF)
  2566. ===================
  2567. When producing COFF output, 'as' accepts this directive as a synonym for
  2568. '.abort'.
  2569. 
  2570. File: as.info, Node: Align, Next: Altmacro, Prev: ABORT (COFF), Up: Pseudo Ops
  2571. 7.3 '.align [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2572. ===============================================
  2573. Pad the location counter (in the current subsection) to a particular
  2574. storage boundary. The first expression (which must be absolute) is the
  2575. alignment required, as described below. If this expression is omitted
  2576. then a default value of 0 is used, effectively disabling alignment
  2577. requirements.
  2578. The second expression (also absolute) gives the fill value to be
  2579. stored in the padding bytes. It (and the comma) may be omitted. If it
  2580. is omitted, the padding bytes are normally zero. However, on most
  2581. systems, if the section is marked as containing code and the fill value
  2582. is omitted, the space is filled with no-op instructions.
  2583. The third expression is also absolute, and is also optional. If it
  2584. is present, it is the maximum number of bytes that should be skipped by
  2585. this alignment directive. If doing the alignment would require skipping
  2586. more bytes than the specified maximum, then the alignment is not done at
  2587. all. You can omit the fill value (the second argument) entirely by
  2588. simply using two commas after the required alignment; this can be useful
  2589. if you want the alignment to be filled with no-op instructions when
  2590. appropriate.
  2591. The way the required alignment is specified varies from system to
  2592. system. For the arc, hppa, i386 using ELF, iq2000, m68k, or1k, s390,
  2593. sparc, tic4x and xtensa, the first expression is the alignment request
  2594. in bytes. For example '.align 8' advances the location counter until it
  2595. is a multiple of 8. If the location counter is already a multiple of 8,
  2596. no change is needed. For the tic54x, the first expression is the
  2597. alignment request in words.
  2598. For other systems, including ppc, i386 using a.out format, arm and
  2599. strongarm, it is the number of low-order zero bits the location counter
  2600. must have after advancement. For example '.align 3' advances the
  2601. location counter until it is a multiple of 8. If the location counter
  2602. is already a multiple of 8, no change is needed.
  2603. This inconsistency is due to the different behaviors of the various
  2604. native assemblers for these systems which GAS must emulate. GAS also
  2605. provides '.balign' and '.p2align' directives, described later, which
  2606. have a consistent behavior across all architectures (but are specific to
  2607. GAS).
  2608. 
  2609. File: as.info, Node: Altmacro, Next: Ascii, Prev: Align, Up: Pseudo Ops
  2610. 7.4 '.altmacro'
  2611. ===============
  2612. Enable alternate macro mode, enabling:
  2613. 'LOCAL NAME [ , ... ]'
  2614. One additional directive, 'LOCAL', is available. It is used to
  2615. generate a string replacement for each of the NAME arguments, and
  2616. replace any instances of NAME in each macro expansion. The
  2617. replacement string is unique in the assembly, and different for
  2618. each separate macro expansion. 'LOCAL' allows you to write macros
  2619. that define symbols, without fear of conflict between separate
  2620. macro expansions.
  2621. 'String delimiters'
  2622. You can write strings delimited in these other ways besides
  2623. '"STRING"':
  2624. ''STRING''
  2625. You can delimit strings with single-quote characters.
  2626. '<STRING>'
  2627. You can delimit strings with matching angle brackets.
  2628. 'single-character string escape'
  2629. To include any single character literally in a string (even if the
  2630. character would otherwise have some special meaning), you can
  2631. prefix the character with '!' (an exclamation mark). For example,
  2632. you can write '<4.3 !> 5.4!!>' to get the literal text '4.3 >
  2633. 5.4!'.
  2634. 'Expression results as strings'
  2635. You can write '%EXPR' to evaluate the expression EXPR and use the
  2636. result as a string.
  2637. 
  2638. File: as.info, Node: Ascii, Next: Asciz, Prev: Altmacro, Up: Pseudo Ops
  2639. 7.5 '.ascii "STRING"'...
  2640. ========================
  2641. '.ascii' expects zero or more string literals (*note Strings::)
  2642. separated by commas. It assembles each string (with no automatic
  2643. trailing zero byte) into consecutive addresses.
  2644. 
  2645. File: as.info, Node: Asciz, Next: Attach_to_group, Prev: Ascii, Up: Pseudo Ops
  2646. 7.6 '.asciz "STRING"'...
  2647. ========================
  2648. '.asciz' is just like '.ascii', but each string is followed by a zero
  2649. byte. The "z" in '.asciz' stands for "zero". Note that multiple string
  2650. arguments not separated by commas will be concatenated together and only
  2651. one final zero byte will be stored.
  2652. 
  2653. File: as.info, Node: Attach_to_group, Next: Balign, Prev: Asciz, Up: Pseudo Ops
  2654. 7.7 '.attach_to_group NAME'
  2655. ===========================
  2656. Attaches the current section to the named group. This is like declaring
  2657. the section with the 'G' attribute, but can be done after the section
  2658. has been created. Note if the group section does not exist at the point
  2659. that this directive is used then it will be created.
  2660. 
  2661. File: as.info, Node: Balign, Next: Bss, Prev: Attach_to_group, Up: Pseudo Ops
  2662. 7.8 '.balign[wl] [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2663. ====================================================
  2664. Pad the location counter (in the current subsection) to a particular
  2665. storage boundary. The first expression (which must be absolute) is the
  2666. alignment request in bytes. For example '.balign 8' advances the
  2667. location counter until it is a multiple of 8. If the location counter
  2668. is already a multiple of 8, no change is needed. If the expression is
  2669. omitted then a default value of 0 is used, effectively disabling
  2670. alignment requirements.
  2671. The second expression (also absolute) gives the fill value to be
  2672. stored in the padding bytes. It (and the comma) may be omitted. If it
  2673. is omitted, the padding bytes are normally zero. However, on most
  2674. systems, if the section is marked as containing code and the fill value
  2675. is omitted, the space is filled with no-op instructions.
  2676. The third expression is also absolute, and is also optional. If it
  2677. is present, it is the maximum number of bytes that should be skipped by
  2678. this alignment directive. If doing the alignment would require skipping
  2679. more bytes than the specified maximum, then the alignment is not done at
  2680. all. You can omit the fill value (the second argument) entirely by
  2681. simply using two commas after the required alignment; this can be useful
  2682. if you want the alignment to be filled with no-op instructions when
  2683. appropriate.
  2684. The '.balignw' and '.balignl' directives are variants of the
  2685. '.balign' directive. The '.balignw' directive treats the fill pattern
  2686. as a two byte word value. The '.balignl' directives treats the fill
  2687. pattern as a four byte longword value. For example, '.balignw 4,0x368d'
  2688. will align to a multiple of 4. If it skips two bytes, they will be
  2689. filled in with the value 0x368d (the exact placement of the bytes
  2690. depends upon the endianness of the processor). If it skips 1 or 3
  2691. bytes, the fill value is undefined.
  2692. 
  2693. File: as.info, Node: Bss, Next: Bundle directives, Prev: Balign, Up: Pseudo Ops
  2694. 7.9 '.bss SUBSECTION'
  2695. =====================
  2696. '.bss' tells 'as' to assemble the following statements onto the end of
  2697. the bss section. For ELF based targets an optional SUBSECTION
  2698. expression (which must evaluate to a positive integer) can be provided.
  2699. In this case the statements are appended to the end of the indicated bss
  2700. subsection.
  2701. 
  2702. File: as.info, Node: Bundle directives, Next: Byte, Prev: Bss, Up: Pseudo Ops
  2703. 7.10 Bundle directives
  2704. ======================
  2705. 7.10.1 '.bundle_align_mode ABS-EXPR'
  2706. ------------------------------------
  2707. '.bundle_align_mode' enables or disables "aligned instruction bundle"
  2708. mode. In this mode, sequences of adjacent instructions are grouped into
  2709. fixed-sized "bundles". If the argument is zero, this mode is disabled
  2710. (which is the default state). If the argument it not zero, it gives the
  2711. size of an instruction bundle as a power of two (as for the '.p2align'
  2712. directive, *note P2align::).
  2713. For some targets, it's an ABI requirement that no instruction may
  2714. span a certain aligned boundary. A "bundle" is simply a sequence of
  2715. instructions that starts on an aligned boundary. For example, if
  2716. ABS-EXPR is '5' then the bundle size is 32, so each aligned chunk of 32
  2717. bytes is a bundle. When aligned instruction bundle mode is in effect,
  2718. no single instruction may span a boundary between bundles. If an
  2719. instruction would start too close to the end of a bundle for the length
  2720. of that particular instruction to fit within the bundle, then the space
  2721. at the end of that bundle is filled with no-op instructions so the
  2722. instruction starts in the next bundle. As a corollary, it's an error if
  2723. any single instruction's encoding is longer than the bundle size.
  2724. 7.10.2 '.bundle_lock' and '.bundle_unlock'
  2725. ------------------------------------------
  2726. The '.bundle_lock' and directive '.bundle_unlock' directives allow
  2727. explicit control over instruction bundle padding. These directives are
  2728. only valid when '.bundle_align_mode' has been used to enable aligned
  2729. instruction bundle mode. It's an error if they appear when
  2730. '.bundle_align_mode' has not been used at all, or when the last
  2731. directive was '.bundle_align_mode 0'.
  2732. For some targets, it's an ABI requirement that certain instructions
  2733. may appear only as part of specified permissible sequences of multiple
  2734. instructions, all within the same bundle. A pair of '.bundle_lock' and
  2735. '.bundle_unlock' directives define a "bundle-locked" instruction
  2736. sequence. For purposes of aligned instruction bundle mode, a sequence
  2737. starting with '.bundle_lock' and ending with '.bundle_unlock' is treated
  2738. as a single instruction. That is, the entire sequence must fit into a
  2739. single bundle and may not span a bundle boundary. If necessary, no-op
  2740. instructions will be inserted before the first instruction of the
  2741. sequence so that the whole sequence starts on an aligned bundle
  2742. boundary. It's an error if the sequence is longer than the bundle size.
  2743. For convenience when using '.bundle_lock' and '.bundle_unlock' inside
  2744. assembler macros (*note Macro::), bundle-locked sequences may be nested.
  2745. That is, a second '.bundle_lock' directive before the next
  2746. '.bundle_unlock' directive has no effect except that it must be matched
  2747. by another closing '.bundle_unlock' so that there is the same number of
  2748. '.bundle_lock' and '.bundle_unlock' directives.
  2749. 
  2750. File: as.info, Node: Byte, Next: CFI directives, Prev: Bundle directives, Up: Pseudo Ops
  2751. 7.11 '.byte EXPRESSIONS'
  2752. ========================
  2753. '.byte' expects zero or more expressions, separated by commas. Each
  2754. expression is assembled into the next byte.
  2755. 
  2756. File: as.info, Node: CFI directives, Next: Comm, Prev: Byte, Up: Pseudo Ops
  2757. 7.12 CFI directives
  2758. ===================
  2759. 7.12.1 '.cfi_sections SECTION_LIST'
  2760. -----------------------------------
  2761. '.cfi_sections' may be used to specify whether CFI directives should
  2762. emit '.eh_frame' section and/or '.debug_frame' section. If SECTION_LIST
  2763. is '.eh_frame', '.eh_frame' is emitted, if SECTION_LIST is
  2764. '.debug_frame', '.debug_frame' is emitted. To emit both use '.eh_frame,
  2765. .debug_frame'. The default if this directive is not used is
  2766. '.cfi_sections .eh_frame'.
  2767. On targets that support compact unwinding tables these can be
  2768. generated by specifying '.eh_frame_entry' instead of '.eh_frame'.
  2769. Some targets may support an additional name, such as '.c6xabi.exidx'
  2770. which is used by the target.
  2771. The '.cfi_sections' directive can be repeated, with the same or
  2772. different arguments, provided that CFI generation has not yet started.
  2773. Once CFI generation has started however the section list is fixed and
  2774. any attempts to redefine it will result in an error.
  2775. 7.12.2 '.cfi_startproc [simple]'
  2776. --------------------------------
  2777. '.cfi_startproc' is used at the beginning of each function that should
  2778. have an entry in '.eh_frame'. It initializes some internal data
  2779. structures. Don't forget to close the function by '.cfi_endproc'.
  2780. Unless '.cfi_startproc' is used along with parameter 'simple' it also
  2781. emits some architecture dependent initial CFI instructions.
  2782. 7.12.3 '.cfi_endproc'
  2783. ---------------------
  2784. '.cfi_endproc' is used at the end of a function where it closes its
  2785. unwind entry previously opened by '.cfi_startproc', and emits it to
  2786. '.eh_frame'.
  2787. 7.12.4 '.cfi_personality ENCODING [, EXP]'
  2788. ------------------------------------------
  2789. '.cfi_personality' defines personality routine and its encoding.
  2790. ENCODING must be a constant determining how the personality should be
  2791. encoded. If it is 255 ('DW_EH_PE_omit'), second argument is not
  2792. present, otherwise second argument should be a constant or a symbol
  2793. name. When using indirect encodings, the symbol provided should be the
  2794. location where personality can be loaded from, not the personality
  2795. routine itself. The default after '.cfi_startproc' is '.cfi_personality
  2796. 0xff', no personality routine.
  2797. 7.12.5 '.cfi_personality_id ID'
  2798. -------------------------------
  2799. 'cfi_personality_id' defines a personality routine by its index as
  2800. defined in a compact unwinding format. Only valid when generating
  2801. compact EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2802. 7.12.6 '.cfi_fde_data [OPCODE1 [, ...]]'
  2803. ----------------------------------------
  2804. 'cfi_fde_data' is used to describe the compact unwind opcodes to be used
  2805. for the current function. These are emitted inline in the
  2806. '.eh_frame_entry' section if small enough and there is no LSDA, or in
  2807. the '.gnu.extab' section otherwise. Only valid when generating compact
  2808. EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2809. 7.12.7 '.cfi_lsda ENCODING [, EXP]'
  2810. -----------------------------------
  2811. '.cfi_lsda' defines LSDA and its encoding. ENCODING must be a constant
  2812. determining how the LSDA should be encoded. If it is 255
  2813. ('DW_EH_PE_omit'), the second argument is not present, otherwise the
  2814. second argument should be a constant or a symbol name. The default
  2815. after '.cfi_startproc' is '.cfi_lsda 0xff', meaning that no LSDA is
  2816. present.
  2817. 7.12.8 '.cfi_inline_lsda' [ALIGN]
  2818. ---------------------------------
  2819. '.cfi_inline_lsda' marks the start of a LSDA data section and switches
  2820. to the corresponding '.gnu.extab' section. Must be preceded by a CFI
  2821. block containing a '.cfi_lsda' directive. Only valid when generating
  2822. compact EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2823. The table header and unwinding opcodes will be generated at this
  2824. point, so that they are immediately followed by the LSDA data. The
  2825. symbol referenced by the '.cfi_lsda' directive should still be defined
  2826. in case a fallback FDE based encoding is used. The LSDA data is
  2827. terminated by a section directive.
  2828. The optional ALIGN argument specifies the alignment required. The
  2829. alignment is specified as a power of two, as with the '.p2align'
  2830. directive.
  2831. 7.12.9 '.cfi_def_cfa REGISTER, OFFSET'
  2832. --------------------------------------
  2833. '.cfi_def_cfa' defines a rule for computing CFA as: take address from
  2834. REGISTER and add OFFSET to it.
  2835. 7.12.10 '.cfi_def_cfa_register REGISTER'
  2836. ----------------------------------------
  2837. '.cfi_def_cfa_register' modifies a rule for computing CFA. From now on
  2838. REGISTER will be used instead of the old one. Offset remains the same.
  2839. 7.12.11 '.cfi_def_cfa_offset OFFSET'
  2840. ------------------------------------
  2841. '.cfi_def_cfa_offset' modifies a rule for computing CFA. Register
  2842. remains the same, but OFFSET is new. Note that it is the absolute
  2843. offset that will be added to a defined register to compute CFA address.
  2844. 7.12.12 '.cfi_adjust_cfa_offset OFFSET'
  2845. ---------------------------------------
  2846. Same as '.cfi_def_cfa_offset' but OFFSET is a relative value that is
  2847. added/subtracted from the previous offset.
  2848. 7.12.13 '.cfi_offset REGISTER, OFFSET'
  2849. --------------------------------------
  2850. Previous value of REGISTER is saved at offset OFFSET from CFA.
  2851. 7.12.14 '.cfi_val_offset REGISTER, OFFSET'
  2852. ------------------------------------------
  2853. Previous value of REGISTER is CFA + OFFSET.
  2854. 7.12.15 '.cfi_rel_offset REGISTER, OFFSET'
  2855. ------------------------------------------
  2856. Previous value of REGISTER is saved at offset OFFSET from the current
  2857. CFA register. This is transformed to '.cfi_offset' using the known
  2858. displacement of the CFA register from the CFA. This is often easier to
  2859. use, because the number will match the code it's annotating.
  2860. 7.12.16 '.cfi_register REGISTER1, REGISTER2'
  2861. --------------------------------------------
  2862. Previous value of REGISTER1 is saved in register REGISTER2.
  2863. 7.12.17 '.cfi_restore REGISTER'
  2864. -------------------------------
  2865. '.cfi_restore' says that the rule for REGISTER is now the same as it was
  2866. at the beginning of the function, after all initial instruction added by
  2867. '.cfi_startproc' were executed.
  2868. 7.12.18 '.cfi_undefined REGISTER'
  2869. ---------------------------------
  2870. From now on the previous value of REGISTER can't be restored anymore.
  2871. 7.12.19 '.cfi_same_value REGISTER'
  2872. ----------------------------------
  2873. Current value of REGISTER is the same like in the previous frame, i.e.
  2874. no restoration needed.
  2875. 7.12.20 '.cfi_remember_state' and '.cfi_restore_state'
  2876. ------------------------------------------------------
  2877. '.cfi_remember_state' pushes the set of rules for every register onto an
  2878. implicit stack, while '.cfi_restore_state' pops them off the stack and
  2879. places them in the current row. This is useful for situations where you
  2880. have multiple '.cfi_*' directives that need to be undone due to the
  2881. control flow of the program. For example, we could have something like
  2882. this (assuming the CFA is the value of 'rbp'):
  2883. je label
  2884. popq %rbx
  2885. .cfi_restore %rbx
  2886. popq %r12
  2887. .cfi_restore %r12
  2888. popq %rbp
  2889. .cfi_restore %rbp
  2890. .cfi_def_cfa %rsp, 8
  2891. ret
  2892. label:
  2893. /* Do something else */
  2894. Here, we want the '.cfi' directives to affect only the rows
  2895. corresponding to the instructions before 'label'. This means we'd have
  2896. to add multiple '.cfi' directives after 'label' to recreate the original
  2897. save locations of the registers, as well as setting the CFA back to the
  2898. value of 'rbp'. This would be clumsy, and result in a larger binary
  2899. size. Instead, we can write:
  2900. je label
  2901. popq %rbx
  2902. .cfi_remember_state
  2903. .cfi_restore %rbx
  2904. popq %r12
  2905. .cfi_restore %r12
  2906. popq %rbp
  2907. .cfi_restore %rbp
  2908. .cfi_def_cfa %rsp, 8
  2909. ret
  2910. label:
  2911. .cfi_restore_state
  2912. /* Do something else */
  2913. That way, the rules for the instructions after 'label' will be the
  2914. same as before the first '.cfi_restore' without having to use multiple
  2915. '.cfi' directives.
  2916. 7.12.21 '.cfi_return_column REGISTER'
  2917. -------------------------------------
  2918. Change return column REGISTER, i.e. the return address is either
  2919. directly in REGISTER or can be accessed by rules for REGISTER.
  2920. 7.12.22 '.cfi_signal_frame'
  2921. ---------------------------
  2922. Mark current function as signal trampoline.
  2923. 7.12.23 '.cfi_window_save'
  2924. --------------------------
  2925. SPARC register window has been saved.
  2926. 7.12.24 '.cfi_escape' EXPRESSION[, ...]
  2927. ---------------------------------------
  2928. Allows the user to add arbitrary bytes to the unwind info. One might
  2929. use this to add OS-specific CFI opcodes, or generic CFI opcodes that GAS
  2930. does not yet support.
  2931. 7.12.25 '.cfi_val_encoded_addr REGISTER, ENCODING, LABEL'
  2932. ---------------------------------------------------------
  2933. The current value of REGISTER is LABEL. The value of LABEL will be
  2934. encoded in the output file according to ENCODING; see the description of
  2935. '.cfi_personality' for details on this encoding.
  2936. The usefulness of equating a register to a fixed label is probably
  2937. limited to the return address register. Here, it can be useful to mark
  2938. a code segment that has only one return address which is reached by a
  2939. direct branch and no copy of the return address exists in memory or
  2940. another register.
  2941. 
  2942. File: as.info, Node: Comm, Next: Data, Prev: CFI directives, Up: Pseudo Ops
  2943. 7.13 '.comm SYMBOL , LENGTH '
  2944. =============================
  2945. '.comm' declares a common symbol named SYMBOL. When linking, a common
  2946. symbol in one object file may be merged with a defined or common symbol
  2947. of the same name in another object file. If 'ld' does not see a
  2948. definition for the symbol-just one or more common symbols-then it will
  2949. allocate LENGTH bytes of uninitialized memory. LENGTH must be an
  2950. absolute expression. If 'ld' sees multiple common symbols with the same
  2951. name, and they do not all have the same size, it will allocate space
  2952. using the largest size.
  2953. When using ELF or (as a GNU extension) PE, the '.comm' directive
  2954. takes an optional third argument. This is the desired alignment of the
  2955. symbol, specified for ELF as a byte boundary (for example, an alignment
  2956. of 16 means that the least significant 4 bits of the address should be
  2957. zero), and for PE as a power of two (for example, an alignment of 5
  2958. means aligned to a 32-byte boundary). The alignment must be an absolute
  2959. expression, and it must be a power of two. If 'ld' allocates
  2960. uninitialized memory for the common symbol, it will use the alignment
  2961. when placing the symbol. If no alignment is specified, 'as' will set
  2962. the alignment to the largest power of two less than or equal to the size
  2963. of the symbol, up to a maximum of 16 on ELF, or the default section
  2964. alignment of 4 on PE(1).
  2965. The syntax for '.comm' differs slightly on the HPPA. The syntax is
  2966. 'SYMBOL .comm, LENGTH'; SYMBOL is optional.
  2967. ---------- Footnotes ----------
  2968. (1) This is not the same as the executable image file alignment
  2969. controlled by 'ld''s '--section-alignment' option; image file sections
  2970. in PE are aligned to multiples of 4096, which is far too large an
  2971. alignment for ordinary variables. It is rather the default alignment
  2972. for (non-debug) sections within object ('*.o') files, which are less
  2973. strictly aligned.
  2974. 
  2975. File: as.info, Node: Data, Next: Dc, Prev: Comm, Up: Pseudo Ops
  2976. 7.14 '.data SUBSECTION'
  2977. =======================
  2978. '.data' tells 'as' to assemble the following statements onto the end of
  2979. the data subsection numbered SUBSECTION (which is an absolute
  2980. expression). If SUBSECTION is omitted, it defaults to zero.
  2981. 
  2982. File: as.info, Node: Dc, Next: Dcb, Prev: Data, Up: Pseudo Ops
  2983. 7.15 '.dc[SIZE] EXPRESSIONS'
  2984. ============================
  2985. The '.dc' directive expects zero or more EXPRESSIONS separated by
  2986. commas. These expressions are evaluated and their values inserted into
  2987. the current section. The size of the emitted value depends upon the
  2988. suffix to the '.dc' directive:
  2989. ''.a''
  2990. Emits N-bit values, where N is the size of an address on the target
  2991. system.
  2992. ''.b''
  2993. Emits 8-bit values.
  2994. ''.d''
  2995. Emits double precision floating-point values.
  2996. ''.l''
  2997. Emits 32-bit values.
  2998. ''.s''
  2999. Emits single precision floating-point values.
  3000. ''.w''
  3001. Emits 16-bit values. Note - this is true even on targets where the
  3002. '.word' directive would emit 32-bit values.
  3003. ''.x''
  3004. Emits long double precision floating-point values.
  3005. If no suffix is used then '.w' is assumed.
  3006. The byte ordering is target dependent, as is the size and format of
  3007. floating point values.
  3008. 
  3009. File: as.info, Node: Dcb, Next: Ds, Prev: Dc, Up: Pseudo Ops
  3010. 7.16 '.dcb[SIZE] NUMBER [,FILL]'
  3011. ================================
  3012. This directive emits NUMBER copies of FILL, each of SIZE bytes. Both
  3013. NUMBER and FILL are absolute expressions. If the comma and FILL are
  3014. omitted, FILL is assumed to be zero. The SIZE suffix, if present, must
  3015. be one of:
  3016. ''.b''
  3017. Emits single byte values.
  3018. ''.d''
  3019. Emits double-precision floating point values.
  3020. ''.l''
  3021. Emits 4-byte values.
  3022. ''.s''
  3023. Emits single-precision floating point values.
  3024. ''.w''
  3025. Emits 2-byte values.
  3026. ''.x''
  3027. Emits long double-precision floating point values.
  3028. If the SIZE suffix is omitted then '.w' is assumed.
  3029. The byte ordering is target dependent, as is the size and format of
  3030. floating point values.
  3031. 
  3032. File: as.info, Node: Ds, Next: Def, Prev: Dcb, Up: Pseudo Ops
  3033. 7.17 '.ds[SIZE] NUMBER [,FILL]'
  3034. ===============================
  3035. This directive emits NUMBER copies of FILL, each of SIZE bytes. Both
  3036. NUMBER and FILL are absolute expressions. If the comma and FILL are
  3037. omitted, FILL is assumed to be zero. The SIZE suffix, if present, must
  3038. be one of:
  3039. ''.b''
  3040. Emits single byte values.
  3041. ''.d''
  3042. Emits 8-byte values.
  3043. ''.l''
  3044. Emits 4-byte values.
  3045. ''.p''
  3046. Emits values with size matching packed-decimal floating-point ones.
  3047. ''.s''
  3048. Emits 4-byte values.
  3049. ''.w''
  3050. Emits 2-byte values.
  3051. ''.x''
  3052. Emits values with size matching long double precision
  3053. floating-point ones.
  3054. Note - unlike the '.dcb' directive the '.d', '.s' and '.x' suffixes
  3055. do not indicate that floating-point values are to be inserted.
  3056. If the SIZE suffix is omitted then '.w' is assumed.
  3057. The byte ordering is target dependent.
  3058. 
  3059. File: as.info, Node: Def, Next: Desc, Prev: Ds, Up: Pseudo Ops
  3060. 7.18 '.def NAME'
  3061. ================
  3062. Begin defining debugging information for a symbol NAME; the definition
  3063. extends until the '.endef' directive is encountered.
  3064. 
  3065. File: as.info, Node: Desc, Next: Dim, Prev: Def, Up: Pseudo Ops
  3066. 7.19 '.desc SYMBOL, ABS-EXPRESSION'
  3067. ===================================
  3068. This directive sets the descriptor of the symbol (*note Symbol
  3069. Attributes::) to the low 16 bits of an absolute expression.
  3070. The '.desc' directive is not available when 'as' is configured for
  3071. COFF output; it is only for 'a.out' or 'b.out' object format. For the
  3072. sake of compatibility, 'as' accepts it, but produces no output, when
  3073. configured for COFF.
  3074. 
  3075. File: as.info, Node: Dim, Next: Double, Prev: Desc, Up: Pseudo Ops
  3076. 7.20 '.dim'
  3077. ===========
  3078. This directive is generated by compilers to include auxiliary debugging
  3079. information in the symbol table. It is only permitted inside
  3080. '.def'/'.endef' pairs.
  3081. 
  3082. File: as.info, Node: Double, Next: Eject, Prev: Dim, Up: Pseudo Ops
  3083. 7.21 '.double FLONUMS'
  3084. ======================
  3085. '.double' expects zero or more flonums, separated by commas. It
  3086. assembles floating point numbers. The exact kind of floating point
  3087. numbers emitted depends on how 'as' is configured. *Note Machine
  3088. Dependencies::.
  3089. 
  3090. File: as.info, Node: Eject, Next: Else, Prev: Double, Up: Pseudo Ops
  3091. 7.22 '.eject'
  3092. =============
  3093. Force a page break at this point, when generating assembly listings.
  3094. 
  3095. File: as.info, Node: Else, Next: Elseif, Prev: Eject, Up: Pseudo Ops
  3096. 7.23 '.else'
  3097. ============
  3098. '.else' is part of the 'as' support for conditional assembly; see *note
  3099. '.if': If. It marks the beginning of a section of code to be assembled
  3100. if the condition for the preceding '.if' was false.
  3101. 
  3102. File: as.info, Node: Elseif, Next: End, Prev: Else, Up: Pseudo Ops
  3103. 7.24 '.elseif'
  3104. ==============
  3105. '.elseif' is part of the 'as' support for conditional assembly; see
  3106. *note '.if': If. It is shorthand for beginning a new '.if' block that
  3107. would otherwise fill the entire '.else' section.
  3108. 
  3109. File: as.info, Node: End, Next: Endef, Prev: Elseif, Up: Pseudo Ops
  3110. 7.25 '.end'
  3111. ===========
  3112. '.end' marks the end of the assembly file. 'as' does not process
  3113. anything in the file past the '.end' directive.
  3114. 
  3115. File: as.info, Node: Endef, Next: Endfunc, Prev: End, Up: Pseudo Ops
  3116. 7.26 '.endef'
  3117. =============
  3118. This directive flags the end of a symbol definition begun with '.def'.
  3119. 
  3120. File: as.info, Node: Endfunc, Next: Endif, Prev: Endef, Up: Pseudo Ops
  3121. 7.27 '.endfunc'
  3122. ===============
  3123. '.endfunc' marks the end of a function specified with '.func'.
  3124. 
  3125. File: as.info, Node: Endif, Next: Equ, Prev: Endfunc, Up: Pseudo Ops
  3126. 7.28 '.endif'
  3127. =============
  3128. '.endif' is part of the 'as' support for conditional assembly; it marks
  3129. the end of a block of code that is only assembled conditionally. *Note
  3130. '.if': If.
  3131. 
  3132. File: as.info, Node: Equ, Next: Equiv, Prev: Endif, Up: Pseudo Ops
  3133. 7.29 '.equ SYMBOL, EXPRESSION'
  3134. ==============================
  3135. This directive sets the value of SYMBOL to EXPRESSION. It is synonymous
  3136. with '.set'; see *note '.set': Set.
  3137. The syntax for 'equ' on the HPPA is 'SYMBOL .equ EXPRESSION'.
  3138. The syntax for 'equ' on the Z80 is 'SYMBOL equ EXPRESSION'. On the
  3139. Z80 it is an error if SYMBOL is already defined, but the symbol is not
  3140. protected from later redefinition. Compare *note Equiv::.
  3141. 
  3142. File: as.info, Node: Equiv, Next: Eqv, Prev: Equ, Up: Pseudo Ops
  3143. 7.30 '.equiv SYMBOL, EXPRESSION'
  3144. ================================
  3145. The '.equiv' directive is like '.equ' and '.set', except that the
  3146. assembler will signal an error if SYMBOL is already defined. Note a
  3147. symbol which has been referenced but not actually defined is considered
  3148. to be undefined.
  3149. Except for the contents of the error message, this is roughly
  3150. equivalent to
  3151. .ifdef SYM
  3152. .err
  3153. .endif
  3154. .equ SYM,VAL
  3155. plus it protects the symbol from later redefinition.
  3156. 
  3157. File: as.info, Node: Eqv, Next: Err, Prev: Equiv, Up: Pseudo Ops
  3158. 7.31 '.eqv SYMBOL, EXPRESSION'
  3159. ==============================
  3160. The '.eqv' directive is like '.equiv', but no attempt is made to
  3161. evaluate the expression or any part of it immediately. Instead each
  3162. time the resulting symbol is used in an expression, a snapshot of its
  3163. current value is taken.
  3164. 
  3165. File: as.info, Node: Err, Next: Error, Prev: Eqv, Up: Pseudo Ops
  3166. 7.32 '.err'
  3167. ===========
  3168. If 'as' assembles a '.err' directive, it will print an error message
  3169. and, unless the '-Z' option was used, it will not generate an object
  3170. file. This can be used to signal an error in conditionally compiled
  3171. code.
  3172. 
  3173. File: as.info, Node: Error, Next: Exitm, Prev: Err, Up: Pseudo Ops
  3174. 7.33 '.error "STRING"'
  3175. ======================
  3176. Similarly to '.err', this directive emits an error, but you can specify
  3177. a string that will be emitted as the error message. If you don't
  3178. specify the message, it defaults to '".error directive invoked in source
  3179. file"'. *Note Error and Warning Messages: Errors.
  3180. .error "This code has not been assembled and tested."
  3181. 
  3182. File: as.info, Node: Exitm, Next: Extern, Prev: Error, Up: Pseudo Ops
  3183. 7.34 '.exitm'
  3184. =============
  3185. Exit early from the current macro definition. *Note Macro::.
  3186. 
  3187. File: as.info, Node: Extern, Next: Fail, Prev: Exitm, Up: Pseudo Ops
  3188. 7.35 '.extern'
  3189. ==============
  3190. '.extern' is accepted in the source program--for compatibility with
  3191. other assemblers--but it is ignored. 'as' treats all undefined symbols
  3192. as external.
  3193. 
  3194. File: as.info, Node: Fail, Next: File, Prev: Extern, Up: Pseudo Ops
  3195. 7.36 '.fail EXPRESSION'
  3196. =======================
  3197. Generates an error or a warning. If the value of the EXPRESSION is 500
  3198. or more, 'as' will print a warning message. If the value is less than
  3199. 500, 'as' will print an error message. The message will include the
  3200. value of EXPRESSION. This can occasionally be useful inside complex
  3201. nested macros or conditional assembly.
  3202. 
  3203. File: as.info, Node: File, Next: Fill, Prev: Fail, Up: Pseudo Ops
  3204. 7.37 '.file'
  3205. ============
  3206. There are two different versions of the '.file' directive. Targets that
  3207. support DWARF2 line number information use the DWARF2 version of
  3208. '.file'. Other targets use the default version.
  3209. Default Version
  3210. ---------------
  3211. This version of the '.file' directive tells 'as' that we are about to
  3212. start a new logical file. The syntax is:
  3213. .file STRING
  3214. STRING is the new file name. In general, the filename is recognized
  3215. whether or not it is surrounded by quotes '"'; but if you wish to
  3216. specify an empty file name, you must give the quotes-'""'. This
  3217. statement may go away in future: it is only recognized to be compatible
  3218. with old 'as' programs.
  3219. DWARF2 Version
  3220. --------------
  3221. When emitting DWARF2 line number information, '.file' assigns filenames
  3222. to the '.debug_line' file name table. The syntax is:
  3223. .file FILENO FILENAME
  3224. The FILENO operand should be a unique positive integer to use as the
  3225. index of the entry in the table. The FILENAME operand is a C string
  3226. literal enclosed in double quotes. The FILENAME can include directory
  3227. elements. If it does, then the directory will be added to the directory
  3228. table and the basename will be added to the file table.
  3229. The detail of filename indices is exposed to the user because the
  3230. filename table is shared with the '.debug_info' section of the DWARF2
  3231. debugging information, and thus the user must know the exact indices
  3232. that table entries will have.
  3233. If DWARF5 support has been enabled via the '-gdwarf-5' option then an
  3234. extended version of '.file' is also allowed:
  3235. .file FILENO [DIRNAME] FILENAME [md5 VALUE]
  3236. With this version a separate directory name is allowed, although if
  3237. this is used then FILENAME should not contain any directory component,
  3238. except for FILENO equal to 0: in this case, DIRNAME is expected to be
  3239. the current directory and FILENAME the currently processed file, and the
  3240. latter need not be located in the former. In addtion an MD5 hash value
  3241. of the contents of FILENAME can be provided. This will be stored in the
  3242. the file table as well, and can be used by tools reading the debug
  3243. information to verify that the contents of the source file match the
  3244. contents of the compiled file.
  3245. 
  3246. File: as.info, Node: Fill, Next: Float, Prev: File, Up: Pseudo Ops
  3247. 7.38 '.fill REPEAT , SIZE , VALUE'
  3248. ==================================
  3249. REPEAT, SIZE and VALUE are absolute expressions. This emits REPEAT
  3250. copies of SIZE bytes. REPEAT may be zero or more. SIZE may be zero or
  3251. more, but if it is more than 8, then it is deemed to have the value 8,
  3252. compatible with other people's assemblers. The contents of each REPEAT
  3253. bytes is taken from an 8-byte number. The highest order 4 bytes are
  3254. zero. The lowest order 4 bytes are VALUE rendered in the byte-order of
  3255. an integer on the computer 'as' is assembling for. Each SIZE bytes in a
  3256. repetition is taken from the lowest order SIZE bytes of this number.
  3257. Again, this bizarre behavior is compatible with other people's
  3258. assemblers.
  3259. SIZE and VALUE are optional. If the second comma and VALUE are
  3260. absent, VALUE is assumed zero. If the first comma and following tokens
  3261. are absent, SIZE is assumed to be 1.
  3262. 
  3263. File: as.info, Node: Float, Next: Func, Prev: Fill, Up: Pseudo Ops
  3264. 7.39 '.float FLONUMS'
  3265. =====================
  3266. This directive assembles zero or more flonums, separated by commas. It
  3267. has the same effect as '.single'. The exact kind of floating point
  3268. numbers emitted depends on how 'as' is configured. *Note Machine
  3269. Dependencies::.
  3270. 
  3271. File: as.info, Node: Func, Next: Global, Prev: Float, Up: Pseudo Ops
  3272. 7.40 '.func NAME[,LABEL]'
  3273. =========================
  3274. '.func' emits debugging information to denote function NAME, and is
  3275. ignored unless the file is assembled with debugging enabled. Only
  3276. '--gstabs[+]' is currently supported. LABEL is the entry point of the
  3277. function and if omitted NAME prepended with the 'leading char' is used.
  3278. 'leading char' is usually '_' or nothing, depending on the target. All
  3279. functions are currently defined to have 'void' return type. The
  3280. function must be terminated with '.endfunc'.
  3281. 
  3282. File: as.info, Node: Global, Next: Gnu_attribute, Prev: Func, Up: Pseudo Ops
  3283. 7.41 '.global SYMBOL', '.globl SYMBOL'
  3284. ======================================
  3285. '.global' makes the symbol visible to 'ld'. If you define SYMBOL in
  3286. your partial program, its value is made available to other partial
  3287. programs that are linked with it. Otherwise, SYMBOL takes its
  3288. attributes from a symbol of the same name from another file linked into
  3289. the same program.
  3290. Both spellings ('.globl' and '.global') are accepted, for
  3291. compatibility with other assemblers.
  3292. On the HPPA, '.global' is not always enough to make it accessible to
  3293. other partial programs. You may need the HPPA-only '.EXPORT' directive
  3294. as well. *Note HPPA Assembler Directives: HPPA Directives.
  3295. 
  3296. File: as.info, Node: Gnu_attribute, Next: Hidden, Prev: Global, Up: Pseudo Ops
  3297. 7.42 '.gnu_attribute TAG,VALUE'
  3298. ===============================
  3299. Record a GNU object attribute for this file. *Note Object Attributes::.
  3300. 
  3301. File: as.info, Node: Hidden, Next: hword, Prev: Gnu_attribute, Up: Pseudo Ops
  3302. 7.43 '.hidden NAMES'
  3303. ====================
  3304. This is one of the ELF visibility directives. The other two are
  3305. '.internal' (*note '.internal': Internal.) and '.protected' (*note
  3306. '.protected': Protected.).
  3307. This directive overrides the named symbols default visibility (which
  3308. is set by their binding: local, global or weak). The directive sets the
  3309. visibility to 'hidden' which means that the symbols are not visible to
  3310. other components. Such symbols are always considered to be 'protected'
  3311. as well.
  3312. 
  3313. File: as.info, Node: hword, Next: Ident, Prev: Hidden, Up: Pseudo Ops
  3314. 7.44 '.hword EXPRESSIONS'
  3315. =========================
  3316. This expects zero or more EXPRESSIONS, and emits a 16 bit number for
  3317. each.
  3318. This directive is a synonym for '.short'; depending on the target
  3319. architecture, it may also be a synonym for '.word'.
  3320. 
  3321. File: as.info, Node: Ident, Next: If, Prev: hword, Up: Pseudo Ops
  3322. 7.45 '.ident'
  3323. =============
  3324. This directive is used by some assemblers to place tags in object files.
  3325. The behavior of this directive varies depending on the target. When
  3326. using the a.out object file format, 'as' simply accepts the directive
  3327. for source-file compatibility with existing assemblers, but does not
  3328. emit anything for it. When using COFF, comments are emitted to the
  3329. '.comment' or '.rdata' section, depending on the target. When using
  3330. ELF, comments are emitted to the '.comment' section.
  3331. 
  3332. File: as.info, Node: If, Next: Incbin, Prev: Ident, Up: Pseudo Ops
  3333. 7.46 '.if ABSOLUTE EXPRESSION'
  3334. ==============================
  3335. '.if' marks the beginning of a section of code which is only considered
  3336. part of the source program being assembled if the argument (which must
  3337. be an ABSOLUTE EXPRESSION) is non-zero. The end of the conditional
  3338. section of code must be marked by '.endif' (*note '.endif': Endif.);
  3339. optionally, you may include code for the alternative condition, flagged
  3340. by '.else' (*note '.else': Else.). If you have several conditions to
  3341. check, '.elseif' may be used to avoid nesting blocks if/else within each
  3342. subsequent '.else' block.
  3343. The following variants of '.if' are also supported:
  3344. '.ifdef SYMBOL'
  3345. Assembles the following section of code if the specified SYMBOL has
  3346. been defined. Note a symbol which has been referenced but not yet
  3347. defined is considered to be undefined.
  3348. '.ifb TEXT'
  3349. Assembles the following section of code if the operand is blank
  3350. (empty).
  3351. '.ifc STRING1,STRING2'
  3352. Assembles the following section of code if the two strings are the
  3353. same. The strings may be optionally quoted with single quotes. If
  3354. they are not quoted, the first string stops at the first comma, and
  3355. the second string stops at the end of the line. Strings which
  3356. contain whitespace should be quoted. The string comparison is case
  3357. sensitive.
  3358. '.ifeq ABSOLUTE EXPRESSION'
  3359. Assembles the following section of code if the argument is zero.
  3360. '.ifeqs STRING1,STRING2'
  3361. Another form of '.ifc'. The strings must be quoted using double
  3362. quotes.
  3363. '.ifge ABSOLUTE EXPRESSION'
  3364. Assembles the following section of code if the argument is greater
  3365. than or equal to zero.
  3366. '.ifgt ABSOLUTE EXPRESSION'
  3367. Assembles the following section of code if the argument is greater
  3368. than zero.
  3369. '.ifle ABSOLUTE EXPRESSION'
  3370. Assembles the following section of code if the argument is less
  3371. than or equal to zero.
  3372. '.iflt ABSOLUTE EXPRESSION'
  3373. Assembles the following section of code if the argument is less
  3374. than zero.
  3375. '.ifnb TEXT'
  3376. Like '.ifb', but the sense of the test is reversed: this assembles
  3377. the following section of code if the operand is non-blank
  3378. (non-empty).
  3379. '.ifnc STRING1,STRING2.'
  3380. Like '.ifc', but the sense of the test is reversed: this assembles
  3381. the following section of code if the two strings are not the same.
  3382. '.ifndef SYMBOL'
  3383. '.ifnotdef SYMBOL'
  3384. Assembles the following section of code if the specified SYMBOL has
  3385. not been defined. Both spelling variants are equivalent. Note a
  3386. symbol which has been referenced but not yet defined is considered
  3387. to be undefined.
  3388. '.ifne ABSOLUTE EXPRESSION'
  3389. Assembles the following section of code if the argument is not
  3390. equal to zero (in other words, this is equivalent to '.if').
  3391. '.ifnes STRING1,STRING2'
  3392. Like '.ifeqs', but the sense of the test is reversed: this
  3393. assembles the following section of code if the two strings are not
  3394. the same.
  3395. 
  3396. File: as.info, Node: Incbin, Next: Include, Prev: If, Up: Pseudo Ops
  3397. 7.47 '.incbin "FILE"[,SKIP[,COUNT]]'
  3398. ====================================
  3399. The 'incbin' directive includes FILE verbatim at the current location.
  3400. You can control the search paths used with the '-I' command-line option
  3401. (*note Command-Line Options: Invoking.). Quotation marks are required
  3402. around FILE.
  3403. The SKIP argument skips a number of bytes from the start of the FILE.
  3404. The COUNT argument indicates the maximum number of bytes to read. Note
  3405. that the data is not aligned in any way, so it is the user's
  3406. responsibility to make sure that proper alignment is provided both
  3407. before and after the 'incbin' directive.
  3408. 
  3409. File: as.info, Node: Include, Next: Int, Prev: Incbin, Up: Pseudo Ops
  3410. 7.48 '.include "FILE"'
  3411. ======================
  3412. This directive provides a way to include supporting files at specified
  3413. points in your source program. The code from FILE is assembled as if it
  3414. followed the point of the '.include'; when the end of the included file
  3415. is reached, assembly of the original file continues. You can control
  3416. the search paths used with the '-I' command-line option (*note
  3417. Command-Line Options: Invoking.). Quotation marks are required around
  3418. FILE.
  3419. 
  3420. File: as.info, Node: Int, Next: Internal, Prev: Include, Up: Pseudo Ops
  3421. 7.49 '.int EXPRESSIONS'
  3422. =======================
  3423. Expect zero or more EXPRESSIONS, of any section, separated by commas.
  3424. For each expression, emit a number that, at run time, is the value of
  3425. that expression. The byte order and bit size of the number depends on
  3426. what kind of target the assembly is for.
  3427. 
  3428. File: as.info, Node: Internal, Next: Irp, Prev: Int, Up: Pseudo Ops
  3429. 7.50 '.internal NAMES'
  3430. ======================
  3431. This is one of the ELF visibility directives. The other two are
  3432. '.hidden' (*note '.hidden': Hidden.) and '.protected' (*note
  3433. '.protected': Protected.).
  3434. This directive overrides the named symbols default visibility (which
  3435. is set by their binding: local, global or weak). The directive sets the
  3436. visibility to 'internal' which means that the symbols are considered to
  3437. be 'hidden' (i.e., not visible to other components), and that some
  3438. extra, processor specific processing must also be performed upon the
  3439. symbols as well.
  3440. 
  3441. File: as.info, Node: Irp, Next: Irpc, Prev: Internal, Up: Pseudo Ops
  3442. 7.51 '.irp SYMBOL,VALUES'...
  3443. ============================
  3444. Evaluate a sequence of statements assigning different values to SYMBOL.
  3445. The sequence of statements starts at the '.irp' directive, and is
  3446. terminated by an '.endr' directive. For each VALUE, SYMBOL is set to
  3447. VALUE, and the sequence of statements is assembled. If no VALUE is
  3448. listed, the sequence of statements is assembled once, with SYMBOL set to
  3449. the null string. To refer to SYMBOL within the sequence of statements,
  3450. use \SYMBOL.
  3451. For example, assembling
  3452. .irp param,1,2,3
  3453. move d\param,sp@-
  3454. .endr
  3455. is equivalent to assembling
  3456. move d1,sp@-
  3457. move d2,sp@-
  3458. move d3,sp@-
  3459. For some caveats with the spelling of SYMBOL, see also *note Macro::.
  3460. 
  3461. File: as.info, Node: Irpc, Next: Lcomm, Prev: Irp, Up: Pseudo Ops
  3462. 7.52 '.irpc SYMBOL,VALUES'...
  3463. =============================
  3464. Evaluate a sequence of statements assigning different values to SYMBOL.
  3465. The sequence of statements starts at the '.irpc' directive, and is
  3466. terminated by an '.endr' directive. For each character in VALUE, SYMBOL
  3467. is set to the character, and the sequence of statements is assembled.
  3468. If no VALUE is listed, the sequence of statements is assembled once,
  3469. with SYMBOL set to the null string. To refer to SYMBOL within the
  3470. sequence of statements, use \SYMBOL.
  3471. For example, assembling
  3472. .irpc param,123
  3473. move d\param,sp@-
  3474. .endr
  3475. is equivalent to assembling
  3476. move d1,sp@-
  3477. move d2,sp@-
  3478. move d3,sp@-
  3479. For some caveats with the spelling of SYMBOL, see also the discussion
  3480. at *Note Macro::.
  3481. 
  3482. File: as.info, Node: Lcomm, Next: Lflags, Prev: Irpc, Up: Pseudo Ops
  3483. 7.53 '.lcomm SYMBOL , LENGTH'
  3484. =============================
  3485. Reserve LENGTH (an absolute expression) bytes for a local common denoted
  3486. by SYMBOL. The section and value of SYMBOL are those of the new local
  3487. common. The addresses are allocated in the bss section, so that at
  3488. run-time the bytes start off zeroed. SYMBOL is not declared global
  3489. (*note '.global': Global.), so is normally not visible to 'ld'.
  3490. Some targets permit a third argument to be used with '.lcomm'. This
  3491. argument specifies the desired alignment of the symbol in the bss
  3492. section.
  3493. The syntax for '.lcomm' differs slightly on the HPPA. The syntax is
  3494. 'SYMBOL .lcomm, LENGTH'; SYMBOL is optional.
  3495. 
  3496. File: as.info, Node: Lflags, Next: Line, Prev: Lcomm, Up: Pseudo Ops
  3497. 7.54 '.lflags'
  3498. ==============
  3499. 'as' accepts this directive, for compatibility with other assemblers,
  3500. but ignores it.
  3501. 
  3502. File: as.info, Node: Line, Next: Linkonce, Prev: Lflags, Up: Pseudo Ops
  3503. 7.55 '.line LINE-NUMBER'
  3504. ========================
  3505. Change the logical line number. LINE-NUMBER must be an absolute
  3506. expression. The next line has that logical line number. Therefore any
  3507. other statements on the current line (after a statement separator
  3508. character) are reported as on logical line number LINE-NUMBER - 1. One
  3509. day 'as' will no longer support this directive: it is recognized only
  3510. for compatibility with existing assembler programs.
  3511. Even though this is a directive associated with the 'a.out' or
  3512. 'b.out' object-code formats, 'as' still recognizes it when producing
  3513. COFF output, and treats '.line' as though it were the COFF '.ln' _if_ it
  3514. is found outside a '.def'/'.endef' pair.
  3515. Inside a '.def', '.line' is, instead, one of the directives used by
  3516. compilers to generate auxiliary symbol information for debugging.
  3517. 
  3518. File: as.info, Node: Linkonce, Next: List, Prev: Line, Up: Pseudo Ops
  3519. 7.56 '.linkonce [TYPE]'
  3520. =======================
  3521. Mark the current section so that the linker only includes a single copy
  3522. of it. This may be used to include the same section in several
  3523. different object files, but ensure that the linker will only include it
  3524. once in the final output file. The '.linkonce' pseudo-op must be used
  3525. for each instance of the section. Duplicate sections are detected based
  3526. on the section name, so it should be unique.
  3527. This directive is only supported by a few object file formats; as of
  3528. this writing, the only object file format which supports it is the
  3529. Portable Executable format used on Windows NT.
  3530. The TYPE argument is optional. If specified, it must be one of the
  3531. following strings. For example:
  3532. .linkonce same_size
  3533. Not all types may be supported on all object file formats.
  3534. 'discard'
  3535. Silently discard duplicate sections. This is the default.
  3536. 'one_only'
  3537. Warn if there are duplicate sections, but still keep only one copy.
  3538. 'same_size'
  3539. Warn if any of the duplicates have different sizes.
  3540. 'same_contents'
  3541. Warn if any of the duplicates do not have exactly the same
  3542. contents.
  3543. 
  3544. File: as.info, Node: List, Next: Ln, Prev: Linkonce, Up: Pseudo Ops
  3545. 7.57 '.list'
  3546. ============
  3547. Control (in conjunction with the '.nolist' directive) whether or not
  3548. assembly listings are generated. These two directives maintain an
  3549. internal counter (which is zero initially). '.list' increments the
  3550. counter, and '.nolist' decrements it. Assembly listings are generated
  3551. whenever the counter is greater than zero.
  3552. By default, listings are disabled. When you enable them (with the
  3553. '-a' command-line option; *note Command-Line Options: Invoking.), the
  3554. initial value of the listing counter is one.
  3555. 
  3556. File: as.info, Node: Ln, Next: Loc, Prev: List, Up: Pseudo Ops
  3557. 7.58 '.ln LINE-NUMBER'
  3558. ======================
  3559. '.ln' is a synonym for '.line'.
  3560. 
  3561. File: as.info, Node: Loc, Next: Loc_mark_labels, Prev: Ln, Up: Pseudo Ops
  3562. 7.59 '.loc FILENO LINENO [COLUMN] [OPTIONS]'
  3563. ============================================
  3564. When emitting DWARF2 line number information, the '.loc' directive will
  3565. add a row to the '.debug_line' line number matrix corresponding to the
  3566. immediately following assembly instruction. The FILENO, LINENO, and
  3567. optional COLUMN arguments will be applied to the '.debug_line' state
  3568. machine before the row is added. It is an error for the input assembly
  3569. file to generate a non-empty '.debug_line' and also use 'loc'
  3570. directives.
  3571. The OPTIONS are a sequence of the following tokens in any order:
  3572. 'basic_block'
  3573. This option will set the 'basic_block' register in the
  3574. '.debug_line' state machine to 'true'.
  3575. 'prologue_end'
  3576. This option will set the 'prologue_end' register in the
  3577. '.debug_line' state machine to 'true'.
  3578. 'epilogue_begin'
  3579. This option will set the 'epilogue_begin' register in the
  3580. '.debug_line' state machine to 'true'.
  3581. 'is_stmt VALUE'
  3582. This option will set the 'is_stmt' register in the '.debug_line'
  3583. state machine to 'value', which must be either 0 or 1.
  3584. 'isa VALUE'
  3585. This directive will set the 'isa' register in the '.debug_line'
  3586. state machine to VALUE, which must be an unsigned integer.
  3587. 'discriminator VALUE'
  3588. This directive will set the 'discriminator' register in the
  3589. '.debug_line' state machine to VALUE, which must be an unsigned
  3590. integer.
  3591. 'view VALUE'
  3592. This option causes a row to be added to '.debug_line' in reference
  3593. to the current address (which might not be the same as that of the
  3594. following assembly instruction), and to associate VALUE with the
  3595. 'view' register in the '.debug_line' state machine. If VALUE is a
  3596. label, both the 'view' register and the label are set to the number
  3597. of prior '.loc' directives at the same program location. If VALUE
  3598. is the literal '0', the 'view' register is set to zero, and the
  3599. assembler asserts that there aren't any prior '.loc' directives at
  3600. the same program location. If VALUE is the literal '-0', the
  3601. assembler arrange for the 'view' register to be reset in this row,
  3602. even if there are prior '.loc' directives at the same program
  3603. location.
  3604. 
  3605. File: as.info, Node: Loc_mark_labels, Next: Local, Prev: Loc, Up: Pseudo Ops
  3606. 7.60 '.loc_mark_labels ENABLE'
  3607. ==============================
  3608. When emitting DWARF2 line number information, the '.loc_mark_labels'
  3609. directive makes the assembler emit an entry to the '.debug_line' line
  3610. number matrix with the 'basic_block' register in the state machine set
  3611. whenever a code label is seen. The ENABLE argument should be either 1
  3612. or 0, to enable or disable this function respectively.
  3613. 
  3614. File: as.info, Node: Local, Next: Long, Prev: Loc_mark_labels, Up: Pseudo Ops
  3615. 7.61 '.local NAMES'
  3616. ===================
  3617. This directive, which is available for ELF targets, marks each symbol in
  3618. the comma-separated list of 'names' as a local symbol so that it will
  3619. not be externally visible. If the symbols do not already exist, they
  3620. will be created.
  3621. For targets where the '.lcomm' directive (*note Lcomm::) does not
  3622. accept an alignment argument, which is the case for most ELF targets,
  3623. the '.local' directive can be used in combination with '.comm' (*note
  3624. Comm::) to define aligned local common data.
  3625. 
  3626. File: as.info, Node: Long, Next: Macro, Prev: Local, Up: Pseudo Ops
  3627. 7.62 '.long EXPRESSIONS'
  3628. ========================
  3629. '.long' is the same as '.int'. *Note '.int': Int.
  3630. 
  3631. File: as.info, Node: Macro, Next: MRI, Prev: Long, Up: Pseudo Ops
  3632. 7.63 '.macro'
  3633. =============
  3634. The commands '.macro' and '.endm' allow you to define macros that
  3635. generate assembly output. For example, this definition specifies a
  3636. macro 'sum' that puts a sequence of numbers into memory:
  3637. .macro sum from=0, to=5
  3638. .long \from
  3639. .if \to-\from
  3640. sum "(\from+1)",\to
  3641. .endif
  3642. .endm
  3643. With that definition, 'SUM 0,5' is equivalent to this assembly input:
  3644. .long 0
  3645. .long 1
  3646. .long 2
  3647. .long 3
  3648. .long 4
  3649. .long 5
  3650. '.macro MACNAME'
  3651. '.macro MACNAME MACARGS ...'
  3652. Begin the definition of a macro called MACNAME. If your macro
  3653. definition requires arguments, specify their names after the macro
  3654. name, separated by commas or spaces. You can qualify the macro
  3655. argument to indicate whether all invocations must specify a
  3656. non-blank value (through ':'req''), or whether it takes all of the
  3657. remaining arguments (through ':'vararg''). You can supply a
  3658. default value for any macro argument by following the name with
  3659. '=DEFLT'. You cannot define two macros with the same MACNAME
  3660. unless it has been subject to the '.purgem' directive (*note
  3661. Purgem::) between the two definitions. For example, these are all
  3662. valid '.macro' statements:
  3663. '.macro comm'
  3664. Begin the definition of a macro called 'comm', which takes no
  3665. arguments.
  3666. '.macro plus1 p, p1'
  3667. '.macro plus1 p p1'
  3668. Either statement begins the definition of a macro called
  3669. 'plus1', which takes two arguments; within the macro
  3670. definition, write '\p' or '\p1' to evaluate the arguments.
  3671. '.macro reserve_str p1=0 p2'
  3672. Begin the definition of a macro called 'reserve_str', with two
  3673. arguments. The first argument has a default value, but not
  3674. the second. After the definition is complete, you can call
  3675. the macro either as 'reserve_str A,B' (with '\p1' evaluating
  3676. to A and '\p2' evaluating to B), or as 'reserve_str ,B' (with
  3677. '\p1' evaluating as the default, in this case '0', and '\p2'
  3678. evaluating to B).
  3679. '.macro m p1:req, p2=0, p3:vararg'
  3680. Begin the definition of a macro called 'm', with at least
  3681. three arguments. The first argument must always have a value
  3682. specified, but not the second, which instead has a default
  3683. value. The third formal will get assigned all remaining
  3684. arguments specified at invocation time.
  3685. When you call a macro, you can specify the argument values
  3686. either by position, or by keyword. For example, 'sum 9,17' is
  3687. equivalent to 'sum to=17, from=9'.
  3688. Note that since each of the MACARGS can be an identifier exactly as
  3689. any other one permitted by the target architecture, there may be
  3690. occasional problems if the target hand-crafts special meanings to
  3691. certain characters when they occur in a special position. For
  3692. example, if the colon (':') is generally permitted to be part of a
  3693. symbol name, but the architecture specific code special-cases it
  3694. when occurring as the final character of a symbol (to denote a
  3695. label), then the macro parameter replacement code will have no way
  3696. of knowing that and consider the whole construct (including the
  3697. colon) an identifier, and check only this identifier for being the
  3698. subject to parameter substitution. So for example this macro
  3699. definition:
  3700. .macro label l
  3701. \l:
  3702. .endm
  3703. might not work as expected. Invoking 'label foo' might not create
  3704. a label called 'foo' but instead just insert the text '\l:' into
  3705. the assembler source, probably generating an error about an
  3706. unrecognised identifier.
  3707. Similarly problems might occur with the period character ('.')
  3708. which is often allowed inside opcode names (and hence identifier
  3709. names). So for example constructing a macro to build an opcode
  3710. from a base name and a length specifier like this:
  3711. .macro opcode base length
  3712. \base.\length
  3713. .endm
  3714. and invoking it as 'opcode store l' will not create a 'store.l'
  3715. instruction but instead generate some kind of error as the
  3716. assembler tries to interpret the text '\base.\length'.
  3717. There are several possible ways around this problem:
  3718. 'Insert white space'
  3719. If it is possible to use white space characters then this is
  3720. the simplest solution. eg:
  3721. .macro label l
  3722. \l :
  3723. .endm
  3724. 'Use '\()''
  3725. The string '\()' can be used to separate the end of a macro
  3726. argument from the following text. eg:
  3727. .macro opcode base length
  3728. \base\().\length
  3729. .endm
  3730. 'Use the alternate macro syntax mode'
  3731. In the alternative macro syntax mode the ampersand character
  3732. ('&') can be used as a separator. eg:
  3733. .altmacro
  3734. .macro label l
  3735. l&:
  3736. .endm
  3737. Note: this problem of correctly identifying string parameters to
  3738. pseudo ops also applies to the identifiers used in '.irp' (*note
  3739. Irp::) and '.irpc' (*note Irpc::) as well.
  3740. '.endm'
  3741. Mark the end of a macro definition.
  3742. '.exitm'
  3743. Exit early from the current macro definition.
  3744. '\@'
  3745. 'as' maintains a counter of how many macros it has executed in this
  3746. pseudo-variable; you can copy that number to your output with '\@',
  3747. but _only within a macro definition_.
  3748. 'LOCAL NAME [ , ... ]'
  3749. _Warning: 'LOCAL' is only available if you select "alternate macro
  3750. syntax" with '--alternate' or '.altmacro'._ *Note '.altmacro':
  3751. Altmacro.
  3752. 
  3753. File: as.info, Node: MRI, Next: Noaltmacro, Prev: Macro, Up: Pseudo Ops
  3754. 7.64 '.mri VAL'
  3755. ===============
  3756. If VAL is non-zero, this tells 'as' to enter MRI mode. If VAL is zero,
  3757. this tells 'as' to exit MRI mode. This change affects code assembled
  3758. until the next '.mri' directive, or until the end of the file. *Note
  3759. MRI mode: M.
  3760. 
  3761. File: as.info, Node: Noaltmacro, Next: Nolist, Prev: MRI, Up: Pseudo Ops
  3762. 7.65 '.noaltmacro'
  3763. ==================
  3764. Disable alternate macro mode. *Note Altmacro::.
  3765. 
  3766. File: as.info, Node: Nolist, Next: Nop, Prev: Noaltmacro, Up: Pseudo Ops
  3767. 7.66 '.nolist'
  3768. ==============
  3769. Control (in conjunction with the '.list' directive) whether or not
  3770. assembly listings are generated. These two directives maintain an
  3771. internal counter (which is zero initially). '.list' increments the
  3772. counter, and '.nolist' decrements it. Assembly listings are generated
  3773. whenever the counter is greater than zero.
  3774. 
  3775. File: as.info, Node: Nop, Next: Nops, Prev: Nolist, Up: Pseudo Ops
  3776. 7.67 '.nop [SIZE]'
  3777. ==================
  3778. This directive emits no-op instructions. It is provided on all
  3779. architectures, allowing the creation of architecture neutral tests
  3780. involving actual code. The size of the generated instruction is target
  3781. specific, but if the optional SIZE argument is given and resolves to an
  3782. absolute positive value at that point in assembly (no forward
  3783. expressions allowed) then the fewest no-op instructions are emitted that
  3784. equal or exceed a total SIZE in bytes. '.nop' does affect the
  3785. generation of DWARF debug line information. Some targets do not support
  3786. using '.nop' with SIZE.
  3787. 
  3788. File: as.info, Node: Nops, Next: Octa, Prev: Nop, Up: Pseudo Ops
  3789. 7.68 '.nops SIZE[, CONTROL]'
  3790. ============================
  3791. This directive emits no-op instructions. It is specific to the Intel
  3792. 80386 and AMD x86-64 targets. It takes a SIZE argument and generates
  3793. SIZE bytes of no-op instructions. SIZE must be absolute and positive.
  3794. These bytes do not affect the generation of DWARF debug line
  3795. information.
  3796. The optional CONTROL argument specifies a size limit for a single
  3797. no-op instruction. If not provided then a value of 0 is assumed. The
  3798. valid values of CONTROL are between 0 and 4 in 16-bit mode, between 0
  3799. and 7 when tuning for older processors in 32-bit mode, between 0 and 11
  3800. in 64-bit mode or when tuning for newer processors in 32-bit mode. When
  3801. 0 is used, the no-op instruction size limit is set to the maximum
  3802. supported size.
  3803. 
  3804. File: as.info, Node: Octa, Next: Offset, Prev: Nops, Up: Pseudo Ops
  3805. 7.69 '.octa BIGNUMS'
  3806. ====================
  3807. This directive expects zero or more bignums, separated by commas. For
  3808. each bignum, it emits a 16-byte integer.
  3809. The term "octa" comes from contexts in which a "word" is two bytes;
  3810. hence _octa_-word for 16 bytes.
  3811. 
  3812. File: as.info, Node: Offset, Next: Org, Prev: Octa, Up: Pseudo Ops
  3813. 7.70 '.offset LOC'
  3814. ==================
  3815. Set the location counter to LOC in the absolute section. LOC must be an
  3816. absolute expression. This directive may be useful for defining symbols
  3817. with absolute values. Do not confuse it with the '.org' directive.
  3818. 
  3819. File: as.info, Node: Org, Next: P2align, Prev: Offset, Up: Pseudo Ops
  3820. 7.71 '.org NEW-LC , FILL'
  3821. =========================
  3822. Advance the location counter of the current section to NEW-LC. NEW-LC
  3823. is either an absolute expression or an expression with the same section
  3824. as the current subsection. That is, you can't use '.org' to cross
  3825. sections: if NEW-LC has the wrong section, the '.org' directive is
  3826. ignored. To be compatible with former assemblers, if the section of
  3827. NEW-LC is absolute, 'as' issues a warning, then pretends the section of
  3828. NEW-LC is the same as the current subsection.
  3829. '.org' may only increase the location counter, or leave it unchanged;
  3830. you cannot use '.org' to move the location counter backwards.
  3831. Because 'as' tries to assemble programs in one pass, NEW-LC may not
  3832. be undefined. If you really detest this restriction we eagerly await a
  3833. chance to share your improved assembler.
  3834. Beware that the origin is relative to the start of the section, not
  3835. to the start of the subsection. This is compatible with other people's
  3836. assemblers.
  3837. When the location counter (of the current subsection) is advanced,
  3838. the intervening bytes are filled with FILL which should be an absolute
  3839. expression. If the comma and FILL are omitted, FILL defaults to zero.
  3840. 
  3841. File: as.info, Node: P2align, Next: PopSection, Prev: Org, Up: Pseudo Ops
  3842. 7.72 '.p2align[wl] [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  3843. ======================================================
  3844. Pad the location counter (in the current subsection) to a particular
  3845. storage boundary. The first expression (which must be absolute) is the
  3846. number of low-order zero bits the location counter must have after
  3847. advancement. For example '.p2align 3' advances the location counter
  3848. until it is a multiple of 8. If the location counter is already a
  3849. multiple of 8, no change is needed. If the expression is omitted then a
  3850. default value of 0 is used, effectively disabling alignment
  3851. requirements.
  3852. The second expression (also absolute) gives the fill value to be
  3853. stored in the padding bytes. It (and the comma) may be omitted. If it
  3854. is omitted, the padding bytes are normally zero. However, on most
  3855. systems, if the section is marked as containing code and the fill value
  3856. is omitted, the space is filled with no-op instructions.
  3857. The third expression is also absolute, and is also optional. If it
  3858. is present, it is the maximum number of bytes that should be skipped by
  3859. this alignment directive. If doing the alignment would require skipping
  3860. more bytes than the specified maximum, then the alignment is not done at
  3861. all. You can omit the fill value (the second argument) entirely by
  3862. simply using two commas after the required alignment; this can be useful
  3863. if you want the alignment to be filled with no-op instructions when
  3864. appropriate.
  3865. The '.p2alignw' and '.p2alignl' directives are variants of the
  3866. '.p2align' directive. The '.p2alignw' directive treats the fill pattern
  3867. as a two byte word value. The '.p2alignl' directives treats the fill
  3868. pattern as a four byte longword value. For example, '.p2alignw
  3869. 2,0x368d' will align to a multiple of 4. If it skips two bytes, they
  3870. will be filled in with the value 0x368d (the exact placement of the
  3871. bytes depends upon the endianness of the processor). If it skips 1 or 3
  3872. bytes, the fill value is undefined.
  3873. 
  3874. File: as.info, Node: PopSection, Next: Previous, Prev: P2align, Up: Pseudo Ops
  3875. 7.73 '.popsection'
  3876. ==================
  3877. This is one of the ELF section stack manipulation directives. The
  3878. others are '.section' (*note Section::), '.subsection' (*note
  3879. SubSection::), '.pushsection' (*note PushSection::), and '.previous'
  3880. (*note Previous::).
  3881. This directive replaces the current section (and subsection) with the
  3882. top section (and subsection) on the section stack. This section is
  3883. popped off the stack.
  3884. 
  3885. File: as.info, Node: Previous, Next: Print, Prev: PopSection, Up: Pseudo Ops
  3886. 7.74 '.previous'
  3887. ================
  3888. This is one of the ELF section stack manipulation directives. The
  3889. others are '.section' (*note Section::), '.subsection' (*note
  3890. SubSection::), '.pushsection' (*note PushSection::), and '.popsection'
  3891. (*note PopSection::).
  3892. This directive swaps the current section (and subsection) with most
  3893. recently referenced section/subsection pair prior to this one. Multiple
  3894. '.previous' directives in a row will flip between two sections (and
  3895. their subsections). For example:
  3896. .section A
  3897. .subsection 1
  3898. .word 0x1234
  3899. .subsection 2
  3900. .word 0x5678
  3901. .previous
  3902. .word 0x9abc
  3903. Will place 0x1234 and 0x9abc into subsection 1 and 0x5678 into
  3904. subsection 2 of section A. Whilst:
  3905. .section A
  3906. .subsection 1
  3907. # Now in section A subsection 1
  3908. .word 0x1234
  3909. .section B
  3910. .subsection 0
  3911. # Now in section B subsection 0
  3912. .word 0x5678
  3913. .subsection 1
  3914. # Now in section B subsection 1
  3915. .word 0x9abc
  3916. .previous
  3917. # Now in section B subsection 0
  3918. .word 0xdef0
  3919. Will place 0x1234 into section A, 0x5678 and 0xdef0 into subsection 0
  3920. of section B and 0x9abc into subsection 1 of section B.
  3921. In terms of the section stack, this directive swaps the current
  3922. section with the top section on the section stack.
  3923. 
  3924. File: as.info, Node: Print, Next: Protected, Prev: Previous, Up: Pseudo Ops
  3925. 7.75 '.print STRING'
  3926. ====================
  3927. 'as' will print STRING on the standard output during assembly. You must
  3928. put STRING in double quotes.
  3929. 
  3930. File: as.info, Node: Protected, Next: Psize, Prev: Print, Up: Pseudo Ops
  3931. 7.76 '.protected NAMES'
  3932. =======================
  3933. This is one of the ELF visibility directives. The other two are
  3934. '.hidden' (*note Hidden::) and '.internal' (*note Internal::).
  3935. This directive overrides the named symbols default visibility (which
  3936. is set by their binding: local, global or weak). The directive sets the
  3937. visibility to 'protected' which means that any references to the symbols
  3938. from within the components that defines them must be resolved to the
  3939. definition in that component, even if a definition in another component
  3940. would normally preempt this.
  3941. 
  3942. File: as.info, Node: Psize, Next: Purgem, Prev: Protected, Up: Pseudo Ops
  3943. 7.77 '.psize LINES , COLUMNS'
  3944. =============================
  3945. Use this directive to declare the number of lines--and, optionally, the
  3946. number of columns--to use for each page, when generating listings.
  3947. If you do not use '.psize', listings use a default line-count of 60.
  3948. You may omit the comma and COLUMNS specification; the default width is
  3949. 200 columns.
  3950. 'as' generates formfeeds whenever the specified number of lines is
  3951. exceeded (or whenever you explicitly request one, using '.eject').
  3952. If you specify LINES as '0', no formfeeds are generated save those
  3953. explicitly specified with '.eject'.
  3954. 
  3955. File: as.info, Node: Purgem, Next: PushSection, Prev: Psize, Up: Pseudo Ops
  3956. 7.78 '.purgem NAME'
  3957. ===================
  3958. Undefine the macro NAME, so that later uses of the string will not be
  3959. expanded. *Note Macro::.
  3960. 
  3961. File: as.info, Node: PushSection, Next: Quad, Prev: Purgem, Up: Pseudo Ops
  3962. 7.79 '.pushsection NAME [, SUBSECTION] [, "FLAGS"[, @TYPE[,ARGUMENTS]]]'
  3963. ========================================================================
  3964. This is one of the ELF section stack manipulation directives. The
  3965. others are '.section' (*note Section::), '.subsection' (*note
  3966. SubSection::), '.popsection' (*note PopSection::), and '.previous'
  3967. (*note Previous::).
  3968. This directive pushes the current section (and subsection) onto the
  3969. top of the section stack, and then replaces the current section and
  3970. subsection with 'name' and 'subsection'. The optional 'flags', 'type'
  3971. and 'arguments' are treated the same as in the '.section' (*note
  3972. Section::) directive.
  3973. 
  3974. File: as.info, Node: Quad, Next: Reloc, Prev: PushSection, Up: Pseudo Ops
  3975. 7.80 '.quad BIGNUMS'
  3976. ====================
  3977. '.quad' expects zero or more bignums, separated by commas. For each
  3978. bignum, it emits an 8-byte integer. If the bignum won't fit in 8 bytes,
  3979. it prints a warning message; and just takes the lowest order 8 bytes of
  3980. the bignum.
  3981. The term "quad" comes from contexts in which a "word" is two bytes;
  3982. hence _quad_-word for 8 bytes.
  3983. 
  3984. File: as.info, Node: Reloc, Next: Rept, Prev: Quad, Up: Pseudo Ops
  3985. 7.81 '.reloc OFFSET, RELOC_NAME[, EXPRESSION]'
  3986. ==============================================
  3987. Generate a relocation at OFFSET of type RELOC_NAME with value
  3988. EXPRESSION. If OFFSET is a number, the relocation is generated in the
  3989. current section. If OFFSET is an expression that resolves to a symbol
  3990. plus offset, the relocation is generated in the given symbol's section.
  3991. EXPRESSION, if present, must resolve to a symbol plus addend or to an
  3992. absolute value, but note that not all targets support an addend. e.g.
  3993. ELF REL targets such as i386 store an addend in the section contents
  3994. rather than in the relocation. This low level interface does not
  3995. support addends stored in the section.
  3996. 
  3997. File: as.info, Node: Rept, Next: Sbttl, Prev: Reloc, Up: Pseudo Ops
  3998. 7.82 '.rept COUNT'
  3999. ==================
  4000. Repeat the sequence of lines between the '.rept' directive and the next
  4001. '.endr' directive COUNT times.
  4002. For example, assembling
  4003. .rept 3
  4004. .long 0
  4005. .endr
  4006. is equivalent to assembling
  4007. .long 0
  4008. .long 0
  4009. .long 0
  4010. A count of zero is allowed, but nothing is generated. Negative
  4011. counts are not allowed and if encountered will be treated as if they
  4012. were zero.
  4013. 
  4014. File: as.info, Node: Sbttl, Next: Scl, Prev: Rept, Up: Pseudo Ops
  4015. 7.83 '.sbttl "SUBHEADING"'
  4016. ==========================
  4017. Use SUBHEADING as the title (third line, immediately after the title
  4018. line) when generating assembly listings.
  4019. This directive affects subsequent pages, as well as the current page
  4020. if it appears within ten lines of the top of a page.
  4021. 
  4022. File: as.info, Node: Scl, Next: Section, Prev: Sbttl, Up: Pseudo Ops
  4023. 7.84 '.scl CLASS'
  4024. =================
  4025. Set the storage-class value for a symbol. This directive may only be
  4026. used inside a '.def'/'.endef' pair. Storage class may flag whether a
  4027. symbol is static or external, or it may record further symbolic
  4028. debugging information.
  4029. 
  4030. File: as.info, Node: Section, Next: Set, Prev: Scl, Up: Pseudo Ops
  4031. 7.85 '.section NAME'
  4032. ====================
  4033. Use the '.section' directive to assemble the following code into a
  4034. section named NAME.
  4035. This directive is only supported for targets that actually support
  4036. arbitrarily named sections; on 'a.out' targets, for example, it is not
  4037. accepted, even with a standard 'a.out' section name.
  4038. COFF Version
  4039. ------------
  4040. For COFF targets, the '.section' directive is used in one of the
  4041. following ways:
  4042. .section NAME[, "FLAGS"]
  4043. .section NAME[, SUBSECTION]
  4044. If the optional argument is quoted, it is taken as flags to use for
  4045. the section. Each flag is a single character. The following flags are
  4046. recognized:
  4047. 'b'
  4048. bss section (uninitialized data)
  4049. 'n'
  4050. section is not loaded
  4051. 'w'
  4052. writable section
  4053. 'd'
  4054. data section
  4055. 'e'
  4056. exclude section from linking
  4057. 'r'
  4058. read-only section
  4059. 'x'
  4060. executable section
  4061. 's'
  4062. shared section (meaningful for PE targets)
  4063. 'a'
  4064. ignored. (For compatibility with the ELF version)
  4065. 'y'
  4066. section is not readable (meaningful for PE targets)
  4067. '0-9'
  4068. single-digit power-of-two section alignment (GNU extension)
  4069. If no flags are specified, the default flags depend upon the section
  4070. name. If the section name is not recognized, the default will be for
  4071. the section to be loaded and writable. Note the 'n' and 'w' flags
  4072. remove attributes from the section, rather than adding them, so if they
  4073. are used on their own it will be as if no flags had been specified at
  4074. all.
  4075. If the optional argument to the '.section' directive is not quoted,
  4076. it is taken as a subsection number (*note Sub-Sections::).
  4077. ELF Version
  4078. -----------
  4079. This is one of the ELF section stack manipulation directives. The
  4080. others are '.subsection' (*note SubSection::), '.pushsection' (*note
  4081. PushSection::), '.popsection' (*note PopSection::), and '.previous'
  4082. (*note Previous::).
  4083. For ELF targets, the '.section' directive is used like this:
  4084. .section NAME [, "FLAGS"[, @TYPE[,FLAG_SPECIFIC_ARGUMENTS]]]
  4085. If the '--sectname-subst' command-line option is provided, the NAME
  4086. argument may contain a substitution sequence. Only '%S' is supported at
  4087. the moment, and substitutes the current section name. For example:
  4088. .macro exception_code
  4089. .section %S.exception
  4090. [exception code here]
  4091. .previous
  4092. .endm
  4093. .text
  4094. [code]
  4095. exception_code
  4096. [...]
  4097. .section .init
  4098. [init code]
  4099. exception_code
  4100. [...]
  4101. The two 'exception_code' invocations above would create the
  4102. '.text.exception' and '.init.exception' sections respectively. This is
  4103. useful e.g. to discriminate between ancillary sections that are tied to
  4104. setup code to be discarded after use from ancillary sections that need
  4105. to stay resident without having to define multiple 'exception_code'
  4106. macros just for that purpose.
  4107. The optional FLAGS argument is a quoted string which may contain any
  4108. combination of the following characters:
  4109. 'a'
  4110. section is allocatable
  4111. 'd'
  4112. section is a GNU_MBIND section
  4113. 'e'
  4114. section is excluded from executable and shared library.
  4115. 'o'
  4116. section references a symbol defined in another section (the
  4117. linked-to section) in the same file.
  4118. 'w'
  4119. section is writable
  4120. 'x'
  4121. section is executable
  4122. 'M'
  4123. section is mergeable
  4124. 'S'
  4125. section contains zero terminated strings
  4126. 'G'
  4127. section is a member of a section group
  4128. 'T'
  4129. section is used for thread-local-storage
  4130. '?'
  4131. section is a member of the previously-current section's group, if
  4132. any
  4133. 'R'
  4134. retained section (apply SHF_GNU_RETAIN to prevent linker garbage
  4135. collection, GNU ELF extension)
  4136. '<number>'
  4137. a numeric value indicating the bits to be set in the ELF section
  4138. header's flags field. Note - if one or more of the alphabetic
  4139. characters described above is also included in the flags field,
  4140. their bit values will be ORed into the resulting value.
  4141. '<target specific>'
  4142. some targets extend this list with their own flag characters
  4143. Note - once a section's flags have been set they cannot be changed.
  4144. There are a few exceptions to this rule however. Processor and
  4145. application specific flags can be added to an already defined section.
  4146. The '.interp', '.strtab' and '.symtab' sections can have the allocate
  4147. flag ('a') set after they are initially defined, and the
  4148. '.note-GNU-stack' section may have the executable ('x') flag added.
  4149. Also note that the '.attach_to_group' directive can be used to add a
  4150. section to a group even if the section was not originally declared to be
  4151. part of that group.
  4152. The optional TYPE argument may contain one of the following
  4153. constants:
  4154. '@progbits'
  4155. section contains data
  4156. '@nobits'
  4157. section does not contain data (i.e., section only occupies space)
  4158. '@note'
  4159. section contains data which is used by things other than the
  4160. program
  4161. '@init_array'
  4162. section contains an array of pointers to init functions
  4163. '@fini_array'
  4164. section contains an array of pointers to finish functions
  4165. '@preinit_array'
  4166. section contains an array of pointers to pre-init functions
  4167. '@<number>'
  4168. a numeric value to be set as the ELF section header's type field.
  4169. '@<target specific>'
  4170. some targets extend this list with their own types
  4171. Many targets only support the first three section types. The type
  4172. may be enclosed in double quotes if necessary.
  4173. Note on targets where the '@' character is the start of a comment (eg
  4174. ARM) then another character is used instead. For example the ARM port
  4175. uses the '%' character.
  4176. Note - some sections, eg '.text' and '.data' are considered to be
  4177. special and have fixed types. Any attempt to declare them with a
  4178. different type will generate an error from the assembler.
  4179. If FLAGS contains the 'M' symbol then the TYPE argument must be
  4180. specified as well as an extra argument--ENTSIZE--like this:
  4181. .section NAME , "FLAGS"M, @TYPE, ENTSIZE
  4182. Sections with the 'M' flag but not 'S' flag must contain fixed size
  4183. constants, each ENTSIZE octets long. Sections with both 'M' and 'S'
  4184. must contain zero terminated strings where each character is ENTSIZE
  4185. bytes long. The linker may remove duplicates within sections with the
  4186. same name, same entity size and same flags. ENTSIZE must be an absolute
  4187. expression. For sections with both 'M' and 'S', a string which is a
  4188. suffix of a larger string is considered a duplicate. Thus '"def"' will
  4189. be merged with '"abcdef"'; A reference to the first '"def"' will be
  4190. changed to a reference to '"abcdef"+3'.
  4191. If FLAGS contains the 'o' flag, then the TYPE argument must be
  4192. present along with an additional field like this:
  4193. .section NAME,"FLAGS"o,@TYPE,SYMBOLNAME|SECTIONINDEX
  4194. The SYMBOLNAME field specifies the symbol name which the section
  4195. references. Alternatively a numeric SECTIONINDEX can be provided. This
  4196. is not generally a good idea as section indicies are rarely known at
  4197. assembly time, but the facility is provided for testing purposes. An
  4198. index of zero is allowed. It indicates that the linked-to section has
  4199. already been discarded.
  4200. Note: If both the M and O flags are present, then the fields for the
  4201. Merge flag should come first, like this:
  4202. .section NAME,"FLAGS"Mo,@TYPE,ENTSIZE,SYMBOLNAME
  4203. If FLAGS contains the 'G' symbol then the TYPE argument must be
  4204. present along with an additional field like this:
  4205. .section NAME , "FLAGS"G, @TYPE, GROUPNAME[, LINKAGE]
  4206. The GROUPNAME field specifies the name of the section group to which
  4207. this particular section belongs. The optional linkage field can
  4208. contain:
  4209. 'comdat'
  4210. indicates that only one copy of this section should be retained
  4211. '.gnu.linkonce'
  4212. an alias for comdat
  4213. Note: if both the M and G flags are present then the fields for the
  4214. Merge flag should come first, like this:
  4215. .section NAME , "FLAGS"MG, @TYPE, ENTSIZE, GROUPNAME[, LINKAGE]
  4216. If both 'o' flag and 'G' flag are present, then the SYMBOLNAME field
  4217. for 'o' comes first, like this:
  4218. .section NAME,"FLAGS"oG,@TYPE,SYMBOLNAME,GROUPNAME[,LINKAGE]
  4219. If FLAGS contains the '?' symbol then it may not also contain the 'G'
  4220. symbol and the GROUPNAME or LINKAGE fields should not be present.
  4221. Instead, '?' says to consider the section that's current before this
  4222. directive. If that section used 'G', then the new section will use 'G'
  4223. with those same GROUPNAME and LINKAGE fields implicitly. If not, then
  4224. the '?' symbol has no effect.
  4225. The optional UNIQUE,'<NUMBER>' argument must come last. It assigns
  4226. '<NUMBER>' as a unique section ID to distinguish different sections with
  4227. the same section name like these:
  4228. .section NAME,"FLAGS",@TYPE,UNIQUE,<NUMBER>
  4229. .section NAME,"FLAGS"G,@TYPE,GROUPNAME,[LINKAGE],UNIQUE,<NUMBER>
  4230. .section NAME,"FLAGS"MG,@TYPE,ENTSIZE,GROUPNAME[,LINKAGE],UNIQUE,<NUMBER>
  4231. The valid values of '<NUMBER>' are between 0 and 4294967295.
  4232. If no flags are specified, the default flags depend upon the section
  4233. name. If the section name is not recognized, the default will be for
  4234. the section to have none of the above flags: it will not be allocated in
  4235. memory, nor writable, nor executable. The section will contain data.
  4236. For ELF targets, the assembler supports another type of '.section'
  4237. directive for compatibility with the Solaris assembler:
  4238. .section "NAME"[, FLAGS...]
  4239. Note that the section name is quoted. There may be a sequence of
  4240. comma separated flags:
  4241. '#alloc'
  4242. section is allocatable
  4243. '#write'
  4244. section is writable
  4245. '#execinstr'
  4246. section is executable
  4247. '#exclude'
  4248. section is excluded from executable and shared library.
  4249. '#tls'
  4250. section is used for thread local storage
  4251. This directive replaces the current section and subsection. See the
  4252. contents of the gas testsuite directory 'gas/testsuite/gas/elf' for some
  4253. examples of how this directive and the other section stack directives
  4254. work.
  4255. 
  4256. File: as.info, Node: Set, Next: Short, Prev: Section, Up: Pseudo Ops
  4257. 7.86 '.set SYMBOL, EXPRESSION'
  4258. ==============================
  4259. Set the value of SYMBOL to EXPRESSION. This changes SYMBOL's value and
  4260. type to conform to EXPRESSION. If SYMBOL was flagged as external, it
  4261. remains flagged (*note Symbol Attributes::).
  4262. You may '.set' a symbol many times in the same assembly provided that
  4263. the values given to the symbol are constants. Values that are based on
  4264. expressions involving other symbols are allowed, but some targets may
  4265. restrict this to only being done once per assembly. This is because
  4266. those targets do not set the addresses of symbols at assembly time, but
  4267. rather delay the assignment until a final link is performed. This
  4268. allows the linker a chance to change the code in the files, changing the
  4269. location of, and the relative distance between, various different
  4270. symbols.
  4271. If you '.set' a global symbol, the value stored in the object file is
  4272. the last value stored into it.
  4273. On Z80 'set' is a real instruction, use '.set' or 'SYMBOL defl
  4274. EXPRESSION' instead.
  4275. 
  4276. File: as.info, Node: Short, Next: Single, Prev: Set, Up: Pseudo Ops
  4277. 7.87 '.short EXPRESSIONS'
  4278. =========================
  4279. '.short' is normally the same as '.word'. *Note '.word': Word.
  4280. In some configurations, however, '.short' and '.word' generate
  4281. numbers of different lengths. *Note Machine Dependencies::.
  4282. 
  4283. File: as.info, Node: Single, Next: Size, Prev: Short, Up: Pseudo Ops
  4284. 7.88 '.single FLONUMS'
  4285. ======================
  4286. This directive assembles zero or more flonums, separated by commas. It
  4287. has the same effect as '.float'. The exact kind of floating point
  4288. numbers emitted depends on how 'as' is configured. *Note Machine
  4289. Dependencies::.
  4290. 
  4291. File: as.info, Node: Size, Next: Skip, Prev: Single, Up: Pseudo Ops
  4292. 7.89 '.size'
  4293. ============
  4294. This directive is used to set the size associated with a symbol.
  4295. COFF Version
  4296. ------------
  4297. For COFF targets, the '.size' directive is only permitted inside
  4298. '.def'/'.endef' pairs. It is used like this:
  4299. .size EXPRESSION
  4300. ELF Version
  4301. -----------
  4302. For ELF targets, the '.size' directive is used like this:
  4303. .size NAME , EXPRESSION
  4304. This directive sets the size associated with a symbol NAME. The size
  4305. in bytes is computed from EXPRESSION which can make use of label
  4306. arithmetic. This directive is typically used to set the size of
  4307. function symbols.
  4308. 
  4309. File: as.info, Node: Skip, Next: Sleb128, Prev: Size, Up: Pseudo Ops
  4310. 7.90 '.skip SIZE [,FILL]'
  4311. =========================
  4312. This directive emits SIZE bytes, each of value FILL. Both SIZE and FILL
  4313. are absolute expressions. If the comma and FILL are omitted, FILL is
  4314. assumed to be zero. This is the same as '.space'.
  4315. 
  4316. File: as.info, Node: Sleb128, Next: Space, Prev: Skip, Up: Pseudo Ops
  4317. 7.91 '.sleb128 EXPRESSIONS'
  4318. ===========================
  4319. SLEB128 stands for "signed little endian base 128." This is a compact,
  4320. variable length representation of numbers used by the DWARF symbolic
  4321. debugging format. *Note '.uleb128': Uleb128.
  4322. 
  4323. File: as.info, Node: Space, Next: Stab, Prev: Sleb128, Up: Pseudo Ops
  4324. 7.92 '.space SIZE [,FILL]'
  4325. ==========================
  4326. This directive emits SIZE bytes, each of value FILL. Both SIZE and FILL
  4327. are absolute expressions. If the comma and FILL are omitted, FILL is
  4328. assumed to be zero. This is the same as '.skip'.
  4329. _Warning:_ '.space' has a completely different meaning for HPPA
  4330. targets; use '.block' as a substitute. See 'HP9000 Series 800
  4331. Assembly Language Reference Manual' (HP 92432-90001) for the
  4332. meaning of the '.space' directive. *Note HPPA Assembler
  4333. Directives: HPPA Directives, for a summary.
  4334. 
  4335. File: as.info, Node: Stab, Next: String, Prev: Space, Up: Pseudo Ops
  4336. 7.93 '.stabd, .stabn, .stabs'
  4337. =============================
  4338. There are three directives that begin '.stab'. All emit symbols (*note
  4339. Symbols::), for use by symbolic debuggers. The symbols are not entered
  4340. in the 'as' hash table: they cannot be referenced elsewhere in the
  4341. source file. Up to five fields are required:
  4342. STRING
  4343. This is the symbol's name. It may contain any character except
  4344. '\000', so is more general than ordinary symbol names. Some
  4345. debuggers used to code arbitrarily complex structures into symbol
  4346. names using this field.
  4347. TYPE
  4348. An absolute expression. The symbol's type is set to the low 8 bits
  4349. of this expression. Any bit pattern is permitted, but 'ld' and
  4350. debuggers choke on silly bit patterns.
  4351. OTHER
  4352. An absolute expression. The symbol's "other" attribute is set to
  4353. the low 8 bits of this expression.
  4354. DESC
  4355. An absolute expression. The symbol's descriptor is set to the low
  4356. 16 bits of this expression.
  4357. VALUE
  4358. An absolute expression which becomes the symbol's value.
  4359. If a warning is detected while reading a '.stabd', '.stabn', or
  4360. '.stabs' statement, the symbol has probably already been created; you
  4361. get a half-formed symbol in your object file. This is compatible with
  4362. earlier assemblers!
  4363. '.stabd TYPE , OTHER , DESC'
  4364. The "name" of the symbol generated is not even an empty string. It
  4365. is a null pointer, for compatibility. Older assemblers used a null
  4366. pointer so they didn't waste space in object files with empty
  4367. strings.
  4368. The symbol's value is set to the location counter, relocatably.
  4369. When your program is linked, the value of this symbol is the
  4370. address of the location counter when the '.stabd' was assembled.
  4371. '.stabn TYPE , OTHER , DESC , VALUE'
  4372. The name of the symbol is set to the empty string '""'.
  4373. '.stabs STRING , TYPE , OTHER , DESC , VALUE'
  4374. All five fields are specified.
  4375. 
  4376. File: as.info, Node: String, Next: Struct, Prev: Stab, Up: Pseudo Ops
  4377. 7.94 '.string' "STR", '.string8' "STR", '.string16'
  4378. ===================================================
  4379. "STR", '.string32' "STR", '.string64' "STR"
  4380. Copy the characters in STR to the object file. You may specify more
  4381. than one string to copy, separated by commas. Unless otherwise
  4382. specified for a particular machine, the assembler marks the end of each
  4383. string with a 0 byte. You can use any of the escape sequences described
  4384. in *note Strings: Strings.
  4385. The variants 'string16', 'string32' and 'string64' differ from the
  4386. 'string' pseudo opcode in that each 8-bit character from STR is copied
  4387. and expanded to 16, 32 or 64 bits respectively. The expanded characters
  4388. are stored in target endianness byte order.
  4389. Example:
  4390. .string32 "BYE"
  4391. expands to:
  4392. .string "B\0\0\0Y\0\0\0E\0\0\0" /* On little endian targets. */
  4393. .string "\0\0\0B\0\0\0Y\0\0\0E" /* On big endian targets. */
  4394. 
  4395. File: as.info, Node: Struct, Next: SubSection, Prev: String, Up: Pseudo Ops
  4396. 7.95 '.struct EXPRESSION'
  4397. =========================
  4398. Switch to the absolute section, and set the section offset to
  4399. EXPRESSION, which must be an absolute expression. You might use this as
  4400. follows:
  4401. .struct 0
  4402. field1:
  4403. .struct field1 + 4
  4404. field2:
  4405. .struct field2 + 4
  4406. field3:
  4407. This would define the symbol 'field1' to have the value 0, the symbol
  4408. 'field2' to have the value 4, and the symbol 'field3' to have the value
  4409. 8. Assembly would be left in the absolute section, and you would need
  4410. to use a '.section' directive of some sort to change to some other
  4411. section before further assembly.
  4412. 
  4413. File: as.info, Node: SubSection, Next: Symver, Prev: Struct, Up: Pseudo Ops
  4414. 7.96 '.subsection NAME'
  4415. =======================
  4416. This is one of the ELF section stack manipulation directives. The
  4417. others are '.section' (*note Section::), '.pushsection' (*note
  4418. PushSection::), '.popsection' (*note PopSection::), and '.previous'
  4419. (*note Previous::).
  4420. This directive replaces the current subsection with 'name'. The
  4421. current section is not changed. The replaced subsection is put onto the
  4422. section stack in place of the then current top of stack subsection.
  4423. 
  4424. File: as.info, Node: Symver, Next: Tag, Prev: SubSection, Up: Pseudo Ops
  4425. 7.97 '.symver'
  4426. ==============
  4427. Use the '.symver' directive to bind symbols to specific version nodes
  4428. within a source file. This is only supported on ELF platforms, and is
  4429. typically used when assembling files to be linked into a shared library.
  4430. There are cases where it may make sense to use this in objects to be
  4431. bound into an application itself so as to override a versioned symbol
  4432. from a shared library.
  4433. For ELF targets, the '.symver' directive can be used like this:
  4434. .symver NAME, NAME2@NODENAME[ ,VISIBILITY]
  4435. If the original symbol NAME is defined within the file being
  4436. assembled, the '.symver' directive effectively creates a symbol alias
  4437. with the name NAME2@NODENAME, and in fact the main reason that we just
  4438. don't try and create a regular alias is that the @ character isn't
  4439. permitted in symbol names. The NAME2 part of the name is the actual
  4440. name of the symbol by which it will be externally referenced. The name
  4441. NAME itself is merely a name of convenience that is used so that it is
  4442. possible to have definitions for multiple versions of a function within
  4443. a single source file, and so that the compiler can unambiguously know
  4444. which version of a function is being mentioned. The NODENAME portion of
  4445. the alias should be the name of a node specified in the version script
  4446. supplied to the linker when building a shared library. If you are
  4447. attempting to override a versioned symbol from a shared library, then
  4448. NODENAME should correspond to the nodename of the symbol you are trying
  4449. to override. The optional argument VISIBILITY updates the visibility of
  4450. the original symbol. The valid visibilities are 'local', 'hidden', and
  4451. 'remove'. The 'local' visibility makes the original symbol a local
  4452. symbol (*note Local::). The 'hidden' visibility sets the visibility of
  4453. the original symbol to 'hidden' (*note Hidden::). The 'remove'
  4454. visibility removes the original symbol from the symbol table. If
  4455. visibility isn't specified, the original symbol is unchanged.
  4456. If the symbol NAME is not defined within the file being assembled,
  4457. all references to NAME will be changed to NAME2@NODENAME. If no
  4458. reference to NAME is made, NAME2@NODENAME will be removed from the
  4459. symbol table.
  4460. Another usage of the '.symver' directive is:
  4461. .symver NAME, NAME2@@NODENAME
  4462. In this case, the symbol NAME must exist and be defined within the
  4463. file being assembled. It is similar to NAME2@NODENAME. The difference
  4464. is NAME2@@NODENAME will also be used to resolve references to NAME2 by
  4465. the linker.
  4466. The third usage of the '.symver' directive is:
  4467. .symver NAME, NAME2@@@NODENAME
  4468. When NAME is not defined within the file being assembled, it is
  4469. treated as NAME2@NODENAME. When NAME is defined within the file being
  4470. assembled, the symbol name, NAME, will be changed to NAME2@@NODENAME.
  4471. 
  4472. File: as.info, Node: Tag, Next: Text, Prev: Symver, Up: Pseudo Ops
  4473. 7.98 '.tag STRUCTNAME'
  4474. ======================
  4475. This directive is generated by compilers to include auxiliary debugging
  4476. information in the symbol table. It is only permitted inside
  4477. '.def'/'.endef' pairs. Tags are used to link structure definitions in
  4478. the symbol table with instances of those structures.
  4479. 
  4480. File: as.info, Node: Text, Next: Title, Prev: Tag, Up: Pseudo Ops
  4481. 7.99 '.text SUBSECTION'
  4482. =======================
  4483. Tells 'as' to assemble the following statements onto the end of the text
  4484. subsection numbered SUBSECTION, which is an absolute expression. If
  4485. SUBSECTION is omitted, subsection number zero is used.
  4486. 
  4487. File: as.info, Node: Title, Next: Tls_common, Prev: Text, Up: Pseudo Ops
  4488. 7.100 '.title "HEADING"'
  4489. ========================
  4490. Use HEADING as the title (second line, immediately after the source file
  4491. name and pagenumber) when generating assembly listings.
  4492. This directive affects subsequent pages, as well as the current page
  4493. if it appears within ten lines of the top of a page.
  4494. 
  4495. File: as.info, Node: Tls_common, Next: Type, Prev: Title, Up: Pseudo Ops
  4496. 7.101 '.tls_common SYMBOL, LENGTH[, ALIGNMENT]'
  4497. ===============================================
  4498. This directive behaves in the same way as the '.comm' directive (*note
  4499. Comm::) except that SYMBOL has type of STT_TLS instead of STT_OBJECT.
  4500. 
  4501. File: as.info, Node: Type, Next: Uleb128, Prev: Tls_common, Up: Pseudo Ops
  4502. 7.102 '.type'
  4503. =============
  4504. This directive is used to set the type of a symbol.
  4505. COFF Version
  4506. ------------
  4507. For COFF targets, this directive is permitted only within
  4508. '.def'/'.endef' pairs. It is used like this:
  4509. .type INT
  4510. This records the integer INT as the type attribute of a symbol table
  4511. entry.
  4512. ELF Version
  4513. -----------
  4514. For ELF targets, the '.type' directive is used like this:
  4515. .type NAME , TYPE DESCRIPTION
  4516. This sets the type of symbol NAME to be either a function symbol or
  4517. an object symbol. There are five different syntaxes supported for the
  4518. TYPE DESCRIPTION field, in order to provide compatibility with various
  4519. other assemblers.
  4520. Because some of the characters used in these syntaxes (such as '@'
  4521. and '#') are comment characters for some architectures, some of the
  4522. syntaxes below do not work on all architectures. The first variant will
  4523. be accepted by the GNU assembler on all architectures so that variant
  4524. should be used for maximum portability, if you do not need to assemble
  4525. your code with other assemblers.
  4526. The syntaxes supported are:
  4527. .type <name> STT_<TYPE_IN_UPPER_CASE>
  4528. .type <name>,#<type>
  4529. .type <name>,@<type>
  4530. .type <name>,%<type>
  4531. .type <name>,"<type>"
  4532. The types supported are:
  4533. 'STT_FUNC'
  4534. 'function'
  4535. Mark the symbol as being a function name.
  4536. 'STT_GNU_IFUNC'
  4537. 'gnu_indirect_function'
  4538. Mark the symbol as an indirect function when evaluated during reloc
  4539. processing. (This is only supported on assemblers targeting GNU
  4540. systems).
  4541. 'STT_OBJECT'
  4542. 'object'
  4543. Mark the symbol as being a data object.
  4544. 'STT_TLS'
  4545. 'tls_object'
  4546. Mark the symbol as being a thread-local data object.
  4547. 'STT_COMMON'
  4548. 'common'
  4549. Mark the symbol as being a common data object.
  4550. 'STT_NOTYPE'
  4551. 'notype'
  4552. Does not mark the symbol in any way. It is supported just for
  4553. completeness.
  4554. 'gnu_unique_object'
  4555. Marks the symbol as being a globally unique data object. The
  4556. dynamic linker will make sure that in the entire process there is
  4557. just one symbol with this name and type in use. (This is only
  4558. supported on assemblers targeting GNU systems).
  4559. Changing between incompatible types other than from/to STT_NOTYPE
  4560. will result in a diagnostic. An intermediate change to STT_NOTYPE will
  4561. silence this.
  4562. Note: Some targets support extra types in addition to those listed
  4563. above.
  4564. 
  4565. File: as.info, Node: Uleb128, Next: Val, Prev: Type, Up: Pseudo Ops
  4566. 7.103 '.uleb128 EXPRESSIONS'
  4567. ============================
  4568. ULEB128 stands for "unsigned little endian base 128." This is a
  4569. compact, variable length representation of numbers used by the DWARF
  4570. symbolic debugging format. *Note '.sleb128': Sleb128.
  4571. 
  4572. File: as.info, Node: Val, Next: Version, Prev: Uleb128, Up: Pseudo Ops
  4573. 7.104 '.val ADDR'
  4574. =================
  4575. This directive, permitted only within '.def'/'.endef' pairs, records the
  4576. address ADDR as the value attribute of a symbol table entry.
  4577. 
  4578. File: as.info, Node: Version, Next: VTableEntry, Prev: Val, Up: Pseudo Ops
  4579. 7.105 '.version "STRING"'
  4580. =========================
  4581. This directive creates a '.note' section and places into it an ELF
  4582. formatted note of type NT_VERSION. The note's name is set to 'string'.
  4583. 
  4584. File: as.info, Node: VTableEntry, Next: VTableInherit, Prev: Version, Up: Pseudo Ops
  4585. 7.106 '.vtable_entry TABLE, OFFSET'
  4586. ===================================
  4587. This directive finds or creates a symbol 'table' and creates a
  4588. 'VTABLE_ENTRY' relocation for it with an addend of 'offset'.
  4589. 
  4590. File: as.info, Node: VTableInherit, Next: Warning, Prev: VTableEntry, Up: Pseudo Ops
  4591. 7.107 '.vtable_inherit CHILD, PARENT'
  4592. =====================================
  4593. This directive finds the symbol 'child' and finds or creates the symbol
  4594. 'parent' and then creates a 'VTABLE_INHERIT' relocation for the parent
  4595. whose addend is the value of the child symbol. As a special case the
  4596. parent name of '0' is treated as referring to the '*ABS*' section.
  4597. 
  4598. File: as.info, Node: Warning, Next: Weak, Prev: VTableInherit, Up: Pseudo Ops
  4599. 7.108 '.warning "STRING"'
  4600. =========================
  4601. Similar to the directive '.error' (*note '.error "STRING"': Error.), but
  4602. just emits a warning.
  4603. 
  4604. File: as.info, Node: Weak, Next: Weakref, Prev: Warning, Up: Pseudo Ops
  4605. 7.109 '.weak NAMES'
  4606. ===================
  4607. This directive sets the weak attribute on the comma separated list of
  4608. symbol 'names'. If the symbols do not already exist, they will be
  4609. created.
  4610. On COFF targets other than PE, weak symbols are a GNU extension.
  4611. This directive sets the weak attribute on the comma separated list of
  4612. symbol 'names'. If the symbols do not already exist, they will be
  4613. created.
  4614. On the PE target, weak symbols are supported natively as weak
  4615. aliases. When a weak symbol is created that is not an alias, GAS
  4616. creates an alternate symbol to hold the default value.
  4617. 
  4618. File: as.info, Node: Weakref, Next: Word, Prev: Weak, Up: Pseudo Ops
  4619. 7.110 '.weakref ALIAS, TARGET'
  4620. ==============================
  4621. This directive creates an alias to the target symbol that enables the
  4622. symbol to be referenced with weak-symbol semantics, but without actually
  4623. making it weak. If direct references or definitions of the symbol are
  4624. present, then the symbol will not be weak, but if all references to it
  4625. are through weak references, the symbol will be marked as weak in the
  4626. symbol table.
  4627. The effect is equivalent to moving all references to the alias to a
  4628. separate assembly source file, renaming the alias to the symbol in it,
  4629. declaring the symbol as weak there, and running a reloadable link to
  4630. merge the object files resulting from the assembly of the new source
  4631. file and the old source file that had the references to the alias
  4632. removed.
  4633. The alias itself never makes to the symbol table, and is entirely
  4634. handled within the assembler.
  4635. 
  4636. File: as.info, Node: Word, Next: Zero, Prev: Weakref, Up: Pseudo Ops
  4637. 7.111 '.word EXPRESSIONS'
  4638. =========================
  4639. This directive expects zero or more EXPRESSIONS, of any section,
  4640. separated by commas.
  4641. The size of the number emitted, and its byte order, depend on what
  4642. target computer the assembly is for.
  4643. _Warning: Special Treatment to support Compilers_
  4644. Machines with a 32-bit address space, but that do less than 32-bit
  4645. addressing, require the following special treatment. If the machine of
  4646. interest to you does 32-bit addressing (or doesn't require it; *note
  4647. Machine Dependencies::), you can ignore this issue.
  4648. In order to assemble compiler output into something that works, 'as'
  4649. occasionally does strange things to '.word' directives. Directives of
  4650. the form '.word sym1-sym2' are often emitted by compilers as part of
  4651. jump tables. Therefore, when 'as' assembles a directive of the form
  4652. '.word sym1-sym2', and the difference between 'sym1' and 'sym2' does not
  4653. fit in 16 bits, 'as' creates a "secondary jump table", immediately
  4654. before the next label. This secondary jump table is preceded by a
  4655. short-jump to the first byte after the secondary table. This short-jump
  4656. prevents the flow of control from accidentally falling into the new
  4657. table. Inside the table is a long-jump to 'sym2'. The original '.word'
  4658. contains 'sym1' minus the address of the long-jump to 'sym2'.
  4659. If there were several occurrences of '.word sym1-sym2' before the
  4660. secondary jump table, all of them are adjusted. If there was a '.word
  4661. sym3-sym4', that also did not fit in sixteen bits, a long-jump to 'sym4'
  4662. is included in the secondary jump table, and the '.word' directives are
  4663. adjusted to contain 'sym3' minus the address of the long-jump to 'sym4';
  4664. and so on, for as many entries in the original jump table as necessary.
  4665. 
  4666. File: as.info, Node: Zero, Next: 2byte, Prev: Word, Up: Pseudo Ops
  4667. 7.112 '.zero SIZE'
  4668. ==================
  4669. This directive emits SIZE 0-valued bytes. SIZE must be an absolute
  4670. expression. This directive is actually an alias for the '.skip'
  4671. directive so it can take an optional second argument of the value to
  4672. store in the bytes instead of zero. Using '.zero' in this way would be
  4673. confusing however.
  4674. 
  4675. File: as.info, Node: 2byte, Next: 4byte, Prev: Zero, Up: Pseudo Ops
  4676. 7.113 '.2byte EXPRESSION [, EXPRESSION]*'
  4677. =========================================
  4678. This directive expects zero or more expressions, separated by commas.
  4679. If there are no expressions then the directive does nothing. Otherwise
  4680. each expression is evaluated in turn and placed in the next two bytes of
  4681. the current output section, using the endian model of the target. If an
  4682. expression will not fit in two bytes, a warning message is displayed and
  4683. the least significant two bytes of the expression's value are used. If
  4684. an expression cannot be evaluated at assembly time then relocations will
  4685. be generated in order to compute the value at link time.
  4686. This directive does not apply any alignment before or after inserting
  4687. the values. As a result of this, if relocations are generated, they may
  4688. be different from those used for inserting values with a guaranteed
  4689. alignment.
  4690. 
  4691. File: as.info, Node: 4byte, Next: 8byte, Prev: 2byte, Up: Pseudo Ops
  4692. 7.114 '.4byte EXPRESSION [, EXPRESSION]*'
  4693. =========================================
  4694. Like the '.2byte' directive, except that it inserts unaligned, four byte
  4695. long values into the output.
  4696. 
  4697. File: as.info, Node: 8byte, Next: Deprecated, Prev: 4byte, Up: Pseudo Ops
  4698. 7.115 '.8byte EXPRESSION [, EXPRESSION]*'
  4699. =========================================
  4700. Like the '.2byte' directive, except that it inserts unaligned, eight
  4701. byte long bignum values into the output.
  4702. 
  4703. File: as.info, Node: Deprecated, Prev: 8byte, Up: Pseudo Ops
  4704. 7.116 Deprecated Directives
  4705. ===========================
  4706. One day these directives won't work. They are included for
  4707. compatibility with older assemblers.
  4708. .abort
  4709. .line
  4710. 
  4711. File: as.info, Node: Object Attributes, Next: Machine Dependencies, Prev: Pseudo Ops, Up: Top
  4712. 8 Object Attributes
  4713. *******************
  4714. 'as' assembles source files written for a specific architecture into
  4715. object files for that architecture. But not all object files are alike.
  4716. Many architectures support incompatible variations. For instance,
  4717. floating point arguments might be passed in floating point registers if
  4718. the object file requires hardware floating point support--or floating
  4719. point arguments might be passed in integer registers if the object file
  4720. supports processors with no hardware floating point unit. Or, if two
  4721. objects are built for different generations of the same architecture,
  4722. the combination may require the newer generation at run-time.
  4723. This information is useful during and after linking. At link time,
  4724. 'ld' can warn about incompatible object files. After link time, tools
  4725. like 'gdb' can use it to process the linked file correctly.
  4726. Compatibility information is recorded as a series of object
  4727. attributes. Each attribute has a "vendor", "tag", and "value". The
  4728. vendor is a string, and indicates who sets the meaning of the tag. The
  4729. tag is an integer, and indicates what property the attribute describes.
  4730. The value may be a string or an integer, and indicates how the property
  4731. affects this object. Missing attributes are the same as attributes with
  4732. a zero value or empty string value.
  4733. Object attributes were developed as part of the ABI for the ARM
  4734. Architecture. The file format is documented in 'ELF for the ARM
  4735. Architecture'.
  4736. * Menu:
  4737. * GNU Object Attributes:: GNU Object Attributes
  4738. * Defining New Object Attributes:: Defining New Object Attributes
  4739. 
  4740. File: as.info, Node: GNU Object Attributes, Next: Defining New Object Attributes, Up: Object Attributes
  4741. 8.1 GNU Object Attributes
  4742. =========================
  4743. The '.gnu_attribute' directive records an object attribute with vendor
  4744. 'gnu'.
  4745. Except for 'Tag_compatibility', which has both an integer and a
  4746. string for its value, GNU attributes have a string value if the tag
  4747. number is odd and an integer value if the tag number is even. The
  4748. second bit ('TAG & 2' is set for architecture-independent attributes and
  4749. clear for architecture-dependent ones.
  4750. 8.1.1 Common GNU attributes
  4751. ---------------------------
  4752. These attributes are valid on all architectures.
  4753. Tag_compatibility (32)
  4754. The compatibility attribute takes an integer flag value and a
  4755. vendor name. If the flag value is 0, the file is compatible with
  4756. other toolchains. If it is 1, then the file is only compatible
  4757. with the named toolchain. If it is greater than 1, the file can
  4758. only be processed by other toolchains under some private
  4759. arrangement indicated by the flag value and the vendor name.
  4760. 8.1.2 M680x0 Attributes
  4761. -----------------------
  4762. Tag_GNU_M68K_ABI_FP (4)
  4763. The floating-point ABI used by this object file. The value will
  4764. be:
  4765. * 0 for files not affected by the floating-point ABI.
  4766. * 1 for files using double-precision hardware floating-point
  4767. ABI.
  4768. * 2 for files using the software floating-point ABI.
  4769. 8.1.3 MIPS Attributes
  4770. ---------------------
  4771. Tag_GNU_MIPS_ABI_FP (4)
  4772. The floating-point ABI used by this object file. The value will
  4773. be:
  4774. * 0 for files not affected by the floating-point ABI.
  4775. * 1 for files using the hardware floating-point ABI with a
  4776. standard double-precision FPU.
  4777. * 2 for files using the hardware floating-point ABI with a
  4778. single-precision FPU.
  4779. * 3 for files using the software floating-point ABI.
  4780. * 4 for files using the deprecated hardware floating-point ABI
  4781. which used 64-bit floating-point registers, 32-bit
  4782. general-purpose registers and increased the number of
  4783. callee-saved floating-point registers.
  4784. * 5 for files using the hardware floating-point ABI with a
  4785. double-precision FPU with either 32-bit or 64-bit
  4786. floating-point registers and 32-bit general-purpose registers.
  4787. * 6 for files using the hardware floating-point ABI with 64-bit
  4788. floating-point registers and 32-bit general-purpose registers.
  4789. * 7 for files using the hardware floating-point ABI with 64-bit
  4790. floating-point registers, 32-bit general-purpose registers and
  4791. a rule that forbids the direct use of odd-numbered
  4792. single-precision floating-point registers.
  4793. 8.1.4 PowerPC Attributes
  4794. ------------------------
  4795. Tag_GNU_Power_ABI_FP (4)
  4796. The floating-point ABI used by this object file. The value will
  4797. be:
  4798. * 0 for files not affected by the floating-point ABI.
  4799. * 1 for files using double-precision hardware floating-point
  4800. ABI.
  4801. * 2 for files using the software floating-point ABI.
  4802. * 3 for files using single-precision hardware floating-point
  4803. ABI.
  4804. Tag_GNU_Power_ABI_Vector (8)
  4805. The vector ABI used by this object file. The value will be:
  4806. * 0 for files not affected by the vector ABI.
  4807. * 1 for files using general purpose registers to pass vectors.
  4808. * 2 for files using AltiVec registers to pass vectors.
  4809. * 3 for files using SPE registers to pass vectors.
  4810. 8.1.5 IBM z Systems Attributes
  4811. ------------------------------
  4812. Tag_GNU_S390_ABI_Vector (8)
  4813. The vector ABI used by this object file. The value will be:
  4814. * 0 for files not affected by the vector ABI.
  4815. * 1 for files using software vector ABI.
  4816. * 2 for files using hardware vector ABI.
  4817. 8.1.6 MSP430 Attributes
  4818. -----------------------
  4819. Tag_GNU_MSP430_Data_Region (4)
  4820. The data region used by this object file. The value will be:
  4821. * 0 for files not using the large memory model.
  4822. * 1 for files which have been compiled with the condition that
  4823. all data is in the lower memory region, i.e. below address
  4824. 0x10000.
  4825. * 2 for files which allow data to be placed in the full 20-bit
  4826. memory range.
  4827. 
  4828. File: as.info, Node: Defining New Object Attributes, Prev: GNU Object Attributes, Up: Object Attributes
  4829. 8.2 Defining New Object Attributes
  4830. ==================================
  4831. If you want to define a new GNU object attribute, here are the places
  4832. you will need to modify. New attributes should be discussed on the
  4833. 'binutils' mailing list.
  4834. * This manual, which is the official register of attributes.
  4835. * The header for your architecture 'include/elf', to define the tag.
  4836. * The 'bfd' support file for your architecture, to merge the
  4837. attribute and issue any appropriate link warnings.
  4838. * Test cases in 'ld/testsuite' for merging and link warnings.
  4839. * 'binutils/readelf.c' to display your attribute.
  4840. * GCC, if you want the compiler to mark the attribute automatically.
  4841. 
  4842. File: as.info, Node: Machine Dependencies, Next: Reporting Bugs, Prev: Object Attributes, Up: Top
  4843. 9 Machine Dependent Features
  4844. ****************************
  4845. The machine instruction sets are (almost by definition) different on
  4846. each machine where 'as' runs. Floating point representations vary as
  4847. well, and 'as' often supports a few additional directives or
  4848. command-line options for compatibility with other assemblers on a
  4849. particular platform. Finally, some versions of 'as' support special
  4850. pseudo-instructions for branch optimization.
  4851. This chapter discusses most of these differences, though it does not
  4852. include details on any machine's instruction set. For details on that
  4853. subject, see the hardware manufacturer's manual.
  4854. * Menu:
  4855. * AArch64-Dependent:: AArch64 Dependent Features
  4856. * Alpha-Dependent:: Alpha Dependent Features
  4857. * ARC-Dependent:: ARC Dependent Features
  4858. * ARM-Dependent:: ARM Dependent Features
  4859. * AVR-Dependent:: AVR Dependent Features
  4860. * Blackfin-Dependent:: Blackfin Dependent Features
  4861. * BPF-Dependent:: BPF Dependent Features
  4862. * CR16-Dependent:: CR16 Dependent Features
  4863. * CRIS-Dependent:: CRIS Dependent Features
  4864. * C-SKY-Dependent:: C-SKY Dependent Features
  4865. * D10V-Dependent:: D10V Dependent Features
  4866. * D30V-Dependent:: D30V Dependent Features
  4867. * Epiphany-Dependent:: EPIPHANY Dependent Features
  4868. * H8/300-Dependent:: Renesas H8/300 Dependent Features
  4869. * HPPA-Dependent:: HPPA Dependent Features
  4870. * i386-Dependent:: Intel 80386 and AMD x86-64 Dependent Features
  4871. * IA-64-Dependent:: Intel IA-64 Dependent Features
  4872. * IP2K-Dependent:: IP2K Dependent Features
  4873. * LM32-Dependent:: LM32 Dependent Features
  4874. * M32C-Dependent:: M32C Dependent Features
  4875. * M32R-Dependent:: M32R Dependent Features
  4876. * M68K-Dependent:: M680x0 Dependent Features
  4877. * M68HC11-Dependent:: M68HC11 and 68HC12 Dependent Features
  4878. * S12Z-Dependent:: S12Z Dependent Features
  4879. * Meta-Dependent :: Meta Dependent Features
  4880. * MicroBlaze-Dependent:: MICROBLAZE Dependent Features
  4881. * MIPS-Dependent:: MIPS Dependent Features
  4882. * MMIX-Dependent:: MMIX Dependent Features
  4883. * MSP430-Dependent:: MSP430 Dependent Features
  4884. * NDS32-Dependent:: Andes NDS32 Dependent Features
  4885. * NiosII-Dependent:: Altera Nios II Dependent Features
  4886. * NS32K-Dependent:: NS32K Dependent Features
  4887. * OpenRISC-Dependent:: OpenRISC 1000 Features
  4888. * PDP-11-Dependent:: PDP-11 Dependent Features
  4889. * PJ-Dependent:: picoJava Dependent Features
  4890. * PPC-Dependent:: PowerPC Dependent Features
  4891. * PRU-Dependent:: PRU Dependent Features
  4892. * RISC-V-Dependent:: RISC-V Dependent Features
  4893. * RL78-Dependent:: RL78 Dependent Features
  4894. * RX-Dependent:: RX Dependent Features
  4895. * S/390-Dependent:: IBM S/390 Dependent Features
  4896. * SCORE-Dependent:: SCORE Dependent Features
  4897. * SH-Dependent:: Renesas / SuperH SH Dependent Features
  4898. * Sparc-Dependent:: SPARC Dependent Features
  4899. * TIC54X-Dependent:: TI TMS320C54x Dependent Features
  4900. * TIC6X-Dependent :: TI TMS320C6x Dependent Features
  4901. * TILE-Gx-Dependent :: Tilera TILE-Gx Dependent Features
  4902. * TILEPro-Dependent :: Tilera TILEPro Dependent Features
  4903. * V850-Dependent:: V850 Dependent Features
  4904. * Vax-Dependent:: VAX Dependent Features
  4905. * Visium-Dependent:: Visium Dependent Features
  4906. * WebAssembly-Dependent:: WebAssembly Dependent Features
  4907. * XGATE-Dependent:: XGATE Dependent Features
  4908. * XSTORMY16-Dependent:: XStormy16 Dependent Features
  4909. * Xtensa-Dependent:: Xtensa Dependent Features
  4910. * Z80-Dependent:: Z80 Dependent Features
  4911. * Z8000-Dependent:: Z8000 Dependent Features
  4912. 
  4913. File: as.info, Node: AArch64-Dependent, Next: Alpha-Dependent, Up: Machine Dependencies
  4914. 9.1 AArch64 Dependent Features
  4915. ==============================
  4916. * Menu:
  4917. * AArch64 Options:: Options
  4918. * AArch64 Extensions:: Extensions
  4919. * AArch64 Syntax:: Syntax
  4920. * AArch64 Floating Point:: Floating Point
  4921. * AArch64 Directives:: AArch64 Machine Directives
  4922. * AArch64 Opcodes:: Opcodes
  4923. * AArch64 Mapping Symbols:: Mapping Symbols
  4924. 
  4925. File: as.info, Node: AArch64 Options, Next: AArch64 Extensions, Up: AArch64-Dependent
  4926. 9.1.1 Options
  4927. -------------
  4928. '-EB'
  4929. This option specifies that the output generated by the assembler
  4930. should be marked as being encoded for a big-endian processor.
  4931. '-EL'
  4932. This option specifies that the output generated by the assembler
  4933. should be marked as being encoded for a little-endian processor.
  4934. '-mabi=ABI'
  4935. Specify which ABI the source code uses. The recognized arguments
  4936. are: 'ilp32' and 'lp64', which decides the generated object file in
  4937. ELF32 and ELF64 format respectively. The default is 'lp64'.
  4938. '-mcpu=PROCESSOR[+EXTENSION...]'
  4939. This option specifies the target processor. The assembler will
  4940. issue an error message if an attempt is made to assemble an
  4941. instruction which will not execute on the target processor. The
  4942. following processor names are recognized: 'cortex-a34',
  4943. 'cortex-a35', 'cortex-a53', 'cortex-a55', 'cortex-a57',
  4944. 'cortex-a65', 'cortex-a65ae', 'cortex-a72', 'cortex-a73',
  4945. 'cortex-a75', 'cortex-a76', 'cortex-a76ae', 'cortex-a77',
  4946. 'cortex-a78', 'cortex-a78ae', 'cortex-a78c', 'cortex-a510',
  4947. 'cortex-a710', 'ares', 'exynos-m1', 'falkor', 'neoverse-n1',
  4948. 'neoverse-n2', 'neoverse-e1', 'neoverse-v1', 'qdf24xx', 'saphira',
  4949. 'thunderx', 'vulcan', 'xgene1' 'xgene2', 'cortex-r82', 'cortex-x1',
  4950. and 'cortex-x2'. The special name 'all' may be used to allow the
  4951. assembler to accept instructions valid for any supported processor,
  4952. including all optional extensions.
  4953. In addition to the basic instruction set, the assembler can be told
  4954. to accept, or restrict, various extension mnemonics that extend the
  4955. processor. *Note AArch64 Extensions::.
  4956. If some implementations of a particular processor can have an
  4957. extension, then then those extensions are automatically enabled.
  4958. Consequently, you will not normally have to specify any additional
  4959. extensions.
  4960. '-march=ARCHITECTURE[+EXTENSION...]'
  4961. This option specifies the target architecture. The assembler will
  4962. issue an error message if an attempt is made to assemble an
  4963. instruction which will not execute on the target architecture. The
  4964. following architecture names are recognized: 'armv8-a',
  4965. 'armv8.1-a', 'armv8.2-a', 'armv8.3-a', 'armv8.4-a' 'armv8.5-a',
  4966. 'armv8.6-a', 'armv8.7-a', 'armv8.8-a', 'armv8-r', 'armv9-a',
  4967. 'armv9.1-a', 'armv9.2-a', and 'armv9.3-a'.
  4968. If both '-mcpu' and '-march' are specified, the assembler will use
  4969. the setting for '-mcpu'. If neither are specified, the assembler
  4970. will default to '-mcpu=all'.
  4971. The architecture option can be extended with the same instruction
  4972. set extension options as the '-mcpu' option. Unlike '-mcpu',
  4973. extensions are not always enabled by default, *Note AArch64
  4974. Extensions::.
  4975. '-mverbose-error'
  4976. This option enables verbose error messages for AArch64 gas. This
  4977. option is enabled by default.
  4978. '-mno-verbose-error'
  4979. This option disables verbose error messages in AArch64 gas.
  4980. 
  4981. File: as.info, Node: AArch64 Extensions, Next: AArch64 Syntax, Prev: AArch64 Options, Up: AArch64-Dependent
  4982. 9.1.2 Architecture Extensions
  4983. -----------------------------
  4984. The table below lists the permitted architecture extensions that are
  4985. supported by the assembler and the conditions under which they are
  4986. automatically enabled.
  4987. Multiple extensions may be specified, separated by a '+'. Extension
  4988. mnemonics may also be removed from those the assembler accepts. This is
  4989. done by prepending 'no' to the option that adds the extension.
  4990. Extensions that are removed must be listed after all extensions that
  4991. have been added.
  4992. Enabling an extension that requires other extensions will
  4993. automatically cause those extensions to be enabled. Similarly,
  4994. disabling an extension that is required by other extensions will
  4995. automatically cause those extensions to be disabled.
  4996. Extension Minimum Enabled by Description
  4997. Architecture default
  4998. ----------------------------------------------------------------------------
  4999. 'aes' ARMv8-A No Enable the AES cryptographic
  5000. extensions. This implies 'fp' and
  5001. 'simd'.
  5002. 'bf16' ARMv8.2-A ARMv8.6-A Enable BFloat16 extension.
  5003. or later
  5004. 'compnum' ARMv8.2-A ARMv8.3-A Enable the complex number SIMD
  5005. or later extensions. This implies 'fp16' and
  5006. 'simd'.
  5007. 'crc' ARMv8-A ARMv8.1-A Enable CRC instructions.
  5008. or later
  5009. 'crypto' ARMv8-A No Enable cryptographic extensions.
  5010. This implies 'fp', 'simd', 'aes' and
  5011. 'sha2'.
  5012. 'dotprod' ARMv8.2-A ARMv8.4-A Enable the Dot Product extension.
  5013. or later This implies 'simd'.
  5014. 'f32mm' ARMv8.2-A No Enable F32 Matrix Multiply extension.
  5015. This implies 'sve'.
  5016. 'f64mm' ARMv8.2-A No Enable F64 Matrix Multiply extension.
  5017. This implies 'sve'.
  5018. 'flagm' ARMv8-A ARMv8.4-A Enable Flag Manipulation
  5019. or later instructions.
  5020. 'fp16fml' ARMv8.2-A ARMv8.4-A Enable ARMv8.2 16-bit floating-point
  5021. or later multiplication variant support. This
  5022. implies 'fp' and 'fp16'.
  5023. 'fp16' ARMv8.2-A ARMv8.2-A Enable ARMv8.2 16-bit floating-point
  5024. or later support. This implies 'fp'.
  5025. 'fp' ARMv8-A ARMv8-A or Enable floating-point extensions.
  5026. later
  5027. 'hbc' Armv8.8-A Enable Armv8.8-A hinted conditional
  5028. or later branch instructions
  5029. 'i8mm' ARMv8.2-A ARMv8.6-A Enable Int8 Matrix Multiply
  5030. or later extension.
  5031. 'lor' ARMv8-A ARMv8.1-A Enable Limited Ordering Regions
  5032. or later extensions.
  5033. 'ls64' ARMv8.6-A ARMv8.7-A Enable 64 Byte Loads/Stores.
  5034. or later
  5035. 'lse' ARMv8-A ARMv8.1-A Enable Large System extensions.
  5036. or later
  5037. 'memtag' ARMv8.5-A No Enable ARMv8.5-A Memory Tagging
  5038. Extensions.
  5039. 'mops' Armv8.8-A Enable Armv8.8-A memcpy and memset
  5040. or later acceleration instructions
  5041. 'pan' ARMv8-A ARMv8.1-A Enable Privileged Access Never
  5042. or later support.
  5043. 'pauth' ARMv8-A No Enable Pointer Authentication.
  5044. 'predres' ARMv8-A ARMv8.5-A Enable the Execution and Data and
  5045. or later Prediction instructions.
  5046. 'profile' ARMv8.2-A No Enable statistical profiling
  5047. extensions.
  5048. 'ras' ARMv8-A ARMv8.2-A Enable the Reliability, Availability
  5049. or later and Serviceability extension.
  5050. 'rcpc' ARMv8.2-A ARMv8.3-A Enable the weak release consistency
  5051. or later extension.
  5052. 'rdma' ARMv8-A ARMv8.1-A Enable ARMv8.1 Advanced SIMD
  5053. or later extensions. This implies 'simd'.
  5054. 'rng' ARMv8.5-A No Enable ARMv8.5-A random number
  5055. instructions.
  5056. 'sb' ARMv8-A ARMv8.5-A Enable the speculation barrier
  5057. or later instruction sb.
  5058. 'sha2' ARMv8-A No Enable the SHA2 cryptographic
  5059. extensions. This implies 'fp' and
  5060. 'simd'.
  5061. 'sha3' ARMv8.2-A No Enable the ARMv8.2-A SHA2 and SHA3
  5062. cryptographic extensions. This
  5063. implies 'fp', 'simd' and 'sha2'.
  5064. 'simd' ARMv8-A ARMv8-A or Enable Advanced SIMD extensions.
  5065. later This implies 'fp'.
  5066. 'sm4' ARMv8.2-A No Enable the ARMv8.2-A SM3 and SM4
  5067. cryptographic extensions. This
  5068. implies 'fp' and 'simd'.
  5069. 'sme' Armv9-A No Enable SME Extension.
  5070. 'sme-f64' Armv9-A No Enable SME F64 Extension.
  5071. 'sme-i64' Armv9-A No Enable SME I64 Extension.
  5072. 'ssbs' ARMv8-A ARMv8.5-A Enable Speculative Store Bypassing
  5073. or later Safe state read and write.
  5074. 'sve' ARMv8.2-A Armv9-A or Enable the Scalable Vector
  5075. later Extensions. This implies 'fp16',
  5076. 'simd' and 'compnum'.
  5077. 'sve2' ARMv8-A Armv9-A or Enable the SVE2 Extension. This
  5078. later implies 'sve'.
  5079. 'sve2-aes'ARMv8-A No Enable SVE2 AES Extension. This also
  5080. enables the .Q->.B form of the
  5081. 'pmullt' and 'pmullb' instructions.
  5082. This implies 'aes' and 'sve2'.
  5083. 'sve2-bitperm'ARMv8-A No Enable SVE2 BITPERM Extension.
  5084. 'sve2-sha3'ARMv8-A No Enable SVE2 SHA3 Extension. This
  5085. implies 'sha3' and 'sve2'.
  5086. 'sve2-sm4'ARMv8-A No Enable SVE2 SM4 Extension. This
  5087. implies 'sm4' and 'sve2'.
  5088. 'tme' ARMv8-A No Enable Transactional Memory
  5089. Extensions.
  5090. 
  5091. File: as.info, Node: AArch64 Syntax, Next: AArch64 Floating Point, Prev: AArch64 Extensions, Up: AArch64-Dependent
  5092. 9.1.3 Syntax
  5093. ------------
  5094. * Menu:
  5095. * AArch64-Chars:: Special Characters
  5096. * AArch64-Regs:: Register Names
  5097. * AArch64-Relocations:: Relocations
  5098. 
  5099. File: as.info, Node: AArch64-Chars, Next: AArch64-Regs, Up: AArch64 Syntax
  5100. 9.1.3.1 Special Characters
  5101. ..........................
  5102. The presence of a '//' on a line indicates the start of a comment that
  5103. extends to the end of the current line. If a '#' appears as the first
  5104. character of a line, the whole line is treated as a comment.
  5105. The ';' character can be used instead of a newline to separate
  5106. statements.
  5107. The '#' can be optionally used to indicate immediate operands.
  5108. 
  5109. File: as.info, Node: AArch64-Regs, Next: AArch64-Relocations, Prev: AArch64-Chars, Up: AArch64 Syntax
  5110. 9.1.3.2 Register Names
  5111. ......................
  5112. Please refer to the section '4.4 Register Names' of 'ARMv8 Instruction
  5113. Set Overview', which is available at <http://infocenter.arm.com>.
  5114. 
  5115. File: as.info, Node: AArch64-Relocations, Prev: AArch64-Regs, Up: AArch64 Syntax
  5116. 9.1.3.3 Relocations
  5117. ...................
  5118. Relocations for 'MOVZ' and 'MOVK' instructions can be generated by
  5119. prefixing the label with '#:abs_g2:' etc. For example to load the
  5120. 48-bit absolute address of FOO into x0:
  5121. movz x0, #:abs_g2:foo // bits 32-47, overflow check
  5122. movk x0, #:abs_g1_nc:foo // bits 16-31, no overflow check
  5123. movk x0, #:abs_g0_nc:foo // bits 0-15, no overflow check
  5124. Relocations for 'ADRP', and 'ADD', 'LDR' or 'STR' instructions can be
  5125. generated by prefixing the label with ':pg_hi21:' and '#:lo12:'
  5126. respectively.
  5127. For example to use 33-bit (+/-4GB) pc-relative addressing to load the
  5128. address of FOO into x0:
  5129. adrp x0, :pg_hi21:foo
  5130. add x0, x0, #:lo12:foo
  5131. Or to load the value of FOO into x0:
  5132. adrp x0, :pg_hi21:foo
  5133. ldr x0, [x0, #:lo12:foo]
  5134. Note that ':pg_hi21:' is optional.
  5135. adrp x0, foo
  5136. is equivalent to
  5137. adrp x0, :pg_hi21:foo
  5138. 
  5139. File: as.info, Node: AArch64 Floating Point, Next: AArch64 Directives, Prev: AArch64 Syntax, Up: AArch64-Dependent
  5140. 9.1.4 Floating Point
  5141. --------------------
  5142. The AArch64 architecture uses IEEE floating-point numbers.
  5143. 
  5144. File: as.info, Node: AArch64 Directives, Next: AArch64 Opcodes, Prev: AArch64 Floating Point, Up: AArch64-Dependent
  5145. 9.1.5 AArch64 Machine Directives
  5146. --------------------------------
  5147. '.arch NAME'
  5148. Select the target architecture. Valid values for NAME are the same
  5149. as for the '-march' command-line option.
  5150. Specifying '.arch' clears any previously selected architecture
  5151. extensions.
  5152. '.arch_extension NAME'
  5153. Add or remove an architecture extension to the target architecture.
  5154. Valid values for NAME are the same as those accepted as
  5155. architectural extensions by the '-mcpu' command-line option.
  5156. '.arch_extension' may be used multiple times to add or remove
  5157. extensions incrementally to the architecture being compiled for.
  5158. '.bss'
  5159. This directive switches to the '.bss' section.
  5160. '.cpu NAME'
  5161. Set the target processor. Valid values for NAME are the same as
  5162. those accepted by the '-mcpu=' command-line option.
  5163. '.dword EXPRESSIONS'
  5164. The '.dword' directive produces 64 bit values.
  5165. '.even'
  5166. The '.even' directive aligns the output on the next even byte
  5167. boundary.
  5168. '.float16 VALUE [,...,VALUE_N]'
  5169. Place the half precision floating point representation of one or
  5170. more floating-point values into the current section. The format
  5171. used to encode the floating point values is always the IEEE
  5172. 754-2008 half precision floating point format.
  5173. '.inst EXPRESSIONS'
  5174. Inserts the expressions into the output as if they were
  5175. instructions, rather than data.
  5176. '.ltorg'
  5177. This directive causes the current contents of the literal pool to
  5178. be dumped into the current section (which is assumed to be the
  5179. .text section) at the current location (aligned to a word
  5180. boundary). GAS maintains a separate literal pool for each section
  5181. and each sub-section. The '.ltorg' directive will only affect the
  5182. literal pool of the current section and sub-section. At the end of
  5183. assembly all remaining, un-empty literal pools will automatically
  5184. be dumped.
  5185. Note - older versions of GAS would dump the current literal pool
  5186. any time a section change occurred. This is no longer done, since
  5187. it prevents accurate control of the placement of literal pools.
  5188. '.pool'
  5189. This is a synonym for .ltorg.
  5190. 'NAME .req REGISTER NAME'
  5191. This creates an alias for REGISTER NAME called NAME. For example:
  5192. foo .req w0
  5193. ip0, ip1, lr and fp are automatically defined to alias to X16, X17,
  5194. X30 and X29 respectively.
  5195. '.tlsdescadd'
  5196. Emits a TLSDESC_ADD reloc on the next instruction.
  5197. '.tlsdesccall'
  5198. Emits a TLSDESC_CALL reloc on the next instruction.
  5199. '.tlsdescldr'
  5200. Emits a TLSDESC_LDR reloc on the next instruction.
  5201. '.unreq ALIAS-NAME'
  5202. This undefines a register alias which was previously defined using
  5203. the 'req' directive. For example:
  5204. foo .req w0
  5205. .unreq foo
  5206. An error occurs if the name is undefined. Note - this pseudo op
  5207. can be used to delete builtin in register name aliases (eg 'w0').
  5208. This should only be done if it is really necessary.
  5209. '.variant_pcs SYMBOL'
  5210. This directive marks SYMBOL referencing a function that may follow
  5211. a variant procedure call standard with different register usage
  5212. convention from the base procedure call standard.
  5213. '.xword EXPRESSIONS'
  5214. The '.xword' directive produces 64 bit values. This is the same as
  5215. the '.dword' directive.
  5216. '.cfi_b_key_frame'
  5217. The '.cfi_b_key_frame' directive inserts a 'B' character into the
  5218. CIE corresponding to the current frame's FDE, meaning that its
  5219. return address has been signed with the B-key. If two frames are
  5220. signed with differing keys then they will not share the same CIE.
  5221. This information is intended to be used by the stack unwinder in
  5222. order to properly authenticate return addresses.
  5223. 
  5224. File: as.info, Node: AArch64 Opcodes, Next: AArch64 Mapping Symbols, Prev: AArch64 Directives, Up: AArch64-Dependent
  5225. 9.1.6 Opcodes
  5226. -------------
  5227. GAS implements all the standard AArch64 opcodes. It also implements
  5228. several pseudo opcodes, including several synthetic load instructions.
  5229. 'LDR ='
  5230. ldr <register> , =<expression>
  5231. The constant expression will be placed into the nearest literal
  5232. pool (if it not already there) and a PC-relative LDR instruction
  5233. will be generated.
  5234. For more information on the AArch64 instruction set and assembly
  5235. language notation, see 'ARMv8 Instruction Set Overview' available at
  5236. <http://infocenter.arm.com>.
  5237. 
  5238. File: as.info, Node: AArch64 Mapping Symbols, Prev: AArch64 Opcodes, Up: AArch64-Dependent
  5239. 9.1.7 Mapping Symbols
  5240. ---------------------
  5241. The AArch64 ELF specification requires that special symbols be inserted
  5242. into object files to mark certain features:
  5243. '$x'
  5244. At the start of a region of code containing AArch64 instructions.
  5245. '$d'
  5246. At the start of a region of data.
  5247. 
  5248. File: as.info, Node: Alpha-Dependent, Next: ARC-Dependent, Prev: AArch64-Dependent, Up: Machine Dependencies
  5249. 9.2 Alpha Dependent Features
  5250. ============================
  5251. * Menu:
  5252. * Alpha Notes:: Notes
  5253. * Alpha Options:: Options
  5254. * Alpha Syntax:: Syntax
  5255. * Alpha Floating Point:: Floating Point
  5256. * Alpha Directives:: Alpha Machine Directives
  5257. * Alpha Opcodes:: Opcodes
  5258. 
  5259. File: as.info, Node: Alpha Notes, Next: Alpha Options, Up: Alpha-Dependent
  5260. 9.2.1 Notes
  5261. -----------
  5262. The documentation here is primarily for the ELF object format. 'as'
  5263. also supports the ECOFF and EVAX formats, but features specific to these
  5264. formats are not yet documented.
  5265. 
  5266. File: as.info, Node: Alpha Options, Next: Alpha Syntax, Prev: Alpha Notes, Up: Alpha-Dependent
  5267. 9.2.2 Options
  5268. -------------
  5269. '-mCPU'
  5270. This option specifies the target processor. If an attempt is made
  5271. to assemble an instruction which will not execute on the target
  5272. processor, the assembler may either expand the instruction as a
  5273. macro or issue an error message. This option is equivalent to the
  5274. '.arch' directive.
  5275. The following processor names are recognized: '21064', '21064a',
  5276. '21066', '21068', '21164', '21164a', '21164pc', '21264', '21264a',
  5277. '21264b', 'ev4', 'ev5', 'lca45', 'ev5', 'ev56', 'pca56', 'ev6',
  5278. 'ev67', 'ev68'. The special name 'all' may be used to allow the
  5279. assembler to accept instructions valid for any Alpha processor.
  5280. In order to support existing practice in OSF/1 with respect to
  5281. '.arch', and existing practice within 'MILO' (the Linux ARC
  5282. bootloader), the numbered processor names (e.g. 21064) enable the
  5283. processor-specific PALcode instructions, while the "electro-vlasic"
  5284. names (e.g. 'ev4') do not.
  5285. '-mdebug'
  5286. '-no-mdebug'
  5287. Enables or disables the generation of '.mdebug' encapsulation for
  5288. stabs directives and procedure descriptors. The default is to
  5289. automatically enable '.mdebug' when the first stabs directive is
  5290. seen.
  5291. '-relax'
  5292. This option forces all relocations to be put into the object file,
  5293. instead of saving space and resolving some relocations at assembly
  5294. time. Note that this option does not propagate all symbol
  5295. arithmetic into the object file, because not all symbol arithmetic
  5296. can be represented. However, the option can still be useful in
  5297. specific applications.
  5298. '-replace'
  5299. '-noreplace'
  5300. Enables or disables the optimization of procedure calls, both at
  5301. assemblage and at link time. These options are only available for
  5302. VMS targets and '-replace' is the default. See section 1.4.1 of
  5303. the OpenVMS Linker Utility Manual.
  5304. '-g'
  5305. This option is used when the compiler generates debug information.
  5306. When 'gcc' is using 'mips-tfile' to generate debug information for
  5307. ECOFF, local labels must be passed through to the object file.
  5308. Otherwise this option has no effect.
  5309. '-GSIZE'
  5310. A local common symbol larger than SIZE is placed in '.bss', while
  5311. smaller symbols are placed in '.sbss'.
  5312. '-F'
  5313. '-32addr'
  5314. These options are ignored for backward compatibility.
  5315. 
  5316. File: as.info, Node: Alpha Syntax, Next: Alpha Floating Point, Prev: Alpha Options, Up: Alpha-Dependent
  5317. 9.2.3 Syntax
  5318. ------------
  5319. The assembler syntax closely follow the Alpha Reference Manual;
  5320. assembler directives and general syntax closely follow the OSF/1 and
  5321. OpenVMS syntax, with a few differences for ELF.
  5322. * Menu:
  5323. * Alpha-Chars:: Special Characters
  5324. * Alpha-Regs:: Register Names
  5325. * Alpha-Relocs:: Relocations
  5326. 
  5327. File: as.info, Node: Alpha-Chars, Next: Alpha-Regs, Up: Alpha Syntax
  5328. 9.2.3.1 Special Characters
  5329. ..........................
  5330. '#' is the line comment character. Note that if '#' is the first
  5331. character on a line then it can also be a logical line number directive
  5332. (*note Comments::) or a preprocessor control command (*note
  5333. Preprocessing::).
  5334. ';' can be used instead of a newline to separate statements.
  5335. 
  5336. File: as.info, Node: Alpha-Regs, Next: Alpha-Relocs, Prev: Alpha-Chars, Up: Alpha Syntax
  5337. 9.2.3.2 Register Names
  5338. ......................
  5339. The 32 integer registers are referred to as '$N' or '$rN'. In addition,
  5340. registers 15, 28, 29, and 30 may be referred to by the symbols '$fp',
  5341. '$at', '$gp', and '$sp' respectively.
  5342. The 32 floating-point registers are referred to as '$fN'.
  5343. 
  5344. File: as.info, Node: Alpha-Relocs, Prev: Alpha-Regs, Up: Alpha Syntax
  5345. 9.2.3.3 Relocations
  5346. ...................
  5347. Some of these relocations are available for ECOFF, but mostly only for
  5348. ELF. They are modeled after the relocation format introduced in Digital
  5349. Unix 4.0, but there are additions.
  5350. The format is '!TAG' or '!TAG!NUMBER' where TAG is the name of the
  5351. relocation. In some cases NUMBER is used to relate specific
  5352. instructions.
  5353. The relocation is placed at the end of the instruction like so:
  5354. ldah $0,a($29) !gprelhigh
  5355. lda $0,a($0) !gprellow
  5356. ldq $1,b($29) !literal!100
  5357. ldl $2,0($1) !lituse_base!100
  5358. '!literal'
  5359. '!literal!N'
  5360. Used with an 'ldq' instruction to load the address of a symbol from
  5361. the GOT.
  5362. A sequence number N is optional, and if present is used to pair
  5363. 'lituse' relocations with this 'literal' relocation. The 'lituse'
  5364. relocations are used by the linker to optimize the code based on
  5365. the final location of the symbol.
  5366. Note that these optimizations are dependent on the data flow of the
  5367. program. Therefore, if _any_ 'lituse' is paired with a 'literal'
  5368. relocation, then _all_ uses of the register set by the 'literal'
  5369. instruction must also be marked with 'lituse' relocations. This is
  5370. because the original 'literal' instruction may be deleted or
  5371. transformed into another instruction.
  5372. Also note that there may be a one-to-many relationship between
  5373. 'literal' and 'lituse', but not a many-to-one. That is, if there
  5374. are two code paths that load up the same address and feed the value
  5375. to a single use, then the use may not use a 'lituse' relocation.
  5376. '!lituse_base!N'
  5377. Used with any memory format instruction (e.g. 'ldl') to indicate
  5378. that the literal is used for an address load. The offset field of
  5379. the instruction must be zero. During relaxation, the code may be
  5380. altered to use a gp-relative load.
  5381. '!lituse_jsr!N'
  5382. Used with a register branch format instruction (e.g. 'jsr') to
  5383. indicate that the literal is used for a call. During relaxation,
  5384. the code may be altered to use a direct branch (e.g. 'bsr').
  5385. '!lituse_jsrdirect!N'
  5386. Similar to 'lituse_jsr', but also that this call cannot be vectored
  5387. through a PLT entry. This is useful for functions with special
  5388. calling conventions which do not allow the normal call-clobbered
  5389. registers to be clobbered.
  5390. '!lituse_bytoff!N'
  5391. Used with a byte mask instruction (e.g. 'extbl') to indicate that
  5392. only the low 3 bits of the address are relevant. During
  5393. relaxation, the code may be altered to use an immediate instead of
  5394. a register shift.
  5395. '!lituse_addr!N'
  5396. Used with any other instruction to indicate that the original
  5397. address is in fact used, and the original 'ldq' instruction may not
  5398. be altered or deleted. This is useful in conjunction with
  5399. 'lituse_jsr' to test whether a weak symbol is defined.
  5400. ldq $27,foo($29) !literal!1
  5401. beq $27,is_undef !lituse_addr!1
  5402. jsr $26,($27),foo !lituse_jsr!1
  5403. '!lituse_tlsgd!N'
  5404. Used with a register branch format instruction to indicate that the
  5405. literal is the call to '__tls_get_addr' used to compute the address
  5406. of the thread-local storage variable whose descriptor was loaded
  5407. with '!tlsgd!N'.
  5408. '!lituse_tlsldm!N'
  5409. Used with a register branch format instruction to indicate that the
  5410. literal is the call to '__tls_get_addr' used to compute the address
  5411. of the base of the thread-local storage block for the current
  5412. module. The descriptor for the module must have been loaded with
  5413. '!tlsldm!N'.
  5414. '!gpdisp!N'
  5415. Used with 'ldah' and 'lda' to load the GP from the current address,
  5416. a-la the 'ldgp' macro. The source register for the 'ldah'
  5417. instruction must contain the address of the 'ldah' instruction.
  5418. There must be exactly one 'lda' instruction paired with the 'ldah'
  5419. instruction, though it may appear anywhere in the instruction
  5420. stream. The immediate operands must be zero.
  5421. bsr $26,foo
  5422. ldah $29,0($26) !gpdisp!1
  5423. lda $29,0($29) !gpdisp!1
  5424. '!gprelhigh'
  5425. Used with an 'ldah' instruction to add the high 16 bits of a 32-bit
  5426. displacement from the GP.
  5427. '!gprellow'
  5428. Used with any memory format instruction to add the low 16 bits of a
  5429. 32-bit displacement from the GP.
  5430. '!gprel'
  5431. Used with any memory format instruction to add a 16-bit
  5432. displacement from the GP.
  5433. '!samegp'
  5434. Used with any branch format instruction to skip the GP load at the
  5435. target address. The referenced symbol must have the same GP as the
  5436. source object file, and it must be declared to either not use '$27'
  5437. or perform a standard GP load in the first two instructions via the
  5438. '.prologue' directive.
  5439. '!tlsgd'
  5440. '!tlsgd!N'
  5441. Used with an 'lda' instruction to load the address of a TLS
  5442. descriptor for a symbol in the GOT.
  5443. The sequence number N is optional, and if present it used to pair
  5444. the descriptor load with both the 'literal' loading the address of
  5445. the '__tls_get_addr' function and the 'lituse_tlsgd' marking the
  5446. call to that function.
  5447. For proper relaxation, both the 'tlsgd', 'literal' and 'lituse'
  5448. relocations must be in the same extended basic block. That is, the
  5449. relocation with the lowest address must be executed first at
  5450. runtime.
  5451. '!tlsldm'
  5452. '!tlsldm!N'
  5453. Used with an 'lda' instruction to load the address of a TLS
  5454. descriptor for the current module in the GOT.
  5455. Similar in other respects to 'tlsgd'.
  5456. '!gotdtprel'
  5457. Used with an 'ldq' instruction to load the offset of the TLS symbol
  5458. within its module's thread-local storage block. Also known as the
  5459. dynamic thread pointer offset or dtp-relative offset.
  5460. '!dtprelhi'
  5461. '!dtprello'
  5462. '!dtprel'
  5463. Like 'gprel' relocations except they compute dtp-relative offsets.
  5464. '!gottprel'
  5465. Used with an 'ldq' instruction to load the offset of the TLS symbol
  5466. from the thread pointer. Also known as the tp-relative offset.
  5467. '!tprelhi'
  5468. '!tprello'
  5469. '!tprel'
  5470. Like 'gprel' relocations except they compute tp-relative offsets.
  5471. 
  5472. File: as.info, Node: Alpha Floating Point, Next: Alpha Directives, Prev: Alpha Syntax, Up: Alpha-Dependent
  5473. 9.2.4 Floating Point
  5474. --------------------
  5475. The Alpha family uses both IEEE and VAX floating-point numbers.
  5476. 
  5477. File: as.info, Node: Alpha Directives, Next: Alpha Opcodes, Prev: Alpha Floating Point, Up: Alpha-Dependent
  5478. 9.2.5 Alpha Assembler Directives
  5479. --------------------------------
  5480. 'as' for the Alpha supports many additional directives for compatibility
  5481. with the native assembler. This section describes them only briefly.
  5482. These are the additional directives in 'as' for the Alpha:
  5483. '.arch CPU'
  5484. Specifies the target processor. This is equivalent to the '-mCPU'
  5485. command-line option. *Note Options: Alpha Options, for a list of
  5486. values for CPU.
  5487. '.ent FUNCTION[, N]'
  5488. Mark the beginning of FUNCTION. An optional number may follow for
  5489. compatibility with the OSF/1 assembler, but is ignored. When
  5490. generating '.mdebug' information, this will create a procedure
  5491. descriptor for the function. In ELF, it will mark the symbol as a
  5492. function a-la the generic '.type' directive.
  5493. '.end FUNCTION'
  5494. Mark the end of FUNCTION. In ELF, it will set the size of the
  5495. symbol a-la the generic '.size' directive.
  5496. '.mask MASK, OFFSET'
  5497. Indicate which of the integer registers are saved in the current
  5498. function's stack frame. MASK is interpreted a bit mask in which
  5499. bit N set indicates that register N is saved. The registers are
  5500. saved in a block located OFFSET bytes from the "canonical frame
  5501. address" (CFA) which is the value of the stack pointer on entry to
  5502. the function. The registers are saved sequentially, except that
  5503. the return address register (normally '$26') is saved first.
  5504. This and the other directives that describe the stack frame are
  5505. currently only used when generating '.mdebug' information. They
  5506. may in the future be used to generate DWARF2 '.debug_frame' unwind
  5507. information for hand written assembly.
  5508. '.fmask MASK, OFFSET'
  5509. Indicate which of the floating-point registers are saved in the
  5510. current stack frame. The MASK and OFFSET parameters are
  5511. interpreted as with '.mask'.
  5512. '.frame FRAMEREG, FRAMEOFFSET, RETREG[, ARGOFFSET]'
  5513. Describes the shape of the stack frame. The frame pointer in use
  5514. is FRAMEREG; normally this is either '$fp' or '$sp'. The frame
  5515. pointer is FRAMEOFFSET bytes below the CFA. The return address is
  5516. initially located in RETREG until it is saved as indicated in
  5517. '.mask'. For compatibility with OSF/1 an optional ARGOFFSET
  5518. parameter is accepted and ignored. It is believed to indicate the
  5519. offset from the CFA to the saved argument registers.
  5520. '.prologue N'
  5521. Indicate that the stack frame is set up and all registers have been
  5522. spilled. The argument N indicates whether and how the function
  5523. uses the incoming "procedure vector" (the address of the called
  5524. function) in '$27'. 0 indicates that '$27' is not used; 1
  5525. indicates that the first two instructions of the function use '$27'
  5526. to perform a load of the GP register; 2 indicates that '$27' is
  5527. used in some non-standard way and so the linker cannot elide the
  5528. load of the procedure vector during relaxation.
  5529. '.usepv FUNCTION, WHICH'
  5530. Used to indicate the use of the '$27' register, similar to
  5531. '.prologue', but without the other semantics of needing to be
  5532. inside an open '.ent'/'.end' block.
  5533. The WHICH argument should be either 'no', indicating that '$27' is
  5534. not used, or 'std', indicating that the first two instructions of
  5535. the function perform a GP load.
  5536. One might use this directive instead of '.prologue' if you are also
  5537. using dwarf2 CFI directives.
  5538. '.gprel32 EXPRESSION'
  5539. Computes the difference between the address in EXPRESSION and the
  5540. GP for the current object file, and stores it in 4 bytes. In
  5541. addition to being smaller than a full 8 byte address, this also
  5542. does not require a dynamic relocation when used in a shared
  5543. library.
  5544. '.t_floating EXPRESSION'
  5545. Stores EXPRESSION as an IEEE double precision value.
  5546. '.s_floating EXPRESSION'
  5547. Stores EXPRESSION as an IEEE single precision value.
  5548. '.f_floating EXPRESSION'
  5549. Stores EXPRESSION as a VAX F format value.
  5550. '.g_floating EXPRESSION'
  5551. Stores EXPRESSION as a VAX G format value.
  5552. '.d_floating EXPRESSION'
  5553. Stores EXPRESSION as a VAX D format value.
  5554. '.set FEATURE'
  5555. Enables or disables various assembler features. Using the positive
  5556. name of the feature enables while using 'noFEATURE' disables.
  5557. 'at'
  5558. Indicates that macro expansions may clobber the "assembler
  5559. temporary" ('$at' or '$28') register. Some macros may not be
  5560. expanded without this and will generate an error message if
  5561. 'noat' is in effect. When 'at' is in effect, a warning will
  5562. be generated if '$at' is used by the programmer.
  5563. 'macro'
  5564. Enables the expansion of macro instructions. Note that
  5565. variants of real instructions, such as 'br label' vs 'br
  5566. $31,label' are considered alternate forms and not macros.
  5567. 'move'
  5568. 'reorder'
  5569. 'volatile'
  5570. These control whether and how the assembler may re-order
  5571. instructions. Accepted for compatibility with the OSF/1
  5572. assembler, but 'as' does not do instruction scheduling, so
  5573. these features are ignored.
  5574. The following directives are recognized for compatibility with the
  5575. OSF/1 assembler but are ignored.
  5576. .proc .aproc
  5577. .reguse .livereg
  5578. .option .aent
  5579. .ugen .eflag
  5580. .alias .noalias
  5581. 
  5582. File: as.info, Node: Alpha Opcodes, Prev: Alpha Directives, Up: Alpha-Dependent
  5583. 9.2.6 Opcodes
  5584. -------------
  5585. For detailed information on the Alpha machine instruction set, see the
  5586. Alpha Architecture Handbook
  5587. (ftp://ftp.digital.com/pub/Digital/info/semiconductor/literature/alphaahb.pdf).
  5588. 
  5589. File: as.info, Node: ARC-Dependent, Next: ARM-Dependent, Prev: Alpha-Dependent, Up: Machine Dependencies
  5590. 9.3 ARC Dependent Features
  5591. ==========================
  5592. * Menu:
  5593. * ARC Options:: Options
  5594. * ARC Syntax:: Syntax
  5595. * ARC Directives:: ARC Machine Directives
  5596. * ARC Modifiers:: ARC Assembler Modifiers
  5597. * ARC Symbols:: ARC Pre-defined Symbols
  5598. * ARC Opcodes:: Opcodes
  5599. 
  5600. File: as.info, Node: ARC Options, Next: ARC Syntax, Up: ARC-Dependent
  5601. 9.3.1 Options
  5602. -------------
  5603. The following options control the type of CPU for which code is
  5604. assembled, and generic constraints on the code generated:
  5605. '-mcpu=CPU'
  5606. Set architecture type and register usage for CPU. There are also
  5607. shortcut alias options available for backward compatibility and
  5608. convenience. Supported values for CPU are
  5609. 'arc600'
  5610. Assemble for ARC 600. Aliases: '-mA6', '-mARC600'.
  5611. 'arc600_norm'
  5612. Assemble for ARC 600 with norm instructions.
  5613. 'arc600_mul64'
  5614. Assemble for ARC 600 with mul64 instructions.
  5615. 'arc600_mul32x16'
  5616. Assemble for ARC 600 with mul32x16 instructions.
  5617. 'arc601'
  5618. Assemble for ARC 601. Alias: '-mARC601'.
  5619. 'arc601_norm'
  5620. Assemble for ARC 601 with norm instructions.
  5621. 'arc601_mul64'
  5622. Assemble for ARC 601 with mul64 instructions.
  5623. 'arc601_mul32x16'
  5624. Assemble for ARC 601 with mul32x16 instructions.
  5625. 'arc700'
  5626. Assemble for ARC 700. Aliases: '-mA7', '-mARC700'.
  5627. 'arcem'
  5628. Assemble for ARC EM. Aliases: '-mEM'
  5629. 'em'
  5630. Assemble for ARC EM, identical as arcem variant.
  5631. 'em4'
  5632. Assemble for ARC EM with code-density instructions.
  5633. 'em4_dmips'
  5634. Assemble for ARC EM with code-density instructions.
  5635. 'em4_fpus'
  5636. Assemble for ARC EM with code-density instructions.
  5637. 'em4_fpuda'
  5638. Assemble for ARC EM with code-density, and double-precision
  5639. assist instructions.
  5640. 'quarkse_em'
  5641. Assemble for QuarkSE-EM cpu.
  5642. 'archs'
  5643. Assemble for ARC HS. Aliases: '-mHS', '-mav2hs'.
  5644. 'hs'
  5645. Assemble for ARC HS.
  5646. 'hs34'
  5647. Assemble for ARC HS34.
  5648. 'hs38'
  5649. Assemble for ARC HS38.
  5650. 'hs38_linux'
  5651. Assemble for ARC HS38 with floating point support on.
  5652. 'nps400'
  5653. Assemble for ARC 700 with NPS-400 extended instructions.
  5654. Note: the '.cpu' directive (*note ARC Directives::) can to be used
  5655. to select a core variant from within assembly code.
  5656. '-EB'
  5657. This option specifies that the output generated by the assembler
  5658. should be marked as being encoded for a big-endian processor.
  5659. '-EL'
  5660. This option specifies that the output generated by the assembler
  5661. should be marked as being encoded for a little-endian processor -
  5662. this is the default.
  5663. '-mcode-density'
  5664. This option turns on Code Density instructions. Only valid for ARC
  5665. EM processors.
  5666. '-mrelax'
  5667. Enable support for assembly-time relaxation. The assembler will
  5668. replace a longer version of an instruction with a shorter one,
  5669. whenever it is possible.
  5670. '-mnps400'
  5671. Enable support for NPS-400 extended instructions.
  5672. '-mspfp'
  5673. Enable support for single-precision floating point instructions.
  5674. '-mdpfp'
  5675. Enable support for double-precision floating point instructions.
  5676. '-mfpuda'
  5677. Enable support for double-precision assist floating point
  5678. instructions. Only valid for ARC EM processors.
  5679. 
  5680. File: as.info, Node: ARC Syntax, Next: ARC Directives, Prev: ARC Options, Up: ARC-Dependent
  5681. 9.3.2 Syntax
  5682. ------------
  5683. * Menu:
  5684. * ARC-Chars:: Special Characters
  5685. * ARC-Regs:: Register Names
  5686. 
  5687. File: as.info, Node: ARC-Chars, Next: ARC-Regs, Up: ARC Syntax
  5688. 9.3.2.1 Special Characters
  5689. ..........................
  5690. '%'
  5691. A register name can optionally be prefixed by a '%' character. So
  5692. register '%r0' is equivalent to 'r0' in the assembly code.
  5693. '#'
  5694. The presence of a '#' character within a line (but not at the start
  5695. of a line) indicates the start of a comment that extends to the end
  5696. of the current line.
  5697. _Note:_ if a line starts with a '#' character then it can also be a
  5698. logical line number directive (*note Comments::) or a preprocessor
  5699. control command (*note Preprocessing::).
  5700. '@'
  5701. Prefixing an operand with an '@' specifies that the operand is a
  5702. symbol and not a register. This is how the assembler disambiguates
  5703. the use of an ARC register name as a symbol. So the instruction
  5704. mov r0, @r0
  5705. moves the address of symbol 'r0' into register 'r0'.
  5706. '`'
  5707. The '`' (backtick) character is used to separate statements on a
  5708. single line.
  5709. '-'
  5710. Used as a separator to obtain a sequence of commands from a C
  5711. preprocessor macro.
  5712. 
  5713. File: as.info, Node: ARC-Regs, Prev: ARC-Chars, Up: ARC Syntax
  5714. 9.3.2.2 Register Names
  5715. ......................
  5716. The ARC assembler uses the following register names for its core
  5717. registers:
  5718. 'r0-r31'
  5719. The core general registers. Registers 'r26' through 'r31' have
  5720. special functions, and are usually referred to by those synonyms.
  5721. 'gp'
  5722. The global pointer and a synonym for 'r26'.
  5723. 'fp'
  5724. The frame pointer and a synonym for 'r27'.
  5725. 'sp'
  5726. The stack pointer and a synonym for 'r28'.
  5727. 'ilink1'
  5728. For ARC 600 and ARC 700, the level 1 interrupt link register and a
  5729. synonym for 'r29'. Not supported for ARCv2.
  5730. 'ilink'
  5731. For ARCv2, the interrupt link register and a synonym for 'r29'.
  5732. Not supported for ARC 600 and ARC 700.
  5733. 'ilink2'
  5734. For ARC 600 and ARC 700, the level 2 interrupt link register and a
  5735. synonym for 'r30'. Not supported for ARC v2.
  5736. 'blink'
  5737. The link register and a synonym for 'r31'.
  5738. 'r32-r59'
  5739. The extension core registers.
  5740. 'lp_count'
  5741. The loop count register.
  5742. 'pcl'
  5743. The word aligned program counter.
  5744. In addition the ARC processor has a large number of _auxiliary
  5745. registers_. The precise set depends on the extensions being supported,
  5746. but the following baseline set are always defined:
  5747. 'identity'
  5748. Processor Identification register. Auxiliary register address 0x4.
  5749. 'pc'
  5750. Program Counter. Auxiliary register address 0x6.
  5751. 'status32'
  5752. Status register. Auxiliary register address 0x0a.
  5753. 'bta'
  5754. Branch Target Address. Auxiliary register address 0x412.
  5755. 'ecr'
  5756. Exception Cause Register. Auxiliary register address 0x403.
  5757. 'int_vector_base'
  5758. Interrupt Vector Base address. Auxiliary register address 0x25.
  5759. 'status32_p0'
  5760. Stored STATUS32 register on entry to level P0 interrupts.
  5761. Auxiliary register address 0xb.
  5762. 'aux_user_sp'
  5763. Saved User Stack Pointer. Auxiliary register address 0xd.
  5764. 'eret'
  5765. Exception Return Address. Auxiliary register address 0x400.
  5766. 'erbta'
  5767. BTA saved on exception entry. Auxiliary register address 0x401.
  5768. 'erstatus'
  5769. STATUS32 saved on exception. Auxiliary register address 0x402.
  5770. 'bcr_ver'
  5771. Build Configuration Registers Version. Auxiliary register address
  5772. 0x60.
  5773. 'bta_link_build'
  5774. Build configuration for: BTA Registers. Auxiliary register address
  5775. 0x63.
  5776. 'vecbase_ac_build'
  5777. Build configuration for: Interrupts. Auxiliary register address
  5778. 0x68.
  5779. 'rf_build'
  5780. Build configuration for: Core Registers. Auxiliary register
  5781. address 0x6e.
  5782. 'dccm_build'
  5783. DCCM RAM Configuration Register. Auxiliary register address 0xc1.
  5784. Additional auxiliary register names are defined according to the
  5785. processor architecture version and extensions selected by the options.
  5786. 
  5787. File: as.info, Node: ARC Directives, Next: ARC Modifiers, Prev: ARC Syntax, Up: ARC-Dependent
  5788. 9.3.3 ARC Machine Directives
  5789. ----------------------------
  5790. The ARC version of 'as' supports the following additional machine
  5791. directives:
  5792. '.lcomm SYMBOL, LENGTH[, ALIGNMENT]'
  5793. Reserve LENGTH (an absolute expression) bytes for a local common
  5794. denoted by SYMBOL. The section and value of SYMBOL are those of
  5795. the new local common. The addresses are allocated in the bss
  5796. section, so that at run-time the bytes start off zeroed. Since
  5797. SYMBOL is not declared global, it is normally not visible to 'ld'.
  5798. The optional third parameter, ALIGNMENT, specifies the desired
  5799. alignment of the symbol in the bss section, specified as a byte
  5800. boundary (for example, an alignment of 16 means that the least
  5801. significant 4 bits of the address should be zero). The alignment
  5802. must be an absolute expression, and it must be a power of two. If
  5803. no alignment is specified, as will set the alignment to the largest
  5804. power of two less than or equal to the size of the symbol, up to a
  5805. maximum of 16.
  5806. '.lcommon SYMBOL, LENGTH[, ALIGNMENT]'
  5807. The same as 'lcomm' directive.
  5808. '.cpu CPU'
  5809. The '.cpu' directive must be followed by the desired core version.
  5810. Permitted values for CPU are:
  5811. 'ARC600'
  5812. Assemble for the ARC600 instruction set.
  5813. 'arc600_norm'
  5814. Assemble for ARC 600 with norm instructions.
  5815. 'arc600_mul64'
  5816. Assemble for ARC 600 with mul64 instructions.
  5817. 'arc600_mul32x16'
  5818. Assemble for ARC 600 with mul32x16 instructions.
  5819. 'arc601'
  5820. Assemble for ARC 601 instruction set.
  5821. 'arc601_norm'
  5822. Assemble for ARC 601 with norm instructions.
  5823. 'arc601_mul64'
  5824. Assemble for ARC 601 with mul64 instructions.
  5825. 'arc601_mul32x16'
  5826. Assemble for ARC 601 with mul32x16 instructions.
  5827. 'ARC700'
  5828. Assemble for the ARC700 instruction set.
  5829. 'NPS400'
  5830. Assemble for the NPS400 instruction set.
  5831. 'EM'
  5832. Assemble for the ARC EM instruction set.
  5833. 'arcem'
  5834. Assemble for ARC EM instruction set
  5835. 'em4'
  5836. Assemble for ARC EM with code-density instructions.
  5837. 'em4_dmips'
  5838. Assemble for ARC EM with code-density instructions.
  5839. 'em4_fpus'
  5840. Assemble for ARC EM with code-density instructions.
  5841. 'em4_fpuda'
  5842. Assemble for ARC EM with code-density, and double-precision
  5843. assist instructions.
  5844. 'quarkse_em'
  5845. Assemble for QuarkSE-EM instruction set.
  5846. 'HS'
  5847. Assemble for the ARC HS instruction set.
  5848. 'archs'
  5849. Assemble for ARC HS instruction set.
  5850. 'hs'
  5851. Assemble for ARC HS instruction set.
  5852. 'hs34'
  5853. Assemble for ARC HS34 instruction set.
  5854. 'hs38'
  5855. Assemble for ARC HS38 instruction set.
  5856. 'hs38_linux'
  5857. Assemble for ARC HS38 with floating point support on.
  5858. Note: the '.cpu' directive overrides the command-line option
  5859. '-mcpu=CPU'; a warning is emitted when the version is not
  5860. consistent between the two.
  5861. '.extAuxRegister NAME, ADDR, MODE'
  5862. Auxiliary registers can be defined in the assembler source code by
  5863. using this directive. The first parameter, NAME, is the name of
  5864. the new auxiliary register. The second parameter, ADDR, is address
  5865. the of the auxiliary register. The third parameter, MODE,
  5866. specifies whether the register is readable and/or writable and is
  5867. one of:
  5868. 'r'
  5869. Read only;
  5870. 'w'
  5871. Write only;
  5872. 'r|w'
  5873. Read and write.
  5874. For example:
  5875. .extAuxRegister mulhi, 0x12, w
  5876. specifies a write only extension auxiliary register, MULHI at
  5877. address 0x12.
  5878. '.extCondCode SUFFIX, VAL'
  5879. ARC supports extensible condition codes. This directive defines a
  5880. new condition code, to be known by the suffix, SUFFIX and will
  5881. depend on the value, VAL in the condition code.
  5882. For example:
  5883. .extCondCode is_busy,0x14
  5884. add.is_busy r1,r2,r3
  5885. will only execute the 'add' instruction if the condition code value
  5886. is 0x14.
  5887. '.extCoreRegister NAME, REGNUM, MODE, SHORTCUT'
  5888. Specifies an extension core register named NAME as a synonym for
  5889. the register numbered REGNUM. The register number must be between
  5890. 32 and 59. The third argument, MODE, indicates whether the
  5891. register is readable and/or writable and is one of:
  5892. 'r'
  5893. Read only;
  5894. 'w'
  5895. Write only;
  5896. 'r|w'
  5897. Read and write.
  5898. The final parameter, SHORTCUT indicates whether the register has a
  5899. short cut in the pipeline. The valid values are:
  5900. 'can_shortcut'
  5901. The register has a short cut in the pipeline;
  5902. 'cannot_shortcut'
  5903. The register does not have a short cut in the pipeline.
  5904. For example:
  5905. .extCoreRegister mlo, 57, r , can_shortcut
  5906. defines a read only extension core register, 'mlo', which is
  5907. register 57, and can short cut the pipeline.
  5908. '.extInstruction NAME, OPCODE, SUBOPCODE, SUFFIXCLASS, SYNTAXCLASS'
  5909. ARC allows the user to specify extension instructions. These
  5910. extension instructions are not macros; the assembler creates
  5911. encodings for use of these instructions according to the
  5912. specification by the user.
  5913. The first argument, NAME, gives the name of the instruction.
  5914. The second argument, OPCODE, is the opcode to be used (bits 31:27
  5915. in the encoding).
  5916. The third argument, SUBOPCODE, is the sub-opcode to be used, but
  5917. the correct value also depends on the fifth argument, SYNTAXCLASS
  5918. The fourth argument, SUFFIXCLASS, determines the kinds of suffixes
  5919. to be allowed. Valid values are:
  5920. 'SUFFIX_NONE'
  5921. No suffixes are permitted;
  5922. 'SUFFIX_COND'
  5923. Conditional suffixes are permitted;
  5924. 'SUFFIX_FLAG'
  5925. Flag setting suffixes are permitted.
  5926. 'SUFFIX_COND|SUFFIX_FLAG'
  5927. Both conditional and flag setting suffices are permitted.
  5928. The fifth and final argument, SYNTAXCLASS, determines the syntax
  5929. class for the instruction. It can have the following values:
  5930. 'SYNTAX_2OP'
  5931. Two Operand Instruction;
  5932. 'SYNTAX_3OP'
  5933. Three Operand Instruction.
  5934. 'SYNTAX_1OP'
  5935. One Operand Instruction.
  5936. 'SYNTAX_NOP'
  5937. No Operand Instruction.
  5938. The syntax class may be followed by '|' and one of the following
  5939. modifiers.
  5940. 'OP1_MUST_BE_IMM'
  5941. Modifies syntax class 'SYNTAX_3OP', specifying that the first
  5942. operand of a three-operand instruction must be an immediate
  5943. (i.e., the result is discarded). This is usually used to set
  5944. the flags using specific instructions and not retain results.
  5945. 'OP1_IMM_IMPLIED'
  5946. Modifies syntax class 'SYNTAX_20P', specifying that there is
  5947. an implied immediate destination operand which does not appear
  5948. in the syntax.
  5949. For example, if the source code contains an instruction like:
  5950. inst r1,r2
  5951. the first argument is an implied immediate (that is, the
  5952. result is discarded). This is the same as though the source
  5953. code were: inst 0,r1,r2.
  5954. For example, defining a 64-bit multiplier with immediate operands:
  5955. .extInstruction mp64, 0x07, 0x2d, SUFFIX_COND|SUFFIX_FLAG,
  5956. SYNTAX_3OP|OP1_MUST_BE_IMM
  5957. which specifies an extension instruction named 'mp64' with 3
  5958. operands. It sets the flags and can be used with a condition code,
  5959. for which the first operand is an immediate, i.e. equivalent to
  5960. discarding the result of the operation.
  5961. A two operands instruction variant would be:
  5962. .extInstruction mul64, 0x07, 0x2d, SUFFIX_COND,
  5963. SYNTAX_2OP|OP1_IMM_IMPLIED
  5964. which describes a two operand instruction with an implicit first
  5965. immediate operand. The result of this operation would be
  5966. discarded.
  5967. '.arc_attribute TAG, VALUE'
  5968. Set the ARC object attribute TAG to VALUE.
  5969. The TAG is either an attribute number, or one of the following:
  5970. 'Tag_ARC_PCS_config', 'Tag_ARC_CPU_base', 'Tag_ARC_CPU_variation',
  5971. 'Tag_ARC_CPU_name', 'Tag_ARC_ABI_rf16', 'Tag_ARC_ABI_osver',
  5972. 'Tag_ARC_ABI_sda', 'Tag_ARC_ABI_pic', 'Tag_ARC_ABI_tls',
  5973. 'Tag_ARC_ABI_enumsize', 'Tag_ARC_ABI_exceptions',
  5974. 'Tag_ARC_ABI_double_size', 'Tag_ARC_ISA_config',
  5975. 'Tag_ARC_ISA_apex', 'Tag_ARC_ISA_mpy_option'
  5976. The VALUE is either a 'number', '"string"', or 'number, "string"'
  5977. depending on the tag.
  5978. 
  5979. File: as.info, Node: ARC Modifiers, Next: ARC Symbols, Prev: ARC Directives, Up: ARC-Dependent
  5980. 9.3.4 ARC Assembler Modifiers
  5981. -----------------------------
  5982. The following additional assembler modifiers have been added for
  5983. position-independent code. These modifiers are available only with the
  5984. ARC 700 and above processors and generate relocation entries, which are
  5985. interpreted by the linker as follows:
  5986. '@pcl(SYMBOL)'
  5987. Relative distance of SYMBOL's from the current program counter
  5988. location.
  5989. '@gotpc(SYMBOL)'
  5990. Relative distance of SYMBOL's Global Offset Table entry from the
  5991. current program counter location.
  5992. '@gotoff(SYMBOL)'
  5993. Distance of SYMBOL from the base of the Global Offset Table.
  5994. '@plt(SYMBOL)'
  5995. Distance of SYMBOL's Procedure Linkage Table entry from the current
  5996. program counter. This is valid only with branch and link
  5997. instructions and PC-relative calls.
  5998. '@sda(SYMBOL)'
  5999. Relative distance of SYMBOL from the base of the Small Data
  6000. Pointer.
  6001. 
  6002. File: as.info, Node: ARC Symbols, Next: ARC Opcodes, Prev: ARC Modifiers, Up: ARC-Dependent
  6003. 9.3.5 ARC Pre-defined Symbols
  6004. -----------------------------
  6005. The following assembler symbols will prove useful when developing
  6006. position-independent code. These symbols are available only with the
  6007. ARC 700 and above processors.
  6008. '__GLOBAL_OFFSET_TABLE__'
  6009. Symbol referring to the base of the Global Offset Table.
  6010. '__DYNAMIC__'
  6011. An alias for the Global Offset Table 'Base__GLOBAL_OFFSET_TABLE__'.
  6012. It can be used only with '@gotpc' modifiers.
  6013. 
  6014. File: as.info, Node: ARC Opcodes, Prev: ARC Symbols, Up: ARC-Dependent
  6015. 9.3.6 Opcodes
  6016. -------------
  6017. For information on the ARC instruction set, see 'ARC Programmers
  6018. Reference Manual', available where you download the processor IP
  6019. library.
  6020. 
  6021. File: as.info, Node: ARM-Dependent, Next: AVR-Dependent, Prev: ARC-Dependent, Up: Machine Dependencies
  6022. 9.4 ARM Dependent Features
  6023. ==========================
  6024. * Menu:
  6025. * ARM Options:: Options
  6026. * ARM Syntax:: Syntax
  6027. * ARM Floating Point:: Floating Point
  6028. * ARM Directives:: ARM Machine Directives
  6029. * ARM Opcodes:: Opcodes
  6030. * ARM Mapping Symbols:: Mapping Symbols
  6031. * ARM Unwinding Tutorial:: Unwinding
  6032. 
  6033. File: as.info, Node: ARM Options, Next: ARM Syntax, Up: ARM-Dependent
  6034. 9.4.1 Options
  6035. -------------
  6036. '-mcpu=PROCESSOR[+EXTENSION...]'
  6037. This option specifies the target processor. The assembler will
  6038. issue an error message if an attempt is made to assemble an
  6039. instruction which will not execute on the target processor. The
  6040. following processor names are recognized: 'arm1', 'arm2', 'arm250',
  6041. 'arm3', 'arm6', 'arm60', 'arm600', 'arm610', 'arm620', 'arm7',
  6042. 'arm7m', 'arm7d', 'arm7dm', 'arm7di', 'arm7dmi', 'arm70', 'arm700',
  6043. 'arm700i', 'arm710', 'arm710t', 'arm720', 'arm720t', 'arm740t',
  6044. 'arm710c', 'arm7100', 'arm7500', 'arm7500fe', 'arm7t', 'arm7tdmi',
  6045. 'arm7tdmi-s', 'arm8', 'arm810', 'strongarm', 'strongarm1',
  6046. 'strongarm110', 'strongarm1100', 'strongarm1110', 'arm9', 'arm920',
  6047. 'arm920t', 'arm922t', 'arm940t', 'arm9tdmi', 'fa526' (Faraday FA526
  6048. processor), 'fa626' (Faraday FA626 processor), 'arm9e', 'arm926e',
  6049. 'arm926ej-s', 'arm946e-r0', 'arm946e', 'arm946e-s', 'arm966e-r0',
  6050. 'arm966e', 'arm966e-s', 'arm968e-s', 'arm10t', 'arm10tdmi',
  6051. 'arm10e', 'arm1020', 'arm1020t', 'arm1020e', 'arm1022e',
  6052. 'arm1026ej-s', 'fa606te' (Faraday FA606TE processor), 'fa616te'
  6053. (Faraday FA616TE processor), 'fa626te' (Faraday FA626TE processor),
  6054. 'fmp626' (Faraday FMP626 processor), 'fa726te' (Faraday FA726TE
  6055. processor), 'arm1136j-s', 'arm1136jf-s', 'arm1156t2-s',
  6056. 'arm1156t2f-s', 'arm1176jz-s', 'arm1176jzf-s', 'mpcore',
  6057. 'mpcorenovfp', 'cortex-a5', 'cortex-a7', 'cortex-a8', 'cortex-a9',
  6058. 'cortex-a15', 'cortex-a17', 'cortex-a32', 'cortex-a35',
  6059. 'cortex-a53', 'cortex-a55', 'cortex-a57', 'cortex-a72',
  6060. 'cortex-a73', 'cortex-a75', 'cortex-a76', 'cortex-a76ae',
  6061. 'cortex-a77', 'cortex-a78', 'cortex-a78ae', 'cortex-a78c',
  6062. 'cortex-a710', 'ares', 'cortex-r4', 'cortex-r4f', 'cortex-r5',
  6063. 'cortex-r7', 'cortex-r8', 'cortex-r52', 'cortex-r52plus',
  6064. 'cortex-m35p', 'cortex-m33', 'cortex-m23', 'cortex-m7',
  6065. 'cortex-m4', 'cortex-m3', 'cortex-m1', 'cortex-m0',
  6066. 'cortex-m0plus', 'cortex-x1', 'exynos-m1', 'marvell-pj4',
  6067. 'marvell-whitney', 'neoverse-n1', 'neoverse-n2', 'neoverse-v1',
  6068. 'xgene1', 'xgene2', 'ep9312' (ARM920 with Cirrus Maverick
  6069. coprocessor), 'i80200' (Intel XScale processor) 'iwmmxt' (Intel
  6070. XScale processor with Wireless MMX technology coprocessor) and
  6071. 'xscale'. The special name 'all' may be used to allow the
  6072. assembler to accept instructions valid for any ARM processor.
  6073. In addition to the basic instruction set, the assembler can be told
  6074. to accept various extension mnemonics that extend the processor
  6075. using the co-processor instruction space. For example,
  6076. '-mcpu=arm920+maverick' is equivalent to specifying '-mcpu=ep9312'.
  6077. Multiple extensions may be specified, separated by a '+'. The
  6078. extensions should be specified in ascending alphabetical order.
  6079. Some extensions may be restricted to particular architectures; this
  6080. is documented in the list of extensions below.
  6081. Extension mnemonics may also be removed from those the assembler
  6082. accepts. This is done be prepending 'no' to the option that adds
  6083. the extension. Extensions that are removed should be listed after
  6084. all extensions which have been added, again in ascending
  6085. alphabetical order. For example, '-mcpu=ep9312+nomaverick' is
  6086. equivalent to specifying '-mcpu=arm920'.
  6087. The following extensions are currently supported: 'bf16' (BFloat16
  6088. extensions for v8.6-A architecture), 'i8mm' (Int8 Matrix Multiply
  6089. extensions for v8.6-A architecture), 'crc' 'crypto' (Cryptography
  6090. Extensions for v8-A architecture, implies 'fp+simd'), 'dotprod'
  6091. (Dot Product Extensions for v8.2-A architecture, implies
  6092. 'fp+simd'), 'fp' (Floating Point Extensions for v8-A architecture),
  6093. 'fp16' (FP16 Extensions for v8.2-A architecture, implies 'fp'),
  6094. 'fp16fml' (FP16 Floating Point Multiplication Variant Extensions
  6095. for v8.2-A architecture, implies 'fp16'), 'idiv' (Integer Divide
  6096. Extensions for v7-A and v7-R architectures), 'iwmmxt', 'iwmmxt2',
  6097. 'xscale', 'maverick', 'mp' (Multiprocessing Extensions for v7-A and
  6098. v7-R architectures), 'os' (Operating System for v6M architecture),
  6099. 'predres' (Execution and Data Prediction Restriction Instruction
  6100. for v8-A architectures, added by default from v8.5-A), 'sb'
  6101. (Speculation Barrier Instruction for v8-A architectures, added by
  6102. default from v8.5-A), 'sec' (Security Extensions for v6K and v7-A
  6103. architectures), 'simd' (Advanced SIMD Extensions for v8-A
  6104. architecture, implies 'fp'), 'virt' (Virtualization Extensions for
  6105. v7-A architecture, implies 'idiv'), 'pan' (Privileged Access Never
  6106. Extensions for v8-A architecture), 'ras' (Reliability, Availability
  6107. and Serviceability extensions for v8-A architecture), 'rdma'
  6108. (ARMv8.1 Advanced SIMD extensions for v8-A architecture, implies
  6109. 'simd') and 'xscale'.
  6110. '-march=ARCHITECTURE[+EXTENSION...]'
  6111. This option specifies the target architecture. The assembler will
  6112. issue an error message if an attempt is made to assemble an
  6113. instruction which will not execute on the target architecture. The
  6114. following architecture names are recognized: 'armv1', 'armv2',
  6115. 'armv2a', 'armv2s', 'armv3', 'armv3m', 'armv4', 'armv4xm',
  6116. 'armv4t', 'armv4txm', 'armv5', 'armv5t', 'armv5txm', 'armv5te',
  6117. 'armv5texp', 'armv6', 'armv6j', 'armv6k', 'armv6z', 'armv6kz',
  6118. 'armv6-m', 'armv6s-m', 'armv7', 'armv7-a', 'armv7ve', 'armv7-r',
  6119. 'armv7-m', 'armv7e-m', 'armv8-a', 'armv8.1-a', 'armv8.2-a',
  6120. 'armv8.3-a', 'armv8-r', 'armv8.4-a', 'armv8.5-a', 'armv8-m.base',
  6121. 'armv8-m.main', 'armv8.1-m.main', 'armv8.6-a', 'armv8.7-a',
  6122. 'armv8.8-a', 'armv9-a', 'iwmmxt', 'iwmmxt2' and 'xscale'. If both
  6123. '-mcpu' and '-march' are specified, the assembler will use the
  6124. setting for '-mcpu'.
  6125. The architecture option can be extended with a set extension
  6126. options. These extensions are context sensitive, i.e. the same
  6127. extension may mean different things when used with different
  6128. architectures. When used together with a '-mfpu' option, the union
  6129. of both feature enablement is taken. See their availability and
  6130. meaning below:
  6131. For 'armv5te', 'armv5texp', 'armv5tej', 'armv6', 'armv6j',
  6132. 'armv6k', 'armv6z', 'armv6kz', 'armv6zk', 'armv6t2', 'armv6kt2' and
  6133. 'armv6zt2':
  6134. '+fp': Enables VFPv2 instructions. '+nofp': Disables all FPU
  6135. instrunctions.
  6136. For 'armv7':
  6137. '+fp': Enables VFPv3 instructions with 16 double-word registers.
  6138. '+nofp': Disables all FPU instructions.
  6139. For 'armv7-a':
  6140. '+fp': Enables VFPv3 instructions with 16 double-word registers.
  6141. '+vfpv3-d16': Alias for '+fp'. '+vfpv3': Enables VFPv3
  6142. instructions with 32 double-word registers. '+vfpv3-d16-fp16':
  6143. Enables VFPv3 with half precision floating-point conversion
  6144. instructions and 16 double-word registers. '+vfpv3-fp16': Enables
  6145. VFPv3 with half precision floating-point conversion instructions
  6146. and 32 double-word registers. '+vfpv4-d16': Enables VFPv4
  6147. instructions with 16 double-word registers. '+vfpv4': Enables
  6148. VFPv4 instructions with 32 double-word registers. '+simd': Enables
  6149. VFPv3 and NEONv1 instructions with 32 double-word registers.
  6150. '+neon': Alias for '+simd'. '+neon-vfpv3': Alias for '+simd'.
  6151. '+neon-fp16': Enables VFPv3, half precision floating-point
  6152. conversion and NEONv1 instructions with 32 double-word registers.
  6153. '+neon-vfpv4': Enables VFPv4 and NEONv1 with Fused-MAC instructions
  6154. and 32 double-word registers. '+mp': Enables Multiprocessing
  6155. Extensions. '+sec': Enables Security Extensions. '+nofp':
  6156. Disables all FPU and NEON instructions. '+nosimd': Disables all
  6157. NEON instructions.
  6158. For 'armv7ve':
  6159. '+fp': Enables VFPv4 instructions with 16 double-word registers.
  6160. '+vfpv4-d16': Alias for '+fp'. '+vfpv3-d16': Enables VFPv3
  6161. instructions with 16 double-word registers. '+vfpv3': Enables
  6162. VFPv3 instructions with 32 double-word registers.
  6163. '+vfpv3-d16-fp16': Enables VFPv3 with half precision floating-point
  6164. conversion instructions and 16 double-word registers.
  6165. '+vfpv3-fp16': Enables VFPv3 with half precision floating-point
  6166. conversion instructions and 32 double-word registers. '+vfpv4':
  6167. Enables VFPv4 instructions with 32 double-word registers. '+simd':
  6168. Enables VFPv4 and NEONv1 with Fused-MAC instructions and 32
  6169. double-word registers. '+neon-vfpv4': Alias for '+simd'. '+neon':
  6170. Enables VFPv3 and NEONv1 instructions with 32 double-word
  6171. registers. '+neon-vfpv3': Alias for '+neon'. '+neon-fp16':
  6172. Enables VFPv3, half precision floating-point conversion and NEONv1
  6173. instructions with 32 double-word registers. double-word registers.
  6174. '+nofp': Disables all FPU and NEON instructions. '+nosimd':
  6175. Disables all NEON instructions.
  6176. For 'armv7-r':
  6177. '+fp.sp': Enables single-precision only VFPv3 instructions with 16
  6178. double-word registers. '+vfpv3xd': Alias for '+fp.sp'. '+fp':
  6179. Enables VFPv3 instructions with 16 double-word registers.
  6180. '+vfpv3-d16': Alias for '+fp'. '+vfpv3xd-fp16': Enables
  6181. single-precision only VFPv3 and half floating-point conversion
  6182. instructions with 16 double-word registers. '+vfpv3-d16-fp16':
  6183. Enables VFPv3 and half precision floating-point conversion
  6184. instructions with 16 double-word registers. '+idiv': Enables
  6185. integer division instructions in ARM mode. '+nofp': Disables all
  6186. FPU instructions.
  6187. For 'armv7e-m':
  6188. '+fp': Enables single-precision only VFPv4 instructions with 16
  6189. double-word registers. '+vfpvf4-sp-d16': Alias for '+fp'.
  6190. '+fpv5': Enables single-precision only VFPv5 instructions with 16
  6191. double-word registers. '+fp.dp': Enables VFPv5 instructions with
  6192. 16 double-word registers. '+fpv5-d16"': Alias for '+fp.dp'.
  6193. '+nofp': Disables all FPU instructions.
  6194. For 'armv8-m.main':
  6195. '+dsp': Enables DSP Extension. '+fp': Enables single-precision
  6196. only VFPv5 instructions with 16 double-word registers. '+fp.dp':
  6197. Enables VFPv5 instructions with 16 double-word registers.
  6198. '+cdecp0' (CDE extensions for v8-m architecture with coprocessor
  6199. 0), '+cdecp1' (CDE extensions for v8-m architecture with
  6200. coprocessor 1), '+cdecp2' (CDE extensions for v8-m architecture
  6201. with coprocessor 2), '+cdecp3' (CDE extensions for v8-m
  6202. architecture with coprocessor 3), '+cdecp4' (CDE extensions for
  6203. v8-m architecture with coprocessor 4), '+cdecp5' (CDE extensions
  6204. for v8-m architecture with coprocessor 5), '+cdecp6' (CDE
  6205. extensions for v8-m architecture with coprocessor 6), '+cdecp7'
  6206. (CDE extensions for v8-m architecture with coprocessor 7), '+nofp':
  6207. Disables all FPU instructions. '+nodsp': Disables DSP Extension.
  6208. For 'armv8.1-m.main':
  6209. '+dsp': Enables DSP Extension. '+fp': Enables single and half
  6210. precision scalar Floating Point Extensions for Armv8.1-M Mainline
  6211. with 16 double-word registers. '+fp.dp': Enables double precision
  6212. scalar Floating Point Extensions for Armv8.1-M Mainline, implies
  6213. '+fp'. '+mve': Enables integer only M-profile Vector Extension for
  6214. Armv8.1-M Mainline, implies '+dsp'. '+mve.fp': Enables Floating
  6215. Point M-profile Vector Extension for Armv8.1-M Mainline, implies
  6216. '+mve' and '+fp'. '+nofp': Disables all FPU instructions.
  6217. '+nodsp': Disables DSP Extension. '+nomve': Disables all M-profile
  6218. Vector Extensions.
  6219. For 'armv8-a':
  6220. '+crc': Enables CRC32 Extension. '+simd': Enables VFP and NEON for
  6221. Armv8-A. '+crypto': Enables Cryptography Extensions for Armv8-A,
  6222. implies '+simd'. '+sb': Enables Speculation Barrier Instruction
  6223. for Armv8-A. '+predres': Enables Execution and Data Prediction
  6224. Restriction Instruction for Armv8-A. '+nofp': Disables all FPU,
  6225. NEON and Cryptography Extensions. '+nocrypto': Disables
  6226. Cryptography Extensions.
  6227. For 'armv8.1-a':
  6228. '+simd': Enables VFP and NEON for Armv8.1-A. '+crypto': Enables
  6229. Cryptography Extensions for Armv8-A, implies '+simd'. '+sb':
  6230. Enables Speculation Barrier Instruction for Armv8-A. '+predres':
  6231. Enables Execution and Data Prediction Restriction Instruction for
  6232. Armv8-A. '+nofp': Disables all FPU, NEON and Cryptography
  6233. Extensions. '+nocrypto': Disables Cryptography Extensions.
  6234. For 'armv8.2-a' and 'armv8.3-a':
  6235. '+simd': Enables VFP and NEON for Armv8.1-A. '+fp16': Enables FP16
  6236. Extension for Armv8.2-A, implies '+simd'. '+fp16fml': Enables FP16
  6237. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6238. implies '+fp16'. '+crypto': Enables Cryptography Extensions for
  6239. Armv8-A, implies '+simd'. '+dotprod': Enables Dot Product
  6240. Extensions for Armv8.2-A, implies '+simd'. '+sb': Enables
  6241. Speculation Barrier Instruction for Armv8-A. '+predres': Enables
  6242. Execution and Data Prediction Restriction Instruction for Armv8-A.
  6243. '+nofp': Disables all FPU, NEON, Cryptography and Dot Product
  6244. Extensions. '+nocrypto': Disables Cryptography Extensions.
  6245. For 'armv8.4-a':
  6246. '+simd': Enables VFP and NEON for Armv8.1-A and Dot Product
  6247. Extensions for Armv8.2-A. '+fp16': Enables FP16 Floating Point and
  6248. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6249. implies '+simd'. '+crypto': Enables Cryptography Extensions for
  6250. Armv8-A, implies '+simd'. '+sb': Enables Speculation Barrier
  6251. Instruction for Armv8-A. '+predres': Enables Execution and Data
  6252. Prediction Restriction Instruction for Armv8-A. '+nofp': Disables
  6253. all FPU, NEON, Cryptography and Dot Product Extensions.
  6254. '+nocryptp': Disables Cryptography Extensions.
  6255. For 'armv8.5-a':
  6256. '+simd': Enables VFP and NEON for Armv8.1-A and Dot Product
  6257. Extensions for Armv8.2-A. '+fp16': Enables FP16 Floating Point and
  6258. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6259. implies '+simd'. '+crypto': Enables Cryptography Extensions for
  6260. Armv8-A, implies '+simd'. '+nofp': Disables all FPU, NEON,
  6261. Cryptography and Dot Product Extensions. '+nocryptp': Disables
  6262. Cryptography Extensions.
  6263. '-mfpu=FLOATING-POINT-FORMAT'
  6264. This option specifies the floating point format to assemble for.
  6265. The assembler will issue an error message if an attempt is made to
  6266. assemble an instruction which will not execute on the target
  6267. floating point unit. The following format options are recognized:
  6268. 'softfpa', 'fpe', 'fpe2', 'fpe3', 'fpa', 'fpa10', 'fpa11',
  6269. 'arm7500fe', 'softvfp', 'softvfp+vfp', 'vfp', 'vfp10', 'vfp10-r0',
  6270. 'vfp9', 'vfpxd', 'vfpv2', 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16',
  6271. 'vfpv3-d16-fp16', 'vfpv3xd', 'vfpv3xd-d16', 'vfpv4', 'vfpv4-d16',
  6272. 'fpv4-sp-d16', 'fpv5-sp-d16', 'fpv5-d16', 'fp-armv8', 'arm1020t',
  6273. 'arm1020e', 'arm1136jf-s', 'maverick', 'neon', 'neon-vfpv3',
  6274. 'neon-fp16', 'neon-vfpv4', 'neon-fp-armv8', 'crypto-neon-fp-armv8',
  6275. 'neon-fp-armv8.1' and 'crypto-neon-fp-armv8.1'.
  6276. In addition to determining which instructions are assembled, this
  6277. option also affects the way in which the '.double' assembler
  6278. directive behaves when assembling little-endian code.
  6279. The default is dependent on the processor selected. For
  6280. Architecture 5 or later, the default is to assemble for VFP
  6281. instructions; for earlier architectures the default is to assemble
  6282. for FPA instructions.
  6283. '-mfp16-format=FORMAT'
  6284. This option specifies the half-precision floating point format to
  6285. use when assembling floating point numbers emitted by the
  6286. '.float16' directive. The following format options are recognized:
  6287. 'ieee', 'alternative'. If 'ieee' is specified then the IEEE
  6288. 754-2008 half-precision floating point format is used, if
  6289. 'alternative' is specified then the Arm alternative half-precision
  6290. format is used. If this option is set on the command line then the
  6291. format is fixed and cannot be changed with the 'float16_format'
  6292. directive. If this value is not set then the IEEE 754-2008 format
  6293. is used until the format is explicitly set with the
  6294. 'float16_format' directive.
  6295. '-mthumb'
  6296. This option specifies that the assembler should start assembling
  6297. Thumb instructions; that is, it should behave as though the file
  6298. starts with a '.code 16' directive.
  6299. '-mthumb-interwork'
  6300. This option specifies that the output generated by the assembler
  6301. should be marked as supporting interworking. It also affects the
  6302. behaviour of the 'ADR' and 'ADRL' pseudo opcodes.
  6303. '-mimplicit-it=never'
  6304. '-mimplicit-it=always'
  6305. '-mimplicit-it=arm'
  6306. '-mimplicit-it=thumb'
  6307. The '-mimplicit-it' option controls the behavior of the assembler
  6308. when conditional instructions are not enclosed in IT blocks. There
  6309. are four possible behaviors. If 'never' is specified, such
  6310. constructs cause a warning in ARM code and an error in Thumb-2
  6311. code. If 'always' is specified, such constructs are accepted in
  6312. both ARM and Thumb-2 code, where the IT instruction is added
  6313. implicitly. If 'arm' is specified, such constructs are accepted in
  6314. ARM code and cause an error in Thumb-2 code. If 'thumb' is
  6315. specified, such constructs cause a warning in ARM code and are
  6316. accepted in Thumb-2 code. If you omit this option, the behavior is
  6317. equivalent to '-mimplicit-it=arm'.
  6318. '-mapcs-26'
  6319. '-mapcs-32'
  6320. These options specify that the output generated by the assembler
  6321. should be marked as supporting the indicated version of the Arm
  6322. Procedure. Calling Standard.
  6323. '-matpcs'
  6324. This option specifies that the output generated by the assembler
  6325. should be marked as supporting the Arm/Thumb Procedure Calling
  6326. Standard. If enabled this option will cause the assembler to
  6327. create an empty debugging section in the object file called
  6328. .arm.atpcs. Debuggers can use this to determine the ABI being used
  6329. by.
  6330. '-mapcs-float'
  6331. This indicates the floating point variant of the APCS should be
  6332. used. In this variant floating point arguments are passed in FP
  6333. registers rather than integer registers.
  6334. '-mapcs-reentrant'
  6335. This indicates that the reentrant variant of the APCS should be
  6336. used. This variant supports position independent code.
  6337. '-mfloat-abi=ABI'
  6338. This option specifies that the output generated by the assembler
  6339. should be marked as using specified floating point ABI. The
  6340. following values are recognized: 'soft', 'softfp' and 'hard'.
  6341. '-meabi=VER'
  6342. This option specifies which EABI version the produced object files
  6343. should conform to. The following values are recognized: 'gnu', '4'
  6344. and '5'.
  6345. '-EB'
  6346. This option specifies that the output generated by the assembler
  6347. should be marked as being encoded for a big-endian processor.
  6348. Note: If a program is being built for a system with big-endian data
  6349. and little-endian instructions then it should be assembled with the
  6350. '-EB' option, (all of it, code and data) and then linked with the
  6351. '--be8' option. This will reverse the endianness of the
  6352. instructions back to little-endian, but leave the data as
  6353. big-endian.
  6354. '-EL'
  6355. This option specifies that the output generated by the assembler
  6356. should be marked as being encoded for a little-endian processor.
  6357. '-k'
  6358. This option specifies that the output of the assembler should be
  6359. marked as position-independent code (PIC).
  6360. '--fix-v4bx'
  6361. Allow 'BX' instructions in ARMv4 code. This is intended for use
  6362. with the linker option of the same name.
  6363. '-mwarn-deprecated'
  6364. '-mno-warn-deprecated'
  6365. Enable or disable warnings about using deprecated options or
  6366. features. The default is to warn.
  6367. '-mccs'
  6368. Turns on CodeComposer Studio assembly syntax compatibility mode.
  6369. '-mwarn-syms'
  6370. '-mno-warn-syms'
  6371. Enable or disable warnings about symbols that match the names of
  6372. ARM instructions. The default is to warn.
  6373. 
  6374. File: as.info, Node: ARM Syntax, Next: ARM Floating Point, Prev: ARM Options, Up: ARM-Dependent
  6375. 9.4.2 Syntax
  6376. ------------
  6377. * Menu:
  6378. * ARM-Instruction-Set:: Instruction Set
  6379. * ARM-Chars:: Special Characters
  6380. * ARM-Regs:: Register Names
  6381. * ARM-Relocations:: Relocations
  6382. * ARM-Neon-Alignment:: NEON Alignment Specifiers
  6383. 
  6384. File: as.info, Node: ARM-Instruction-Set, Next: ARM-Chars, Up: ARM Syntax
  6385. 9.4.2.1 Instruction Set Syntax
  6386. ..............................
  6387. Two slightly different syntaxes are support for ARM and THUMB
  6388. instructions. The default, 'divided', uses the old style where ARM and
  6389. THUMB instructions had their own, separate syntaxes. The new, 'unified'
  6390. syntax, which can be selected via the '.syntax' directive, and has the
  6391. following main features:
  6392. * Immediate operands do not require a '#' prefix.
  6393. * The 'IT' instruction may appear, and if it does it is validated
  6394. against subsequent conditional affixes. In ARM mode it does not
  6395. generate machine code, in THUMB mode it does.
  6396. * For ARM instructions the conditional affixes always appear at the
  6397. end of the instruction. For THUMB instructions conditional affixes
  6398. can be used, but only inside the scope of an 'IT' instruction.
  6399. * All of the instructions new to the V6T2 architecture (and later)
  6400. are available. (Only a few such instructions can be written in the
  6401. 'divided' syntax).
  6402. * The '.N' and '.W' suffixes are recognized and honored.
  6403. * All instructions set the flags if and only if they have an 's'
  6404. affix.
  6405. 
  6406. File: as.info, Node: ARM-Chars, Next: ARM-Regs, Prev: ARM-Instruction-Set, Up: ARM Syntax
  6407. 9.4.2.2 Special Characters
  6408. ..........................
  6409. The presence of a '@' anywhere on a line indicates the start of a
  6410. comment that extends to the end of that line.
  6411. If a '#' appears as the first character of a line then the whole line
  6412. is treated as a comment, but in this case the line could also be a
  6413. logical line number directive (*note Comments::) or a preprocessor
  6414. control command (*note Preprocessing::).
  6415. The ';' character can be used instead of a newline to separate
  6416. statements.
  6417. Either '#' or '$' can be used to indicate immediate operands.
  6418. *TODO* Explain about /data modifier on symbols.
  6419. 
  6420. File: as.info, Node: ARM-Regs, Next: ARM-Relocations, Prev: ARM-Chars, Up: ARM Syntax
  6421. 9.4.2.3 Register Names
  6422. ......................
  6423. *TODO* Explain about ARM register naming, and the predefined names.
  6424. 
  6425. File: as.info, Node: ARM-Relocations, Next: ARM-Neon-Alignment, Prev: ARM-Regs, Up: ARM Syntax
  6426. 9.4.2.4 ARM relocation generation
  6427. .................................
  6428. Specific data relocations can be generated by putting the relocation
  6429. name in parentheses after the symbol name. For example:
  6430. .word foo(TARGET1)
  6431. This will generate an 'R_ARM_TARGET1' relocation against the symbol
  6432. FOO. The following relocations are supported: 'GOT', 'GOTOFF',
  6433. 'TARGET1', 'TARGET2', 'SBREL', 'TLSGD', 'TLSLDM', 'TLSLDO', 'TLSDESC',
  6434. 'TLSCALL', 'GOTTPOFF', 'GOT_PREL' and 'TPOFF'.
  6435. For compatibility with older toolchains the assembler also accepts
  6436. '(PLT)' after branch targets. On legacy targets this will generate the
  6437. deprecated 'R_ARM_PLT32' relocation. On EABI targets it will encode
  6438. either the 'R_ARM_CALL' or 'R_ARM_JUMP24' relocation, as appropriate.
  6439. Relocations for 'MOVW' and 'MOVT' instructions can be generated by
  6440. prefixing the value with '#:lower16:' and '#:upper16' respectively. For
  6441. example to load the 32-bit address of foo into r0:
  6442. MOVW r0, #:lower16:foo
  6443. MOVT r0, #:upper16:foo
  6444. Relocations 'R_ARM_THM_ALU_ABS_G0_NC', 'R_ARM_THM_ALU_ABS_G1_NC',
  6445. 'R_ARM_THM_ALU_ABS_G2_NC' and 'R_ARM_THM_ALU_ABS_G3_NC' can be generated
  6446. by prefixing the value with '#:lower0_7:#', '#:lower8_15:#',
  6447. '#:upper0_7:#' and '#:upper8_15:#' respectively. For example to load
  6448. the 32-bit address of foo into r0:
  6449. MOVS r0, #:upper8_15:#foo
  6450. LSLS r0, r0, #8
  6451. ADDS r0, #:upper0_7:#foo
  6452. LSLS r0, r0, #8
  6453. ADDS r0, #:lower8_15:#foo
  6454. LSLS r0, r0, #8
  6455. ADDS r0, #:lower0_7:#foo
  6456. 
  6457. File: as.info, Node: ARM-Neon-Alignment, Prev: ARM-Relocations, Up: ARM Syntax
  6458. 9.4.2.5 NEON Alignment Specifiers
  6459. .................................
  6460. Some NEON load/store instructions allow an optional address alignment
  6461. qualifier. The ARM documentation specifies that this is indicated by '@
  6462. ALIGN'. However GAS already interprets the '@' character as a "line
  6463. comment" start, so ': ALIGN' is used instead. For example:
  6464. vld1.8 {q0}, [r0, :128]
  6465. 
  6466. File: as.info, Node: ARM Floating Point, Next: ARM Directives, Prev: ARM Syntax, Up: ARM-Dependent
  6467. 9.4.3 Floating Point
  6468. --------------------
  6469. The ARM family uses IEEE floating-point numbers.
  6470. 
  6471. File: as.info, Node: ARM Directives, Next: ARM Opcodes, Prev: ARM Floating Point, Up: ARM-Dependent
  6472. 9.4.4 ARM Machine Directives
  6473. ----------------------------
  6474. '.align EXPRESSION [, EXPRESSION]'
  6475. This is the generic .ALIGN directive. For the ARM however if the
  6476. first argument is zero (ie no alignment is needed) the assembler
  6477. will behave as if the argument had been 2 (ie pad to the next four
  6478. byte boundary). This is for compatibility with ARM's own
  6479. assembler.
  6480. '.arch NAME'
  6481. Select the target architecture. Valid values for NAME are the same
  6482. as for the '-march' command-line option without the instruction set
  6483. extension.
  6484. Specifying '.arch' clears any previously selected architecture
  6485. extensions.
  6486. '.arch_extension NAME'
  6487. Add or remove an architecture extension to the target architecture.
  6488. Valid values for NAME are the same as those accepted as
  6489. architectural extensions by the '-mcpu' and '-march' command-line
  6490. options.
  6491. '.arch_extension' may be used multiple times to add or remove
  6492. extensions incrementally to the architecture being compiled for.
  6493. '.arm'
  6494. This performs the same action as .CODE 32.
  6495. '.bss'
  6496. This directive switches to the '.bss' section.
  6497. '.cantunwind'
  6498. Prevents unwinding through the current function. No personality
  6499. routine or exception table data is required or permitted.
  6500. '.code [16|32]'
  6501. This directive selects the instruction set being generated. The
  6502. value 16 selects Thumb, with the value 32 selecting ARM.
  6503. '.cpu NAME'
  6504. Select the target processor. Valid values for NAME are the same as
  6505. for the '-mcpu' command-line option without the instruction set
  6506. extension.
  6507. Specifying '.cpu' clears any previously selected architecture
  6508. extensions.
  6509. 'NAME .dn REGISTER NAME [.TYPE] [[INDEX]]'
  6510. 'NAME .qn REGISTER NAME [.TYPE] [[INDEX]]'
  6511. The 'dn' and 'qn' directives are used to create typed and/or
  6512. indexed register aliases for use in Advanced SIMD Extension (Neon)
  6513. instructions. The former should be used to create aliases of
  6514. double-precision registers, and the latter to create aliases of
  6515. quad-precision registers.
  6516. If these directives are used to create typed aliases, those aliases
  6517. can be used in Neon instructions instead of writing types after the
  6518. mnemonic or after each operand. For example:
  6519. x .dn d2.f32
  6520. y .dn d3.f32
  6521. z .dn d4.f32[1]
  6522. vmul x,y,z
  6523. This is equivalent to writing the following:
  6524. vmul.f32 d2,d3,d4[1]
  6525. Aliases created using 'dn' or 'qn' can be destroyed using 'unreq'.
  6526. '.eabi_attribute TAG, VALUE'
  6527. Set the EABI object attribute TAG to VALUE.
  6528. The TAG is either an attribute number, or one of the following:
  6529. 'Tag_CPU_raw_name', 'Tag_CPU_name', 'Tag_CPU_arch',
  6530. 'Tag_CPU_arch_profile', 'Tag_ARM_ISA_use', 'Tag_THUMB_ISA_use',
  6531. 'Tag_FP_arch', 'Tag_WMMX_arch', 'Tag_Advanced_SIMD_arch',
  6532. 'Tag_MVE_arch', 'Tag_PCS_config', 'Tag_ABI_PCS_R9_use',
  6533. 'Tag_ABI_PCS_RW_data', 'Tag_ABI_PCS_RO_data',
  6534. 'Tag_ABI_PCS_GOT_use', 'Tag_ABI_PCS_wchar_t',
  6535. 'Tag_ABI_FP_rounding', 'Tag_ABI_FP_denormal',
  6536. 'Tag_ABI_FP_exceptions', 'Tag_ABI_FP_user_exceptions',
  6537. 'Tag_ABI_FP_number_model', 'Tag_ABI_align_needed',
  6538. 'Tag_ABI_align_preserved', 'Tag_ABI_enum_size',
  6539. 'Tag_ABI_HardFP_use', 'Tag_ABI_VFP_args', 'Tag_ABI_WMMX_args',
  6540. 'Tag_ABI_optimization_goals', 'Tag_ABI_FP_optimization_goals',
  6541. 'Tag_compatibility', 'Tag_CPU_unaligned_access',
  6542. 'Tag_FP_HP_extension', 'Tag_ABI_FP_16bit_format',
  6543. 'Tag_MPextension_use', 'Tag_DIV_use', 'Tag_nodefaults',
  6544. 'Tag_also_compatible_with', 'Tag_conformance', 'Tag_T2EE_use',
  6545. 'Tag_Virtualization_use'
  6546. The VALUE is either a 'number', '"string"', or 'number, "string"'
  6547. depending on the tag.
  6548. Note - the following legacy values are also accepted by TAG:
  6549. 'Tag_VFP_arch', 'Tag_ABI_align8_needed',
  6550. 'Tag_ABI_align8_preserved', 'Tag_VFP_HP_extension',
  6551. '.even'
  6552. This directive aligns to an even-numbered address.
  6553. '.extend EXPRESSION [, EXPRESSION]*'
  6554. '.ldouble EXPRESSION [, EXPRESSION]*'
  6555. These directives write 12byte long double floating-point values to
  6556. the output section. These are not compatible with current ARM
  6557. processors or ABIs.
  6558. '.float16 VALUE [,...,VALUE_N]'
  6559. Place the half precision floating point representation of one or
  6560. more floating-point values into the current section. The exact
  6561. format of the encoding is specified by '.float16_format'. If the
  6562. format has not been explicitly set yet (either via the
  6563. '.float16_format' directive or the command line option) then the
  6564. IEEE 754-2008 format is used.
  6565. '.float16_format FORMAT'
  6566. Set the format to use when encoding float16 values emitted by the
  6567. '.float16' directive. Once the format has been set it cannot be
  6568. changed. 'format' should be one of the following: 'ieee' (encode
  6569. in the IEEE 754-2008 half precision format) or 'alternative'
  6570. (encode in the Arm alternative half precision format).
  6571. '.fnend'
  6572. Marks the end of a function with an unwind table entry. The unwind
  6573. index table entry is created when this directive is processed.
  6574. If no personality routine has been specified then standard
  6575. personality routine 0 or 1 will be used, depending on the number of
  6576. unwind opcodes required.
  6577. '.fnstart'
  6578. Marks the start of a function with an unwind table entry.
  6579. '.force_thumb'
  6580. This directive forces the selection of Thumb instructions, even if
  6581. the target processor does not support those instructions
  6582. '.fpu NAME'
  6583. Select the floating-point unit to assemble for. Valid values for
  6584. NAME are the same as for the '-mfpu' command-line option.
  6585. '.handlerdata'
  6586. Marks the end of the current function, and the start of the
  6587. exception table entry for that function. Anything between this
  6588. directive and the '.fnend' directive will be added to the exception
  6589. table entry.
  6590. Must be preceded by a '.personality' or '.personalityindex'
  6591. directive.
  6592. '.inst OPCODE [ , ... ]'
  6593. '.inst.n OPCODE [ , ... ]'
  6594. '.inst.w OPCODE [ , ... ]'
  6595. Generates the instruction corresponding to the numerical value
  6596. OPCODE. '.inst.n' and '.inst.w' allow the Thumb instruction size
  6597. to be specified explicitly, overriding the normal encoding rules.
  6598. '.ldouble EXPRESSION [, EXPRESSION]*'
  6599. See '.extend'.
  6600. '.ltorg'
  6601. This directive causes the current contents of the literal pool to
  6602. be dumped into the current section (which is assumed to be the
  6603. .text section) at the current location (aligned to a word
  6604. boundary). 'GAS' maintains a separate literal pool for each
  6605. section and each sub-section. The '.ltorg' directive will only
  6606. affect the literal pool of the current section and sub-section. At
  6607. the end of assembly all remaining, un-empty literal pools will
  6608. automatically be dumped.
  6609. Note - older versions of 'GAS' would dump the current literal pool
  6610. any time a section change occurred. This is no longer done, since
  6611. it prevents accurate control of the placement of literal pools.
  6612. '.movsp REG [, #OFFSET]'
  6613. Tell the unwinder that REG contains an offset from the current
  6614. stack pointer. If OFFSET is not specified then it is assumed to be
  6615. zero.
  6616. '.object_arch NAME'
  6617. Override the architecture recorded in the EABI object attribute
  6618. section. Valid values for NAME are the same as for the '.arch'
  6619. directive. Typically this is useful when code uses runtime
  6620. detection of CPU features.
  6621. '.packed EXPRESSION [, EXPRESSION]*'
  6622. This directive writes 12-byte packed floating-point values to the
  6623. output section. These are not compatible with current ARM
  6624. processors or ABIs.
  6625. '.pad #COUNT'
  6626. Generate unwinder annotations for a stack adjustment of COUNT
  6627. bytes. A positive value indicates the function prologue allocated
  6628. stack space by decrementing the stack pointer.
  6629. '.personality NAME'
  6630. Sets the personality routine for the current function to NAME.
  6631. '.personalityindex INDEX'
  6632. Sets the personality routine for the current function to the EABI
  6633. standard routine number INDEX
  6634. '.pool'
  6635. This is a synonym for .ltorg.
  6636. 'NAME .req REGISTER NAME'
  6637. This creates an alias for REGISTER NAME called NAME. For example:
  6638. foo .req r0
  6639. '.save REGLIST'
  6640. Generate unwinder annotations to restore the registers in REGLIST.
  6641. The format of REGLIST is the same as the corresponding
  6642. store-multiple instruction.
  6643. _core registers_
  6644. .save {r4, r5, r6, lr}
  6645. stmfd sp!, {r4, r5, r6, lr}
  6646. _FPA registers_
  6647. .save f4, 2
  6648. sfmfd f4, 2, [sp]!
  6649. _VFP registers_
  6650. .save {d8, d9, d10}
  6651. fstmdx sp!, {d8, d9, d10}
  6652. _iWMMXt registers_
  6653. .save {wr10, wr11}
  6654. wstrd wr11, [sp, #-8]!
  6655. wstrd wr10, [sp, #-8]!
  6656. or
  6657. .save wr11
  6658. wstrd wr11, [sp, #-8]!
  6659. .save wr10
  6660. wstrd wr10, [sp, #-8]!
  6661. '.setfp FPREG, SPREG [, #OFFSET]'
  6662. Make all unwinder annotations relative to a frame pointer. Without
  6663. this the unwinder will use offsets from the stack pointer.
  6664. The syntax of this directive is the same as the 'add' or 'mov'
  6665. instruction used to set the frame pointer. SPREG must be either
  6666. 'sp' or mentioned in a previous '.movsp' directive.
  6667. .movsp ip
  6668. mov ip, sp
  6669. ...
  6670. .setfp fp, ip, #4
  6671. add fp, ip, #4
  6672. '.secrel32 EXPRESSION [, EXPRESSION]*'
  6673. This directive emits relocations that evaluate to the
  6674. section-relative offset of each expression's symbol. This
  6675. directive is only supported for PE targets.
  6676. '.syntax [unified | divided]'
  6677. This directive sets the Instruction Set Syntax as described in the
  6678. *note ARM-Instruction-Set:: section.
  6679. '.thumb'
  6680. This performs the same action as .CODE 16.
  6681. '.thumb_func'
  6682. This directive specifies that the following symbol is the name of a
  6683. Thumb encoded function. This information is necessary in order to
  6684. allow the assembler and linker to generate correct code for
  6685. interworking between Arm and Thumb instructions and should be used
  6686. even if interworking is not going to be performed. The presence of
  6687. this directive also implies '.thumb'
  6688. This directive is not necessary when generating EABI objects. On
  6689. these targets the encoding is implicit when generating Thumb code.
  6690. '.thumb_set'
  6691. This performs the equivalent of a '.set' directive in that it
  6692. creates a symbol which is an alias for another symbol (possibly not
  6693. yet defined). This directive also has the added property in that
  6694. it marks the aliased symbol as being a thumb function entry point,
  6695. in the same way that the '.thumb_func' directive does.
  6696. '.tlsdescseq TLS-VARIABLE'
  6697. This directive is used to annotate parts of an inlined TLS
  6698. descriptor trampoline. Normally the trampoline is provided by the
  6699. linker, and this directive is not needed.
  6700. '.unreq ALIAS-NAME'
  6701. This undefines a register alias which was previously defined using
  6702. the 'req', 'dn' or 'qn' directives. For example:
  6703. foo .req r0
  6704. .unreq foo
  6705. An error occurs if the name is undefined. Note - this pseudo op
  6706. can be used to delete builtin in register name aliases (eg 'r0').
  6707. This should only be done if it is really necessary.
  6708. '.unwind_raw OFFSET, BYTE1, ...'
  6709. Insert one of more arbitrary unwind opcode bytes, which are known
  6710. to adjust the stack pointer by OFFSET bytes.
  6711. For example '.unwind_raw 4, 0xb1, 0x01' is equivalent to '.save
  6712. {r0}'
  6713. '.vsave VFP-REGLIST'
  6714. Generate unwinder annotations to restore the VFP registers in
  6715. VFP-REGLIST using FLDMD. Also works for VFPv3 registers that are to
  6716. be restored using VLDM. The format of VFP-REGLIST is the same as
  6717. the corresponding store-multiple instruction.
  6718. _VFP registers_
  6719. .vsave {d8, d9, d10}
  6720. fstmdd sp!, {d8, d9, d10}
  6721. _VFPv3 registers_
  6722. .vsave {d15, d16, d17}
  6723. vstm sp!, {d15, d16, d17}
  6724. Since FLDMX and FSTMX are now deprecated, this directive should be
  6725. used in favour of '.save' for saving VFP registers for ARMv6 and
  6726. above.
  6727. 
  6728. File: as.info, Node: ARM Opcodes, Next: ARM Mapping Symbols, Prev: ARM Directives, Up: ARM-Dependent
  6729. 9.4.5 Opcodes
  6730. -------------
  6731. 'as' implements all the standard ARM opcodes. It also implements
  6732. several pseudo opcodes, including several synthetic load instructions.
  6733. 'NOP'
  6734. nop
  6735. This pseudo op will always evaluate to a legal ARM instruction that
  6736. does nothing. Currently it will evaluate to MOV r0, r0.
  6737. 'LDR'
  6738. ldr <register> , = <expression>
  6739. If expression evaluates to a numeric constant then a MOV or MVN
  6740. instruction will be used in place of the LDR instruction, if the
  6741. constant can be generated by either of these instructions.
  6742. Otherwise the constant will be placed into the nearest literal pool
  6743. (if it not already there) and a PC relative LDR instruction will be
  6744. generated.
  6745. 'ADR'
  6746. adr <register> <label>
  6747. This instruction will load the address of LABEL into the indicated
  6748. register. The instruction will evaluate to a PC relative ADD or
  6749. SUB instruction depending upon where the label is located. If the
  6750. label is out of range, or if it is not defined in the same file
  6751. (and section) as the ADR instruction, then an error will be
  6752. generated. This instruction will not make use of the literal pool.
  6753. If LABEL is a thumb function symbol, and thumb interworking has
  6754. been enabled via the '-mthumb-interwork' option then the bottom bit
  6755. of the value stored into REGISTER will be set. This allows the
  6756. following sequence to work as expected:
  6757. adr r0, thumb_function
  6758. blx r0
  6759. 'ADRL'
  6760. adrl <register> <label>
  6761. This instruction will load the address of LABEL into the indicated
  6762. register. The instruction will evaluate to one or two PC relative
  6763. ADD or SUB instructions depending upon where the label is located.
  6764. If a second instruction is not needed a NOP instruction will be
  6765. generated in its place, so that this instruction is always 8 bytes
  6766. long.
  6767. If the label is out of range, or if it is not defined in the same
  6768. file (and section) as the ADRL instruction, then an error will be
  6769. generated. This instruction will not make use of the literal pool.
  6770. If LABEL is a thumb function symbol, and thumb interworking has
  6771. been enabled via the '-mthumb-interwork' option then the bottom bit
  6772. of the value stored into REGISTER will be set.
  6773. For information on the ARM or Thumb instruction sets, see 'ARM
  6774. Software Development Toolkit Reference Manual', Advanced RISC Machines
  6775. Ltd.
  6776. 
  6777. File: as.info, Node: ARM Mapping Symbols, Next: ARM Unwinding Tutorial, Prev: ARM Opcodes, Up: ARM-Dependent
  6778. 9.4.6 Mapping Symbols
  6779. ---------------------
  6780. The ARM ELF specification requires that special symbols be inserted into
  6781. object files to mark certain features:
  6782. '$a'
  6783. At the start of a region of code containing ARM instructions.
  6784. '$t'
  6785. At the start of a region of code containing THUMB instructions.
  6786. '$d'
  6787. At the start of a region of data.
  6788. The assembler will automatically insert these symbols for you - there
  6789. is no need to code them yourself. Support for tagging symbols ($b, $f,
  6790. $p and $m) which is also mentioned in the current ARM ELF specification
  6791. is not implemented. This is because they have been dropped from the new
  6792. EABI and so tools cannot rely upon their presence.
  6793. 
  6794. File: as.info, Node: ARM Unwinding Tutorial, Prev: ARM Mapping Symbols, Up: ARM-Dependent
  6795. 9.4.7 Unwinding
  6796. ---------------
  6797. The ABI for the ARM Architecture specifies a standard format for
  6798. exception unwind information. This information is used when an
  6799. exception is thrown to determine where control should be transferred.
  6800. In particular, the unwind information is used to determine which
  6801. function called the function that threw the exception, and which
  6802. function called that one, and so forth. This information is also used
  6803. to restore the values of callee-saved registers in the function catching
  6804. the exception.
  6805. If you are writing functions in assembly code, and those functions
  6806. call other functions that throw exceptions, you must use assembly pseudo
  6807. ops to ensure that appropriate exception unwind information is
  6808. generated. Otherwise, if one of the functions called by your assembly
  6809. code throws an exception, the run-time library will be unable to unwind
  6810. the stack through your assembly code and your program will not behave
  6811. correctly.
  6812. To illustrate the use of these pseudo ops, we will examine the code
  6813. that G++ generates for the following C++ input:
  6814. void callee (int *);
  6815. int
  6816. caller ()
  6817. {
  6818. int i;
  6819. callee (&i);
  6820. return i;
  6821. }
  6822. This example does not show how to throw or catch an exception from
  6823. assembly code. That is a much more complex operation and should always
  6824. be done in a high-level language, such as C++, that directly supports
  6825. exceptions.
  6826. The code generated by one particular version of G++ when compiling
  6827. the example above is:
  6828. _Z6callerv:
  6829. .fnstart
  6830. .LFB2:
  6831. @ Function supports interworking.
  6832. @ args = 0, pretend = 0, frame = 8
  6833. @ frame_needed = 1, uses_anonymous_args = 0
  6834. stmfd sp!, {fp, lr}
  6835. .save {fp, lr}
  6836. .LCFI0:
  6837. .setfp fp, sp, #4
  6838. add fp, sp, #4
  6839. .LCFI1:
  6840. .pad #8
  6841. sub sp, sp, #8
  6842. .LCFI2:
  6843. sub r3, fp, #8
  6844. mov r0, r3
  6845. bl _Z6calleePi
  6846. ldr r3, [fp, #-8]
  6847. mov r0, r3
  6848. sub sp, fp, #4
  6849. ldmfd sp!, {fp, lr}
  6850. bx lr
  6851. .LFE2:
  6852. .fnend
  6853. Of course, the sequence of instructions varies based on the options
  6854. you pass to GCC and on the version of GCC in use. The exact
  6855. instructions are not important since we are focusing on the pseudo ops
  6856. that are used to generate unwind information.
  6857. An important assumption made by the unwinder is that the stack frame
  6858. does not change during the body of the function. In particular, since
  6859. we assume that the assembly code does not itself throw an exception, the
  6860. only point where an exception can be thrown is from a call, such as the
  6861. 'bl' instruction above. At each call site, the same saved registers
  6862. (including 'lr', which indicates the return address) must be located in
  6863. the same locations relative to the frame pointer.
  6864. The '.fnstart' (*note .fnstart pseudo op: arm_fnstart.) pseudo op
  6865. appears immediately before the first instruction of the function while
  6866. the '.fnend' (*note .fnend pseudo op: arm_fnend.) pseudo op appears
  6867. immediately after the last instruction of the function. These pseudo
  6868. ops specify the range of the function.
  6869. Only the order of the other pseudos ops (e.g., '.setfp' or '.pad')
  6870. matters; their exact locations are irrelevant. In the example above,
  6871. the compiler emits the pseudo ops with particular instructions. That
  6872. makes it easier to understand the code, but it is not required for
  6873. correctness. It would work just as well to emit all of the pseudo ops
  6874. other than '.fnend' in the same order, but immediately after '.fnstart'.
  6875. The '.save' (*note .save pseudo op: arm_save.) pseudo op indicates
  6876. registers that have been saved to the stack so that they can be restored
  6877. before the function returns. The argument to the '.save' pseudo op is a
  6878. list of registers to save. If a register is "callee-saved" (as
  6879. specified by the ABI) and is modified by the function you are writing,
  6880. then your code must save the value before it is modified and restore the
  6881. original value before the function returns. If an exception is thrown,
  6882. the run-time library restores the values of these registers from their
  6883. locations on the stack before returning control to the exception
  6884. handler. (Of course, if an exception is not thrown, the function that
  6885. contains the '.save' pseudo op restores these registers in the function
  6886. epilogue, as is done with the 'ldmfd' instruction above.)
  6887. You do not have to save callee-saved registers at the very beginning
  6888. of the function and you do not need to use the '.save' pseudo op
  6889. immediately following the point at which the registers are saved.
  6890. However, if you modify a callee-saved register, you must save it on the
  6891. stack before modifying it and before calling any functions which might
  6892. throw an exception. And, you must use the '.save' pseudo op to indicate
  6893. that you have done so.
  6894. The '.pad' (*note .pad: arm_pad.) pseudo op indicates a modification
  6895. of the stack pointer that does not save any registers. The argument is
  6896. the number of bytes (in decimal) that are subtracted from the stack
  6897. pointer. (On ARM CPUs, the stack grows downwards, so subtracting from
  6898. the stack pointer increases the size of the stack.)
  6899. The '.setfp' (*note .setfp pseudo op: arm_setfp.) pseudo op indicates
  6900. the register that contains the frame pointer. The first argument is the
  6901. register that is set, which is typically 'fp'. The second argument
  6902. indicates the register from which the frame pointer takes its value.
  6903. The third argument, if present, is the value (in decimal) added to the
  6904. register specified by the second argument to compute the value of the
  6905. frame pointer. You should not modify the frame pointer in the body of
  6906. the function.
  6907. If you do not use a frame pointer, then you should not use the
  6908. '.setfp' pseudo op. If you do not use a frame pointer, then you should
  6909. avoid modifying the stack pointer outside of the function prologue.
  6910. Otherwise, the run-time library will be unable to find saved registers
  6911. when it is unwinding the stack.
  6912. The pseudo ops described above are sufficient for writing assembly
  6913. code that calls functions which may throw exceptions. If you need to
  6914. know more about the object-file format used to represent unwind
  6915. information, you may consult the 'Exception Handling ABI for the ARM
  6916. Architecture' available from <http://infocenter.arm.com>.
  6917. 
  6918. File: as.info, Node: AVR-Dependent, Next: Blackfin-Dependent, Prev: ARM-Dependent, Up: Machine Dependencies
  6919. 9.5 AVR Dependent Features
  6920. ==========================
  6921. * Menu:
  6922. * AVR Options:: Options
  6923. * AVR Syntax:: Syntax
  6924. * AVR Opcodes:: Opcodes
  6925. * AVR Pseudo Instructions:: Pseudo Instructions
  6926. 
  6927. File: as.info, Node: AVR Options, Next: AVR Syntax, Up: AVR-Dependent
  6928. 9.5.1 Options
  6929. -------------
  6930. '-mmcu=MCU'
  6931. Specify ATMEL AVR instruction set or MCU type.
  6932. Instruction set avr1 is for the minimal AVR core, not supported by
  6933. the C compiler, only for assembler programs (MCU types: at90s1200,
  6934. attiny11, attiny12, attiny15, attiny28).
  6935. Instruction set avr2 (default) is for the classic AVR core with up
  6936. to 8K program memory space (MCU types: at90s2313, at90s2323,
  6937. at90s2333, at90s2343, attiny22, attiny26, at90s4414, at90s4433,
  6938. at90s4434, at90s8515, at90c8534, at90s8535).
  6939. Instruction set avr25 is for the classic AVR core with up to 8K
  6940. program memory space plus the MOVW instruction (MCU types:
  6941. attiny13, attiny13a, attiny2313, attiny2313a, attiny24, attiny24a,
  6942. attiny4313, attiny44, attiny44a, attiny84, attiny84a, attiny25,
  6943. attiny45, attiny85, attiny261, attiny261a, attiny461, attiny461a,
  6944. attiny861, attiny861a, attiny87, attiny43u, attiny48, attiny88,
  6945. attiny828, at86rf401, ata6289, ata5272).
  6946. Instruction set avr3 is for the classic AVR core with up to 128K
  6947. program memory space (MCU types: at43usb355, at76c711).
  6948. Instruction set avr31 is for the classic AVR core with exactly 128K
  6949. program memory space (MCU types: atmega103, at43usb320).
  6950. Instruction set avr35 is for classic AVR core plus MOVW, CALL, and
  6951. JMP instructions (MCU types: attiny167, attiny1634, at90usb82,
  6952. at90usb162, atmega8u2, atmega16u2, atmega32u2, ata5505).
  6953. Instruction set avr4 is for the enhanced AVR core with up to 8K
  6954. program memory space (MCU types: atmega48, atmega48a, atmega48pa,
  6955. atmega48p, atmega8, atmega8a, atmega88, atmega88a, atmega88p,
  6956. atmega88pa, atmega8515, atmega8535, atmega8hva, at90pwm1, at90pwm2,
  6957. at90pwm2b, at90pwm3, at90pwm3b, at90pwm81, ata6285, ata6286).
  6958. Instruction set avr5 is for the enhanced AVR core with up to 128K
  6959. program memory space (MCU types: at90pwm161, atmega16, atmega16a,
  6960. atmega161, atmega162, atmega163, atmega164a, atmega164p,
  6961. atmega164pa, atmega165, atmega165a, atmega165p, atmega165pa,
  6962. atmega168, atmega168a, atmega168p, atmega168pa, atmega169,
  6963. atmega169a, atmega169p, atmega169pa, atmega32, atmega323,
  6964. atmega324a, atmega324p, atmega324pa, atmega325, atmega325a,
  6965. atmega32, atmega32a, atmega323, atmega324a, atmega324p,
  6966. atmega324pa, atmega325, atmega325a, atmega325p, atmega325p,
  6967. atmega325pa, atmega3250, atmega3250a, atmega3250p, atmega3250pa,
  6968. atmega328, atmega328p, atmega329, atmega329a, atmega329p,
  6969. atmega329pa, atmega3290a, atmega3290p, atmega3290pa, atmega406,
  6970. atmega64, atmega64a, atmega64rfr2, atmega644rfr2, atmega640,
  6971. atmega644, atmega644a, atmega644p, atmega644pa, atmega645,
  6972. atmega645a, atmega645p, atmega6450, atmega6450a, atmega6450p,
  6973. atmega649, atmega649a, atmega649p, atmega6490, atmega6490a,
  6974. atmega6490p, atmega16hva, atmega16hva2, atmega16hvb,
  6975. atmega16hvbrevb, atmega32hvb, atmega32hvbrevb, atmega64hve,
  6976. at90can32, at90can64, at90pwm161, at90pwm216, at90pwm316,
  6977. atmega32c1, atmega64c1, atmega16m1, atmega32m1, atmega64m1,
  6978. atmega16u4, atmega32u4, atmega32u6, at90usb646, at90usb647, at94k,
  6979. at90scr100, ata5790, ata5795).
  6980. Instruction set avr51 is for the enhanced AVR core with exactly
  6981. 128K program memory space (MCU types: atmega128, atmega128a,
  6982. atmega1280, atmega1281, atmega1284, atmega1284p, atmega128rfa1,
  6983. atmega128rfr2, atmega1284rfr2, at90can128, at90usb1286,
  6984. at90usb1287, m3000).
  6985. Instruction set avr6 is for the enhanced AVR core with a 3-byte PC
  6986. (MCU types: atmega2560, atmega2561, atmega256rfr2, atmega2564rfr2).
  6987. Instruction set avrxmega2 is for the XMEGA AVR core with 8K to 64K
  6988. program memory space and less than 64K data space (MCU types:
  6989. atxmega16a4, atxmega16a4u, atxmega16c4, atxmega16d4, atxmega16x1,
  6990. atxmega32a4, atxmega32a4u, atxmega32c4, atxmega32d4, atxmega16e5,
  6991. atxmega8e5, atxmega32e5, atxmega32x1).
  6992. Instruction set avrxmega3 is for the XMEGA AVR core with up to 64K
  6993. of combined program memory and RAM, and with program memory visible
  6994. in the RAM address space (MCU types: attiny212, attiny214,
  6995. attiny412, attiny414, attiny416, attiny417, attiny814, attiny816,
  6996. attiny817, attiny1614, attiny1616, attiny1617, attiny3214,
  6997. attiny3216, attiny3217).
  6998. Instruction set avrxmega4 is for the XMEGA AVR core with up to 64K
  6999. program memory space and less than 64K data space (MCU types:
  7000. atxmega64a3, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3,
  7001. atxmega64c3, atxmega64d3, atxmega64d4).
  7002. Instruction set avrxmega5 is for the XMEGA AVR core with up to 64K
  7003. program memory space and greater than 64K data space (MCU types:
  7004. atxmega64a1, atxmega64a1u).
  7005. Instruction set avrxmega6 is for the XMEGA AVR core with larger
  7006. than 64K program memory space and less than 64K data space (MCU
  7007. types: atxmega128a3, atxmega128a3u, atxmega128c3, atxmega128d3,
  7008. atxmega128d4, atxmega192a3, atxmega192a3u, atxmega128b1,
  7009. atxmega128b3, atxmega192c3, atxmega192d3, atxmega256a3,
  7010. atxmega256a3u, atxmega256a3b, atxmega256a3bu, atxmega256c3,
  7011. atxmega256d3, atxmega384c3, atxmega256d3).
  7012. Instruction set avrxmega7 is for the XMEGA AVR core with larger
  7013. than 64K program memory space and greater than 64K data space (MCU
  7014. types: atxmega128a1, atxmega128a1u, atxmega128a4u).
  7015. Instruction set avrtiny is for the ATtiny4/5/9/10/20/40
  7016. microcontrollers.
  7017. '-mall-opcodes'
  7018. Accept all AVR opcodes, even if not supported by '-mmcu'.
  7019. '-mno-skip-bug'
  7020. This option disable warnings for skipping two-word instructions.
  7021. '-mno-wrap'
  7022. This option reject 'rjmp/rcall' instructions with 8K wrap-around.
  7023. '-mrmw'
  7024. Accept Read-Modify-Write ('XCH,LAC,LAS,LAT') instructions.
  7025. '-mlink-relax'
  7026. Enable support for link-time relaxation. This is now on by default
  7027. and this flag no longer has any effect.
  7028. '-mno-link-relax'
  7029. Disable support for link-time relaxation. The assembler will
  7030. resolve relocations when it can, and may be able to better compress
  7031. some debug information.
  7032. '-mgcc-isr'
  7033. Enable the '__gcc_isr' pseudo instruction.
  7034. '-mno-dollar-line-separator'
  7035. Do not treat the '$' character as a line separator character. This
  7036. is for languages where '$' is valid character inside symbol names.
  7037. 
  7038. File: as.info, Node: AVR Syntax, Next: AVR Opcodes, Prev: AVR Options, Up: AVR-Dependent
  7039. 9.5.2 Syntax
  7040. ------------
  7041. * Menu:
  7042. * AVR-Chars:: Special Characters
  7043. * AVR-Regs:: Register Names
  7044. * AVR-Modifiers:: Relocatable Expression Modifiers
  7045. 
  7046. File: as.info, Node: AVR-Chars, Next: AVR-Regs, Up: AVR Syntax
  7047. 9.5.2.1 Special Characters
  7048. ..........................
  7049. The presence of a ';' anywhere on a line indicates the start of a
  7050. comment that extends to the end of that line.
  7051. If a '#' appears as the first character of a line, the whole line is
  7052. treated as a comment, but in this case the line can also be a logical
  7053. line number directive (*note Comments::) or a preprocessor control
  7054. command (*note Preprocessing::).
  7055. The '$' character can be used instead of a newline to separate
  7056. statements. Note: the '-mno-dollar-line-separator' option disables this
  7057. behaviour.
  7058. 
  7059. File: as.info, Node: AVR-Regs, Next: AVR-Modifiers, Prev: AVR-Chars, Up: AVR Syntax
  7060. 9.5.2.2 Register Names
  7061. ......................
  7062. The AVR has 32 x 8-bit general purpose working registers 'r0', 'r1', ...
  7063. 'r31'. Six of the 32 registers can be used as three 16-bit indirect
  7064. address register pointers for Data Space addressing. One of the these
  7065. address pointers can also be used as an address pointer for look up
  7066. tables in Flash program memory. These added function registers are the
  7067. 16-bit 'X', 'Y' and 'Z' - registers.
  7068. X = r26:r27
  7069. Y = r28:r29
  7070. Z = r30:r31
  7071. 
  7072. File: as.info, Node: AVR-Modifiers, Prev: AVR-Regs, Up: AVR Syntax
  7073. 9.5.2.3 Relocatable Expression Modifiers
  7074. ........................................
  7075. The assembler supports several modifiers when using relocatable
  7076. addresses in AVR instruction operands. The general syntax is the
  7077. following:
  7078. modifier(relocatable-expression)
  7079. 'lo8'
  7080. This modifier allows you to use bits 0 through 7 of an address
  7081. expression as an 8 bit relocatable expression.
  7082. 'hi8'
  7083. This modifier allows you to use bits 7 through 15 of an address
  7084. expression as an 8 bit relocatable expression. This is useful
  7085. with, for example, the AVR 'ldi' instruction and 'lo8' modifier.
  7086. For example
  7087. ldi r26, lo8(sym+10)
  7088. ldi r27, hi8(sym+10)
  7089. 'hh8'
  7090. This modifier allows you to use bits 16 through 23 of an address
  7091. expression as an 8 bit relocatable expression. Also, can be useful
  7092. for loading 32 bit constants.
  7093. 'hlo8'
  7094. Synonym of 'hh8'.
  7095. 'hhi8'
  7096. This modifier allows you to use bits 24 through 31 of an expression
  7097. as an 8 bit expression. This is useful with, for example, the AVR
  7098. 'ldi' instruction and 'lo8', 'hi8', 'hlo8', 'hhi8', modifier.
  7099. For example
  7100. ldi r26, lo8(285774925)
  7101. ldi r27, hi8(285774925)
  7102. ldi r28, hlo8(285774925)
  7103. ldi r29, hhi8(285774925)
  7104. ; r29,r28,r27,r26 = 285774925
  7105. 'pm_lo8'
  7106. This modifier allows you to use bits 0 through 7 of an address
  7107. expression as an 8 bit relocatable expression. This modifier is
  7108. useful for addressing data or code from Flash/Program memory by
  7109. two-byte words. The use of 'pm_lo8' is similar to 'lo8'.
  7110. 'pm_hi8'
  7111. This modifier allows you to use bits 8 through 15 of an address
  7112. expression as an 8 bit relocatable expression. This modifier is
  7113. useful for addressing data or code from Flash/Program memory by
  7114. two-byte words.
  7115. For example, when setting the AVR 'Z' register with the 'ldi'
  7116. instruction for subsequent use by the 'ijmp' instruction:
  7117. ldi r30, pm_lo8(sym)
  7118. ldi r31, pm_hi8(sym)
  7119. ijmp
  7120. 'pm_hh8'
  7121. This modifier allows you to use bits 15 through 23 of an address
  7122. expression as an 8 bit relocatable expression. This modifier is
  7123. useful for addressing data or code from Flash/Program memory by
  7124. two-byte words.
  7125. 
  7126. File: as.info, Node: AVR Opcodes, Next: AVR Pseudo Instructions, Prev: AVR Syntax, Up: AVR-Dependent
  7127. 9.5.3 Opcodes
  7128. -------------
  7129. For detailed information on the AVR machine instruction set, see
  7130. <www.atmel.com/products/AVR>.
  7131. 'as' implements all the standard AVR opcodes. The following table
  7132. summarizes the AVR opcodes, and their arguments.
  7133. Legend:
  7134. r any register
  7135. d 'ldi' register (r16-r31)
  7136. v 'movw' even register (r0, r2, ..., r28, r30)
  7137. a 'fmul' register (r16-r23)
  7138. w 'adiw' register (r24,r26,r28,r30)
  7139. e pointer registers (X,Y,Z)
  7140. b base pointer register and displacement ([YZ]+disp)
  7141. z Z pointer register (for [e]lpm Rd,Z[+])
  7142. M immediate value from 0 to 255
  7143. n immediate value from 0 to 255 ( n = ~M ). Relocation impossible
  7144. s immediate value from 0 to 7
  7145. P Port address value from 0 to 63. (in, out)
  7146. p Port address value from 0 to 31. (cbi, sbi, sbic, sbis)
  7147. K immediate value from 0 to 63 (used in 'adiw', 'sbiw')
  7148. i immediate value
  7149. l signed pc relative offset from -64 to 63
  7150. L signed pc relative offset from -2048 to 2047
  7151. h absolute code address (call, jmp)
  7152. S immediate value from 0 to 7 (S = s << 4)
  7153. ? use this opcode entry if no parameters, else use next opcode entry
  7154. 1001010010001000 clc
  7155. 1001010011011000 clh
  7156. 1001010011111000 cli
  7157. 1001010010101000 cln
  7158. 1001010011001000 cls
  7159. 1001010011101000 clt
  7160. 1001010010111000 clv
  7161. 1001010010011000 clz
  7162. 1001010000001000 sec
  7163. 1001010001011000 seh
  7164. 1001010001111000 sei
  7165. 1001010000101000 sen
  7166. 1001010001001000 ses
  7167. 1001010001101000 set
  7168. 1001010000111000 sev
  7169. 1001010000011000 sez
  7170. 100101001SSS1000 bclr S
  7171. 100101000SSS1000 bset S
  7172. 1001010100001001 icall
  7173. 1001010000001001 ijmp
  7174. 1001010111001000 lpm ?
  7175. 1001000ddddd010+ lpm r,z
  7176. 1001010111011000 elpm ?
  7177. 1001000ddddd011+ elpm r,z
  7178. 0000000000000000 nop
  7179. 1001010100001000 ret
  7180. 1001010100011000 reti
  7181. 1001010110001000 sleep
  7182. 1001010110011000 break
  7183. 1001010110101000 wdr
  7184. 1001010111101000 spm
  7185. 000111rdddddrrrr adc r,r
  7186. 000011rdddddrrrr add r,r
  7187. 001000rdddddrrrr and r,r
  7188. 000101rdddddrrrr cp r,r
  7189. 000001rdddddrrrr cpc r,r
  7190. 000100rdddddrrrr cpse r,r
  7191. 001001rdddddrrrr eor r,r
  7192. 001011rdddddrrrr mov r,r
  7193. 100111rdddddrrrr mul r,r
  7194. 001010rdddddrrrr or r,r
  7195. 000010rdddddrrrr sbc r,r
  7196. 000110rdddddrrrr sub r,r
  7197. 001001rdddddrrrr clr r
  7198. 000011rdddddrrrr lsl r
  7199. 000111rdddddrrrr rol r
  7200. 001000rdddddrrrr tst r
  7201. 0111KKKKddddKKKK andi d,M
  7202. 0111KKKKddddKKKK cbr d,n
  7203. 1110KKKKddddKKKK ldi d,M
  7204. 11101111dddd1111 ser d
  7205. 0110KKKKddddKKKK ori d,M
  7206. 0110KKKKddddKKKK sbr d,M
  7207. 0011KKKKddddKKKK cpi d,M
  7208. 0100KKKKddddKKKK sbci d,M
  7209. 0101KKKKddddKKKK subi d,M
  7210. 1111110rrrrr0sss sbrc r,s
  7211. 1111111rrrrr0sss sbrs r,s
  7212. 1111100ddddd0sss bld r,s
  7213. 1111101ddddd0sss bst r,s
  7214. 10110PPdddddPPPP in r,P
  7215. 10111PPrrrrrPPPP out P,r
  7216. 10010110KKddKKKK adiw w,K
  7217. 10010111KKddKKKK sbiw w,K
  7218. 10011000pppppsss cbi p,s
  7219. 10011010pppppsss sbi p,s
  7220. 10011001pppppsss sbic p,s
  7221. 10011011pppppsss sbis p,s
  7222. 111101lllllll000 brcc l
  7223. 111100lllllll000 brcs l
  7224. 111100lllllll001 breq l
  7225. 111101lllllll100 brge l
  7226. 111101lllllll101 brhc l
  7227. 111100lllllll101 brhs l
  7228. 111101lllllll111 brid l
  7229. 111100lllllll111 brie l
  7230. 111100lllllll000 brlo l
  7231. 111100lllllll100 brlt l
  7232. 111100lllllll010 brmi l
  7233. 111101lllllll001 brne l
  7234. 111101lllllll010 brpl l
  7235. 111101lllllll000 brsh l
  7236. 111101lllllll110 brtc l
  7237. 111100lllllll110 brts l
  7238. 111101lllllll011 brvc l
  7239. 111100lllllll011 brvs l
  7240. 111101lllllllsss brbc s,l
  7241. 111100lllllllsss brbs s,l
  7242. 1101LLLLLLLLLLLL rcall L
  7243. 1100LLLLLLLLLLLL rjmp L
  7244. 1001010hhhhh111h call h
  7245. 1001010hhhhh110h jmp h
  7246. 1001010rrrrr0101 asr r
  7247. 1001010rrrrr0000 com r
  7248. 1001010rrrrr1010 dec r
  7249. 1001010rrrrr0011 inc r
  7250. 1001010rrrrr0110 lsr r
  7251. 1001010rrrrr0001 neg r
  7252. 1001000rrrrr1111 pop r
  7253. 1001001rrrrr1111 push r
  7254. 1001010rrrrr0111 ror r
  7255. 1001010rrrrr0010 swap r
  7256. 00000001ddddrrrr movw v,v
  7257. 00000010ddddrrrr muls d,d
  7258. 000000110ddd0rrr mulsu a,a
  7259. 000000110ddd1rrr fmul a,a
  7260. 000000111ddd0rrr fmuls a,a
  7261. 000000111ddd1rrr fmulsu a,a
  7262. 1001001ddddd0000 sts i,r
  7263. 1001000ddddd0000 lds r,i
  7264. 10o0oo0dddddbooo ldd r,b
  7265. 100!000dddddee-+ ld r,e
  7266. 10o0oo1rrrrrbooo std b,r
  7267. 100!001rrrrree-+ st e,r
  7268. 1001010100011001 eicall
  7269. 1001010000011001 eijmp
  7270. 
  7271. File: as.info, Node: AVR Pseudo Instructions, Prev: AVR Opcodes, Up: AVR-Dependent
  7272. 9.5.4 Pseudo Instructions
  7273. -------------------------
  7274. The only available pseudo-instruction '__gcc_isr' can be activated by
  7275. option '-mgcc-isr'.
  7276. '__gcc_isr 1'
  7277. Emit code chunk to be used in avr-gcc ISR prologue. It will expand
  7278. to at most six 1-word instructions, all optional: push of
  7279. 'tmp_reg', push of 'SREG', push and clear of 'zero_reg', push of
  7280. REG.
  7281. '__gcc_isr 2'
  7282. Emit code chunk to be used in an avr-gcc ISR epilogue. It will
  7283. expand to at most five 1-word instructions, all optional: pop of
  7284. REG, pop of 'zero_reg', pop of 'SREG', pop of 'tmp_reg'.
  7285. '__gcc_isr 0, REG'
  7286. Finish avr-gcc ISR function. Scan code since the last prologue for
  7287. usage of: 'SREG', 'tmp_reg', 'zero_reg'. Prologue chunk and
  7288. epilogue chunks will be replaced by appropriate code to save /
  7289. restore 'SREG', 'tmp_reg', 'zero_reg' and REG.
  7290. Example input:
  7291. __vector1:
  7292. __gcc_isr 1
  7293. lds r24, var
  7294. inc r24
  7295. sts var, r24
  7296. __gcc_isr 2
  7297. reti
  7298. __gcc_isr 0, r24
  7299. Example output:
  7300. 00000000 <__vector1>:
  7301. 0: 8f 93 push r24
  7302. 2: 8f b7 in r24, 0x3f
  7303. 4: 8f 93 push r24
  7304. 6: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <var>
  7305. a: 83 95 inc r24
  7306. c: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <var>
  7307. 10: 8f 91 pop r24
  7308. 12: 8f bf out 0x3f, r24
  7309. 14: 8f 91 pop r24
  7310. 16: 18 95 reti
  7311. 
  7312. File: as.info, Node: Blackfin-Dependent, Next: BPF-Dependent, Prev: AVR-Dependent, Up: Machine Dependencies
  7313. 9.6 Blackfin Dependent Features
  7314. ===============================
  7315. * Menu:
  7316. * Blackfin Options:: Blackfin Options
  7317. * Blackfin Syntax:: Blackfin Syntax
  7318. * Blackfin Directives:: Blackfin Directives
  7319. 
  7320. File: as.info, Node: Blackfin Options, Next: Blackfin Syntax, Up: Blackfin-Dependent
  7321. 9.6.1 Options
  7322. -------------
  7323. '-mcpu=PROCESSOR[-SIREVISION]'
  7324. This option specifies the target processor. The optional
  7325. SIREVISION is not used in assembler. It's here such that GCC can
  7326. easily pass down its '-mcpu=' option. The assembler will issue an
  7327. error message if an attempt is made to assemble an instruction
  7328. which will not execute on the target processor. The following
  7329. processor names are recognized: 'bf504', 'bf506', 'bf512', 'bf514',
  7330. 'bf516', 'bf518', 'bf522', 'bf523', 'bf524', 'bf525', 'bf526',
  7331. 'bf527', 'bf531', 'bf532', 'bf533', 'bf534', 'bf535' (not
  7332. implemented yet), 'bf536', 'bf537', 'bf538', 'bf539', 'bf542',
  7333. 'bf542m', 'bf544', 'bf544m', 'bf547', 'bf547m', 'bf548', 'bf548m',
  7334. 'bf549', 'bf549m', 'bf561', and 'bf592'.
  7335. '-mfdpic'
  7336. Assemble for the FDPIC ABI.
  7337. '-mno-fdpic'
  7338. '-mnopic'
  7339. Disable -mfdpic.
  7340. 
  7341. File: as.info, Node: Blackfin Syntax, Next: Blackfin Directives, Prev: Blackfin Options, Up: Blackfin-Dependent
  7342. 9.6.2 Syntax
  7343. ------------
  7344. 'Special Characters'
  7345. Assembler input is free format and may appear anywhere on the line.
  7346. One instruction may extend across multiple lines or more than one
  7347. instruction may appear on the same line. White space (space, tab,
  7348. comments or newline) may appear anywhere between tokens. A token
  7349. must not have embedded spaces. Tokens include numbers, register
  7350. names, keywords, user identifiers, and also some multicharacter
  7351. special symbols like "+=", "/*" or "||".
  7352. Comments are introduced by the '#' character and extend to the end
  7353. of the current line. If the '#' appears as the first character of
  7354. a line, the whole line is treated as a comment, but in this case
  7355. the line can also be a logical line number directive (*note
  7356. Comments::) or a preprocessor control command (*note
  7357. Preprocessing::).
  7358. 'Instruction Delimiting'
  7359. A semicolon must terminate every instruction. Sometimes a complete
  7360. instruction will consist of more than one operation. There are two
  7361. cases where this occurs. The first is when two general operations
  7362. are combined. Normally a comma separates the different parts, as
  7363. in
  7364. a0= r3.h * r2.l, a1 = r3.l * r2.h ;
  7365. The second case occurs when a general instruction is combined with
  7366. one or two memory references for joint issue. The latter portions
  7367. are set off by a "||" token.
  7368. a0 = r3.h * r2.l || r1 = [p3++] || r4 = [i2++];
  7369. Multiple instructions can occur on the same line. Each must be
  7370. terminated by a semicolon character.
  7371. 'Register Names'
  7372. The assembler treats register names and instruction keywords in a
  7373. case insensitive manner. User identifiers are case sensitive.
  7374. Thus, R3.l, R3.L, r3.l and r3.L are all equivalent input to the
  7375. assembler.
  7376. Register names are reserved and may not be used as program
  7377. identifiers.
  7378. Some operations (such as "Move Register") require a register pair.
  7379. Register pairs are always data registers and are denoted using a
  7380. colon, eg., R3:2. The larger number must be written firsts. Note
  7381. that the hardware only supports odd-even pairs, eg., R7:6, R5:4,
  7382. R3:2, and R1:0.
  7383. Some instructions (such as -SP (Push Multiple)) require a group of
  7384. adjacent registers. Adjacent registers are denoted in the syntax
  7385. by the range enclosed in parentheses and separated by a colon, eg.,
  7386. (R7:3). Again, the larger number appears first.
  7387. Portions of a particular register may be individually specified.
  7388. This is written with a dot (".") following the register name and
  7389. then a letter denoting the desired portion. For 32-bit registers,
  7390. ".H" denotes the most significant ("High") portion. ".L" denotes
  7391. the least-significant portion. The subdivisions of the 40-bit
  7392. registers are described later.
  7393. 'Accumulators'
  7394. The set of 40-bit registers A1 and A0 that normally contain data
  7395. that is being manipulated. Each accumulator can be accessed in
  7396. four ways.
  7397. 'one 40-bit register'
  7398. The register will be referred to as A1 or A0.
  7399. 'one 32-bit register'
  7400. The registers are designated as A1.W or A0.W.
  7401. 'two 16-bit registers'
  7402. The registers are designated as A1.H, A1.L, A0.H or A0.L.
  7403. 'one 8-bit register'
  7404. The registers are designated as A1.X or A0.X for the bits that
  7405. extend beyond bit 31.
  7406. 'Data Registers'
  7407. The set of 32-bit registers (R0, R1, R2, R3, R4, R5, R6 and R7)
  7408. that normally contain data for manipulation. These are abbreviated
  7409. as D-register or Dreg. Data registers can be accessed as 32-bit
  7410. registers or as two independent 16-bit registers. The least
  7411. significant 16 bits of each register is called the "low" half and
  7412. is designated with ".L" following the register name. The most
  7413. significant 16 bits are called the "high" half and is designated
  7414. with ".H" following the name.
  7415. R7.L, r2.h, r4.L, R0.H
  7416. 'Pointer Registers'
  7417. The set of 32-bit registers (P0, P1, P2, P3, P4, P5, SP and FP)
  7418. that normally contain byte addresses of data structures. These are
  7419. abbreviated as P-register or Preg.
  7420. p2, p5, fp, sp
  7421. 'Stack Pointer SP'
  7422. The stack pointer contains the 32-bit address of the last occupied
  7423. byte location in the stack. The stack grows by decrementing the
  7424. stack pointer.
  7425. 'Frame Pointer FP'
  7426. The frame pointer contains the 32-bit address of the previous frame
  7427. pointer in the stack. It is located at the top of a frame.
  7428. 'Loop Top'
  7429. LT0 and LT1. These registers contain the 32-bit address of the top
  7430. of a zero overhead loop.
  7431. 'Loop Count'
  7432. LC0 and LC1. These registers contain the 32-bit counter of the
  7433. zero overhead loop executions.
  7434. 'Loop Bottom'
  7435. LB0 and LB1. These registers contain the 32-bit address of the
  7436. bottom of a zero overhead loop.
  7437. 'Index Registers'
  7438. The set of 32-bit registers (I0, I1, I2, I3) that normally contain
  7439. byte addresses of data structures. Abbreviated I-register or Ireg.
  7440. 'Modify Registers'
  7441. The set of 32-bit registers (M0, M1, M2, M3) that normally contain
  7442. offset values that are added and subtracted to one of the index
  7443. registers. Abbreviated as Mreg.
  7444. 'Length Registers'
  7445. The set of 32-bit registers (L0, L1, L2, L3) that normally contain
  7446. the length in bytes of the circular buffer. Abbreviated as Lreg.
  7447. Clear the Lreg to disable circular addressing for the corresponding
  7448. Ireg.
  7449. 'Base Registers'
  7450. The set of 32-bit registers (B0, B1, B2, B3) that normally contain
  7451. the base address in bytes of the circular buffer. Abbreviated as
  7452. Breg.
  7453. 'Floating Point'
  7454. The Blackfin family has no hardware floating point but the .float
  7455. directive generates ieee floating point numbers for use with
  7456. software floating point libraries.
  7457. 'Blackfin Opcodes'
  7458. For detailed information on the Blackfin machine instruction set,
  7459. see the Blackfin Processor Instruction Set Reference.
  7460. 
  7461. File: as.info, Node: Blackfin Directives, Prev: Blackfin Syntax, Up: Blackfin-Dependent
  7462. 9.6.3 Directives
  7463. ----------------
  7464. The following directives are provided for compatibility with the VDSP
  7465. assembler.
  7466. '.byte2'
  7467. Initializes a two byte data object.
  7468. This maps to the '.short' directive.
  7469. '.byte4'
  7470. Initializes a four byte data object.
  7471. This maps to the '.int' directive.
  7472. '.db'
  7473. Initializes a single byte data object.
  7474. This directive is a synonym for '.byte'.
  7475. '.dw'
  7476. Initializes a two byte data object.
  7477. This directive is a synonym for '.byte2'.
  7478. '.dd'
  7479. Initializes a four byte data object.
  7480. This directive is a synonym for '.byte4'.
  7481. '.var'
  7482. Define and initialize a 32 bit data object.
  7483. 
  7484. File: as.info, Node: BPF-Dependent, Next: CR16-Dependent, Prev: Blackfin-Dependent, Up: Machine Dependencies
  7485. 9.7 BPF Dependent Features
  7486. ==========================
  7487. * Menu:
  7488. * BPF Options:: Options
  7489. * BPF Syntax:: Syntax
  7490. * BPF Directives:: Machine Directives
  7491. * BPF Opcodes:: Opcodes
  7492. 
  7493. File: as.info, Node: BPF Options, Next: BPF Syntax, Up: BPF-Dependent
  7494. 9.7.1 Options
  7495. -------------
  7496. '-EB'
  7497. This option specifies that the assembler should emit big-endian
  7498. eBPF.
  7499. '-EL'
  7500. This option specifies that the assembler should emit little-endian
  7501. eBPF.
  7502. Note that if no endianness option is specified in the command line,
  7503. the host endianness is used.
  7504. 
  7505. File: as.info, Node: BPF Syntax, Next: BPF Directives, Prev: BPF Options, Up: BPF-Dependent
  7506. 9.7.2 Syntax
  7507. ------------
  7508. * Menu:
  7509. * BPF-Chars:: Special Characters
  7510. * BPF-Regs:: Register Names
  7511. * BPF-Pseudo-Maps:: Pseudo map fds
  7512. 
  7513. File: as.info, Node: BPF-Chars, Next: BPF-Regs, Up: BPF Syntax
  7514. 9.7.2.1 Special Characters
  7515. ..........................
  7516. The presence of a ';' on a line indicates the start of a comment that
  7517. extends to the end of the current line. If a '#' appears as the first
  7518. character of a line, the whole line is treated as a comment.
  7519. Statements and assembly directives are separated by newlines.
  7520. 
  7521. File: as.info, Node: BPF-Regs, Next: BPF-Pseudo-Maps, Prev: BPF-Chars, Up: BPF Syntax
  7522. 9.7.2.2 Register Names
  7523. ......................
  7524. The eBPF processor provides ten general-purpose 64-bit registers, which
  7525. are read-write, and a read-only frame pointer register:
  7526. '%r0 .. %r9'
  7527. General-purpose registers.
  7528. '%r10'
  7529. Frame pointer register.
  7530. Some registers have additional names, to reflect their role in the
  7531. eBPF ABI:
  7532. '%a'
  7533. This is '%r0'.
  7534. '%ctx'
  7535. This is '%r6'.
  7536. '%fp'
  7537. This is '%r10'.
  7538. 
  7539. File: as.info, Node: BPF-Pseudo-Maps, Prev: BPF-Regs, Up: BPF Syntax
  7540. 9.7.2.3 Pseudo Maps
  7541. ...................
  7542. The 'LDDW' instruction can take a literal pseudo map file descriptor as
  7543. its second argument. This uses the syntax '%map_fd(N)' where 'N' is a
  7544. signed number.
  7545. For example, to load the address of the pseudo map with file
  7546. descriptor '2' in register 'r1' we would do:
  7547. lddw %r1, %map_fd(2)
  7548. 
  7549. File: as.info, Node: BPF Directives, Next: BPF Opcodes, Prev: BPF Syntax, Up: BPF-Dependent
  7550. 9.7.3 Machine Directives
  7551. ------------------------
  7552. The BPF version of 'as' supports the following additional machine
  7553. directives:
  7554. '.word'
  7555. The '.half' directive produces a 16 bit value.
  7556. '.word'
  7557. The '.word' directive produces a 32 bit value.
  7558. '.dword'
  7559. The '.dword' directive produces a 64 bit value.
  7560. 
  7561. File: as.info, Node: BPF Opcodes, Prev: BPF Directives, Up: BPF-Dependent
  7562. 9.7.4 Opcodes
  7563. -------------
  7564. In the instruction descriptions below the following field descriptors
  7565. are used:
  7566. '%d'
  7567. Destination general-purpose register whose role is to be
  7568. destination of an operation.
  7569. '%s'
  7570. Source general-purpose register whose role is to be the source of
  7571. an operation.
  7572. 'disp16'
  7573. 16-bit signed PC-relative offset, measured in number of 64-bit
  7574. words, minus one.
  7575. 'disp32'
  7576. 32-bit signed PC-relative offset, measured in number of 64-bit
  7577. words, minus one.
  7578. 'offset16'
  7579. Signed 16-bit immediate.
  7580. 'imm32'
  7581. Signed 32-bit immediate.
  7582. 'imm64'
  7583. Signed 64-bit immediate.
  7584. 9.7.4.1 Arithmetic instructions
  7585. ...............................
  7586. The destination register in these instructions act like an accumulator.
  7587. 'add %d, (%s|imm32)'
  7588. 64-bit arithmetic addition.
  7589. 'sub %d, (%s|imm32)'
  7590. 64-bit arithmetic subtraction.
  7591. 'mul %d, (%s|imm32)'
  7592. 64-bit arithmetic multiplication.
  7593. 'div %d, (%s|imm32)'
  7594. 64-bit arithmetic integer division.
  7595. 'mod %d, (%s|imm32)'
  7596. 64-bit integer remainder.
  7597. 'and %d, (%s|imm32)'
  7598. 64-bit bit-wise "and" operation.
  7599. 'or %d, (%s|imm32)'
  7600. 64-bit bit-wise "or" operation.
  7601. 'xor %d, (%s|imm32)'
  7602. 64-bit bit-wise exclusive-or operation.
  7603. 'lsh %d, (%s|imm32)'
  7604. 64-bit left shift, by '%s' or 'imm32' bits.
  7605. 'rsh %d, (%s|imm32)'
  7606. 64-bit right logical shift, by '%s' or 'imm32' bits.
  7607. 'arsh %d, (%s|imm32)'
  7608. 64-bit right arithmetic shift, by '%s' or 'imm32' bits.
  7609. 'neg %d'
  7610. 64-bit arithmetic negation.
  7611. 'mov %d, (%s|imm32)'
  7612. Move the 64-bit value of '%s' in '%d', or load 'imm32' in '%d'.
  7613. 9.7.4.2 32-bit arithmetic instructions
  7614. ......................................
  7615. The destination register in these instructions act as an accumulator.
  7616. 'add32 %d, (%s|imm32)'
  7617. 32-bit arithmetic addition.
  7618. 'sub32 %d, (%s|imm32)'
  7619. 32-bit arithmetic subtraction.
  7620. 'mul32 %d, (%s|imm32)'
  7621. 32-bit arithmetic multiplication.
  7622. 'div32 %d, (%s|imm32)'
  7623. 32-bit arithmetic integer division.
  7624. 'mod32 %d, (%s|imm32)'
  7625. 32-bit integer remainder.
  7626. 'and32 %d, (%s|imm32)'
  7627. 32-bit bit-wise "and" operation.
  7628. 'or32 %d, (%s|imm32)'
  7629. 32-bit bit-wise "or" operation.
  7630. 'xor32 %d, (%s|imm32)'
  7631. 32-bit bit-wise exclusive-or operation.
  7632. 'lsh32 %d, (%s|imm32)'
  7633. 32-bit left shift, by '%s' or 'imm32' bits.
  7634. 'rsh32 %d, (%s|imm32)'
  7635. 32-bit right logical shift, by '%s' or 'imm32' bits.
  7636. 'arsh32 %d, (%s|imm32)'
  7637. 32-bit right arithmetic shift, by '%s' or 'imm32' bits.
  7638. 'neg32 %d'
  7639. 32-bit arithmetic negation.
  7640. 'mov32 %d, (%s|imm32)'
  7641. Move the 32-bit value of '%s' in '%d', or load 'imm32' in '%d'.
  7642. 9.7.4.3 Endianness conversion instructions
  7643. ..........................................
  7644. 'endle %d, (8|16|32)'
  7645. Convert the 8-bit, 16-bit or 32-bit value in '%d' to little-endian.
  7646. 'endbe %d, (8|16|32)'
  7647. Convert the 8-bit, 16-bit or 32-bit value in '%d' to big-endian.
  7648. 9.7.4.4 64-bit load and pseudo maps
  7649. ...................................
  7650. 'lddw %d, imm64'
  7651. Load the given signed 64-bit immediate, or pseudo map descriptor,
  7652. to the destination register '%d'.
  7653. 'lddw %d, %map_fd(N)'
  7654. Load the address of the given pseudo map fd _N_ to the destination
  7655. register '%d'.
  7656. 9.7.4.5 Load instructions for socket filters
  7657. ............................................
  7658. The following instructions are intended to be used in socket filters,
  7659. and are therefore not general-purpose: they make assumptions on the
  7660. contents of several registers. See the file
  7661. 'Documentation/networking/filter.txt' in the Linux kernel source tree
  7662. for more information.
  7663. Absolute loads:
  7664. 'ldabsdw imm32'
  7665. Absolute 64-bit load.
  7666. 'ldabsw imm32'
  7667. Absolute 32-bit load.
  7668. 'ldabsh imm32'
  7669. Absolute 16-bit load.
  7670. 'ldabsb imm32'
  7671. Absolute 8-bit load.
  7672. Indirect loads:
  7673. 'ldinddw %s, imm32'
  7674. Indirect 64-bit load.
  7675. 'ldindw %s, imm32'
  7676. Indirect 32-bit load.
  7677. 'ldindh %s, imm32'
  7678. Indirect 16-bit load.
  7679. 'ldindb %s, imm32'
  7680. Indirect 8-bit load.
  7681. 9.7.4.6 Generic load/store instructions
  7682. .......................................
  7683. General-purpose load and store instructions are provided for several
  7684. word sizes.
  7685. Load to register instructions:
  7686. 'ldxdw %d, [%s+offset16]'
  7687. Generic 64-bit load.
  7688. 'ldxw %d, [%s+offset16]'
  7689. Generic 32-bit load.
  7690. 'ldxh %d, [%s+offset16]'
  7691. Generic 16-bit load.
  7692. 'ldxb %d, [%s+offset16]'
  7693. Generic 8-bit load.
  7694. Store from register instructions:
  7695. 'stxdw [%d+offset16], %s'
  7696. Generic 64-bit store.
  7697. 'stxw [%d+offset16], %s'
  7698. Generic 32-bit store.
  7699. 'stxh [%d+offset16], %s'
  7700. Generic 16-bit store.
  7701. 'stxb [%d+offset16], %s'
  7702. Generic 8-bit store.
  7703. Store from immediates instructions:
  7704. 'stddw [%d+offset16], imm32'
  7705. Store immediate as 64-bit.
  7706. 'stdw [%d+offset16], imm32'
  7707. Store immediate as 32-bit.
  7708. 'stdh [%d+offset16], imm32'
  7709. Store immediate as 16-bit.
  7710. 'stdb [%d+offset16], imm32'
  7711. Store immediate as 8-bit.
  7712. 9.7.4.7 Jump instructions
  7713. .........................
  7714. eBPF provides the following compare-and-jump instructions, which compare
  7715. the values of the two given registers, or the values of a register and
  7716. an immediate, and perform a branch in case the comparison holds true.
  7717. 'ja %d,(%s|imm32),disp16'
  7718. Jump-always.
  7719. 'jeq %d,(%s|imm32),disp16'
  7720. Jump if equal.
  7721. 'jgt %d,(%s|imm32),disp16'
  7722. Jump if greater.
  7723. 'jge %d,(%s|imm32),disp16'
  7724. Jump if greater or equal.
  7725. 'jlt %d,(%s|imm32),disp16'
  7726. Jump if lesser.
  7727. 'jle %d,(%s|imm32),disp16'
  7728. Jump if lesser or equal.
  7729. 'jset %d,(%s|imm32),disp16'
  7730. Jump if signed equal.
  7731. 'jne %d,(%s|imm32),disp16'
  7732. Jump if not equal.
  7733. 'jsgt %d,(%s|imm32),disp16'
  7734. Jump if signed greater.
  7735. 'jsge %d,(%s|imm32),disp16'
  7736. Jump if signed greater or equal.
  7737. 'jslt %d,(%s|imm32),disp16'
  7738. Jump if signed lesser.
  7739. 'jsle %d,(%s|imm32),disp16'
  7740. Jump if signed lesser or equal.
  7741. A call instruction is provided in order to perform calls to other
  7742. eBPF functions, or to external kernel helpers:
  7743. 'call (disp32|imm32)'
  7744. Jump and link to the offset _disp32_, or to the kernel helper
  7745. function identified by _imm32_.
  7746. Finally:
  7747. 'exit'
  7748. Terminate the eBPF program.
  7749. 9.7.4.8 Atomic instructions
  7750. ...........................
  7751. Atomic exchange-and-add instructions are provided in two flavors: one
  7752. for swapping 64-bit quantities and another for 32-bit quantities.
  7753. 'xadddw [%d+offset16],%s'
  7754. Exchange-and-add a 64-bit value at the specified location.
  7755. 'xaddw [%d+offset16],%s'
  7756. Exchange-and-add a 32-bit value at the specified location.
  7757. 
  7758. File: as.info, Node: CR16-Dependent, Next: CRIS-Dependent, Prev: BPF-Dependent, Up: Machine Dependencies
  7759. 9.8 CR16 Dependent Features
  7760. ===========================
  7761. * Menu:
  7762. * CR16 Operand Qualifiers:: CR16 Machine Operand Qualifiers
  7763. * CR16 Syntax:: Syntax for the CR16
  7764. 
  7765. File: as.info, Node: CR16 Operand Qualifiers, Next: CR16 Syntax, Up: CR16-Dependent
  7766. 9.8.1 CR16 Operand Qualifiers
  7767. -----------------------------
  7768. The National Semiconductor CR16 target of 'as' has a few machine
  7769. dependent operand qualifiers.
  7770. Operand expression type qualifier is an optional field in the
  7771. instruction operand, to determines the type of the expression field of
  7772. an operand. The '@' is required. CR16 architecture uses one of the
  7773. following expression qualifiers:
  7774. 's'
  7775. - 'Specifies expression operand type as small'
  7776. 'm'
  7777. - 'Specifies expression operand type as medium'
  7778. 'l'
  7779. - 'Specifies expression operand type as large'
  7780. 'c'
  7781. - 'Specifies the CR16 Assembler generates a relocation entry for
  7782. the operand, where pc has implied bit, the expression is adjusted
  7783. accordingly. The linker uses the relocation entry to update the
  7784. operand address at link time.'
  7785. 'got/GOT'
  7786. - 'Specifies the CR16 Assembler generates a relocation entry for
  7787. the operand, offset from Global Offset Table. The linker uses this
  7788. relocation entry to update the operand address at link time'
  7789. 'cgot/cGOT'
  7790. - 'Specifies the CompactRISC Assembler generates a relocation entry
  7791. for the operand, where pc has implied bit, the expression is
  7792. adjusted accordingly. The linker uses the relocation entry to
  7793. update the operand address at link time.'
  7794. CR16 target operand qualifiers and its size (in bits):
  7795. 'Immediate Operand: s'
  7796. 4 bits.
  7797. 'Immediate Operand: m'
  7798. 16 bits, for movb and movw instructions.
  7799. 'Immediate Operand: m'
  7800. 20 bits, movd instructions.
  7801. 'Immediate Operand: l'
  7802. 32 bits.
  7803. 'Absolute Operand: s'
  7804. Illegal specifier for this operand.
  7805. 'Absolute Operand: m'
  7806. 20 bits, movd instructions.
  7807. 'Displacement Operand: s'
  7808. 8 bits.
  7809. 'Displacement Operand: m'
  7810. 16 bits.
  7811. 'Displacement Operand: l'
  7812. 24 bits.
  7813. For example:
  7814. 1 movw $_myfun@c,r1
  7815. This loads the address of _myfun, shifted right by 1, into r1.
  7816. 2 movd $_myfun@c,(r2,r1)
  7817. This loads the address of _myfun, shifted right by 1, into register-pair r2-r1.
  7818. 3 _myfun_ptr:
  7819. .long _myfun@c
  7820. loadd _myfun_ptr, (r1,r0)
  7821. jal (r1,r0)
  7822. This .long directive, the address of _myfunc, shifted right by 1 at link time.
  7823. 4 loadd _data1@GOT(r12), (r1,r0)
  7824. This loads the address of _data1, into global offset table (ie GOT) and its offset value from GOT loads into register-pair r2-r1.
  7825. 5 loadd _myfunc@cGOT(r12), (r1,r0)
  7826. This loads the address of _myfun, shifted right by 1, into global offset table (ie GOT) and its offset value from GOT loads into register-pair r1-r0.
  7827. 
  7828. File: as.info, Node: CR16 Syntax, Prev: CR16 Operand Qualifiers, Up: CR16-Dependent
  7829. 9.8.2 CR16 Syntax
  7830. -----------------
  7831. * Menu:
  7832. * CR16-Chars:: Special Characters
  7833. 
  7834. File: as.info, Node: CR16-Chars, Up: CR16 Syntax
  7835. 9.8.2.1 Special Characters
  7836. ..........................
  7837. The presence of a '#' on a line indicates the start of a comment that
  7838. extends to the end of the current line. If the '#' appears as the first
  7839. character of a line, the whole line is treated as a comment, but in this
  7840. case the line can also be a logical line number directive (*note
  7841. Comments::) or a preprocessor control command (*note Preprocessing::).
  7842. The ';' character can be used to separate statements on the same
  7843. line.
  7844. 
  7845. File: as.info, Node: CRIS-Dependent, Next: C-SKY-Dependent, Prev: CR16-Dependent, Up: Machine Dependencies
  7846. 9.9 CRIS Dependent Features
  7847. ===========================
  7848. * Menu:
  7849. * CRIS-Opts:: Command-line Options
  7850. * CRIS-Expand:: Instruction expansion
  7851. * CRIS-Symbols:: Symbols
  7852. * CRIS-Syntax:: Syntax
  7853. 
  7854. File: as.info, Node: CRIS-Opts, Next: CRIS-Expand, Up: CRIS-Dependent
  7855. 9.9.1 Command-line Options
  7856. --------------------------
  7857. The CRIS version of 'as' has these machine-dependent command-line
  7858. options.
  7859. The format of the generated object files can be either ELF or a.out,
  7860. specified by the command-line options '--emulation=crisaout' and
  7861. '--emulation=criself'. The default is ELF (criself), unless 'as' has
  7862. been configured specifically for a.out by using the configuration name
  7863. 'cris-axis-aout'.
  7864. There are two different link-incompatible ELF object file variants
  7865. for CRIS, for use in environments where symbols are expected to be
  7866. prefixed by a leading '_' character and for environments without such a
  7867. symbol prefix. The variant used for GNU/Linux port has no symbol
  7868. prefix. Which variant to produce is specified by either of the options
  7869. '--underscore' and '--no-underscore'. The default is '--underscore'.
  7870. Since symbols in CRIS a.out objects are expected to have a '_' prefix,
  7871. specifying '--no-underscore' when generating a.out objects is an error.
  7872. Besides the object format difference, the effect of this option is to
  7873. parse register names differently (*note crisnous::). The
  7874. '--no-underscore' option makes a '$' register prefix mandatory.
  7875. The option '--pic' must be passed to 'as' in order to recognize the
  7876. symbol syntax used for ELF (SVR4 PIC) position-independent-code (*note
  7877. crispic::). This will also affect expansion of instructions. The
  7878. expansion with '--pic' will use PC-relative rather than (slightly
  7879. faster) absolute addresses in those expansions. This option is only
  7880. valid when generating ELF format object files.
  7881. The option '--march=ARCHITECTURE' specifies the recognized
  7882. instruction set and recognized register names. It also controls the
  7883. architecture type of the object file. Valid values for ARCHITECTURE
  7884. are:
  7885. 'v0_v10'
  7886. All instructions and register names for any architecture variant in
  7887. the set v0...v10 are recognized. This is the default if the target
  7888. is configured as cris-*.
  7889. 'v10'
  7890. Only instructions and register names for CRIS v10 (as found in
  7891. ETRAX 100 LX) are recognized. This is the default if the target is
  7892. configured as crisv10-*.
  7893. 'v32'
  7894. Only instructions and register names for CRIS v32 (code name
  7895. Guinness) are recognized. This is the default if the target is
  7896. configured as crisv32-*. This value implies '--no-mul-bug-abort'.
  7897. (A subsequent '--mul-bug-abort' will turn it back on.)
  7898. 'common_v10_v32'
  7899. Only instructions with register names and addressing modes with
  7900. opcodes common to the v10 and v32 are recognized.
  7901. When '-N' is specified, 'as' will emit a warning when a 16-bit branch
  7902. instruction is expanded into a 32-bit multiple-instruction construct
  7903. (*note CRIS-Expand::).
  7904. Some versions of the CRIS v10, for example in the Etrax 100 LX,
  7905. contain a bug that causes destabilizing memory accesses when a multiply
  7906. instruction is executed with certain values in the first operand just
  7907. before a cache-miss. When the '--mul-bug-abort' command-line option is
  7908. active (the default value), 'as' will refuse to assemble a file
  7909. containing a multiply instruction at a dangerous offset, one that could
  7910. be the last on a cache-line, or is in a section with insufficient
  7911. alignment. This placement checking does not catch any case where the
  7912. multiply instruction is dangerously placed because it is located in a
  7913. delay-slot. The '--mul-bug-abort' command-line option turns off the
  7914. checking.
  7915. 
  7916. File: as.info, Node: CRIS-Expand, Next: CRIS-Symbols, Prev: CRIS-Opts, Up: CRIS-Dependent
  7917. 9.9.2 Instruction expansion
  7918. ---------------------------
  7919. 'as' will silently choose an instruction that fits the operand size for
  7920. '[register+constant]' operands. For example, the offset '127' in
  7921. 'move.d [r3+127],r4' fits in an instruction using a signed-byte offset.
  7922. Similarly, 'move.d [r2+32767],r1' will generate an instruction using a
  7923. 16-bit offset. For symbolic expressions and constants that do not fit
  7924. in 16 bits including the sign bit, a 32-bit offset is generated.
  7925. For branches, 'as' will expand from a 16-bit branch instruction into
  7926. a sequence of instructions that can reach a full 32-bit address. Since
  7927. this does not correspond to a single instruction, such expansions can
  7928. optionally be warned about. *Note CRIS-Opts::.
  7929. If the operand is found to fit the range, a 'lapc' mnemonic will
  7930. translate to a 'lapcq' instruction. Use 'lapc.d' to force the 32-bit
  7931. 'lapc' instruction.
  7932. Similarly, the 'addo' mnemonic will translate to the shortest fitting
  7933. instruction of 'addoq', 'addo.w' and 'addo.d', when used with a operand
  7934. that is a constant known at assembly time.
  7935. 
  7936. File: as.info, Node: CRIS-Symbols, Next: CRIS-Syntax, Prev: CRIS-Expand, Up: CRIS-Dependent
  7937. 9.9.3 Symbols
  7938. -------------
  7939. Some symbols are defined by the assembler. They're intended to be used
  7940. in conditional assembly, for example:
  7941. .if ..asm.arch.cris.v32
  7942. CODE FOR CRIS V32
  7943. .elseif ..asm.arch.cris.common_v10_v32
  7944. CODE COMMON TO CRIS V32 AND CRIS V10
  7945. .elseif ..asm.arch.cris.v10 | ..asm.arch.cris.any_v0_v10
  7946. CODE FOR V10
  7947. .else
  7948. .error "Code needs to be added here."
  7949. .endif
  7950. These symbols are defined in the assembler, reflecting command-line
  7951. options, either when specified or the default. They are always defined,
  7952. to 0 or 1.
  7953. '..asm.arch.cris.any_v0_v10'
  7954. This symbol is non-zero when '--march=v0_v10' is specified or the
  7955. default.
  7956. '..asm.arch.cris.common_v10_v32'
  7957. Set according to the option '--march=common_v10_v32'.
  7958. '..asm.arch.cris.v10'
  7959. Reflects the option '--march=v10'.
  7960. '..asm.arch.cris.v32'
  7961. Corresponds to '--march=v10'.
  7962. Speaking of symbols, when a symbol is used in code, it can have a
  7963. suffix modifying its value for use in position-independent code. *Note
  7964. CRIS-Pic::.
  7965. 
  7966. File: as.info, Node: CRIS-Syntax, Prev: CRIS-Symbols, Up: CRIS-Dependent
  7967. 9.9.4 Syntax
  7968. ------------
  7969. There are different aspects of the CRIS assembly syntax.
  7970. * Menu:
  7971. * CRIS-Chars:: Special Characters
  7972. * CRIS-Pic:: Position-Independent Code Symbols
  7973. * CRIS-Regs:: Register Names
  7974. * CRIS-Pseudos:: Assembler Directives
  7975. 
  7976. File: as.info, Node: CRIS-Chars, Next: CRIS-Pic, Up: CRIS-Syntax
  7977. 9.9.4.1 Special Characters
  7978. ..........................
  7979. The character '#' is a line comment character. It starts a comment if
  7980. and only if it is placed at the beginning of a line.
  7981. A ';' character starts a comment anywhere on the line, causing all
  7982. characters up to the end of the line to be ignored.
  7983. A '@' character is handled as a line separator equivalent to a
  7984. logical new-line character (except in a comment), so separate
  7985. instructions can be specified on a single line.
  7986. 
  7987. File: as.info, Node: CRIS-Pic, Next: CRIS-Regs, Prev: CRIS-Chars, Up: CRIS-Syntax
  7988. 9.9.4.2 Symbols in position-independent code
  7989. ............................................
  7990. When generating position-independent code (SVR4 PIC) for use in
  7991. cris-axis-linux-gnu or crisv32-axis-linux-gnu shared libraries, symbol
  7992. suffixes are used to specify what kind of run-time symbol lookup will be
  7993. used, expressed in the object as different _relocation types_. Usually,
  7994. all absolute symbol values must be located in a table, the _global
  7995. offset table_, leaving the code position-independent; independent of
  7996. values of global symbols and independent of the address of the code.
  7997. The suffix modifies the value of the symbol, into for example an index
  7998. into the global offset table where the real symbol value is entered, or
  7999. a PC-relative value, or a value relative to the start of the global
  8000. offset table. All symbol suffixes start with the character ':' (omitted
  8001. in the list below). Every symbol use in code or a read-only section
  8002. must therefore have a PIC suffix to enable a useful shared library to be
  8003. created. Usually, these constructs must not be used with an additive
  8004. constant offset as is usually allowed, i.e. no 4 as in 'symbol + 4' is
  8005. allowed. This restriction is checked at link-time, not at
  8006. assembly-time.
  8007. 'GOT'
  8008. Attaching this suffix to a symbol in an instruction causes the
  8009. symbol to be entered into the global offset table. The value is a
  8010. 32-bit index for that symbol into the global offset table. The
  8011. name of the corresponding relocation is 'R_CRIS_32_GOT'. Example:
  8012. 'move.d [$r0+extsym:GOT],$r9'
  8013. 'GOT16'
  8014. Same as for 'GOT', but the value is a 16-bit index into the global
  8015. offset table. The corresponding relocation is 'R_CRIS_16_GOT'.
  8016. Example: 'move.d [$r0+asymbol:GOT16],$r10'
  8017. 'PLT'
  8018. This suffix is used for function symbols. It causes a _procedure
  8019. linkage table_, an array of code stubs, to be created at the time
  8020. the shared object is created or linked against, together with a
  8021. global offset table entry. The value is a pc-relative offset to
  8022. the corresponding stub code in the procedure linkage table. This
  8023. arrangement causes the run-time symbol resolver to be called to
  8024. look up and set the value of the symbol the first time the function
  8025. is called (at latest; depending environment variables). It is only
  8026. safe to leave the symbol unresolved this way if all references are
  8027. function calls. The name of the relocation is
  8028. 'R_CRIS_32_PLT_PCREL'. Example: 'add.d fnname:PLT,$pc'
  8029. 'PLTG'
  8030. Like PLT, but the value is relative to the beginning of the global
  8031. offset table. The relocation is 'R_CRIS_32_PLT_GOTREL'. Example:
  8032. 'move.d fnname:PLTG,$r3'
  8033. 'GOTPLT'
  8034. Similar to 'PLT', but the value of the symbol is a 32-bit index
  8035. into the global offset table. This is somewhat of a mix between
  8036. the effect of the 'GOT' and the 'PLT' suffix; the difference to
  8037. 'GOT' is that there will be a procedure linkage table entry
  8038. created, and that the symbol is assumed to be a function entry and
  8039. will be resolved by the run-time resolver as with 'PLT'. The
  8040. relocation is 'R_CRIS_32_GOTPLT'. Example: 'jsr
  8041. [$r0+fnname:GOTPLT]'
  8042. 'GOTPLT16'
  8043. A variant of 'GOTPLT' giving a 16-bit value. Its relocation name
  8044. is 'R_CRIS_16_GOTPLT'. Example: 'jsr [$r0+fnname:GOTPLT16]'
  8045. 'GOTOFF'
  8046. This suffix must only be attached to a local symbol, but may be
  8047. used in an expression adding an offset. The value is the address
  8048. of the symbol relative to the start of the global offset table.
  8049. The relocation name is 'R_CRIS_32_GOTREL'. Example: 'move.d
  8050. [$r0+localsym:GOTOFF],r3'
  8051. 
  8052. File: as.info, Node: CRIS-Regs, Next: CRIS-Pseudos, Prev: CRIS-Pic, Up: CRIS-Syntax
  8053. 9.9.4.3 Register names
  8054. ......................
  8055. A '$' character may always prefix a general or special register name in
  8056. an instruction operand but is mandatory when the option
  8057. '--no-underscore' is specified or when the '.syntax register_prefix'
  8058. directive is in effect (*note crisnous::). Register names are
  8059. case-insensitive.
  8060. 
  8061. File: as.info, Node: CRIS-Pseudos, Prev: CRIS-Regs, Up: CRIS-Syntax
  8062. 9.9.4.4 Assembler Directives
  8063. ............................
  8064. There are a few CRIS-specific pseudo-directives in addition to the
  8065. generic ones. *Note Pseudo Ops::. Constants emitted by
  8066. pseudo-directives are in little-endian order for CRIS. There is no
  8067. support for floating-point-specific directives for CRIS.
  8068. '.dword EXPRESSIONS'
  8069. The '.dword' directive is a synonym for '.int', expecting zero or
  8070. more EXPRESSIONS, separated by commas. For each expression, a
  8071. 32-bit little-endian constant is emitted.
  8072. '.syntax ARGUMENT'
  8073. The '.syntax' directive takes as ARGUMENT one of the following
  8074. case-sensitive choices.
  8075. 'no_register_prefix'
  8076. The '.syntax no_register_prefix' directive makes a '$'
  8077. character prefix on all registers optional. It overrides a
  8078. previous setting, including the corresponding effect of the
  8079. option '--no-underscore'. If this directive is used when
  8080. ordinary symbols do not have a '_' character prefix, care must
  8081. be taken to avoid ambiguities whether an operand is a register
  8082. or a symbol; using symbols with names the same as general or
  8083. special registers then invoke undefined behavior.
  8084. 'register_prefix'
  8085. This directive makes a '$' character prefix on all registers
  8086. mandatory. It overrides a previous setting, including the
  8087. corresponding effect of the option '--underscore'.
  8088. 'leading_underscore'
  8089. This is an assertion directive, emitting an error if the
  8090. '--no-underscore' option is in effect.
  8091. 'no_leading_underscore'
  8092. This is the opposite of the '.syntax leading_underscore'
  8093. directive and emits an error if the option '--underscore' is
  8094. in effect.
  8095. '.arch ARGUMENT'
  8096. This is an assertion directive, giving an error if the specified
  8097. ARGUMENT is not the same as the specified or default value for the
  8098. '--march=ARCHITECTURE' option (*note march-option::).
  8099. 
  8100. File: as.info, Node: C-SKY-Dependent, Next: D10V-Dependent, Prev: CRIS-Dependent, Up: Machine Dependencies
  8101. 9.10 C-SKY Dependent Features
  8102. =============================
  8103. * Menu:
  8104. * C-SKY Options:: Options
  8105. * C-SKY Syntax:: Syntax
  8106. 
  8107. File: as.info, Node: C-SKY Options, Next: C-SKY Syntax, Up: C-SKY-Dependent
  8108. 9.10.1 Options
  8109. --------------
  8110. '-march=ARCHNAME'
  8111. Assemble for architecture ARCHNAME. The '--help' option lists
  8112. valid values for ARCHNAME.
  8113. '-mcpu=CPUNAME'
  8114. Assemble for architecture CPUNAME. The '--help' option lists valid
  8115. values for CPUNAME.
  8116. '-EL'
  8117. '-mlittle-endian'
  8118. Generate little-endian output.
  8119. '-EB'
  8120. '-mbig-endian'
  8121. Generate big-endian output.
  8122. '-fpic'
  8123. '-pic'
  8124. Generate position-independent code.
  8125. '-mljump'
  8126. '-mno-ljump'
  8127. Enable/disable transformation of the short branch instructions
  8128. 'jbf', 'jbt', and 'jbr' to 'jmpi'. This option is for V2
  8129. processors only. It is ignored on CK801 and CK802 targets, which
  8130. do not support the 'jmpi' instruction, and is enabled by default
  8131. for other processors.
  8132. '-mbranch-stub'
  8133. '-mno-branch-stub'
  8134. Pass through 'R_CKCORE_PCREL_IMM26BY2' relocations for 'bsr'
  8135. instructions to the linker.
  8136. This option is only available for bare-metal C-SKY V2 ELF targets,
  8137. where it is enabled by default. It cannot be used in code that
  8138. will be dynamically linked against shared libraries.
  8139. '-force2bsr'
  8140. '-mforce2bsr'
  8141. '-no-force2bsr'
  8142. '-mno-force2bsr'
  8143. Enable/disable transformation of 'jbsr' instructions to 'bsr'.
  8144. This option is always enabled (and '-mno-force2bsr' is ignored) for
  8145. CK801/CK802 targets. It is also always enabled when
  8146. '-mbranch-stub' is in effect.
  8147. '-jsri2bsr'
  8148. '-mjsri2bsr'
  8149. '-no-jsri2bsr'
  8150. '-mno-jsri2bsr'
  8151. Enable/disable transformation of 'jsri' instructions to 'bsr'.
  8152. This option is enabled by default.
  8153. '-mnolrw'
  8154. '-mno-lrw'
  8155. Enable/disable transformation of 'lrw' instructions into a
  8156. 'movih'/'ori' pair.
  8157. '-melrw'
  8158. '-mno-elrw'
  8159. Enable/disable extended 'lrw' instructions. This option is enabled
  8160. by default for CK800-series processors.
  8161. '-mlaf'
  8162. '-mliterals-after-func'
  8163. '-mno-laf'
  8164. '-mno-literals-after-func'
  8165. Enable/disable placement of literal pools after each function.
  8166. '-mlabr'
  8167. '-mliterals-after-br'
  8168. '-mno-labr'
  8169. '-mnoliterals-after-br'
  8170. Enable/disable placement of literal pools after unconditional
  8171. branches. This option is enabled by default.
  8172. '-mistack'
  8173. '-mno-istack'
  8174. Enable/disable interrupt stack instructions. This option is
  8175. enabled by default on CK801, CK802, and CK802 processors.
  8176. The following options explicitly enable certain optional
  8177. instructions. These features are also enabled implicitly by using
  8178. '-mcpu=' to specify a processor that supports it.
  8179. '-mhard-float'
  8180. Enable hard float instructions.
  8181. '-mmp'
  8182. Enable multiprocessor instructions.
  8183. '-mcp'
  8184. Enable coprocessor instructions.
  8185. '-mcache'
  8186. Enable cache prefetch instruction.
  8187. '-msecurity'
  8188. Enable C-SKY security instructions.
  8189. '-mtrust'
  8190. Enable C-SKY trust instructions.
  8191. '-mdsp'
  8192. Enable DSP instructions.
  8193. '-medsp'
  8194. Enable enhanced DSP instructions.
  8195. '-mvdsp'
  8196. Enable vector DSP instructions.
  8197. 
  8198. File: as.info, Node: C-SKY Syntax, Prev: C-SKY Options, Up: C-SKY-Dependent
  8199. 9.10.2 Syntax
  8200. -------------
  8201. 'as' implements the standard C-SKY assembler syntax documented in the
  8202. 'C-SKY V2 CPU Applications Binary Interface Standards Manual'.
  8203. 
  8204. File: as.info, Node: D10V-Dependent, Next: D30V-Dependent, Prev: C-SKY-Dependent, Up: Machine Dependencies
  8205. 9.11 D10V Dependent Features
  8206. ============================
  8207. * Menu:
  8208. * D10V-Opts:: D10V Options
  8209. * D10V-Syntax:: Syntax
  8210. * D10V-Float:: Floating Point
  8211. * D10V-Opcodes:: Opcodes
  8212. 
  8213. File: as.info, Node: D10V-Opts, Next: D10V-Syntax, Up: D10V-Dependent
  8214. 9.11.1 D10V Options
  8215. -------------------
  8216. The Mitsubishi D10V version of 'as' has a few machine dependent options.
  8217. '-O'
  8218. The D10V can often execute two sub-instructions in parallel. When
  8219. this option is used, 'as' will attempt to optimize its output by
  8220. detecting when instructions can be executed in parallel.
  8221. '--nowarnswap'
  8222. To optimize execution performance, 'as' will sometimes swap the
  8223. order of instructions. Normally this generates a warning. When
  8224. this option is used, no warning will be generated when instructions
  8225. are swapped.
  8226. '--gstabs-packing'
  8227. '--no-gstabs-packing'
  8228. 'as' packs adjacent short instructions into a single packed
  8229. instruction. '--no-gstabs-packing' turns instruction packing off
  8230. if '--gstabs' is specified as well; '--gstabs-packing' (the
  8231. default) turns instruction packing on even when '--gstabs' is
  8232. specified.
  8233. 
  8234. File: as.info, Node: D10V-Syntax, Next: D10V-Float, Prev: D10V-Opts, Up: D10V-Dependent
  8235. 9.11.2 Syntax
  8236. -------------
  8237. The D10V syntax is based on the syntax in Mitsubishi's D10V architecture
  8238. manual. The differences are detailed below.
  8239. * Menu:
  8240. * D10V-Size:: Size Modifiers
  8241. * D10V-Subs:: Sub-Instructions
  8242. * D10V-Chars:: Special Characters
  8243. * D10V-Regs:: Register Names
  8244. * D10V-Addressing:: Addressing Modes
  8245. * D10V-Word:: @WORD Modifier
  8246. 
  8247. File: as.info, Node: D10V-Size, Next: D10V-Subs, Up: D10V-Syntax
  8248. 9.11.2.1 Size Modifiers
  8249. .......................
  8250. The D10V version of 'as' uses the instruction names in the D10V
  8251. Architecture Manual. However, the names in the manual are sometimes
  8252. ambiguous. There are instruction names that can assemble to a short or
  8253. long form opcode. How does the assembler pick the correct form? 'as'
  8254. will always pick the smallest form if it can. When dealing with a
  8255. symbol that is not defined yet when a line is being assembled, it will
  8256. always use the long form. If you need to force the assembler to use
  8257. either the short or long form of the instruction, you can append either
  8258. '.s' (short) or '.l' (long) to it. For example, if you are writing an
  8259. assembly program and you want to do a branch to a symbol that is defined
  8260. later in your program, you can write 'bra.s foo'. Objdump and GDB will
  8261. always append '.s' or '.l' to instructions which have both short and
  8262. long forms.
  8263. 
  8264. File: as.info, Node: D10V-Subs, Next: D10V-Chars, Prev: D10V-Size, Up: D10V-Syntax
  8265. 9.11.2.2 Sub-Instructions
  8266. .........................
  8267. The D10V assembler takes as input a series of instructions, either
  8268. one-per-line, or in the special two-per-line format described in the
  8269. next section. Some of these instructions will be short-form or
  8270. sub-instructions. These sub-instructions can be packed into a single
  8271. instruction. The assembler will do this automatically. It will also
  8272. detect when it should not pack instructions. For example, when a label
  8273. is defined, the next instruction will never be packaged with the
  8274. previous one. Whenever a branch and link instruction is called, it will
  8275. not be packaged with the next instruction so the return address will be
  8276. valid. Nops are automatically inserted when necessary.
  8277. If you do not want the assembler automatically making these
  8278. decisions, you can control the packaging and execution type (parallel or
  8279. sequential) with the special execution symbols described in the next
  8280. section.
  8281. 
  8282. File: as.info, Node: D10V-Chars, Next: D10V-Regs, Prev: D10V-Subs, Up: D10V-Syntax
  8283. 9.11.2.3 Special Characters
  8284. ...........................
  8285. A semicolon (';') can be used anywhere on a line to start a comment that
  8286. extends to the end of the line.
  8287. If a '#' appears as the first character of a line, the whole line is
  8288. treated as a comment, but in this case the line could also be a logical
  8289. line number directive (*note Comments::) or a preprocessor control
  8290. command (*note Preprocessing::).
  8291. Sub-instructions may be executed in order, in reverse-order, or in
  8292. parallel. Instructions listed in the standard one-per-line format will
  8293. be executed sequentially. To specify the executing order, use the
  8294. following symbols:
  8295. '->'
  8296. Sequential with instruction on the left first.
  8297. '<-'
  8298. Sequential with instruction on the right first.
  8299. '||'
  8300. Parallel
  8301. The D10V syntax allows either one instruction per line, one
  8302. instruction per line with the execution symbol, or two instructions per
  8303. line. For example
  8304. 'abs a1 -> abs r0'
  8305. Execute these sequentially. The instruction on the right is in the
  8306. right container and is executed second.
  8307. 'abs r0 <- abs a1'
  8308. Execute these reverse-sequentially. The instruction on the right
  8309. is in the right container, and is executed first.
  8310. 'ld2w r2,@r8+ || mac a0,r0,r7'
  8311. Execute these in parallel.
  8312. 'ld2w r2,@r8+ ||'
  8313. 'mac a0,r0,r7'
  8314. Two-line format. Execute these in parallel.
  8315. 'ld2w r2,@r8+'
  8316. 'mac a0,r0,r7'
  8317. Two-line format. Execute these sequentially. Assembler will put
  8318. them in the proper containers.
  8319. 'ld2w r2,@r8+ ->'
  8320. 'mac a0,r0,r7'
  8321. Two-line format. Execute these sequentially. Same as above but
  8322. second instruction will always go into right container.
  8323. Since '$' has no special meaning, you may use it in symbol names.
  8324. 
  8325. File: as.info, Node: D10V-Regs, Next: D10V-Addressing, Prev: D10V-Chars, Up: D10V-Syntax
  8326. 9.11.2.4 Register Names
  8327. .......................
  8328. You can use the predefined symbols 'r0' through 'r15' to refer to the
  8329. D10V registers. You can also use 'sp' as an alias for 'r15'. The
  8330. accumulators are 'a0' and 'a1'. There are special register-pair names
  8331. that may optionally be used in opcodes that require even-numbered
  8332. registers. Register names are not case sensitive.
  8333. Register Pairs
  8334. 'r0-r1'
  8335. 'r2-r3'
  8336. 'r4-r5'
  8337. 'r6-r7'
  8338. 'r8-r9'
  8339. 'r10-r11'
  8340. 'r12-r13'
  8341. 'r14-r15'
  8342. The D10V also has predefined symbols for these control registers and
  8343. status bits:
  8344. 'psw'
  8345. Processor Status Word
  8346. 'bpsw'
  8347. Backup Processor Status Word
  8348. 'pc'
  8349. Program Counter
  8350. 'bpc'
  8351. Backup Program Counter
  8352. 'rpt_c'
  8353. Repeat Count
  8354. 'rpt_s'
  8355. Repeat Start address
  8356. 'rpt_e'
  8357. Repeat End address
  8358. 'mod_s'
  8359. Modulo Start address
  8360. 'mod_e'
  8361. Modulo End address
  8362. 'iba'
  8363. Instruction Break Address
  8364. 'f0'
  8365. Flag 0
  8366. 'f1'
  8367. Flag 1
  8368. 'c'
  8369. Carry flag
  8370. 
  8371. File: as.info, Node: D10V-Addressing, Next: D10V-Word, Prev: D10V-Regs, Up: D10V-Syntax
  8372. 9.11.2.5 Addressing Modes
  8373. .........................
  8374. 'as' understands the following addressing modes for the D10V. 'RN' in
  8375. the following refers to any of the numbered registers, but _not_ the
  8376. control registers.
  8377. 'RN'
  8378. Register direct
  8379. '@RN'
  8380. Register indirect
  8381. '@RN+'
  8382. Register indirect with post-increment
  8383. '@RN-'
  8384. Register indirect with post-decrement
  8385. '@-SP'
  8386. Register indirect with pre-decrement
  8387. '@(DISP, RN)'
  8388. Register indirect with displacement
  8389. 'ADDR'
  8390. PC relative address (for branch or rep).
  8391. '#IMM'
  8392. Immediate data (the '#' is optional and ignored)
  8393. 
  8394. File: as.info, Node: D10V-Word, Prev: D10V-Addressing, Up: D10V-Syntax
  8395. 9.11.2.6 @WORD Modifier
  8396. .......................
  8397. Any symbol followed by '@word' will be replaced by the symbol's value
  8398. shifted right by 2. This is used in situations such as loading a
  8399. register with the address of a function (or any other code fragment).
  8400. For example, if you want to load a register with the location of the
  8401. function 'main' then jump to that function, you could do it as follows:
  8402. ldi r2, main@word
  8403. jmp r2
  8404. 
  8405. File: as.info, Node: D10V-Float, Next: D10V-Opcodes, Prev: D10V-Syntax, Up: D10V-Dependent
  8406. 9.11.3 Floating Point
  8407. ---------------------
  8408. The D10V has no hardware floating point, but the '.float' and '.double'
  8409. directives generates IEEE floating-point numbers for compatibility with
  8410. other development tools.
  8411. 
  8412. File: as.info, Node: D10V-Opcodes, Prev: D10V-Float, Up: D10V-Dependent
  8413. 9.11.4 Opcodes
  8414. --------------
  8415. For detailed information on the D10V machine instruction set, see 'D10V
  8416. Architecture: A VLIW Microprocessor for Multimedia Applications'
  8417. (Mitsubishi Electric Corp.). 'as' implements all the standard D10V
  8418. opcodes. The only changes are those described in the section on size
  8419. modifiers
  8420. 
  8421. File: as.info, Node: D30V-Dependent, Next: Epiphany-Dependent, Prev: D10V-Dependent, Up: Machine Dependencies
  8422. 9.12 D30V Dependent Features
  8423. ============================
  8424. * Menu:
  8425. * D30V-Opts:: D30V Options
  8426. * D30V-Syntax:: Syntax
  8427. * D30V-Float:: Floating Point
  8428. * D30V-Opcodes:: Opcodes
  8429. 
  8430. File: as.info, Node: D30V-Opts, Next: D30V-Syntax, Up: D30V-Dependent
  8431. 9.12.1 D30V Options
  8432. -------------------
  8433. The Mitsubishi D30V version of 'as' has a few machine dependent options.
  8434. '-O'
  8435. The D30V can often execute two sub-instructions in parallel. When
  8436. this option is used, 'as' will attempt to optimize its output by
  8437. detecting when instructions can be executed in parallel.
  8438. '-n'
  8439. When this option is used, 'as' will issue a warning every time it
  8440. adds a nop instruction.
  8441. '-N'
  8442. When this option is used, 'as' will issue a warning if it needs to
  8443. insert a nop after a 32-bit multiply before a load or 16-bit
  8444. multiply instruction.
  8445. 
  8446. File: as.info, Node: D30V-Syntax, Next: D30V-Float, Prev: D30V-Opts, Up: D30V-Dependent
  8447. 9.12.2 Syntax
  8448. -------------
  8449. The D30V syntax is based on the syntax in Mitsubishi's D30V architecture
  8450. manual. The differences are detailed below.
  8451. * Menu:
  8452. * D30V-Size:: Size Modifiers
  8453. * D30V-Subs:: Sub-Instructions
  8454. * D30V-Chars:: Special Characters
  8455. * D30V-Guarded:: Guarded Execution
  8456. * D30V-Regs:: Register Names
  8457. * D30V-Addressing:: Addressing Modes
  8458. 
  8459. File: as.info, Node: D30V-Size, Next: D30V-Subs, Up: D30V-Syntax
  8460. 9.12.2.1 Size Modifiers
  8461. .......................
  8462. The D30V version of 'as' uses the instruction names in the D30V
  8463. Architecture Manual. However, the names in the manual are sometimes
  8464. ambiguous. There are instruction names that can assemble to a short or
  8465. long form opcode. How does the assembler pick the correct form? 'as'
  8466. will always pick the smallest form if it can. When dealing with a
  8467. symbol that is not defined yet when a line is being assembled, it will
  8468. always use the long form. If you need to force the assembler to use
  8469. either the short or long form of the instruction, you can append either
  8470. '.s' (short) or '.l' (long) to it. For example, if you are writing an
  8471. assembly program and you want to do a branch to a symbol that is defined
  8472. later in your program, you can write 'bra.s foo'. Objdump and GDB will
  8473. always append '.s' or '.l' to instructions which have both short and
  8474. long forms.
  8475. 
  8476. File: as.info, Node: D30V-Subs, Next: D30V-Chars, Prev: D30V-Size, Up: D30V-Syntax
  8477. 9.12.2.2 Sub-Instructions
  8478. .........................
  8479. The D30V assembler takes as input a series of instructions, either
  8480. one-per-line, or in the special two-per-line format described in the
  8481. next section. Some of these instructions will be short-form or
  8482. sub-instructions. These sub-instructions can be packed into a single
  8483. instruction. The assembler will do this automatically. It will also
  8484. detect when it should not pack instructions. For example, when a label
  8485. is defined, the next instruction will never be packaged with the
  8486. previous one. Whenever a branch and link instruction is called, it will
  8487. not be packaged with the next instruction so the return address will be
  8488. valid. Nops are automatically inserted when necessary.
  8489. If you do not want the assembler automatically making these
  8490. decisions, you can control the packaging and execution type (parallel or
  8491. sequential) with the special execution symbols described in the next
  8492. section.
  8493. 
  8494. File: as.info, Node: D30V-Chars, Next: D30V-Guarded, Prev: D30V-Subs, Up: D30V-Syntax
  8495. 9.12.2.3 Special Characters
  8496. ...........................
  8497. A semicolon (';') can be used anywhere on a line to start a comment that
  8498. extends to the end of the line.
  8499. If a '#' appears as the first character of a line, the whole line is
  8500. treated as a comment, but in this case the line could also be a logical
  8501. line number directive (*note Comments::) or a preprocessor control
  8502. command (*note Preprocessing::).
  8503. Sub-instructions may be executed in order, in reverse-order, or in
  8504. parallel. Instructions listed in the standard one-per-line format will
  8505. be executed sequentially unless you use the '-O' option.
  8506. To specify the executing order, use the following symbols:
  8507. '->'
  8508. Sequential with instruction on the left first.
  8509. '<-'
  8510. Sequential with instruction on the right first.
  8511. '||'
  8512. Parallel
  8513. The D30V syntax allows either one instruction per line, one
  8514. instruction per line with the execution symbol, or two instructions per
  8515. line. For example
  8516. 'abs r2,r3 -> abs r4,r5'
  8517. Execute these sequentially. The instruction on the right is in the
  8518. right container and is executed second.
  8519. 'abs r2,r3 <- abs r4,r5'
  8520. Execute these reverse-sequentially. The instruction on the right
  8521. is in the right container, and is executed first.
  8522. 'abs r2,r3 || abs r4,r5'
  8523. Execute these in parallel.
  8524. 'ldw r2,@(r3,r4) ||'
  8525. 'mulx r6,r8,r9'
  8526. Two-line format. Execute these in parallel.
  8527. 'mulx a0,r8,r9'
  8528. 'stw r2,@(r3,r4)'
  8529. Two-line format. Execute these sequentially unless '-O' option is
  8530. used. If the '-O' option is used, the assembler will determine if
  8531. the instructions could be done in parallel (the above two
  8532. instructions can be done in parallel), and if so, emit them as
  8533. parallel instructions. The assembler will put them in the proper
  8534. containers. In the above example, the assembler will put the 'stw'
  8535. instruction in left container and the 'mulx' instruction in the
  8536. right container.
  8537. 'stw r2,@(r3,r4) ->'
  8538. 'mulx a0,r8,r9'
  8539. Two-line format. Execute the 'stw' instruction followed by the
  8540. 'mulx' instruction sequentially. The first instruction goes in the
  8541. left container and the second instruction goes into right
  8542. container. The assembler will give an error if the machine
  8543. ordering constraints are violated.
  8544. 'stw r2,@(r3,r4) <-'
  8545. 'mulx a0,r8,r9'
  8546. Same as previous example, except that the 'mulx' instruction is
  8547. executed before the 'stw' instruction.
  8548. Since '$' has no special meaning, you may use it in symbol names.
  8549. 
  8550. File: as.info, Node: D30V-Guarded, Next: D30V-Regs, Prev: D30V-Chars, Up: D30V-Syntax
  8551. 9.12.2.4 Guarded Execution
  8552. ..........................
  8553. 'as' supports the full range of guarded execution directives for each
  8554. instruction. Just append the directive after the instruction proper.
  8555. The directives are:
  8556. '/tx'
  8557. Execute the instruction if flag f0 is true.
  8558. '/fx'
  8559. Execute the instruction if flag f0 is false.
  8560. '/xt'
  8561. Execute the instruction if flag f1 is true.
  8562. '/xf'
  8563. Execute the instruction if flag f1 is false.
  8564. '/tt'
  8565. Execute the instruction if both flags f0 and f1 are true.
  8566. '/tf'
  8567. Execute the instruction if flag f0 is true and flag f1 is false.
  8568. 
  8569. File: as.info, Node: D30V-Regs, Next: D30V-Addressing, Prev: D30V-Guarded, Up: D30V-Syntax
  8570. 9.12.2.5 Register Names
  8571. .......................
  8572. You can use the predefined symbols 'r0' through 'r63' to refer to the
  8573. D30V registers. You can also use 'sp' as an alias for 'r63' and 'link'
  8574. as an alias for 'r62'. The accumulators are 'a0' and 'a1'.
  8575. The D30V also has predefined symbols for these control registers and
  8576. status bits:
  8577. 'psw'
  8578. Processor Status Word
  8579. 'bpsw'
  8580. Backup Processor Status Word
  8581. 'pc'
  8582. Program Counter
  8583. 'bpc'
  8584. Backup Program Counter
  8585. 'rpt_c'
  8586. Repeat Count
  8587. 'rpt_s'
  8588. Repeat Start address
  8589. 'rpt_e'
  8590. Repeat End address
  8591. 'mod_s'
  8592. Modulo Start address
  8593. 'mod_e'
  8594. Modulo End address
  8595. 'iba'
  8596. Instruction Break Address
  8597. 'f0'
  8598. Flag 0
  8599. 'f1'
  8600. Flag 1
  8601. 'f2'
  8602. Flag 2
  8603. 'f3'
  8604. Flag 3
  8605. 'f4'
  8606. Flag 4
  8607. 'f5'
  8608. Flag 5
  8609. 'f6'
  8610. Flag 6
  8611. 'f7'
  8612. Flag 7
  8613. 's'
  8614. Same as flag 4 (saturation flag)
  8615. 'v'
  8616. Same as flag 5 (overflow flag)
  8617. 'va'
  8618. Same as flag 6 (sticky overflow flag)
  8619. 'c'
  8620. Same as flag 7 (carry/borrow flag)
  8621. 'b'
  8622. Same as flag 7 (carry/borrow flag)
  8623. 
  8624. File: as.info, Node: D30V-Addressing, Prev: D30V-Regs, Up: D30V-Syntax
  8625. 9.12.2.6 Addressing Modes
  8626. .........................
  8627. 'as' understands the following addressing modes for the D30V. 'RN' in
  8628. the following refers to any of the numbered registers, but _not_ the
  8629. control registers.
  8630. 'RN'
  8631. Register direct
  8632. '@RN'
  8633. Register indirect
  8634. '@RN+'
  8635. Register indirect with post-increment
  8636. '@RN-'
  8637. Register indirect with post-decrement
  8638. '@-SP'
  8639. Register indirect with pre-decrement
  8640. '@(DISP, RN)'
  8641. Register indirect with displacement
  8642. 'ADDR'
  8643. PC relative address (for branch or rep).
  8644. '#IMM'
  8645. Immediate data (the '#' is optional and ignored)
  8646. 
  8647. File: as.info, Node: D30V-Float, Next: D30V-Opcodes, Prev: D30V-Syntax, Up: D30V-Dependent
  8648. 9.12.3 Floating Point
  8649. ---------------------
  8650. The D30V has no hardware floating point, but the '.float' and '.double'
  8651. directives generates IEEE floating-point numbers for compatibility with
  8652. other development tools.
  8653. 
  8654. File: as.info, Node: D30V-Opcodes, Prev: D30V-Float, Up: D30V-Dependent
  8655. 9.12.4 Opcodes
  8656. --------------
  8657. For detailed information on the D30V machine instruction set, see 'D30V
  8658. Architecture: A VLIW Microprocessor for Multimedia Applications'
  8659. (Mitsubishi Electric Corp.). 'as' implements all the standard D30V
  8660. opcodes. The only changes are those described in the section on size
  8661. modifiers
  8662. 
  8663. File: as.info, Node: Epiphany-Dependent, Next: H8/300-Dependent, Prev: D30V-Dependent, Up: Machine Dependencies
  8664. 9.13 Epiphany Dependent Features
  8665. ================================
  8666. * Menu:
  8667. * Epiphany Options:: Options
  8668. * Epiphany Syntax:: Epiphany Syntax
  8669. 
  8670. File: as.info, Node: Epiphany Options, Next: Epiphany Syntax, Up: Epiphany-Dependent
  8671. 9.13.1 Options
  8672. --------------
  8673. 'as' has two additional command-line options for the Epiphany
  8674. architecture.
  8675. '-mepiphany'
  8676. Specifies that the both 32 and 16 bit instructions are allowed.
  8677. This is the default behavior.
  8678. '-mepiphany16'
  8679. Restricts the permitted instructions to just the 16 bit set.
  8680. 
  8681. File: as.info, Node: Epiphany Syntax, Prev: Epiphany Options, Up: Epiphany-Dependent
  8682. 9.13.2 Epiphany Syntax
  8683. ----------------------
  8684. * Menu:
  8685. * Epiphany-Chars:: Special Characters
  8686. 
  8687. File: as.info, Node: Epiphany-Chars, Up: Epiphany Syntax
  8688. 9.13.2.1 Special Characters
  8689. ...........................
  8690. The presence of a ';' on a line indicates the start of a comment that
  8691. extends to the end of the current line.
  8692. If a '#' appears as the first character of a line then the whole line
  8693. is treated as a comment, but in this case the line could also be a
  8694. logical line number directive (*note Comments::) or a preprocessor
  8695. control command (*note Preprocessing::).
  8696. The '`' character can be used to separate statements on the same
  8697. line.
  8698. 
  8699. File: as.info, Node: H8/300-Dependent, Next: HPPA-Dependent, Prev: Epiphany-Dependent, Up: Machine Dependencies
  8700. 9.14 H8/300 Dependent Features
  8701. ==============================
  8702. * Menu:
  8703. * H8/300 Options:: Options
  8704. * H8/300 Syntax:: Syntax
  8705. * H8/300 Floating Point:: Floating Point
  8706. * H8/300 Directives:: H8/300 Machine Directives
  8707. * H8/300 Opcodes:: Opcodes
  8708. 
  8709. File: as.info, Node: H8/300 Options, Next: H8/300 Syntax, Up: H8/300-Dependent
  8710. 9.14.1 Options
  8711. --------------
  8712. The Renesas H8/300 version of 'as' has one machine-dependent option:
  8713. '-h-tick-hex'
  8714. Support H'00 style hex constants in addition to 0x00 style.
  8715. '-mach=NAME'
  8716. Sets the H8300 machine variant. The following machine names are
  8717. recognised: 'h8300h', 'h8300hn', 'h8300s', 'h8300sn', 'h8300sx' and
  8718. 'h8300sxn'.
  8719. 
  8720. File: as.info, Node: H8/300 Syntax, Next: H8/300 Floating Point, Prev: H8/300 Options, Up: H8/300-Dependent
  8721. 9.14.2 Syntax
  8722. -------------
  8723. * Menu:
  8724. * H8/300-Chars:: Special Characters
  8725. * H8/300-Regs:: Register Names
  8726. * H8/300-Addressing:: Addressing Modes
  8727. 
  8728. File: as.info, Node: H8/300-Chars, Next: H8/300-Regs, Up: H8/300 Syntax
  8729. 9.14.2.1 Special Characters
  8730. ...........................
  8731. ';' is the line comment character.
  8732. '$' can be used instead of a newline to separate statements.
  8733. Therefore _you may not use '$' in symbol names_ on the H8/300.
  8734. 
  8735. File: as.info, Node: H8/300-Regs, Next: H8/300-Addressing, Prev: H8/300-Chars, Up: H8/300 Syntax
  8736. 9.14.2.2 Register Names
  8737. .......................
  8738. You can use predefined symbols of the form 'rNh' and 'rNl' to refer to
  8739. the H8/300 registers as sixteen 8-bit general-purpose registers. N is a
  8740. digit from '0' to '7'); for instance, both 'r0h' and 'r7l' are valid
  8741. register names.
  8742. You can also use the eight predefined symbols 'rN' to refer to the
  8743. H8/300 registers as 16-bit registers (you must use this form for
  8744. addressing).
  8745. On the H8/300H, you can also use the eight predefined symbols 'erN'
  8746. ('er0' ... 'er7') to refer to the 32-bit general purpose registers.
  8747. The two control registers are called 'pc' (program counter; a 16-bit
  8748. register, except on the H8/300H where it is 24 bits) and 'ccr'
  8749. (condition code register; an 8-bit register). 'r7' is used as the stack
  8750. pointer, and can also be called 'sp'.
  8751. 
  8752. File: as.info, Node: H8/300-Addressing, Prev: H8/300-Regs, Up: H8/300 Syntax
  8753. 9.14.2.3 Addressing Modes
  8754. .........................
  8755. as understands the following addressing modes for the H8/300:
  8756. 'rN'
  8757. Register direct
  8758. '@rN'
  8759. Register indirect
  8760. '@(D, rN)'
  8761. '@(D:16, rN)'
  8762. '@(D:24, rN)'
  8763. Register indirect: 16-bit or 24-bit displacement D from register N.
  8764. (24-bit displacements are only meaningful on the H8/300H.)
  8765. '@rN+'
  8766. Register indirect with post-increment
  8767. '@-rN'
  8768. Register indirect with pre-decrement
  8769. '@AA'
  8770. '@AA:8'
  8771. '@AA:16'
  8772. '@AA:24'
  8773. Absolute address 'aa'. (The address size ':24' only makes sense on
  8774. the H8/300H.)
  8775. '#XX'
  8776. '#XX:8'
  8777. '#XX:16'
  8778. '#XX:32'
  8779. Immediate data XX. You may specify the ':8', ':16', or ':32' for
  8780. clarity, if you wish; but 'as' neither requires this nor uses
  8781. it--the data size required is taken from context.
  8782. '@@AA'
  8783. '@@AA:8'
  8784. Memory indirect. You may specify the ':8' for clarity, if you
  8785. wish; but 'as' neither requires this nor uses it.
  8786. 
  8787. File: as.info, Node: H8/300 Floating Point, Next: H8/300 Directives, Prev: H8/300 Syntax, Up: H8/300-Dependent
  8788. 9.14.3 Floating Point
  8789. ---------------------
  8790. The H8/300 family has no hardware floating point, but the '.float'
  8791. directive generates IEEE floating-point numbers for compatibility with
  8792. other development tools.
  8793. 
  8794. File: as.info, Node: H8/300 Directives, Next: H8/300 Opcodes, Prev: H8/300 Floating Point, Up: H8/300-Dependent
  8795. 9.14.4 H8/300 Machine Directives
  8796. --------------------------------
  8797. 'as' has the following machine-dependent directives for the H8/300:
  8798. '.h8300h'
  8799. Recognize and emit additional instructions for the H8/300H variant,
  8800. and also make '.int' emit 32-bit numbers rather than the usual
  8801. (16-bit) for the H8/300 family.
  8802. '.h8300s'
  8803. Recognize and emit additional instructions for the H8S variant, and
  8804. also make '.int' emit 32-bit numbers rather than the usual (16-bit)
  8805. for the H8/300 family.
  8806. '.h8300hn'
  8807. Recognize and emit additional instructions for the H8/300H variant
  8808. in normal mode, and also make '.int' emit 32-bit numbers rather
  8809. than the usual (16-bit) for the H8/300 family.
  8810. '.h8300sn'
  8811. Recognize and emit additional instructions for the H8S variant in
  8812. normal mode, and also make '.int' emit 32-bit numbers rather than
  8813. the usual (16-bit) for the H8/300 family.
  8814. On the H8/300 family (including the H8/300H) '.word' directives
  8815. generate 16-bit numbers.
  8816. 
  8817. File: as.info, Node: H8/300 Opcodes, Prev: H8/300 Directives, Up: H8/300-Dependent
  8818. 9.14.5 Opcodes
  8819. --------------
  8820. For detailed information on the H8/300 machine instruction set, see
  8821. 'H8/300 Series Programming Manual'. For information specific to the
  8822. H8/300H, see 'H8/300H Series Programming Manual' (Renesas).
  8823. 'as' implements all the standard H8/300 opcodes. No additional
  8824. pseudo-instructions are needed on this family.
  8825. The following table summarizes the H8/300 opcodes, and their
  8826. arguments. Entries marked '*' are opcodes used only on the H8/300H.
  8827. Legend:
  8828. Rs source register
  8829. Rd destination register
  8830. abs absolute address
  8831. imm immediate data
  8832. disp:N N-bit displacement from a register
  8833. pcrel:N N-bit displacement relative to program counter
  8834. add.b #imm,rd * andc #imm,ccr
  8835. add.b rs,rd band #imm,rd
  8836. add.w rs,rd band #imm,@rd
  8837. * add.w #imm,rd band #imm,@abs:8
  8838. * add.l rs,rd bra pcrel:8
  8839. * add.l #imm,rd * bra pcrel:16
  8840. adds #imm,rd bt pcrel:8
  8841. addx #imm,rd * bt pcrel:16
  8842. addx rs,rd brn pcrel:8
  8843. and.b #imm,rd * brn pcrel:16
  8844. and.b rs,rd bf pcrel:8
  8845. * and.w rs,rd * bf pcrel:16
  8846. * and.w #imm,rd bhi pcrel:8
  8847. * and.l #imm,rd * bhi pcrel:16
  8848. * and.l rs,rd bls pcrel:8
  8849. * bls pcrel:16 bld #imm,rd
  8850. bcc pcrel:8 bld #imm,@rd
  8851. * bcc pcrel:16 bld #imm,@abs:8
  8852. bhs pcrel:8 bnot #imm,rd
  8853. * bhs pcrel:16 bnot #imm,@rd
  8854. bcs pcrel:8 bnot #imm,@abs:8
  8855. * bcs pcrel:16 bnot rs,rd
  8856. blo pcrel:8 bnot rs,@rd
  8857. * blo pcrel:16 bnot rs,@abs:8
  8858. bne pcrel:8 bor #imm,rd
  8859. * bne pcrel:16 bor #imm,@rd
  8860. beq pcrel:8 bor #imm,@abs:8
  8861. * beq pcrel:16 bset #imm,rd
  8862. bvc pcrel:8 bset #imm,@rd
  8863. * bvc pcrel:16 bset #imm,@abs:8
  8864. bvs pcrel:8 bset rs,rd
  8865. * bvs pcrel:16 bset rs,@rd
  8866. bpl pcrel:8 bset rs,@abs:8
  8867. * bpl pcrel:16 bsr pcrel:8
  8868. bmi pcrel:8 bsr pcrel:16
  8869. * bmi pcrel:16 bst #imm,rd
  8870. bge pcrel:8 bst #imm,@rd
  8871. * bge pcrel:16 bst #imm,@abs:8
  8872. blt pcrel:8 btst #imm,rd
  8873. * blt pcrel:16 btst #imm,@rd
  8874. bgt pcrel:8 btst #imm,@abs:8
  8875. * bgt pcrel:16 btst rs,rd
  8876. ble pcrel:8 btst rs,@rd
  8877. * ble pcrel:16 btst rs,@abs:8
  8878. bclr #imm,rd bxor #imm,rd
  8879. bclr #imm,@rd bxor #imm,@rd
  8880. bclr #imm,@abs:8 bxor #imm,@abs:8
  8881. bclr rs,rd cmp.b #imm,rd
  8882. bclr rs,@rd cmp.b rs,rd
  8883. bclr rs,@abs:8 cmp.w rs,rd
  8884. biand #imm,rd cmp.w rs,rd
  8885. biand #imm,@rd * cmp.w #imm,rd
  8886. biand #imm,@abs:8 * cmp.l #imm,rd
  8887. bild #imm,rd * cmp.l rs,rd
  8888. bild #imm,@rd daa rs
  8889. bild #imm,@abs:8 das rs
  8890. bior #imm,rd dec.b rs
  8891. bior #imm,@rd * dec.w #imm,rd
  8892. bior #imm,@abs:8 * dec.l #imm,rd
  8893. bist #imm,rd divxu.b rs,rd
  8894. bist #imm,@rd * divxu.w rs,rd
  8895. bist #imm,@abs:8 * divxs.b rs,rd
  8896. bixor #imm,rd * divxs.w rs,rd
  8897. bixor #imm,@rd eepmov
  8898. bixor #imm,@abs:8 * eepmovw
  8899. * exts.w rd mov.w rs,@abs:16
  8900. * exts.l rd * mov.l #imm,rd
  8901. * extu.w rd * mov.l rs,rd
  8902. * extu.l rd * mov.l @rs,rd
  8903. inc rs * mov.l @(disp:16,rs),rd
  8904. * inc.w #imm,rd * mov.l @(disp:24,rs),rd
  8905. * inc.l #imm,rd * mov.l @rs+,rd
  8906. jmp @rs * mov.l @abs:16,rd
  8907. jmp abs * mov.l @abs:24,rd
  8908. jmp @@abs:8 * mov.l rs,@rd
  8909. jsr @rs * mov.l rs,@(disp:16,rd)
  8910. jsr abs * mov.l rs,@(disp:24,rd)
  8911. jsr @@abs:8 * mov.l rs,@-rd
  8912. ldc #imm,ccr * mov.l rs,@abs:16
  8913. ldc rs,ccr * mov.l rs,@abs:24
  8914. * ldc @abs:16,ccr movfpe @abs:16,rd
  8915. * ldc @abs:24,ccr movtpe rs,@abs:16
  8916. * ldc @(disp:16,rs),ccr mulxu.b rs,rd
  8917. * ldc @(disp:24,rs),ccr * mulxu.w rs,rd
  8918. * ldc @rs+,ccr * mulxs.b rs,rd
  8919. * ldc @rs,ccr * mulxs.w rs,rd
  8920. * mov.b @(disp:24,rs),rd neg.b rs
  8921. * mov.b rs,@(disp:24,rd) * neg.w rs
  8922. mov.b @abs:16,rd * neg.l rs
  8923. mov.b rs,rd nop
  8924. mov.b @abs:8,rd not.b rs
  8925. mov.b rs,@abs:8 * not.w rs
  8926. mov.b rs,rd * not.l rs
  8927. mov.b #imm,rd or.b #imm,rd
  8928. mov.b @rs,rd or.b rs,rd
  8929. mov.b @(disp:16,rs),rd * or.w #imm,rd
  8930. mov.b @rs+,rd * or.w rs,rd
  8931. mov.b @abs:8,rd * or.l #imm,rd
  8932. mov.b rs,@rd * or.l rs,rd
  8933. mov.b rs,@(disp:16,rd) orc #imm,ccr
  8934. mov.b rs,@-rd pop.w rs
  8935. mov.b rs,@abs:8 * pop.l rs
  8936. mov.w rs,@rd push.w rs
  8937. * mov.w @(disp:24,rs),rd * push.l rs
  8938. * mov.w rs,@(disp:24,rd) rotl.b rs
  8939. * mov.w @abs:24,rd * rotl.w rs
  8940. * mov.w rs,@abs:24 * rotl.l rs
  8941. mov.w rs,rd rotr.b rs
  8942. mov.w #imm,rd * rotr.w rs
  8943. mov.w @rs,rd * rotr.l rs
  8944. mov.w @(disp:16,rs),rd rotxl.b rs
  8945. mov.w @rs+,rd * rotxl.w rs
  8946. mov.w @abs:16,rd * rotxl.l rs
  8947. mov.w rs,@(disp:16,rd) rotxr.b rs
  8948. mov.w rs,@-rd * rotxr.w rs
  8949. * rotxr.l rs * stc ccr,@(disp:24,rd)
  8950. bpt * stc ccr,@-rd
  8951. rte * stc ccr,@abs:16
  8952. rts * stc ccr,@abs:24
  8953. shal.b rs sub.b rs,rd
  8954. * shal.w rs sub.w rs,rd
  8955. * shal.l rs * sub.w #imm,rd
  8956. shar.b rs * sub.l rs,rd
  8957. * shar.w rs * sub.l #imm,rd
  8958. * shar.l rs subs #imm,rd
  8959. shll.b rs subx #imm,rd
  8960. * shll.w rs subx rs,rd
  8961. * shll.l rs * trapa #imm
  8962. shlr.b rs xor #imm,rd
  8963. * shlr.w rs xor rs,rd
  8964. * shlr.l rs * xor.w #imm,rd
  8965. sleep * xor.w rs,rd
  8966. stc ccr,rd * xor.l #imm,rd
  8967. * stc ccr,@rs * xor.l rs,rd
  8968. * stc ccr,@(disp:16,rd) xorc #imm,ccr
  8969. Four H8/300 instructions ('add', 'cmp', 'mov', 'sub') are defined
  8970. with variants using the suffixes '.b', '.w', and '.l' to specify the
  8971. size of a memory operand. 'as' supports these suffixes, but does not
  8972. require them; since one of the operands is always a register, 'as' can
  8973. deduce the correct size.
  8974. For example, since 'r0' refers to a 16-bit register,
  8975. mov r0,@foo
  8976. is equivalent to
  8977. mov.w r0,@foo
  8978. If you use the size suffixes, 'as' issues a warning when the suffix
  8979. and the register size do not match.
  8980. 
  8981. File: as.info, Node: HPPA-Dependent, Next: i386-Dependent, Prev: H8/300-Dependent, Up: Machine Dependencies
  8982. 9.15 HPPA Dependent Features
  8983. ============================
  8984. * Menu:
  8985. * HPPA Notes:: Notes
  8986. * HPPA Options:: Options
  8987. * HPPA Syntax:: Syntax
  8988. * HPPA Floating Point:: Floating Point
  8989. * HPPA Directives:: HPPA Machine Directives
  8990. * HPPA Opcodes:: Opcodes
  8991. 
  8992. File: as.info, Node: HPPA Notes, Next: HPPA Options, Up: HPPA-Dependent
  8993. 9.15.1 Notes
  8994. ------------
  8995. As a back end for GNU CC 'as' has been thoroughly tested and should work
  8996. extremely well. We have tested it only minimally on hand written
  8997. assembly code and no one has tested it much on the assembly output from
  8998. the HP compilers.
  8999. The format of the debugging sections has changed since the original
  9000. 'as' port (version 1.3X) was released; therefore, you must rebuild all
  9001. HPPA objects and libraries with the new assembler so that you can debug
  9002. the final executable.
  9003. The HPPA 'as' port generates a small subset of the relocations
  9004. available in the SOM and ELF object file formats. Additional relocation
  9005. support will be added as it becomes necessary.
  9006. 
  9007. File: as.info, Node: HPPA Options, Next: HPPA Syntax, Prev: HPPA Notes, Up: HPPA-Dependent
  9008. 9.15.2 Options
  9009. --------------
  9010. 'as' has no machine-dependent command-line options for the HPPA.
  9011. 
  9012. File: as.info, Node: HPPA Syntax, Next: HPPA Floating Point, Prev: HPPA Options, Up: HPPA-Dependent
  9013. 9.15.3 Syntax
  9014. -------------
  9015. The assembler syntax closely follows the HPPA instruction set reference
  9016. manual; assembler directives and general syntax closely follow the HPPA
  9017. assembly language reference manual, with a few noteworthy differences.
  9018. First, a colon may immediately follow a label definition. This is
  9019. simply for compatibility with how most assembly language programmers
  9020. write code.
  9021. Some obscure expression parsing problems may affect hand written code
  9022. which uses the 'spop' instructions, or code which makes significant use
  9023. of the '!' line separator.
  9024. 'as' is much less forgiving about missing arguments and other similar
  9025. oversights than the HP assembler. 'as' notifies you of missing
  9026. arguments as syntax errors; this is regarded as a feature, not a bug.
  9027. Finally, 'as' allows you to use an external symbol without explicitly
  9028. importing the symbol. _Warning:_ in the future this will be an error
  9029. for HPPA targets.
  9030. Special characters for HPPA targets include:
  9031. ';' is the line comment character.
  9032. '!' can be used instead of a newline to separate statements.
  9033. Since '$' has no special meaning, you may use it in symbol names.
  9034. 
  9035. File: as.info, Node: HPPA Floating Point, Next: HPPA Directives, Prev: HPPA Syntax, Up: HPPA-Dependent
  9036. 9.15.4 Floating Point
  9037. ---------------------
  9038. The HPPA family uses IEEE floating-point numbers.
  9039. 
  9040. File: as.info, Node: HPPA Directives, Next: HPPA Opcodes, Prev: HPPA Floating Point, Up: HPPA-Dependent
  9041. 9.15.5 HPPA Assembler Directives
  9042. --------------------------------
  9043. 'as' for the HPPA supports many additional directives for compatibility
  9044. with the native assembler. This section describes them only briefly.
  9045. For detailed information on HPPA-specific assembler directives, see
  9046. 'HP9000 Series 800 Assembly Language Reference Manual' (HP 92432-90001).
  9047. 'as' does _not_ support the following assembler directives described
  9048. in the HP manual:
  9049. .endm .liston
  9050. .enter .locct
  9051. .leave .macro
  9052. .listoff
  9053. Beyond those implemented for compatibility, 'as' supports one
  9054. additional assembler directive for the HPPA: '.param'. It conveys
  9055. register argument locations for static functions. Its syntax closely
  9056. follows the '.export' directive.
  9057. These are the additional directives in 'as' for the HPPA:
  9058. '.block N'
  9059. '.blockz N'
  9060. Reserve N bytes of storage, and initialize them to zero.
  9061. '.call'
  9062. Mark the beginning of a procedure call. Only the special case with
  9063. _no arguments_ is allowed.
  9064. '.callinfo [ PARAM=VALUE, ... ] [ FLAG, ... ]'
  9065. Specify a number of parameters and flags that define the
  9066. environment for a procedure.
  9067. PARAM may be any of 'frame' (frame size), 'entry_gr' (end of
  9068. general register range), 'entry_fr' (end of float register range),
  9069. 'entry_sr' (end of space register range).
  9070. The values for FLAG are 'calls' or 'caller' (proc has subroutines),
  9071. 'no_calls' (proc does not call subroutines), 'save_rp' (preserve
  9072. return pointer), 'save_sp' (proc preserves stack pointer),
  9073. 'no_unwind' (do not unwind this proc), 'hpux_int' (proc is
  9074. interrupt routine).
  9075. '.code'
  9076. Assemble into the standard section called '$TEXT$', subsection
  9077. '$CODE$'.
  9078. '.copyright "STRING"'
  9079. In the SOM object format, insert STRING into the object code,
  9080. marked as a copyright string.
  9081. '.copyright "STRING"'
  9082. In the ELF object format, insert STRING into the object code,
  9083. marked as a version string.
  9084. '.enter'
  9085. Not yet supported; the assembler rejects programs containing this
  9086. directive.
  9087. '.entry'
  9088. Mark the beginning of a procedure.
  9089. '.exit'
  9090. Mark the end of a procedure.
  9091. '.export NAME [ ,TYP ] [ ,PARAM=R ]'
  9092. Make a procedure NAME available to callers. TYP, if present, must
  9093. be one of 'absolute', 'code' (ELF only, not SOM), 'data', 'entry',
  9094. 'data', 'entry', 'millicode', 'plabel', 'pri_prog', or 'sec_prog'.
  9095. PARAM, if present, provides either relocation information for the
  9096. procedure arguments and result, or a privilege level. PARAM may be
  9097. 'argwN' (where N ranges from '0' to '3', and indicates one of four
  9098. one-word arguments); 'rtnval' (the procedure's result); or
  9099. 'priv_lev' (privilege level). For arguments or the result, R
  9100. specifies how to relocate, and must be one of 'no' (not
  9101. relocatable), 'gr' (argument is in general register), 'fr' (in
  9102. floating point register), or 'fu' (upper half of float register).
  9103. For 'priv_lev', R is an integer.
  9104. '.half N'
  9105. Define a two-byte integer constant N; synonym for the portable 'as'
  9106. directive '.short'.
  9107. '.import NAME [ ,TYP ]'
  9108. Converse of '.export'; make a procedure available to call. The
  9109. arguments use the same conventions as the first two arguments for
  9110. '.export'.
  9111. '.label NAME'
  9112. Define NAME as a label for the current assembly location.
  9113. '.leave'
  9114. Not yet supported; the assembler rejects programs containing this
  9115. directive.
  9116. '.origin LC'
  9117. Advance location counter to LC. Synonym for the 'as' portable
  9118. directive '.org'.
  9119. '.param NAME [ ,TYP ] [ ,PARAM=R ]'
  9120. Similar to '.export', but used for static procedures.
  9121. '.proc'
  9122. Use preceding the first statement of a procedure.
  9123. '.procend'
  9124. Use following the last statement of a procedure.
  9125. 'LABEL .reg EXPR'
  9126. Synonym for '.equ'; define LABEL with the absolute expression EXPR
  9127. as its value.
  9128. '.space SECNAME [ ,PARAMS ]'
  9129. Switch to section SECNAME, creating a new section by that name if
  9130. necessary. You may only use PARAMS when creating a new section,
  9131. not when switching to an existing one. SECNAME may identify a
  9132. section by number rather than by name.
  9133. If specified, the list PARAMS declares attributes of the section,
  9134. identified by keywords. The keywords recognized are 'spnum=EXP'
  9135. (identify this section by the number EXP, an absolute expression),
  9136. 'sort=EXP' (order sections according to this sort key when linking;
  9137. EXP is an absolute expression), 'unloadable' (section contains no
  9138. loadable data), 'notdefined' (this section defined elsewhere), and
  9139. 'private' (data in this section not available to other programs).
  9140. '.spnum SECNAM'
  9141. Allocate four bytes of storage, and initialize them with the
  9142. section number of the section named SECNAM. (You can define the
  9143. section number with the HPPA '.space' directive.)
  9144. '.string "STR"'
  9145. Copy the characters in the string STR to the object file. *Note
  9146. Strings: Strings, for information on escape sequences you can use
  9147. in 'as' strings.
  9148. _Warning!_ The HPPA version of '.string' differs from the usual
  9149. 'as' definition: it does _not_ write a zero byte after copying STR.
  9150. '.stringz "STR"'
  9151. Like '.string', but appends a zero byte after copying STR to object
  9152. file.
  9153. '.subspa NAME [ ,PARAMS ]'
  9154. '.nsubspa NAME [ ,PARAMS ]'
  9155. Similar to '.space', but selects a subsection NAME within the
  9156. current section. You may only specify PARAMS when you create a
  9157. subsection (in the first instance of '.subspa' for this NAME).
  9158. If specified, the list PARAMS declares attributes of the
  9159. subsection, identified by keywords. The keywords recognized are
  9160. 'quad=EXPR' ("quadrant" for this subsection), 'align=EXPR'
  9161. (alignment for beginning of this subsection; a power of two),
  9162. 'access=EXPR' (value for "access rights" field), 'sort=EXPR'
  9163. (sorting order for this subspace in link), 'code_only' (subsection
  9164. contains only code), 'unloadable' (subsection cannot be loaded into
  9165. memory), 'comdat' (subsection is comdat), 'common' (subsection is
  9166. common block), 'dup_comm' (subsection may have duplicate names), or
  9167. 'zero' (subsection is all zeros, do not write in object file).
  9168. '.nsubspa' always creates a new subspace with the given name, even
  9169. if one with the same name already exists.
  9170. 'comdat', 'common' and 'dup_comm' can be used to implement various
  9171. flavors of one-only support when using the SOM linker. The SOM
  9172. linker only supports specific combinations of these flags. The
  9173. details are not documented. A brief description is provided here.
  9174. 'comdat' provides a form of linkonce support. It is useful for
  9175. both code and data subspaces. A 'comdat' subspace has a key symbol
  9176. marked by the 'is_comdat' flag or 'ST_COMDAT'. Only the first
  9177. subspace for any given key is selected. The key symbol becomes
  9178. universal in shared links. This is similar to the behavior of
  9179. 'secondary_def' symbols.
  9180. 'common' provides Fortran named common support. It is only useful
  9181. for data subspaces. Symbols with the flag 'is_common' retain this
  9182. flag in shared links. Referencing a 'is_common' symbol in a shared
  9183. library from outside the library doesn't work. Thus, 'is_common'
  9184. symbols must be output whenever they are needed.
  9185. 'common' and 'dup_comm' together provide Cobol common support. The
  9186. subspaces in this case must all be the same length. Otherwise,
  9187. this support is similar to the Fortran common support.
  9188. 'dup_comm' by itself provides a type of one-only support for code.
  9189. Only the first 'dup_comm' subspace is selected. There is a rather
  9190. complex algorithm to compare subspaces. Code symbols marked with
  9191. the 'dup_common' flag are hidden. This support was intended for
  9192. "C++ duplicate inlines".
  9193. A simplified technique is used to mark the flags of symbols based
  9194. on the flags of their subspace. A symbol with the scope
  9195. SS_UNIVERSAL and type ST_ENTRY, ST_CODE or ST_DATA is marked with
  9196. the corresponding settings of 'comdat', 'common' and 'dup_comm'
  9197. from the subspace, respectively. This avoids having to introduce
  9198. additional directives to mark these symbols. The HP assembler sets
  9199. 'is_common' from 'common'. However, it doesn't set the
  9200. 'dup_common' from 'dup_comm'. It doesn't have 'comdat' support.
  9201. '.version "STR"'
  9202. Write STR as version identifier in object code.
  9203. 
  9204. File: as.info, Node: HPPA Opcodes, Prev: HPPA Directives, Up: HPPA-Dependent
  9205. 9.15.6 Opcodes
  9206. --------------
  9207. For detailed information on the HPPA machine instruction set, see
  9208. 'PA-RISC Architecture and Instruction Set Reference Manual' (HP
  9209. 09740-90039).
  9210. 
  9211. File: as.info, Node: i386-Dependent, Next: IA-64-Dependent, Prev: HPPA-Dependent, Up: Machine Dependencies
  9212. 9.16 80386 Dependent Features
  9213. =============================
  9214. The i386 version 'as' supports both the original Intel 386 architecture
  9215. in both 16 and 32-bit mode as well as AMD x86-64 architecture extending
  9216. the Intel architecture to 64-bits.
  9217. * Menu:
  9218. * i386-Options:: Options
  9219. * i386-Directives:: X86 specific directives
  9220. * i386-Syntax:: Syntactical considerations
  9221. * i386-Mnemonics:: Instruction Naming
  9222. * i386-Regs:: Register Naming
  9223. * i386-Prefixes:: Instruction Prefixes
  9224. * i386-Memory:: Memory References
  9225. * i386-Jumps:: Handling of Jump Instructions
  9226. * i386-Float:: Floating Point
  9227. * i386-SIMD:: Intel's MMX and AMD's 3DNow! SIMD Operations
  9228. * i386-LWP:: AMD's Lightweight Profiling Instructions
  9229. * i386-BMI:: Bit Manipulation Instruction
  9230. * i386-TBM:: AMD's Trailing Bit Manipulation Instructions
  9231. * i386-16bit:: Writing 16-bit Code
  9232. * i386-Arch:: Specifying an x86 CPU architecture
  9233. * i386-ISA:: AMD64 ISA vs. Intel64 ISA
  9234. * i386-Bugs:: AT&T Syntax bugs
  9235. * i386-Notes:: Notes
  9236. 
  9237. File: as.info, Node: i386-Options, Next: i386-Directives, Up: i386-Dependent
  9238. 9.16.1 Options
  9239. --------------
  9240. The i386 version of 'as' has a few machine dependent options:
  9241. '--32 | --x32 | --64'
  9242. Select the word size, either 32 bits or 64 bits. '--32' implies
  9243. Intel i386 architecture, while '--x32' and '--64' imply AMD x86-64
  9244. architecture with 32-bit or 64-bit word-size respectively.
  9245. These options are only available with the ELF object file format,
  9246. and require that the necessary BFD support has been included (on a
  9247. 32-bit platform you have to add -enable-64-bit-bfd to configure
  9248. enable 64-bit usage and use x86-64 as target platform).
  9249. '-n'
  9250. By default, x86 GAS replaces multiple nop instructions used for
  9251. alignment within code sections with multi-byte nop instructions
  9252. such as leal 0(%esi,1),%esi. This switch disables the optimization
  9253. if a single byte nop (0x90) is explicitly specified as the fill
  9254. byte for alignment.
  9255. '--divide'
  9256. On SVR4-derived platforms, the character '/' is treated as a
  9257. comment character, which means that it cannot be used in
  9258. expressions. The '--divide' option turns '/' into a normal
  9259. character. This does not disable '/' at the beginning of a line
  9260. starting a comment, or affect using '#' for starting a comment.
  9261. '-march=CPU[+EXTENSION...]'
  9262. This option specifies the target processor. The assembler will
  9263. issue an error message if an attempt is made to assemble an
  9264. instruction which will not execute on the target processor. The
  9265. following processor names are recognized: 'i8086', 'i186', 'i286',
  9266. 'i386', 'i486', 'i586', 'i686', 'pentium', 'pentiumpro',
  9267. 'pentiumii', 'pentiumiii', 'pentium4', 'prescott', 'nocona',
  9268. 'core', 'core2', 'corei7', 'l1om', 'k1om', 'iamcu', 'k6', 'k6_2',
  9269. 'athlon', 'opteron', 'k8', 'amdfam10', 'bdver1', 'bdver2',
  9270. 'bdver3', 'bdver4', 'znver1', 'znver2', 'znver3', 'btver1',
  9271. 'btver2', 'generic32' and 'generic64'.
  9272. In addition to the basic instruction set, the assembler can be told
  9273. to accept various extension mnemonics. For example,
  9274. '-march=i686+sse4+vmx' extends I686 with SSE4 and VMX. The
  9275. following extensions are currently supported: '8087', '287', '387',
  9276. '687', 'no87', 'no287', 'no387', 'no687', 'cmov', 'nocmov', 'fxsr',
  9277. 'nofxsr', 'mmx', 'nommx', 'sse', 'sse2', 'sse3', 'sse4a', 'ssse3',
  9278. 'sse4.1', 'sse4.2', 'sse4', 'nosse', 'nosse2', 'nosse3', 'nosse4a',
  9279. 'nossse3', 'nosse4.1', 'nosse4.2', 'nosse4', 'avx', 'avx2',
  9280. 'noavx', 'noavx2', 'adx', 'rdseed', 'prfchw', 'smap', 'mpx', 'sha',
  9281. 'rdpid', 'ptwrite', 'cet', 'gfni', 'vaes', 'vpclmulqdq',
  9282. 'prefetchwt1', 'clflushopt', 'se1', 'clwb', 'movdiri', 'movdir64b',
  9283. 'enqcmd', 'serialize', 'tsxldtrk', 'kl', 'nokl', 'widekl',
  9284. 'nowidekl', 'hreset', 'avx512f', 'avx512cd', 'avx512er',
  9285. 'avx512pf', 'avx512vl', 'avx512bw', 'avx512dq', 'avx512ifma',
  9286. 'avx512vbmi', 'avx512_4fmaps', 'avx512_4vnniw', 'avx512_vpopcntdq',
  9287. 'avx512_vbmi2', 'avx512_vnni', 'avx512_bitalg',
  9288. 'avx512_vp2intersect', 'tdx', 'avx512_bf16', 'avx_vnni',
  9289. 'avx512_fp16', 'noavx512f', 'noavx512cd', 'noavx512er',
  9290. 'noavx512pf', 'noavx512vl', 'noavx512bw', 'noavx512dq',
  9291. 'noavx512ifma', 'noavx512vbmi', 'noavx512_4fmaps',
  9292. 'noavx512_4vnniw', 'noavx512_vpopcntdq', 'noavx512_vbmi2',
  9293. 'noavx512_vnni', 'noavx512_bitalg', 'noavx512_vp2intersect',
  9294. 'notdx', 'noavx512_bf16', 'noavx_vnni', 'noavx512_fp16',
  9295. 'noenqcmd', 'noserialize', 'notsxldtrk', 'amx_int8', 'noamx_int8',
  9296. 'amx_bf16', 'noamx_bf16', 'amx_tile', 'noamx_tile', 'nouintr',
  9297. 'nohreset', 'vmx', 'vmfunc', 'smx', 'xsave', 'xsaveopt', 'xsavec',
  9298. 'xsaves', 'aes', 'pclmul', 'fsgsbase', 'rdrnd', 'f16c', 'bmi2',
  9299. 'fma', 'movbe', 'ept', 'lzcnt', 'popcnt', 'hle', 'rtm', 'invpcid',
  9300. 'clflush', 'mwaitx', 'clzero', 'wbnoinvd', 'pconfig', 'waitpkg',
  9301. 'uintr', 'cldemote', 'rdpru', 'mcommit', 'sev_es', 'lwp', 'fma4',
  9302. 'xop', 'cx16', 'syscall', 'rdtscp', '3dnow', '3dnowa', 'sse4a',
  9303. 'sse5', 'snp', 'invlpgb', 'tlbsync', 'svme' and 'padlock'. Note
  9304. that rather than extending a basic instruction set, the extension
  9305. mnemonics starting with 'no' revoke the respective functionality.
  9306. When the '.arch' directive is used with '-march', the '.arch'
  9307. directive will take precedent.
  9308. '-mtune=CPU'
  9309. This option specifies a processor to optimize for. When used in
  9310. conjunction with the '-march' option, only instructions of the
  9311. processor specified by the '-march' option will be generated.
  9312. Valid CPU values are identical to the processor list of
  9313. '-march=CPU'.
  9314. '-msse2avx'
  9315. This option specifies that the assembler should encode SSE
  9316. instructions with VEX prefix.
  9317. '-muse-unaligned-vector-move'
  9318. This option specifies that the assembler should encode aligned
  9319. vector move as unaligned vector move.
  9320. '-msse-check=NONE'
  9321. '-msse-check=WARNING'
  9322. '-msse-check=ERROR'
  9323. These options control if the assembler should check SSE
  9324. instructions. '-msse-check=NONE' will make the assembler not to
  9325. check SSE instructions, which is the default.
  9326. '-msse-check=WARNING' will make the assembler issue a warning for
  9327. any SSE instruction. '-msse-check=ERROR' will make the assembler
  9328. issue an error for any SSE instruction.
  9329. '-mavxscalar=128'
  9330. '-mavxscalar=256'
  9331. These options control how the assembler should encode scalar AVX
  9332. instructions. '-mavxscalar=128' will encode scalar AVX
  9333. instructions with 128bit vector length, which is the default.
  9334. '-mavxscalar=256' will encode scalar AVX instructions with 256bit
  9335. vector length.
  9336. WARNING: Don't use this for production code - due to CPU errata the
  9337. resulting code may not work on certain models.
  9338. '-mvexwig=0'
  9339. '-mvexwig=1'
  9340. These options control how the assembler should encode VEX.W-ignored
  9341. (WIG) VEX instructions. '-mvexwig=0' will encode WIG VEX
  9342. instructions with vex.w = 0, which is the default. '-mvexwig=1'
  9343. will encode WIG EVEX instructions with vex.w = 1.
  9344. WARNING: Don't use this for production code - due to CPU errata the
  9345. resulting code may not work on certain models.
  9346. '-mevexlig=128'
  9347. '-mevexlig=256'
  9348. '-mevexlig=512'
  9349. These options control how the assembler should encode
  9350. length-ignored (LIG) EVEX instructions. '-mevexlig=128' will
  9351. encode LIG EVEX instructions with 128bit vector length, which is
  9352. the default. '-mevexlig=256' and '-mevexlig=512' will encode LIG
  9353. EVEX instructions with 256bit and 512bit vector length,
  9354. respectively.
  9355. '-mevexwig=0'
  9356. '-mevexwig=1'
  9357. These options control how the assembler should encode w-ignored
  9358. (WIG) EVEX instructions. '-mevexwig=0' will encode WIG EVEX
  9359. instructions with evex.w = 0, which is the default. '-mevexwig=1'
  9360. will encode WIG EVEX instructions with evex.w = 1.
  9361. '-mmnemonic=ATT'
  9362. '-mmnemonic=INTEL'
  9363. This option specifies instruction mnemonic for matching
  9364. instructions. The '.att_mnemonic' and '.intel_mnemonic' directives
  9365. will take precedent.
  9366. '-msyntax=ATT'
  9367. '-msyntax=INTEL'
  9368. This option specifies instruction syntax when processing
  9369. instructions. The '.att_syntax' and '.intel_syntax' directives
  9370. will take precedent.
  9371. '-mnaked-reg'
  9372. This option specifies that registers don't require a '%' prefix.
  9373. The '.att_syntax' and '.intel_syntax' directives will take
  9374. precedent.
  9375. '-madd-bnd-prefix'
  9376. This option forces the assembler to add BND prefix to all branches,
  9377. even if such prefix was not explicitly specified in the source
  9378. code.
  9379. '-mno-shared'
  9380. On ELF target, the assembler normally optimizes out non-PLT
  9381. relocations against defined non-weak global branch targets with
  9382. default visibility. The '-mshared' option tells the assembler to
  9383. generate code which may go into a shared library where all non-weak
  9384. global branch targets with default visibility can be preempted.
  9385. The resulting code is slightly bigger. This option only affects
  9386. the handling of branch instructions.
  9387. '-mbig-obj'
  9388. On PE/COFF target this option forces the use of big object file
  9389. format, which allows more than 32768 sections.
  9390. '-momit-lock-prefix=NO'
  9391. '-momit-lock-prefix=YES'
  9392. These options control how the assembler should encode lock prefix.
  9393. This option is intended as a workaround for processors, that fail
  9394. on lock prefix. This option can only be safely used with
  9395. single-core, single-thread computers '-momit-lock-prefix=YES' will
  9396. omit all lock prefixes. '-momit-lock-prefix=NO' will encode lock
  9397. prefix as usual, which is the default.
  9398. '-mfence-as-lock-add=NO'
  9399. '-mfence-as-lock-add=YES'
  9400. These options control how the assembler should encode lfence,
  9401. mfence and sfence. '-mfence-as-lock-add=YES' will encode lfence,
  9402. mfence and sfence as 'lock addl $0x0, (%rsp)' in 64-bit mode and
  9403. 'lock addl $0x0, (%esp)' in 32-bit mode. '-mfence-as-lock-add=NO'
  9404. will encode lfence, mfence and sfence as usual, which is the
  9405. default.
  9406. '-mrelax-relocations=NO'
  9407. '-mrelax-relocations=YES'
  9408. These options control whether the assembler should generate relax
  9409. relocations, R_386_GOT32X, in 32-bit mode, or R_X86_64_GOTPCRELX
  9410. and R_X86_64_REX_GOTPCRELX, in 64-bit mode.
  9411. '-mrelax-relocations=YES' will generate relax relocations.
  9412. '-mrelax-relocations=NO' will not generate relax relocations. The
  9413. default can be controlled by a configure option
  9414. '--enable-x86-relax-relocations'.
  9415. '-malign-branch-boundary=NUM'
  9416. This option controls how the assembler should align branches with
  9417. segment prefixes or NOP. NUM must be a power of 2. It should be 0
  9418. or no less than 16. Branches will be aligned within NUM byte
  9419. boundary. '-malign-branch-boundary=0', which is the default,
  9420. doesn't align branches.
  9421. '-malign-branch=TYPE[+TYPE...]'
  9422. This option specifies types of branches to align. TYPE is
  9423. combination of 'jcc', which aligns conditional jumps, 'fused',
  9424. which aligns fused conditional jumps, 'jmp', which aligns
  9425. unconditional jumps, 'call' which aligns calls, 'ret', which aligns
  9426. rets, 'indirect', which aligns indirect jumps and calls. The
  9427. default is '-malign-branch=jcc+fused+jmp'.
  9428. '-malign-branch-prefix-size=NUM'
  9429. This option specifies the maximum number of prefixes on an
  9430. instruction to align branches. NUM should be between 0 and 5. The
  9431. default NUM is 5.
  9432. '-mbranches-within-32B-boundaries'
  9433. This option aligns conditional jumps, fused conditional jumps and
  9434. unconditional jumps within 32 byte boundary with up to 5 segment
  9435. prefixes on an instruction. It is equivalent to
  9436. '-malign-branch-boundary=32' '-malign-branch=jcc+fused+jmp'
  9437. '-malign-branch-prefix-size=5'. The default doesn't align
  9438. branches.
  9439. '-mlfence-after-load=NO'
  9440. '-mlfence-after-load=YES'
  9441. These options control whether the assembler should generate lfence
  9442. after load instructions. '-mlfence-after-load=YES' will generate
  9443. lfence. '-mlfence-after-load=NO' will not generate lfence, which
  9444. is the default.
  9445. '-mlfence-before-indirect-branch=NONE'
  9446. '-mlfence-before-indirect-branch=ALL'
  9447. '-mlfence-before-indirect-branch=REGISTER'
  9448. '-mlfence-before-indirect-branch=MEMORY'
  9449. These options control whether the assembler should generate lfence
  9450. before indirect near branch instructions.
  9451. '-mlfence-before-indirect-branch=ALL' will generate lfence before
  9452. indirect near branch via register and issue a warning before
  9453. indirect near branch via memory. It also implicitly sets
  9454. '-mlfence-before-ret=SHL' when there's no explicit
  9455. '-mlfence-before-ret='. '-mlfence-before-indirect-branch=REGISTER'
  9456. will generate lfence before indirect near branch via register.
  9457. '-mlfence-before-indirect-branch=MEMORY' will issue a warning
  9458. before indirect near branch via memory.
  9459. '-mlfence-before-indirect-branch=NONE' will not generate lfence nor
  9460. issue warning, which is the default. Note that lfence won't be
  9461. generated before indirect near branch via register with
  9462. '-mlfence-after-load=YES' since lfence will be generated after
  9463. loading branch target register.
  9464. '-mlfence-before-ret=NONE'
  9465. '-mlfence-before-ret=SHL'
  9466. '-mlfence-before-ret=OR'
  9467. '-mlfence-before-ret=YES'
  9468. '-mlfence-before-ret=NOT'
  9469. These options control whether the assembler should generate lfence
  9470. before ret. '-mlfence-before-ret=OR' will generate generate or
  9471. instruction with lfence. '-mlfence-before-ret=SHL/YES' will
  9472. generate shl instruction with lfence. '-mlfence-before-ret=NOT'
  9473. will generate not instruction with lfence.
  9474. '-mlfence-before-ret=NONE' will not generate lfence, which is the
  9475. default.
  9476. '-mx86-used-note=NO'
  9477. '-mx86-used-note=YES'
  9478. These options control whether the assembler should generate
  9479. GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_FEATURE_2_USED GNU
  9480. property notes. The default can be controlled by the
  9481. '--enable-x86-used-note' configure option.
  9482. '-mevexrcig=RNE'
  9483. '-mevexrcig=RD'
  9484. '-mevexrcig=RU'
  9485. '-mevexrcig=RZ'
  9486. These options control how the assembler should encode SAE-only EVEX
  9487. instructions. '-mevexrcig=RNE' will encode RC bits of EVEX
  9488. instruction with 00, which is the default. '-mevexrcig=RD',
  9489. '-mevexrcig=RU' and '-mevexrcig=RZ' will encode SAE-only EVEX
  9490. instructions with 01, 10 and 11 RC bits, respectively.
  9491. '-mamd64'
  9492. '-mintel64'
  9493. This option specifies that the assembler should accept only AMD64
  9494. or Intel64 ISA in 64-bit mode. The default is to accept common,
  9495. Intel64 only and AMD64 ISAs.
  9496. '-O0 | -O | -O1 | -O2 | -Os'
  9497. Optimize instruction encoding with smaller instruction size. '-O'
  9498. and '-O1' encode 64-bit register load instructions with 64-bit
  9499. immediate as 32-bit register load instructions with 31-bit or
  9500. 32-bits immediates, encode 64-bit register clearing instructions
  9501. with 32-bit register clearing instructions, encode 256-bit/512-bit
  9502. VEX/EVEX vector register clearing instructions with 128-bit VEX
  9503. vector register clearing instructions, encode 128-bit/256-bit EVEX
  9504. vector register load/store instructions with VEX vector register
  9505. load/store instructions, and encode 128-bit/256-bit EVEX packed
  9506. integer logical instructions with 128-bit/256-bit VEX packed
  9507. integer logical.
  9508. '-O2' includes '-O1' optimization plus encodes 256-bit/512-bit EVEX
  9509. vector register clearing instructions with 128-bit EVEX vector
  9510. register clearing instructions. In 64-bit mode VEX encoded
  9511. instructions with commutative source operands will also have their
  9512. source operands swapped if this allows using the 2-byte VEX prefix
  9513. form instead of the 3-byte one. Certain forms of AND as well as OR
  9514. with the same (register) operand specified twice will also be
  9515. changed to TEST.
  9516. '-Os' includes '-O2' optimization plus encodes 16-bit, 32-bit and
  9517. 64-bit register tests with immediate as 8-bit register test with
  9518. immediate. '-O0' turns off this optimization.
  9519. 
  9520. File: as.info, Node: i386-Directives, Next: i386-Syntax, Prev: i386-Options, Up: i386-Dependent
  9521. 9.16.2 x86 specific Directives
  9522. ------------------------------
  9523. '.lcomm SYMBOL , LENGTH[, ALIGNMENT]'
  9524. Reserve LENGTH (an absolute expression) bytes for a local common
  9525. denoted by SYMBOL. The section and value of SYMBOL are those of
  9526. the new local common. The addresses are allocated in the bss
  9527. section, so that at run-time the bytes start off zeroed. Since
  9528. SYMBOL is not declared global, it is normally not visible to 'ld'.
  9529. The optional third parameter, ALIGNMENT, specifies the desired
  9530. alignment of the symbol in the bss section.
  9531. This directive is only available for COFF based x86 targets.
  9532. '.largecomm SYMBOL , LENGTH[, ALIGNMENT]'
  9533. This directive behaves in the same way as the 'comm' directive
  9534. except that the data is placed into the .LBSS section instead of
  9535. the .BSS section *note Comm::.
  9536. The directive is intended to be used for data which requires a
  9537. large amount of space, and it is only available for ELF based
  9538. x86_64 targets.
  9539. '.value EXPRESSION [, EXPRESSION]'
  9540. This directive behaves in the same way as the '.short' directive,
  9541. taking a series of comma separated expressions and storing them as
  9542. two-byte wide values into the current section.
  9543. 
  9544. File: as.info, Node: i386-Syntax, Next: i386-Mnemonics, Prev: i386-Directives, Up: i386-Dependent
  9545. 9.16.3 i386 Syntactical Considerations
  9546. --------------------------------------
  9547. * Menu:
  9548. * i386-Variations:: AT&T Syntax versus Intel Syntax
  9549. * i386-Chars:: Special Characters
  9550. 
  9551. File: as.info, Node: i386-Variations, Next: i386-Chars, Up: i386-Syntax
  9552. 9.16.3.1 AT&T Syntax versus Intel Syntax
  9553. ........................................
  9554. 'as' now supports assembly using Intel assembler syntax.
  9555. '.intel_syntax' selects Intel mode, and '.att_syntax' switches back to
  9556. the usual AT&T mode for compatibility with the output of 'gcc'. Either
  9557. of these directives may have an optional argument, 'prefix', or
  9558. 'noprefix' specifying whether registers require a '%' prefix. AT&T
  9559. System V/386 assembler syntax is quite different from Intel syntax. We
  9560. mention these differences because almost all 80386 documents use Intel
  9561. syntax. Notable differences between the two syntaxes are:
  9562. * AT&T immediate operands are preceded by '$'; Intel immediate
  9563. operands are undelimited (Intel 'push 4' is AT&T 'pushl $4'). AT&T
  9564. register operands are preceded by '%'; Intel register operands are
  9565. undelimited. AT&T absolute (as opposed to PC relative) jump/call
  9566. operands are prefixed by '*'; they are undelimited in Intel syntax.
  9567. * AT&T and Intel syntax use the opposite order for source and
  9568. destination operands. Intel 'add eax, 4' is 'addl $4, %eax'. The
  9569. 'source, dest' convention is maintained for compatibility with
  9570. previous Unix assemblers. Note that 'bound', 'invlpga', and
  9571. instructions with 2 immediate operands, such as the 'enter'
  9572. instruction, do _not_ have reversed order. *note i386-Bugs::.
  9573. * In AT&T syntax the size of memory operands is determined from the
  9574. last character of the instruction mnemonic. Mnemonic suffixes of
  9575. 'b', 'w', 'l' and 'q' specify byte (8-bit), word (16-bit), long
  9576. (32-bit) and quadruple word (64-bit) memory references. Mnemonic
  9577. suffixes of 'x', 'y' and 'z' specify xmm (128-bit vector), ymm
  9578. (256-bit vector) and zmm (512-bit vector) memory references, only
  9579. when there's no other way to disambiguate an instruction. Intel
  9580. syntax accomplishes this by prefixing memory operands (_not_ the
  9581. instruction mnemonics) with 'byte ptr', 'word ptr', 'dword ptr',
  9582. 'qword ptr', 'xmmword ptr', 'ymmword ptr' and 'zmmword ptr'. Thus,
  9583. Intel syntax 'mov al, byte ptr FOO' is 'movb FOO, %al' in AT&T
  9584. syntax. In Intel syntax, 'fword ptr', 'tbyte ptr' and 'oword ptr'
  9585. specify 48-bit, 80-bit and 128-bit memory references.
  9586. In 64-bit code, 'movabs' can be used to encode the 'mov'
  9587. instruction with the 64-bit displacement or immediate operand.
  9588. * Immediate form long jumps and calls are 'lcall/ljmp $SECTION,
  9589. $OFFSET' in AT&T syntax; the Intel syntax is 'call/jmp far
  9590. SECTION:OFFSET'. Also, the far return instruction is 'lret
  9591. $STACK-ADJUST' in AT&T syntax; Intel syntax is 'ret far
  9592. STACK-ADJUST'.
  9593. * The AT&T assembler does not provide support for multiple section
  9594. programs. Unix style systems expect all programs to be single
  9595. sections.
  9596. 
  9597. File: as.info, Node: i386-Chars, Prev: i386-Variations, Up: i386-Syntax
  9598. 9.16.3.2 Special Characters
  9599. ...........................
  9600. The presence of a '#' appearing anywhere on a line indicates the start
  9601. of a comment that extends to the end of that line.
  9602. If a '#' appears as the first character of a line then the whole line
  9603. is treated as a comment, but in this case the line can also be a logical
  9604. line number directive (*note Comments::) or a preprocessor control
  9605. command (*note Preprocessing::).
  9606. If the '--divide' command-line option has not been specified then the
  9607. '/' character appearing anywhere on a line also introduces a line
  9608. comment.
  9609. The ';' character can be used to separate statements on the same
  9610. line.
  9611. 
  9612. File: as.info, Node: i386-Mnemonics, Next: i386-Regs, Prev: i386-Syntax, Up: i386-Dependent
  9613. 9.16.4 i386-Mnemonics
  9614. ---------------------
  9615. 9.16.4.1 Instruction Naming
  9616. ...........................
  9617. Instruction mnemonics are suffixed with one character modifiers which
  9618. specify the size of operands. The letters 'b', 'w', 'l' and 'q' specify
  9619. byte, word, long and quadruple word operands. If no suffix is specified
  9620. by an instruction then 'as' tries to fill in the missing suffix based on
  9621. the destination register operand (the last one by convention). Thus,
  9622. 'mov %ax, %bx' is equivalent to 'movw %ax, %bx'; also, 'mov $1, %bx' is
  9623. equivalent to 'movw $1, bx'. Note that this is incompatible with the
  9624. AT&T Unix assembler which assumes that a missing mnemonic suffix implies
  9625. long operand size. (This incompatibility does not affect compiler
  9626. output since compilers always explicitly specify the mnemonic suffix.)
  9627. When there is no sizing suffix and no (suitable) register operands to
  9628. deduce the size of memory operands, with a few exceptions and where long
  9629. operand size is possible in the first place, operand size will default
  9630. to long in 32- and 64-bit modes. Similarly it will default to short in
  9631. 16-bit mode. Noteworthy exceptions are
  9632. * Instructions with an implicit on-stack operand as well as branches,
  9633. which default to quad in 64-bit mode.
  9634. * Sign- and zero-extending moves, which default to byte size source
  9635. operands.
  9636. * Floating point insns with integer operands, which default to short
  9637. (for perhaps historical reasons).
  9638. * CRC32 with a 64-bit destination, which defaults to a quad source
  9639. operand.
  9640. Different encoding options can be specified via pseudo prefixes:
  9641. * '{disp8}' - prefer 8-bit displacement.
  9642. * '{disp32}' - prefer 32-bit displacement.
  9643. * '{disp16}' - prefer 16-bit displacement.
  9644. * '{load}' - prefer load-form instruction.
  9645. * '{store}' - prefer store-form instruction.
  9646. * '{vex}' - encode with VEX prefix.
  9647. * '{vex3}' - encode with 3-byte VEX prefix.
  9648. * '{evex}' - encode with EVEX prefix.
  9649. * '{rex}' - prefer REX prefix for integer and legacy vector
  9650. instructions (x86-64 only). Note that this differs from the 'rex'
  9651. prefix which generates REX prefix unconditionally.
  9652. * '{nooptimize}' - disable instruction size optimization.
  9653. Mnemonics of Intel VNNI instructions are encoded with the EVEX prefix
  9654. by default. The pseudo '{vex}' prefix can be used to encode mnemonics
  9655. of Intel VNNI instructions with the VEX prefix.
  9656. The Intel-syntax conversion instructions
  9657. * 'cbw' -- sign-extend byte in '%al' to word in '%ax',
  9658. * 'cwde' -- sign-extend word in '%ax' to long in '%eax',
  9659. * 'cwd' -- sign-extend word in '%ax' to long in '%dx:%ax',
  9660. * 'cdq' -- sign-extend dword in '%eax' to quad in '%edx:%eax',
  9661. * 'cdqe' -- sign-extend dword in '%eax' to quad in '%rax' (x86-64
  9662. only),
  9663. * 'cqo' -- sign-extend quad in '%rax' to octuple in '%rdx:%rax'
  9664. (x86-64 only),
  9665. are called 'cbtw', 'cwtl', 'cwtd', 'cltd', 'cltq', and 'cqto' in AT&T
  9666. naming. 'as' accepts either naming for these instructions.
  9667. The Intel-syntax extension instructions
  9668. * 'movsx' -- sign-extend 'reg8/mem8' to 'reg16'.
  9669. * 'movsx' -- sign-extend 'reg8/mem8' to 'reg32'.
  9670. * 'movsx' -- sign-extend 'reg8/mem8' to 'reg64' (x86-64 only).
  9671. * 'movsx' -- sign-extend 'reg16/mem16' to 'reg32'
  9672. * 'movsx' -- sign-extend 'reg16/mem16' to 'reg64' (x86-64 only).
  9673. * 'movsxd' -- sign-extend 'reg32/mem32' to 'reg64' (x86-64 only).
  9674. * 'movzx' -- zero-extend 'reg8/mem8' to 'reg16'.
  9675. * 'movzx' -- zero-extend 'reg8/mem8' to 'reg32'.
  9676. * 'movzx' -- zero-extend 'reg8/mem8' to 'reg64' (x86-64 only).
  9677. * 'movzx' -- zero-extend 'reg16/mem16' to 'reg32'
  9678. * 'movzx' -- zero-extend 'reg16/mem16' to 'reg64' (x86-64 only).
  9679. are called 'movsbw/movsxb/movsx', 'movsbl/movsxb/movsx',
  9680. 'movsbq/movsxb/movsx', 'movswl/movsxw', 'movswq/movsxw',
  9681. 'movslq/movsxl', 'movzbw/movzxb/movzx', 'movzbl/movzxb/movzx',
  9682. 'movzbq/movzxb/movzx', 'movzwl/movzxw' and 'movzwq/movzxw' in AT&T
  9683. syntax.
  9684. Far call/jump instructions are 'lcall' and 'ljmp' in AT&T syntax, but
  9685. are 'call far' and 'jump far' in Intel convention.
  9686. 9.16.4.2 AT&T Mnemonic versus Intel Mnemonic
  9687. ............................................
  9688. 'as' supports assembly using Intel mnemonic. '.intel_mnemonic' selects
  9689. Intel mnemonic with Intel syntax, and '.att_mnemonic' switches back to
  9690. the usual AT&T mnemonic with AT&T syntax for compatibility with the
  9691. output of 'gcc'. Several x87 instructions, 'fadd', 'fdiv', 'fdivp',
  9692. 'fdivr', 'fdivrp', 'fmul', 'fsub', 'fsubp', 'fsubr' and 'fsubrp', are
  9693. implemented in AT&T System V/386 assembler with different mnemonics from
  9694. those in Intel IA32 specification. 'gcc' generates those instructions
  9695. with AT&T mnemonic.
  9696. * 'movslq' with AT&T mnemonic only accepts 64-bit destination
  9697. register. 'movsxd' should be used to encode 16-bit or 32-bit
  9698. destination register with both AT&T and Intel mnemonics.
  9699. 
  9700. File: as.info, Node: i386-Regs, Next: i386-Prefixes, Prev: i386-Mnemonics, Up: i386-Dependent
  9701. 9.16.5 Register Naming
  9702. ----------------------
  9703. Register operands are always prefixed with '%'. The 80386 registers
  9704. consist of
  9705. * the 8 32-bit registers '%eax' (the accumulator), '%ebx', '%ecx',
  9706. '%edx', '%edi', '%esi', '%ebp' (the frame pointer), and '%esp' (the
  9707. stack pointer).
  9708. * the 8 16-bit low-ends of these: '%ax', '%bx', '%cx', '%dx', '%di',
  9709. '%si', '%bp', and '%sp'.
  9710. * the 8 8-bit registers: '%ah', '%al', '%bh', '%bl', '%ch', '%cl',
  9711. '%dh', and '%dl' (These are the high-bytes and low-bytes of '%ax',
  9712. '%bx', '%cx', and '%dx')
  9713. * the 6 section registers '%cs' (code section), '%ds' (data section),
  9714. '%ss' (stack section), '%es', '%fs', and '%gs'.
  9715. * the 5 processor control registers '%cr0', '%cr2', '%cr3', '%cr4',
  9716. and '%cr8'.
  9717. * the 6 debug registers '%db0', '%db1', '%db2', '%db3', '%db6', and
  9718. '%db7'.
  9719. * the 2 test registers '%tr6' and '%tr7'.
  9720. * the 8 floating point register stack '%st' or equivalently '%st(0)',
  9721. '%st(1)', '%st(2)', '%st(3)', '%st(4)', '%st(5)', '%st(6)', and
  9722. '%st(7)'. These registers are overloaded by 8 MMX registers
  9723. '%mm0', '%mm1', '%mm2', '%mm3', '%mm4', '%mm5', '%mm6' and '%mm7'.
  9724. * the 8 128-bit SSE registers registers '%xmm0', '%xmm1', '%xmm2',
  9725. '%xmm3', '%xmm4', '%xmm5', '%xmm6' and '%xmm7'.
  9726. The AMD x86-64 architecture extends the register set by:
  9727. * enhancing the 8 32-bit registers to 64-bit: '%rax' (the
  9728. accumulator), '%rbx', '%rcx', '%rdx', '%rdi', '%rsi', '%rbp' (the
  9729. frame pointer), '%rsp' (the stack pointer)
  9730. * the 8 extended registers '%r8'-'%r15'.
  9731. * the 8 32-bit low ends of the extended registers: '%r8d'-'%r15d'.
  9732. * the 8 16-bit low ends of the extended registers: '%r8w'-'%r15w'.
  9733. * the 8 8-bit low ends of the extended registers: '%r8b'-'%r15b'.
  9734. * the 4 8-bit registers: '%sil', '%dil', '%bpl', '%spl'.
  9735. * the 8 debug registers: '%db8'-'%db15'.
  9736. * the 8 128-bit SSE registers: '%xmm8'-'%xmm15'.
  9737. With the AVX extensions more registers were made available:
  9738. * the 16 256-bit SSE '%ymm0'-'%ymm15' (only the first 8 available in
  9739. 32-bit mode). The bottom 128 bits are overlaid with the
  9740. 'xmm0'-'xmm15' registers.
  9741. The AVX512 extensions added the following registers:
  9742. * the 32 512-bit registers '%zmm0'-'%zmm31' (only the first 8
  9743. available in 32-bit mode). The bottom 128 bits are overlaid with
  9744. the '%xmm0'-'%xmm31' registers and the first 256 bits are overlaid
  9745. with the '%ymm0'-'%ymm31' registers.
  9746. * the 8 mask registers '%k0'-'%k7'.
  9747. 
  9748. File: as.info, Node: i386-Prefixes, Next: i386-Memory, Prev: i386-Regs, Up: i386-Dependent
  9749. 9.16.6 Instruction Prefixes
  9750. ---------------------------
  9751. Instruction prefixes are used to modify the following instruction. They
  9752. are used to repeat string instructions, to provide section overrides, to
  9753. perform bus lock operations, and to change operand and address sizes.
  9754. (Most instructions that normally operate on 32-bit operands will use
  9755. 16-bit operands if the instruction has an "operand size" prefix.)
  9756. Instruction prefixes are best written on the same line as the
  9757. instruction they act upon. For example, the 'scas' (scan string)
  9758. instruction is repeated with:
  9759. repne scas %es:(%edi),%al
  9760. You may also place prefixes on the lines immediately preceding the
  9761. instruction, but this circumvents checks that 'as' does with prefixes,
  9762. and will not work with all prefixes.
  9763. Here is a list of instruction prefixes:
  9764. * Section override prefixes 'cs', 'ds', 'ss', 'es', 'fs', 'gs'.
  9765. These are automatically added by specifying using the
  9766. SECTION:MEMORY-OPERAND form for memory references.
  9767. * Operand/Address size prefixes 'data16' and 'addr16' change 32-bit
  9768. operands/addresses into 16-bit operands/addresses, while 'data32'
  9769. and 'addr32' change 16-bit ones (in a '.code16' section) into
  9770. 32-bit operands/addresses. These prefixes _must_ appear on the
  9771. same line of code as the instruction they modify. For example, in
  9772. a 16-bit '.code16' section, you might write:
  9773. addr32 jmpl *(%ebx)
  9774. * The bus lock prefix 'lock' inhibits interrupts during execution of
  9775. the instruction it precedes. (This is only valid with certain
  9776. instructions; see a 80386 manual for details).
  9777. * The wait for coprocessor prefix 'wait' waits for the coprocessor to
  9778. complete the current instruction. This should never be needed for
  9779. the 80386/80387 combination.
  9780. * The 'rep', 'repe', and 'repne' prefixes are added to string
  9781. instructions to make them repeat '%ecx' times ('%cx' times if the
  9782. current address size is 16-bits).
  9783. * The 'rex' family of prefixes is used by x86-64 to encode extensions
  9784. to i386 instruction set. The 'rex' prefix has four bits -- an
  9785. operand size overwrite ('64') used to change operand size from
  9786. 32-bit to 64-bit and X, Y and Z extensions bits used to extend the
  9787. register set.
  9788. You may write the 'rex' prefixes directly. The 'rex64xyz'
  9789. instruction emits 'rex' prefix with all the bits set. By omitting
  9790. the '64', 'x', 'y' or 'z' you may write other prefixes as well.
  9791. Normally, there is no need to write the prefixes explicitly, since
  9792. gas will automatically generate them based on the instruction
  9793. operands.
  9794. 
  9795. File: as.info, Node: i386-Memory, Next: i386-Jumps, Prev: i386-Prefixes, Up: i386-Dependent
  9796. 9.16.7 Memory References
  9797. ------------------------
  9798. An Intel syntax indirect memory reference of the form
  9799. SECTION:[BASE + INDEX*SCALE + DISP]
  9800. is translated into the AT&T syntax
  9801. SECTION:DISP(BASE, INDEX, SCALE)
  9802. where BASE and INDEX are the optional 32-bit base and index registers,
  9803. DISP is the optional displacement, and SCALE, taking the values 1, 2, 4,
  9804. and 8, multiplies INDEX to calculate the address of the operand. If no
  9805. SCALE is specified, SCALE is taken to be 1. SECTION specifies the
  9806. optional section register for the memory operand, and may override the
  9807. default section register (see a 80386 manual for section register
  9808. defaults). Note that section overrides in AT&T syntax _must_ be
  9809. preceded by a '%'. If you specify a section override which coincides
  9810. with the default section register, 'as' does _not_ output any section
  9811. register override prefixes to assemble the given instruction. Thus,
  9812. section overrides can be specified to emphasize which section register
  9813. is used for a given memory operand.
  9814. Here are some examples of Intel and AT&T style memory references:
  9815. AT&T: '-4(%ebp)', Intel: '[ebp - 4]'
  9816. BASE is '%ebp'; DISP is '-4'. SECTION is missing, and the default
  9817. section is used ('%ss' for addressing with '%ebp' as the base
  9818. register). INDEX, SCALE are both missing.
  9819. AT&T: 'foo(,%eax,4)', Intel: '[foo + eax*4]'
  9820. INDEX is '%eax' (scaled by a SCALE 4); DISP is 'foo'. All other
  9821. fields are missing. The section register here defaults to '%ds'.
  9822. AT&T: 'foo(,1)'; Intel '[foo]'
  9823. This uses the value pointed to by 'foo' as a memory operand. Note
  9824. that BASE and INDEX are both missing, but there is only _one_ ','.
  9825. This is a syntactic exception.
  9826. AT&T: '%gs:foo'; Intel 'gs:foo'
  9827. This selects the contents of the variable 'foo' with section
  9828. register SECTION being '%gs'.
  9829. Absolute (as opposed to PC relative) call and jump operands must be
  9830. prefixed with '*'. If no '*' is specified, 'as' always chooses PC
  9831. relative addressing for jump/call labels.
  9832. Any instruction that has a memory operand, but no register operand,
  9833. _must_ specify its size (byte, word, long, or quadruple) with an
  9834. instruction mnemonic suffix ('b', 'w', 'l' or 'q', respectively).
  9835. The x86-64 architecture adds an RIP (instruction pointer relative)
  9836. addressing. This addressing mode is specified by using 'rip' as a base
  9837. register. Only constant offsets are valid. For example:
  9838. AT&T: '1234(%rip)', Intel: '[rip + 1234]'
  9839. Points to the address 1234 bytes past the end of the current
  9840. instruction.
  9841. AT&T: 'symbol(%rip)', Intel: '[rip + symbol]'
  9842. Points to the 'symbol' in RIP relative way, this is shorter than
  9843. the default absolute addressing.
  9844. Other addressing modes remain unchanged in x86-64 architecture,
  9845. except registers used are 64-bit instead of 32-bit.
  9846. 
  9847. File: as.info, Node: i386-Jumps, Next: i386-Float, Prev: i386-Memory, Up: i386-Dependent
  9848. 9.16.8 Handling of Jump Instructions
  9849. ------------------------------------
  9850. Jump instructions are always optimized to use the smallest possible
  9851. displacements. This is accomplished by using byte (8-bit) displacement
  9852. jumps whenever the target is sufficiently close. If a byte displacement
  9853. is insufficient a long displacement is used. We do not support word
  9854. (16-bit) displacement jumps in 32-bit mode (i.e. prefixing the jump
  9855. instruction with the 'data16' instruction prefix), since the 80386
  9856. insists upon masking '%eip' to 16 bits after the word displacement is
  9857. added. (See also *note i386-Arch::)
  9858. Note that the 'jcxz', 'jecxz', 'loop', 'loopz', 'loope', 'loopnz' and
  9859. 'loopne' instructions only come in byte displacements, so that if you
  9860. use these instructions ('gcc' does not use them) you may get an error
  9861. message (and incorrect code). The AT&T 80386 assembler tries to get
  9862. around this problem by expanding 'jcxz foo' to
  9863. jcxz cx_zero
  9864. jmp cx_nonzero
  9865. cx_zero: jmp foo
  9866. cx_nonzero:
  9867. 
  9868. File: as.info, Node: i386-Float, Next: i386-SIMD, Prev: i386-Jumps, Up: i386-Dependent
  9869. 9.16.9 Floating Point
  9870. ---------------------
  9871. All 80387 floating point types except packed BCD are supported. (BCD
  9872. support may be added without much difficulty). These data types are
  9873. 16-, 32-, and 64- bit integers, and single (32-bit), double (64-bit),
  9874. and extended (80-bit) precision floating point. Each supported type has
  9875. an instruction mnemonic suffix and a constructor associated with it.
  9876. Instruction mnemonic suffixes specify the operand's data type.
  9877. Constructors build these data types into memory.
  9878. * Floating point constructors are '.float' or '.single', '.double',
  9879. '.tfloat', '.hfloat', and '.bfloat16' for 32-, 64-, 80-, and 16-bit
  9880. (two flavors) formats respectively. The former three correspond to
  9881. instruction mnemonic suffixes 's', 'l', and 't'. 't' stands for
  9882. 80-bit (ten byte) real. The 80387 only supports this format via
  9883. the 'fldt' (load 80-bit real to stack top) and 'fstpt' (store
  9884. 80-bit real and pop stack) instructions.
  9885. * Integer constructors are '.word', '.long' or '.int', and '.quad'
  9886. for the 16-, 32-, and 64-bit integer formats. The corresponding
  9887. instruction mnemonic suffixes are 's' (short), 'l' (long), and 'q'
  9888. (quad). As with the 80-bit real format, the 64-bit 'q' format is
  9889. only present in the 'fildq' (load quad integer to stack top) and
  9890. 'fistpq' (store quad integer and pop stack) instructions.
  9891. Register to register operations should not use instruction mnemonic
  9892. suffixes. 'fstl %st, %st(1)' will give a warning, and be assembled as
  9893. if you wrote 'fst %st, %st(1)', since all register to register
  9894. operations use 80-bit floating point operands. (Contrast this with
  9895. 'fstl %st, mem', which converts '%st' from 80-bit to 64-bit floating
  9896. point format, then stores the result in the 4 byte location 'mem')
  9897. 
  9898. File: as.info, Node: i386-SIMD, Next: i386-LWP, Prev: i386-Float, Up: i386-Dependent
  9899. 9.16.10 Intel's MMX and AMD's 3DNow! SIMD Operations
  9900. ----------------------------------------------------
  9901. 'as' supports Intel's MMX instruction set (SIMD instructions for integer
  9902. data), available on Intel's Pentium MMX processors and Pentium II
  9903. processors, AMD's K6 and K6-2 processors, Cyrix' M2 processor, and
  9904. probably others. It also supports AMD's 3DNow! instruction set (SIMD
  9905. instructions for 32-bit floating point data) available on AMD's K6-2
  9906. processor and possibly others in the future.
  9907. Currently, 'as' does not support Intel's floating point SIMD, Katmai
  9908. (KNI).
  9909. The eight 64-bit MMX operands, also used by 3DNow!, are called
  9910. '%mm0', '%mm1', ... '%mm7'. They contain eight 8-bit integers, four
  9911. 16-bit integers, two 32-bit integers, one 64-bit integer, or two 32-bit
  9912. floating point values. The MMX registers cannot be used at the same
  9913. time as the floating point stack.
  9914. See Intel and AMD documentation, keeping in mind that the operand
  9915. order in instructions is reversed from the Intel syntax.
  9916. 
  9917. File: as.info, Node: i386-LWP, Next: i386-BMI, Prev: i386-SIMD, Up: i386-Dependent
  9918. 9.16.11 AMD's Lightweight Profiling Instructions
  9919. ------------------------------------------------
  9920. 'as' supports AMD's Lightweight Profiling (LWP) instruction set,
  9921. available on AMD's Family 15h (Orochi) processors.
  9922. LWP enables applications to collect and manage performance data, and
  9923. react to performance events. The collection of performance data
  9924. requires no context switches. LWP runs in the context of a thread and
  9925. so several counters can be used independently across multiple threads.
  9926. LWP can be used in both 64-bit and legacy 32-bit modes.
  9927. For detailed information on the LWP instruction set, see the 'AMD
  9928. Lightweight Profiling Specification' available at Lightweight Profiling
  9929. Specification (http://developer.amd.com/cpu/LWP).
  9930. 
  9931. File: as.info, Node: i386-BMI, Next: i386-TBM, Prev: i386-LWP, Up: i386-Dependent
  9932. 9.16.12 Bit Manipulation Instructions
  9933. -------------------------------------
  9934. 'as' supports the Bit Manipulation (BMI) instruction set.
  9935. BMI instructions provide several instructions implementing individual
  9936. bit manipulation operations such as isolation, masking, setting, or
  9937. resetting.
  9938. 
  9939. File: as.info, Node: i386-TBM, Next: i386-16bit, Prev: i386-BMI, Up: i386-Dependent
  9940. 9.16.13 AMD's Trailing Bit Manipulation Instructions
  9941. ----------------------------------------------------
  9942. 'as' supports AMD's Trailing Bit Manipulation (TBM) instruction set,
  9943. available on AMD's BDVER2 processors (Trinity and Viperfish).
  9944. TBM instructions provide instructions implementing individual bit
  9945. manipulation operations such as isolating, masking, setting, resetting,
  9946. complementing, and operations on trailing zeros and ones.
  9947. 
  9948. File: as.info, Node: i386-16bit, Next: i386-Arch, Prev: i386-TBM, Up: i386-Dependent
  9949. 9.16.14 Writing 16-bit Code
  9950. ---------------------------
  9951. While 'as' normally writes only "pure" 32-bit i386 code or 64-bit x86-64
  9952. code depending on the default configuration, it also supports writing
  9953. code to run in real mode or in 16-bit protected mode code segments. To
  9954. do this, put a '.code16' or '.code16gcc' directive before the assembly
  9955. language instructions to be run in 16-bit mode. You can switch 'as' to
  9956. writing 32-bit code with the '.code32' directive or 64-bit code with the
  9957. '.code64' directive.
  9958. '.code16gcc' provides experimental support for generating 16-bit code
  9959. from gcc, and differs from '.code16' in that 'call', 'ret', 'enter',
  9960. 'leave', 'push', 'pop', 'pusha', 'popa', 'pushf', and 'popf'
  9961. instructions default to 32-bit size. This is so that the stack pointer
  9962. is manipulated in the same way over function calls, allowing access to
  9963. function parameters at the same stack offsets as in 32-bit mode.
  9964. '.code16gcc' also automatically adds address size prefixes where
  9965. necessary to use the 32-bit addressing modes that gcc generates.
  9966. The code which 'as' generates in 16-bit mode will not necessarily run
  9967. on a 16-bit pre-80386 processor. To write code that runs on such a
  9968. processor, you must refrain from using _any_ 32-bit constructs which
  9969. require 'as' to output address or operand size prefixes.
  9970. Note that writing 16-bit code instructions by explicitly specifying a
  9971. prefix or an instruction mnemonic suffix within a 32-bit code section
  9972. generates different machine instructions than those generated for a
  9973. 16-bit code segment. In a 32-bit code section, the following code
  9974. generates the machine opcode bytes '66 6a 04', which pushes the value
  9975. '4' onto the stack, decrementing '%esp' by 2.
  9976. pushw $4
  9977. The same code in a 16-bit code section would generate the machine
  9978. opcode bytes '6a 04' (i.e., without the operand size prefix), which is
  9979. correct since the processor default operand size is assumed to be 16
  9980. bits in a 16-bit code section.
  9981. 
  9982. File: as.info, Node: i386-Arch, Next: i386-ISA, Prev: i386-16bit, Up: i386-Dependent
  9983. 9.16.15 Specifying CPU Architecture
  9984. -----------------------------------
  9985. 'as' may be told to assemble for a particular CPU (sub-)architecture
  9986. with the '.arch CPU_TYPE' directive. This directive enables a warning
  9987. when gas detects an instruction that is not supported on the CPU
  9988. specified. The choices for CPU_TYPE are:
  9989. 'i8086' 'i186' 'i286' 'i386'
  9990. 'i486' 'i586' 'i686' 'pentium'
  9991. 'pentiumpro' 'pentiumii' 'pentiumiii' 'pentium4'
  9992. 'prescott' 'nocona' 'core' 'core2'
  9993. 'corei7' 'l1om' 'k1om' 'iamcu'
  9994. 'k6' 'k6_2' 'athlon' 'k8'
  9995. 'amdfam10' 'bdver1' 'bdver2' 'bdver3'
  9996. 'bdver4' 'znver1' 'znver2' 'znver3'
  9997. 'btver1' 'btver2' 'generic32' 'generic64'
  9998. '.cmov' '.fxsr' '.mmx'
  9999. '.sse' '.sse2' '.sse3' '.sse4a'
  10000. '.ssse3' '.sse4.1' '.sse4.2' '.sse4'
  10001. '.avx' '.vmx' '.smx' '.ept'
  10002. '.clflush' '.movbe' '.xsave' '.xsaveopt'
  10003. '.aes' '.pclmul' '.fma' '.fsgsbase'
  10004. '.rdrnd' '.f16c' '.avx2' '.bmi2'
  10005. '.lzcnt' '.popcnt' '.invpcid' '.vmfunc'
  10006. '.hle'
  10007. '.rtm' '.adx' '.rdseed' '.prfchw'
  10008. '.smap' '.mpx' '.sha' '.prefetchwt1'
  10009. '.clflushopt' '.xsavec' '.xsaves' '.se1'
  10010. '.avx512f' '.avx512cd' '.avx512er' '.avx512pf'
  10011. '.avx512vl' '.avx512bw' '.avx512dq' '.avx512ifma'
  10012. '.avx512vbmi' '.avx512_4fmaps''.avx512_4vnniw'
  10013. '.avx512_vpopcntdq''.avx512_vbmi2''.avx512_vnni'
  10014. '.avx512_bitalg''.avx512_bf16''.avx512_vp2intersect'
  10015. '.tdx' '.avx_vnni' '.avx512_fp16'
  10016. '.clwb' '.rdpid' '.ptwrite'
  10017. '.ibt'
  10018. '.wbnoinvd' '.pconfig' '.waitpkg' '.cldemote'
  10019. '.shstk' '.gfni' '.vaes' '.vpclmulqdq'
  10020. '.movdiri' '.movdir64b' '.enqcmd' '.tsxldtrk'
  10021. '.amx_int8' '.amx_bf16' '.amx_tile'
  10022. '.kl' '.widekl' '.uintr' '.hreset'
  10023. '.3dnow' '.3dnowa' '.sse4a' '.sse5'
  10024. '.syscall' '.rdtscp' '.svme'
  10025. '.lwp' '.fma4' '.xop' '.cx16'
  10026. '.padlock' '.clzero' '.mwaitx' '.rdpru'
  10027. '.mcommit' '.sev_es' '.snp' '.invlpgb'
  10028. '.tlbsync'
  10029. Apart from the warning, there are only two other effects on 'as'
  10030. operation; Firstly, if you specify a CPU other than 'i486', then shift
  10031. by one instructions such as 'sarl $1, %eax' will automatically use a two
  10032. byte opcode sequence. The larger three byte opcode sequence is used on
  10033. the 486 (and when no architecture is specified) because it executes
  10034. faster on the 486. Note that you can explicitly request the two byte
  10035. opcode by writing 'sarl %eax'. Secondly, if you specify 'i8086',
  10036. 'i186', or 'i286', _and_ '.code16' or '.code16gcc' then byte offset
  10037. conditional jumps will be promoted when necessary to a two instruction
  10038. sequence consisting of a conditional jump of the opposite sense around
  10039. an unconditional jump to the target.
  10040. Following the CPU architecture (but not a sub-architecture, which are
  10041. those starting with a dot), you may specify 'jumps' or 'nojumps' to
  10042. control automatic promotion of conditional jumps. 'jumps' is the
  10043. default, and enables jump promotion; All external jumps will be of the
  10044. long variety, and file-local jumps will be promoted as necessary.
  10045. (*note i386-Jumps::) 'nojumps' leaves external conditional jumps as byte
  10046. offset jumps, and warns about file-local conditional jumps that 'as'
  10047. promotes. Unconditional jumps are treated as for 'jumps'.
  10048. For example
  10049. .arch i8086,nojumps
  10050. 
  10051. File: as.info, Node: i386-ISA, Next: i386-Bugs, Prev: i386-Arch, Up: i386-Dependent
  10052. 9.16.16 AMD64 ISA vs. Intel64 ISA
  10053. ---------------------------------
  10054. There are some discrepancies between AMD64 and Intel64 ISAs.
  10055. * For 'movsxd' with 16-bit destination register, AMD64 supports
  10056. 32-bit source operand and Intel64 supports 16-bit source operand.
  10057. * For far branches (with explicit memory operand), both ISAs support
  10058. 32- and 16-bit operand size. Intel64 additionally supports 64-bit
  10059. operand size, encoded as 'ljmpq' and 'lcallq' in AT&T syntax and
  10060. with an explicit 'tbyte ptr' operand size specifier in Intel
  10061. syntax.
  10062. * 'lfs', 'lgs', and 'lss' similarly allow for 16- and 32-bit operand
  10063. size (32- and 48-bit memory operand) in both ISAs, while Intel64
  10064. additionally supports 64-bit operand sise (80-bit memory operands).
  10065. 
  10066. File: as.info, Node: i386-Bugs, Next: i386-Notes, Prev: i386-ISA, Up: i386-Dependent
  10067. 9.16.17 AT&T Syntax bugs
  10068. ------------------------
  10069. The UnixWare assembler, and probably other AT&T derived ix86 Unix
  10070. assemblers, generate floating point instructions with reversed source
  10071. and destination registers in certain cases. Unfortunately, gcc and
  10072. possibly many other programs use this reversed syntax, so we're stuck
  10073. with it.
  10074. For example
  10075. fsub %st,%st(3)
  10076. results in '%st(3)' being updated to '%st - %st(3)' rather than the
  10077. expected '%st(3) - %st'. This happens with all the non-commutative
  10078. arithmetic floating point operations with two register operands where
  10079. the source register is '%st' and the destination register is '%st(i)'.
  10080. 
  10081. File: as.info, Node: i386-Notes, Prev: i386-Bugs, Up: i386-Dependent
  10082. 9.16.18 Notes
  10083. -------------
  10084. There is some trickery concerning the 'mul' and 'imul' instructions that
  10085. deserves mention. The 16-, 32-, 64- and 128-bit expanding multiplies
  10086. (base opcode '0xf6'; extension 4 for 'mul' and 5 for 'imul') can be
  10087. output only in the one operand form. Thus, 'imul %ebx, %eax' does _not_
  10088. select the expanding multiply; the expanding multiply would clobber the
  10089. '%edx' register, and this would confuse 'gcc' output. Use 'imul %ebx'
  10090. to get the 64-bit product in '%edx:%eax'.
  10091. We have added a two operand form of 'imul' when the first operand is
  10092. an immediate mode expression and the second operand is a register. This
  10093. is just a shorthand, so that, multiplying '%eax' by 69, for example, can
  10094. be done with 'imul $69, %eax' rather than 'imul $69, %eax, %eax'.
  10095. 
  10096. File: as.info, Node: IA-64-Dependent, Next: IP2K-Dependent, Prev: i386-Dependent, Up: Machine Dependencies
  10097. 9.17 IA-64 Dependent Features
  10098. =============================
  10099. * Menu:
  10100. * IA-64 Options:: Options
  10101. * IA-64 Syntax:: Syntax
  10102. * IA-64 Opcodes:: Opcodes
  10103. 
  10104. File: as.info, Node: IA-64 Options, Next: IA-64 Syntax, Up: IA-64-Dependent
  10105. 9.17.1 Options
  10106. --------------
  10107. '-mconstant-gp'
  10108. This option instructs the assembler to mark the resulting object
  10109. file as using the "constant GP" model. With this model, it is
  10110. assumed that the entire program uses a single global pointer (GP)
  10111. value. Note that this option does not in any fashion affect the
  10112. machine code emitted by the assembler. All it does is turn on the
  10113. EF_IA_64_CONS_GP flag in the ELF file header.
  10114. '-mauto-pic'
  10115. This option instructs the assembler to mark the resulting object
  10116. file as using the "constant GP without function descriptor" data
  10117. model. This model is like the "constant GP" model, except that it
  10118. additionally does away with function descriptors. What this means
  10119. is that the address of a function refers directly to the function's
  10120. code entry-point. Normally, such an address would refer to a
  10121. function descriptor, which contains both the code entry-point and
  10122. the GP-value needed by the function. Note that this option does
  10123. not in any fashion affect the machine code emitted by the
  10124. assembler. All it does is turn on the EF_IA_64_NOFUNCDESC_CONS_GP
  10125. flag in the ELF file header.
  10126. '-milp32'
  10127. '-milp64'
  10128. '-mlp64'
  10129. '-mp64'
  10130. These options select the data model. The assembler defaults to
  10131. '-mlp64' (LP64 data model).
  10132. '-mle'
  10133. '-mbe'
  10134. These options select the byte order. The '-mle' option selects
  10135. little-endian byte order (default) and '-mbe' selects big-endian
  10136. byte order. Note that IA-64 machine code always uses little-endian
  10137. byte order.
  10138. '-mtune=itanium1'
  10139. '-mtune=itanium2'
  10140. Tune for a particular IA-64 CPU, ITANIUM1 or ITANIUM2. The default
  10141. is ITANIUM2.
  10142. '-munwind-check=warning'
  10143. '-munwind-check=error'
  10144. These options control what the assembler will do when performing
  10145. consistency checks on unwind directives. '-munwind-check=warning'
  10146. will make the assembler issue a warning when an unwind directive
  10147. check fails. This is the default. '-munwind-check=error' will
  10148. make the assembler issue an error when an unwind directive check
  10149. fails.
  10150. '-mhint.b=ok'
  10151. '-mhint.b=warning'
  10152. '-mhint.b=error'
  10153. These options control what the assembler will do when the 'hint.b'
  10154. instruction is used. '-mhint.b=ok' will make the assembler accept
  10155. 'hint.b'. '-mint.b=warning' will make the assembler issue a
  10156. warning when 'hint.b' is used. '-mhint.b=error' will make the
  10157. assembler treat 'hint.b' as an error, which is the default.
  10158. '-x'
  10159. '-xexplicit'
  10160. These options turn on dependency violation checking.
  10161. '-xauto'
  10162. This option instructs the assembler to automatically insert stop
  10163. bits where necessary to remove dependency violations. This is the
  10164. default mode.
  10165. '-xnone'
  10166. This option turns off dependency violation checking.
  10167. '-xdebug'
  10168. This turns on debug output intended to help tracking down bugs in
  10169. the dependency violation checker.
  10170. '-xdebugn'
  10171. This is a shortcut for -xnone -xdebug.
  10172. '-xdebugx'
  10173. This is a shortcut for -xexplicit -xdebug.
  10174. 
  10175. File: as.info, Node: IA-64 Syntax, Next: IA-64 Opcodes, Prev: IA-64 Options, Up: IA-64-Dependent
  10176. 9.17.2 Syntax
  10177. -------------
  10178. The assembler syntax closely follows the IA-64 Assembly Language
  10179. Reference Guide.
  10180. * Menu:
  10181. * IA-64-Chars:: Special Characters
  10182. * IA-64-Regs:: Register Names
  10183. * IA-64-Bits:: Bit Names
  10184. * IA-64-Relocs:: Relocations
  10185. 
  10186. File: as.info, Node: IA-64-Chars, Next: IA-64-Regs, Up: IA-64 Syntax
  10187. 9.17.2.1 Special Characters
  10188. ...........................
  10189. '//' is the line comment token.
  10190. ';' can be used instead of a newline to separate statements.
  10191. 
  10192. File: as.info, Node: IA-64-Regs, Next: IA-64-Bits, Prev: IA-64-Chars, Up: IA-64 Syntax
  10193. 9.17.2.2 Register Names
  10194. .......................
  10195. The 128 integer registers are referred to as 'rN'. The 128
  10196. floating-point registers are referred to as 'fN'. The 128 application
  10197. registers are referred to as 'arN'. The 128 control registers are
  10198. referred to as 'crN'. The 64 one-bit predicate registers are referred
  10199. to as 'pN'. The 8 branch registers are referred to as 'bN'. In
  10200. addition, the assembler defines a number of aliases: 'gp' ('r1'), 'sp'
  10201. ('r12'), 'rp' ('b0'), 'ret0' ('r8'), 'ret1' ('r9'), 'ret2' ('r10'),
  10202. 'ret3' ('r9'), 'fargN' ('f8+N'), and 'fretN' ('f8+N').
  10203. For convenience, the assembler also defines aliases for all named
  10204. application and control registers. For example, 'ar.bsp' refers to the
  10205. register backing store pointer ('ar17'). Similarly, 'cr.eoi' refers to
  10206. the end-of-interrupt register ('cr67').
  10207. 
  10208. File: as.info, Node: IA-64-Bits, Next: IA-64-Relocs, Prev: IA-64-Regs, Up: IA-64 Syntax
  10209. 9.17.2.3 IA-64 Processor-Status-Register (PSR) Bit Names
  10210. ........................................................
  10211. The assembler defines bit masks for each of the bits in the IA-64
  10212. processor status register. For example, 'psr.ic' corresponds to a value
  10213. of 0x2000. These masks are primarily intended for use with the
  10214. 'ssm'/'sum' and 'rsm'/'rum' instructions, but they can be used anywhere
  10215. else where an integer constant is expected.
  10216. 
  10217. File: as.info, Node: IA-64-Relocs, Prev: IA-64-Bits, Up: IA-64 Syntax
  10218. 9.17.2.4 Relocations
  10219. ....................
  10220. In addition to the standard IA-64 relocations, the following relocations
  10221. are implemented by 'as':
  10222. '@slotcount(V)'
  10223. Convert the address offset V into a slot count. This pseudo
  10224. function is available only on VMS. The expression V must be known
  10225. at assembly time: it can't reference undefined symbols or symbols
  10226. in different sections.
  10227. 
  10228. File: as.info, Node: IA-64 Opcodes, Prev: IA-64 Syntax, Up: IA-64-Dependent
  10229. 9.17.3 Opcodes
  10230. --------------
  10231. For detailed information on the IA-64 machine instruction set, see the
  10232. IA-64 Architecture Handbook
  10233. (http://developer.intel.com/design/itanium/arch_spec.htm).
  10234. 
  10235. File: as.info, Node: IP2K-Dependent, Next: LM32-Dependent, Prev: IA-64-Dependent, Up: Machine Dependencies
  10236. 9.18 IP2K Dependent Features
  10237. ============================
  10238. * Menu:
  10239. * IP2K-Opts:: IP2K Options
  10240. * IP2K-Syntax:: IP2K Syntax
  10241. 
  10242. File: as.info, Node: IP2K-Opts, Next: IP2K-Syntax, Up: IP2K-Dependent
  10243. 9.18.1 IP2K Options
  10244. -------------------
  10245. The Ubicom IP2K version of 'as' has a few machine dependent options:
  10246. '-mip2022ext'
  10247. 'as' can assemble the extended IP2022 instructions, but it will
  10248. only do so if this is specifically allowed via this command line
  10249. option.
  10250. '-mip2022'
  10251. This option restores the assembler's default behaviour of not
  10252. permitting the extended IP2022 instructions to be assembled.
  10253. 
  10254. File: as.info, Node: IP2K-Syntax, Prev: IP2K-Opts, Up: IP2K-Dependent
  10255. 9.18.2 IP2K Syntax
  10256. ------------------
  10257. * Menu:
  10258. * IP2K-Chars:: Special Characters
  10259. 
  10260. File: as.info, Node: IP2K-Chars, Up: IP2K-Syntax
  10261. 9.18.2.1 Special Characters
  10262. ...........................
  10263. The presence of a ';' on a line indicates the start of a comment that
  10264. extends to the end of the current line.
  10265. If a '#' appears as the first character of a line, the whole line is
  10266. treated as a comment, but in this case the line can also be a logical
  10267. line number directive (*note Comments::) or a preprocessor control
  10268. command (*note Preprocessing::).
  10269. The IP2K assembler does not currently support a line separator
  10270. character.
  10271. 
  10272. File: as.info, Node: LM32-Dependent, Next: M32C-Dependent, Prev: IP2K-Dependent, Up: Machine Dependencies
  10273. 9.19 LM32 Dependent Features
  10274. ============================
  10275. * Menu:
  10276. * LM32 Options:: Options
  10277. * LM32 Syntax:: Syntax
  10278. * LM32 Opcodes:: Opcodes
  10279. 
  10280. File: as.info, Node: LM32 Options, Next: LM32 Syntax, Up: LM32-Dependent
  10281. 9.19.1 Options
  10282. --------------
  10283. '-mmultiply-enabled'
  10284. Enable multiply instructions.
  10285. '-mdivide-enabled'
  10286. Enable divide instructions.
  10287. '-mbarrel-shift-enabled'
  10288. Enable barrel-shift instructions.
  10289. '-msign-extend-enabled'
  10290. Enable sign extend instructions.
  10291. '-muser-enabled'
  10292. Enable user defined instructions.
  10293. '-micache-enabled'
  10294. Enable instruction cache related CSRs.
  10295. '-mdcache-enabled'
  10296. Enable data cache related CSRs.
  10297. '-mbreak-enabled'
  10298. Enable break instructions.
  10299. '-mall-enabled'
  10300. Enable all instructions and CSRs.
  10301. 
  10302. File: as.info, Node: LM32 Syntax, Next: LM32 Opcodes, Prev: LM32 Options, Up: LM32-Dependent
  10303. 9.19.2 Syntax
  10304. -------------
  10305. * Menu:
  10306. * LM32-Regs:: Register Names
  10307. * LM32-Modifiers:: Relocatable Expression Modifiers
  10308. * LM32-Chars:: Special Characters
  10309. 
  10310. File: as.info, Node: LM32-Regs, Next: LM32-Modifiers, Up: LM32 Syntax
  10311. 9.19.2.1 Register Names
  10312. .......................
  10313. LM32 has 32 x 32-bit general purpose registers 'r0', 'r1', ... 'r31'.
  10314. The following aliases are defined: 'gp' - 'r26', 'fp' - 'r27', 'sp' -
  10315. 'r28', 'ra' - 'r29', 'ea' - 'r30', 'ba' - 'r31'.
  10316. LM32 has the following Control and Status Registers (CSRs).
  10317. 'IE'
  10318. Interrupt enable.
  10319. 'IM'
  10320. Interrupt mask.
  10321. 'IP'
  10322. Interrupt pending.
  10323. 'ICC'
  10324. Instruction cache control.
  10325. 'DCC'
  10326. Data cache control.
  10327. 'CC'
  10328. Cycle counter.
  10329. 'CFG'
  10330. Configuration.
  10331. 'EBA'
  10332. Exception base address.
  10333. 'DC'
  10334. Debug control.
  10335. 'DEBA'
  10336. Debug exception base address.
  10337. 'JTX'
  10338. JTAG transmit.
  10339. 'JRX'
  10340. JTAG receive.
  10341. 'BP0'
  10342. Breakpoint 0.
  10343. 'BP1'
  10344. Breakpoint 1.
  10345. 'BP2'
  10346. Breakpoint 2.
  10347. 'BP3'
  10348. Breakpoint 3.
  10349. 'WP0'
  10350. Watchpoint 0.
  10351. 'WP1'
  10352. Watchpoint 1.
  10353. 'WP2'
  10354. Watchpoint 2.
  10355. 'WP3'
  10356. Watchpoint 3.
  10357. 
  10358. File: as.info, Node: LM32-Modifiers, Next: LM32-Chars, Prev: LM32-Regs, Up: LM32 Syntax
  10359. 9.19.2.2 Relocatable Expression Modifiers
  10360. .........................................
  10361. The assembler supports several modifiers when using relocatable
  10362. addresses in LM32 instruction operands. The general syntax is the
  10363. following:
  10364. modifier(relocatable-expression)
  10365. 'lo'
  10366. This modifier allows you to use bits 0 through 15 of an address
  10367. expression as 16 bit relocatable expression.
  10368. 'hi'
  10369. This modifier allows you to use bits 16 through 23 of an address
  10370. expression as 16 bit relocatable expression.
  10371. For example
  10372. ori r4, r4, lo(sym+10)
  10373. orhi r4, r4, hi(sym+10)
  10374. 'gp'
  10375. This modified creates a 16-bit relocatable expression that is the
  10376. offset of the symbol from the global pointer.
  10377. mva r4, gp(sym)
  10378. 'got'
  10379. This modifier places a symbol in the GOT and creates a 16-bit
  10380. relocatable expression that is the offset into the GOT of this
  10381. symbol.
  10382. lw r4, (gp+got(sym))
  10383. 'gotofflo16'
  10384. This modifier allows you to use the bits 0 through 15 of an address
  10385. which is an offset from the GOT.
  10386. 'gotoffhi16'
  10387. This modifier allows you to use the bits 16 through 31 of an
  10388. address which is an offset from the GOT.
  10389. orhi r4, r4, gotoffhi16(lsym)
  10390. addi r4, r4, gotofflo16(lsym)
  10391. 
  10392. File: as.info, Node: LM32-Chars, Prev: LM32-Modifiers, Up: LM32 Syntax
  10393. 9.19.2.3 Special Characters
  10394. ...........................
  10395. The presence of a '#' on a line indicates the start of a comment that
  10396. extends to the end of the current line. Note that if a line starts with
  10397. a '#' character then it can also be a logical line number directive
  10398. (*note Comments::) or a preprocessor control command (*note
  10399. Preprocessing::).
  10400. A semicolon (';') can be used to separate multiple statements on the
  10401. same line.
  10402. 
  10403. File: as.info, Node: LM32 Opcodes, Prev: LM32 Syntax, Up: LM32-Dependent
  10404. 9.19.3 Opcodes
  10405. --------------
  10406. For detailed information on the LM32 machine instruction set, see
  10407. <http://www.latticesemi.com/products/intellectualproperty/ipcores/mico32/>.
  10408. 'as' implements all the standard LM32 opcodes.
  10409. 
  10410. File: as.info, Node: M32C-Dependent, Next: M32R-Dependent, Prev: LM32-Dependent, Up: Machine Dependencies
  10411. 9.20 M32C Dependent Features
  10412. ============================
  10413. 'as' can assemble code for several different members of the Renesas M32C
  10414. family. Normally the default is to assemble code for the M16C
  10415. microprocessor. The '-m32c' option may be used to change the default to
  10416. the M32C microprocessor.
  10417. * Menu:
  10418. * M32C-Opts:: M32C Options
  10419. * M32C-Syntax:: M32C Syntax
  10420. 
  10421. File: as.info, Node: M32C-Opts, Next: M32C-Syntax, Up: M32C-Dependent
  10422. 9.20.1 M32C Options
  10423. -------------------
  10424. The Renesas M32C version of 'as' has these machine-dependent options:
  10425. '-m32c'
  10426. Assemble M32C instructions.
  10427. '-m16c'
  10428. Assemble M16C instructions (default).
  10429. '-relax'
  10430. Enable support for link-time relaxations.
  10431. '-h-tick-hex'
  10432. Support H'00 style hex constants in addition to 0x00 style.
  10433. 
  10434. File: as.info, Node: M32C-Syntax, Prev: M32C-Opts, Up: M32C-Dependent
  10435. 9.20.2 M32C Syntax
  10436. ------------------
  10437. * Menu:
  10438. * M32C-Modifiers:: Symbolic Operand Modifiers
  10439. * M32C-Chars:: Special Characters
  10440. 
  10441. File: as.info, Node: M32C-Modifiers, Next: M32C-Chars, Up: M32C-Syntax
  10442. 9.20.2.1 Symbolic Operand Modifiers
  10443. ...................................
  10444. The assembler supports several modifiers when using symbol addresses in
  10445. M32C instruction operands. The general syntax is the following:
  10446. %modifier(symbol)
  10447. '%dsp8'
  10448. '%dsp16'
  10449. These modifiers override the assembler's assumptions about how big
  10450. a symbol's address is. Normally, when it sees an operand like
  10451. 'sym[a0]' it assumes 'sym' may require the widest displacement
  10452. field (16 bits for '-m16c', 24 bits for '-m32c'). These modifiers
  10453. tell it to assume the address will fit in an 8 or 16 bit
  10454. (respectively) unsigned displacement. Note that, of course, if it
  10455. doesn't actually fit you will get linker errors. Example:
  10456. mov.w %dsp8(sym)[a0],r1
  10457. mov.b #0,%dsp8(sym)[a0]
  10458. '%hi8'
  10459. This modifier allows you to load bits 16 through 23 of a 24 bit
  10460. address into an 8 bit register. This is useful with, for example,
  10461. the M16C 'smovf' instruction, which expects a 20 bit address in
  10462. 'r1h' and 'a0'. Example:
  10463. mov.b #%hi8(sym),r1h
  10464. mov.w #%lo16(sym),a0
  10465. smovf.b
  10466. '%lo16'
  10467. Likewise, this modifier allows you to load bits 0 through 15 of a
  10468. 24 bit address into a 16 bit register.
  10469. '%hi16'
  10470. This modifier allows you to load bits 16 through 31 of a 32 bit
  10471. address into a 16 bit register. While the M32C family only has 24
  10472. bits of address space, it does support addresses in pairs of 16 bit
  10473. registers (like 'a1a0' for the 'lde' instruction). This modifier
  10474. is for loading the upper half in such cases. Example:
  10475. mov.w #%hi16(sym),a1
  10476. mov.w #%lo16(sym),a0
  10477. ...
  10478. lde.w [a1a0],r1
  10479. 
  10480. File: as.info, Node: M32C-Chars, Prev: M32C-Modifiers, Up: M32C-Syntax
  10481. 9.20.2.2 Special Characters
  10482. ...........................
  10483. The presence of a ';' character on a line indicates the start of a
  10484. comment that extends to the end of that line.
  10485. If a '#' appears as the first character of a line, the whole line is
  10486. treated as a comment, but in this case the line can also be a logical
  10487. line number directive (*note Comments::) or a preprocessor control
  10488. command (*note Preprocessing::).
  10489. The '|' character can be used to separate statements on the same
  10490. line.
  10491. 
  10492. File: as.info, Node: M32R-Dependent, Next: M68K-Dependent, Prev: M32C-Dependent, Up: Machine Dependencies
  10493. 9.21 M32R Dependent Features
  10494. ============================
  10495. * Menu:
  10496. * M32R-Opts:: M32R Options
  10497. * M32R-Directives:: M32R Directives
  10498. * M32R-Warnings:: M32R Warnings
  10499. 
  10500. File: as.info, Node: M32R-Opts, Next: M32R-Directives, Up: M32R-Dependent
  10501. 9.21.1 M32R Options
  10502. -------------------
  10503. The Renesas M32R version of 'as' has a few machine dependent options:
  10504. '-m32rx'
  10505. 'as' can assemble code for several different members of the Renesas
  10506. M32R family. Normally the default is to assemble code for the M32R
  10507. microprocessor. This option may be used to change the default to
  10508. the M32RX microprocessor, which adds some more instructions to the
  10509. basic M32R instruction set, and some additional parameters to some
  10510. of the original instructions.
  10511. '-m32r2'
  10512. This option changes the target processor to the M32R2
  10513. microprocessor.
  10514. '-m32r'
  10515. This option can be used to restore the assembler's default
  10516. behaviour of assembling for the M32R microprocessor. This can be
  10517. useful if the default has been changed by a previous command-line
  10518. option.
  10519. '-little'
  10520. This option tells the assembler to produce little-endian code and
  10521. data. The default is dependent upon how the toolchain was
  10522. configured.
  10523. '-EL'
  10524. This is a synonym for _-little_.
  10525. '-big'
  10526. This option tells the assembler to produce big-endian code and
  10527. data.
  10528. '-EB'
  10529. This is a synonym for _-big_.
  10530. '-KPIC'
  10531. This option specifies that the output of the assembler should be
  10532. marked as position-independent code (PIC).
  10533. '-parallel'
  10534. This option tells the assembler to attempts to combine two
  10535. sequential instructions into a single, parallel instruction, where
  10536. it is legal to do so.
  10537. '-no-parallel'
  10538. This option disables a previously enabled _-parallel_ option.
  10539. '-no-bitinst'
  10540. This option disables the support for the extended bit-field
  10541. instructions provided by the M32R2. If this support needs to be
  10542. re-enabled the _-bitinst_ switch can be used to restore it.
  10543. '-O'
  10544. This option tells the assembler to attempt to optimize the
  10545. instructions that it produces. This includes filling delay slots
  10546. and converting sequential instructions into parallel ones. This
  10547. option implies _-parallel_.
  10548. '-warn-explicit-parallel-conflicts'
  10549. Instructs 'as' to produce warning messages when questionable
  10550. parallel instructions are encountered. This option is enabled by
  10551. default, but 'gcc' disables it when it invokes 'as' directly.
  10552. Questionable instructions are those whose behaviour would be
  10553. different if they were executed sequentially. For example the code
  10554. fragment 'mv r1, r2 || mv r3, r1' produces a different result from
  10555. 'mv r1, r2 \n mv r3, r1' since the former moves r1 into r3 and then
  10556. r2 into r1, whereas the later moves r2 into r1 and r3.
  10557. '-Wp'
  10558. This is a shorter synonym for the
  10559. _-warn-explicit-parallel-conflicts_ option.
  10560. '-no-warn-explicit-parallel-conflicts'
  10561. Instructs 'as' not to produce warning messages when questionable
  10562. parallel instructions are encountered.
  10563. '-Wnp'
  10564. This is a shorter synonym for the
  10565. _-no-warn-explicit-parallel-conflicts_ option.
  10566. '-ignore-parallel-conflicts'
  10567. This option tells the assembler's to stop checking parallel
  10568. instructions for constraint violations. This ability is provided
  10569. for hardware vendors testing chip designs and should not be used
  10570. under normal circumstances.
  10571. '-no-ignore-parallel-conflicts'
  10572. This option restores the assembler's default behaviour of checking
  10573. parallel instructions to detect constraint violations.
  10574. '-Ip'
  10575. This is a shorter synonym for the _-ignore-parallel-conflicts_
  10576. option.
  10577. '-nIp'
  10578. This is a shorter synonym for the _-no-ignore-parallel-conflicts_
  10579. option.
  10580. '-warn-unmatched-high'
  10581. This option tells the assembler to produce a warning message if a
  10582. '.high' pseudo op is encountered without a matching '.low' pseudo
  10583. op. The presence of such an unmatched pseudo op usually indicates
  10584. a programming error.
  10585. '-no-warn-unmatched-high'
  10586. Disables a previously enabled _-warn-unmatched-high_ option.
  10587. '-Wuh'
  10588. This is a shorter synonym for the _-warn-unmatched-high_ option.
  10589. '-Wnuh'
  10590. This is a shorter synonym for the _-no-warn-unmatched-high_ option.
  10591. 
  10592. File: as.info, Node: M32R-Directives, Next: M32R-Warnings, Prev: M32R-Opts, Up: M32R-Dependent
  10593. 9.21.2 M32R Directives
  10594. ----------------------
  10595. The Renesas M32R version of 'as' has a few architecture specific
  10596. directives:
  10597. 'low EXPRESSION'
  10598. The 'low' directive computes the value of its expression and places
  10599. the lower 16-bits of the result into the immediate-field of the
  10600. instruction. For example:
  10601. or3 r0, r0, #low(0x12345678) ; compute r0 = r0 | 0x5678
  10602. add3, r0, r0, #low(fred) ; compute r0 = r0 + low 16-bits of address of fred
  10603. 'high EXPRESSION'
  10604. The 'high' directive computes the value of its expression and
  10605. places the upper 16-bits of the result into the immediate-field of
  10606. the instruction. For example:
  10607. seth r0, #high(0x12345678) ; compute r0 = 0x12340000
  10608. seth, r0, #high(fred) ; compute r0 = upper 16-bits of address of fred
  10609. 'shigh EXPRESSION'
  10610. The 'shigh' directive is very similar to the 'high' directive. It
  10611. also computes the value of its expression and places the upper
  10612. 16-bits of the result into the immediate-field of the instruction.
  10613. The difference is that 'shigh' also checks to see if the lower
  10614. 16-bits could be interpreted as a signed number, and if so it
  10615. assumes that a borrow will occur from the upper-16 bits. To
  10616. compensate for this the 'shigh' directive pre-biases the upper 16
  10617. bit value by adding one to it. For example:
  10618. For example:
  10619. seth r0, #shigh(0x12345678) ; compute r0 = 0x12340000
  10620. seth r0, #shigh(0x00008000) ; compute r0 = 0x00010000
  10621. In the second example the lower 16-bits are 0x8000. If these are
  10622. treated as a signed value and sign extended to 32-bits then the
  10623. value becomes 0xffff8000. If this value is then added to
  10624. 0x00010000 then the result is 0x00008000.
  10625. This behaviour is to allow for the different semantics of the 'or3'
  10626. and 'add3' instructions. The 'or3' instruction treats its 16-bit
  10627. immediate argument as unsigned whereas the 'add3' treats its 16-bit
  10628. immediate as a signed value. So for example:
  10629. seth r0, #shigh(0x00008000)
  10630. add3 r0, r0, #low(0x00008000)
  10631. Produces the correct result in r0, whereas:
  10632. seth r0, #shigh(0x00008000)
  10633. or3 r0, r0, #low(0x00008000)
  10634. Stores 0xffff8000 into r0.
  10635. Note - the 'shigh' directive does not know where in the assembly
  10636. source code the lower 16-bits of the value are going set, so it
  10637. cannot check to make sure that an 'or3' instruction is being used
  10638. rather than an 'add3' instruction. It is up to the programmer to
  10639. make sure that correct directives are used.
  10640. '.m32r'
  10641. The directive performs a similar thing as the _-m32r_ command line
  10642. option. It tells the assembler to only accept M32R instructions
  10643. from now on. An instructions from later M32R architectures are
  10644. refused.
  10645. '.m32rx'
  10646. The directive performs a similar thing as the _-m32rx_ command line
  10647. option. It tells the assembler to start accepting the extra
  10648. instructions in the M32RX ISA as well as the ordinary M32R ISA.
  10649. '.m32r2'
  10650. The directive performs a similar thing as the _-m32r2_ command line
  10651. option. It tells the assembler to start accepting the extra
  10652. instructions in the M32R2 ISA as well as the ordinary M32R ISA.
  10653. '.little'
  10654. The directive performs a similar thing as the _-little_ command
  10655. line option. It tells the assembler to start producing
  10656. little-endian code and data. This option should be used with care
  10657. as producing mixed-endian binary files is fraught with danger.
  10658. '.big'
  10659. The directive performs a similar thing as the _-big_ command line
  10660. option. It tells the assembler to start producing big-endian code
  10661. and data. This option should be used with care as producing
  10662. mixed-endian binary files is fraught with danger.
  10663. 
  10664. File: as.info, Node: M32R-Warnings, Prev: M32R-Directives, Up: M32R-Dependent
  10665. 9.21.3 M32R Warnings
  10666. --------------------
  10667. There are several warning and error messages that can be produced by
  10668. 'as' which are specific to the M32R:
  10669. 'output of 1st instruction is the same as an input to 2nd instruction - is this intentional ?'
  10670. This message is only produced if warnings for explicit parallel
  10671. conflicts have been enabled. It indicates that the assembler has
  10672. encountered a parallel instruction in which the destination
  10673. register of the left hand instruction is used as an input register
  10674. in the right hand instruction. For example in this code fragment
  10675. 'mv r1, r2 || neg r3, r1' register r1 is the destination of the
  10676. move instruction and the input to the neg instruction.
  10677. 'output of 2nd instruction is the same as an input to 1st instruction - is this intentional ?'
  10678. This message is only produced if warnings for explicit parallel
  10679. conflicts have been enabled. It indicates that the assembler has
  10680. encountered a parallel instruction in which the destination
  10681. register of the right hand instruction is used as an input register
  10682. in the left hand instruction. For example in this code fragment
  10683. 'mv r1, r2 || neg r2, r3' register r2 is the destination of the neg
  10684. instruction and the input to the move instruction.
  10685. 'instruction '...' is for the M32RX only'
  10686. This message is produced when the assembler encounters an
  10687. instruction which is only supported by the M32Rx processor, and the
  10688. '-m32rx' command-line flag has not been specified to allow assembly
  10689. of such instructions.
  10690. 'unknown instruction '...''
  10691. This message is produced when the assembler encounters an
  10692. instruction which it does not recognize.
  10693. 'only the NOP instruction can be issued in parallel on the m32r'
  10694. This message is produced when the assembler encounters a parallel
  10695. instruction which does not involve a NOP instruction and the
  10696. '-m32rx' command-line flag has not been specified. Only the M32Rx
  10697. processor is able to execute two instructions in parallel.
  10698. 'instruction '...' cannot be executed in parallel.'
  10699. This message is produced when the assembler encounters a parallel
  10700. instruction which is made up of one or two instructions which
  10701. cannot be executed in parallel.
  10702. 'Instructions share the same execution pipeline'
  10703. This message is produced when the assembler encounters a parallel
  10704. instruction whose components both use the same execution pipeline.
  10705. 'Instructions write to the same destination register.'
  10706. This message is produced when the assembler encounters a parallel
  10707. instruction where both components attempt to modify the same
  10708. register. For example these code fragments will produce this
  10709. message: 'mv r1, r2 || neg r1, r3' 'jl r0 || mv r14, r1' 'st r2,
  10710. @-r1 || mv r1, r3' 'mv r1, r2 || ld r0, @r1+' 'cmp r1, r2 || addx
  10711. r3, r4' (Both write to the condition bit)
  10712. 
  10713. File: as.info, Node: M68K-Dependent, Next: M68HC11-Dependent, Prev: M32R-Dependent, Up: Machine Dependencies
  10714. 9.22 M680x0 Dependent Features
  10715. ==============================
  10716. * Menu:
  10717. * M68K-Opts:: M680x0 Options
  10718. * M68K-Syntax:: Syntax
  10719. * M68K-Moto-Syntax:: Motorola Syntax
  10720. * M68K-Float:: Floating Point
  10721. * M68K-Directives:: 680x0 Machine Directives
  10722. * M68K-opcodes:: Opcodes
  10723. 
  10724. File: as.info, Node: M68K-Opts, Next: M68K-Syntax, Up: M68K-Dependent
  10725. 9.22.1 M680x0 Options
  10726. ---------------------
  10727. The Motorola 680x0 version of 'as' has a few machine dependent options:
  10728. '-march=ARCHITECTURE'
  10729. This option specifies a target architecture. The following
  10730. architectures are recognized: '68000', '68010', '68020', '68030',
  10731. '68040', '68060', 'cpu32', 'isaa', 'isaaplus', 'isab', 'isac' and
  10732. 'cfv4e'.
  10733. '-mcpu=CPU'
  10734. This option specifies a target cpu. When used in conjunction with
  10735. the '-march' option, the cpu must be within the specified
  10736. architecture. Also, the generic features of the architecture are
  10737. used for instruction generation, rather than those of the specific
  10738. chip.
  10739. '-m[no-]68851'
  10740. '-m[no-]68881'
  10741. '-m[no-]div'
  10742. '-m[no-]usp'
  10743. '-m[no-]float'
  10744. '-m[no-]mac'
  10745. '-m[no-]emac'
  10746. Enable or disable various architecture specific features. If a
  10747. chip or architecture by default supports an option (for instance
  10748. '-march=isaaplus' includes the '-mdiv' option), explicitly
  10749. disabling the option will override the default.
  10750. '-l'
  10751. You can use the '-l' option to shorten the size of references to
  10752. undefined symbols. If you do not use the '-l' option, references
  10753. to undefined symbols are wide enough for a full 'long' (32 bits).
  10754. (Since 'as' cannot know where these symbols end up, 'as' can only
  10755. allocate space for the linker to fill in later. Since 'as' does
  10756. not know how far away these symbols are, it allocates as much space
  10757. as it can.) If you use this option, the references are only one
  10758. word wide (16 bits). This may be useful if you want the object
  10759. file to be as small as possible, and you know that the relevant
  10760. symbols are always less than 17 bits away.
  10761. '--register-prefix-optional'
  10762. For some configurations, especially those where the compiler
  10763. normally does not prepend an underscore to the names of user
  10764. variables, the assembler requires a '%' before any use of a
  10765. register name. This is intended to let the assembler distinguish
  10766. between C variables and functions named 'a0' through 'a7', and so
  10767. on. The '%' is always accepted, but is not required for certain
  10768. configurations, notably 'sun3'. The '--register-prefix-optional'
  10769. option may be used to permit omitting the '%' even for
  10770. configurations for which it is normally required. If this is done,
  10771. it will generally be impossible to refer to C variables and
  10772. functions with the same names as register names.
  10773. '--bitwise-or'
  10774. Normally the character '|' is treated as a comment character, which
  10775. means that it can not be used in expressions. The '--bitwise-or'
  10776. option turns '|' into a normal character. In this mode, you must
  10777. either use C style comments, or start comments with a '#' character
  10778. at the beginning of a line.
  10779. '--base-size-default-16 --base-size-default-32'
  10780. If you use an addressing mode with a base register without
  10781. specifying the size, 'as' will normally use the full 32 bit value.
  10782. For example, the addressing mode '%a0@(%d0)' is equivalent to
  10783. '%a0@(%d0:l)'. You may use the '--base-size-default-16' option to
  10784. tell 'as' to default to using the 16 bit value. In this case,
  10785. '%a0@(%d0)' is equivalent to '%a0@(%d0:w)'. You may use the
  10786. '--base-size-default-32' option to restore the default behaviour.
  10787. '--disp-size-default-16 --disp-size-default-32'
  10788. If you use an addressing mode with a displacement, and the value of
  10789. the displacement is not known, 'as' will normally assume that the
  10790. value is 32 bits. For example, if the symbol 'disp' has not been
  10791. defined, 'as' will assemble the addressing mode '%a0@(disp,%d0)' as
  10792. though 'disp' is a 32 bit value. You may use the
  10793. '--disp-size-default-16' option to tell 'as' to instead assume that
  10794. the displacement is 16 bits. In this case, 'as' will assemble
  10795. '%a0@(disp,%d0)' as though 'disp' is a 16 bit value. You may use
  10796. the '--disp-size-default-32' option to restore the default
  10797. behaviour.
  10798. '--pcrel'
  10799. Always keep branches PC-relative. In the M680x0 architecture all
  10800. branches are defined as PC-relative. However, on some processors
  10801. they are limited to word displacements maximum. When 'as' needs a
  10802. long branch that is not available, it normally emits an absolute
  10803. jump instead. This option disables this substitution. When this
  10804. option is given and no long branches are available, only word
  10805. branches will be emitted. An error message will be generated if a
  10806. word branch cannot reach its target. This option has no effect on
  10807. 68020 and other processors that have long branches. *note Branch
  10808. Improvement: M68K-Branch.
  10809. '-m68000'
  10810. 'as' can assemble code for several different members of the
  10811. Motorola 680x0 family. The default depends upon how 'as' was
  10812. configured when it was built; normally, the default is to assemble
  10813. code for the 68020 microprocessor. The following options may be
  10814. used to change the default. These options control which
  10815. instructions and addressing modes are permitted. The members of
  10816. the 680x0 family are very similar. For detailed information about
  10817. the differences, see the Motorola manuals.
  10818. '-m68000'
  10819. '-m68ec000'
  10820. '-m68hc000'
  10821. '-m68hc001'
  10822. '-m68008'
  10823. '-m68302'
  10824. '-m68306'
  10825. '-m68307'
  10826. '-m68322'
  10827. '-m68356'
  10828. Assemble for the 68000. '-m68008', '-m68302', and so on are
  10829. synonyms for '-m68000', since the chips are the same from the
  10830. point of view of the assembler.
  10831. '-m68010'
  10832. Assemble for the 68010.
  10833. '-m68020'
  10834. '-m68ec020'
  10835. Assemble for the 68020. This is normally the default.
  10836. '-m68030'
  10837. '-m68ec030'
  10838. Assemble for the 68030.
  10839. '-m68040'
  10840. '-m68ec040'
  10841. Assemble for the 68040.
  10842. '-m68060'
  10843. '-m68ec060'
  10844. Assemble for the 68060.
  10845. '-mcpu32'
  10846. '-m68330'
  10847. '-m68331'
  10848. '-m68332'
  10849. '-m68333'
  10850. '-m68334'
  10851. '-m68336'
  10852. '-m68340'
  10853. '-m68341'
  10854. '-m68349'
  10855. '-m68360'
  10856. Assemble for the CPU32 family of chips.
  10857. '-m5200'
  10858. '-m5202'
  10859. '-m5204'
  10860. '-m5206'
  10861. '-m5206e'
  10862. '-m521x'
  10863. '-m5249'
  10864. '-m528x'
  10865. '-m5307'
  10866. '-m5407'
  10867. '-m547x'
  10868. '-m548x'
  10869. '-mcfv4'
  10870. '-mcfv4e'
  10871. Assemble for the ColdFire family of chips.
  10872. '-m68881'
  10873. '-m68882'
  10874. Assemble 68881 floating point instructions. This is the
  10875. default for the 68020, 68030, and the CPU32. The 68040 and
  10876. 68060 always support floating point instructions.
  10877. '-mno-68881'
  10878. Do not assemble 68881 floating point instructions. This is
  10879. the default for 68000 and the 68010. The 68040 and 68060
  10880. always support floating point instructions, even if this
  10881. option is used.
  10882. '-m68851'
  10883. Assemble 68851 MMU instructions. This is the default for the
  10884. 68020, 68030, and 68060. The 68040 accepts a somewhat
  10885. different set of MMU instructions; '-m68851' and '-m68040'
  10886. should not be used together.
  10887. '-mno-68851'
  10888. Do not assemble 68851 MMU instructions. This is the default
  10889. for the 68000, 68010, and the CPU32. The 68040 accepts a
  10890. somewhat different set of MMU instructions.
  10891. 
  10892. File: as.info, Node: M68K-Syntax, Next: M68K-Moto-Syntax, Prev: M68K-Opts, Up: M68K-Dependent
  10893. 9.22.2 Syntax
  10894. -------------
  10895. This syntax for the Motorola 680x0 was developed at MIT.
  10896. The 680x0 version of 'as' uses instructions names and syntax
  10897. compatible with the Sun assembler. Intervening periods are ignored; for
  10898. example, 'movl' is equivalent to 'mov.l'.
  10899. In the following table APC stands for any of the address registers
  10900. ('%a0' through '%a7'), the program counter ('%pc'), the zero-address
  10901. relative to the program counter ('%zpc'), a suppressed address register
  10902. ('%za0' through '%za7'), or it may be omitted entirely. The use of SIZE
  10903. means one of 'w' or 'l', and it may be omitted, along with the leading
  10904. colon, unless a scale is also specified. The use of SCALE means one of
  10905. '1', '2', '4', or '8', and it may always be omitted along with the
  10906. leading colon.
  10907. The following addressing modes are understood:
  10908. "Immediate"
  10909. '#NUMBER'
  10910. "Data Register"
  10911. '%d0' through '%d7'
  10912. "Address Register"
  10913. '%a0' through '%a7'
  10914. '%a7' is also known as '%sp', i.e., the Stack Pointer. '%a6' is
  10915. also known as '%fp', the Frame Pointer.
  10916. "Address Register Indirect"
  10917. '%a0@' through '%a7@'
  10918. "Address Register Postincrement"
  10919. '%a0@+' through '%a7@+'
  10920. "Address Register Predecrement"
  10921. '%a0@-' through '%a7@-'
  10922. "Indirect Plus Offset"
  10923. 'APC@(NUMBER)'
  10924. "Index"
  10925. 'APC@(NUMBER,REGISTER:SIZE:SCALE)'
  10926. The NUMBER may be omitted.
  10927. "Postindex"
  10928. 'APC@(NUMBER)@(ONUMBER,REGISTER:SIZE:SCALE)'
  10929. The ONUMBER or the REGISTER, but not both, may be omitted.
  10930. "Preindex"
  10931. 'APC@(NUMBER,REGISTER:SIZE:SCALE)@(ONUMBER)'
  10932. The NUMBER may be omitted. Omitting the REGISTER produces the
  10933. Postindex addressing mode.
  10934. "Absolute"
  10935. 'SYMBOL', or 'DIGITS', optionally followed by ':b', ':w', or ':l'.
  10936. 
  10937. File: as.info, Node: M68K-Moto-Syntax, Next: M68K-Float, Prev: M68K-Syntax, Up: M68K-Dependent
  10938. 9.22.3 Motorola Syntax
  10939. ----------------------
  10940. The standard Motorola syntax for this chip differs from the syntax
  10941. already discussed (*note Syntax: M68K-Syntax.). 'as' can accept
  10942. Motorola syntax for operands, even if MIT syntax is used for other
  10943. operands in the same instruction. The two kinds of syntax are fully
  10944. compatible.
  10945. In the following table APC stands for any of the address registers
  10946. ('%a0' through '%a7'), the program counter ('%pc'), the zero-address
  10947. relative to the program counter ('%zpc'), or a suppressed address
  10948. register ('%za0' through '%za7'). The use of SIZE means one of 'w' or
  10949. 'l', and it may always be omitted along with the leading dot. The use
  10950. of SCALE means one of '1', '2', '4', or '8', and it may always be
  10951. omitted along with the leading asterisk.
  10952. The following additional addressing modes are understood:
  10953. "Address Register Indirect"
  10954. '(%a0)' through '(%a7)'
  10955. '%a7' is also known as '%sp', i.e., the Stack Pointer. '%a6' is
  10956. also known as '%fp', the Frame Pointer.
  10957. "Address Register Postincrement"
  10958. '(%a0)+' through '(%a7)+'
  10959. "Address Register Predecrement"
  10960. '-(%a0)' through '-(%a7)'
  10961. "Indirect Plus Offset"
  10962. 'NUMBER(%A0)' through 'NUMBER(%A7)', or 'NUMBER(%PC)'.
  10963. The NUMBER may also appear within the parentheses, as in
  10964. '(NUMBER,%A0)'. When used with the PC, the NUMBER may be omitted
  10965. (with an address register, omitting the NUMBER produces Address
  10966. Register Indirect mode).
  10967. "Index"
  10968. 'NUMBER(APC,REGISTER.SIZE*SCALE)'
  10969. The NUMBER may be omitted, or it may appear within the parentheses.
  10970. The APC may be omitted. The REGISTER and the APC may appear in
  10971. either order. If both APC and REGISTER are address registers, and
  10972. the SIZE and SCALE are omitted, then the first register is taken as
  10973. the base register, and the second as the index register.
  10974. "Postindex"
  10975. '([NUMBER,APC],REGISTER.SIZE*SCALE,ONUMBER)'
  10976. The ONUMBER, or the REGISTER, or both, may be omitted. Either the
  10977. NUMBER or the APC may be omitted, but not both.
  10978. "Preindex"
  10979. '([NUMBER,APC,REGISTER.SIZE*SCALE],ONUMBER)'
  10980. The NUMBER, or the APC, or the REGISTER, or any two of them, may be
  10981. omitted. The ONUMBER may be omitted. The REGISTER and the APC may
  10982. appear in either order. If both APC and REGISTER are address
  10983. registers, and the SIZE and SCALE are omitted, then the first
  10984. register is taken as the base register, and the second as the index
  10985. register.
  10986. 
  10987. File: as.info, Node: M68K-Float, Next: M68K-Directives, Prev: M68K-Moto-Syntax, Up: M68K-Dependent
  10988. 9.22.4 Floating Point
  10989. ---------------------
  10990. Packed decimal (P) format floating literals are not supported. Feel
  10991. free to add the code!
  10992. The floating point formats generated by directives are these.
  10993. '.float'
  10994. 'Single' precision floating point constants.
  10995. '.double'
  10996. 'Double' precision floating point constants.
  10997. '.extend'
  10998. '.ldouble'
  10999. 'Extended' precision ('long double') floating point constants.
  11000. 
  11001. File: as.info, Node: M68K-Directives, Next: M68K-opcodes, Prev: M68K-Float, Up: M68K-Dependent
  11002. 9.22.5 680x0 Machine Directives
  11003. -------------------------------
  11004. In order to be compatible with the Sun assembler the 680x0 assembler
  11005. understands the following directives.
  11006. '.data1'
  11007. This directive is identical to a '.data 1' directive.
  11008. '.data2'
  11009. This directive is identical to a '.data 2' directive.
  11010. '.even'
  11011. This directive is a special case of the '.align' directive; it
  11012. aligns the output to an even byte boundary.
  11013. '.skip'
  11014. This directive is identical to a '.space' directive.
  11015. '.arch NAME'
  11016. Select the target architecture and extension features. Valid
  11017. values for NAME are the same as for the '-march' command-line
  11018. option. This directive cannot be specified after any instructions
  11019. have been assembled. If it is given multiple times, or in
  11020. conjunction with the '-march' option, all uses must be for the same
  11021. architecture and extension set.
  11022. '.cpu NAME'
  11023. Select the target cpu. Valid values for NAME are the same as for
  11024. the '-mcpu' command-line option. This directive cannot be
  11025. specified after any instructions have been assembled. If it is
  11026. given multiple times, or in conjunction with the '-mopt' option,
  11027. all uses must be for the same cpu.
  11028. 
  11029. File: as.info, Node: M68K-opcodes, Prev: M68K-Directives, Up: M68K-Dependent
  11030. 9.22.6 Opcodes
  11031. --------------
  11032. * Menu:
  11033. * M68K-Branch:: Branch Improvement
  11034. * M68K-Chars:: Special Characters
  11035. 
  11036. File: as.info, Node: M68K-Branch, Next: M68K-Chars, Up: M68K-opcodes
  11037. 9.22.6.1 Branch Improvement
  11038. ...........................
  11039. Certain pseudo opcodes are permitted for branch instructions. They
  11040. expand to the shortest branch instruction that reach the target.
  11041. Generally these mnemonics are made by substituting 'j' for 'b' at the
  11042. start of a Motorola mnemonic.
  11043. The following table summarizes the pseudo-operations. A '*' flags
  11044. cases that are more fully described after the table:
  11045. Displacement
  11046. +------------------------------------------------------------
  11047. | 68020 68000/10, not PC-relative OK
  11048. Pseudo-Op |BYTE WORD LONG ABSOLUTE LONG JUMP **
  11049. +------------------------------------------------------------
  11050. jbsr |bsrs bsrw bsrl jsr
  11051. jra |bras braw bral jmp
  11052. * jXX |bXXs bXXw bXXl bNXs;jmp
  11053. * dbXX | N/A dbXXw dbXX;bras;bral dbXX;bras;jmp
  11054. fjXX | N/A fbXXw fbXXl N/A
  11055. XX: condition
  11056. NX: negative of condition XX
  11057. '*'--see full description below
  11058. '**'--this expansion mode is disallowed by '--pcrel'
  11059. 'jbsr'
  11060. 'jra'
  11061. These are the simplest jump pseudo-operations; they always map to
  11062. one particular machine instruction, depending on the displacement
  11063. to the branch target. This instruction will be a byte or word
  11064. branch is that is sufficient. Otherwise, a long branch will be
  11065. emitted if available. If no long branches are available and the
  11066. '--pcrel' option is not given, an absolute long jump will be
  11067. emitted instead. If no long branches are available, the '--pcrel'
  11068. option is given, and a word branch cannot reach the target, an
  11069. error message is generated.
  11070. In addition to standard branch operands, 'as' allows these
  11071. pseudo-operations to have all operands that are allowed for jsr and
  11072. jmp, substituting these instructions if the operand given is not
  11073. valid for a branch instruction.
  11074. 'jXX'
  11075. Here, 'jXX' stands for an entire family of pseudo-operations, where
  11076. XX is a conditional branch or condition-code test. The full list
  11077. of pseudo-ops in this family is:
  11078. jhi jls jcc jcs jne jeq jvc
  11079. jvs jpl jmi jge jlt jgt jle
  11080. Usually, each of these pseudo-operations expands to a single branch
  11081. instruction. However, if a word branch is not sufficient, no long
  11082. branches are available, and the '--pcrel' option is not given, 'as'
  11083. issues a longer code fragment in terms of NX, the opposite
  11084. condition to XX. For example, under these conditions:
  11085. jXX foo
  11086. gives
  11087. bNXs oof
  11088. jmp foo
  11089. oof:
  11090. 'dbXX'
  11091. The full family of pseudo-operations covered here is
  11092. dbhi dbls dbcc dbcs dbne dbeq dbvc
  11093. dbvs dbpl dbmi dbge dblt dbgt dble
  11094. dbf dbra dbt
  11095. Motorola 'dbXX' instructions allow word displacements only. When a
  11096. word displacement is sufficient, each of these pseudo-operations
  11097. expands to the corresponding Motorola instruction. When a word
  11098. displacement is not sufficient and long branches are available,
  11099. when the source reads 'dbXX foo', 'as' emits
  11100. dbXX oo1
  11101. bras oo2
  11102. oo1:bral foo
  11103. oo2:
  11104. If, however, long branches are not available and the '--pcrel'
  11105. option is not given, 'as' emits
  11106. dbXX oo1
  11107. bras oo2
  11108. oo1:jmp foo
  11109. oo2:
  11110. 'fjXX'
  11111. This family includes
  11112. fjne fjeq fjge fjlt fjgt fjle fjf
  11113. fjt fjgl fjgle fjnge fjngl fjngle fjngt
  11114. fjnle fjnlt fjoge fjogl fjogt fjole fjolt
  11115. fjor fjseq fjsf fjsne fjst fjueq fjuge
  11116. fjugt fjule fjult fjun
  11117. Each of these pseudo-operations always expands to a single Motorola
  11118. coprocessor branch instruction, word or long. All Motorola
  11119. coprocessor branch instructions allow both word and long
  11120. displacements.
  11121. 
  11122. File: as.info, Node: M68K-Chars, Prev: M68K-Branch, Up: M68K-opcodes
  11123. 9.22.6.2 Special Characters
  11124. ...........................
  11125. Line comments are introduced by the '|' character appearing anywhere on
  11126. a line, unless the '--bitwise-or' command-line option has been
  11127. specified.
  11128. An asterisk ('*') as the first character on a line marks the start of
  11129. a line comment as well.
  11130. A hash character ('#') as the first character on a line also marks
  11131. the start of a line comment, but in this case it could also be a logical
  11132. line number directive (*note Comments::) or a preprocessor control
  11133. command (*note Preprocessing::). If the hash character appears
  11134. elsewhere on a line it is used to introduce an immediate value. (This
  11135. is for compatibility with Sun's assembler).
  11136. Multiple statements on the same line can appear if they are separated
  11137. by the ';' character.
  11138. 
  11139. File: as.info, Node: M68HC11-Dependent, Next: S12Z-Dependent, Prev: M68K-Dependent, Up: Machine Dependencies
  11140. 9.23 M68HC11 and M68HC12 Dependent Features
  11141. ===========================================
  11142. * Menu:
  11143. * M68HC11-Opts:: M68HC11 and M68HC12 Options
  11144. * M68HC11-Syntax:: Syntax
  11145. * M68HC11-Modifiers:: Symbolic Operand Modifiers
  11146. * M68HC11-Directives:: Assembler Directives
  11147. * M68HC11-Float:: Floating Point
  11148. * M68HC11-opcodes:: Opcodes
  11149. 
  11150. File: as.info, Node: M68HC11-Opts, Next: M68HC11-Syntax, Up: M68HC11-Dependent
  11151. 9.23.1 M68HC11 and M68HC12 Options
  11152. ----------------------------------
  11153. The Motorola 68HC11 and 68HC12 version of 'as' have a few machine
  11154. dependent options.
  11155. '-m68hc11'
  11156. This option switches the assembler into the M68HC11 mode. In this
  11157. mode, the assembler only accepts 68HC11 operands and mnemonics. It
  11158. produces code for the 68HC11.
  11159. '-m68hc12'
  11160. This option switches the assembler into the M68HC12 mode. In this
  11161. mode, the assembler also accepts 68HC12 operands and mnemonics. It
  11162. produces code for the 68HC12. A few 68HC11 instructions are
  11163. replaced by some 68HC12 instructions as recommended by Motorola
  11164. specifications.
  11165. '-m68hcs12'
  11166. This option switches the assembler into the M68HCS12 mode. This
  11167. mode is similar to '-m68hc12' but specifies to assemble for the
  11168. 68HCS12 series. The only difference is on the assembling of the
  11169. 'movb' and 'movw' instruction when a PC-relative operand is used.
  11170. '-mm9s12x'
  11171. This option switches the assembler into the M9S12X mode. This mode
  11172. is similar to '-m68hc12' but specifies to assemble for the S12X
  11173. series which is a superset of the HCS12.
  11174. '-mm9s12xg'
  11175. This option switches the assembler into the XGATE mode for the RISC
  11176. co-processor featured on some S12X-family chips.
  11177. '--xgate-ramoffset'
  11178. This option instructs the linker to offset RAM addresses from S12X
  11179. address space into XGATE address space.
  11180. '-mshort'
  11181. This option controls the ABI and indicates to use a 16-bit integer
  11182. ABI. It has no effect on the assembled instructions. This is the
  11183. default.
  11184. '-mlong'
  11185. This option controls the ABI and indicates to use a 32-bit integer
  11186. ABI.
  11187. '-mshort-double'
  11188. This option controls the ABI and indicates to use a 32-bit float
  11189. ABI. This is the default.
  11190. '-mlong-double'
  11191. This option controls the ABI and indicates to use a 64-bit float
  11192. ABI.
  11193. '--strict-direct-mode'
  11194. You can use the '--strict-direct-mode' option to disable the
  11195. automatic translation of direct page mode addressing into extended
  11196. mode when the instruction does not support direct mode. For
  11197. example, the 'clr' instruction does not support direct page mode
  11198. addressing. When it is used with the direct page mode, 'as' will
  11199. ignore it and generate an absolute addressing. This option
  11200. prevents 'as' from doing this, and the wrong usage of the direct
  11201. page mode will raise an error.
  11202. '--short-branches'
  11203. The '--short-branches' option turns off the translation of relative
  11204. branches into absolute branches when the branch offset is out of
  11205. range. By default 'as' transforms the relative branch ('bsr',
  11206. 'bgt', 'bge', 'beq', 'bne', 'ble', 'blt', 'bhi', 'bcc', 'bls',
  11207. 'bcs', 'bmi', 'bvs', 'bvs', 'bra') into an absolute branch when the
  11208. offset is out of the -128 .. 127 range. In that case, the 'bsr'
  11209. instruction is translated into a 'jsr', the 'bra' instruction is
  11210. translated into a 'jmp' and the conditional branches instructions
  11211. are inverted and followed by a 'jmp'. This option disables these
  11212. translations and 'as' will generate an error if a relative branch
  11213. is out of range. This option does not affect the optimization
  11214. associated to the 'jbra', 'jbsr' and 'jbXX' pseudo opcodes.
  11215. '--force-long-branches'
  11216. The '--force-long-branches' option forces the translation of
  11217. relative branches into absolute branches. This option does not
  11218. affect the optimization associated to the 'jbra', 'jbsr' and 'jbXX'
  11219. pseudo opcodes.
  11220. '--print-insn-syntax'
  11221. You can use the '--print-insn-syntax' option to obtain the syntax
  11222. description of the instruction when an error is detected.
  11223. '--print-opcodes'
  11224. The '--print-opcodes' option prints the list of all the
  11225. instructions with their syntax. The first item of each line
  11226. represents the instruction name and the rest of the line indicates
  11227. the possible operands for that instruction. The list is printed in
  11228. alphabetical order. Once the list is printed 'as' exits.
  11229. '--generate-example'
  11230. The '--generate-example' option is similar to '--print-opcodes' but
  11231. it generates an example for each instruction instead.
  11232. 
  11233. File: as.info, Node: M68HC11-Syntax, Next: M68HC11-Modifiers, Prev: M68HC11-Opts, Up: M68HC11-Dependent
  11234. 9.23.2 Syntax
  11235. -------------
  11236. In the M68HC11 syntax, the instruction name comes first and it may be
  11237. followed by one or several operands (up to three). Operands are
  11238. separated by comma (','). In the normal mode, 'as' will complain if too
  11239. many operands are specified for a given instruction. In the MRI mode
  11240. (turned on with '-M' option), it will treat them as comments. Example:
  11241. inx
  11242. lda #23
  11243. bset 2,x #4
  11244. brclr *bot #8 foo
  11245. The presence of a ';' character or a '!' character anywhere on a line
  11246. indicates the start of a comment that extends to the end of that line.
  11247. A '*' or a '#' character at the start of a line also introduces a
  11248. line comment, but these characters do not work elsewhere on the line.
  11249. If the first character of the line is a '#' then as well as starting a
  11250. comment, the line could also be logical line number directive (*note
  11251. Comments::) or a preprocessor control command (*note Preprocessing::).
  11252. The M68HC11 assembler does not currently support a line separator
  11253. character.
  11254. The following addressing modes are understood for 68HC11 and 68HC12:
  11255. "Immediate"
  11256. '#NUMBER'
  11257. "Address Register"
  11258. 'NUMBER,X', 'NUMBER,Y'
  11259. The NUMBER may be omitted in which case 0 is assumed.
  11260. "Direct Addressing mode"
  11261. '*SYMBOL', or '*DIGITS'
  11262. "Absolute"
  11263. 'SYMBOL', or 'DIGITS'
  11264. The M68HC12 has other more complex addressing modes. All of them are
  11265. supported and they are represented below:
  11266. "Constant Offset Indexed Addressing Mode"
  11267. 'NUMBER,REG'
  11268. The NUMBER may be omitted in which case 0 is assumed. The register
  11269. can be either 'X', 'Y', 'SP' or 'PC'. The assembler will use the
  11270. smaller post-byte definition according to the constant value (5-bit
  11271. constant offset, 9-bit constant offset or 16-bit constant offset).
  11272. If the constant is not known by the assembler it will use the
  11273. 16-bit constant offset post-byte and the value will be resolved at
  11274. link time.
  11275. "Offset Indexed Indirect"
  11276. '[NUMBER,REG]'
  11277. The register can be either 'X', 'Y', 'SP' or 'PC'.
  11278. "Auto Pre-Increment/Pre-Decrement/Post-Increment/Post-Decrement"
  11279. 'NUMBER,-REG' 'NUMBER,+REG' 'NUMBER,REG-' 'NUMBER,REG+'
  11280. The number must be in the range '-8'..'+8' and must not be 0. The
  11281. register can be either 'X', 'Y', 'SP' or 'PC'.
  11282. "Accumulator Offset"
  11283. 'ACC,REG'
  11284. The accumulator register can be either 'A', 'B' or 'D'. The
  11285. register can be either 'X', 'Y', 'SP' or 'PC'.
  11286. "Accumulator D offset indexed-indirect"
  11287. '[D,REG]'
  11288. The register can be either 'X', 'Y', 'SP' or 'PC'.
  11289. For example:
  11290. ldab 1024,sp
  11291. ldd [10,x]
  11292. orab 3,+x
  11293. stab -2,y-
  11294. ldx a,pc
  11295. sty [d,sp]
  11296. 
  11297. File: as.info, Node: M68HC11-Modifiers, Next: M68HC11-Directives, Prev: M68HC11-Syntax, Up: M68HC11-Dependent
  11298. 9.23.3 Symbolic Operand Modifiers
  11299. ---------------------------------
  11300. The assembler supports several modifiers when using symbol addresses in
  11301. 68HC11 and 68HC12 instruction operands. The general syntax is the
  11302. following:
  11303. %modifier(symbol)
  11304. '%addr'
  11305. This modifier indicates to the assembler and linker to use the
  11306. 16-bit physical address corresponding to the symbol. This is
  11307. intended to be used on memory window systems to map a symbol in the
  11308. memory bank window. If the symbol is in a memory expansion part,
  11309. the physical address corresponds to the symbol address within the
  11310. memory bank window. If the symbol is not in a memory expansion
  11311. part, this is the symbol address (using or not using the %addr
  11312. modifier has no effect in that case).
  11313. '%page'
  11314. This modifier indicates to use the memory page number corresponding
  11315. to the symbol. If the symbol is in a memory expansion part, its
  11316. page number is computed by the linker as a number used to map the
  11317. page containing the symbol in the memory bank window. If the
  11318. symbol is not in a memory expansion part, the page number is 0.
  11319. '%hi'
  11320. This modifier indicates to use the 8-bit high part of the physical
  11321. address of the symbol.
  11322. '%lo'
  11323. This modifier indicates to use the 8-bit low part of the physical
  11324. address of the symbol.
  11325. For example a 68HC12 call to a function 'foo_example' stored in
  11326. memory expansion part could be written as follows:
  11327. call %addr(foo_example),%page(foo_example)
  11328. and this is equivalent to
  11329. call foo_example
  11330. And for 68HC11 it could be written as follows:
  11331. ldab #%page(foo_example)
  11332. stab _page_switch
  11333. jsr %addr(foo_example)
  11334. 
  11335. File: as.info, Node: M68HC11-Directives, Next: M68HC11-Float, Prev: M68HC11-Modifiers, Up: M68HC11-Dependent
  11336. 9.23.4 Assembler Directives
  11337. ---------------------------
  11338. The 68HC11 and 68HC12 version of 'as' have the following specific
  11339. assembler directives:
  11340. '.relax'
  11341. The relax directive is used by the 'GNU Compiler' to emit a
  11342. specific relocation to mark a group of instructions for linker
  11343. relaxation. The sequence of instructions within the group must be
  11344. known to the linker so that relaxation can be performed.
  11345. '.mode [mshort|mlong|mshort-double|mlong-double]'
  11346. This directive specifies the ABI. It overrides the '-mshort',
  11347. '-mlong', '-mshort-double' and '-mlong-double' options.
  11348. '.far SYMBOL'
  11349. This directive marks the symbol as a 'far' symbol meaning that it
  11350. uses a 'call/rtc' calling convention as opposed to 'jsr/rts'.
  11351. During a final link, the linker will identify references to the
  11352. 'far' symbol and will verify the proper calling convention.
  11353. '.interrupt SYMBOL'
  11354. This directive marks the symbol as an interrupt entry point. This
  11355. information is then used by the debugger to correctly unwind the
  11356. frame across interrupts.
  11357. '.xrefb SYMBOL'
  11358. This directive is defined for compatibility with the 'Specification
  11359. for Motorola 8 and 16-Bit Assembly Language Input Standard' and is
  11360. ignored.
  11361. 
  11362. File: as.info, Node: M68HC11-Float, Next: M68HC11-opcodes, Prev: M68HC11-Directives, Up: M68HC11-Dependent
  11363. 9.23.5 Floating Point
  11364. ---------------------
  11365. Packed decimal (P) format floating literals are not supported. Feel
  11366. free to add the code!
  11367. The floating point formats generated by directives are these.
  11368. '.float'
  11369. 'Single' precision floating point constants.
  11370. '.double'
  11371. 'Double' precision floating point constants.
  11372. '.extend'
  11373. '.ldouble'
  11374. 'Extended' precision ('long double') floating point constants.
  11375. 
  11376. File: as.info, Node: M68HC11-opcodes, Prev: M68HC11-Float, Up: M68HC11-Dependent
  11377. 9.23.6 Opcodes
  11378. --------------
  11379. * Menu:
  11380. * M68HC11-Branch:: Branch Improvement
  11381. 
  11382. File: as.info, Node: M68HC11-Branch, Up: M68HC11-opcodes
  11383. 9.23.6.1 Branch Improvement
  11384. ...........................
  11385. Certain pseudo opcodes are permitted for branch instructions. They
  11386. expand to the shortest branch instruction that reach the target.
  11387. Generally these mnemonics are made by prepending 'j' to the start of
  11388. Motorola mnemonic. These pseudo opcodes are not affected by the
  11389. '--short-branches' or '--force-long-branches' options.
  11390. The following table summarizes the pseudo-operations.
  11391. Displacement Width
  11392. +-------------------------------------------------------------+
  11393. | Options |
  11394. | --short-branches --force-long-branches |
  11395. +--------------------------+----------------------------------+
  11396. Op |BYTE WORD | BYTE WORD |
  11397. +--------------------------+----------------------------------+
  11398. bsr | bsr <pc-rel> <error> | jsr <abs> |
  11399. bra | bra <pc-rel> <error> | jmp <abs> |
  11400. jbsr | bsr <pc-rel> jsr <abs> | bsr <pc-rel> jsr <abs> |
  11401. jbra | bra <pc-rel> jmp <abs> | bra <pc-rel> jmp <abs> |
  11402. bXX | bXX <pc-rel> <error> | bNX +3; jmp <abs> |
  11403. jbXX | bXX <pc-rel> bNX +3; | bXX <pc-rel> bNX +3; jmp <abs> |
  11404. | jmp <abs> | |
  11405. +--------------------------+----------------------------------+
  11406. XX: condition
  11407. NX: negative of condition XX
  11408. 'jbsr'
  11409. 'jbra'
  11410. These are the simplest jump pseudo-operations; they always map to
  11411. one particular machine instruction, depending on the displacement
  11412. to the branch target.
  11413. 'jbXX'
  11414. Here, 'jbXX' stands for an entire family of pseudo-operations,
  11415. where XX is a conditional branch or condition-code test. The full
  11416. list of pseudo-ops in this family is:
  11417. jbcc jbeq jbge jbgt jbhi jbvs jbpl jblo
  11418. jbcs jbne jblt jble jbls jbvc jbmi
  11419. For the cases of non-PC relative displacements and long
  11420. displacements, 'as' issues a longer code fragment in terms of NX,
  11421. the opposite condition to XX. For example, for the non-PC relative
  11422. case:
  11423. jbXX foo
  11424. gives
  11425. bNXs oof
  11426. jmp foo
  11427. oof:
  11428. 
  11429. File: as.info, Node: S12Z-Dependent, Next: Meta-Dependent, Prev: M68HC11-Dependent, Up: Machine Dependencies
  11430. 9.24 S12Z Dependent Features
  11431. ============================
  11432. The Freescale S12Z version of 'as' has a few machine dependent features.
  11433. * Menu:
  11434. * S12Z Options:: S12Z Options
  11435. * S12Z Syntax:: Syntax
  11436. 
  11437. File: as.info, Node: S12Z Options, Next: S12Z Syntax, Up: S12Z-Dependent
  11438. 9.24.1 S12Z Options
  11439. -------------------
  11440. The S12Z version of 'as' recognizes the following options:
  11441. '-mreg-prefix=PREFIX'
  11442. You can use the '-mreg-prefix=PFX' option to indicate that the
  11443. assembler should expect all register names to be prefixed with the
  11444. string PFX.
  11445. For an explanation of what this means and why it might be needed,
  11446. see *note S12Z Register Notation::.
  11447. '-mdollar-hex'
  11448. The '-mdollar-hex' option affects the way that literal hexadecimal
  11449. constants are represented. When this option is specified, the
  11450. assembler will consider the '$' character as the start of a
  11451. hexadecimal integer constant. Without this option, the standard
  11452. value of '0x' is expected.
  11453. If you use this option, then you cannot have symbol names starting
  11454. with '$'. '-mdollar-hex' is implied if the '--traditional-format'
  11455. (*note traditional-format::) is used.
  11456. 
  11457. File: as.info, Node: S12Z Syntax, Prev: S12Z Options, Up: S12Z-Dependent
  11458. 9.24.2 Syntax
  11459. -------------
  11460. * Menu:
  11461. * S12Z Syntax Overview:: General description
  11462. * S12Z Addressing Modes:: Operands and their semantics
  11463. * S12Z Register Notation:: How to refer to registers
  11464. 
  11465. File: as.info, Node: S12Z Syntax Overview, Next: S12Z Addressing Modes, Up: S12Z Syntax
  11466. 9.24.2.1 Overview
  11467. .................
  11468. In the S12Z syntax, the instruction name comes first and it may be
  11469. followed by one, or by several operands. In most cases the maximum
  11470. number of operands is three. Operands are separated by a comma (',').
  11471. A comma however does not act as a separator if it appears within
  11472. parentheses ('()') or within square brackets ('[]'). 'as' will complain
  11473. if too many, too few or inappropriate operands are specified for a given
  11474. instruction.
  11475. Some instructions accept and (in certain situations require) a suffix
  11476. indicating the size of the operand. The suffix is separated from the
  11477. instruction name by a period ('.') and may be one of 'b', 'w', 'p' or
  11478. 'l' indicating 'byte' (a single byte), 'word' (2 bytes), 'pointer' (3
  11479. bytes) or 'long' (4 bytes) respectively.
  11480. Example:
  11481. bset.b 0xA98, #5
  11482. mov.b #6, 0x2409
  11483. ld d0, #4
  11484. mov.l (d0, x), 0x2409
  11485. inc d0
  11486. cmp d0, #12
  11487. blt *-4
  11488. lea x, 0x2409
  11489. st y, (1, x)
  11490. The presence of a ';' character anywhere on a line indicates the
  11491. start of a comment that extends to the end of that line.
  11492. A '*' or a '#' character at the start of a line also introduces a
  11493. line comment, but these characters do not work elsewhere on the line.
  11494. If the first character of the line is a '#' then as well as starting a
  11495. comment, the line could also be logical line number directive (*note
  11496. Comments::) or a preprocessor control command (*note Preprocessing::).
  11497. The S12Z assembler does not currently support a line separator
  11498. character.
  11499. 
  11500. File: as.info, Node: S12Z Addressing Modes, Next: S12Z Register Notation, Prev: S12Z Syntax Overview, Up: S12Z Syntax
  11501. 9.24.2.2 Addressing Modes
  11502. .........................
  11503. The following addressing modes are understood for the S12Z.
  11504. "Immediate"
  11505. '#NUMBER'
  11506. "Immediate Bit Field"
  11507. '#WIDTH:OFFSET'
  11508. Bit field instructions in the immediate mode require the width and
  11509. offset to be specified. The WIDTH parameter specifies the number
  11510. of bits in the field. It should be a number in the range [1,32].
  11511. OFFSET determines the position within the field where the operation
  11512. should start. It should be a number in the range [0,31].
  11513. "Relative"
  11514. '*SYMBOL', or '*[+-]DIGITS'
  11515. Program counter relative addresses have a width of 15 bits. Thus,
  11516. they must be within the range [-32768, 32767].
  11517. "Register"
  11518. 'REG'
  11519. Some instructions accept a register as an operand. In general, REG
  11520. may be a data register ('D0', 'D1' ... 'D7'), the 'X' register or
  11521. the 'Y' register.
  11522. A few instructions accept as an argument the stack pointer register
  11523. ('S'), and/or the program counter ('P').
  11524. Some very special instructions accept arguments which refer to the
  11525. condition code register. For these arguments the syntax is 'CCR',
  11526. 'CCH' or 'CCL' which refer to the complete condition code register,
  11527. the condition code register high byte and the condition code
  11528. register low byte respectively.
  11529. "Absolute Direct"
  11530. 'SYMBOL', or 'DIGITS'
  11531. "Absolute Indirect"
  11532. '[SYMBOL', or 'DIGITS]'
  11533. "Constant Offset Indexed"
  11534. '(NUMBER,REG)'
  11535. REG may be either 'X', 'Y', 'S' or 'P' or one of the data registers
  11536. 'D0', 'D1' ... 'D7'. If any of the registers 'D2' ... 'D5' are
  11537. specified, then the register value is treated as a signed value.
  11538. Otherwise it is treated as unsigned. NUMBER may be any integer in
  11539. the range [-8388608,8388607].
  11540. "Offset Indexed Indirect"
  11541. '[NUMBER,REG]'
  11542. REG may be either 'X', 'Y', 'S' or 'P'. NUMBER may be any integer
  11543. in the range [-8388608,8388607].
  11544. "Auto Pre-Increment/Pre-Decrement/Post-Increment/Post-Decrement"
  11545. '-REG', '+REG', 'REG-' or 'REG+'
  11546. This addressing mode is typically used to access a value at an
  11547. address, and simultaneously to increment/decrement the register
  11548. pointing to that address. Thus REG may be any of the 24 bit
  11549. registers 'X', 'Y', or 'S'. Pre-increment and post-decrement are
  11550. not available for register 'S' (only post-increment and
  11551. pre-decrement are available).
  11552. "Register Offset Direct"
  11553. '(DATA-REG,REG)'
  11554. REG can be either 'X', 'Y', or 'S'. DATA-REG must be one of the
  11555. data registers 'D0', 'D1' ... 'D7'. If any of the registers 'D2'
  11556. ... 'D5' are specified, then the register value is treated as a
  11557. signed value. Otherwise it is treated as unsigned.
  11558. "Register Offset Indirect"
  11559. '[DATA-REG,REG]'
  11560. REG can be either 'X' or 'Y'. DATA-REG must be one of the data
  11561. registers 'D0', 'D1' ... 'D7'. If any of the registers 'D2' ...
  11562. 'D5' are specified, then the register value is treated as a signed
  11563. value. Otherwise it is treated as unsigned.
  11564. For example:
  11565. trap #197 ;; Immediate mode
  11566. bra *+49 ;; Relative mode
  11567. bra .L0 ;; ditto
  11568. jmp 0xFE0034 ;; Absolute direct mode
  11569. jmp [0xFD0012] ;; Absolute indirect mode
  11570. inc.b (4,x) ;; Constant offset indexed mode
  11571. jsr (45, d0) ;; ditto
  11572. dec.w [4,y] ;; Constant offset indexed indirect mode
  11573. clr.p (-s) ;; Pre-decrement mode
  11574. neg.l (d0, s) ;; Register offset direct mode
  11575. com.b [d1, x] ;; Register offset indirect mode
  11576. psh cch ;; Register mode
  11577. 
  11578. File: as.info, Node: S12Z Register Notation, Prev: S12Z Addressing Modes, Up: S12Z Syntax
  11579. 9.24.2.3 Register Notation
  11580. ..........................
  11581. Without a register prefix (*note S12Z Options::), S12Z assembler code is
  11582. expected in the traditional format like this:
  11583. lea s, (-2,s)
  11584. st d2, (0,s)
  11585. ld x, symbol
  11586. tfr d2, d6
  11587. cmp d6, #1532
  11588. However, if 'as' is started with (for example) '-mreg-prefix=%' then all
  11589. register names must be prefixed with '%' as follows:
  11590. lea %s, (-2,%s)
  11591. st %d2, (0,%s)
  11592. ld %x, symbol
  11593. tfr %d2, %d6
  11594. cmp %d6, #1532
  11595. The register prefix feature is intended to be used by compilers to
  11596. avoid ambiguity between symbols and register names. Consider the
  11597. following assembler instruction:
  11598. st d0, d1
  11599. The destination operand of this instruction could either refer to the
  11600. register 'D1', or it could refer to the symbol named "d1". If the
  11601. latter is intended then 'as' must be invoked with '-mreg-prefix=PFX' and
  11602. the code written as
  11603. st PFXd0, d1
  11604. where PFX is the chosen register prefix. For this reason, compiler
  11605. back-ends should choose a register prefix which cannot be confused with
  11606. a symbol name.
  11607. 
  11608. File: as.info, Node: Meta-Dependent, Next: MicroBlaze-Dependent, Prev: S12Z-Dependent, Up: Machine Dependencies
  11609. 9.25 Meta Dependent Features
  11610. ============================
  11611. * Menu:
  11612. * Meta Options:: Options
  11613. * Meta Syntax:: Meta Assembler Syntax
  11614. 
  11615. File: as.info, Node: Meta Options, Next: Meta Syntax, Up: Meta-Dependent
  11616. 9.25.1 Options
  11617. --------------
  11618. The Imagination Technologies Meta architecture is implemented in a
  11619. number of versions, with each new version adding new features such as
  11620. instructions and registers. For precise details of what instructions
  11621. each core supports, please see the chip's technical reference manual.
  11622. The following table lists all available Meta options.
  11623. '-mcpu=metac11'
  11624. Generate code for Meta 1.1.
  11625. '-mcpu=metac12'
  11626. Generate code for Meta 1.2.
  11627. '-mcpu=metac21'
  11628. Generate code for Meta 2.1.
  11629. '-mfpu=metac21'
  11630. Allow code to use FPU hardware of Meta 2.1.
  11631. 
  11632. File: as.info, Node: Meta Syntax, Prev: Meta Options, Up: Meta-Dependent
  11633. 9.25.2 Syntax
  11634. -------------
  11635. * Menu:
  11636. * Meta-Chars:: Special Characters
  11637. * Meta-Regs:: Register Names
  11638. 
  11639. File: as.info, Node: Meta-Chars, Next: Meta-Regs, Up: Meta Syntax
  11640. 9.25.2.1 Special Characters
  11641. ...........................
  11642. '!' is the line comment character.
  11643. You can use ';' instead of a newline to separate statements.
  11644. Since '$' has no special meaning, you may use it in symbol names.
  11645. 
  11646. File: as.info, Node: Meta-Regs, Prev: Meta-Chars, Up: Meta Syntax
  11647. 9.25.2.2 Register Names
  11648. .......................
  11649. Registers can be specified either using their mnemonic names, such as
  11650. 'D0Re0', or using the unit plus register number separated by a '.', such
  11651. as 'D0.0'.
  11652. 
  11653. File: as.info, Node: MicroBlaze-Dependent, Next: MIPS-Dependent, Prev: Meta-Dependent, Up: Machine Dependencies
  11654. 9.26 MicroBlaze Dependent Features
  11655. ==================================
  11656. The Xilinx MicroBlaze processor family includes several variants, all
  11657. using the same core instruction set. This chapter covers features of
  11658. the GNU assembler that are specific to the MicroBlaze architecture. For
  11659. details about the MicroBlaze instruction set, please see the 'MicroBlaze
  11660. Processor Reference Guide (UG081)' available at www.xilinx.com.
  11661. * Menu:
  11662. * MicroBlaze Directives:: Directives for MicroBlaze Processors.
  11663. * MicroBlaze Syntax:: Syntax for the MicroBlaze
  11664. 
  11665. File: as.info, Node: MicroBlaze Directives, Next: MicroBlaze Syntax, Up: MicroBlaze-Dependent
  11666. 9.26.1 Directives
  11667. -----------------
  11668. A number of assembler directives are available for MicroBlaze.
  11669. '.data8 EXPRESSION,...'
  11670. This directive is an alias for '.byte'. Each expression is
  11671. assembled into an eight-bit value.
  11672. '.data16 EXPRESSION,...'
  11673. This directive is an alias for '.hword'. Each expression is
  11674. assembled into an 16-bit value.
  11675. '.data32 EXPRESSION,...'
  11676. This directive is an alias for '.word'. Each expression is
  11677. assembled into an 32-bit value.
  11678. '.ent NAME[,LABEL]'
  11679. This directive is an alias for '.func' denoting the start of
  11680. function NAME at (optional) LABEL.
  11681. '.end NAME[,LABEL]'
  11682. This directive is an alias for '.endfunc' denoting the end of
  11683. function NAME.
  11684. '.gpword LABEL,...'
  11685. This directive is an alias for '.rva'. The resolved address of
  11686. LABEL is stored in the data section.
  11687. '.weakext LABEL'
  11688. Declare that LABEL is a weak external symbol.
  11689. '.rodata'
  11690. Switch to .rodata section. Equivalent to '.section .rodata'
  11691. '.sdata2'
  11692. Switch to .sdata2 section. Equivalent to '.section .sdata2'
  11693. '.sdata'
  11694. Switch to .sdata section. Equivalent to '.section .sdata'
  11695. '.bss'
  11696. Switch to .bss section. Equivalent to '.section .bss'
  11697. '.sbss'
  11698. Switch to .sbss section. Equivalent to '.section .sbss'
  11699. 
  11700. File: as.info, Node: MicroBlaze Syntax, Prev: MicroBlaze Directives, Up: MicroBlaze-Dependent
  11701. 9.26.2 Syntax for the MicroBlaze
  11702. --------------------------------
  11703. * Menu:
  11704. * MicroBlaze-Chars:: Special Characters
  11705. 
  11706. File: as.info, Node: MicroBlaze-Chars, Up: MicroBlaze Syntax
  11707. 9.26.2.1 Special Characters
  11708. ...........................
  11709. The presence of a '#' on a line indicates the start of a comment that
  11710. extends to the end of the current line.
  11711. If a '#' appears as the first character of a line, the whole line is
  11712. treated as a comment, but in this case the line can also be a logical
  11713. line number directive (*note Comments::) or a preprocessor control
  11714. command (*note Preprocessing::).
  11715. The ';' character can be used to separate statements on the same
  11716. line.
  11717. 
  11718. File: as.info, Node: MIPS-Dependent, Next: MMIX-Dependent, Prev: MicroBlaze-Dependent, Up: Machine Dependencies
  11719. 9.27 MIPS Dependent Features
  11720. ============================
  11721. GNU 'as' for MIPS architectures supports several different MIPS
  11722. processors, and MIPS ISA levels I through V, MIPS32, and MIPS64. For
  11723. information about the MIPS instruction set, see 'MIPS RISC
  11724. Architecture', by Kane and Heindrich (Prentice-Hall). For an overview
  11725. of MIPS assembly conventions, see "Appendix D: Assembly Language
  11726. Programming" in the same work.
  11727. * Menu:
  11728. * MIPS Options:: Assembler options
  11729. * MIPS Macros:: High-level assembly macros
  11730. * MIPS Symbol Sizes:: Directives to override the size of symbols
  11731. * MIPS Small Data:: Controlling the use of small data accesses
  11732. * MIPS ISA:: Directives to override the ISA level
  11733. * MIPS assembly options:: Directives to control code generation
  11734. * MIPS autoextend:: Directives for extending MIPS 16 bit instructions
  11735. * MIPS insn:: Directive to mark data as an instruction
  11736. * MIPS FP ABIs:: Marking which FP ABI is in use
  11737. * MIPS NaN Encodings:: Directives to record which NaN encoding is being used
  11738. * MIPS Option Stack:: Directives to save and restore options
  11739. * MIPS ASE Instruction Generation Overrides:: Directives to control
  11740. generation of MIPS ASE instructions
  11741. * MIPS Floating-Point:: Directives to override floating-point options
  11742. * MIPS Syntax:: MIPS specific syntactical considerations
  11743. 
  11744. File: as.info, Node: MIPS Options, Next: MIPS Macros, Up: MIPS-Dependent
  11745. 9.27.1 Assembler options
  11746. ------------------------
  11747. The MIPS configurations of GNU 'as' support these special options:
  11748. '-G NUM'
  11749. Set the "small data" limit to N bytes. The default limit is 8
  11750. bytes. *Note Controlling the use of small data accesses: MIPS
  11751. Small Data.
  11752. '-EB'
  11753. '-EL'
  11754. Any MIPS configuration of 'as' can select big-endian or
  11755. little-endian output at run time (unlike the other GNU development
  11756. tools, which must be configured for one or the other). Use '-EB'
  11757. to select big-endian output, and '-EL' for little-endian.
  11758. '-KPIC'
  11759. Generate SVR4-style PIC. This option tells the assembler to
  11760. generate SVR4-style position-independent macro expansions. It also
  11761. tells the assembler to mark the output file as PIC.
  11762. '-mvxworks-pic'
  11763. Generate VxWorks PIC. This option tells the assembler to generate
  11764. VxWorks-style position-independent macro expansions.
  11765. '-mips1'
  11766. '-mips2'
  11767. '-mips3'
  11768. '-mips4'
  11769. '-mips5'
  11770. '-mips32'
  11771. '-mips32r2'
  11772. '-mips32r3'
  11773. '-mips32r5'
  11774. '-mips32r6'
  11775. '-mips64'
  11776. '-mips64r2'
  11777. '-mips64r3'
  11778. '-mips64r5'
  11779. '-mips64r6'
  11780. Generate code for a particular MIPS Instruction Set Architecture
  11781. level. '-mips1' corresponds to the R2000 and R3000 processors,
  11782. '-mips2' to the R6000 processor, '-mips3' to the R4000 processor,
  11783. and '-mips4' to the R8000 and R10000 processors. '-mips5',
  11784. '-mips32', '-mips32r2', '-mips32r3', '-mips32r5', '-mips32r6',
  11785. '-mips64', '-mips64r2', '-mips64r3', '-mips64r5', and '-mips64r6'
  11786. correspond to generic MIPS V, MIPS32, MIPS32 Release 2, MIPS32
  11787. Release 3, MIPS32 Release 5, MIPS32 Release 6, MIPS64, and MIPS64
  11788. Release 2, MIPS64 Release 3, MIPS64 Release 5, and MIPS64 Release 6
  11789. ISA processors, respectively. You can also switch instruction sets
  11790. during the assembly; see *note Directives to override the ISA
  11791. level: MIPS ISA.
  11792. '-mgp32'
  11793. '-mfp32'
  11794. Some macros have different expansions for 32-bit and 64-bit
  11795. registers. The register sizes are normally inferred from the ISA
  11796. and ABI, but these flags force a certain group of registers to be
  11797. treated as 32 bits wide at all times. '-mgp32' controls the size
  11798. of general-purpose registers and '-mfp32' controls the size of
  11799. floating-point registers.
  11800. The '.set gp=32' and '.set fp=32' directives allow the size of
  11801. registers to be changed for parts of an object. The default value
  11802. is restored by '.set gp=default' and '.set fp=default'.
  11803. On some MIPS variants there is a 32-bit mode flag; when this flag
  11804. is set, 64-bit instructions generate a trap. Also, some 32-bit
  11805. OSes only save the 32-bit registers on a context switch, so it is
  11806. essential never to use the 64-bit registers.
  11807. '-mgp64'
  11808. '-mfp64'
  11809. Assume that 64-bit registers are available. This is provided in
  11810. the interests of symmetry with '-mgp32' and '-mfp32'.
  11811. The '.set gp=64' and '.set fp=64' directives allow the size of
  11812. registers to be changed for parts of an object. The default value
  11813. is restored by '.set gp=default' and '.set fp=default'.
  11814. '-mfpxx'
  11815. Make no assumptions about whether 32-bit or 64-bit floating-point
  11816. registers are available. This is provided to support having
  11817. modules compatible with either '-mfp32' or '-mfp64'. This option
  11818. can only be used with MIPS II and above.
  11819. The '.set fp=xx' directive allows a part of an object to be marked
  11820. as not making assumptions about 32-bit or 64-bit FP registers. The
  11821. default value is restored by '.set fp=default'.
  11822. '-modd-spreg'
  11823. '-mno-odd-spreg'
  11824. Enable use of floating-point operations on odd-numbered
  11825. single-precision registers when supported by the ISA. '-mfpxx'
  11826. implies '-mno-odd-spreg', otherwise the default is '-modd-spreg'
  11827. '-mips16'
  11828. '-no-mips16'
  11829. Generate code for the MIPS 16 processor. This is equivalent to
  11830. putting '.module mips16' at the start of the assembly file.
  11831. '-no-mips16' turns off this option.
  11832. '-mmips16e2'
  11833. '-mno-mips16e2'
  11834. Enable the use of MIPS16e2 instructions in MIPS16 mode. This is
  11835. equivalent to putting '.module mips16e2' at the start of the
  11836. assembly file. '-mno-mips16e2' turns off this option.
  11837. '-mmicromips'
  11838. '-mno-micromips'
  11839. Generate code for the microMIPS processor. This is equivalent to
  11840. putting '.module micromips' at the start of the assembly file.
  11841. '-mno-micromips' turns off this option. This is equivalent to
  11842. putting '.module nomicromips' at the start of the assembly file.
  11843. '-msmartmips'
  11844. '-mno-smartmips'
  11845. Enables the SmartMIPS extensions to the MIPS32 instruction set,
  11846. which provides a number of new instructions which target smartcard
  11847. and cryptographic applications. This is equivalent to putting
  11848. '.module smartmips' at the start of the assembly file.
  11849. '-mno-smartmips' turns off this option.
  11850. '-mips3d'
  11851. '-no-mips3d'
  11852. Generate code for the MIPS-3D Application Specific Extension. This
  11853. tells the assembler to accept MIPS-3D instructions. '-no-mips3d'
  11854. turns off this option.
  11855. '-mdmx'
  11856. '-no-mdmx'
  11857. Generate code for the MDMX Application Specific Extension. This
  11858. tells the assembler to accept MDMX instructions. '-no-mdmx' turns
  11859. off this option.
  11860. '-mdsp'
  11861. '-mno-dsp'
  11862. Generate code for the DSP Release 1 Application Specific Extension.
  11863. This tells the assembler to accept DSP Release 1 instructions.
  11864. '-mno-dsp' turns off this option.
  11865. '-mdspr2'
  11866. '-mno-dspr2'
  11867. Generate code for the DSP Release 2 Application Specific Extension.
  11868. This option implies '-mdsp'. This tells the assembler to accept
  11869. DSP Release 2 instructions. '-mno-dspr2' turns off this option.
  11870. '-mdspr3'
  11871. '-mno-dspr3'
  11872. Generate code for the DSP Release 3 Application Specific Extension.
  11873. This option implies '-mdsp' and '-mdspr2'. This tells the
  11874. assembler to accept DSP Release 3 instructions. '-mno-dspr3' turns
  11875. off this option.
  11876. '-mmt'
  11877. '-mno-mt'
  11878. Generate code for the MT Application Specific Extension. This
  11879. tells the assembler to accept MT instructions. '-mno-mt' turns off
  11880. this option.
  11881. '-mmcu'
  11882. '-mno-mcu'
  11883. Generate code for the MCU Application Specific Extension. This
  11884. tells the assembler to accept MCU instructions. '-mno-mcu' turns
  11885. off this option.
  11886. '-mmsa'
  11887. '-mno-msa'
  11888. Generate code for the MIPS SIMD Architecture Extension. This tells
  11889. the assembler to accept MSA instructions. '-mno-msa' turns off
  11890. this option.
  11891. '-mxpa'
  11892. '-mno-xpa'
  11893. Generate code for the MIPS eXtended Physical Address (XPA)
  11894. Extension. This tells the assembler to accept XPA instructions.
  11895. '-mno-xpa' turns off this option.
  11896. '-mvirt'
  11897. '-mno-virt'
  11898. Generate code for the Virtualization Application Specific
  11899. Extension. This tells the assembler to accept Virtualization
  11900. instructions. '-mno-virt' turns off this option.
  11901. '-mcrc'
  11902. '-mno-crc'
  11903. Generate code for the cyclic redundancy check (CRC) Application
  11904. Specific Extension. This tells the assembler to accept CRC
  11905. instructions. '-mno-crc' turns off this option.
  11906. '-mginv'
  11907. '-mno-ginv'
  11908. Generate code for the Global INValidate (GINV) Application Specific
  11909. Extension. This tells the assembler to accept GINV instructions.
  11910. '-mno-ginv' turns off this option.
  11911. '-mloongson-mmi'
  11912. '-mno-loongson-mmi'
  11913. Generate code for the Loongson MultiMedia extensions Instructions
  11914. (MMI) Application Specific Extension. This tells the assembler to
  11915. accept MMI instructions. '-mno-loongson-mmi' turns off this
  11916. option.
  11917. '-mloongson-cam'
  11918. '-mno-loongson-cam'
  11919. Generate code for the Loongson Content Address Memory (CAM)
  11920. Application Specific Extension. This tells the assembler to accept
  11921. CAM instructions. '-mno-loongson-cam' turns off this option.
  11922. '-mloongson-ext'
  11923. '-mno-loongson-ext'
  11924. Generate code for the Loongson EXTensions (EXT) instructions
  11925. Application Specific Extension. This tells the assembler to accept
  11926. EXT instructions. '-mno-loongson-ext' turns off this option.
  11927. '-mloongson-ext2'
  11928. '-mno-loongson-ext2'
  11929. Generate code for the Loongson EXTensions R2 (EXT2) instructions
  11930. Application Specific Extension. This tells the assembler to accept
  11931. EXT2 instructions. '-mno-loongson-ext2' turns off this option.
  11932. '-minsn32'
  11933. '-mno-insn32'
  11934. Only use 32-bit instruction encodings when generating code for the
  11935. microMIPS processor. This option inhibits the use of any 16-bit
  11936. instructions. This is equivalent to putting '.set insn32' at the
  11937. start of the assembly file. '-mno-insn32' turns off this option.
  11938. This is equivalent to putting '.set noinsn32' at the start of the
  11939. assembly file. By default '-mno-insn32' is selected, allowing all
  11940. instructions to be used.
  11941. '-mfix7000'
  11942. '-mno-fix7000'
  11943. Cause nops to be inserted if the read of the destination register
  11944. of an mfhi or mflo instruction occurs in the following two
  11945. instructions.
  11946. '-mfix-rm7000'
  11947. '-mno-fix-rm7000'
  11948. Cause nops to be inserted if a dmult or dmultu instruction is
  11949. followed by a load instruction.
  11950. '-mfix-loongson2f-jump'
  11951. '-mno-fix-loongson2f-jump'
  11952. Eliminate instruction fetch from outside 256M region to work around
  11953. the Loongson2F 'jump' instructions. Without it, under extreme
  11954. cases, the kernel may crash. The issue has been solved in latest
  11955. processor batches, but this fix has no side effect to them.
  11956. '-mfix-loongson2f-nop'
  11957. '-mno-fix-loongson2f-nop'
  11958. Replace nops by 'or at,at,zero' to work around the Loongson2F 'nop'
  11959. errata. Without it, under extreme cases, the CPU might deadlock.
  11960. The issue has been solved in later Loongson2F batches, but this fix
  11961. has no side effect to them.
  11962. '-mfix-loongson3-llsc'
  11963. '-mno-fix-loongson3-llsc'
  11964. Insert 'sync' before 'll' and 'lld' to work around Loongson3 LLSC
  11965. errata. Without it, under extrame cases, the CPU might deadlock.
  11966. The default can be controlled by the
  11967. '--enable-mips-fix-loongson3-llsc=[yes|no]' configure option.
  11968. '-mfix-vr4120'
  11969. '-mno-fix-vr4120'
  11970. Insert nops to work around certain VR4120 errata. This option is
  11971. intended to be used on GCC-generated code: it is not designed to
  11972. catch all problems in hand-written assembler code.
  11973. '-mfix-vr4130'
  11974. '-mno-fix-vr4130'
  11975. Insert nops to work around the VR4130 'mflo'/'mfhi' errata.
  11976. '-mfix-24k'
  11977. '-mno-fix-24k'
  11978. Insert nops to work around the 24K 'eret'/'deret' errata.
  11979. '-mfix-cn63xxp1'
  11980. '-mno-fix-cn63xxp1'
  11981. Replace 'pref' hints 0 - 4 and 6 - 24 with hint 28 to work around
  11982. certain CN63XXP1 errata.
  11983. '-mfix-r5900'
  11984. '-mno-fix-r5900'
  11985. Do not attempt to schedule the preceding instruction into the delay
  11986. slot of a branch instruction placed at the end of a short loop of
  11987. six instructions or fewer and always schedule a 'nop' instruction
  11988. there instead. The short loop bug under certain conditions causes
  11989. loops to execute only once or twice, due to a hardware bug in the
  11990. R5900 chip.
  11991. '-m4010'
  11992. '-no-m4010'
  11993. Generate code for the LSI R4010 chip. This tells the assembler to
  11994. accept the R4010-specific instructions ('addciu', 'ffc', etc.), and
  11995. to not schedule 'nop' instructions around accesses to the 'HI' and
  11996. 'LO' registers. '-no-m4010' turns off this option.
  11997. '-m4650'
  11998. '-no-m4650'
  11999. Generate code for the MIPS R4650 chip. This tells the assembler to
  12000. accept the 'mad' and 'madu' instruction, and to not schedule 'nop'
  12001. instructions around accesses to the 'HI' and 'LO' registers.
  12002. '-no-m4650' turns off this option.
  12003. '-m3900'
  12004. '-no-m3900'
  12005. '-m4100'
  12006. '-no-m4100'
  12007. For each option '-mNNNN', generate code for the MIPS RNNNN chip.
  12008. This tells the assembler to accept instructions specific to that
  12009. chip, and to schedule for that chip's hazards.
  12010. '-march=CPU'
  12011. Generate code for a particular MIPS CPU. It is exactly equivalent
  12012. to '-mCPU', except that there are more value of CPU understood.
  12013. Valid CPU value are:
  12014. 2000, 3000, 3900, 4000, 4010, 4100, 4111, vr4120, vr4130,
  12015. vr4181, 4300, 4400, 4600, 4650, 5000, rm5200, rm5230, rm5231,
  12016. rm5261, rm5721, vr5400, vr5500, 6000, rm7000, 8000, rm9000,
  12017. 10000, 12000, 14000, 16000, 4kc, 4km, 4kp, 4ksc, 4kec, 4kem,
  12018. 4kep, 4ksd, m4k, m4kp, m14k, m14kc, m14ke, m14kec, 24kc,
  12019. 24kf2_1, 24kf, 24kf1_1, 24kec, 24kef2_1, 24kef, 24kef1_1,
  12020. 34kc, 34kf2_1, 34kf, 34kf1_1, 34kn, 74kc, 74kf2_1, 74kf,
  12021. 74kf1_1, 74kf3_2, 1004kc, 1004kf2_1, 1004kf, 1004kf1_1,
  12022. interaptiv, interaptiv-mr2, m5100, m5101, p5600, 5kc, 5kf,
  12023. 20kc, 25kf, sb1, sb1a, i6400, i6500, p6600, loongson2e,
  12024. loongson2f, gs464, gs464e, gs264e, octeon, octeon+, octeon2,
  12025. octeon3, xlr, xlp
  12026. For compatibility reasons, 'Nx' and 'Bfx' are accepted as synonyms
  12027. for 'Nf1_1'. These values are deprecated.
  12028. '-mtune=CPU'
  12029. Schedule and tune for a particular MIPS CPU. Valid CPU values are
  12030. identical to '-march=CPU'.
  12031. '-mabi=ABI'
  12032. Record which ABI the source code uses. The recognized arguments
  12033. are: '32', 'n32', 'o64', '64' and 'eabi'.
  12034. '-msym32'
  12035. '-mno-sym32'
  12036. Equivalent to adding '.set sym32' or '.set nosym32' to the
  12037. beginning of the assembler input. *Note MIPS Symbol Sizes::.
  12038. '-nocpp'
  12039. This option is ignored. It is accepted for command-line
  12040. compatibility with other assemblers, which use it to turn off C
  12041. style preprocessing. With GNU 'as', there is no need for '-nocpp',
  12042. because the GNU assembler itself never runs the C preprocessor.
  12043. '-msoft-float'
  12044. '-mhard-float'
  12045. Disable or enable floating-point instructions. Note that by
  12046. default floating-point instructions are always allowed even with
  12047. CPU targets that don't have support for these instructions.
  12048. '-msingle-float'
  12049. '-mdouble-float'
  12050. Disable or enable double-precision floating-point operations. Note
  12051. that by default double-precision floating-point operations are
  12052. always allowed even with CPU targets that don't have support for
  12053. these operations.
  12054. '--construct-floats'
  12055. '--no-construct-floats'
  12056. The '--no-construct-floats' option disables the construction of
  12057. double width floating point constants by loading the two halves of
  12058. the value into the two single width floating point registers that
  12059. make up the double width register. This feature is useful if the
  12060. processor support the FR bit in its status register, and this bit
  12061. is known (by the programmer) to be set. This bit prevents the
  12062. aliasing of the double width register by the single width
  12063. registers.
  12064. By default '--construct-floats' is selected, allowing construction
  12065. of these floating point constants.
  12066. '--relax-branch'
  12067. '--no-relax-branch'
  12068. The '--relax-branch' option enables the relaxation of out-of-range
  12069. branches. Any branches whose target cannot be reached directly are
  12070. converted to a small instruction sequence including an
  12071. inverse-condition branch to the physically next instruction, and a
  12072. jump to the original target is inserted between the two
  12073. instructions. In PIC code the jump will involve further
  12074. instructions for address calculation.
  12075. The 'BC1ANY2F', 'BC1ANY2T', 'BC1ANY4F', 'BC1ANY4T', 'BPOSGE32' and
  12076. 'BPOSGE64' instructions are excluded from relaxation, because they
  12077. have no complementing counterparts. They could be relaxed with the
  12078. use of a longer sequence involving another branch, however this has
  12079. not been implemented and if their target turns out of reach, they
  12080. produce an error even if branch relaxation is enabled.
  12081. Also no MIPS16 branches are ever relaxed.
  12082. By default '--no-relax-branch' is selected, causing any
  12083. out-of-range branches to produce an error.
  12084. '-mignore-branch-isa'
  12085. '-mno-ignore-branch-isa'
  12086. Ignore branch checks for invalid transitions between ISA modes.
  12087. The semantics of branches does not provide for an ISA mode switch,
  12088. so in most cases the ISA mode a branch has been encoded for has to
  12089. be the same as the ISA mode of the branch's target label. If the
  12090. ISA modes do not match, then such a branch, if taken, will cause
  12091. the ISA mode to remain unchanged and instructions that follow will
  12092. be executed in the wrong ISA mode causing the program to misbehave
  12093. or crash.
  12094. In the case of the 'BAL' instruction it may be possible to relax it
  12095. to an equivalent 'JALX' instruction so that the ISA mode is
  12096. switched at the run time as required. For other branches no
  12097. relaxation is possible and therefore GAS has checks implemented
  12098. that verify in branch assembly that the two ISA modes match, and
  12099. report an error otherwise so that the problem with code can be
  12100. diagnosed at the assembly time rather than at the run time.
  12101. However some assembly code, including generated code produced by
  12102. some versions of GCC, may incorrectly include branches to data
  12103. labels, which appear to require a mode switch but are either dead
  12104. or immediately followed by valid instructions encoded for the same
  12105. ISA the branch has been encoded for. While not strictly correct at
  12106. the source level such code will execute as intended, so to help
  12107. with these cases '-mignore-branch-isa' is supported which disables
  12108. ISA mode checks for branches.
  12109. By default '-mno-ignore-branch-isa' is selected, causing any
  12110. invalid branch requiring a transition between ISA modes to produce
  12111. an error.
  12112. '-mnan=ENCODING'
  12113. This option indicates whether the source code uses the IEEE 2008
  12114. NaN encoding ('-mnan=2008') or the original MIPS encoding
  12115. ('-mnan=legacy'). It is equivalent to adding a '.nan' directive to
  12116. the beginning of the source file. *Note MIPS NaN Encodings::.
  12117. '-mnan=legacy' is the default if no '-mnan' option or '.nan'
  12118. directive is used.
  12119. '--trap'
  12120. '--no-break'
  12121. 'as' automatically macro expands certain division and
  12122. multiplication instructions to check for overflow and division by
  12123. zero. This option causes 'as' to generate code to take a trap
  12124. exception rather than a break exception when an error is detected.
  12125. The trap instructions are only supported at Instruction Set
  12126. Architecture level 2 and higher.
  12127. '--break'
  12128. '--no-trap'
  12129. Generate code to take a break exception rather than a trap
  12130. exception when an error is detected. This is the default.
  12131. '-mpdr'
  12132. '-mno-pdr'
  12133. Control generation of '.pdr' sections. Off by default on IRIX, on
  12134. elsewhere.
  12135. '-mshared'
  12136. '-mno-shared'
  12137. When generating code using the Unix calling conventions (selected
  12138. by '-KPIC' or '-mcall_shared'), gas will normally generate code
  12139. which can go into a shared library. The '-mno-shared' option tells
  12140. gas to generate code which uses the calling convention, but can not
  12141. go into a shared library. The resulting code is slightly more
  12142. efficient. This option only affects the handling of the '.cpload'
  12143. and '.cpsetup' pseudo-ops.
  12144. 
  12145. File: as.info, Node: MIPS Macros, Next: MIPS Symbol Sizes, Prev: MIPS Options, Up: MIPS-Dependent
  12146. 9.27.2 High-level assembly macros
  12147. ---------------------------------
  12148. MIPS assemblers have traditionally provided a wider range of
  12149. instructions than the MIPS architecture itself. These extra
  12150. instructions are usually referred to as "macro" instructions (1).
  12151. Some MIPS macro instructions extend an underlying architectural
  12152. instruction while others are entirely new. An example of the former
  12153. type is 'and', which allows the third operand to be either a register or
  12154. an arbitrary immediate value. Examples of the latter type include
  12155. 'bgt', which branches to the third operand when the first operand is
  12156. greater than the second operand, and 'ulh', which implements an
  12157. unaligned 2-byte load.
  12158. One of the most common extensions provided by macros is to expand
  12159. memory offsets to the full address range (32 or 64 bits) and to allow
  12160. symbolic offsets such as 'my_data + 4' to be used in place of integer
  12161. constants. For example, the architectural instruction 'lbu' allows only
  12162. a signed 16-bit offset, whereas the macro 'lbu' allows code such as 'lbu
  12163. $4,array+32769($5)'. The implementation of these symbolic offsets
  12164. depends on several factors, such as whether the assembler is generating
  12165. SVR4-style PIC (selected by '-KPIC', *note Assembler options: MIPS
  12166. Options.), the size of symbols (*note Directives to override the size of
  12167. symbols: MIPS Symbol Sizes.), and the small data limit (*note
  12168. Controlling the use of small data accesses: MIPS Small Data.).
  12169. Sometimes it is undesirable to have one assembly instruction expand
  12170. to several machine instructions. The directive '.set nomacro' tells the
  12171. assembler to warn when this happens. '.set macro' restores the default
  12172. behavior.
  12173. Some macro instructions need a temporary register to store
  12174. intermediate results. This register is usually '$1', also known as
  12175. '$at', but it can be changed to any core register REG using '.set
  12176. at=REG'. Note that '$at' always refers to '$1' regardless of which
  12177. register is being used as the temporary register.
  12178. Implicit uses of the temporary register in macros could interfere
  12179. with explicit uses in the assembly code. The assembler therefore warns
  12180. whenever it sees an explicit use of the temporary register. The
  12181. directive '.set noat' silences this warning while '.set at' restores the
  12182. default behavior. It is safe to use '.set noat' while '.set nomacro' is
  12183. in effect since single-instruction macros never need a temporary
  12184. register.
  12185. Note that while the GNU assembler provides these macros for
  12186. compatibility, it does not make any attempt to optimize them with the
  12187. surrounding code.
  12188. ---------- Footnotes ----------
  12189. (1) The term "macro" is somewhat overloaded here, since these macros
  12190. have no relation to those defined by '.macro', *note '.macro': Macro.
  12191. 
  12192. File: as.info, Node: MIPS Symbol Sizes, Next: MIPS Small Data, Prev: MIPS Macros, Up: MIPS-Dependent
  12193. 9.27.3 Directives to override the size of symbols
  12194. -------------------------------------------------
  12195. The n64 ABI allows symbols to have any 64-bit value. Although this
  12196. provides a great deal of flexibility, it means that some macros have
  12197. much longer expansions than their 32-bit counterparts. For example, the
  12198. non-PIC expansion of 'dla $4,sym' is usually:
  12199. lui $4,%highest(sym)
  12200. lui $1,%hi(sym)
  12201. daddiu $4,$4,%higher(sym)
  12202. daddiu $1,$1,%lo(sym)
  12203. dsll32 $4,$4,0
  12204. daddu $4,$4,$1
  12205. whereas the 32-bit expansion is simply:
  12206. lui $4,%hi(sym)
  12207. daddiu $4,$4,%lo(sym)
  12208. n64 code is sometimes constructed in such a way that all symbolic
  12209. constants are known to have 32-bit values, and in such cases, it's
  12210. preferable to use the 32-bit expansion instead of the 64-bit expansion.
  12211. You can use the '.set sym32' directive to tell the assembler that,
  12212. from this point on, all expressions of the form 'SYMBOL' or 'SYMBOL +
  12213. OFFSET' have 32-bit values. For example:
  12214. .set sym32
  12215. dla $4,sym
  12216. lw $4,sym+16
  12217. sw $4,sym+0x8000($4)
  12218. will cause the assembler to treat 'sym', 'sym+16' and 'sym+0x8000' as
  12219. 32-bit values. The handling of non-symbolic addresses is not affected.
  12220. The directive '.set nosym32' ends a '.set sym32' block and reverts to
  12221. the normal behavior. It is also possible to change the symbol size
  12222. using the command-line options '-msym32' and '-mno-sym32'.
  12223. These options and directives are always accepted, but at present,
  12224. they have no effect for anything other than n64.
  12225. 
  12226. File: as.info, Node: MIPS Small Data, Next: MIPS ISA, Prev: MIPS Symbol Sizes, Up: MIPS-Dependent
  12227. 9.27.4 Controlling the use of small data accesses
  12228. -------------------------------------------------
  12229. It often takes several instructions to load the address of a symbol.
  12230. For example, when 'addr' is a 32-bit symbol, the non-PIC expansion of
  12231. 'dla $4,addr' is usually:
  12232. lui $4,%hi(addr)
  12233. daddiu $4,$4,%lo(addr)
  12234. The sequence is much longer when 'addr' is a 64-bit symbol. *Note
  12235. Directives to override the size of symbols: MIPS Symbol Sizes.
  12236. In order to cut down on this overhead, most embedded MIPS systems set
  12237. aside a 64-kilobyte "small data" area and guarantee that all data of
  12238. size N and smaller will be placed in that area. The limit N is passed
  12239. to both the assembler and the linker using the command-line option '-G
  12240. N', *note Assembler options: MIPS Options. Note that the same value of
  12241. N must be used when linking and when assembling all input files to the
  12242. link; any inconsistency could cause a relocation overflow error.
  12243. The size of an object in the '.bss' section is set by the '.comm' or
  12244. '.lcomm' directive that defines it. The size of an external object may
  12245. be set with the '.extern' directive. For example, '.extern sym,4'
  12246. declares that the object at 'sym' is 4 bytes in length, while leaving
  12247. 'sym' otherwise undefined.
  12248. When no '-G' option is given, the default limit is 8 bytes. The
  12249. option '-G 0' prevents any data from being automatically classified as
  12250. small.
  12251. It is also possible to mark specific objects as small by putting them
  12252. in the special sections '.sdata' and '.sbss', which are "small"
  12253. counterparts of '.data' and '.bss' respectively. The toolchain will
  12254. treat such data as small regardless of the '-G' setting.
  12255. On startup, systems that support a small data area are expected to
  12256. initialize register '$28', also known as '$gp', in such a way that small
  12257. data can be accessed using a 16-bit offset from that register. For
  12258. example, when 'addr' is small data, the 'dla $4,addr' instruction above
  12259. is equivalent to:
  12260. daddiu $4,$28,%gp_rel(addr)
  12261. Small data is not supported for SVR4-style PIC.
  12262. 
  12263. File: as.info, Node: MIPS ISA, Next: MIPS assembly options, Prev: MIPS Small Data, Up: MIPS-Dependent
  12264. 9.27.5 Directives to override the ISA level
  12265. -------------------------------------------
  12266. GNU 'as' supports an additional directive to change the MIPS Instruction
  12267. Set Architecture level on the fly: '.set mipsN'. N should be a number
  12268. from 0 to 5, or 32, 32r2, 32r3, 32r5, 32r6, 64, 64r2, 64r3, 64r5 or
  12269. 64r6. The values other than 0 make the assembler accept instructions
  12270. for the corresponding ISA level, from that point on in the assembly.
  12271. '.set mipsN' affects not only which instructions are permitted, but also
  12272. how certain macros are expanded. '.set mips0' restores the ISA level to
  12273. its original level: either the level you selected with command-line
  12274. options, or the default for your configuration. You can use this
  12275. feature to permit specific MIPS III instructions while assembling in 32
  12276. bit mode. Use this directive with care!
  12277. The '.set arch=CPU' directive provides even finer control. It
  12278. changes the effective CPU target and allows the assembler to use
  12279. instructions specific to a particular CPU. All CPUs supported by the
  12280. '-march' command-line option are also selectable by this directive. The
  12281. original value is restored by '.set arch=default'.
  12282. The directive '.set mips16' puts the assembler into MIPS 16 mode, in
  12283. which it will assemble instructions for the MIPS 16 processor. Use
  12284. '.set nomips16' to return to normal 32 bit mode.
  12285. Traditional MIPS assemblers do not support this directive.
  12286. The directive '.set micromips' puts the assembler into microMIPS
  12287. mode, in which it will assemble instructions for the microMIPS
  12288. processor. Use '.set nomicromips' to return to normal 32 bit mode.
  12289. Traditional MIPS assemblers do not support this directive.
  12290. 
  12291. File: as.info, Node: MIPS assembly options, Next: MIPS autoextend, Prev: MIPS ISA, Up: MIPS-Dependent
  12292. 9.27.6 Directives to control code generation
  12293. --------------------------------------------
  12294. The '.module' directive allows command-line options to be set directly
  12295. from assembly. The format of the directive matches the '.set' directive
  12296. but only those options which are relevant to a whole module are
  12297. supported. The effect of a '.module' directive is the same as the
  12298. corresponding command-line option. Where '.set' directives support
  12299. returning to a default then the '.module' directives do not as they
  12300. define the defaults.
  12301. These module-level directives must appear first in assembly.
  12302. Traditional MIPS assemblers do not support this directive.
  12303. The directive '.set insn32' makes the assembler only use 32-bit
  12304. instruction encodings when generating code for the microMIPS processor.
  12305. This directive inhibits the use of any 16-bit instructions from that
  12306. point on in the assembly. The '.set noinsn32' directive allows 16-bit
  12307. instructions to be accepted.
  12308. Traditional MIPS assemblers do not support this directive.
  12309. 
  12310. File: as.info, Node: MIPS autoextend, Next: MIPS insn, Prev: MIPS assembly options, Up: MIPS-Dependent
  12311. 9.27.7 Directives for extending MIPS 16 bit instructions
  12312. --------------------------------------------------------
  12313. By default, MIPS 16 instructions are automatically extended to 32 bits
  12314. when necessary. The directive '.set noautoextend' will turn this off.
  12315. When '.set noautoextend' is in effect, any 32 bit instruction must be
  12316. explicitly extended with the '.e' modifier (e.g., 'li.e $4,1000'). The
  12317. directive '.set autoextend' may be used to once again automatically
  12318. extend instructions when necessary.
  12319. This directive is only meaningful when in MIPS 16 mode. Traditional
  12320. MIPS assemblers do not support this directive.
  12321. 
  12322. File: as.info, Node: MIPS insn, Next: MIPS FP ABIs, Prev: MIPS autoextend, Up: MIPS-Dependent
  12323. 9.27.8 Directive to mark data as an instruction
  12324. -----------------------------------------------
  12325. The '.insn' directive tells 'as' that the following data is actually
  12326. instructions. This makes a difference in MIPS 16 and microMIPS modes:
  12327. when loading the address of a label which precedes instructions, 'as'
  12328. automatically adds 1 to the value, so that jumping to the loaded address
  12329. will do the right thing.
  12330. The '.global' and '.globl' directives supported by 'as' will by
  12331. default mark the symbol as pointing to a region of data not code. This
  12332. means that, for example, any instructions following such a symbol will
  12333. not be disassembled by 'objdump' as it will regard them as data. To
  12334. change this behavior an optional section name can be placed after the
  12335. symbol name in the '.global' directive. If this section exists and is
  12336. known to be a code section, then the symbol will be marked as pointing
  12337. at code not data. Ie the syntax for the directive is:
  12338. '.global SYMBOL[ SECTION][, SYMBOL[ SECTION]] ...',
  12339. Here is a short example:
  12340. .global foo .text, bar, baz .data
  12341. foo:
  12342. nop
  12343. bar:
  12344. .word 0x0
  12345. baz:
  12346. .word 0x1
  12347. 
  12348. File: as.info, Node: MIPS FP ABIs, Next: MIPS NaN Encodings, Prev: MIPS insn, Up: MIPS-Dependent
  12349. 9.27.9 Directives to control the FP ABI
  12350. ---------------------------------------
  12351. * Menu:
  12352. * MIPS FP ABI History:: History of FP ABIs
  12353. * MIPS FP ABI Variants:: Supported FP ABIs
  12354. * MIPS FP ABI Selection:: Automatic selection of FP ABI
  12355. * MIPS FP ABI Compatibility:: Linking different FP ABI variants
  12356. 
  12357. File: as.info, Node: MIPS FP ABI History, Next: MIPS FP ABI Variants, Up: MIPS FP ABIs
  12358. 9.27.9.1 History of FP ABIs
  12359. ...........................
  12360. The MIPS ABIs support a variety of different floating-point extensions
  12361. where calling-convention and register sizes vary for floating-point
  12362. data. The extensions exist to support a wide variety of optional
  12363. architecture features. The resulting ABI variants are generally
  12364. incompatible with each other and must be tracked carefully.
  12365. Traditionally the use of an explicit '.gnu_attribute 4, N' directive
  12366. is used to indicate which ABI is in use by a specific module. It was
  12367. then left to the user to ensure that command-line options and the
  12368. selected ABI were compatible with some potential for inconsistencies.
  12369. 
  12370. File: as.info, Node: MIPS FP ABI Variants, Next: MIPS FP ABI Selection, Prev: MIPS FP ABI History, Up: MIPS FP ABIs
  12371. 9.27.9.2 Supported FP ABIs
  12372. ..........................
  12373. The supported floating-point ABI variants are:
  12374. '0 - No floating-point'
  12375. This variant is used to indicate that floating-point is not used
  12376. within the module at all and therefore has no impact on the ABI.
  12377. This is the default.
  12378. '1 - Double-precision'
  12379. This variant indicates that double-precision support is used. For
  12380. 64-bit ABIs this means that 64-bit wide floating-point registers
  12381. are required. For 32-bit ABIs this means that 32-bit wide
  12382. floating-point registers are required and double-precision
  12383. operations use pairs of registers.
  12384. '2 - Single-precision'
  12385. This variant indicates that single-precision support is used.
  12386. Double precision operations will be supported via soft-float
  12387. routines.
  12388. '3 - Soft-float'
  12389. This variant indicates that although floating-point support is used
  12390. all operations are emulated in software. This means the ABI is
  12391. modified to pass all floating-point data in general-purpose
  12392. registers.
  12393. '4 - Deprecated'
  12394. This variant existed as an initial attempt at supporting 64-bit
  12395. wide floating-point registers for O32 ABI on a MIPS32r2 CPU. This
  12396. has been superseded by 5, 6 and 7.
  12397. '5 - Double-precision 32-bit CPU, 32-bit or 64-bit FPU'
  12398. This variant is used by 32-bit ABIs to indicate that the
  12399. floating-point code in the module has been designed to operate
  12400. correctly with either 32-bit wide or 64-bit wide floating-point
  12401. registers. Double-precision support is used. Only O32 currently
  12402. supports this variant and requires a minimum architecture of MIPS
  12403. II.
  12404. '6 - Double-precision 32-bit FPU, 64-bit FPU'
  12405. This variant is used by 32-bit ABIs to indicate that the
  12406. floating-point code in the module requires 64-bit wide
  12407. floating-point registers. Double-precision support is used. Only
  12408. O32 currently supports this variant and requires a minimum
  12409. architecture of MIPS32r2.
  12410. '7 - Double-precision compat 32-bit FPU, 64-bit FPU'
  12411. This variant is used by 32-bit ABIs to indicate that the
  12412. floating-point code in the module requires 64-bit wide
  12413. floating-point registers. Double-precision support is used. This
  12414. differs from the previous ABI as it restricts use of odd-numbered
  12415. single-precision registers. Only O32 currently supports this
  12416. variant and requires a minimum architecture of MIPS32r2.
  12417. 
  12418. File: as.info, Node: MIPS FP ABI Selection, Next: MIPS FP ABI Compatibility, Prev: MIPS FP ABI Variants, Up: MIPS FP ABIs
  12419. 9.27.9.3 Automatic selection of FP ABI
  12420. ......................................
  12421. In order to simplify and add safety to the process of selecting the
  12422. correct floating-point ABI, the assembler will automatically infer the
  12423. correct '.gnu_attribute 4, N' directive based on command-line options
  12424. and '.module' overrides. Where an explicit '.gnu_attribute 4, N'
  12425. directive has been seen then a warning will be raised if it does not
  12426. match an inferred setting.
  12427. The floating-point ABI is inferred as follows. If '-msoft-float' has
  12428. been used the module will be marked as soft-float. If '-msingle-float'
  12429. has been used then the module will be marked as single-precision. The
  12430. remaining ABIs are then selected based on the FP register width.
  12431. Double-precision is selected if the width of GP and FP registers match
  12432. and the special double-precision variants for 32-bit ABIs are then
  12433. selected depending on '-mfpxx', '-mfp64' and '-mno-odd-spreg'.
  12434. 
  12435. File: as.info, Node: MIPS FP ABI Compatibility, Prev: MIPS FP ABI Selection, Up: MIPS FP ABIs
  12436. 9.27.9.4 Linking different FP ABI variants
  12437. ..........................................
  12438. Modules using the default FP ABI (no floating-point) can be linked with
  12439. any other (singular) FP ABI variant.
  12440. Special compatibility support exists for O32 with the four
  12441. double-precision FP ABI variants. The '-mfpxx' FP ABI is specifically
  12442. designed to be compatible with the standard double-precision ABI and the
  12443. '-mfp64' FP ABIs. This makes it desirable for O32 modules to be built
  12444. as '-mfpxx' to ensure the maximum compatibility with other modules
  12445. produced for more specific needs. The only FP ABIs which cannot be
  12446. linked together are the standard double-precision ABI and the full
  12447. '-mfp64' ABI with '-modd-spreg'.
  12448. 
  12449. File: as.info, Node: MIPS NaN Encodings, Next: MIPS Option Stack, Prev: MIPS FP ABIs, Up: MIPS-Dependent
  12450. 9.27.10 Directives to record which NaN encoding is being used
  12451. -------------------------------------------------------------
  12452. The IEEE 754 floating-point standard defines two types of not-a-number
  12453. (NaN) data: "signalling" NaNs and "quiet" NaNs. The original version of
  12454. the standard did not specify how these two types should be
  12455. distinguished. Most implementations followed the i387 model, in which
  12456. the first bit of the significand is set for quiet NaNs and clear for
  12457. signalling NaNs. However, the original MIPS implementation assigned the
  12458. opposite meaning to the bit, so that it was set for signalling NaNs and
  12459. clear for quiet NaNs.
  12460. The 2008 revision of the standard formally suggested the i387 choice
  12461. and as from Sep 2012 the current release of the MIPS architecture
  12462. therefore optionally supports that form. Code that uses one NaN
  12463. encoding would usually be incompatible with code that uses the other NaN
  12464. encoding, so MIPS ELF objects have a flag ('EF_MIPS_NAN2008') to record
  12465. which encoding is being used.
  12466. Assembly files can use the '.nan' directive to select between the two
  12467. encodings. '.nan 2008' says that the assembly file uses the IEEE
  12468. 754-2008 encoding while '.nan legacy' says that the file uses the
  12469. original MIPS encoding. If several '.nan' directives are given, the
  12470. final setting is the one that is used.
  12471. The command-line options '-mnan=legacy' and '-mnan=2008' can be used
  12472. instead of '.nan legacy' and '.nan 2008' respectively. However, any
  12473. '.nan' directive overrides the command-line setting.
  12474. '.nan legacy' is the default if no '.nan' directive or '-mnan' option
  12475. is given.
  12476. Note that GNU 'as' does not produce NaNs itself and therefore these
  12477. directives do not affect code generation. They simply control the
  12478. setting of the 'EF_MIPS_NAN2008' flag.
  12479. Traditional MIPS assemblers do not support these directives.
  12480. 
  12481. File: as.info, Node: MIPS Option Stack, Next: MIPS ASE Instruction Generation Overrides, Prev: MIPS NaN Encodings, Up: MIPS-Dependent
  12482. 9.27.11 Directives to save and restore options
  12483. ----------------------------------------------
  12484. The directives '.set push' and '.set pop' may be used to save and
  12485. restore the current settings for all the options which are controlled by
  12486. '.set'. The '.set push' directive saves the current settings on a
  12487. stack. The '.set pop' directive pops the stack and restores the
  12488. settings.
  12489. These directives can be useful inside an macro which must change an
  12490. option such as the ISA level or instruction reordering but does not want
  12491. to change the state of the code which invoked the macro.
  12492. Traditional MIPS assemblers do not support these directives.
  12493. 
  12494. File: as.info, Node: MIPS ASE Instruction Generation Overrides, Next: MIPS Floating-Point, Prev: MIPS Option Stack, Up: MIPS-Dependent
  12495. 9.27.12 Directives to control generation of MIPS ASE instructions
  12496. -----------------------------------------------------------------
  12497. The directive '.set mips3d' makes the assembler accept instructions from
  12498. the MIPS-3D Application Specific Extension from that point on in the
  12499. assembly. The '.set nomips3d' directive prevents MIPS-3D instructions
  12500. from being accepted.
  12501. The directive '.set smartmips' makes the assembler accept
  12502. instructions from the SmartMIPS Application Specific Extension to the
  12503. MIPS32 ISA from that point on in the assembly. The '.set nosmartmips'
  12504. directive prevents SmartMIPS instructions from being accepted.
  12505. The directive '.set mdmx' makes the assembler accept instructions
  12506. from the MDMX Application Specific Extension from that point on in the
  12507. assembly. The '.set nomdmx' directive prevents MDMX instructions from
  12508. being accepted.
  12509. The directive '.set dsp' makes the assembler accept instructions from
  12510. the DSP Release 1 Application Specific Extension from that point on in
  12511. the assembly. The '.set nodsp' directive prevents DSP Release 1
  12512. instructions from being accepted.
  12513. The directive '.set dspr2' makes the assembler accept instructions
  12514. from the DSP Release 2 Application Specific Extension from that point on
  12515. in the assembly. This directive implies '.set dsp'. The '.set nodspr2'
  12516. directive prevents DSP Release 2 instructions from being accepted.
  12517. The directive '.set dspr3' makes the assembler accept instructions
  12518. from the DSP Release 3 Application Specific Extension from that point on
  12519. in the assembly. This directive implies '.set dsp' and '.set dspr2'.
  12520. The '.set nodspr3' directive prevents DSP Release 3 instructions from
  12521. being accepted.
  12522. The directive '.set mt' makes the assembler accept instructions from
  12523. the MT Application Specific Extension from that point on in the
  12524. assembly. The '.set nomt' directive prevents MT instructions from being
  12525. accepted.
  12526. The directive '.set mcu' makes the assembler accept instructions from
  12527. the MCU Application Specific Extension from that point on in the
  12528. assembly. The '.set nomcu' directive prevents MCU instructions from
  12529. being accepted.
  12530. The directive '.set msa' makes the assembler accept instructions from
  12531. the MIPS SIMD Architecture Extension from that point on in the assembly.
  12532. The '.set nomsa' directive prevents MSA instructions from being
  12533. accepted.
  12534. The directive '.set virt' makes the assembler accept instructions
  12535. from the Virtualization Application Specific Extension from that point
  12536. on in the assembly. The '.set novirt' directive prevents Virtualization
  12537. instructions from being accepted.
  12538. The directive '.set xpa' makes the assembler accept instructions from
  12539. the XPA Extension from that point on in the assembly. The '.set noxpa'
  12540. directive prevents XPA instructions from being accepted.
  12541. The directive '.set mips16e2' makes the assembler accept instructions
  12542. from the MIPS16e2 Application Specific Extension from that point on in
  12543. the assembly, whenever in MIPS16 mode. The '.set nomips16e2' directive
  12544. prevents MIPS16e2 instructions from being accepted, in MIPS16 mode.
  12545. Neither directive affects the state of MIPS16 mode being active itself
  12546. which has separate controls.
  12547. The directive '.set crc' makes the assembler accept instructions from
  12548. the CRC Extension from that point on in the assembly. The '.set nocrc'
  12549. directive prevents CRC instructions from being accepted.
  12550. The directive '.set ginv' makes the assembler accept instructions
  12551. from the GINV Extension from that point on in the assembly. The '.set
  12552. noginv' directive prevents GINV instructions from being accepted.
  12553. The directive '.set loongson-mmi' makes the assembler accept
  12554. instructions from the MMI Extension from that point on in the assembly.
  12555. The '.set noloongson-mmi' directive prevents MMI instructions from being
  12556. accepted.
  12557. The directive '.set loongson-cam' makes the assembler accept
  12558. instructions from the Loongson CAM from that point on in the assembly.
  12559. The '.set noloongson-cam' directive prevents Loongson CAM instructions
  12560. from being accepted.
  12561. The directive '.set loongson-ext' makes the assembler accept
  12562. instructions from the Loongson EXT from that point on in the assembly.
  12563. The '.set noloongson-ext' directive prevents Loongson EXT instructions
  12564. from being accepted.
  12565. The directive '.set loongson-ext2' makes the assembler accept
  12566. instructions from the Loongson EXT2 from that point on in the assembly.
  12567. This directive implies '.set loognson-ext'. The '.set noloongson-ext2'
  12568. directive prevents Loongson EXT2 instructions from being accepted.
  12569. Traditional MIPS assemblers do not support these directives.
  12570. 
  12571. File: as.info, Node: MIPS Floating-Point, Next: MIPS Syntax, Prev: MIPS ASE Instruction Generation Overrides, Up: MIPS-Dependent
  12572. 9.27.13 Directives to override floating-point options
  12573. -----------------------------------------------------
  12574. The directives '.set softfloat' and '.set hardfloat' provide finer
  12575. control of disabling and enabling float-point instructions. These
  12576. directives always override the default (that hard-float instructions are
  12577. accepted) or the command-line options ('-msoft-float' and
  12578. '-mhard-float').
  12579. The directives '.set singlefloat' and '.set doublefloat' provide
  12580. finer control of disabling and enabling double-precision float-point
  12581. operations. These directives always override the default (that
  12582. double-precision operations are accepted) or the command-line options
  12583. ('-msingle-float' and '-mdouble-float').
  12584. Traditional MIPS assemblers do not support these directives.
  12585. 
  12586. File: as.info, Node: MIPS Syntax, Prev: MIPS Floating-Point, Up: MIPS-Dependent
  12587. 9.27.14 Syntactical considerations for the MIPS assembler
  12588. ---------------------------------------------------------
  12589. * Menu:
  12590. * MIPS-Chars:: Special Characters
  12591. 
  12592. File: as.info, Node: MIPS-Chars, Up: MIPS Syntax
  12593. 9.27.14.1 Special Characters
  12594. ............................
  12595. The presence of a '#' on a line indicates the start of a comment that
  12596. extends to the end of the current line.
  12597. If a '#' appears as the first character of a line, the whole line is
  12598. treated as a comment, but in this case the line can also be a logical
  12599. line number directive (*note Comments::) or a preprocessor control
  12600. command (*note Preprocessing::).
  12601. The ';' character can be used to separate statements on the same
  12602. line.
  12603. 
  12604. File: as.info, Node: MMIX-Dependent, Next: MSP430-Dependent, Prev: MIPS-Dependent, Up: Machine Dependencies
  12605. 9.28 MMIX Dependent Features
  12606. ============================
  12607. * Menu:
  12608. * MMIX-Opts:: Command-line Options
  12609. * MMIX-Expand:: Instruction expansion
  12610. * MMIX-Syntax:: Syntax
  12611. * MMIX-mmixal:: Differences to 'mmixal' syntax and semantics
  12612. 
  12613. File: as.info, Node: MMIX-Opts, Next: MMIX-Expand, Up: MMIX-Dependent
  12614. 9.28.1 Command-line Options
  12615. ---------------------------
  12616. The MMIX version of 'as' has some machine-dependent options.
  12617. When '--fixed-special-register-names' is specified, only the register
  12618. names specified in *note MMIX-Regs:: are recognized in the instructions
  12619. 'PUT' and 'GET'.
  12620. You can use the '--globalize-symbols' to make all symbols global.
  12621. This option is useful when splitting up a 'mmixal' program into several
  12622. files.
  12623. The '--gnu-syntax' turns off most syntax compatibility with 'mmixal'.
  12624. Its usability is currently doubtful.
  12625. The '--relax' option is not fully supported, but will eventually make
  12626. the object file prepared for linker relaxation.
  12627. If you want to avoid inadvertently calling a predefined symbol and
  12628. would rather get an error, for example when using 'as' with a compiler
  12629. or other machine-generated code, specify '--no-predefined-syms'. This
  12630. turns off built-in predefined definitions of all such symbols, including
  12631. rounding-mode symbols, segment symbols, 'BIT' symbols, and 'TRAP'
  12632. symbols used in 'mmix' "system calls". It also turns off predefined
  12633. special-register names, except when used in 'PUT' and 'GET'
  12634. instructions.
  12635. By default, some instructions are expanded to fit the size of the
  12636. operand or an external symbol (*note MMIX-Expand::). By passing
  12637. '--no-expand', no such expansion will be done, instead causing errors at
  12638. link time if the operand does not fit.
  12639. The 'mmixal' documentation (*note mmixsite::) specifies that global
  12640. registers allocated with the 'GREG' directive (*note MMIX-greg::) and
  12641. initialized to the same non-zero value, will refer to the same global
  12642. register. This isn't strictly enforceable in 'as' since the final
  12643. addresses aren't known until link-time, but it will do an effort unless
  12644. the '--no-merge-gregs' option is specified. (Register merging isn't yet
  12645. implemented in 'ld'.)
  12646. 'as' will warn every time it expands an instruction to fit an operand
  12647. unless the option '-x' is specified. It is believed that this behaviour
  12648. is more useful than just mimicking 'mmixal''s behaviour, in which
  12649. instructions are only expanded if the '-x' option is specified, and
  12650. assembly fails otherwise, when an instruction needs to be expanded. It
  12651. needs to be kept in mind that 'mmixal' is both an assembler and linker,
  12652. while 'as' will expand instructions that at link stage can be
  12653. contracted. (Though linker relaxation isn't yet implemented in 'ld'.)
  12654. The option '-x' also implies '--linker-allocated-gregs'.
  12655. If instruction expansion is enabled, 'as' can expand a 'PUSHJ'
  12656. instruction into a series of instructions. The shortest expansion is to
  12657. not expand it, but just mark the call as redirectable to a stub, which
  12658. 'ld' creates at link-time, but only if the original 'PUSHJ' instruction
  12659. is found not to reach the target. The stub consists of the necessary
  12660. instructions to form a jump to the target. This happens if 'as' can
  12661. assert that the 'PUSHJ' instruction can reach such a stub. The option
  12662. '--no-pushj-stubs' disables this shorter expansion, and the longer
  12663. series of instructions is then created at assembly-time. The option
  12664. '--no-stubs' is a synonym, intended for compatibility with future
  12665. releases, where generation of stubs for other instructions may be
  12666. implemented.
  12667. Usually a two-operand-expression (*note GREG-base::) without a
  12668. matching 'GREG' directive is treated as an error by 'as'. When the
  12669. option '--linker-allocated-gregs' is in effect, they are instead passed
  12670. through to the linker, which will allocate as many global registers as
  12671. is needed.
  12672. 
  12673. File: as.info, Node: MMIX-Expand, Next: MMIX-Syntax, Prev: MMIX-Opts, Up: MMIX-Dependent
  12674. 9.28.2 Instruction expansion
  12675. ----------------------------
  12676. When 'as' encounters an instruction with an operand that is either not
  12677. known or does not fit the operand size of the instruction, 'as' (and
  12678. 'ld') will expand the instruction into a sequence of instructions
  12679. semantically equivalent to the operand fitting the instruction.
  12680. Expansion will take place for the following instructions:
  12681. 'GETA'
  12682. Expands to a sequence of four instructions: 'SETL', 'INCML',
  12683. 'INCMH' and 'INCH'. The operand must be a multiple of four.
  12684. Conditional branches
  12685. A branch instruction is turned into a branch with the complemented
  12686. condition and prediction bit over five instructions; four
  12687. instructions setting '$255' to the operand value, which like with
  12688. 'GETA' must be a multiple of four, and a final 'GO $255,$255,0'.
  12689. 'PUSHJ'
  12690. Similar to expansion for conditional branches; four instructions
  12691. set '$255' to the operand value, followed by a 'PUSHGO
  12692. $255,$255,0'.
  12693. 'JMP'
  12694. Similar to conditional branches and 'PUSHJ'. The final instruction
  12695. is 'GO $255,$255,0'.
  12696. The linker 'ld' is expected to shrink these expansions for code
  12697. assembled with '--relax' (though not currently implemented).
  12698. 
  12699. File: as.info, Node: MMIX-Syntax, Next: MMIX-mmixal, Prev: MMIX-Expand, Up: MMIX-Dependent
  12700. 9.28.3 Syntax
  12701. -------------
  12702. The assembly syntax is supposed to be upward compatible with that
  12703. described in Sections 1.3 and 1.4 of 'The Art of Computer Programming,
  12704. Volume 1'. Draft versions of those chapters as well as other MMIX
  12705. information is located at
  12706. <http://www-cs-faculty.stanford.edu/~knuth/mmix-news.html>. Most code
  12707. examples from the mmixal package located there should work unmodified
  12708. when assembled and linked as single files, with a few noteworthy
  12709. exceptions (*note MMIX-mmixal::).
  12710. Before an instruction is emitted, the current location is aligned to
  12711. the next four-byte boundary. If a label is defined at the beginning of
  12712. the line, its value will be the aligned value.
  12713. In addition to the traditional hex-prefix '0x', a hexadecimal number
  12714. can also be specified by the prefix character '#'.
  12715. After all operands to an MMIX instruction or directive have been
  12716. specified, the rest of the line is ignored, treated as a comment.
  12717. * Menu:
  12718. * MMIX-Chars:: Special Characters
  12719. * MMIX-Symbols:: Symbols
  12720. * MMIX-Regs:: Register Names
  12721. * MMIX-Pseudos:: Assembler Directives
  12722. 
  12723. File: as.info, Node: MMIX-Chars, Next: MMIX-Symbols, Up: MMIX-Syntax
  12724. 9.28.3.1 Special Characters
  12725. ...........................
  12726. The characters '*' and '#' are line comment characters; each start a
  12727. comment at the beginning of a line, but only at the beginning of a line.
  12728. A '#' prefixes a hexadecimal number if found elsewhere on a line. If a
  12729. '#' appears at the start of a line the whole line is treated as a
  12730. comment, but the line can also act as a logical line number directive
  12731. (*note Comments::) or a preprocessor control command (*note
  12732. Preprocessing::).
  12733. Two other characters, '%' and '!', each start a comment anywhere on
  12734. the line. Thus you can't use the 'modulus' and 'not' operators in
  12735. expressions normally associated with these two characters.
  12736. A ';' is a line separator, treated as a new-line, so separate
  12737. instructions can be specified on a single line.
  12738. 
  12739. File: as.info, Node: MMIX-Symbols, Next: MMIX-Regs, Prev: MMIX-Chars, Up: MMIX-Syntax
  12740. 9.28.3.2 Symbols
  12741. ................
  12742. The character ':' is permitted in identifiers. There are two exceptions
  12743. to it being treated as any other symbol character: if a symbol begins
  12744. with ':', it means that the symbol is in the global namespace and that
  12745. the current prefix should not be prepended to that symbol (*note
  12746. MMIX-prefix::). The ':' is then not considered part of the symbol. For
  12747. a symbol in the label position (first on a line), a ':' at the end of a
  12748. symbol is silently stripped off. A label is permitted, but not
  12749. required, to be followed by a ':', as with many other assembly formats.
  12750. The character '@' in an expression, is a synonym for '.', the current
  12751. location.
  12752. In addition to the common forward and backward local symbol formats
  12753. (*note Symbol Names::), they can be specified with upper-case 'B' and
  12754. 'F', as in '8B' and '9F'. A local label defined for the current
  12755. position is written with a 'H' appended to the number:
  12756. 3H LDB $0,$1,2
  12757. This and traditional local-label formats cannot be mixed: a label
  12758. must be defined and referred to using the same format.
  12759. There's a minor caveat: just as for the ordinary local symbols, the
  12760. local symbols are translated into ordinary symbols using control
  12761. characters are to hide the ordinal number of the symbol. Unfortunately,
  12762. these symbols are not translated back in error messages. Thus you may
  12763. see confusing error messages when local symbols are used. Control
  12764. characters '\003' (control-C) and '\004' (control-D) are used for the
  12765. MMIX-specific local-symbol syntax.
  12766. The symbol 'Main' is handled specially; it is always global.
  12767. By defining the symbols '__.MMIX.start..text' and
  12768. '__.MMIX.start..data', the address of respectively the '.text' and
  12769. '.data' segments of the final program can be defined, though when
  12770. linking more than one object file, the code or data in the object file
  12771. containing the symbol is not guaranteed to be start at that position;
  12772. just the final executable. *Note MMIX-loc::.
  12773. 
  12774. File: as.info, Node: MMIX-Regs, Next: MMIX-Pseudos, Prev: MMIX-Symbols, Up: MMIX-Syntax
  12775. 9.28.3.3 Register names
  12776. .......................
  12777. Local and global registers are specified as '$0' to '$255'. The
  12778. recognized special register names are 'rJ', 'rA', 'rB', 'rC', 'rD',
  12779. 'rE', 'rF', 'rG', 'rH', 'rI', 'rK', 'rL', 'rM', 'rN', 'rO', 'rP', 'rQ',
  12780. 'rR', 'rS', 'rT', 'rU', 'rV', 'rW', 'rX', 'rY', 'rZ', 'rBB', 'rTT',
  12781. 'rWW', 'rXX', 'rYY' and 'rZZ'. A leading ':' is optional for special
  12782. register names.
  12783. Local and global symbols can be equated to register names and used in
  12784. place of ordinary registers.
  12785. Similarly for special registers, local and global symbols can be
  12786. used. Also, symbols equated from numbers and constant expressions are
  12787. allowed in place of a special register, except when either of the
  12788. options '--no-predefined-syms' and '--fixed-special-register-names' are
  12789. specified. Then only the special register names above are allowed for
  12790. the instructions having a special register operand; 'GET' and 'PUT'.
  12791. 
  12792. File: as.info, Node: MMIX-Pseudos, Prev: MMIX-Regs, Up: MMIX-Syntax
  12793. 9.28.3.4 Assembler Directives
  12794. .............................
  12795. 'LOC'
  12796. The 'LOC' directive sets the current location to the value of the
  12797. operand field, which may include changing sections. If the operand
  12798. is a constant, the section is set to either '.data' if the value is
  12799. '0x2000000000000000' or larger, else it is set to '.text'. Within
  12800. a section, the current location may only be changed to
  12801. monotonically higher addresses. A LOC expression must be a
  12802. previously defined symbol or a "pure" constant.
  12803. An example, which sets the label PREV to the current location, and
  12804. updates the current location to eight bytes forward:
  12805. prev LOC @+8
  12806. When a LOC has a constant as its operand, a symbol
  12807. '__.MMIX.start..text' or '__.MMIX.start..data' is defined depending
  12808. on the address as mentioned above. Each such symbol is interpreted
  12809. as special by the linker, locating the section at that address.
  12810. Note that if multiple files are linked, the first object file with
  12811. that section will be mapped to that address (not necessarily the
  12812. file with the LOC definition).
  12813. 'LOCAL'
  12814. Example:
  12815. LOCAL external_symbol
  12816. LOCAL 42
  12817. .local asymbol
  12818. This directive-operation generates a link-time assertion that the
  12819. operand does not correspond to a global register. The operand is
  12820. an expression that at link-time resolves to a register symbol or a
  12821. number. A number is treated as the register having that number.
  12822. There is one restriction on the use of this directive: the
  12823. pseudo-directive must be placed in a section with contents, code or
  12824. data.
  12825. 'IS'
  12826. The 'IS' directive:
  12827. asymbol IS an_expression
  12828. sets the symbol 'asymbol' to 'an_expression'. A symbol may not be
  12829. set more than once using this directive. Local labels may be set
  12830. using this directive, for example:
  12831. 5H IS @+4
  12832. 'GREG'
  12833. This directive reserves a global register, gives it an initial
  12834. value and optionally gives it a symbolic name. Some examples:
  12835. areg GREG
  12836. breg GREG data_value
  12837. GREG data_buffer
  12838. .greg creg, another_data_value
  12839. The symbolic register name can be used in place of a (non-special)
  12840. register. If a value isn't provided, it defaults to zero. Unless
  12841. the option '--no-merge-gregs' is specified, non-zero registers
  12842. allocated with this directive may be eliminated by 'as'; another
  12843. register with the same value used in its place. Any of the
  12844. instructions 'CSWAP', 'GO', 'LDA', 'LDBU', 'LDB', 'LDHT', 'LDOU',
  12845. 'LDO', 'LDSF', 'LDTU', 'LDT', 'LDUNC', 'LDVTS', 'LDWU', 'LDW',
  12846. 'PREGO', 'PRELD', 'PREST', 'PUSHGO', 'STBU', 'STB', 'STCO', 'STHT',
  12847. 'STOU', 'STSF', 'STTU', 'STT', 'STUNC', 'SYNCD', 'SYNCID', can have
  12848. a value nearby an initial value in place of its second and third
  12849. operands. Here, "nearby" is defined as within the range 0...255
  12850. from the initial value of such an allocated register.
  12851. buffer1 BYTE 0,0,0,0,0
  12852. buffer2 BYTE 0,0,0,0,0
  12853. ...
  12854. GREG buffer1
  12855. LDOU $42,buffer2
  12856. In the example above, the 'Y' field of the 'LDOUI' instruction
  12857. (LDOU with a constant Z) will be replaced with the global register
  12858. allocated for 'buffer1', and the 'Z' field will have the value 5,
  12859. the offset from 'buffer1' to 'buffer2'. The result is equivalent
  12860. to this code:
  12861. buffer1 BYTE 0,0,0,0,0
  12862. buffer2 BYTE 0,0,0,0,0
  12863. ...
  12864. tmpreg GREG buffer1
  12865. LDOU $42,tmpreg,(buffer2-buffer1)
  12866. Global registers allocated with this directive are allocated in
  12867. order higher-to-lower within a file. Other than that, the exact
  12868. order of register allocation and elimination is undefined. For
  12869. example, the order is undefined when more than one file with such
  12870. directives are linked together. With the options '-x' and
  12871. '--linker-allocated-gregs', 'GREG' directives for two-operand cases
  12872. like the one mentioned above can be omitted. Sufficient global
  12873. registers will then be allocated by the linker.
  12874. 'BYTE'
  12875. The 'BYTE' directive takes a series of operands separated by a
  12876. comma. If an operand is a string (*note Strings::), each character
  12877. of that string is emitted as a byte. Other operands must be
  12878. constant expressions without forward references, in the range
  12879. 0...255. If you need operands having expressions with forward
  12880. references, use '.byte' (*note Byte::). An operand can be omitted,
  12881. defaulting to a zero value.
  12882. 'WYDE'
  12883. 'TETRA'
  12884. 'OCTA'
  12885. The directives 'WYDE', 'TETRA' and 'OCTA' emit constants of two,
  12886. four and eight bytes size respectively. Before anything else
  12887. happens for the directive, the current location is aligned to the
  12888. respective constant-size boundary. If a label is defined at the
  12889. beginning of the line, its value will be that after the alignment.
  12890. A single operand can be omitted, defaulting to a zero value emitted
  12891. for the directive. Operands can be expressed as strings (*note
  12892. Strings::), in which case each character in the string is emitted
  12893. as a separate constant of the size indicated by the directive.
  12894. 'PREFIX'
  12895. The 'PREFIX' directive sets a symbol name prefix to be prepended to
  12896. all symbols (except local symbols, *note MMIX-Symbols::), that are
  12897. not prefixed with ':', until the next 'PREFIX' directive. Such
  12898. prefixes accumulate. For example,
  12899. PREFIX a
  12900. PREFIX b
  12901. c IS 0
  12902. defines a symbol 'abc' with the value 0.
  12903. 'BSPEC'
  12904. 'ESPEC'
  12905. A pair of 'BSPEC' and 'ESPEC' directives delimit a section of
  12906. special contents (without specified semantics). Example:
  12907. BSPEC 42
  12908. TETRA 1,2,3
  12909. ESPEC
  12910. The single operand to 'BSPEC' must be number in the range 0...255.
  12911. The 'BSPEC' number 80 is used by the GNU binutils implementation.
  12912. 
  12913. File: as.info, Node: MMIX-mmixal, Prev: MMIX-Syntax, Up: MMIX-Dependent
  12914. 9.28.4 Differences to 'mmixal'
  12915. ------------------------------
  12916. The binutils 'as' and 'ld' combination has a few differences in function
  12917. compared to 'mmixal' (*note mmixsite::).
  12918. The replacement of a symbol with a GREG-allocated register (*note
  12919. GREG-base::) is not handled the exactly same way in 'as' as in 'mmixal'.
  12920. This is apparent in the 'mmixal' example file 'inout.mms', where
  12921. different registers with different offsets, eventually yielding the same
  12922. address, are used in the first instruction. This type of difference
  12923. should however not affect the function of any program unless it has
  12924. specific assumptions about the allocated register number.
  12925. Line numbers (in the 'mmo' object format) are currently not
  12926. supported.
  12927. Expression operator precedence is not that of mmixal: operator
  12928. precedence is that of the C programming language. It's recommended to
  12929. use parentheses to explicitly specify wanted operator precedence
  12930. whenever more than one type of operators are used.
  12931. The serialize unary operator '&', the fractional division operator
  12932. '//', the logical not operator '!' and the modulus operator '%' are not
  12933. available.
  12934. Symbols are not global by default, unless the option
  12935. '--globalize-symbols' is passed. Use the '.global' directive to
  12936. globalize symbols (*note Global::).
  12937. Operand syntax is a bit stricter with 'as' than 'mmixal'. For
  12938. example, you can't say 'addu 1,2,3', instead you must write 'addu
  12939. $1,$2,3'.
  12940. You can't LOC to a lower address than those already visited (i.e.,
  12941. "backwards").
  12942. A LOC directive must come before any emitted code.
  12943. Predefined symbols are visible as file-local symbols after use. (In
  12944. the ELF file, that is--the linked mmo file has no notion of a file-local
  12945. symbol.)
  12946. Some mapping of constant expressions to sections in LOC expressions
  12947. is attempted, but that functionality is easily confused and should be
  12948. avoided unless compatibility with 'mmixal' is required. A LOC
  12949. expression to '0x2000000000000000' or higher, maps to the '.data'
  12950. section and lower addresses map to the '.text' section (*note
  12951. MMIX-loc::).
  12952. The code and data areas are each contiguous. Sparse programs with
  12953. far-away LOC directives will take up the same amount of space as a
  12954. contiguous program with zeros filled in the gaps between the LOC
  12955. directives. If you need sparse programs, you might try and get the
  12956. wanted effect with a linker script and splitting up the code parts into
  12957. sections (*note Section::). Assembly code for this, to be compatible
  12958. with 'mmixal', would look something like:
  12959. .if 0
  12960. LOC away_expression
  12961. .else
  12962. .section away,"ax"
  12963. .fi
  12964. 'as' will not execute the LOC directive and 'mmixal' ignores the
  12965. lines with '.'. This construct can be used generally to help
  12966. compatibility.
  12967. Symbols can't be defined twice-not even to the same value.
  12968. Instruction mnemonics are recognized case-insensitive, though the
  12969. 'IS' and 'GREG' pseudo-operations must be specified in upper-case
  12970. characters.
  12971. There's no unicode support.
  12972. The following is a list of programs in 'mmix.tar.gz', available at
  12973. <http://www-cs-faculty.stanford.edu/~knuth/mmix-news.html>, last checked
  12974. with the version dated 2001-08-25 (md5sum
  12975. c393470cfc86fac040487d22d2bf0172) that assemble with 'mmixal' but do not
  12976. assemble with 'as':
  12977. 'silly.mms'
  12978. LOC to a previous address.
  12979. 'sim.mms'
  12980. Redefines symbol 'Done'.
  12981. 'test.mms'
  12982. Uses the serial operator '&'.
  12983. 
  12984. File: as.info, Node: MSP430-Dependent, Next: NDS32-Dependent, Prev: MMIX-Dependent, Up: Machine Dependencies
  12985. 9.29 MSP 430 Dependent Features
  12986. ===============================
  12987. * Menu:
  12988. * MSP430 Options:: Options
  12989. * MSP430 Syntax:: Syntax
  12990. * MSP430 Floating Point:: Floating Point
  12991. * MSP430 Directives:: MSP 430 Machine Directives
  12992. * MSP430 Opcodes:: Opcodes
  12993. * MSP430 Profiling Capability:: Profiling Capability
  12994. 
  12995. File: as.info, Node: MSP430 Options, Next: MSP430 Syntax, Up: MSP430-Dependent
  12996. 9.29.1 Options
  12997. --------------
  12998. '-mmcu'
  12999. selects the mcu architecture. If the architecture is 430Xv2 then
  13000. this also enables NOP generation unless the '-mN' is also
  13001. specified.
  13002. '-mcpu'
  13003. selects the cpu architecture. If the architecture is 430Xv2 then
  13004. this also enables NOP generation unless the '-mN' is also
  13005. specified.
  13006. '-msilicon-errata=NAME[,NAME...]'
  13007. Implements a fixup for named silicon errata. Multiple silicon
  13008. errata can be specified by multiple uses of the '-msilicon-errata'
  13009. option and/or by including the errata names, separated by commas,
  13010. on an individual '-msilicon-errata' option. Errata names currently
  13011. recognised by the assembler are:
  13012. 'cpu4'
  13013. 'PUSH #4' and 'PUSH #8' need longer encodings on the MSP430.
  13014. This option is enabled by default, and cannot be disabled.
  13015. 'cpu8'
  13016. Do not set the 'SP' to an odd value.
  13017. 'cpu11'
  13018. Do not update the 'SR' and the 'PC' in the same instruction.
  13019. 'cpu12'
  13020. Do not use the 'PC' in a 'CMP' or 'BIT' instruction.
  13021. 'cpu13'
  13022. Do not use an arithmetic instruction to modify the 'SR'.
  13023. 'cpu19'
  13024. Insert 'NOP' after 'CPUOFF'.
  13025. '-msilicon-errata-warn=NAME[,NAME...]'
  13026. Like the '-msilicon-errata' option except that instead of fixing
  13027. the specified errata, a warning message is issued instead. This
  13028. option can be used alongside '-msilicon-errata' to generate
  13029. messages whenever a problem is fixed, or on its own in order to
  13030. inspect code for potential problems.
  13031. '-mP'
  13032. enables polymorph instructions handler.
  13033. '-mQ'
  13034. enables relaxation at assembly time. DANGEROUS!
  13035. '-ml'
  13036. indicates that the input uses the large code model.
  13037. '-mn'
  13038. enables the generation of a NOP instruction following any
  13039. instruction that might change the interrupts enabled/disabled
  13040. state. The pipelined nature of the MSP430 core means that any
  13041. instruction that changes the interrupt state ('EINT', 'DINT', 'BIC
  13042. #8, SR', 'BIS #8, SR' or 'MOV.W <>, SR') must be followed by a NOP
  13043. instruction in order to ensure the correct processing of
  13044. interrupts. By default it is up to the programmer to supply these
  13045. NOP instructions, but this command-line option enables the
  13046. automatic insertion by the assembler, if they are missing.
  13047. '-mN'
  13048. disables the generation of a NOP instruction following any
  13049. instruction that might change the interrupts enabled/disabled
  13050. state. This is the default behaviour.
  13051. '-my'
  13052. tells the assembler to generate a warning message if a NOP does not
  13053. immediately follow an instruction that enables or disables
  13054. interrupts. This is the default.
  13055. Note that this option can be stacked with the '-mn' option so that
  13056. the assembler will both warn about missing NOP instructions and
  13057. then insert them automatically.
  13058. '-mY'
  13059. disables warnings about missing NOP instructions.
  13060. '-md'
  13061. mark the object file as one that requires data to copied from ROM
  13062. to RAM at execution startup. Disabled by default.
  13063. '-mdata-region=REGION'
  13064. Select the region data will be placed in. Region placement is
  13065. performed by the compiler and linker. The only effect this option
  13066. will have on the assembler is that if UPPER or EITHER is selected,
  13067. then the symbols to initialise high data and bss will be defined.
  13068. Valid REGION values are:
  13069. 'none'
  13070. 'lower'
  13071. 'upper'
  13072. 'either'
  13073. 
  13074. File: as.info, Node: MSP430 Syntax, Next: MSP430 Floating Point, Prev: MSP430 Options, Up: MSP430-Dependent
  13075. 9.29.2 Syntax
  13076. -------------
  13077. * Menu:
  13078. * MSP430-Macros:: Macros
  13079. * MSP430-Chars:: Special Characters
  13080. * MSP430-Regs:: Register Names
  13081. * MSP430-Ext:: Assembler Extensions
  13082. 
  13083. File: as.info, Node: MSP430-Macros, Next: MSP430-Chars, Up: MSP430 Syntax
  13084. 9.29.2.1 Macros
  13085. ...............
  13086. The macro syntax used on the MSP 430 is like that described in the MSP
  13087. 430 Family Assembler Specification. Normal 'as' macros should still
  13088. work.
  13089. Additional built-in macros are:
  13090. 'llo(exp)'
  13091. Extracts least significant word from 32-bit expression 'exp'.
  13092. 'lhi(exp)'
  13093. Extracts most significant word from 32-bit expression 'exp'.
  13094. 'hlo(exp)'
  13095. Extracts 3rd word from 64-bit expression 'exp'.
  13096. 'hhi(exp)'
  13097. Extracts 4rd word from 64-bit expression 'exp'.
  13098. They normally being used as an immediate source operand.
  13099. mov #llo(1), r10 ; == mov #1, r10
  13100. mov #lhi(1), r10 ; == mov #0, r10
  13101. 
  13102. File: as.info, Node: MSP430-Chars, Next: MSP430-Regs, Prev: MSP430-Macros, Up: MSP430 Syntax
  13103. 9.29.2.2 Special Characters
  13104. ...........................
  13105. A semicolon (';') appearing anywhere on a line starts a comment that
  13106. extends to the end of that line.
  13107. If a '#' appears as the first character of a line then the whole line
  13108. is treated as a comment, but it can also be a logical line number
  13109. directive (*note Comments::) or a preprocessor control command (*note
  13110. Preprocessing::).
  13111. Multiple statements can appear on the same line provided that they
  13112. are separated by the '{' character.
  13113. The character '$' in jump instructions indicates current location and
  13114. implemented only for TI syntax compatibility.
  13115. 
  13116. File: as.info, Node: MSP430-Regs, Next: MSP430-Ext, Prev: MSP430-Chars, Up: MSP430 Syntax
  13117. 9.29.2.3 Register Names
  13118. .......................
  13119. General-purpose registers are represented by predefined symbols of the
  13120. form 'rN' (for global registers), where N represents a number between
  13121. '0' and '15'. The leading letters may be in either upper or lower case;
  13122. for example, 'r13' and 'R7' are both valid register names.
  13123. Register names 'PC', 'SP' and 'SR' cannot be used as register names
  13124. and will be treated as variables. Use 'r0', 'r1', and 'r2' instead.
  13125. 
  13126. File: as.info, Node: MSP430-Ext, Prev: MSP430-Regs, Up: MSP430 Syntax
  13127. 9.29.2.4 Assembler Extensions
  13128. .............................
  13129. '@rN'
  13130. As destination operand being treated as '0(rn)'
  13131. '0(rN)'
  13132. As source operand being treated as '@rn'
  13133. 'jCOND +N'
  13134. Skips next N bytes followed by jump instruction and equivalent to
  13135. 'jCOND $+N+2'
  13136. Also, there are some instructions, which cannot be found in other
  13137. assemblers. These are branch instructions, which has different opcodes
  13138. upon jump distance. They all got PC relative addressing mode.
  13139. 'beq label'
  13140. A polymorph instruction which is 'jeq label' in case if jump
  13141. distance within allowed range for cpu's jump instruction. If not,
  13142. this unrolls into a sequence of
  13143. jne $+6
  13144. br label
  13145. 'bne label'
  13146. A polymorph instruction which is 'jne label' or 'jeq +4; br label'
  13147. 'blt label'
  13148. A polymorph instruction which is 'jl label' or 'jge +4; br label'
  13149. 'bltn label'
  13150. A polymorph instruction which is 'jn label' or 'jn +2; jmp +4; br
  13151. label'
  13152. 'bltu label'
  13153. A polymorph instruction which is 'jlo label' or 'jhs +2; br label'
  13154. 'bge label'
  13155. A polymorph instruction which is 'jge label' or 'jl +4; br label'
  13156. 'bgeu label'
  13157. A polymorph instruction which is 'jhs label' or 'jlo +4; br label'
  13158. 'bgt label'
  13159. A polymorph instruction which is 'jeq +2; jge label' or 'jeq +6; jl
  13160. +4; br label'
  13161. 'bgtu label'
  13162. A polymorph instruction which is 'jeq +2; jhs label' or 'jeq +6;
  13163. jlo +4; br label'
  13164. 'bleu label'
  13165. A polymorph instruction which is 'jeq label; jlo label' or 'jeq +2;
  13166. jhs +4; br label'
  13167. 'ble label'
  13168. A polymorph instruction which is 'jeq label; jl label' or 'jeq +2;
  13169. jge +4; br label'
  13170. 'jump label'
  13171. A polymorph instruction which is 'jmp label' or 'br label'
  13172. 
  13173. File: as.info, Node: MSP430 Floating Point, Next: MSP430 Directives, Prev: MSP430 Syntax, Up: MSP430-Dependent
  13174. 9.29.3 Floating Point
  13175. ---------------------
  13176. The MSP 430 family uses IEEE 32-bit floating-point numbers.
  13177. 
  13178. File: as.info, Node: MSP430 Directives, Next: MSP430 Opcodes, Prev: MSP430 Floating Point, Up: MSP430-Dependent
  13179. 9.29.4 MSP 430 Machine Directives
  13180. ---------------------------------
  13181. '.file'
  13182. This directive is ignored; it is accepted for compatibility with
  13183. other MSP 430 assemblers.
  13184. _Warning:_ in other versions of the GNU assembler, '.file' is
  13185. used for the directive called '.app-file' in the MSP 430
  13186. support.
  13187. '.line'
  13188. This directive is ignored; it is accepted for compatibility with
  13189. other MSP 430 assemblers.
  13190. '.arch'
  13191. Sets the target microcontroller in the same way as the '-mmcu'
  13192. command-line option.
  13193. '.cpu'
  13194. Sets the target architecture in the same way as the '-mcpu'
  13195. command-line option.
  13196. '.profiler'
  13197. This directive instructs assembler to add new profile entry to the
  13198. object file.
  13199. '.refsym'
  13200. This directive instructs assembler to add an undefined reference to
  13201. the symbol following the directive. The maximum symbol name length
  13202. is 1023 characters. No relocation is created for this symbol; it
  13203. will exist purely for pulling in object files from archives. Note
  13204. that this reloc is not sufficient to prevent garbage collection;
  13205. use a KEEP() directive in the linker file to preserve such objects.
  13206. '.mspabi_attribute'
  13207. This directive tells the assembler what the MSPABI build attributes
  13208. for this file are. This is used for validating the command line
  13209. options passed to the assembler against the options the original
  13210. source file was compiled with. The expected format is:
  13211. '.mspabi_attribute tag_name, tag_value' For example, to set the tag
  13212. 'OFBA_MSPABI_Tag_ISA' to 'MSP430X': '.mspabi_attribute 4, 2'
  13213. See the 'MSP430 EABI, document slaa534' for the details on tag
  13214. names and values.
  13215. 
  13216. File: as.info, Node: MSP430 Opcodes, Next: MSP430 Profiling Capability, Prev: MSP430 Directives, Up: MSP430-Dependent
  13217. 9.29.5 Opcodes
  13218. --------------
  13219. 'as' implements all the standard MSP 430 opcodes. No additional
  13220. pseudo-instructions are needed on this family.
  13221. For information on the 430 machine instruction set, see 'MSP430
  13222. User's Manual, document slau049d', Texas Instrument, Inc.
  13223. 
  13224. File: as.info, Node: MSP430 Profiling Capability, Prev: MSP430 Opcodes, Up: MSP430-Dependent
  13225. 9.29.6 Profiling Capability
  13226. ---------------------------
  13227. It is a performance hit to use gcc's profiling approach for this tiny
  13228. target. Even more - jtag hardware facility does not perform any
  13229. profiling functions. However we've got gdb's built-in simulator where
  13230. we can do anything.
  13231. We define new section '.profiler' which holds all profiling
  13232. information. We define new pseudo operation '.profiler' which will
  13233. instruct assembler to add new profile entry to the object file. Profile
  13234. should take place at the present address.
  13235. Pseudo operation format:
  13236. '.profiler flags,function_to_profile [, cycle_corrector, extra]'
  13237. where:
  13238. 'flags' is a combination of the following characters:
  13239. 's'
  13240. function entry
  13241. 'x'
  13242. function exit
  13243. 'i'
  13244. function is in init section
  13245. 'f'
  13246. function is in fini section
  13247. 'l'
  13248. library call
  13249. 'c'
  13250. libc standard call
  13251. 'd'
  13252. stack value demand
  13253. 'I'
  13254. interrupt service routine
  13255. 'P'
  13256. prologue start
  13257. 'p'
  13258. prologue end
  13259. 'E'
  13260. epilogue start
  13261. 'e'
  13262. epilogue end
  13263. 'j'
  13264. long jump / sjlj unwind
  13265. 'a'
  13266. an arbitrary code fragment
  13267. 't'
  13268. extra parameter saved (a constant value like frame size)
  13269. 'function_to_profile'
  13270. a function address
  13271. 'cycle_corrector'
  13272. a value which should be added to the cycle counter, zero if
  13273. omitted.
  13274. 'extra'
  13275. any extra parameter, zero if omitted.
  13276. For example:
  13277. .global fxx
  13278. .type fxx,@function
  13279. fxx:
  13280. .LFrameOffset_fxx=0x08
  13281. .profiler "scdP", fxx ; function entry.
  13282. ; we also demand stack value to be saved
  13283. push r11
  13284. push r10
  13285. push r9
  13286. push r8
  13287. .profiler "cdpt",fxx,0, .LFrameOffset_fxx ; check stack value at this point
  13288. ; (this is a prologue end)
  13289. ; note, that spare var filled with
  13290. ; the farme size
  13291. mov r15,r8
  13292. ...
  13293. .profiler cdE,fxx ; check stack
  13294. pop r8
  13295. pop r9
  13296. pop r10
  13297. pop r11
  13298. .profiler xcde,fxx,3 ; exit adds 3 to the cycle counter
  13299. ret ; cause 'ret' insn takes 3 cycles
  13300. 
  13301. File: as.info, Node: NDS32-Dependent, Next: NiosII-Dependent, Prev: MSP430-Dependent, Up: Machine Dependencies
  13302. 9.30 NDS32 Dependent Features
  13303. =============================
  13304. The NDS32 processors family includes high-performance and low-power
  13305. 32-bit processors for high-end to low-end. GNU 'as' for NDS32
  13306. architectures supports NDS32 ISA version 3. For detail about NDS32
  13307. instruction set, please see the AndeStar ISA User Manual which is
  13308. available at http://www.andestech.com/en/index/index.htm
  13309. * Menu:
  13310. * NDS32 Options:: Assembler options
  13311. * NDS32 Syntax:: High-level assembly macros
  13312. 
  13313. File: as.info, Node: NDS32 Options, Next: NDS32 Syntax, Up: NDS32-Dependent
  13314. 9.30.1 NDS32 Options
  13315. --------------------
  13316. The NDS32 configurations of GNU 'as' support these special options:
  13317. '-O1'
  13318. Optimize for performance.
  13319. '-Os'
  13320. Optimize for space.
  13321. '-EL'
  13322. Produce little endian data output.
  13323. '-EB'
  13324. Produce little endian data output.
  13325. '-mpic'
  13326. Generate PIC.
  13327. '-mno-fp-as-gp-relax'
  13328. Suppress fp-as-gp relaxation for this file.
  13329. '-mb2bb-relax'
  13330. Back-to-back branch optimization.
  13331. '-mno-all-relax'
  13332. Suppress all relaxation for this file.
  13333. '-march=<arch name>'
  13334. Assemble for architecture <arch name> which could be v3, v3j, v3m,
  13335. v3f, v3s, v2, v2j, v2f, v2s.
  13336. '-mbaseline=<baseline>'
  13337. Assemble for baseline <baseline> which could be v2, v3, v3m.
  13338. '-mfpu-freg=FREG'
  13339. Specify a FPU configuration.
  13340. '0 8 SP / 4 DP registers'
  13341. '1 16 SP / 8 DP registers'
  13342. '2 32 SP / 16 DP registers'
  13343. '3 32 SP / 32 DP registers'
  13344. '-mabi=ABI'
  13345. Specify a abi version <abi> could be v1, v2, v2fp, v2fpp.
  13346. '-m[no-]mac'
  13347. Enable/Disable Multiply instructions support.
  13348. '-m[no-]div'
  13349. Enable/Disable Divide instructions support.
  13350. '-m[no-]16bit-ext'
  13351. Enable/Disable 16-bit extension
  13352. '-m[no-]dx-regs'
  13353. Enable/Disable d0/d1 registers
  13354. '-m[no-]perf-ext'
  13355. Enable/Disable Performance extension
  13356. '-m[no-]perf2-ext'
  13357. Enable/Disable Performance extension 2
  13358. '-m[no-]string-ext'
  13359. Enable/Disable String extension
  13360. '-m[no-]reduced-regs'
  13361. Enable/Disable Reduced Register configuration (GPR16) option
  13362. '-m[no-]audio-isa-ext'
  13363. Enable/Disable AUDIO ISA extension
  13364. '-m[no-]fpu-sp-ext'
  13365. Enable/Disable FPU SP extension
  13366. '-m[no-]fpu-dp-ext'
  13367. Enable/Disable FPU DP extension
  13368. '-m[no-]fpu-fma'
  13369. Enable/Disable FPU fused-multiply-add instructions
  13370. '-mall-ext'
  13371. Turn on all extensions and instructions support
  13372. 
  13373. File: as.info, Node: NDS32 Syntax, Prev: NDS32 Options, Up: NDS32-Dependent
  13374. 9.30.2 Syntax
  13375. -------------
  13376. * Menu:
  13377. * NDS32-Chars:: Special Characters
  13378. * NDS32-Regs:: Register Names
  13379. * NDS32-Ops:: Pseudo Instructions
  13380. 
  13381. File: as.info, Node: NDS32-Chars, Next: NDS32-Regs, Up: NDS32 Syntax
  13382. 9.30.2.1 Special Characters
  13383. ...........................
  13384. Use '#' at column 1 and '!' anywhere in the line except inside quotes.
  13385. Multiple instructions in a line are allowed though not recommended
  13386. and should be separated by ';'.
  13387. Assembler is not case-sensitive in general except user defined label.
  13388. For example, 'jral F1' is different from 'jral f1' while it is the same
  13389. as 'JRAL F1'.
  13390. 
  13391. File: as.info, Node: NDS32-Regs, Next: NDS32-Ops, Prev: NDS32-Chars, Up: NDS32 Syntax
  13392. 9.30.2.2 Register Names
  13393. .......................
  13394. 'General purpose registers (GPR)'
  13395. There are 32 32-bit general purpose registers $r0 to $r31.
  13396. 'Accumulators d0 and d1'
  13397. 64-bit accumulators: $d0.hi, $d0.lo, $d1.hi, and $d1.lo.
  13398. 'Assembler reserved register $ta'
  13399. Register $ta ($r15) is reserved for assembler using.
  13400. 'Operating system reserved registers $p0 and $p1'
  13401. Registers $p0 ($r26) and $p1 ($r27) are used by operating system as
  13402. scratch registers.
  13403. 'Frame pointer $fp'
  13404. Register $r28 is regarded as the frame pointer.
  13405. 'Global pointer'
  13406. Register $r29 is regarded as the global pointer.
  13407. 'Link pointer'
  13408. Register $r30 is regarded as the link pointer.
  13409. 'Stack pointer'
  13410. Register $r31 is regarded as the stack pointer.
  13411. 
  13412. File: as.info, Node: NDS32-Ops, Prev: NDS32-Regs, Up: NDS32 Syntax
  13413. 9.30.2.3 Pseudo Instructions
  13414. ............................
  13415. 'li rt5,imm32'
  13416. load 32-bit integer into register rt5. 'sethi rt5,hi20(imm32)' and
  13417. then 'ori rt5,reg,lo12(imm32)'.
  13418. 'la rt5,var'
  13419. Load 32-bit address of var into register rt5. 'sethi
  13420. rt5,hi20(var)' and then 'ori reg,rt5,lo12(var)'
  13421. 'l.[bhw] rt5,var'
  13422. Load value of var into register rt5. 'sethi $ta,hi20(var)' and
  13423. then 'l[bhw]i rt5,[$ta+lo12(var)]'
  13424. 'l.[bh]s rt5,var'
  13425. Load value of var into register rt5. 'sethi $ta,hi20(var)' and
  13426. then 'l[bh]si rt5,[$ta+lo12(var)]'
  13427. 'l.[bhw]p rt5,var,inc'
  13428. Load value of var into register rt5 and increment $ta by amount
  13429. inc. 'la $ta,var' and then 'l[bhw]i.bi rt5,[$ta],inc'
  13430. 'l.[bhw]pc rt5,inc'
  13431. Continue loading value of var into register rt5 and increment $ta
  13432. by amount inc. 'l[bhw]i.bi rt5,[$ta],inc.'
  13433. 'l.[bh]sp rt5,var,inc'
  13434. Load value of var into register rt5 and increment $ta by amount
  13435. inc. 'la $ta,var' and then 'l[bh]si.bi rt5,[$ta],inc'
  13436. 'l.[bh]spc rt5,inc'
  13437. Continue loading value of var into register rt5 and increment $ta
  13438. by amount inc. 'l[bh]si.bi rt5,[$ta],inc.'
  13439. 's.[bhw] rt5,var'
  13440. Store register rt5 to var. 'sethi $ta,hi20(var)' and then 's[bhw]i
  13441. rt5,[$ta+lo12(var)]'
  13442. 's.[bhw]p rt5,var,inc'
  13443. Store register rt5 to var and increment $ta by amount inc. 'la
  13444. $ta,var' and then 's[bhw]i.bi rt5,[$ta],inc'
  13445. 's.[bhw]pc rt5,inc'
  13446. Continue storing register rt5 to var and increment $ta by amount
  13447. inc. 's[bhw]i.bi rt5,[$ta],inc.'
  13448. 'not rt5,ra5'
  13449. Alias of 'nor rt5,ra5,ra5'.
  13450. 'neg rt5,ra5'
  13451. Alias of 'subri rt5,ra5,0'.
  13452. 'br rb5'
  13453. Depending on how it is assembled, it is translated into 'r5 rb5' or
  13454. 'jr rb5'.
  13455. 'b label'
  13456. Branch to label depending on how it is assembled, it is translated
  13457. into 'j8 label', 'j label', or "'la $ta,label' 'br $ta'".
  13458. 'bral rb5'
  13459. Alias of jral br5 depending on how it is assembled, it is
  13460. translated into 'jral5 rb5' or 'jral rb5'.
  13461. 'bal fname'
  13462. Alias of jal fname depending on how it is assembled, it is
  13463. translated into 'jal fname' or "'la $ta,fname' 'bral $ta'".
  13464. 'call fname'
  13465. Call function fname same as 'jal fname'.
  13466. 'move rt5,ra5'
  13467. For 16-bit, this is 'mov55 rt5,ra5'. For no 16-bit, this is 'ori
  13468. rt5,ra5,0'.
  13469. 'move rt5,var'
  13470. This is the same as 'l.w rt5,var'.
  13471. 'move rt5,imm32'
  13472. This is the same as 'li rt5,imm32'.
  13473. 'pushm ra5,rb5'
  13474. Push contents of registers from ra5 to rb5 into stack.
  13475. 'push ra5'
  13476. Push content of register ra5 into stack. (same 'pushm ra5,ra5').
  13477. 'push.d var'
  13478. Push value of double-word variable var into stack.
  13479. 'push.w var'
  13480. Push value of word variable var into stack.
  13481. 'push.h var'
  13482. Push value of half-word variable var into stack.
  13483. 'push.b var'
  13484. Push value of byte variable var into stack.
  13485. 'pusha var'
  13486. Push 32-bit address of variable var into stack.
  13487. 'pushi imm32'
  13488. Push 32-bit immediate value into stack.
  13489. 'popm ra5,rb5'
  13490. Pop top of stack values into registers ra5 to rb5.
  13491. 'pop rt5'
  13492. Pop top of stack value into register. (same as 'popm rt5,rt5'.)
  13493. 'pop.d var,ra5'
  13494. Pop value of double-word variable var from stack using register ra5
  13495. as 2nd scratch register. (1st is $ta)
  13496. 'pop.w var,ra5'
  13497. Pop value of word variable var from stack using register ra5.
  13498. 'pop.h var,ra5'
  13499. Pop value of half-word variable var from stack using register ra5.
  13500. 'pop.b var,ra5'
  13501. Pop value of byte variable var from stack using register ra5.
  13502. 
  13503. File: as.info, Node: NiosII-Dependent, Next: NS32K-Dependent, Prev: NDS32-Dependent, Up: Machine Dependencies
  13504. 9.31 Nios II Dependent Features
  13505. ===============================
  13506. * Menu:
  13507. * Nios II Options:: Options
  13508. * Nios II Syntax:: Syntax
  13509. * Nios II Relocations:: Relocations
  13510. * Nios II Directives:: Nios II Machine Directives
  13511. * Nios II Opcodes:: Opcodes
  13512. 
  13513. File: as.info, Node: Nios II Options, Next: Nios II Syntax, Up: NiosII-Dependent
  13514. 9.31.1 Options
  13515. --------------
  13516. '-relax-section'
  13517. Replace identified out-of-range branches with PC-relative 'jmp'
  13518. sequences when possible. The generated code sequences are suitable
  13519. for use in position-independent code, but there is a practical
  13520. limit on the extended branch range because of the length of the
  13521. sequences. This option is the default.
  13522. '-relax-all'
  13523. Replace branch instructions not determinable to be in range and all
  13524. call instructions with 'jmp' and 'callr' sequences (respectively).
  13525. This option generates absolute relocations against the target
  13526. symbols and is not appropriate for position-independent code.
  13527. '-no-relax'
  13528. Do not replace any branches or calls.
  13529. '-EB'
  13530. Generate big-endian output.
  13531. '-EL'
  13532. Generate little-endian output. This is the default.
  13533. '-march=ARCHITECTURE'
  13534. This option specifies the target architecture. The assembler
  13535. issues an error message if an attempt is made to assemble an
  13536. instruction which will not execute on the target architecture. The
  13537. following architecture names are recognized: 'r1', 'r2'. The
  13538. default is 'r1'.
  13539. 
  13540. File: as.info, Node: Nios II Syntax, Next: Nios II Relocations, Prev: Nios II Options, Up: NiosII-Dependent
  13541. 9.31.2 Syntax
  13542. -------------
  13543. * Menu:
  13544. * Nios II Chars:: Special Characters
  13545. 
  13546. File: as.info, Node: Nios II Chars, Up: Nios II Syntax
  13547. 9.31.2.1 Special Characters
  13548. ...........................
  13549. '#' is the line comment character. ';' is the line separator character.
  13550. 
  13551. File: as.info, Node: Nios II Relocations, Next: Nios II Directives, Prev: Nios II Syntax, Up: NiosII-Dependent
  13552. 9.31.3 Nios II Machine Relocations
  13553. ----------------------------------
  13554. '%hiadj(EXPRESSION)'
  13555. Extract the upper 16 bits of EXPRESSION and add one if the 15th bit
  13556. is set.
  13557. The value of '%hiadj(EXPRESSION)' is:
  13558. ((EXPRESSION >> 16) & 0xffff) + ((EXPRESSION >> 15) & 0x01)
  13559. The '%hiadj' relocation is intended to be used with the 'addi',
  13560. 'ld' or 'st' instructions along with a '%lo', in order to load a
  13561. 32-bit constant.
  13562. movhi r2, %hiadj(symbol)
  13563. addi r2, r2, %lo(symbol)
  13564. '%hi(EXPRESSION)'
  13565. Extract the upper 16 bits of EXPRESSION.
  13566. '%lo(EXPRESSION)'
  13567. Extract the lower 16 bits of EXPRESSION.
  13568. '%gprel(EXPRESSION)'
  13569. Subtract the value of the symbol '_gp' from EXPRESSION.
  13570. The intention of the '%gprel' relocation is to have a fast small
  13571. area of memory which only takes a 16-bit immediate to access.
  13572. .section .sdata
  13573. fastint:
  13574. .int 123
  13575. .section .text
  13576. ldw r4, %gprel(fastint)(gp)
  13577. '%call(EXPRESSION)'
  13578. '%call_lo(EXPRESSION)'
  13579. '%call_hiadj(EXPRESSION)'
  13580. '%got(EXPRESSION)'
  13581. '%got_lo(EXPRESSION)'
  13582. '%got_hiadj(EXPRESSION)'
  13583. '%gotoff(EXPRESSION)'
  13584. '%gotoff_lo(EXPRESSION)'
  13585. '%gotoff_hiadj(EXPRESSION)'
  13586. '%tls_gd(EXPRESSION)'
  13587. '%tls_ie(EXPRESSION)'
  13588. '%tls_le(EXPRESSION)'
  13589. '%tls_ldm(EXPRESSION)'
  13590. '%tls_ldo(EXPRESSION)'
  13591. These relocations support the ABI for Linux Systems documented in
  13592. the 'Nios II Processor Reference Handbook'.
  13593. 
  13594. File: as.info, Node: Nios II Directives, Next: Nios II Opcodes, Prev: Nios II Relocations, Up: NiosII-Dependent
  13595. 9.31.4 Nios II Machine Directives
  13596. ---------------------------------
  13597. '.align EXPRESSION [, EXPRESSION]'
  13598. This is the generic '.align' directive, however this aligns to a
  13599. power of two.
  13600. '.half EXPRESSION'
  13601. Create an aligned constant 2 bytes in size.
  13602. '.word EXPRESSION'
  13603. Create an aligned constant 4 bytes in size.
  13604. '.dword EXPRESSION'
  13605. Create an aligned constant 8 bytes in size.
  13606. '.2byte EXPRESSION'
  13607. Create an unaligned constant 2 bytes in size.
  13608. '.4byte EXPRESSION'
  13609. Create an unaligned constant 4 bytes in size.
  13610. '.8byte EXPRESSION'
  13611. Create an unaligned constant 8 bytes in size.
  13612. '.16byte EXPRESSION'
  13613. Create an unaligned constant 16 bytes in size.
  13614. '.set noat'
  13615. Allows assembly code to use 'at' register without warning. Macro
  13616. or relaxation expansions generate warnings.
  13617. '.set at'
  13618. Assembly code using 'at' register generates warnings, and macro
  13619. expansion and relaxation are enabled.
  13620. '.set nobreak'
  13621. Allows assembly code to use 'ba' and 'bt' registers without
  13622. warning.
  13623. '.set break'
  13624. Turns warnings back on for using 'ba' and 'bt' registers.
  13625. '.set norelax'
  13626. Do not replace any branches or calls.
  13627. '.set relaxsection'
  13628. Replace identified out-of-range branches with 'jmp' sequences
  13629. (default).
  13630. '.set relaxsection'
  13631. Replace all branch and call instructions with 'jmp' and 'callr'
  13632. sequences.
  13633. '.set ...'
  13634. All other '.set' are the normal use.
  13635. 
  13636. File: as.info, Node: Nios II Opcodes, Prev: Nios II Directives, Up: NiosII-Dependent
  13637. 9.31.5 Opcodes
  13638. --------------
  13639. 'as' implements all the standard Nios II opcodes documented in the 'Nios
  13640. II Processor Reference Handbook', including the assembler
  13641. pseudo-instructions.
  13642. 
  13643. File: as.info, Node: NS32K-Dependent, Next: OpenRISC-Dependent, Prev: NiosII-Dependent, Up: Machine Dependencies
  13644. 9.32 NS32K Dependent Features
  13645. =============================
  13646. * Menu:
  13647. * NS32K Syntax:: Syntax
  13648. 
  13649. File: as.info, Node: NS32K Syntax, Up: NS32K-Dependent
  13650. 9.32.1 Syntax
  13651. -------------
  13652. * Menu:
  13653. * NS32K-Chars:: Special Characters
  13654. 
  13655. File: as.info, Node: NS32K-Chars, Up: NS32K Syntax
  13656. 9.32.1.1 Special Characters
  13657. ...........................
  13658. The presence of a '#' appearing anywhere on a line indicates the start
  13659. of a comment that extends to the end of that line.
  13660. If a '#' appears as the first character of a line then the whole line
  13661. is treated as a comment, but in this case the line can also be a logical
  13662. line number directive (*note Comments::) or a preprocessor control
  13663. command (*note Preprocessing::).
  13664. If Sequent compatibility has been configured into the assembler then
  13665. the '|' character appearing as the first character on a line will also
  13666. indicate the start of a line comment.
  13667. The ';' character can be used to separate statements on the same
  13668. line.
  13669. 
  13670. File: as.info, Node: OpenRISC-Dependent, Next: PDP-11-Dependent, Prev: NS32K-Dependent, Up: Machine Dependencies
  13671. 9.33 OPENRISC Dependent Features
  13672. ================================
  13673. * Menu:
  13674. * OpenRISC-Syntax:: Syntax
  13675. * OpenRISC-Float:: Floating Point
  13676. * OpenRISC-Directives:: OpenRISC Machine Directives
  13677. * OpenRISC-Opcodes:: Opcodes
  13678. 
  13679. File: as.info, Node: OpenRISC-Syntax, Next: OpenRISC-Float, Up: OpenRISC-Dependent
  13680. 9.33.1 OpenRISC Syntax
  13681. ----------------------
  13682. The assembler syntax follows the OpenRISC 1000 Architecture Manual.
  13683. * Menu:
  13684. * OpenRISC-Chars:: Special Characters
  13685. * OpenRISC-Regs:: Register Names
  13686. * OpenRISC-Relocs:: Relocations
  13687. 
  13688. File: as.info, Node: OpenRISC-Chars, Next: OpenRISC-Regs, Up: OpenRISC-Syntax
  13689. 9.33.1.1 Special Characters
  13690. ...........................
  13691. A '#' character appearing anywhere on a line indicates the start of a
  13692. comment that extends to the end of that line.
  13693. ';' can be used instead of a newline to separate statements.
  13694. 
  13695. File: as.info, Node: OpenRISC-Regs, Next: OpenRISC-Relocs, Prev: OpenRISC-Chars, Up: OpenRISC-Syntax
  13696. 9.33.1.2 Register Names
  13697. .......................
  13698. The OpenRISC register file contains 32 general pupose registers.
  13699. * The 32 general purpose registers are referred to as 'rN'.
  13700. * The stack pointer register 'r1' can be referenced using the alias
  13701. 'sp'.
  13702. * The frame pointer register 'r2' can be referenced using the alias
  13703. 'fp'.
  13704. * The link register 'r9' can be referenced using the alias 'lr'.
  13705. Floating point operations use the same general purpose registers.
  13706. The instructions 'lf.itof.s' (single precision) and 'lf.itof.d' (double
  13707. precision) can be used to convert integer values to floating point.
  13708. Likewise, instructions 'lf.ftoi.s' (single precision) and 'lf.ftoi.d'
  13709. (double precision) can be used to convert floating point to integer.
  13710. OpenRISC also contains privileged special purpose registers (SPRs).
  13711. The SPRs are accessed using the 'l.mfspr' and 'l.mtspr' instructions.
  13712. 
  13713. File: as.info, Node: OpenRISC-Relocs, Prev: OpenRISC-Regs, Up: OpenRISC-Syntax
  13714. 9.33.1.3 Relocations
  13715. ....................
  13716. ELF relocations are available as defined in the OpenRISC architecture
  13717. specification.
  13718. 'R_OR1K_HI_16_IN_INSN' is obtained using 'hi' and
  13719. 'R_OR1K_LO_16_IN_INSN' and 'R_OR1K_SLO16' are obtained using 'lo'. For
  13720. signed offsets 'R_OR1K_AHI16' is obtained from 'ha'. For example:
  13721. l.movhi r5, hi(symbol)
  13722. l.ori r5, r5, lo(symbol)
  13723. l.movhi r5, ha(symbol)
  13724. l.addi r5, r5, lo(symbol)
  13725. These "high" mnemonics extract bits 31:16 of their operand, and the
  13726. "low" mnemonics extract bits 15:0 of their operand.
  13727. The PC relative relocation 'R_OR1K_GOTPC_HI16' can be obtained by
  13728. enclosing an operand inside of 'gotpchi'. Likewise, the
  13729. 'R_OR1K_GOTPC_LO16' relocation can be obtained using 'gotpclo'. These
  13730. are mostly used when assembling PIC code. For example, the standard PIC
  13731. sequence on OpenRISC to get the base of the global offset table, PC
  13732. relative, into a register, can be performed as:
  13733. l.jal 0x8
  13734. l.movhi r17, gotpchi(_GLOBAL_OFFSET_TABLE_-4)
  13735. l.ori r17, r17, gotpclo(_GLOBAL_OFFSET_TABLE_+0)
  13736. l.add r17, r17, r9
  13737. Several relocations exist to allow the link editor to perform GOT
  13738. data references. The 'R_OR1K_GOT16' relocation can obtained by
  13739. enclosing an operand inside of 'got'. For example, assuming the GOT
  13740. base is in register 'r17'.
  13741. l.lwz r19, got(a)(r17)
  13742. l.lwz r21, 0(r19)
  13743. Also, several relocations exist for local GOT references. The
  13744. 'R_OR1K_GOTOFF_AHI16' relocation can obtained by enclosing an operand
  13745. inside of 'gotoffha'. Likewise, 'R_OR1K_GOTOFF_LO16' and
  13746. 'R_OR1K_GOTOFF_SLO16' can be obtained by enclosing an operand inside of
  13747. 'gotofflo'. For example, assuming the GOT base is in register 'rl7':
  13748. l.movhi r19, gotoffha(symbol)
  13749. l.add r19, r19, r17
  13750. l.lwz r19, gotofflo(symbol)(r19)
  13751. The above PC relative relocations use a 'l.jal' (jump) instruction
  13752. and reading of the link register to load the PC. OpenRISC also supports
  13753. page offset PC relative locations without a jump instruction using the
  13754. 'l.adrp' instruction. By default the 'l.adrp' instruction will create
  13755. an 'R_OR1K_PCREL_PG21' relocation. Likewise, 'BFD_RELOC_OR1K_LO13' and
  13756. 'BFD_RELOC_OR1K_SLO13' can be obtained by enclosing an operand inside of
  13757. 'po'. For example:
  13758. l.adrp r3, symbol
  13759. l.ori r4, r3, po(symbol)
  13760. l.lbz r5, po(symbol)(r3)
  13761. l.sb po(symbol)(r3), r6
  13762. Likewise the page offset relocations can be used with GOT references.
  13763. The relocation 'R_OR1K_GOT_PG21' can be obtained by enclosing an
  13764. 'l.adrp' immediate operand inside of 'got'. Likewise, 'R_OR1K_GOT_LO13'
  13765. can be obtained by enclosing an operand inside of 'gotpo'. For example
  13766. to load the value of a GOT symbol into register 'r5' we can do:
  13767. l.adrp r17, got(_GLOBAL_OFFSET_TABLE_)
  13768. l.lwz r5, gotpo(symbol)(r17)
  13769. There are many relocations that can be requested for access to thread
  13770. local storage variables. All of the OpenRISC TLS mnemonics are
  13771. supported:
  13772. * 'R_OR1K_TLS_GD_HI16' is requested using 'tlsgdhi'.
  13773. * 'R_OR1K_TLS_GD_LO16' is requested using 'tlsgdlo'.
  13774. * 'R_OR1K_TLS_GD_PG21' is requested using 'tldgd'.
  13775. * 'R_OR1K_TLS_GD_LO13' is requested using 'tlsgdpo'.
  13776. * 'R_OR1K_TLS_LDM_HI16' is requested using 'tlsldmhi'.
  13777. * 'R_OR1K_TLS_LDM_LO16' is requested using 'tlsldmlo'.
  13778. * 'R_OR1K_TLS_LDM_PG21' is requested using 'tldldm'.
  13779. * 'R_OR1K_TLS_LDM_LO13' is requested using 'tlsldmpo'.
  13780. * 'R_OR1K_TLS_LDO_HI16' is requested using 'dtpoffhi'.
  13781. * 'R_OR1K_TLS_LDO_LO16' is requested using 'dtpofflo'.
  13782. * 'R_OR1K_TLS_IE_HI16' is requested using 'gottpoffhi'.
  13783. * 'R_OR1K_TLS_IE_AHI16' is requested using 'gottpoffha'.
  13784. * 'R_OR1K_TLS_IE_LO16' is requested using 'gottpofflo'.
  13785. * 'R_OR1K_TLS_IE_PG21' is requested using 'gottp'.
  13786. * 'R_OR1K_TLS_IE_LO13' is requested using 'gottppo'.
  13787. * 'R_OR1K_TLS_LE_HI16' is requested using 'tpoffhi'.
  13788. * 'R_OR1K_TLS_LE_AHI16' is requested using 'tpoffha'.
  13789. * 'R_OR1K_TLS_LE_LO16' is requested using 'tpofflo'.
  13790. * 'R_OR1K_TLS_LE_SLO16' also is requested using 'tpofflo' depending
  13791. on the instruction format.
  13792. Here are some example TLS model sequences.
  13793. First, General Dynamic:
  13794. l.movhi r17, tlsgdhi(symbol)
  13795. l.ori r17, r17, tlsgdlo(symbol)
  13796. l.add r17, r17, r16
  13797. l.or r3, r17, r17
  13798. l.jal plt(__tls_get_addr)
  13799. l.nop
  13800. Initial Exec:
  13801. l.movhi r17, gottpoffhi(symbol)
  13802. l.add r17, r17, r16
  13803. l.lwz r17, gottpofflo(symbol)(r17)
  13804. l.add r17, r17, r10
  13805. l.lbs r17, 0(r17)
  13806. And finally, Local Exec:
  13807. l.movhi r17, tpoffha(symbol)
  13808. l.add r17, r17, r10
  13809. l.addi r17, r17, tpofflo(symbol)
  13810. l.lbs r17, 0(r17)
  13811. 
  13812. File: as.info, Node: OpenRISC-Float, Next: OpenRISC-Directives, Prev: OpenRISC-Syntax, Up: OpenRISC-Dependent
  13813. 9.33.2 Floating Point
  13814. ---------------------
  13815. OpenRISC uses IEEE floating-point numbers.
  13816. 
  13817. File: as.info, Node: OpenRISC-Directives, Next: OpenRISC-Opcodes, Prev: OpenRISC-Float, Up: OpenRISC-Dependent
  13818. 9.33.3 OpenRISC Machine Directives
  13819. ----------------------------------
  13820. The OpenRISC version of 'as' supports the following additional machine
  13821. directives:
  13822. '.align'
  13823. This must be followed by the desired alignment in bytes.
  13824. '.word'
  13825. On the OpenRISC, the '.word' directive produces a 32 bit value.
  13826. '.nodelay'
  13827. On the OpenRISC, the '.nodelay' directive sets a flag in elf
  13828. binaries indicating that the binary is generated catering for no
  13829. delay slots.
  13830. '.proc'
  13831. This directive is ignored. Any text following it on the same line
  13832. is also ignored.
  13833. '.endproc'
  13834. This directive is ignored. Any text following it on the same line
  13835. is also ignored.
  13836. 
  13837. File: as.info, Node: OpenRISC-Opcodes, Prev: OpenRISC-Directives, Up: OpenRISC-Dependent
  13838. 9.33.4 Opcodes
  13839. --------------
  13840. For detailed information on the OpenRISC machine instruction set, see
  13841. <http://www.openrisc.io/architecture/>.
  13842. 'as' implements all the standard OpenRISC opcodes.
  13843. 
  13844. File: as.info, Node: PDP-11-Dependent, Next: PJ-Dependent, Prev: OpenRISC-Dependent, Up: Machine Dependencies
  13845. 9.34 PDP-11 Dependent Features
  13846. ==============================
  13847. * Menu:
  13848. * PDP-11-Options:: Options
  13849. * PDP-11-Pseudos:: Assembler Directives
  13850. * PDP-11-Syntax:: DEC Syntax versus BSD Syntax
  13851. * PDP-11-Mnemonics:: Instruction Naming
  13852. * PDP-11-Synthetic:: Synthetic Instructions
  13853. 
  13854. File: as.info, Node: PDP-11-Options, Next: PDP-11-Pseudos, Up: PDP-11-Dependent
  13855. 9.34.1 Options
  13856. --------------
  13857. The PDP-11 version of 'as' has a rich set of machine dependent options.
  13858. 9.34.1.1 Code Generation Options
  13859. ................................
  13860. '-mpic | -mno-pic'
  13861. Generate position-independent (or position-dependent) code.
  13862. The default is to generate position-independent code.
  13863. 9.34.1.2 Instruction Set Extension Options
  13864. ..........................................
  13865. These options enables or disables the use of extensions over the base
  13866. line instruction set as introduced by the first PDP-11 CPU: the KA11.
  13867. Most options come in two variants: a '-m'EXTENSION that enables
  13868. EXTENSION, and a '-mno-'EXTENSION that disables EXTENSION.
  13869. The default is to enable all extensions.
  13870. '-mall | -mall-extensions'
  13871. Enable all instruction set extensions.
  13872. '-mno-extensions'
  13873. Disable all instruction set extensions.
  13874. '-mcis | -mno-cis'
  13875. Enable (or disable) the use of the commercial instruction set,
  13876. which consists of these instructions: 'ADDNI', 'ADDN', 'ADDPI',
  13877. 'ADDP', 'ASHNI', 'ASHN', 'ASHPI', 'ASHP', 'CMPCI', 'CMPC', 'CMPNI',
  13878. 'CMPN', 'CMPPI', 'CMPP', 'CVTLNI', 'CVTLN', 'CVTLPI', 'CVTLP',
  13879. 'CVTNLI', 'CVTNL', 'CVTNPI', 'CVTNP', 'CVTPLI', 'CVTPL', 'CVTPNI',
  13880. 'CVTPN', 'DIVPI', 'DIVP', 'L2DR', 'L3DR', 'LOCCI', 'LOCC', 'MATCI',
  13881. 'MATC', 'MOVCI', 'MOVC', 'MOVRCI', 'MOVRC', 'MOVTCI', 'MOVTC',
  13882. 'MULPI', 'MULP', 'SCANCI', 'SCANC', 'SKPCI', 'SKPC', 'SPANCI',
  13883. 'SPANC', 'SUBNI', 'SUBN', 'SUBPI', and 'SUBP'.
  13884. '-mcsm | -mno-csm'
  13885. Enable (or disable) the use of the 'CSM' instruction.
  13886. '-meis | -mno-eis'
  13887. Enable (or disable) the use of the extended instruction set, which
  13888. consists of these instructions: 'ASHC', 'ASH', 'DIV', 'MARK',
  13889. 'MUL', 'RTT', 'SOB' 'SXT', and 'XOR'.
  13890. '-mfis | -mkev11'
  13891. '-mno-fis | -mno-kev11'
  13892. Enable (or disable) the use of the KEV11 floating-point
  13893. instructions: 'FADD', 'FDIV', 'FMUL', and 'FSUB'.
  13894. '-mfpp | -mfpu | -mfp-11'
  13895. '-mno-fpp | -mno-fpu | -mno-fp-11'
  13896. Enable (or disable) the use of FP-11 floating-point instructions:
  13897. 'ABSF', 'ADDF', 'CFCC', 'CLRF', 'CMPF', 'DIVF', 'LDCFF', 'LDCIF',
  13898. 'LDEXP', 'LDF', 'LDFPS', 'MODF', 'MULF', 'NEGF', 'SETD', 'SETF',
  13899. 'SETI', 'SETL', 'STCFF', 'STCFI', 'STEXP', 'STF', 'STFPS', 'STST',
  13900. 'SUBF', and 'TSTF'.
  13901. '-mlimited-eis | -mno-limited-eis'
  13902. Enable (or disable) the use of the limited extended instruction
  13903. set: 'MARK', 'RTT', 'SOB', 'SXT', and 'XOR'.
  13904. The -mno-limited-eis options also implies -mno-eis.
  13905. '-mmfpt | -mno-mfpt'
  13906. Enable (or disable) the use of the 'MFPT' instruction.
  13907. '-mmultiproc | -mno-multiproc'
  13908. Enable (or disable) the use of multiprocessor instructions:
  13909. 'TSTSET' and 'WRTLCK'.
  13910. '-mmxps | -mno-mxps'
  13911. Enable (or disable) the use of the 'MFPS' and 'MTPS' instructions.
  13912. '-mspl | -mno-spl'
  13913. Enable (or disable) the use of the 'SPL' instruction.
  13914. Enable (or disable) the use of the microcode instructions: 'LDUB',
  13915. 'MED', and 'XFC'.
  13916. 9.34.1.3 CPU Model Options
  13917. ..........................
  13918. These options enable the instruction set extensions supported by a
  13919. particular CPU, and disables all other extensions.
  13920. '-mka11'
  13921. KA11 CPU. Base line instruction set only.
  13922. '-mkb11'
  13923. KB11 CPU. Enable extended instruction set and 'SPL'.
  13924. '-mkd11a'
  13925. KD11-A CPU. Enable limited extended instruction set.
  13926. '-mkd11b'
  13927. KD11-B CPU. Base line instruction set only.
  13928. '-mkd11d'
  13929. KD11-D CPU. Base line instruction set only.
  13930. '-mkd11e'
  13931. KD11-E CPU. Enable extended instruction set, 'MFPS', and 'MTPS'.
  13932. '-mkd11f | -mkd11h | -mkd11q'
  13933. KD11-F, KD11-H, or KD11-Q CPU. Enable limited extended instruction
  13934. set, 'MFPS', and 'MTPS'.
  13935. '-mkd11k'
  13936. KD11-K CPU. Enable extended instruction set, 'LDUB', 'MED', 'MFPS',
  13937. 'MFPT', 'MTPS', and 'XFC'.
  13938. '-mkd11z'
  13939. KD11-Z CPU. Enable extended instruction set, 'CSM', 'MFPS', 'MFPT',
  13940. 'MTPS', and 'SPL'.
  13941. '-mf11'
  13942. F11 CPU. Enable extended instruction set, 'MFPS', 'MFPT', and
  13943. 'MTPS'.
  13944. '-mj11'
  13945. J11 CPU. Enable extended instruction set, 'CSM', 'MFPS', 'MFPT',
  13946. 'MTPS', 'SPL', 'TSTSET', and 'WRTLCK'.
  13947. '-mt11'
  13948. T11 CPU. Enable limited extended instruction set, 'MFPS', and
  13949. 'MTPS'.
  13950. 9.34.1.4 Machine Model Options
  13951. ..............................
  13952. These options enable the instruction set extensions supported by a
  13953. particular machine model, and disables all other extensions.
  13954. '-m11/03'
  13955. Same as '-mkd11f'.
  13956. '-m11/04'
  13957. Same as '-mkd11d'.
  13958. '-m11/05 | -m11/10'
  13959. Same as '-mkd11b'.
  13960. '-m11/15 | -m11/20'
  13961. Same as '-mka11'.
  13962. '-m11/21'
  13963. Same as '-mt11'.
  13964. '-m11/23 | -m11/24'
  13965. Same as '-mf11'.
  13966. '-m11/34'
  13967. Same as '-mkd11e'.
  13968. '-m11/34a'
  13969. Ame as '-mkd11e' '-mfpp'.
  13970. '-m11/35 | -m11/40'
  13971. Same as '-mkd11a'.
  13972. '-m11/44'
  13973. Same as '-mkd11z'.
  13974. '-m11/45 | -m11/50 | -m11/55 | -m11/70'
  13975. Same as '-mkb11'.
  13976. '-m11/53 | -m11/73 | -m11/83 | -m11/84 | -m11/93 | -m11/94'
  13977. Same as '-mj11'.
  13978. '-m11/60'
  13979. Same as '-mkd11k'.
  13980. 
  13981. File: as.info, Node: PDP-11-Pseudos, Next: PDP-11-Syntax, Prev: PDP-11-Options, Up: PDP-11-Dependent
  13982. 9.34.2 Assembler Directives
  13983. ---------------------------
  13984. The PDP-11 version of 'as' has a few machine dependent assembler
  13985. directives.
  13986. '.bss'
  13987. Switch to the 'bss' section.
  13988. '.even'
  13989. Align the location counter to an even number.
  13990. 
  13991. File: as.info, Node: PDP-11-Syntax, Next: PDP-11-Mnemonics, Prev: PDP-11-Pseudos, Up: PDP-11-Dependent
  13992. 9.34.3 PDP-11 Assembly Language Syntax
  13993. --------------------------------------
  13994. 'as' supports both DEC syntax and BSD syntax. The only difference is
  13995. that in DEC syntax, a '#' character is used to denote an immediate
  13996. constants, while in BSD syntax the character for this purpose is '$'.
  13997. general-purpose registers are named 'r0' through 'r7'. Mnemonic
  13998. alternatives for 'r6' and 'r7' are 'sp' and 'pc', respectively.
  13999. Floating-point registers are named 'ac0' through 'ac3', or
  14000. alternatively 'fr0' through 'fr3'.
  14001. Comments are started with a '#' or a '/' character, and extend to the
  14002. end of the line. (FIXME: clash with immediates?)
  14003. Multiple statements on the same line can be separated by the ';'
  14004. character.
  14005. 
  14006. File: as.info, Node: PDP-11-Mnemonics, Next: PDP-11-Synthetic, Prev: PDP-11-Syntax, Up: PDP-11-Dependent
  14007. 9.34.4 Instruction Naming
  14008. -------------------------
  14009. Some instructions have alternative names.
  14010. 'BCC'
  14011. 'BHIS'
  14012. 'BCS'
  14013. 'BLO'
  14014. 'L2DR'
  14015. 'L2D'
  14016. 'L3DR'
  14017. 'L3D'
  14018. 'SYS'
  14019. 'TRAP'
  14020. 
  14021. File: as.info, Node: PDP-11-Synthetic, Prev: PDP-11-Mnemonics, Up: PDP-11-Dependent
  14022. 9.34.5 Synthetic Instructions
  14023. -----------------------------
  14024. The 'JBR' and 'J'CC synthetic instructions are not supported yet.
  14025. 
  14026. File: as.info, Node: PJ-Dependent, Next: PPC-Dependent, Prev: PDP-11-Dependent, Up: Machine Dependencies
  14027. 9.35 picoJava Dependent Features
  14028. ================================
  14029. * Menu:
  14030. * PJ Options:: Options
  14031. * PJ Syntax:: PJ Syntax
  14032. 
  14033. File: as.info, Node: PJ Options, Next: PJ Syntax, Up: PJ-Dependent
  14034. 9.35.1 Options
  14035. --------------
  14036. 'as' has two additional command-line options for the picoJava
  14037. architecture.
  14038. '-ml'
  14039. This option selects little endian data output.
  14040. '-mb'
  14041. This option selects big endian data output.
  14042. 
  14043. File: as.info, Node: PJ Syntax, Prev: PJ Options, Up: PJ-Dependent
  14044. 9.35.2 PJ Syntax
  14045. ----------------
  14046. * Menu:
  14047. * PJ-Chars:: Special Characters
  14048. 
  14049. File: as.info, Node: PJ-Chars, Up: PJ Syntax
  14050. 9.35.2.1 Special Characters
  14051. ...........................
  14052. The presence of a '!' or '/' on a line indicates the start of a comment
  14053. that extends to the end of the current line.
  14054. If a '#' appears as the first character of a line then the whole line
  14055. is treated as a comment, but in this case the line could also be a
  14056. logical line number directive (*note Comments::) or a preprocessor
  14057. control command (*note Preprocessing::).
  14058. The ';' character can be used to separate statements on the same
  14059. line.
  14060. 
  14061. File: as.info, Node: PPC-Dependent, Next: PRU-Dependent, Prev: PJ-Dependent, Up: Machine Dependencies
  14062. 9.36 PowerPC Dependent Features
  14063. ===============================
  14064. * Menu:
  14065. * PowerPC-Opts:: Options
  14066. * PowerPC-Pseudo:: PowerPC Assembler Directives
  14067. * PowerPC-Syntax:: PowerPC Syntax
  14068. 
  14069. File: as.info, Node: PowerPC-Opts, Next: PowerPC-Pseudo, Up: PPC-Dependent
  14070. 9.36.1 Options
  14071. --------------
  14072. The PowerPC chip family includes several successive levels, using the
  14073. same core instruction set, but including a few additional instructions
  14074. at each level. There are exceptions to this however. For details on
  14075. what instructions each variant supports, please see the chip's
  14076. architecture reference manual.
  14077. The following table lists all available PowerPC options.
  14078. '-a32'
  14079. Generate ELF32 or XCOFF32.
  14080. '-a64'
  14081. Generate ELF64 or XCOFF64.
  14082. '-K PIC'
  14083. Set EF_PPC_RELOCATABLE_LIB in ELF flags.
  14084. '-mpwrx | -mpwr2'
  14085. Generate code for POWER/2 (RIOS2).
  14086. '-mpwr'
  14087. Generate code for POWER (RIOS1)
  14088. '-m601'
  14089. Generate code for PowerPC 601.
  14090. '-mppc, -mppc32, -m603, -m604'
  14091. Generate code for PowerPC 603/604.
  14092. '-m403, -m405'
  14093. Generate code for PowerPC 403/405.
  14094. '-m440'
  14095. Generate code for PowerPC 440. BookE and some 405 instructions.
  14096. '-m464'
  14097. Generate code for PowerPC 464.
  14098. '-m476'
  14099. Generate code for PowerPC 476.
  14100. '-m7400, -m7410, -m7450, -m7455'
  14101. Generate code for PowerPC 7400/7410/7450/7455.
  14102. '-m750cl, -mgekko, -mbroadway'
  14103. Generate code for PowerPC 750CL/Gekko/Broadway.
  14104. '-m821, -m850, -m860'
  14105. Generate code for PowerPC 821/850/860.
  14106. '-mppc64, -m620'
  14107. Generate code for PowerPC 620/625/630.
  14108. '-me500, -me500x2'
  14109. Generate code for Motorola e500 core complex.
  14110. '-me500mc'
  14111. Generate code for Freescale e500mc core complex.
  14112. '-me500mc64'
  14113. Generate code for Freescale e500mc64 core complex.
  14114. '-me5500'
  14115. Generate code for Freescale e5500 core complex.
  14116. '-me6500'
  14117. Generate code for Freescale e6500 core complex.
  14118. '-mspe'
  14119. Generate code for Motorola SPE instructions.
  14120. '-mspe2'
  14121. Generate code for Freescale SPE2 instructions.
  14122. '-mtitan'
  14123. Generate code for AppliedMicro Titan core complex.
  14124. '-mppc64bridge'
  14125. Generate code for PowerPC 64, including bridge insns.
  14126. '-mbooke'
  14127. Generate code for 32-bit BookE.
  14128. '-ma2'
  14129. Generate code for A2 architecture.
  14130. '-me300'
  14131. Generate code for PowerPC e300 family.
  14132. '-maltivec'
  14133. Generate code for processors with AltiVec instructions.
  14134. '-mvle'
  14135. Generate code for Freescale PowerPC VLE instructions.
  14136. '-mvsx'
  14137. Generate code for processors with Vector-Scalar (VSX) instructions.
  14138. '-mhtm'
  14139. Generate code for processors with Hardware Transactional Memory
  14140. instructions.
  14141. '-mpower4, -mpwr4'
  14142. Generate code for Power4 architecture.
  14143. '-mpower5, -mpwr5, -mpwr5x'
  14144. Generate code for Power5 architecture.
  14145. '-mpower6, -mpwr6'
  14146. Generate code for Power6 architecture.
  14147. '-mpower7, -mpwr7'
  14148. Generate code for Power7 architecture.
  14149. '-mpower8, -mpwr8'
  14150. Generate code for Power8 architecture.
  14151. '-mpower9, -mpwr9'
  14152. Generate code for Power9 architecture.
  14153. '-mpower10, -mpwr10'
  14154. Generate code for Power10 architecture.
  14155. '-mcell'
  14156. '-mcell'
  14157. Generate code for Cell Broadband Engine architecture.
  14158. '-mcom'
  14159. Generate code Power/PowerPC common instructions.
  14160. '-many'
  14161. Generate code for any architecture (PWR/PWRX/PPC).
  14162. '-mregnames'
  14163. Allow symbolic names for registers.
  14164. '-mno-regnames'
  14165. Do not allow symbolic names for registers.
  14166. '-mrelocatable'
  14167. Support for GCC's -mrelocatable option.
  14168. '-mrelocatable-lib'
  14169. Support for GCC's -mrelocatable-lib option.
  14170. '-memb'
  14171. Set PPC_EMB bit in ELF flags.
  14172. '-mlittle, -mlittle-endian, -le'
  14173. Generate code for a little endian machine.
  14174. '-mbig, -mbig-endian, -be'
  14175. Generate code for a big endian machine.
  14176. '-msolaris'
  14177. Generate code for Solaris.
  14178. '-mno-solaris'
  14179. Do not generate code for Solaris.
  14180. '-nops=COUNT'
  14181. If an alignment directive inserts more than COUNT nops, put a
  14182. branch at the beginning to skip execution of the nops.
  14183. 
  14184. File: as.info, Node: PowerPC-Pseudo, Next: PowerPC-Syntax, Prev: PowerPC-Opts, Up: PPC-Dependent
  14185. 9.36.2 PowerPC Assembler Directives
  14186. -----------------------------------
  14187. A number of assembler directives are available for PowerPC. The
  14188. following table is far from complete.
  14189. '.machine "string"'
  14190. This directive allows you to change the machine for which code is
  14191. generated. '"string"' may be any of the -m cpu selection options
  14192. (without the -m) enclosed in double quotes, '"push"', or '"pop"'.
  14193. '.machine "push"' saves the currently selected cpu, which may be
  14194. restored with '.machine "pop"'.
  14195. 
  14196. File: as.info, Node: PowerPC-Syntax, Prev: PowerPC-Pseudo, Up: PPC-Dependent
  14197. 9.36.3 PowerPC Syntax
  14198. ---------------------
  14199. * Menu:
  14200. * PowerPC-Chars:: Special Characters
  14201. 
  14202. File: as.info, Node: PowerPC-Chars, Up: PowerPC-Syntax
  14203. 9.36.3.1 Special Characters
  14204. ...........................
  14205. The presence of a '#' on a line indicates the start of a comment that
  14206. extends to the end of the current line.
  14207. If a '#' appears as the first character of a line then the whole line
  14208. is treated as a comment, but in this case the line could also be a
  14209. logical line number directive (*note Comments::) or a preprocessor
  14210. control command (*note Preprocessing::).
  14211. If the assembler has been configured for the ppc-*-solaris* target
  14212. then the '!' character also acts as a line comment character. This can
  14213. be disabled via the '-mno-solaris' command-line option.
  14214. The ';' character can be used to separate statements on the same
  14215. line.
  14216. 
  14217. File: as.info, Node: PRU-Dependent, Next: RISC-V-Dependent, Prev: PPC-Dependent, Up: Machine Dependencies
  14218. 9.37 PRU Dependent Features
  14219. ===========================
  14220. * Menu:
  14221. * PRU Options:: Options
  14222. * PRU Syntax:: Syntax
  14223. * PRU Relocations:: Relocations
  14224. * PRU Directives:: PRU Machine Directives
  14225. * PRU Opcodes:: Opcodes
  14226. 
  14227. File: as.info, Node: PRU Options, Next: PRU Syntax, Up: PRU-Dependent
  14228. 9.37.1 Options
  14229. --------------
  14230. '-mlink-relax'
  14231. Assume that LD would optimize LDI32 instructions by checking the
  14232. upper 16 bits of the EXPRESSION. If they are all zeros, then LD
  14233. would shorten the LDI32 instruction to a single LDI. In such case
  14234. 'as' will output DIFF relocations for diff expressions.
  14235. '-mno-link-relax'
  14236. Assume that LD would not optimize LDI32 instructions. As a
  14237. consequence, DIFF relocations will not be emitted.
  14238. '-mno-warn-regname-label'
  14239. Do not warn if a label name matches a register name. Usually
  14240. assembler programmers will want this warning to be emitted. C
  14241. compilers may want to turn this off.
  14242. 
  14243. File: as.info, Node: PRU Syntax, Next: PRU Relocations, Prev: PRU Options, Up: PRU-Dependent
  14244. 9.37.2 Syntax
  14245. -------------
  14246. * Menu:
  14247. * PRU Chars:: Special Characters
  14248. 
  14249. File: as.info, Node: PRU Chars, Up: PRU Syntax
  14250. 9.37.2.1 Special Characters
  14251. ...........................
  14252. '#' and ';' are the line comment characters.
  14253. 
  14254. File: as.info, Node: PRU Relocations, Next: PRU Directives, Prev: PRU Syntax, Up: PRU-Dependent
  14255. 9.37.3 PRU Machine Relocations
  14256. ------------------------------
  14257. '%pmem(EXPRESSION)'
  14258. Convert EXPRESSION from byte-address to a word-address. In other
  14259. words, shift right by two.
  14260. '%label(EXPRESSION)'
  14261. Mark the given operand as a label. This is useful if you need to
  14262. jump to a label that matches a register name.
  14263. r1:
  14264. jmp r1 ; Will jump to register R1
  14265. jmp %label(r1) ; Will jump to label r1
  14266. 
  14267. File: as.info, Node: PRU Directives, Next: PRU Opcodes, Prev: PRU Relocations, Up: PRU-Dependent
  14268. 9.37.4 PRU Machine Directives
  14269. -----------------------------
  14270. '.align EXPRESSION [, EXPRESSION]'
  14271. This is the generic '.align' directive, however this aligns to a
  14272. power of two.
  14273. '.word EXPRESSION'
  14274. Create an aligned constant 4 bytes in size.
  14275. '.dword EXPRESSION'
  14276. Create an aligned constant 8 bytes in size.
  14277. '.2byte EXPRESSION'
  14278. Create an unaligned constant 2 bytes in size.
  14279. '.4byte EXPRESSION'
  14280. Create an unaligned constant 4 bytes in size.
  14281. '.8byte EXPRESSION'
  14282. Create an unaligned constant 8 bytes in size.
  14283. '.16byte EXPRESSION'
  14284. Create an unaligned constant 16 bytes in size.
  14285. '.set no_warn_regname_label'
  14286. Do not output warnings when a label name matches a register name.
  14287. Equivalent to passing the '-mno-warn-regname-label' command-line
  14288. option.
  14289. 
  14290. File: as.info, Node: PRU Opcodes, Prev: PRU Directives, Up: PRU-Dependent
  14291. 9.37.5 Opcodes
  14292. --------------
  14293. 'as' implements all the standard PRU core V3 opcodes in the original
  14294. pasm assembler. Older cores are not supported by 'as'.
  14295. GAS also implements the LDI32 pseudo instruction for loading a 32-bit
  14296. immediate value into a register.
  14297. ldi32 sp, __stack_top
  14298. ldi32 r14, 0x12345678
  14299. 
  14300. File: as.info, Node: RISC-V-Dependent, Next: RL78-Dependent, Prev: PRU-Dependent, Up: Machine Dependencies
  14301. 9.38 RISC-V Dependent Features
  14302. ==============================
  14303. * Menu:
  14304. * RISC-V-Options:: RISC-V Options
  14305. * RISC-V-Directives:: RISC-V Directives
  14306. * RISC-V-Modifiers:: RISC-V Assembler Modifiers
  14307. * RISC-V-Formats:: RISC-V Instruction Formats
  14308. * RISC-V-ATTRIBUTE:: RISC-V Object Attribute
  14309. 
  14310. File: as.info, Node: RISC-V-Options, Next: RISC-V-Directives, Up: RISC-V-Dependent
  14311. 9.38.1 RISC-V Options
  14312. ---------------------
  14313. The following table lists all available RISC-V specific options.
  14314. '-fpic'
  14315. '-fPIC'
  14316. Generate position-independent code
  14317. '-fno-pic'
  14318. Don't generate position-independent code (default)
  14319. '-march=ISA'
  14320. Select the base isa, as specified by ISA. For example
  14321. -march=rv32ima. If this option and the architecture attributes
  14322. aren't set, then assembler will check the default configure setting
  14323. -with-arch=ISA.
  14324. '-misa-spec=ISAspec'
  14325. Select the default isa spec version. If the version of ISA isn't
  14326. set by -march, then assembler helps to set the version according to
  14327. the default chosen spec. If this option isn't set, then assembler
  14328. will check the default configure setting -with-isa-spec=ISAspec.
  14329. '-mpriv-spec=PRIVspec'
  14330. Select the privileged spec version. We can decide whether the CSR
  14331. is valid or not according to the chosen spec. If this option and
  14332. the privilege attributes aren't set, then assembler will check the
  14333. default configure setting -with-priv-spec=PRIVspec.
  14334. '-mabi=ABI'
  14335. Selects the ABI, which is either "ilp32" or "lp64", optionally
  14336. followed by "f", "d", or "q" to indicate single-precision,
  14337. double-precision, or quad-precision floating-point calling
  14338. convention, or none to indicate the soft-float calling convention.
  14339. Also, "ilp32" can optionally be followed by "e" to indicate the RVE
  14340. ABI, which is always soft-float.
  14341. '-mrelax'
  14342. Take advantage of linker relaxations to reduce the number of
  14343. instructions required to materialize symbol addresses. (default)
  14344. '-mno-relax'
  14345. Don't do linker relaxations.
  14346. '-march-attr'
  14347. Generate the default contents for the riscv elf attribute section
  14348. if the .attribute directives are not set. This section is used to
  14349. record the information that a linker or runtime loader needs to
  14350. check compatibility. This information includes ISA string, stack
  14351. alignment requirement, unaligned memory accesses, and the major,
  14352. minor and revision version of privileged specification.
  14353. '-mno-arch-attr'
  14354. Don't generate the default riscv elf attribute section if the
  14355. .attribute directives are not set.
  14356. '-mcsr-check'
  14357. Enable the CSR checking for the ISA-dependent CRS and the read-only
  14358. CSR. The ISA-dependent CSR are only valid when the specific ISA is
  14359. set. The read-only CSR can not be written by the CSR instructions.
  14360. '-mno-csr-check'
  14361. Don't do CSR checking.
  14362. '-mlittle-endian'
  14363. Generate code for a little endian machine.
  14364. '-mbig-endian'
  14365. Generate code for a big endian machine.
  14366. 
  14367. File: as.info, Node: RISC-V-Directives, Next: RISC-V-Modifiers, Prev: RISC-V-Options, Up: RISC-V-Dependent
  14368. 9.38.2 RISC-V Directives
  14369. ------------------------
  14370. The following table lists all available RISC-V specific directives.
  14371. '.align SIZE-LOG-2'
  14372. Align to the given boundary, with the size given as log2 the number
  14373. of bytes to align to.
  14374. '.half VALUE'
  14375. '.word VALUE'
  14376. '.dword VALUE'
  14377. Emits a half-word, word, or double-word value at the current
  14378. position.
  14379. '.dtprelword VALUE'
  14380. '.dtpreldword VALUE'
  14381. Emits a DTP-relative word (or double-word) at the current position.
  14382. This is meant to be used by the compiler in shared libraries for
  14383. DWARF debug info for thread local variables.
  14384. '.bss'
  14385. Sets the current section to the BSS section.
  14386. '.uleb128 VALUE'
  14387. '.sleb128 VALUE'
  14388. Emits a signed or unsigned LEB128 value at the current position.
  14389. This only accepts constant expressions, because symbol addresses
  14390. can change with relaxation, and we don't support relocations to
  14391. modify LEB128 values at link time.
  14392. '.option ARGUMENT'
  14393. Modifies RISC-V specific assembler options inline with the assembly
  14394. code. This is used when particular instruction sequences must be
  14395. assembled with a specific set of options. For example, since we
  14396. relax addressing sequences to shorter GP-relative sequences when
  14397. possible the initial load of GP must not be relaxed and should be
  14398. emitted as something like
  14399. .option push
  14400. .option norelax
  14401. la gp, __global_pointer$
  14402. .option pop
  14403. in order to produce after linker relaxation the expected
  14404. auipc gp, %pcrel_hi(__global_pointer$)
  14405. addi gp, gp, %pcrel_lo(__global_pointer$)
  14406. instead of just
  14407. addi gp, gp, 0
  14408. It's not expected that options are changed in this manner during
  14409. regular use, but there are a handful of esoteric cases like the one
  14410. above where users need to disable particular features of the
  14411. assembler for particular code sequences. The complete list of
  14412. option arguments is shown below:
  14413. 'push'
  14414. 'pop'
  14415. Pushes or pops the current option stack. These should be used
  14416. whenever changing an option in line with assembly code in
  14417. order to ensure the user's command-line options are respected
  14418. for the bulk of the file being assembled.
  14419. 'rvc'
  14420. 'norvc'
  14421. Enables or disables the generation of compressed instructions.
  14422. Instructions are opportunistically compressed by the RISC-V
  14423. assembler when possible, but sometimes this behavior is not
  14424. desirable, especially when handling alignments.
  14425. 'pic'
  14426. 'nopic'
  14427. Enables or disables position-independent code generation.
  14428. Unless you really know what you're doing, this should only be
  14429. at the top of a file.
  14430. 'relax'
  14431. 'norelax'
  14432. Enables or disables relaxation. The RISC-V assembler and
  14433. linker opportunistically relax some code sequences, but
  14434. sometimes this behavior is not desirable.
  14435. 'csr-check'
  14436. 'no-csr-check'
  14437. Enables or disables the CSR checking.
  14438. 'arch, +EXTENSION[VERSION] [,...,+EXTENSION_N[VERSION_N]]'
  14439. 'arch, -EXTENSION [,...,-EXTENSION_N]'
  14440. 'arch, =ISA'
  14441. Enables or disables the extensions for specific code region. For
  14442. example, '.option arch, +m2p0' means add m extension with version
  14443. 2.0, and '.option arch, -f, -d' means remove extensions, f and d,
  14444. from the architecture string. Note that, '.option arch, +c, -c'
  14445. have the same behavior as '.option rvc, norvc'. However, they are
  14446. also undesirable sometimes. Besides, '.option arch, -i' is
  14447. illegal, since we cannot remove the base i extension anytime. If
  14448. you want to reset the whole ISA string, you can also use '.option
  14449. arch, =rv32imac' to overwrite the previous settings.
  14450. '.insn TYPE, OPERAND [,...,OPERAND_N]'
  14451. '.insn INSN_LENGTH, VALUE'
  14452. '.insn VALUE'
  14453. This directive permits the numeric representation of an
  14454. instructions and makes the assembler insert the operands according
  14455. to one of the instruction formats for '.insn' (*note
  14456. RISC-V-Formats::). For example, the instruction 'add a0, a1, a2'
  14457. could be written as '.insn r 0x33, 0, 0, a0, a1, a2'. But in fact,
  14458. the instruction formats are difficult to use for some users, so
  14459. most of them are using '.word' to encode the instruction directly,
  14460. rather than using '.insn'. It is fine for now, but will be wrong
  14461. when the mapping symbols are supported, since '.word' will not be
  14462. shown as an instruction, it should be shown as data. Therefore, we
  14463. also support two more formats of the '.insn', the instruction 'add
  14464. a0, a1, a2' could also be written as '.insn 0x4, 0xc58533' or
  14465. '.insn 0xc58533'. When the INSN_LENGTH is set, then assembler will
  14466. check if the VALUE is a valid INSN_LENGTH bytes instruction.
  14467. '.attribute TAG, VALUE'
  14468. Set the object attribute TAG to VALUE.
  14469. The TAG is either an attribute number, or one of the following:
  14470. 'Tag_RISCV_arch', 'Tag_RISCV_stack_align',
  14471. 'Tag_RISCV_unaligned_access', 'Tag_RISCV_priv_spec',
  14472. 'Tag_RISCV_priv_spec_minor', 'Tag_RISCV_priv_spec_revision'.
  14473. 
  14474. File: as.info, Node: RISC-V-Modifiers, Next: RISC-V-Formats, Prev: RISC-V-Directives, Up: RISC-V-Dependent
  14475. 9.38.3 RISC-V Assembler Modifiers
  14476. ---------------------------------
  14477. The RISC-V assembler supports following modifiers for relocatable
  14478. addresses used in RISC-V instruction operands. However, we also support
  14479. some pseudo instructions that are easier to use than these modifiers.
  14480. '%lo(SYMBOL)'
  14481. The low 12 bits of absolute address for SYMBOL.
  14482. '%hi(SYMBOL)'
  14483. The high 20 bits of absolute address for SYMBOL. This is usually
  14484. used with the %lo modifier to represent a 32-bit absolute address.
  14485. lui a0, %hi(SYMBOL) // R_RISCV_HI20
  14486. addi a0, a0, %lo(SYMBOL) // R_RISCV_LO12_I
  14487. lui a0, %hi(SYMBOL) // R_RISCV_HI20
  14488. load/store a0, %lo(SYMBOL)(a0) // R_RISCV_LO12_I/S
  14489. '%pcrel_lo(LABEL)'
  14490. The low 12 bits of relative address between pc and SYMBOL. The
  14491. SYMBOL is related to the high part instruction which is marked by
  14492. LABEL.
  14493. '%pcrel_hi(SYMBOL)'
  14494. The high 20 bits of relative address between pc and SYMBOL. This
  14495. is usually used with the %pcrel_lo modifier to represent a +/-2GB
  14496. pc-relative range.
  14497. LABEL:
  14498. auipc a0, %pcrel_hi(SYMBOL) // R_RISCV_PCREL_HI20
  14499. addi a0, a0, %pcrel_lo(LABEL) // R_RISCV_PCREL_LO12_I
  14500. LABEL:
  14501. auipc a0, %pcrel_hi(SYMBOL) // R_RISCV_PCREL_HI20
  14502. load/store a0, %pcrel_lo(LABEL)(a0) // R_RISCV_PCREL_LO12_I/S
  14503. Or you can use the pseudo lla/lw/sw/... instruction to do this.
  14504. lla a0, SYMBOL
  14505. '%got_pcrel_hi(SYMBOL)'
  14506. The high 20 bits of relative address between pc and the GOT entry
  14507. of SYMBOL. This is usually used with the %pcrel_lo modifier to
  14508. access the GOT entry.
  14509. LABEL:
  14510. auipc a0, %got_pcrel_hi(SYMBOL) // R_RISCV_GOT_HI20
  14511. addi a0, a0, %pcrel_lo(LABEL) // R_RISCV_PCREL_LO12_I
  14512. LABEL:
  14513. auipc a0, %got_pcrel_hi(SYMBOL) // R_RISCV_GOT_HI20
  14514. load/store a0, %pcrel_lo(LABEL)(a0) // R_RISCV_PCREL_LO12_I/S
  14515. Also, the pseudo la instruction with PIC has similar behavior.
  14516. '%tprel_add(SYMBOL)'
  14517. This is used purely to associate the R_RISCV_TPREL_ADD relocation
  14518. for TLS relaxation. This one is only valid as the fourth operand
  14519. to the normally 3 operand add instruction.
  14520. '%tprel_lo(SYMBOL)'
  14521. The low 12 bits of relative address between tp and SYMBOL.
  14522. '%tprel_hi(SYMBOL)'
  14523. The high 20 bits of relative address between tp and SYMBOL. This
  14524. is usually used with the %tprel_lo and %tprel_add modifiers to
  14525. access the thread local variable SYMBOL in TLS Local Exec.
  14526. lui a5, %tprel_hi(SYMBOL) // R_RISCV_TPREL_HI20
  14527. add a5, a5, tp, %tprel_add(SYMBOL) // R_RISCV_TPREL_ADD
  14528. load/store t0, %tprel_lo(SYMBOL)(a5) // R_RISCV_TPREL_LO12_I/S
  14529. '%tls_ie_pcrel_hi(SYMBOL)'
  14530. The high 20 bits of relative address between pc and GOT entry. It
  14531. is usually used with the %pcrel_lo modifier to access the thread
  14532. local variable SYMBOL in TLS Initial Exec.
  14533. la.tls.ie a5, SYMBOL
  14534. add a5, a5, tp
  14535. load/store t0, 0(a5)
  14536. The pseudo la.tls.ie instruction can be expended to
  14537. LABEL:
  14538. auipc a5, %tls_ie_pcrel_hi(SYMBOL) // R_RISCV_TLS_GOT_HI20
  14539. load a5, %pcrel_lo(LABEL)(a5) // R_RISCV_PCREL_LO12_I
  14540. '%tls_gd_pcrel_hi(SYMBOL)'
  14541. The high 20 bits of relative address between pc and GOT entry. It
  14542. is usually used with the %pcrel_lo modifier to access the thread
  14543. local variable SYMBOL in TLS Global Dynamic.
  14544. la.tls.gd a0, SYMBOL
  14545. call __tls_get_addr@plt
  14546. mv a5, a0
  14547. load/store t0, 0(a5)
  14548. The pseudo la.tls.gd instruction can be expended to
  14549. LABEL:
  14550. auipc a0, %tls_gd_pcrel_hi(SYMBOL) // R_RISCV_TLS_GD_HI20
  14551. addi a0, a0, %pcrel_lo(LABEL) // R_RISCV_PCREL_LO12_I
  14552. 
  14553. File: as.info, Node: RISC-V-Formats, Next: RISC-V-ATTRIBUTE, Prev: RISC-V-Modifiers, Up: RISC-V-Dependent
  14554. 9.38.4 RISC-V Instruction Formats
  14555. ---------------------------------
  14556. The RISC-V Instruction Set Manual Volume I: User-Level ISA lists 15
  14557. instruction formats where some of the formats have multiple variants.
  14558. For the '.insn' pseudo directive the assembler recognizes some of the
  14559. formats. Typically, the most general variant of the instruction format
  14560. is used by the '.insn' directive.
  14561. The following table lists the abbreviations used in the table of
  14562. instruction formats:
  14563. opcode Unsigned immediate or opcode name for 7-bits opcode.
  14564. opcode2 Unsigned immediate or opcode name for 2-bits opcode.
  14565. func7 Unsigned immediate for 7-bits function code.
  14566. func6 Unsigned immediate for 6-bits function code.
  14567. func4 Unsigned immediate for 4-bits function code.
  14568. func3 Unsigned immediate for 3-bits function code.
  14569. func2 Unsigned immediate for 2-bits function code.
  14570. rd Destination register number for operand x, can be GPR or FPR.
  14571. rd' Destination register number for operand x,
  14572. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14573. rs1 First source register number for operand x, can be GPR or FPR.
  14574. rs1' First source register number for operand x,
  14575. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14576. rs2 Second source register number for operand x, can be GPR or FPR.
  14577. rs2' Second source register number for operand x,
  14578. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14579. simm12 Sign-extended 12-bit immediate for operand x.
  14580. simm20 Sign-extended 20-bit immediate for operand x.
  14581. simm6 Sign-extended 6-bit immediate for operand x.
  14582. uimm5 Unsigned 5-bit immediate for operand x.
  14583. uimm6 Unsigned 6-bit immediate for operand x.
  14584. uimm8 Unsigned 8-bit immediate for operand x.
  14585. symbol Symbol or lable reference for operand x.
  14586. The following table lists all available opcode name:
  14587. 'C0'
  14588. 'C1'
  14589. 'C2'
  14590. Opcode space for compressed instructions.
  14591. 'LOAD'
  14592. Opcode space for load instructions.
  14593. 'LOAD_FP'
  14594. Opcode space for floating-point load instructions.
  14595. 'STORE'
  14596. Opcode space for store instructions.
  14597. 'STORE_FP'
  14598. Opcode space for floating-point store instructions.
  14599. 'AUIPC'
  14600. Opcode space for auipc instruction.
  14601. 'LUI'
  14602. Opcode space for lui instruction.
  14603. 'BRANCH'
  14604. Opcode space for branch instructions.
  14605. 'JAL'
  14606. Opcode space for jal instruction.
  14607. 'JALR'
  14608. Opcode space for jalr instruction.
  14609. 'OP'
  14610. Opcode space for ALU instructions.
  14611. 'OP_32'
  14612. Opcode space for 32-bits ALU instructions.
  14613. 'OP_IMM'
  14614. Opcode space for ALU with immediate instructions.
  14615. 'OP_IMM_32'
  14616. Opcode space for 32-bits ALU with immediate instructions.
  14617. 'OP_FP'
  14618. Opcode space for floating-point operation instructions.
  14619. 'MADD'
  14620. Opcode space for madd instruction.
  14621. 'MSUB'
  14622. Opcode space for msub instruction.
  14623. 'NMADD'
  14624. Opcode space for nmadd instruction.
  14625. 'NMSUB'
  14626. Opcode space for msub instruction.
  14627. 'AMO'
  14628. Opcode space for atomic memory operation instructions.
  14629. 'MISC_MEM'
  14630. Opcode space for misc instructions.
  14631. 'SYSTEM'
  14632. Opcode space for system instructions.
  14633. 'CUSTOM_0'
  14634. 'CUSTOM_1'
  14635. 'CUSTOM_2'
  14636. 'CUSTOM_3'
  14637. Opcode space for customize instructions.
  14638. An instruction is two or four bytes in length and must be aligned on
  14639. a 2 byte boundary. The first two bits of the instruction specify the
  14640. length of the instruction, 00, 01 and 10 indicates a two byte
  14641. instruction, 11 indicates a four byte instruction.
  14642. The following table lists the RISC-V instruction formats that are
  14643. available with the '.insn' pseudo directive:
  14644. 'R type: .insn r opcode6, func3, func7, rd, rs1, rs2'
  14645. +-------+-----+-----+-------+----+---------+
  14646. | func7 | rs2 | rs1 | func3 | rd | opcode6 |
  14647. +-------+-----+-----+-------+----+---------+
  14648. 31 25 20 15 12 7 0
  14649. 'R type with 4 register operands: .insn r opcode6, func3, func2, rd, rs1, rs2, rs3'
  14650. 'R4 type: .insn r4 opcode6, func3, func2, rd, rs1, rs2, rs3'
  14651. +-----+-------+-----+-----+-------+----+---------+
  14652. | rs3 | func2 | rs2 | rs1 | func3 | rd | opcode6 |
  14653. +-----+-------+-----+-----+-------+----+---------+
  14654. 31 27 25 20 15 12 7 0
  14655. 'I type: .insn i opcode6, func3, rd, rs1, simm12'
  14656. 'I type: .insn i opcode6, func3, rd, simm12(rs1)'
  14657. +--------------+-----+-------+----+---------+
  14658. | simm12[11:0] | rs1 | func3 | rd | opcode6 |
  14659. +--------------+-----+-------+----+---------+
  14660. 31 20 15 12 7 0
  14661. 'S type: .insn s opcode6, func3, rs2, simm12(rs1)'
  14662. +--------------+-----+-----+-------+-------------+---------+
  14663. | simm12[11:5] | rs2 | rs1 | func3 | simm12[4:0] | opcode6 |
  14664. +--------------+-----+-----+-------+-------------+---------+
  14665. 31 25 20 15 12 7 0
  14666. 'B type: .insn s opcode6, func3, rs1, rs2, symbol'
  14667. 'SB type: .insn sb opcode6, func3, rs1, rs2, symbol'
  14668. +-----------------+-----+-----+-------+----------------+---------+
  14669. | simm12[12|10:5] | rs2 | rs1 | func3 | simm12[4:1|11] | opcode6 |
  14670. +-----------------+-----+-----+-------+----------------+---------+
  14671. 31 25 20 15 12 7 0
  14672. 'U type: .insn u opcode6, rd, simm20'
  14673. +--------------------------+----+---------+
  14674. | simm20[20|10:1|11|19:12] | rd | opcode6 |
  14675. +--------------------------+----+---------+
  14676. 31 12 7 0
  14677. 'J type: .insn j opcode6, rd, symbol'
  14678. 'UJ type: .insn uj opcode6, rd, symbol'
  14679. +------------+--------------+------------+---------------+----+---------+
  14680. | simm20[20] | simm20[10:1] | simm20[11] | simm20[19:12] | rd | opcode6 |
  14681. +------------+--------------+------------+---------------+----+---------+
  14682. 31 30 21 20 12 7 0
  14683. 'CR type: .insn cr opcode2, func4, rd, rs2'
  14684. +-------+--------+-----+---------+
  14685. | func4 | rd/rs1 | rs2 | opcode2 |
  14686. +-------+--------+-----+---------+
  14687. 15 12 7 2 0
  14688. 'CI type: .insn ci opcode2, func3, rd, simm6'
  14689. +-------+----------+--------+------------+---------+
  14690. | func3 | simm6[5] | rd/rs1 | simm6[4:0] | opcode2 |
  14691. +-------+----------+--------+------------+---------+
  14692. 15 13 12 7 2 0
  14693. 'CIW type: .insn ciw opcode2, func3, rd', uimm8'
  14694. +-------+------------+-----+---------+
  14695. | func3 | uimm8[7:0] | rd' | opcode2 |
  14696. +-------+-------- ---+-----+---------+
  14697. 15 13 5 2 0
  14698. 'CSS type: .insn css opcode2, func3, rd, uimm6'
  14699. +-------+------------+----+---------+
  14700. | func3 | uimm6[5:0] | rd | opcode2 |
  14701. +-------+------------+----+---------+
  14702. 15 13 7 2 0
  14703. 'CL type: .insn cl opcode2, func3, rd', uimm5(rs1')'
  14704. +-------+------------+------+------------+------+---------+
  14705. | func3 | uimm5[4:2] | rs1' | uimm5[1:0] | rd' | opcode2 |
  14706. +-------+------------+------+------------+------+---------+
  14707. 15 13 10 7 5 2 0
  14708. 'CS type: .insn cs opcode2, func3, rs2', uimm5(rs1')'
  14709. +-------+------------+------+------------+------+---------+
  14710. | func3 | uimm5[4:2] | rs1' | uimm5[1:0] | rs2' | opcode2 |
  14711. +-------+------------+------+------------+------+---------+
  14712. 15 13 10 7 5 2 0
  14713. 'CA type: .insn ca opcode2, func6, func2, rd', rs2''
  14714. +-- ----+----------+-------+------+---------+
  14715. | func6 | rd'/rs1' | func2 | rs2' | opcode2 |
  14716. +-------+----------+-------+------+---------+
  14717. 15 10 7 5 2 0
  14718. 'CB type: .insn cb opcode2, func3, rs1', symbol'
  14719. +-------+--------------+------+------------------+---------+
  14720. | func3 | simm8[8|4:3] | rs1' | simm8[7:6|2:1|5] | opcode2 |
  14721. +-------+--------------+------+------------------+---------+
  14722. 15 13 10 7 2 0
  14723. 'CJ type: .insn cj opcode2, symbol'
  14724. +-------+-------------------------------+---------+
  14725. | func3 | simm11[11|4|9:8|10|6|7|3:1|5] | opcode2 |
  14726. +-------+-------------------------------+---------+
  14727. 15 13 2 0
  14728. For the complete list of all instruction format variants see The
  14729. RISC-V Instruction Set Manual Volume I: User-Level ISA.
  14730. 
  14731. File: as.info, Node: RISC-V-ATTRIBUTE, Prev: RISC-V-Formats, Up: RISC-V-Dependent
  14732. 9.38.5 RISC-V Object Attribute
  14733. ------------------------------
  14734. RISC-V attributes have a string value if the tag number is odd and an
  14735. integer value if the tag number is even.
  14736. Tag_RISCV_stack_align (4)
  14737. Tag_RISCV_strict_align records the N-byte stack alignment for this
  14738. object. The default value is 16 for RV32I or RV64I, and 4 for
  14739. RV32E.
  14740. The smallest value will be used if object files with different
  14741. Tag_RISCV_stack_align values are merged.
  14742. Tag_RISCV_arch (5)
  14743. Tag_RISCV_arch contains a string for the target architecture taken
  14744. from the option '-march'. Different architectures will be
  14745. integrated into a superset when object files are merged.
  14746. Note that the version information of the target architecture must
  14747. be presented explicitly in the attribute and abbreviations must be
  14748. expanded. The version information, if not given by '-march', must
  14749. be in accordance with the default specified by the tool. For
  14750. example, the architecture 'RV32I' has to be recorded in the
  14751. attribute as 'RV32I2P0' in which '2P0' stands for the default
  14752. version of its base ISA. On the other hand, the architecture
  14753. 'RV32G' has to be presented as 'RV32I2P0_M2P0_A2P0_F2P0_D2P0' in
  14754. which the abbreviation 'G' is expanded to the 'IMAFD' combination
  14755. with default versions of the standard extensions.
  14756. Tag_RISCV_unaligned_access (6)
  14757. Tag_RISCV_unaligned_access is 0 for files that do not allow any
  14758. unaligned memory accesses, and 1 for files that do allow unaligned
  14759. memory accesses.
  14760. Tag_RISCV_priv_spec (8)
  14761. Tag_RISCV_priv_spec_minor (10)
  14762. Tag_RISCV_priv_spec_revision (12)
  14763. Tag_RISCV_priv_spec contains the major/minor/revision version
  14764. information of the privileged specification. It will report errors
  14765. if object files of different privileged specification versions are
  14766. merged.
  14767. 
  14768. File: as.info, Node: RL78-Dependent, Next: RX-Dependent, Prev: RISC-V-Dependent, Up: Machine Dependencies
  14769. 9.39 RL78 Dependent Features
  14770. ============================
  14771. * Menu:
  14772. * RL78-Opts:: RL78 Assembler Command-line Options
  14773. * RL78-Modifiers:: Symbolic Operand Modifiers
  14774. * RL78-Directives:: Assembler Directives
  14775. * RL78-Syntax:: Syntax
  14776. 
  14777. File: as.info, Node: RL78-Opts, Next: RL78-Modifiers, Up: RL78-Dependent
  14778. 9.39.1 RL78 Options
  14779. -------------------
  14780. 'relax'
  14781. Enable support for link-time relaxation.
  14782. 'norelax'
  14783. Disable support for link-time relaxation (default).
  14784. 'mg10'
  14785. Mark the generated binary as targeting the G10 variant of the RL78
  14786. architecture.
  14787. 'mg13'
  14788. Mark the generated binary as targeting the G13 variant of the RL78
  14789. architecture.
  14790. 'mg14'
  14791. 'mrl78'
  14792. Mark the generated binary as targeting the G14 variant of the RL78
  14793. architecture. This is the default.
  14794. 'm32bit-doubles'
  14795. Mark the generated binary as one that uses 32-bits to hold the
  14796. 'double' floating point type. This is the default.
  14797. 'm64bit-doubles'
  14798. Mark the generated binary as one that uses 64-bits to hold the
  14799. 'double' floating point type.
  14800. 
  14801. File: as.info, Node: RL78-Modifiers, Next: RL78-Directives, Prev: RL78-Opts, Up: RL78-Dependent
  14802. 9.39.2 Symbolic Operand Modifiers
  14803. ---------------------------------
  14804. The RL78 has three modifiers that adjust the relocations used by the
  14805. linker:
  14806. '%lo16()'
  14807. When loading a 20-bit (or wider) address into registers, this
  14808. modifier selects the 16 least significant bits.
  14809. movw ax,#%lo16(_sym)
  14810. '%hi16()'
  14811. When loading a 20-bit (or wider) address into registers, this
  14812. modifier selects the 16 most significant bits.
  14813. movw ax,#%hi16(_sym)
  14814. '%hi8()'
  14815. When loading a 20-bit (or wider) address into registers, this
  14816. modifier selects the 8 bits that would go into CS or ES (i.e. bits
  14817. 23..16).
  14818. mov es, #%hi8(_sym)
  14819. 
  14820. File: as.info, Node: RL78-Directives, Next: RL78-Syntax, Prev: RL78-Modifiers, Up: RL78-Dependent
  14821. 9.39.3 Assembler Directives
  14822. ---------------------------
  14823. In addition to the common directives, the RL78 adds these:
  14824. '.double'
  14825. Output a constant in "double" format, which is either a 32-bit or a
  14826. 64-bit floating point value, depending upon the setting of the
  14827. '-m32bit-doubles'|'-m64bit-doubles' command-line option.
  14828. '.bss'
  14829. Select the BSS section.
  14830. '.3byte'
  14831. Output a constant value in a three byte format.
  14832. '.int'
  14833. '.word'
  14834. Output a constant value in a four byte format.
  14835. 
  14836. File: as.info, Node: RL78-Syntax, Prev: RL78-Directives, Up: RL78-Dependent
  14837. 9.39.4 Syntax for the RL78
  14838. --------------------------
  14839. * Menu:
  14840. * RL78-Chars:: Special Characters
  14841. 
  14842. File: as.info, Node: RL78-Chars, Up: RL78-Syntax
  14843. 9.39.4.1 Special Characters
  14844. ...........................
  14845. The presence of a ';' appearing anywhere on a line indicates the start
  14846. of a comment that extends to the end of that line.
  14847. If a '#' appears as the first character of a line then the whole line
  14848. is treated as a comment, but in this case the line can also be a logical
  14849. line number directive (*note Comments::) or a preprocessor control
  14850. command (*note Preprocessing::).
  14851. The '|' character can be used to separate statements on the same
  14852. line.
  14853. 
  14854. File: as.info, Node: RX-Dependent, Next: S/390-Dependent, Prev: RL78-Dependent, Up: Machine Dependencies
  14855. 9.40 RX Dependent Features
  14856. ==========================
  14857. * Menu:
  14858. * RX-Opts:: RX Assembler Command-line Options
  14859. * RX-Modifiers:: Symbolic Operand Modifiers
  14860. * RX-Directives:: Assembler Directives
  14861. * RX-Float:: Floating Point
  14862. * RX-Syntax:: Syntax
  14863. 
  14864. File: as.info, Node: RX-Opts, Next: RX-Modifiers, Up: RX-Dependent
  14865. 9.40.1 RX Options
  14866. -----------------
  14867. The Renesas RX port of 'as' has a few target specific command-line
  14868. options:
  14869. '-m32bit-doubles'
  14870. This option controls the ABI and indicates to use a 32-bit float
  14871. ABI. It has no effect on the assembled instructions, but it does
  14872. influence the behaviour of the '.double' pseudo-op. This is the
  14873. default.
  14874. '-m64bit-doubles'
  14875. This option controls the ABI and indicates to use a 64-bit float
  14876. ABI. It has no effect on the assembled instructions, but it does
  14877. influence the behaviour of the '.double' pseudo-op.
  14878. '-mbig-endian'
  14879. This option controls the ABI and indicates to use a big-endian data
  14880. ABI. It has no effect on the assembled instructions, but it does
  14881. influence the behaviour of the '.short', '.hword', '.int', '.word',
  14882. '.long', '.quad' and '.octa' pseudo-ops.
  14883. '-mlittle-endian'
  14884. This option controls the ABI and indicates to use a little-endian
  14885. data ABI. It has no effect on the assembled instructions, but it
  14886. does influence the behaviour of the '.short', '.hword', '.int',
  14887. '.word', '.long', '.quad' and '.octa' pseudo-ops. This is the
  14888. default.
  14889. '-muse-conventional-section-names'
  14890. This option controls the default names given to the code (.text),
  14891. initialised data (.data) and uninitialised data sections (.bss).
  14892. '-muse-renesas-section-names'
  14893. This option controls the default names given to the code (P),
  14894. initialised data (D_1) and uninitialised data sections (B_1). This
  14895. is the default.
  14896. '-msmall-data-limit'
  14897. This option tells the assembler that the small data limit feature
  14898. of the RX port of GCC is being used. This results in the assembler
  14899. generating an undefined reference to a symbol called '__gp' for use
  14900. by the relocations that are needed to support the small data limit
  14901. feature. This option is not enabled by default as it would
  14902. otherwise pollute the symbol table.
  14903. '-mpid'
  14904. This option tells the assembler that the position independent data
  14905. of the RX port of GCC is being used. This results in the assembler
  14906. generating an undefined reference to a symbol called '__pid_base',
  14907. and also setting the RX_PID flag bit in the e_flags field of the
  14908. ELF header of the object file.
  14909. '-mint-register=NUM'
  14910. This option tells the assembler how many registers have been
  14911. reserved for use by interrupt handlers. This is needed in order to
  14912. compute the correct values for the '%gpreg' and '%pidreg' meta
  14913. registers.
  14914. '-mgcc-abi'
  14915. This option tells the assembler that the old GCC ABI is being used
  14916. by the assembled code. With this version of the ABI function
  14917. arguments that are passed on the stack are aligned to a 32-bit
  14918. boundary.
  14919. '-mrx-abi'
  14920. This option tells the assembler that the official RX ABI is being
  14921. used by the assembled code. With this version of the ABI function
  14922. arguments that are passed on the stack are aligned to their natural
  14923. alignments. This option is the default.
  14924. '-mcpu=NAME'
  14925. This option tells the assembler the target CPU type. Currently the
  14926. 'rx100', 'rx200', 'rx600', 'rx610', 'rxv2', 'rxv3' and 'rxv3-dfpu'
  14927. are recognised as valid cpu names. Attempting to assemble an
  14928. instructionnot supported by the indicated cpu type will result in
  14929. an error message being generated.
  14930. '-mno-allow-string-insns'
  14931. This option tells the assembler to mark the object file that it is
  14932. building as one that does not use the string instructions 'SMOVF',
  14933. 'SCMPU', 'SMOVB', 'SMOVU', 'SUNTIL' 'SWHILE' or the 'RMPA'
  14934. instruction. In addition the mark tells the linker to complain if
  14935. an attempt is made to link the binary with another one that does
  14936. use any of these instructions.
  14937. Note - the inverse of this option, '-mallow-string-insns', is not
  14938. needed. The assembler automatically detects the use of the the
  14939. instructions in the source code and labels the resulting object
  14940. file appropriately. If no string instructions are detected then
  14941. the object file is labelled as being one that can be linked with
  14942. either string-using or string-banned object files.
  14943. 
  14944. File: as.info, Node: RX-Modifiers, Next: RX-Directives, Prev: RX-Opts, Up: RX-Dependent
  14945. 9.40.2 Symbolic Operand Modifiers
  14946. ---------------------------------
  14947. The assembler supports one modifier when using symbol addresses in RX
  14948. instruction operands. The general syntax is the following:
  14949. %gp(symbol)
  14950. The modifier returns the offset from the __GP symbol to the specified
  14951. symbol as a 16-bit value. The intent is that this offset should be used
  14952. in a register+offset move instruction when generating references to
  14953. small data. Ie, like this:
  14954. mov.W %gp(_foo)[%gpreg], r1
  14955. The assembler also supports two meta register names which can be used
  14956. to refer to registers whose values may not be known to the programmer.
  14957. These meta register names are:
  14958. '%gpreg'
  14959. The small data address register.
  14960. '%pidreg'
  14961. The PID base address register.
  14962. Both registers normally have the value r13, but this can change if
  14963. some registers have been reserved for use by interrupt handlers or if
  14964. both the small data limit and position independent data features are
  14965. being used at the same time.
  14966. 
  14967. File: as.info, Node: RX-Directives, Next: RX-Float, Prev: RX-Modifiers, Up: RX-Dependent
  14968. 9.40.3 Assembler Directives
  14969. ---------------------------
  14970. The RX version of 'as' has the following specific assembler directives:
  14971. '.3byte'
  14972. Inserts a 3-byte value into the output file at the current
  14973. location.
  14974. '.fetchalign'
  14975. If the next opcode following this directive spans a fetch line
  14976. boundary (8 byte boundary), the opcode is aligned to that boundary.
  14977. If the next opcode does not span a fetch line, this directive has
  14978. no effect. Note that one or more labels may be between this
  14979. directive and the opcode; those labels are aligned as well. Any
  14980. inserted bytes due to alignment will form a NOP opcode.
  14981. 
  14982. File: as.info, Node: RX-Float, Next: RX-Syntax, Prev: RX-Directives, Up: RX-Dependent
  14983. 9.40.4 Floating Point
  14984. ---------------------
  14985. The floating point formats generated by directives are these.
  14986. '.float'
  14987. 'Single' precision (32-bit) floating point constants.
  14988. '.double'
  14989. If the '-m64bit-doubles' command-line option has been specified
  14990. then then 'double' directive generates 'double' precision (64-bit)
  14991. floating point constants, otherwise it generates 'single' precision
  14992. (32-bit) floating point constants. To force the generation of
  14993. 64-bit floating point constants used the 'dc.d' directive instead.
  14994. 
  14995. File: as.info, Node: RX-Syntax, Prev: RX-Float, Up: RX-Dependent
  14996. 9.40.5 Syntax for the RX
  14997. ------------------------
  14998. * Menu:
  14999. * RX-Chars:: Special Characters
  15000. 
  15001. File: as.info, Node: RX-Chars, Up: RX-Syntax
  15002. 9.40.5.1 Special Characters
  15003. ...........................
  15004. The presence of a ';' appearing anywhere on a line indicates the start
  15005. of a comment that extends to the end of that line.
  15006. If a '#' appears as the first character of a line then the whole line
  15007. is treated as a comment, but in this case the line can also be a logical
  15008. line number directive (*note Comments::) or a preprocessor control
  15009. command (*note Preprocessing::).
  15010. The '!' character can be used to separate statements on the same
  15011. line.
  15012. 
  15013. File: as.info, Node: S/390-Dependent, Next: SCORE-Dependent, Prev: RX-Dependent, Up: Machine Dependencies
  15014. 9.41 IBM S/390 Dependent Features
  15015. =================================
  15016. The s390 version of 'as' supports two architectures modes and eleven
  15017. chip levels. The architecture modes are the Enterprise System
  15018. Architecture (ESA) and the newer z/Architecture mode. The chip levels
  15019. are g5 (or arch3), g6, z900 (or arch5), z990 (or arch6), z9-109, z9-ec
  15020. (or arch7), z10 (or arch8), z196 (or arch9), zEC12 (or arch10), z13 (or
  15021. arch11), z14 (or arch12), z15 (or arch13), or arch14.
  15022. * Menu:
  15023. * s390 Options:: Command-line Options.
  15024. * s390 Characters:: Special Characters.
  15025. * s390 Syntax:: Assembler Instruction syntax.
  15026. * s390 Directives:: Assembler Directives.
  15027. * s390 Floating Point:: Floating Point.
  15028. 
  15029. File: as.info, Node: s390 Options, Next: s390 Characters, Up: S/390-Dependent
  15030. 9.41.1 Options
  15031. --------------
  15032. The following table lists all available s390 specific options:
  15033. '-m31 | -m64'
  15034. Select 31- or 64-bit ABI implying a word size of 32- or 64-bit.
  15035. These options are only available with the ELF object file format,
  15036. and require that the necessary BFD support has been included (on a
  15037. 31-bit platform you must add -enable-64-bit-bfd on the call to the
  15038. configure script to enable 64-bit usage and use s390x as target
  15039. platform).
  15040. '-mesa | -mzarch'
  15041. Select the architecture mode, either the Enterprise System
  15042. Architecture (esa) mode or the z/Architecture mode (zarch).
  15043. The 64-bit instructions are only available with the z/Architecture
  15044. mode. The combination of '-m64' and '-mesa' results in a warning
  15045. message.
  15046. '-march=CPU'
  15047. This option specifies the target processor. The following
  15048. processor names are recognized: 'g5' (or 'arch3'), 'g6', 'z900' (or
  15049. 'arch5'), 'z990' (or 'arch6'), 'z9-109', 'z9-ec' (or 'arch7'),
  15050. 'z10' (or 'arch8'), 'z196' (or 'arch9'), 'zEC12' (or 'arch10'),
  15051. 'z13' (or 'arch11'), 'z14' (or 'arch12'), 'z15' (or 'arch13'), and
  15052. 'arch14'.
  15053. Assembling an instruction that is not supported on the target
  15054. processor results in an error message.
  15055. The processor names starting with 'arch' refer to the edition
  15056. number in the Principle of Operations manual. They can be used as
  15057. alternate processor names and have been added for compatibility
  15058. with the IBM XL compiler.
  15059. 'arch3', 'g5' and 'g6' cannot be used with the '-mzarch' option
  15060. since the z/Architecture mode is not supported on these processor
  15061. levels.
  15062. There is no 'arch4' option supported. 'arch4' matches
  15063. '-march=arch5 -mesa'.
  15064. '-mregnames'
  15065. Allow symbolic names for registers.
  15066. '-mno-regnames'
  15067. Do not allow symbolic names for registers.
  15068. '-mwarn-areg-zero'
  15069. Warn whenever the operand for a base or index register has been
  15070. specified but evaluates to zero. This can indicate the misuse of
  15071. general purpose register 0 as an address register.
  15072. 
  15073. File: as.info, Node: s390 Characters, Next: s390 Syntax, Prev: s390 Options, Up: S/390-Dependent
  15074. 9.41.2 Special Characters
  15075. -------------------------
  15076. '#' is the line comment character.
  15077. If a '#' appears as the first character of a line then the whole line
  15078. is treated as a comment, but in this case the line could also be a
  15079. logical line number directive (*note Comments::) or a preprocessor
  15080. control command (*note Preprocessing::).
  15081. The ';' character can be used instead of a newline to separate
  15082. statements.
  15083. 
  15084. File: as.info, Node: s390 Syntax, Next: s390 Directives, Prev: s390 Characters, Up: S/390-Dependent
  15085. 9.41.3 Instruction syntax
  15086. -------------------------
  15087. The assembler syntax closely follows the syntax outlined in Enterprise
  15088. Systems Architecture/390 Principles of Operation (SA22-7201) and the
  15089. z/Architecture Principles of Operation (SA22-7832).
  15090. Each instruction has two major parts, the instruction mnemonic and
  15091. the instruction operands. The instruction format varies.
  15092. * Menu:
  15093. * s390 Register:: Register Naming
  15094. * s390 Mnemonics:: Instruction Mnemonics
  15095. * s390 Operands:: Instruction Operands
  15096. * s390 Formats:: Instruction Formats
  15097. * s390 Aliases:: Instruction Aliases
  15098. * s390 Operand Modifier:: Instruction Operand Modifier
  15099. * s390 Instruction Marker:: Instruction Marker
  15100. * s390 Literal Pool Entries:: Literal Pool Entries
  15101. 
  15102. File: as.info, Node: s390 Register, Next: s390 Mnemonics, Up: s390 Syntax
  15103. 9.41.3.1 Register naming
  15104. ........................
  15105. The 'as' recognizes a number of predefined symbols for the various
  15106. processor registers. A register specification in one of the instruction
  15107. formats is an unsigned integer between 0 and 15. The specific
  15108. instruction and the position of the register in the instruction format
  15109. denotes the type of the register. The register symbols are prefixed
  15110. with '%':
  15111. %rN the 16 general purpose registers, 0 <= N <= 15
  15112. %fN the 16 floating point registers, 0 <= N <= 15
  15113. %aN the 16 access registers, 0 <= N <= 15
  15114. %cN the 16 control registers, 0 <= N <= 15
  15115. %lit an alias for the general purpose register %r13
  15116. %sp an alias for the general purpose register %r15
  15117. 
  15118. File: as.info, Node: s390 Mnemonics, Next: s390 Operands, Prev: s390 Register, Up: s390 Syntax
  15119. 9.41.3.2 Instruction Mnemonics
  15120. ..............................
  15121. All instructions documented in the Principles of Operation are supported
  15122. with the mnemonic and order of operands as described. The instruction
  15123. mnemonic identifies the instruction format (*note s390 Formats::) and
  15124. the specific operation code for the instruction. For example, the 'lr'
  15125. mnemonic denotes the instruction format 'RR' with the operation code
  15126. '0x18'.
  15127. The definition of the various mnemonics follows a scheme, where the
  15128. first character usually hint at the type of the instruction:
  15129. a add instruction, for example 'al' for add logical 32-bit
  15130. b branch instruction, for example 'bc' for branch on condition
  15131. c compare or convert instruction, for example 'cr' for compare
  15132. register 32-bit
  15133. d divide instruction, for example 'dlr' devide logical register
  15134. 64-bit to 32-bit
  15135. i insert instruction, for example 'ic' insert character
  15136. l load instruction, for example 'ltr' load and test register
  15137. mv move instruction, for example 'mvc' move character
  15138. m multiply instruction, for example 'mh' multiply halfword
  15139. n and instruction, for example 'ni' and immediate
  15140. o or instruction, for example 'oc' or character
  15141. sla, sll shift left single instruction
  15142. sra, srl shift right single instruction
  15143. st store instruction, for example 'stm' store multiple
  15144. s subtract instruction, for example 'slr' subtract
  15145. logical 32-bit
  15146. t test or translate instruction, of example 'tm' test under mask
  15147. x exclusive or instruction, for example 'xc' exclusive or
  15148. character
  15149. Certain characters at the end of the mnemonic may describe a property
  15150. of the instruction:
  15151. c the instruction uses a 8-bit character operand
  15152. f the instruction extends a 32-bit operand to 64 bit
  15153. g the operands are treated as 64-bit values
  15154. h the operand uses a 16-bit halfword operand
  15155. i the instruction uses an immediate operand
  15156. l the instruction uses unsigned, logical operands
  15157. m the instruction uses a mask or operates on multiple values
  15158. r if r is the last character, the instruction operates on registers
  15159. y the instruction uses 20-bit displacements
  15160. There are many exceptions to the scheme outlined in the above lists,
  15161. in particular for the privileged instructions. For non-privileged
  15162. instruction it works quite well, for example the instruction 'clgfr' c:
  15163. compare instruction, l: unsigned operands, g: 64-bit operands, f: 32- to
  15164. 64-bit extension, r: register operands. The instruction compares an
  15165. 64-bit value in a register with the zero extended 32-bit value from a
  15166. second register. For a complete list of all mnemonics see appendix B in
  15167. the Principles of Operation.
  15168. 
  15169. File: as.info, Node: s390 Operands, Next: s390 Formats, Prev: s390 Mnemonics, Up: s390 Syntax
  15170. 9.41.3.3 Instruction Operands
  15171. .............................
  15172. Instruction operands can be grouped into three classes, operands located
  15173. in registers, immediate operands, and operands in storage.
  15174. A register operand can be located in general, floating-point, access,
  15175. or control register. The register is identified by a four-bit field.
  15176. The field containing the register operand is called the R field.
  15177. Immediate operands are contained within the instruction and can have
  15178. 8, 16 or 32 bits. The field containing the immediate operand is called
  15179. the I field. Dependent on the instruction the I field is either signed
  15180. or unsigned.
  15181. A storage operand consists of an address and a length. The address
  15182. of a storage operands can be specified in any of these ways:
  15183. * The content of a single general R
  15184. * The sum of the content of a general register called the base
  15185. register B plus the content of a displacement field D
  15186. * The sum of the contents of two general registers called the index
  15187. register X and the base register B plus the content of a
  15188. displacement field
  15189. * The sum of the current instruction address and a 32-bit signed
  15190. immediate field multiplied by two.
  15191. The length of a storage operand can be:
  15192. * Implied by the instruction
  15193. * Specified by a bitmask
  15194. * Specified by a four-bit or eight-bit length field L
  15195. * Specified by the content of a general register
  15196. The notation for storage operand addresses formed from multiple
  15197. fields is as follows:
  15198. 'Dn(Bn)'
  15199. the address for operand number n is formed from the content of
  15200. general register Bn called the base register and the displacement
  15201. field Dn.
  15202. 'Dn(Xn,Bn)'
  15203. the address for operand number n is formed from the content of
  15204. general register Xn called the index register, general register Bn
  15205. called the base register and the displacement field Dn.
  15206. 'Dn(Ln,Bn)'
  15207. the address for operand number n is formed from the content of
  15208. general register Bn called the base register and the displacement
  15209. field Dn. The length of the operand n is specified by the field
  15210. Ln.
  15211. The base registers Bn and the index registers Xn of a storage operand
  15212. can be skipped. If Bn and Xn are skipped, a zero will be stored to the
  15213. operand field. The notation changes as follows:
  15214. full notation short notation
  15215. ----------------------------------------------
  15216. Dn(0,Bn) Dn(Bn)
  15217. Dn(0,0) Dn
  15218. Dn(0) Dn
  15219. Dn(Ln,0) Dn(Ln)
  15220. 
  15221. File: as.info, Node: s390 Formats, Next: s390 Aliases, Prev: s390 Operands, Up: s390 Syntax
  15222. 9.41.3.4 Instruction Formats
  15223. ............................
  15224. The Principles of Operation manuals lists 35 instruction formats where
  15225. some of the formats have multiple variants. For the '.insn' pseudo
  15226. directive the assembler recognizes some of the formats. Typically, the
  15227. most general variant of the instruction format is used by the '.insn'
  15228. directive.
  15229. The following table lists the abbreviations used in the table of
  15230. instruction formats:
  15231. OpCode / OpCd Part of the op code.
  15232. Bx Base register number for operand x.
  15233. Dx Displacement for operand x.
  15234. DLx Displacement lower 12 bits for operand x.
  15235. DHx Displacement higher 8-bits for operand x.
  15236. Rx Register number for operand x.
  15237. Xx Index register number for operand x.
  15238. Ix Signed immediate for operand x.
  15239. Ux Unsigned immediate for operand x.
  15240. An instruction is two, four, or six bytes in length and must be
  15241. aligned on a 2 byte boundary. The first two bits of the instruction
  15242. specify the length of the instruction, 00 indicates a two byte
  15243. instruction, 01 and 10 indicates a four byte instruction, and 11
  15244. indicates a six byte instruction.
  15245. The following table lists the s390 instruction formats that are
  15246. available with the '.insn' pseudo directive:
  15247. 'E format'
  15248. +-------------+
  15249. | OpCode |
  15250. +-------------+
  15251. 0 15
  15252. 'RI format: <insn> R1,I2'
  15253. +--------+----+----+------------------+
  15254. | OpCode | R1 |OpCd| I2 |
  15255. +--------+----+----+------------------+
  15256. 0 8 12 16 31
  15257. 'RIE format: <insn> R1,R3,I2'
  15258. +--------+----+----+------------------+--------+--------+
  15259. | OpCode | R1 | R3 | I2 |////////| OpCode |
  15260. +--------+----+----+------------------+--------+--------+
  15261. 0 8 12 16 32 40 47
  15262. 'RIL format: <insn> R1,I2'
  15263. +--------+----+----+------------------------------------+
  15264. | OpCode | R1 |OpCd| I2 |
  15265. +--------+----+----+------------------------------------+
  15266. 0 8 12 16 47
  15267. 'RILU format: <insn> R1,U2'
  15268. +--------+----+----+------------------------------------+
  15269. | OpCode | R1 |OpCd| U2 |
  15270. +--------+----+----+------------------------------------+
  15271. 0 8 12 16 47
  15272. 'RIS format: <insn> R1,I2,M3,D4(B4)'
  15273. +--------+----+----+----+-------------+--------+--------+
  15274. | OpCode | R1 | M3 | B4 | D4 | I2 | Opcode |
  15275. +--------+----+----+----+-------------+--------+--------+
  15276. 0 8 12 16 20 32 36 47
  15277. 'RR format: <insn> R1,R2'
  15278. +--------+----+----+
  15279. | OpCode | R1 | R2 |
  15280. +--------+----+----+
  15281. 0 8 12 15
  15282. 'RRE format: <insn> R1,R2'
  15283. +------------------+--------+----+----+
  15284. | OpCode |////////| R1 | R2 |
  15285. +------------------+--------+----+----+
  15286. 0 16 24 28 31
  15287. 'RRF format: <insn> R1,R2,R3,M4'
  15288. +------------------+----+----+----+----+
  15289. | OpCode | R3 | M4 | R1 | R2 |
  15290. +------------------+----+----+----+----+
  15291. 0 16 20 24 28 31
  15292. 'RRS format: <insn> R1,R2,M3,D4(B4)'
  15293. +--------+----+----+----+-------------+----+----+--------+
  15294. | OpCode | R1 | R3 | B4 | D4 | M3 |////| OpCode |
  15295. +--------+----+----+----+-------------+----+----+--------+
  15296. 0 8 12 16 20 32 36 40 47
  15297. 'RS format: <insn> R1,R3,D2(B2)'
  15298. +--------+----+----+----+-------------+
  15299. | OpCode | R1 | R3 | B2 | D2 |
  15300. +--------+----+----+----+-------------+
  15301. 0 8 12 16 20 31
  15302. 'RSE format: <insn> R1,R3,D2(B2)'
  15303. +--------+----+----+----+-------------+--------+--------+
  15304. | OpCode | R1 | R3 | B2 | D2 |////////| OpCode |
  15305. +--------+----+----+----+-------------+--------+--------+
  15306. 0 8 12 16 20 32 40 47
  15307. 'RSI format: <insn> R1,R3,I2'
  15308. +--------+----+----+------------------------------------+
  15309. | OpCode | R1 | R3 | I2 |
  15310. +--------+----+----+------------------------------------+
  15311. 0 8 12 16 47
  15312. 'RSY format: <insn> R1,R3,D2(B2)'
  15313. +--------+----+----+----+-------------+--------+--------+
  15314. | OpCode | R1 | R3 | B2 | DL2 | DH2 | OpCode |
  15315. +--------+----+----+----+-------------+--------+--------+
  15316. 0 8 12 16 20 32 40 47
  15317. 'RX format: <insn> R1,D2(X2,B2)'
  15318. +--------+----+----+----+-------------+
  15319. | OpCode | R1 | X2 | B2 | D2 |
  15320. +--------+----+----+----+-------------+
  15321. 0 8 12 16 20 31
  15322. 'RXE format: <insn> R1,D2(X2,B2)'
  15323. +--------+----+----+----+-------------+--------+--------+
  15324. | OpCode | R1 | X2 | B2 | D2 |////////| OpCode |
  15325. +--------+----+----+----+-------------+--------+--------+
  15326. 0 8 12 16 20 32 40 47
  15327. 'RXF format: <insn> R1,R3,D2(X2,B2)'
  15328. +--------+----+----+----+-------------+----+---+--------+
  15329. | OpCode | R3 | X2 | B2 | D2 | R1 |///| OpCode |
  15330. +--------+----+----+----+-------------+----+---+--------+
  15331. 0 8 12 16 20 32 36 40 47
  15332. 'RXY format: <insn> R1,D2(X2,B2)'
  15333. +--------+----+----+----+-------------+--------+--------+
  15334. | OpCode | R1 | X2 | B2 | DL2 | DH2 | OpCode |
  15335. +--------+----+----+----+-------------+--------+--------+
  15336. 0 8 12 16 20 32 36 40 47
  15337. 'S format: <insn> D2(B2)'
  15338. +------------------+----+-------------+
  15339. | OpCode | B2 | D2 |
  15340. +------------------+----+-------------+
  15341. 0 16 20 31
  15342. 'SI format: <insn> D1(B1),I2'
  15343. +--------+---------+----+-------------+
  15344. | OpCode | I2 | B1 | D1 |
  15345. +--------+---------+----+-------------+
  15346. 0 8 16 20 31
  15347. 'SIY format: <insn> D1(B1),U2'
  15348. +--------+---------+----+-------------+--------+--------+
  15349. | OpCode | I2 | B1 | DL1 | DH1 | OpCode |
  15350. +--------+---------+----+-------------+--------+--------+
  15351. 0 8 16 20 32 36 40 47
  15352. 'SIL format: <insn> D1(B1),I2'
  15353. +------------------+----+-------------+-----------------+
  15354. | OpCode | B1 | D1 | I2 |
  15355. +------------------+----+-------------+-----------------+
  15356. 0 16 20 32 47
  15357. 'SS format: <insn> D1(R1,B1),D2(B3),R3'
  15358. +--------+----+----+----+-------------+----+------------+
  15359. | OpCode | R1 | R3 | B1 | D1 | B2 | D2 |
  15360. +--------+----+----+----+-------------+----+------------+
  15361. 0 8 12 16 20 32 36 47
  15362. 'SSE format: <insn> D1(B1),D2(B2)'
  15363. +------------------+----+-------------+----+------------+
  15364. | OpCode | B1 | D1 | B2 | D2 |
  15365. +------------------+----+-------------+----+------------+
  15366. 0 8 12 16 20 32 36 47
  15367. 'SSF format: <insn> D1(B1),D2(B2),R3'
  15368. +--------+----+----+----+-------------+----+------------+
  15369. | OpCode | R3 |OpCd| B1 | D1 | B2 | D2 |
  15370. +--------+----+----+----+-------------+----+------------+
  15371. 0 8 12 16 20 32 36 47
  15372. 'VRV format: <insn> V1,D2(V2,B2),M3'
  15373. +--------+----+----+----+-------------+----+------------+
  15374. | OpCode | V1 | V2 | B2 | D2 | M3 | Opcode |
  15375. +--------+----+----+----+-------------+----+------------+
  15376. 0 8 12 16 20 32 36 47
  15377. 'VRI format: <insn> V1,V2,I3,M4,M5'
  15378. +--------+----+----+-------------+----+----+------------+
  15379. | OpCode | V1 | V2 | I3 | M5 | M4 | Opcode |
  15380. +--------+----+----+-------------+----+----+------------+
  15381. 0 8 12 16 28 32 36 47
  15382. 'VRX format: <insn> V1,D2(R2,B2),M3'
  15383. +--------+----+----+----+-------------+----+------------+
  15384. | OpCode | V1 | R2 | B2 | D2 | M3 | Opcode |
  15385. +--------+----+----+----+-------------+----+------------+
  15386. 0 8 12 16 20 32 36 47
  15387. 'VRS format: <insn> R1,V3,D2(B2),M4'
  15388. +--------+----+----+----+-------------+----+------------+
  15389. | OpCode | R1 | V3 | B2 | D2 | M4 | Opcode |
  15390. +--------+----+----+----+-------------+----+------------+
  15391. 0 8 12 16 20 32 36 47
  15392. 'VRR format: <insn> V1,V2,V3,M4,M5,M6'
  15393. +--------+----+----+----+---+----+----+----+------------+
  15394. | OpCode | V1 | V2 | V3 |///| M6 | M5 | M4 | Opcode |
  15395. +--------+----+----+----+---+----+----+----+------------+
  15396. 0 8 12 16 24 28 32 36 47
  15397. 'VSI format: <insn> V1,D2(B2),I3'
  15398. +--------+---------+----+-------------+----+------------+
  15399. | OpCode | I3 | B2 | D2 | V1 | Opcode |
  15400. +--------+---------+----+-------------+----+------------+
  15401. 0 8 16 20 32 36 47
  15402. For the complete list of all instruction format variants see the
  15403. Principles of Operation manuals.
  15404. 
  15405. File: as.info, Node: s390 Aliases, Next: s390 Operand Modifier, Prev: s390 Formats, Up: s390 Syntax
  15406. 9.41.3.5 Instruction Aliases
  15407. ............................
  15408. A specific bit pattern can have multiple mnemonics, for example the bit
  15409. pattern '0xa7000000' has the mnemonics 'tmh' and 'tmlh'. In addition,
  15410. there are a number of mnemonics recognized by 'as' that are not present
  15411. in the Principles of Operation. These are the short forms of the branch
  15412. instructions, where the condition code mask operand is encoded in the
  15413. mnemonic. This is relevant for the branch instructions, the compare and
  15414. branch instructions, and the compare and trap instructions.
  15415. For the branch instructions there are 20 condition code strings that
  15416. can be used as part of the mnemonic in place of a mask operand in the
  15417. instruction format:
  15418. instruction short form
  15419. ----------------------------------------------
  15420. bcr M1,R2 b<m>r R2
  15421. bc M1,D2(X2,B2) b<m> D2(X2,B2)
  15422. brc M1,I2 j<m> I2
  15423. brcl M1,I2 jg<m> I2
  15424. In the mnemonic for a branch instruction the condition code string
  15425. <m> can be any of the following:
  15426. o jump on overflow / if ones
  15427. h jump on A high
  15428. p jump on plus
  15429. nle jump on not low or equal
  15430. l jump on A low
  15431. m jump on minus
  15432. nhe jump on not high or equal
  15433. lh jump on low or high
  15434. ne jump on A not equal B
  15435. nz jump on not zero / if not zeros
  15436. e jump on A equal B
  15437. z jump on zero / if zeroes
  15438. nlh jump on not low or high
  15439. he jump on high or equal
  15440. nl jump on A not low
  15441. nm jump on not minus / if not mixed
  15442. le jump on low or equal
  15443. nh jump on A not high
  15444. np jump on not plus
  15445. no jump on not overflow / if not ones
  15446. For the compare and branch, and compare and trap instructions there
  15447. are 12 condition code strings that can be used as part of the mnemonic
  15448. in place of a mask operand in the instruction format:
  15449. instruction short form
  15450. ------------------------------------------------------------
  15451. crb R1,R2,M3,D4(B4) crb<m> R1,R2,D4(B4)
  15452. cgrb R1,R2,M3,D4(B4) cgrb<m> R1,R2,D4(B4)
  15453. crj R1,R2,M3,I4 crj<m> R1,R2,I4
  15454. cgrj R1,R2,M3,I4 cgrj<m> R1,R2,I4
  15455. cib R1,I2,M3,D4(B4) cib<m> R1,I2,D4(B4)
  15456. cgib R1,I2,M3,D4(B4) cgib<m> R1,I2,D4(B4)
  15457. cij R1,I2,M3,I4 cij<m> R1,I2,I4
  15458. cgij R1,I2,M3,I4 cgij<m> R1,I2,I4
  15459. crt R1,R2,M3 crt<m> R1,R2
  15460. cgrt R1,R2,M3 cgrt<m> R1,R2
  15461. cit R1,I2,M3 cit<m> R1,I2
  15462. cgit R1,I2,M3 cgit<m> R1,I2
  15463. clrb R1,R2,M3,D4(B4) clrb<m> R1,R2,D4(B4)
  15464. clgrb R1,R2,M3,D4(B4) clgrb<m> R1,R2,D4(B4)
  15465. clrj R1,R2,M3,I4 clrj<m> R1,R2,I4
  15466. clgrj R1,R2,M3,I4 clgrj<m> R1,R2,I4
  15467. clib R1,I2,M3,D4(B4) clib<m> R1,I2,D4(B4)
  15468. clgib R1,I2,M3,D4(B4) clgib<m> R1,I2,D4(B4)
  15469. clij R1,I2,M3,I4 clij<m> R1,I2,I4
  15470. clgij R1,I2,M3,I4 clgij<m> R1,I2,I4
  15471. clrt R1,R2,M3 clrt<m> R1,R2
  15472. clgrt R1,R2,M3 clgrt<m> R1,R2
  15473. clfit R1,I2,M3 clfit<m> R1,I2
  15474. clgit R1,I2,M3 clgit<m> R1,I2
  15475. In the mnemonic for a compare and branch and compare and trap
  15476. instruction the condition code string <m> can be any of the following:
  15477. h jump on A high
  15478. nle jump on not low or equal
  15479. l jump on A low
  15480. nhe jump on not high or equal
  15481. ne jump on A not equal B
  15482. lh jump on low or high
  15483. e jump on A equal B
  15484. nlh jump on not low or high
  15485. nl jump on A not low
  15486. he jump on high or equal
  15487. nh jump on A not high
  15488. le jump on low or equal
  15489. 
  15490. File: as.info, Node: s390 Operand Modifier, Next: s390 Instruction Marker, Prev: s390 Aliases, Up: s390 Syntax
  15491. 9.41.3.6 Instruction Operand Modifier
  15492. .....................................
  15493. If a symbol modifier is attached to a symbol in an expression for an
  15494. instruction operand field, the symbol term is replaced with a reference
  15495. to an object in the global offset table (GOT) or the procedure linkage
  15496. table (PLT). The following expressions are allowed: 'symbol@modifier +
  15497. constant', 'symbol@modifier + label + constant', and 'symbol@modifier -
  15498. label + constant'. The term 'symbol' is the symbol that will be entered
  15499. into the GOT or PLT, 'label' is a local label, and 'constant' is an
  15500. arbitrary expression that the assembler can evaluate to a constant
  15501. value.
  15502. The term '(symbol + constant1)@modifier +/- label + constant2' is
  15503. also accepted but a warning message is printed and the term is converted
  15504. to 'symbol@modifier +/- label + constant1 + constant2'.
  15505. '@got'
  15506. '@got12'
  15507. The @got modifier can be used for displacement fields, 16-bit
  15508. immediate fields and 32-bit pc-relative immediate fields. The
  15509. @got12 modifier is synonym to @got. The symbol is added to the
  15510. GOT. For displacement fields and 16-bit immediate fields the symbol
  15511. term is replaced with the offset from the start of the GOT to the
  15512. GOT slot for the symbol. For a 32-bit pc-relative field the
  15513. pc-relative offset to the GOT slot from the current instruction
  15514. address is used.
  15515. '@gotent'
  15516. The @gotent modifier can be used for 32-bit pc-relative immediate
  15517. fields. The symbol is added to the GOT and the symbol term is
  15518. replaced with the pc-relative offset from the current instruction
  15519. to the GOT slot for the symbol.
  15520. '@gotoff'
  15521. The @gotoff modifier can be used for 16-bit immediate fields. The
  15522. symbol term is replaced with the offset from the start of the GOT
  15523. to the address of the symbol.
  15524. '@gotplt'
  15525. The @gotplt modifier can be used for displacement fields, 16-bit
  15526. immediate fields, and 32-bit pc-relative immediate fields. A
  15527. procedure linkage table entry is generated for the symbol and a
  15528. jump slot for the symbol is added to the GOT. For displacement
  15529. fields and 16-bit immediate fields the symbol term is replaced with
  15530. the offset from the start of the GOT to the jump slot for the
  15531. symbol. For a 32-bit pc-relative field the pc-relative offset to
  15532. the jump slot from the current instruction address is used.
  15533. '@plt'
  15534. The @plt modifier can be used for 16-bit and 32-bit pc-relative
  15535. immediate fields. A procedure linkage table entry is generated for
  15536. the symbol. The symbol term is replaced with the relative offset
  15537. from the current instruction to the PLT entry for the symbol.
  15538. '@pltoff'
  15539. The @pltoff modifier can be used for 16-bit immediate fields. The
  15540. symbol term is replaced with the offset from the start of the PLT
  15541. to the address of the symbol.
  15542. '@gotntpoff'
  15543. The @gotntpoff modifier can be used for displacement fields. The
  15544. symbol is added to the static TLS block and the negated offset to
  15545. the symbol in the static TLS block is added to the GOT. The symbol
  15546. term is replaced with the offset to the GOT slot from the start of
  15547. the GOT.
  15548. '@indntpoff'
  15549. The @indntpoff modifier can be used for 32-bit pc-relative
  15550. immediate fields. The symbol is added to the static TLS block and
  15551. the negated offset to the symbol in the static TLS block is added
  15552. to the GOT. The symbol term is replaced with the pc-relative offset
  15553. to the GOT slot from the current instruction address.
  15554. For more information about the thread local storage modifiers
  15555. 'gotntpoff' and 'indntpoff' see the ELF extension documentation 'ELF
  15556. Handling For Thread-Local Storage'.
  15557. 
  15558. File: as.info, Node: s390 Instruction Marker, Next: s390 Literal Pool Entries, Prev: s390 Operand Modifier, Up: s390 Syntax
  15559. 9.41.3.7 Instruction Marker
  15560. ...........................
  15561. The thread local storage instruction markers are used by the linker to
  15562. perform code optimization.
  15563. ':tls_load'
  15564. The :tls_load marker is used to flag the load instruction in the
  15565. initial exec TLS model that retrieves the offset from the thread
  15566. pointer to a thread local storage variable from the GOT.
  15567. ':tls_gdcall'
  15568. The :tls_gdcall marker is used to flag the branch-and-save
  15569. instruction to the __tls_get_offset function in the global dynamic
  15570. TLS model.
  15571. ':tls_ldcall'
  15572. The :tls_ldcall marker is used to flag the branch-and-save
  15573. instruction to the __tls_get_offset function in the local dynamic
  15574. TLS model.
  15575. For more information about the thread local storage instruction
  15576. marker and the linker optimizations see the ELF extension documentation
  15577. 'ELF Handling For Thread-Local Storage'.
  15578. 
  15579. File: as.info, Node: s390 Literal Pool Entries, Prev: s390 Instruction Marker, Up: s390 Syntax
  15580. 9.41.3.8 Literal Pool Entries
  15581. .............................
  15582. A literal pool is a collection of values. To access the values a
  15583. pointer to the literal pool is loaded to a register, the literal pool
  15584. register. Usually, register %r13 is used as the literal pool register
  15585. (*note s390 Register::). Literal pool entries are created by adding the
  15586. suffix :lit1, :lit2, :lit4, or :lit8 to the end of an expression for an
  15587. instruction operand. The expression is added to the literal pool and
  15588. the operand is replaced with the offset to the literal in the literal
  15589. pool.
  15590. ':lit1'
  15591. The literal pool entry is created as an 8-bit value. An operand
  15592. modifier must not be used for the original expression.
  15593. ':lit2'
  15594. The literal pool entry is created as a 16 bit value. The operand
  15595. modifier @got may be used in the original expression. The term
  15596. 'x@got:lit2' will put the got offset for the global symbol x to the
  15597. literal pool as 16 bit value.
  15598. ':lit4'
  15599. The literal pool entry is created as a 32-bit value. The operand
  15600. modifier @got and @plt may be used in the original expression. The
  15601. term 'x@got:lit4' will put the got offset for the global symbol x
  15602. to the literal pool as a 32-bit value. The term 'x@plt:lit4' will
  15603. put the plt offset for the global symbol x to the literal pool as a
  15604. 32-bit value.
  15605. ':lit8'
  15606. The literal pool entry is created as a 64-bit value. The operand
  15607. modifier @got and @plt may be used in the original expression. The
  15608. term 'x@got:lit8' will put the got offset for the global symbol x
  15609. to the literal pool as a 64-bit value. The term 'x@plt:lit8' will
  15610. put the plt offset for the global symbol x to the literal pool as a
  15611. 64-bit value.
  15612. The assembler directive '.ltorg' is used to emit all literal pool
  15613. entries to the current position.
  15614. 
  15615. File: as.info, Node: s390 Directives, Next: s390 Floating Point, Prev: s390 Syntax, Up: S/390-Dependent
  15616. 9.41.4 Assembler Directives
  15617. ---------------------------
  15618. 'as' for s390 supports all of the standard ELF assembler directives as
  15619. outlined in the main part of this document. Some directives have been
  15620. extended and there are some additional directives, which are only
  15621. available for the s390 'as'.
  15622. '.insn'
  15623. This directive permits the numeric representation of an
  15624. instructions and makes the assembler insert the operands according
  15625. to one of the instructions formats for '.insn' (*note s390
  15626. Formats::). For example, the instruction 'l %r1,24(%r15)' could be
  15627. written as '.insn rx,0x58000000,%r1,24(%r15)'.
  15628. '.short'
  15629. '.long'
  15630. '.quad'
  15631. This directive places one or more 16-bit (.short), 32-bit (.long),
  15632. or 64-bit (.quad) values into the current section. If an ELF or
  15633. TLS modifier is used only the following expressions are allowed:
  15634. 'symbol@modifier + constant', 'symbol@modifier + label + constant',
  15635. and 'symbol@modifier - label + constant'. The following modifiers
  15636. are available:
  15637. '@got'
  15638. '@got12'
  15639. The @got modifier can be used for .short, .long and .quad.
  15640. The @got12 modifier is synonym to @got. The symbol is added
  15641. to the GOT. The symbol term is replaced with offset from the
  15642. start of the GOT to the GOT slot for the symbol.
  15643. '@gotoff'
  15644. The @gotoff modifier can be used for .short, .long and .quad.
  15645. The symbol term is replaced with the offset from the start of
  15646. the GOT to the address of the symbol.
  15647. '@gotplt'
  15648. The @gotplt modifier can be used for .long and .quad. A
  15649. procedure linkage table entry is generated for the symbol and
  15650. a jump slot for the symbol is added to the GOT. The symbol
  15651. term is replaced with the offset from the start of the GOT to
  15652. the jump slot for the symbol.
  15653. '@plt'
  15654. The @plt modifier can be used for .long and .quad. A
  15655. procedure linkage table entry us generated for the symbol.
  15656. The symbol term is replaced with the address of the PLT entry
  15657. for the symbol.
  15658. '@pltoff'
  15659. The @pltoff modifier can be used for .short, .long and .quad.
  15660. The symbol term is replaced with the offset from the start of
  15661. the PLT to the address of the symbol.
  15662. '@tlsgd'
  15663. '@tlsldm'
  15664. The @tlsgd and @tlsldm modifier can be used for .long and
  15665. .quad. A tls_index structure for the symbol is added to the
  15666. GOT. The symbol term is replaced with the offset from the
  15667. start of the GOT to the tls_index structure.
  15668. '@gotntpoff'
  15669. '@indntpoff'
  15670. The @gotntpoff and @indntpoff modifier can be used for .long
  15671. and .quad. The symbol is added to the static TLS block and
  15672. the negated offset to the symbol in the static TLS block is
  15673. added to the GOT. For @gotntpoff the symbol term is replaced
  15674. with the offset from the start of the GOT to the GOT slot, for
  15675. @indntpoff the symbol term is replaced with the address of the
  15676. GOT slot.
  15677. '@dtpoff'
  15678. The @dtpoff modifier can be used for .long and .quad. The
  15679. symbol term is replaced with the offset of the symbol relative
  15680. to the start of the TLS block it is contained in.
  15681. '@ntpoff'
  15682. The @ntpoff modifier can be used for .long and .quad. The
  15683. symbol term is replaced with the offset of the symbol relative
  15684. to the TCB pointer.
  15685. For more information about the thread local storage modifiers see
  15686. the ELF extension documentation 'ELF Handling For Thread-Local
  15687. Storage'.
  15688. '.ltorg'
  15689. This directive causes the current contents of the literal pool to
  15690. be dumped to the current location (*note s390 Literal Pool
  15691. Entries::).
  15692. '.machine STRING[+EXTENSION]...'
  15693. This directive allows changing the machine for which code is
  15694. generated. 'string' may be any of the '-march=' selection options,
  15695. or 'push', or 'pop'. '.machine push' saves the currently selected
  15696. cpu, which may be restored with '.machine pop'. Be aware that the
  15697. cpu string has to be put into double quotes in case it contains
  15698. characters not appropriate for identifiers. So you have to write
  15699. '"z9-109"' instead of just 'z9-109'. Extensions can be specified
  15700. after the cpu name, separated by plus characters. Valid extensions
  15701. are: 'htm', 'nohtm', 'vx', 'novx'. They extend the basic
  15702. instruction set with features from a higher cpu level, or remove
  15703. support for a feature from the given cpu level.
  15704. Example: 'z13+nohtm' allows all instructions of the z13 cpu except
  15705. instructions from the HTM facility.
  15706. '.machinemode string'
  15707. This directive allows one to change the architecture mode for which
  15708. code is being generated. 'string' may be 'esa', 'zarch',
  15709. 'zarch_nohighgprs', 'push', or 'pop'. '.machinemode
  15710. zarch_nohighgprs' can be used to prevent the 'highgprs' flag from
  15711. being set in the ELF header of the output file. This is useful in
  15712. situations where the code is gated with a runtime check which makes
  15713. sure that the code is only executed on kernels providing the
  15714. 'highgprs' feature. '.machinemode push' saves the currently
  15715. selected mode, which may be restored with '.machinemode pop'.
  15716. 
  15717. File: as.info, Node: s390 Floating Point, Prev: s390 Directives, Up: S/390-Dependent
  15718. 9.41.5 Floating Point
  15719. ---------------------
  15720. The assembler recognizes both the IEEE floating-point instruction and
  15721. the hexadecimal floating-point instructions. The floating-point
  15722. constructors '.float', '.single', and '.double' always emit the IEEE
  15723. format. To assemble hexadecimal floating-point constants the '.long'
  15724. and '.quad' directives must be used.
  15725. 
  15726. File: as.info, Node: SCORE-Dependent, Next: SH-Dependent, Prev: S/390-Dependent, Up: Machine Dependencies
  15727. 9.42 SCORE Dependent Features
  15728. =============================
  15729. * Menu:
  15730. * SCORE-Opts:: Assembler options
  15731. * SCORE-Pseudo:: SCORE Assembler Directives
  15732. * SCORE-Syntax:: Syntax
  15733. 
  15734. File: as.info, Node: SCORE-Opts, Next: SCORE-Pseudo, Up: SCORE-Dependent
  15735. 9.42.1 Options
  15736. --------------
  15737. The following table lists all available SCORE options.
  15738. '-G NUM'
  15739. This option sets the largest size of an object that can be
  15740. referenced implicitly with the 'gp' register. The default value is
  15741. 8.
  15742. '-EB'
  15743. Assemble code for a big-endian cpu
  15744. '-EL'
  15745. Assemble code for a little-endian cpu
  15746. '-FIXDD'
  15747. Assemble code for fix data dependency
  15748. '-NWARN'
  15749. Assemble code for no warning message for fix data dependency
  15750. '-SCORE5'
  15751. Assemble code for target is SCORE5
  15752. '-SCORE5U'
  15753. Assemble code for target is SCORE5U
  15754. '-SCORE7'
  15755. Assemble code for target is SCORE7, this is default setting
  15756. '-SCORE3'
  15757. Assemble code for target is SCORE3
  15758. '-march=score7'
  15759. Assemble code for target is SCORE7, this is default setting
  15760. '-march=score3'
  15761. Assemble code for target is SCORE3
  15762. '-USE_R1'
  15763. Assemble code for no warning message when using temp register r1
  15764. '-KPIC'
  15765. Generate code for PIC. This option tells the assembler to generate
  15766. score position-independent macro expansions. It also tells the
  15767. assembler to mark the output file as PIC.
  15768. '-O0'
  15769. Assembler will not perform any optimizations
  15770. '-V'
  15771. Sunplus release version
  15772. 
  15773. File: as.info, Node: SCORE-Pseudo, Next: SCORE-Syntax, Prev: SCORE-Opts, Up: SCORE-Dependent
  15774. 9.42.2 SCORE Assembler Directives
  15775. ---------------------------------
  15776. A number of assembler directives are available for SCORE. The following
  15777. table is far from complete.
  15778. '.set nwarn'
  15779. Let the assembler not to generate warnings if the source machine
  15780. language instructions happen data dependency.
  15781. '.set fixdd'
  15782. Let the assembler to insert bubbles (32 bit nop instruction / 16
  15783. bit nop! Instruction) if the source machine language instructions
  15784. happen data dependency.
  15785. '.set nofixdd'
  15786. Let the assembler to generate warnings if the source machine
  15787. language instructions happen data dependency. (Default)
  15788. '.set r1'
  15789. Let the assembler not to generate warnings if the source program
  15790. uses r1. allow user to use r1
  15791. 'set nor1'
  15792. Let the assembler to generate warnings if the source program uses
  15793. r1. (Default)
  15794. '.sdata'
  15795. Tell the assembler to add subsequent data into the sdata section
  15796. '.rdata'
  15797. Tell the assembler to add subsequent data into the rdata section
  15798. '.frame "frame-register", "offset", "return-pc-register"'
  15799. Describe a stack frame. "frame-register" is the frame register,
  15800. "offset" is the distance from the frame register to the virtual
  15801. frame pointer, "return-pc-register" is the return program register.
  15802. You must use ".ent" before ".frame" and only one ".frame" can be
  15803. used per ".ent".
  15804. '.mask "bitmask", "frameoffset"'
  15805. Indicate which of the integer registers are saved in the current
  15806. function's stack frame, this is for the debugger to explain the
  15807. frame chain.
  15808. '.ent "proc-name"'
  15809. Set the beginning of the procedure "proc_name". Use this directive
  15810. when you want to generate information for the debugger.
  15811. '.end proc-name'
  15812. Set the end of a procedure. Use this directive to generate
  15813. information for the debugger.
  15814. '.bss'
  15815. Switch the destination of following statements into the bss
  15816. section, which is used for data that is uninitialized anywhere.
  15817. 
  15818. File: as.info, Node: SCORE-Syntax, Prev: SCORE-Pseudo, Up: SCORE-Dependent
  15819. 9.42.3 SCORE Syntax
  15820. -------------------
  15821. * Menu:
  15822. * SCORE-Chars:: Special Characters
  15823. 
  15824. File: as.info, Node: SCORE-Chars, Up: SCORE-Syntax
  15825. 9.42.3.1 Special Characters
  15826. ...........................
  15827. The presence of a '#' appearing anywhere on a line indicates the start
  15828. of a comment that extends to the end of that line.
  15829. If a '#' appears as the first character of a line then the whole line
  15830. is treated as a comment, but in this case the line can also be a logical
  15831. line number directive (*note Comments::) or a preprocessor control
  15832. command (*note Preprocessing::).
  15833. The ';' character can be used to separate statements on the same
  15834. line.
  15835. 
  15836. File: as.info, Node: SH-Dependent, Next: Sparc-Dependent, Prev: SCORE-Dependent, Up: Machine Dependencies
  15837. 9.43 Renesas / SuperH SH Dependent Features
  15838. ===========================================
  15839. * Menu:
  15840. * SH Options:: Options
  15841. * SH Syntax:: Syntax
  15842. * SH Floating Point:: Floating Point
  15843. * SH Directives:: SH Machine Directives
  15844. * SH Opcodes:: Opcodes
  15845. 
  15846. File: as.info, Node: SH Options, Next: SH Syntax, Up: SH-Dependent
  15847. 9.43.1 Options
  15848. --------------
  15849. 'as' has following command-line options for the Renesas (formerly
  15850. Hitachi) / SuperH SH family.
  15851. '--little'
  15852. Generate little endian code.
  15853. '--big'
  15854. Generate big endian code.
  15855. '--relax'
  15856. Alter jump instructions for long displacements.
  15857. '--small'
  15858. Align sections to 4 byte boundaries, not 16.
  15859. '--dsp'
  15860. Enable sh-dsp insns, and disable sh3e / sh4 insns.
  15861. '--renesas'
  15862. Disable optimization with section symbol for compatibility with
  15863. Renesas assembler.
  15864. '--allow-reg-prefix'
  15865. Allow '$' as a register name prefix.
  15866. '--fdpic'
  15867. Generate an FDPIC object file.
  15868. '--isa=sh4 | sh4a'
  15869. Specify the sh4 or sh4a instruction set.
  15870. '--isa=dsp'
  15871. Enable sh-dsp insns, and disable sh3e / sh4 insns.
  15872. '--isa=fp'
  15873. Enable sh2e, sh3e, sh4, and sh4a insn sets.
  15874. '--isa=all'
  15875. Enable sh1, sh2, sh2e, sh3, sh3e, sh4, sh4a, and sh-dsp insn sets.
  15876. '-h-tick-hex'
  15877. Support H'00 style hex constants in addition to 0x00 style.
  15878. 
  15879. File: as.info, Node: SH Syntax, Next: SH Floating Point, Prev: SH Options, Up: SH-Dependent
  15880. 9.43.2 Syntax
  15881. -------------
  15882. * Menu:
  15883. * SH-Chars:: Special Characters
  15884. * SH-Regs:: Register Names
  15885. * SH-Addressing:: Addressing Modes
  15886. 
  15887. File: as.info, Node: SH-Chars, Next: SH-Regs, Up: SH Syntax
  15888. 9.43.2.1 Special Characters
  15889. ...........................
  15890. '!' is the line comment character.
  15891. You can use ';' instead of a newline to separate statements.
  15892. If a '#' appears as the first character of a line then the whole line
  15893. is treated as a comment, but in this case the line could also be a
  15894. logical line number directive (*note Comments::) or a preprocessor
  15895. control command (*note Preprocessing::).
  15896. Since '$' has no special meaning, you may use it in symbol names.
  15897. 
  15898. File: as.info, Node: SH-Regs, Next: SH-Addressing, Prev: SH-Chars, Up: SH Syntax
  15899. 9.43.2.2 Register Names
  15900. .......................
  15901. You can use the predefined symbols 'r0', 'r1', 'r2', 'r3', 'r4', 'r5',
  15902. 'r6', 'r7', 'r8', 'r9', 'r10', 'r11', 'r12', 'r13', 'r14', and 'r15' to
  15903. refer to the SH registers.
  15904. The SH also has these control registers:
  15905. 'pr'
  15906. procedure register (holds return address)
  15907. 'pc'
  15908. program counter
  15909. 'mach'
  15910. 'macl'
  15911. high and low multiply accumulator registers
  15912. 'sr'
  15913. status register
  15914. 'gbr'
  15915. global base register
  15916. 'vbr'
  15917. vector base register (for interrupt vectors)
  15918. 
  15919. File: as.info, Node: SH-Addressing, Prev: SH-Regs, Up: SH Syntax
  15920. 9.43.2.3 Addressing Modes
  15921. .........................
  15922. 'as' understands the following addressing modes for the SH. 'RN' in the
  15923. following refers to any of the numbered registers, but _not_ the control
  15924. registers.
  15925. 'RN'
  15926. Register direct
  15927. '@RN'
  15928. Register indirect
  15929. '@-RN'
  15930. Register indirect with pre-decrement
  15931. '@RN+'
  15932. Register indirect with post-increment
  15933. '@(DISP, RN)'
  15934. Register indirect with displacement
  15935. '@(R0, RN)'
  15936. Register indexed
  15937. '@(DISP, GBR)'
  15938. 'GBR' offset
  15939. '@(R0, GBR)'
  15940. GBR indexed
  15941. 'ADDR'
  15942. '@(DISP, PC)'
  15943. PC relative address (for branch or for addressing memory). The
  15944. 'as' implementation allows you to use the simpler form ADDR
  15945. anywhere a PC relative address is called for; the alternate form is
  15946. supported for compatibility with other assemblers.
  15947. '#IMM'
  15948. Immediate data
  15949. 
  15950. File: as.info, Node: SH Floating Point, Next: SH Directives, Prev: SH Syntax, Up: SH-Dependent
  15951. 9.43.3 Floating Point
  15952. ---------------------
  15953. SH2E, SH3E and SH4 groups have on-chip floating-point unit (FPU). Other
  15954. SH groups can use '.float' directive to generate IEEE floating-point
  15955. numbers.
  15956. SH2E and SH3E support single-precision floating point calculations as
  15957. well as entirely PCAPI compatible emulation of double-precision floating
  15958. point calculations. SH2E and SH3E instructions are a subset of the
  15959. floating point calculations conforming to the IEEE754 standard.
  15960. In addition to single-precision and double-precision floating-point
  15961. operation capability, the on-chip FPU of SH4 has a 128-bit graphic
  15962. engine that enables 32-bit floating-point data to be processed 128 bits
  15963. at a time. It also supports 4 * 4 array operations and inner product
  15964. operations. Also, a superscalar architecture is employed that enables
  15965. simultaneous execution of two instructions (including FPU instructions),
  15966. providing performance of up to twice that of conventional architectures
  15967. at the same frequency.
  15968. 
  15969. File: as.info, Node: SH Directives, Next: SH Opcodes, Prev: SH Floating Point, Up: SH-Dependent
  15970. 9.43.4 SH Machine Directives
  15971. ----------------------------
  15972. 'uaword'
  15973. 'ualong'
  15974. 'uaquad'
  15975. 'as' will issue a warning when a misaligned '.word', '.long', or
  15976. '.quad' directive is used. You may use '.uaword', '.ualong', or
  15977. '.uaquad' to indicate that the value is intentionally misaligned.
  15978. 
  15979. File: as.info, Node: SH Opcodes, Prev: SH Directives, Up: SH-Dependent
  15980. 9.43.5 Opcodes
  15981. --------------
  15982. For detailed information on the SH machine instruction set, see
  15983. 'SH-Microcomputer User's Manual' (Renesas) or 'SH-4 32-bit CPU Core
  15984. Architecture' (SuperH) and 'SuperH (SH) 64-Bit RISC Series' (SuperH).
  15985. 'as' implements all the standard SH opcodes. No additional
  15986. pseudo-instructions are needed on this family. Note, however, that
  15987. because 'as' supports a simpler form of PC-relative addressing, you may
  15988. simply write (for example)
  15989. mov.l bar,r0
  15990. where other assemblers might require an explicit displacement to 'bar'
  15991. from the program counter:
  15992. mov.l @(DISP, PC)
  15993. Here is a summary of SH opcodes:
  15994. Legend:
  15995. Rn a numbered register
  15996. Rm another numbered register
  15997. #imm immediate data
  15998. disp displacement
  15999. disp8 8-bit displacement
  16000. disp12 12-bit displacement
  16001. add #imm,Rn lds.l @Rn+,PR
  16002. add Rm,Rn mac.w @Rm+,@Rn+
  16003. addc Rm,Rn mov #imm,Rn
  16004. addv Rm,Rn mov Rm,Rn
  16005. and #imm,R0 mov.b Rm,@(R0,Rn)
  16006. and Rm,Rn mov.b Rm,@-Rn
  16007. and.b #imm,@(R0,GBR) mov.b Rm,@Rn
  16008. bf disp8 mov.b @(disp,Rm),R0
  16009. bra disp12 mov.b @(disp,GBR),R0
  16010. bsr disp12 mov.b @(R0,Rm),Rn
  16011. bt disp8 mov.b @Rm+,Rn
  16012. clrmac mov.b @Rm,Rn
  16013. clrt mov.b R0,@(disp,Rm)
  16014. cmp/eq #imm,R0 mov.b R0,@(disp,GBR)
  16015. cmp/eq Rm,Rn mov.l Rm,@(disp,Rn)
  16016. cmp/ge Rm,Rn mov.l Rm,@(R0,Rn)
  16017. cmp/gt Rm,Rn mov.l Rm,@-Rn
  16018. cmp/hi Rm,Rn mov.l Rm,@Rn
  16019. cmp/hs Rm,Rn mov.l @(disp,Rn),Rm
  16020. cmp/pl Rn mov.l @(disp,GBR),R0
  16021. cmp/pz Rn mov.l @(disp,PC),Rn
  16022. cmp/str Rm,Rn mov.l @(R0,Rm),Rn
  16023. div0s Rm,Rn mov.l @Rm+,Rn
  16024. div0u mov.l @Rm,Rn
  16025. div1 Rm,Rn mov.l R0,@(disp,GBR)
  16026. exts.b Rm,Rn mov.w Rm,@(R0,Rn)
  16027. exts.w Rm,Rn mov.w Rm,@-Rn
  16028. extu.b Rm,Rn mov.w Rm,@Rn
  16029. extu.w Rm,Rn mov.w @(disp,Rm),R0
  16030. jmp @Rn mov.w @(disp,GBR),R0
  16031. jsr @Rn mov.w @(disp,PC),Rn
  16032. ldc Rn,GBR mov.w @(R0,Rm),Rn
  16033. ldc Rn,SR mov.w @Rm+,Rn
  16034. ldc Rn,VBR mov.w @Rm,Rn
  16035. ldc.l @Rn+,GBR mov.w R0,@(disp,Rm)
  16036. ldc.l @Rn+,SR mov.w R0,@(disp,GBR)
  16037. ldc.l @Rn+,VBR mova @(disp,PC),R0
  16038. lds Rn,MACH movt Rn
  16039. lds Rn,MACL muls Rm,Rn
  16040. lds Rn,PR mulu Rm,Rn
  16041. lds.l @Rn+,MACH neg Rm,Rn
  16042. lds.l @Rn+,MACL negc Rm,Rn
  16043. nop stc VBR,Rn
  16044. not Rm,Rn stc.l GBR,@-Rn
  16045. or #imm,R0 stc.l SR,@-Rn
  16046. or Rm,Rn stc.l VBR,@-Rn
  16047. or.b #imm,@(R0,GBR) sts MACH,Rn
  16048. rotcl Rn sts MACL,Rn
  16049. rotcr Rn sts PR,Rn
  16050. rotl Rn sts.l MACH,@-Rn
  16051. rotr Rn sts.l MACL,@-Rn
  16052. rte sts.l PR,@-Rn
  16053. rts sub Rm,Rn
  16054. sett subc Rm,Rn
  16055. shal Rn subv Rm,Rn
  16056. shar Rn swap.b Rm,Rn
  16057. shll Rn swap.w Rm,Rn
  16058. shll16 Rn tas.b @Rn
  16059. shll2 Rn trapa #imm
  16060. shll8 Rn tst #imm,R0
  16061. shlr Rn tst Rm,Rn
  16062. shlr16 Rn tst.b #imm,@(R0,GBR)
  16063. shlr2 Rn xor #imm,R0
  16064. shlr8 Rn xor Rm,Rn
  16065. sleep xor.b #imm,@(R0,GBR)
  16066. stc GBR,Rn xtrct Rm,Rn
  16067. stc SR,Rn
  16068. 
  16069. File: as.info, Node: Sparc-Dependent, Next: TIC54X-Dependent, Prev: SH-Dependent, Up: Machine Dependencies
  16070. 9.44 SPARC Dependent Features
  16071. =============================
  16072. * Menu:
  16073. * Sparc-Opts:: Options
  16074. * Sparc-Aligned-Data:: Option to enforce aligned data
  16075. * Sparc-Syntax:: Syntax
  16076. * Sparc-Float:: Floating Point
  16077. * Sparc-Directives:: Sparc Machine Directives
  16078. 
  16079. File: as.info, Node: Sparc-Opts, Next: Sparc-Aligned-Data, Up: Sparc-Dependent
  16080. 9.44.1 Options
  16081. --------------
  16082. The SPARC chip family includes several successive versions, using the
  16083. same core instruction set, but including a few additional instructions
  16084. at each version. There are exceptions to this however. For details on
  16085. what instructions each variant supports, please see the chip's
  16086. architecture reference manual.
  16087. By default, 'as' assumes the core instruction set (SPARC v6), but
  16088. "bumps" the architecture level as needed: it switches to successively
  16089. higher architectures as it encounters instructions that only exist in
  16090. the higher levels.
  16091. If not configured for SPARC v9 ('sparc64-*-*') GAS will not bump past
  16092. sparclite by default, an option must be passed to enable the v9
  16093. instructions.
  16094. GAS treats sparclite as being compatible with v8, unless an
  16095. architecture is explicitly requested. SPARC v9 is always incompatible
  16096. with sparclite.
  16097. '-Av6 | -Av7 | -Av8 | -Aleon | -Asparclet | -Asparclite'
  16098. '-Av8plus | -Av8plusa | -Av8plusb | -Av8plusc | -Av8plusd |'
  16099. '-Av8plusv | -Av8plusm | -Av8plusm8'
  16100. '-Av9 | -Av9a | -Av9b | -Av9c | -Av9d | -Av9e | -Av9v | -Av9m | -Av9m8'
  16101. '-Asparc | -Asparcvis | -Asparcvis2 | -Asparcfmaf | -Asparcima'
  16102. '-Asparcvis3 | -Asparcvis3r | -Asparc5 | -Asparc6'
  16103. Use one of the '-A' options to select one of the SPARC
  16104. architectures explicitly. If you select an architecture
  16105. explicitly, 'as' reports a fatal error if it encounters an
  16106. instruction or feature requiring an incompatible or higher level.
  16107. '-Av8plus', '-Av8plusa', '-Av8plusb', '-Av8plusc', '-Av8plusd', and
  16108. '-Av8plusv' select a 32 bit environment.
  16109. '-Av9', '-Av9a', '-Av9b', '-Av9c', '-Av9d', '-Av9e', '-Av9v' and
  16110. '-Av9m' select a 64 bit environment and are not available unless
  16111. GAS is explicitly configured with 64 bit environment support.
  16112. '-Av8plusa' and '-Av9a' enable the SPARC V9 instruction set with
  16113. UltraSPARC VIS 1.0 extensions.
  16114. '-Av8plusb' and '-Av9b' enable the UltraSPARC VIS 2.0 instructions,
  16115. as well as the instructions enabled by '-Av8plusa' and '-Av9a'.
  16116. '-Av8plusc' and '-Av9c' enable the UltraSPARC Niagara instructions,
  16117. as well as the instructions enabled by '-Av8plusb' and '-Av9b'.
  16118. '-Av8plusd' and '-Av9d' enable the floating point fused
  16119. multiply-add, VIS 3.0, and HPC extension instructions, as well as
  16120. the instructions enabled by '-Av8plusc' and '-Av9c'.
  16121. '-Av8pluse' and '-Av9e' enable the cryptographic instructions, as
  16122. well as the instructions enabled by '-Av8plusd' and '-Av9d'.
  16123. '-Av8plusv' and '-Av9v' enable floating point unfused multiply-add,
  16124. and integer multiply-add, as well as the instructions enabled by
  16125. '-Av8pluse' and '-Av9e'.
  16126. '-Av8plusm' and '-Av9m' enable the VIS 4.0, subtract extended,
  16127. xmpmul, xmontmul and xmontsqr instructions, as well as the
  16128. instructions enabled by '-Av8plusv' and '-Av9v'.
  16129. '-Av8plusm8' and '-Av9m8' enable the instructions introduced in the
  16130. Oracle SPARC Architecture 2017 and the M8 processor, as well as the
  16131. instructions enabled by '-Av8plusm' and '-Av9m'.
  16132. '-Asparc' specifies a v9 environment. It is equivalent to '-Av9'
  16133. if the word size is 64-bit, and '-Av8plus' otherwise.
  16134. '-Asparcvis' specifies a v9a environment. It is equivalent to
  16135. '-Av9a' if the word size is 64-bit, and '-Av8plusa' otherwise.
  16136. '-Asparcvis2' specifies a v9b environment. It is equivalent to
  16137. '-Av9b' if the word size is 64-bit, and '-Av8plusb' otherwise.
  16138. '-Asparcfmaf' specifies a v9b environment with the floating point
  16139. fused multiply-add instructions enabled.
  16140. '-Asparcima' specifies a v9b environment with the integer
  16141. multiply-add instructions enabled.
  16142. '-Asparcvis3' specifies a v9b environment with the VIS 3.0, HPC ,
  16143. and floating point fused multiply-add instructions enabled.
  16144. '-Asparcvis3r' specifies a v9b environment with the VIS 3.0, HPC,
  16145. and floating point unfused multiply-add instructions enabled.
  16146. '-Asparc5' is equivalent to '-Av9m'.
  16147. '-Asparc6' is equivalent to '-Av9m8'.
  16148. '-xarch=v8plus | -xarch=v8plusa | -xarch=v8plusb | -xarch=v8plusc'
  16149. '-xarch=v8plusd | -xarch=v8plusv | -xarch=v8plusm |'
  16150. '-xarch=v8plusm8 | -xarch=v9 | -xarch=v9a | -xarch=v9b'
  16151. '-xarch=v9c | -xarch=v9d | -xarch=v9e | -xarch=v9v'
  16152. '-xarch=v9m | -xarch=v9m8'
  16153. '-xarch=sparc | -xarch=sparcvis | -xarch=sparcvis2'
  16154. '-xarch=sparcfmaf | -xarch=sparcima | -xarch=sparcvis3'
  16155. '-xarch=sparcvis3r | -xarch=sparc5 | -xarch=sparc6'
  16156. For compatibility with the SunOS v9 assembler. These options are
  16157. equivalent to -Av8plus, -Av8plusa, -Av8plusb, -Av8plusc, -Av8plusd,
  16158. -Av8plusv, -Av8plusm, -Av8plusm8, -Av9, -Av9a, -Av9b, -Av9c, -Av9d,
  16159. -Av9e, -Av9v, -Av9m, -Av9m8, -Asparc, -Asparcvis, -Asparcvis2,
  16160. -Asparcfmaf, -Asparcima, -Asparcvis3, -Asparcvis3r, -Asparc5 and
  16161. -Asparc6 respectively.
  16162. '-bump'
  16163. Warn whenever it is necessary to switch to another level. If an
  16164. architecture level is explicitly requested, GAS will not issue
  16165. warnings until that level is reached, and will then bump the level
  16166. as required (except between incompatible levels).
  16167. '-32 | -64'
  16168. Select the word size, either 32 bits or 64 bits. These options are
  16169. only available with the ELF object file format, and require that
  16170. the necessary BFD support has been included.
  16171. '--dcti-couples-detect'
  16172. Warn if a DCTI (delayed control transfer instruction) couple is
  16173. found when generating code for a variant of the SPARC architecture
  16174. in which the execution of the couple is unpredictable, or very
  16175. slow. This is disabled by default.
  16176. 
  16177. File: as.info, Node: Sparc-Aligned-Data, Next: Sparc-Syntax, Prev: Sparc-Opts, Up: Sparc-Dependent
  16178. 9.44.2 Enforcing aligned data
  16179. -----------------------------
  16180. SPARC GAS normally permits data to be misaligned. For example, it
  16181. permits the '.long' pseudo-op to be used on a byte boundary. However,
  16182. the native SunOS assemblers issue an error when they see misaligned
  16183. data.
  16184. You can use the '--enforce-aligned-data' option to make SPARC GAS
  16185. also issue an error about misaligned data, just as the SunOS assemblers
  16186. do.
  16187. The '--enforce-aligned-data' option is not the default because gcc
  16188. issues misaligned data pseudo-ops when it initializes certain packed
  16189. data structures (structures defined using the 'packed' attribute). You
  16190. may have to assemble with GAS in order to initialize packed data
  16191. structures in your own code.
  16192. 
  16193. File: as.info, Node: Sparc-Syntax, Next: Sparc-Float, Prev: Sparc-Aligned-Data, Up: Sparc-Dependent
  16194. 9.44.3 Sparc Syntax
  16195. -------------------
  16196. The assembler syntax closely follows The Sparc Architecture Manual,
  16197. versions 8 and 9, as well as most extensions defined by Sun for their
  16198. UltraSPARC and Niagara line of processors.
  16199. * Menu:
  16200. * Sparc-Chars:: Special Characters
  16201. * Sparc-Regs:: Register Names
  16202. * Sparc-Constants:: Constant Names
  16203. * Sparc-Relocs:: Relocations
  16204. * Sparc-Size-Translations:: Size Translations
  16205. 
  16206. File: as.info, Node: Sparc-Chars, Next: Sparc-Regs, Up: Sparc-Syntax
  16207. 9.44.3.1 Special Characters
  16208. ...........................
  16209. A '!' character appearing anywhere on a line indicates the start of a
  16210. comment that extends to the end of that line.
  16211. If a '#' appears as the first character of a line then the whole line
  16212. is treated as a comment, but in this case the line could also be a
  16213. logical line number directive (*note Comments::) or a preprocessor
  16214. control command (*note Preprocessing::).
  16215. ';' can be used instead of a newline to separate statements.
  16216. 
  16217. File: as.info, Node: Sparc-Regs, Next: Sparc-Constants, Prev: Sparc-Chars, Up: Sparc-Syntax
  16218. 9.44.3.2 Register Names
  16219. .......................
  16220. The Sparc integer register file is broken down into global, outgoing,
  16221. local, and incoming.
  16222. * The 8 global registers are referred to as '%gN'.
  16223. * The 8 outgoing registers are referred to as '%oN'.
  16224. * The 8 local registers are referred to as '%lN'.
  16225. * The 8 incoming registers are referred to as '%iN'.
  16226. * The frame pointer register '%i6' can be referenced using the alias
  16227. '%fp'.
  16228. * The stack pointer register '%o6' can be referenced using the alias
  16229. '%sp'.
  16230. Floating point registers are simply referred to as '%fN'. When
  16231. assembling for pre-V9, only 32 floating point registers are available.
  16232. For V9 and later there are 64, but there are restrictions when
  16233. referencing the upper 32 registers. They can only be accessed as double
  16234. or quad, and thus only even or quad numbered accesses are allowed. For
  16235. example, '%f34' is a legal floating point register, but '%f35' is not.
  16236. Floating point registers accessed as double can also be referred
  16237. using the '%dN' notation, where N is even. Similarly, floating point
  16238. registers accessed as quad can be referred using the '%qN' notation,
  16239. where N is a multiple of 4. For example, '%f4' can be denoted as both
  16240. '%d4' and '%q4'. On the other hand, '%f2' can be denoted as '%d2' but
  16241. not as '%q2'.
  16242. Certain V9 instructions allow access to ancillary state registers.
  16243. Most simply they can be referred to as '%asrN' where N can be from 16 to
  16244. 31. However, there are some aliases defined to reference ASR registers
  16245. defined for various UltraSPARC processors:
  16246. * The tick compare register is referred to as '%tick_cmpr'.
  16247. * The system tick register is referred to as '%stick'. An alias,
  16248. '%sys_tick', exists but is deprecated and should not be used by new
  16249. software.
  16250. * The system tick compare register is referred to as '%stick_cmpr'.
  16251. An alias, '%sys_tick_cmpr', exists but is deprecated and should not
  16252. be used by new software.
  16253. * The software interrupt register is referred to as '%softint'.
  16254. * The set software interrupt register is referred to as
  16255. '%set_softint'. The mnemonic '%softint_set' is provided as an
  16256. alias.
  16257. * The clear software interrupt register is referred to as
  16258. '%clear_softint'. The mnemonic '%softint_clear' is provided as an
  16259. alias.
  16260. * The performance instrumentation counters register is referred to as
  16261. '%pic'.
  16262. * The performance control register is referred to as '%pcr'.
  16263. * The graphics status register is referred to as '%gsr'.
  16264. * The V9 dispatch control register is referred to as '%dcr'.
  16265. Various V9 branch and conditional move instructions allow
  16266. specification of which set of integer condition codes to test. These
  16267. are referred to as '%xcc' and '%icc'.
  16268. Additionally, GAS supports the so-called "natural" condition codes;
  16269. these are referred to as '%ncc' and reference to '%icc' if the word size
  16270. is 32, '%xcc' if the word size is 64.
  16271. In V9, there are 4 sets of floating point condition codes which are
  16272. referred to as '%fccN'.
  16273. Several special privileged and non-privileged registers exist:
  16274. * The V9 address space identifier register is referred to as '%asi'.
  16275. * The V9 restorable windows register is referred to as '%canrestore'.
  16276. * The V9 savable windows register is referred to as '%cansave'.
  16277. * The V9 clean windows register is referred to as '%cleanwin'.
  16278. * The V9 current window pointer register is referred to as '%cwp'.
  16279. * The floating-point queue register is referred to as '%fq'.
  16280. * The V8 co-processor queue register is referred to as '%cq'.
  16281. * The floating point status register is referred to as '%fsr'.
  16282. * The other windows register is referred to as '%otherwin'.
  16283. * The V9 program counter register is referred to as '%pc'.
  16284. * The V9 next program counter register is referred to as '%npc'.
  16285. * The V9 processor interrupt level register is referred to as '%pil'.
  16286. * The V9 processor state register is referred to as '%pstate'.
  16287. * The trap base address register is referred to as '%tba'.
  16288. * The V9 tick register is referred to as '%tick'.
  16289. * The V9 trap level is referred to as '%tl'.
  16290. * The V9 trap program counter is referred to as '%tpc'.
  16291. * The V9 trap next program counter is referred to as '%tnpc'.
  16292. * The V9 trap state is referred to as '%tstate'.
  16293. * The V9 trap type is referred to as '%tt'.
  16294. * The V9 condition codes is referred to as '%ccr'.
  16295. * The V9 floating-point registers state is referred to as '%fprs'.
  16296. * The V9 version register is referred to as '%ver'.
  16297. * The V9 window state register is referred to as '%wstate'.
  16298. * The Y register is referred to as '%y'.
  16299. * The V8 window invalid mask register is referred to as '%wim'.
  16300. * The V8 processor state register is referred to as '%psr'.
  16301. * The V9 global register level register is referred to as '%gl'.
  16302. Several special register names exist for hypervisor mode code:
  16303. * The hyperprivileged processor state register is referred to as
  16304. '%hpstate'.
  16305. * The hyperprivileged trap state register is referred to as
  16306. '%htstate'.
  16307. * The hyperprivileged interrupt pending register is referred to as
  16308. '%hintp'.
  16309. * The hyperprivileged trap base address register is referred to as
  16310. '%htba'.
  16311. * The hyperprivileged implementation version register is referred to
  16312. as '%hver'.
  16313. * The hyperprivileged system tick offset register is referred to as
  16314. '%hstick_offset'. Note that there is no '%hstick' register, the
  16315. normal '%stick' is used.
  16316. * The hyperprivileged system tick enable register is referred to as
  16317. '%hstick_enable'.
  16318. * The hyperprivileged system tick compare register is referred to as
  16319. '%hstick_cmpr'.
  16320. 
  16321. File: as.info, Node: Sparc-Constants, Next: Sparc-Relocs, Prev: Sparc-Regs, Up: Sparc-Syntax
  16322. 9.44.3.3 Constants
  16323. ..................
  16324. Several Sparc instructions take an immediate operand field for which
  16325. mnemonic names exist. Two such examples are 'membar' and 'prefetch'.
  16326. Another example are the set of V9 memory access instruction that allow
  16327. specification of an address space identifier.
  16328. The 'membar' instruction specifies a memory barrier that is the
  16329. defined by the operand which is a bitmask. The supported mask mnemonics
  16330. are:
  16331. * '#Sync' requests that all operations (including nonmemory reference
  16332. operations) appearing prior to the 'membar' must have been
  16333. performed and the effects of any exceptions become visible before
  16334. any instructions after the 'membar' may be initiated. This
  16335. corresponds to 'membar' cmask field bit 2.
  16336. * '#MemIssue' requests that all memory reference operations appearing
  16337. prior to the 'membar' must have been performed before any memory
  16338. operation after the 'membar' may be initiated. This corresponds to
  16339. 'membar' cmask field bit 1.
  16340. * '#Lookaside' requests that a store appearing prior to the 'membar'
  16341. must complete before any load following the 'membar' referencing
  16342. the same address can be initiated. This corresponds to 'membar'
  16343. cmask field bit 0.
  16344. * '#StoreStore' defines that the effects of all stores appearing
  16345. prior to the 'membar' instruction must be visible to all processors
  16346. before the effect of any stores following the 'membar'. Equivalent
  16347. to the deprecated 'stbar' instruction. This corresponds to
  16348. 'membar' mmask field bit 3.
  16349. * '#LoadStore' defines all loads appearing prior to the 'membar'
  16350. instruction must have been performed before the effect of any
  16351. stores following the 'membar' is visible to any other processor.
  16352. This corresponds to 'membar' mmask field bit 2.
  16353. * '#StoreLoad' defines that the effects of all stores appearing prior
  16354. to the 'membar' instruction must be visible to all processors
  16355. before loads following the 'membar' may be performed. This
  16356. corresponds to 'membar' mmask field bit 1.
  16357. * '#LoadLoad' defines that all loads appearing prior to the 'membar'
  16358. instruction must have been performed before any loads following the
  16359. 'membar' may be performed. This corresponds to 'membar' mmask
  16360. field bit 0.
  16361. These values can be ored together, for example:
  16362. membar #Sync
  16363. membar #StoreLoad | #LoadLoad
  16364. membar #StoreLoad | #StoreStore
  16365. The 'prefetch' and 'prefetcha' instructions take a prefetch function
  16366. code. The following prefetch function code constant mnemonics are
  16367. available:
  16368. * '#n_reads' requests a prefetch for several reads, and corresponds
  16369. to a prefetch function code of 0.
  16370. '#one_read' requests a prefetch for one read, and corresponds to a
  16371. prefetch function code of 1.
  16372. '#n_writes' requests a prefetch for several writes (and possibly
  16373. reads), and corresponds to a prefetch function code of 2.
  16374. '#one_write' requests a prefetch for one write, and corresponds to
  16375. a prefetch function code of 3.
  16376. '#page' requests a prefetch page, and corresponds to a prefetch
  16377. function code of 4.
  16378. '#invalidate' requests a prefetch invalidate, and corresponds to a
  16379. prefetch function code of 16.
  16380. '#unified' requests a prefetch to the nearest unified cache, and
  16381. corresponds to a prefetch function code of 17.
  16382. '#n_reads_strong' requests a strong prefetch for several reads, and
  16383. corresponds to a prefetch function code of 20.
  16384. '#one_read_strong' requests a strong prefetch for one read, and
  16385. corresponds to a prefetch function code of 21.
  16386. '#n_writes_strong' requests a strong prefetch for several writes,
  16387. and corresponds to a prefetch function code of 22.
  16388. '#one_write_strong' requests a strong prefetch for one write, and
  16389. corresponds to a prefetch function code of 23.
  16390. Onle one prefetch code may be specified. Here are some examples:
  16391. prefetch [%l0 + %l2], #one_read
  16392. prefetch [%g2 + 8], #n_writes
  16393. prefetcha [%g1] 0x8, #unified
  16394. prefetcha [%o0 + 0x10] %asi, #n_reads
  16395. The actual behavior of a given prefetch function code is processor
  16396. specific. If a processor does not implement a given prefetch
  16397. function code, it will treat the prefetch instruction as a nop.
  16398. For instructions that accept an immediate address space identifier,
  16399. 'as' provides many mnemonics corresponding to V9 defined as well as
  16400. UltraSPARC and Niagara extended values. For example, '#ASI_P' and
  16401. '#ASI_BLK_INIT_QUAD_LDD_AIUS'. See the V9 and processor specific
  16402. manuals for details.
  16403. 
  16404. File: as.info, Node: Sparc-Relocs, Next: Sparc-Size-Translations, Prev: Sparc-Constants, Up: Sparc-Syntax
  16405. 9.44.3.4 Relocations
  16406. ....................
  16407. ELF relocations are available as defined in the 32-bit and 64-bit Sparc
  16408. ELF specifications.
  16409. 'R_SPARC_HI22' is obtained using '%hi' and 'R_SPARC_LO10' is obtained
  16410. using '%lo'. Likewise 'R_SPARC_HIX22' is obtained from '%hix' and
  16411. 'R_SPARC_LOX10' is obtained using '%lox'. For example:
  16412. sethi %hi(symbol), %g1
  16413. or %g1, %lo(symbol), %g1
  16414. sethi %hix(symbol), %g1
  16415. xor %g1, %lox(symbol), %g1
  16416. These "high" mnemonics extract bits 31:10 of their operand, and the
  16417. "low" mnemonics extract bits 9:0 of their operand.
  16418. V9 code model relocations can be requested as follows:
  16419. * 'R_SPARC_HH22' is requested using '%hh'. It can also be generated
  16420. using '%uhi'.
  16421. * 'R_SPARC_HM10' is requested using '%hm'. It can also be generated
  16422. using '%ulo'.
  16423. * 'R_SPARC_LM22' is requested using '%lm'.
  16424. * 'R_SPARC_H44' is requested using '%h44'.
  16425. * 'R_SPARC_M44' is requested using '%m44'.
  16426. * 'R_SPARC_L44' is requested using '%l44' or '%l34'.
  16427. * 'R_SPARC_H34' is requested using '%h34'.
  16428. The '%l34' generates a 'R_SPARC_L44' relocation because it calculates
  16429. the necessary value, and therefore no explicit 'R_SPARC_L34' relocation
  16430. needed to be created for this purpose.
  16431. The '%h34' and '%l34' relocations are used for the abs34 code model.
  16432. Here is an example abs34 address generation sequence:
  16433. sethi %h34(symbol), %g1
  16434. sllx %g1, 2, %g1
  16435. or %g1, %l34(symbol), %g1
  16436. The PC relative relocation 'R_SPARC_PC22' can be obtained by
  16437. enclosing an operand inside of '%pc22'. Likewise, the 'R_SPARC_PC10'
  16438. relocation can be obtained using '%pc10'. These are mostly used when
  16439. assembling PIC code. For example, the standard PIC sequence on Sparc to
  16440. get the base of the global offset table, PC relative, into a register,
  16441. can be performed as:
  16442. sethi %pc22(_GLOBAL_OFFSET_TABLE_-4), %l7
  16443. add %l7, %pc10(_GLOBAL_OFFSET_TABLE_+4), %l7
  16444. Several relocations exist to allow the link editor to potentially
  16445. optimize GOT data references. The 'R_SPARC_GOTDATA_OP_HIX22' relocation
  16446. can obtained by enclosing an operand inside of '%gdop_hix22'. The
  16447. 'R_SPARC_GOTDATA_OP_LOX10' relocation can obtained by enclosing an
  16448. operand inside of '%gdop_lox10'. Likewise, 'R_SPARC_GOTDATA_OP' can be
  16449. obtained by enclosing an operand inside of '%gdop'. For example,
  16450. assuming the GOT base is in register '%l7':
  16451. sethi %gdop_hix22(symbol), %l1
  16452. xor %l1, %gdop_lox10(symbol), %l1
  16453. ld [%l7 + %l1], %l2, %gdop(symbol)
  16454. There are many relocations that can be requested for access to thread
  16455. local storage variables. All of the Sparc TLS mnemonics are supported:
  16456. * 'R_SPARC_TLS_GD_HI22' is requested using '%tgd_hi22'.
  16457. * 'R_SPARC_TLS_GD_LO10' is requested using '%tgd_lo10'.
  16458. * 'R_SPARC_TLS_GD_ADD' is requested using '%tgd_add'.
  16459. * 'R_SPARC_TLS_GD_CALL' is requested using '%tgd_call'.
  16460. * 'R_SPARC_TLS_LDM_HI22' is requested using '%tldm_hi22'.
  16461. * 'R_SPARC_TLS_LDM_LO10' is requested using '%tldm_lo10'.
  16462. * 'R_SPARC_TLS_LDM_ADD' is requested using '%tldm_add'.
  16463. * 'R_SPARC_TLS_LDM_CALL' is requested using '%tldm_call'.
  16464. * 'R_SPARC_TLS_LDO_HIX22' is requested using '%tldo_hix22'.
  16465. * 'R_SPARC_TLS_LDO_LOX10' is requested using '%tldo_lox10'.
  16466. * 'R_SPARC_TLS_LDO_ADD' is requested using '%tldo_add'.
  16467. * 'R_SPARC_TLS_IE_HI22' is requested using '%tie_hi22'.
  16468. * 'R_SPARC_TLS_IE_LO10' is requested using '%tie_lo10'.
  16469. * 'R_SPARC_TLS_IE_LD' is requested using '%tie_ld'.
  16470. * 'R_SPARC_TLS_IE_LDX' is requested using '%tie_ldx'.
  16471. * 'R_SPARC_TLS_IE_ADD' is requested using '%tie_add'.
  16472. * 'R_SPARC_TLS_LE_HIX22' is requested using '%tle_hix22'.
  16473. * 'R_SPARC_TLS_LE_LOX10' is requested using '%tle_lox10'.
  16474. Here are some example TLS model sequences.
  16475. First, General Dynamic:
  16476. sethi %tgd_hi22(symbol), %l1
  16477. add %l1, %tgd_lo10(symbol), %l1
  16478. add %l7, %l1, %o0, %tgd_add(symbol)
  16479. call __tls_get_addr, %tgd_call(symbol)
  16480. nop
  16481. Local Dynamic:
  16482. sethi %tldm_hi22(symbol), %l1
  16483. add %l1, %tldm_lo10(symbol), %l1
  16484. add %l7, %l1, %o0, %tldm_add(symbol)
  16485. call __tls_get_addr, %tldm_call(symbol)
  16486. nop
  16487. sethi %tldo_hix22(symbol), %l1
  16488. xor %l1, %tldo_lox10(symbol), %l1
  16489. add %o0, %l1, %l1, %tldo_add(symbol)
  16490. Initial Exec:
  16491. sethi %tie_hi22(symbol), %l1
  16492. add %l1, %tie_lo10(symbol), %l1
  16493. ld [%l7 + %l1], %o0, %tie_ld(symbol)
  16494. add %g7, %o0, %o0, %tie_add(symbol)
  16495. sethi %tie_hi22(symbol), %l1
  16496. add %l1, %tie_lo10(symbol), %l1
  16497. ldx [%l7 + %l1], %o0, %tie_ldx(symbol)
  16498. add %g7, %o0, %o0, %tie_add(symbol)
  16499. And finally, Local Exec:
  16500. sethi %tle_hix22(symbol), %l1
  16501. add %l1, %tle_lox10(symbol), %l1
  16502. add %g7, %l1, %l1
  16503. When assembling for 64-bit, and a secondary constant addend is
  16504. specified in an address expression that would normally generate an
  16505. 'R_SPARC_LO10' relocation, the assembler will emit an 'R_SPARC_OLO10'
  16506. instead.
  16507. 
  16508. File: as.info, Node: Sparc-Size-Translations, Prev: Sparc-Relocs, Up: Sparc-Syntax
  16509. 9.44.3.5 Size Translations
  16510. ..........................
  16511. Often it is desirable to write code in an operand size agnostic manner.
  16512. 'as' provides support for this via operand size opcode translations.
  16513. Translations are supported for loads, stores, shifts, compare-and-swap
  16514. atomics, and the 'clr' synthetic instruction.
  16515. If generating 32-bit code, 'as' will generate the 32-bit opcode.
  16516. Whereas if 64-bit code is being generated, the 64-bit opcode will be
  16517. emitted. For example 'ldn' will be transformed into 'ld' for 32-bit
  16518. code and 'ldx' for 64-bit code.
  16519. Here is an example meant to demonstrate all the supported opcode
  16520. translations:
  16521. ldn [%o0], %o1
  16522. ldna [%o0] %asi, %o2
  16523. stn %o1, [%o0]
  16524. stna %o2, [%o0] %asi
  16525. slln %o3, 3, %o3
  16526. srln %o4, 8, %o4
  16527. sran %o5, 12, %o5
  16528. casn [%o0], %o1, %o2
  16529. casna [%o0] %asi, %o1, %o2
  16530. clrn %g1
  16531. In 32-bit mode 'as' will emit:
  16532. ld [%o0], %o1
  16533. lda [%o0] %asi, %o2
  16534. st %o1, [%o0]
  16535. sta %o2, [%o0] %asi
  16536. sll %o3, 3, %o3
  16537. srl %o4, 8, %o4
  16538. sra %o5, 12, %o5
  16539. cas [%o0], %o1, %o2
  16540. casa [%o0] %asi, %o1, %o2
  16541. clr %g1
  16542. And in 64-bit mode 'as' will emit:
  16543. ldx [%o0], %o1
  16544. ldxa [%o0] %asi, %o2
  16545. stx %o1, [%o0]
  16546. stxa %o2, [%o0] %asi
  16547. sllx %o3, 3, %o3
  16548. srlx %o4, 8, %o4
  16549. srax %o5, 12, %o5
  16550. casx [%o0], %o1, %o2
  16551. casxa [%o0] %asi, %o1, %o2
  16552. clrx %g1
  16553. Finally, the '.nword' translating directive is supported as well. It
  16554. is documented in the section on Sparc machine directives.
  16555. 
  16556. File: as.info, Node: Sparc-Float, Next: Sparc-Directives, Prev: Sparc-Syntax, Up: Sparc-Dependent
  16557. 9.44.4 Floating Point
  16558. ---------------------
  16559. The Sparc uses IEEE floating-point numbers.
  16560. 
  16561. File: as.info, Node: Sparc-Directives, Prev: Sparc-Float, Up: Sparc-Dependent
  16562. 9.44.5 Sparc Machine Directives
  16563. -------------------------------
  16564. The Sparc version of 'as' supports the following additional machine
  16565. directives:
  16566. '.align'
  16567. This must be followed by the desired alignment in bytes.
  16568. '.common'
  16569. This must be followed by a symbol name, a positive number, and
  16570. '"bss"'. This behaves somewhat like '.comm', but the syntax is
  16571. different.
  16572. '.half'
  16573. This is functionally identical to '.short'.
  16574. '.nword'
  16575. On the Sparc, the '.nword' directive produces native word sized
  16576. value, ie. if assembling with -32 it is equivalent to '.word', if
  16577. assembling with -64 it is equivalent to '.xword'.
  16578. '.proc'
  16579. This directive is ignored. Any text following it on the same line
  16580. is also ignored.
  16581. '.register'
  16582. This directive declares use of a global application or system
  16583. register. It must be followed by a register name %g2, %g3, %g6 or
  16584. %g7, comma and the symbol name for that register. If symbol name
  16585. is '#scratch', it is a scratch register, if it is '#ignore', it
  16586. just suppresses any errors about using undeclared global register,
  16587. but does not emit any information about it into the object file.
  16588. This can be useful e.g. if you save the register before use and
  16589. restore it after.
  16590. '.reserve'
  16591. This must be followed by a symbol name, a positive number, and
  16592. '"bss"'. This behaves somewhat like '.lcomm', but the syntax is
  16593. different.
  16594. '.seg'
  16595. This must be followed by '"text"', '"data"', or '"data1"'. It
  16596. behaves like '.text', '.data', or '.data 1'.
  16597. '.skip'
  16598. This is functionally identical to the '.space' directive.
  16599. '.word'
  16600. On the Sparc, the '.word' directive produces 32 bit values, instead
  16601. of the 16 bit values it produces on many other machines.
  16602. '.xword'
  16603. On the Sparc V9 processor, the '.xword' directive produces 64 bit
  16604. values.
  16605. 
  16606. File: as.info, Node: TIC54X-Dependent, Next: TIC6X-Dependent, Prev: Sparc-Dependent, Up: Machine Dependencies
  16607. 9.45 TIC54X Dependent Features
  16608. ==============================
  16609. * Menu:
  16610. * TIC54X-Opts:: Command-line Options
  16611. * TIC54X-Block:: Blocking
  16612. * TIC54X-Env:: Environment Settings
  16613. * TIC54X-Constants:: Constants Syntax
  16614. * TIC54X-Subsyms:: String Substitution
  16615. * TIC54X-Locals:: Local Label Syntax
  16616. * TIC54X-Builtins:: Builtin Assembler Math Functions
  16617. * TIC54X-Ext:: Extended Addressing Support
  16618. * TIC54X-Directives:: Directives
  16619. * TIC54X-Macros:: Macro Features
  16620. * TIC54X-MMRegs:: Memory-mapped Registers
  16621. * TIC54X-Syntax:: Syntax
  16622. 
  16623. File: as.info, Node: TIC54X-Opts, Next: TIC54X-Block, Up: TIC54X-Dependent
  16624. 9.45.1 Options
  16625. --------------
  16626. The TMS320C54X version of 'as' has a few machine-dependent options.
  16627. You can use the '-mfar-mode' option to enable extended addressing
  16628. mode. All addresses will be assumed to be > 16 bits, and the
  16629. appropriate relocation types will be used. This option is equivalent to
  16630. using the '.far_mode' directive in the assembly code. If you do not use
  16631. the '-mfar-mode' option, all references will be assumed to be 16 bits.
  16632. This option may be abbreviated to '-mf'.
  16633. You can use the '-mcpu' option to specify a particular CPU. This
  16634. option is equivalent to using the '.version' directive in the assembly
  16635. code. For recognized CPU codes, see *Note '.version':
  16636. TIC54X-Directives. The default CPU version is '542'.
  16637. You can use the '-merrors-to-file' option to redirect error output to
  16638. a file (this provided for those deficient environments which don't
  16639. provide adequate output redirection). This option may be abbreviated to
  16640. '-me'.
  16641. 
  16642. File: as.info, Node: TIC54X-Block, Next: TIC54X-Env, Prev: TIC54X-Opts, Up: TIC54X-Dependent
  16643. 9.45.2 Blocking
  16644. ---------------
  16645. A blocked section or memory block is guaranteed not to cross the
  16646. blocking boundary (usually a page, or 128 words) if it is smaller than
  16647. the blocking size, or to start on a page boundary if it is larger than
  16648. the blocking size.
  16649. 
  16650. File: as.info, Node: TIC54X-Env, Next: TIC54X-Constants, Prev: TIC54X-Block, Up: TIC54X-Dependent
  16651. 9.45.3 Environment Settings
  16652. ---------------------------
  16653. 'C54XDSP_DIR' and 'A_DIR' are semicolon-separated paths which are added
  16654. to the list of directories normally searched for source and include
  16655. files. 'C54XDSP_DIR' will override 'A_DIR'.
  16656. 
  16657. File: as.info, Node: TIC54X-Constants, Next: TIC54X-Subsyms, Prev: TIC54X-Env, Up: TIC54X-Dependent
  16658. 9.45.4 Constants Syntax
  16659. -----------------------
  16660. The TIC54X version of 'as' allows the following additional constant
  16661. formats, using a suffix to indicate the radix:
  16662. Binary 000000B, 011000b
  16663. Octal 10Q, 224q
  16664. Hexadecimal 45h, 0FH
  16665. 
  16666. File: as.info, Node: TIC54X-Subsyms, Next: TIC54X-Locals, Prev: TIC54X-Constants, Up: TIC54X-Dependent
  16667. 9.45.5 String Substitution
  16668. --------------------------
  16669. A subset of allowable symbols (which we'll call subsyms) may be assigned
  16670. arbitrary string values. This is roughly equivalent to C preprocessor
  16671. #define macros. When 'as' encounters one of these symbols, the symbol
  16672. is replaced in the input stream by its string value. Subsym names
  16673. *must* begin with a letter.
  16674. Subsyms may be defined using the '.asg' and '.eval' directives (*Note
  16675. '.asg': TIC54X-Directives, *Note '.eval': TIC54X-Directives.
  16676. Expansion is recursive until a previously encountered symbol is seen,
  16677. at which point substitution stops.
  16678. In this example, x is replaced with SYM2; SYM2 is replaced with SYM1,
  16679. and SYM1 is replaced with x. At this point, x has already been
  16680. encountered and the substitution stops.
  16681. .asg "x",SYM1
  16682. .asg "SYM1",SYM2
  16683. .asg "SYM2",x
  16684. add x,a ; final code assembled is "add x, a"
  16685. Macro parameters are converted to subsyms; a side effect of this is
  16686. the normal 'as' '\ARG' dereferencing syntax is unnecessary. Subsyms
  16687. defined within a macro will have global scope, unless the '.var'
  16688. directive is used to identify the subsym as a local macro variable *note
  16689. '.var': TIC54X-Directives.
  16690. Substitution may be forced in situations where replacement might be
  16691. ambiguous by placing colons on either side of the subsym. The following
  16692. code:
  16693. .eval "10",x
  16694. LAB:X: add #x, a
  16695. When assembled becomes:
  16696. LAB10 add #10, a
  16697. Smaller parts of the string assigned to a subsym may be accessed with
  16698. the following syntax:
  16699. ':SYMBOL(CHAR_INDEX):'
  16700. Evaluates to a single-character string, the character at
  16701. CHAR_INDEX.
  16702. ':SYMBOL(START,LENGTH):'
  16703. Evaluates to a substring of SYMBOL beginning at START with length
  16704. LENGTH.
  16705. 
  16706. File: as.info, Node: TIC54X-Locals, Next: TIC54X-Builtins, Prev: TIC54X-Subsyms, Up: TIC54X-Dependent
  16707. 9.45.6 Local Labels
  16708. -------------------
  16709. Local labels may be defined in two ways:
  16710. * $N, where N is a decimal number between 0 and 9
  16711. * LABEL?, where LABEL is any legal symbol name.
  16712. Local labels thus defined may be redefined or automatically
  16713. generated. The scope of a local label is based on when it may be
  16714. undefined or reset. This happens when one of the following situations
  16715. is encountered:
  16716. * .newblock directive *note '.newblock': TIC54X-Directives.
  16717. * The current section is changed (.sect, .text, or .data)
  16718. * Entering or leaving an included file
  16719. * The macro scope where the label was defined is exited
  16720. 
  16721. File: as.info, Node: TIC54X-Builtins, Next: TIC54X-Ext, Prev: TIC54X-Locals, Up: TIC54X-Dependent
  16722. 9.45.7 Math Builtins
  16723. --------------------
  16724. The following built-in functions may be used to generate a
  16725. floating-point value. All return a floating-point value except '$cvi',
  16726. '$int', and '$sgn', which return an integer value.
  16727. '$acos(EXPR)'
  16728. Returns the floating point arccosine of EXPR.
  16729. '$asin(EXPR)'
  16730. Returns the floating point arcsine of EXPR.
  16731. '$atan(EXPR)'
  16732. Returns the floating point arctangent of EXPR.
  16733. '$atan2(EXPR1,EXPR2)'
  16734. Returns the floating point arctangent of EXPR1 / EXPR2.
  16735. '$ceil(EXPR)'
  16736. Returns the smallest integer not less than EXPR as floating point.
  16737. '$cosh(EXPR)'
  16738. Returns the floating point hyperbolic cosine of EXPR.
  16739. '$cos(EXPR)'
  16740. Returns the floating point cosine of EXPR.
  16741. '$cvf(EXPR)'
  16742. Returns the integer value EXPR converted to floating-point.
  16743. '$cvi(EXPR)'
  16744. Returns the floating point value EXPR converted to integer.
  16745. '$exp(EXPR)'
  16746. Returns the floating point value e ^ EXPR.
  16747. '$fabs(EXPR)'
  16748. Returns the floating point absolute value of EXPR.
  16749. '$floor(EXPR)'
  16750. Returns the largest integer that is not greater than EXPR as
  16751. floating point.
  16752. '$fmod(EXPR1,EXPR2)'
  16753. Returns the floating point remainder of EXPR1 / EXPR2.
  16754. '$int(EXPR)'
  16755. Returns 1 if EXPR evaluates to an integer, zero otherwise.
  16756. '$ldexp(EXPR1,EXPR2)'
  16757. Returns the floating point value EXPR1 * 2 ^ EXPR2.
  16758. '$log10(EXPR)'
  16759. Returns the base 10 logarithm of EXPR.
  16760. '$log(EXPR)'
  16761. Returns the natural logarithm of EXPR.
  16762. '$max(EXPR1,EXPR2)'
  16763. Returns the floating point maximum of EXPR1 and EXPR2.
  16764. '$min(EXPR1,EXPR2)'
  16765. Returns the floating point minimum of EXPR1 and EXPR2.
  16766. '$pow(EXPR1,EXPR2)'
  16767. Returns the floating point value EXPR1 ^ EXPR2.
  16768. '$round(EXPR)'
  16769. Returns the nearest integer to EXPR as a floating point number.
  16770. '$sgn(EXPR)'
  16771. Returns -1, 0, or 1 based on the sign of EXPR.
  16772. '$sin(EXPR)'
  16773. Returns the floating point sine of EXPR.
  16774. '$sinh(EXPR)'
  16775. Returns the floating point hyperbolic sine of EXPR.
  16776. '$sqrt(EXPR)'
  16777. Returns the floating point square root of EXPR.
  16778. '$tan(EXPR)'
  16779. Returns the floating point tangent of EXPR.
  16780. '$tanh(EXPR)'
  16781. Returns the floating point hyperbolic tangent of EXPR.
  16782. '$trunc(EXPR)'
  16783. Returns the integer value of EXPR truncated towards zero as
  16784. floating point.
  16785. 
  16786. File: as.info, Node: TIC54X-Ext, Next: TIC54X-Directives, Prev: TIC54X-Builtins, Up: TIC54X-Dependent
  16787. 9.45.8 Extended Addressing
  16788. --------------------------
  16789. The 'LDX' pseudo-op is provided for loading the extended addressing bits
  16790. of a label or address. For example, if an address '_label' resides in
  16791. extended program memory, the value of '_label' may be loaded as follows:
  16792. ldx #_label,16,a ; loads extended bits of _label
  16793. or #_label,a ; loads lower 16 bits of _label
  16794. bacc a ; full address is in accumulator A
  16795. 
  16796. File: as.info, Node: TIC54X-Directives, Next: TIC54X-Macros, Prev: TIC54X-Ext, Up: TIC54X-Dependent
  16797. 9.45.9 Directives
  16798. -----------------
  16799. '.align [SIZE]'
  16800. '.even'
  16801. Align the section program counter on the next boundary, based on
  16802. SIZE. SIZE may be any power of 2. '.even' is equivalent to
  16803. '.align' with a SIZE of 2.
  16804. '1'
  16805. Align SPC to word boundary
  16806. '2'
  16807. Align SPC to longword boundary (same as .even)
  16808. '128'
  16809. Align SPC to page boundary
  16810. '.asg STRING, NAME'
  16811. Assign NAME the string STRING. String replacement is performed on
  16812. STRING before assignment.
  16813. '.eval STRING, NAME'
  16814. Evaluate the contents of string STRING and assign the result as a
  16815. string to the subsym NAME. String replacement is performed on
  16816. STRING before assignment.
  16817. '.bss SYMBOL, SIZE [, [BLOCKING_FLAG] [,ALIGNMENT_FLAG]]'
  16818. Reserve space for SYMBOL in the .bss section. SIZE is in words.
  16819. If present, BLOCKING_FLAG indicates the allocated space should be
  16820. aligned on a page boundary if it would otherwise cross a page
  16821. boundary. If present, ALIGNMENT_FLAG causes the assembler to
  16822. allocate SIZE on a long word boundary.
  16823. '.byte VALUE [,...,VALUE_N]'
  16824. '.ubyte VALUE [,...,VALUE_N]'
  16825. '.char VALUE [,...,VALUE_N]'
  16826. '.uchar VALUE [,...,VALUE_N]'
  16827. Place one or more bytes into consecutive words of the current
  16828. section. The upper 8 bits of each word is zero-filled. If a label
  16829. is used, it points to the word allocated for the first byte
  16830. encountered.
  16831. '.clink ["SECTION_NAME"]'
  16832. Set STYP_CLINK flag for this section, which indicates to the linker
  16833. that if no symbols from this section are referenced, the section
  16834. should not be included in the link. If SECTION_NAME is omitted,
  16835. the current section is used.
  16836. '.c_mode'
  16837. TBD.
  16838. '.copy "FILENAME" | FILENAME'
  16839. '.include "FILENAME" | FILENAME'
  16840. Read source statements from FILENAME. The normal include search
  16841. path is used. Normally .copy will cause statements from the
  16842. included file to be printed in the assembly listing and .include
  16843. will not, but this distinction is not currently implemented.
  16844. '.data'
  16845. Begin assembling code into the .data section.
  16846. '.double VALUE [,...,VALUE_N]'
  16847. '.ldouble VALUE [,...,VALUE_N]'
  16848. '.float VALUE [,...,VALUE_N]'
  16849. '.xfloat VALUE [,...,VALUE_N]'
  16850. Place an IEEE single-precision floating-point representation of one
  16851. or more floating-point values into the current section. All but
  16852. '.xfloat' align the result on a longword boundary. Values are
  16853. stored most-significant word first.
  16854. '.drlist'
  16855. '.drnolist'
  16856. Control printing of directives to the listing file. Ignored.
  16857. '.emsg STRING'
  16858. '.mmsg STRING'
  16859. '.wmsg STRING'
  16860. Emit a user-defined error, message, or warning, respectively.
  16861. '.far_mode'
  16862. Use extended addressing when assembling statements. This should
  16863. appear only once per file, and is equivalent to the -mfar-mode
  16864. option *note '-mfar-mode': TIC54X-Opts.
  16865. '.fclist'
  16866. '.fcnolist'
  16867. Control printing of false conditional blocks to the listing file.
  16868. '.field VALUE [,SIZE]'
  16869. Initialize a bitfield of SIZE bits in the current section. If
  16870. VALUE is relocatable, then SIZE must be 16. SIZE defaults to 16
  16871. bits. If VALUE does not fit into SIZE bits, the value will be
  16872. truncated. Successive '.field' directives will pack starting at
  16873. the current word, filling the most significant bits first, and
  16874. aligning to the start of the next word if the field size does not
  16875. fit into the space remaining in the current word. A '.align'
  16876. directive with an operand of 1 will force the next '.field'
  16877. directive to begin packing into a new word. If a label is used, it
  16878. points to the word that contains the specified field.
  16879. '.global SYMBOL [,...,SYMBOL_N]'
  16880. '.def SYMBOL [,...,SYMBOL_N]'
  16881. '.ref SYMBOL [,...,SYMBOL_N]'
  16882. '.def' nominally identifies a symbol defined in the current file
  16883. and available to other files. '.ref' identifies a symbol used in
  16884. the current file but defined elsewhere. Both map to the standard
  16885. '.global' directive.
  16886. '.half VALUE [,...,VALUE_N]'
  16887. '.uhalf VALUE [,...,VALUE_N]'
  16888. '.short VALUE [,...,VALUE_N]'
  16889. '.ushort VALUE [,...,VALUE_N]'
  16890. '.int VALUE [,...,VALUE_N]'
  16891. '.uint VALUE [,...,VALUE_N]'
  16892. '.word VALUE [,...,VALUE_N]'
  16893. '.uword VALUE [,...,VALUE_N]'
  16894. Place one or more values into consecutive words of the current
  16895. section. If a label is used, it points to the word allocated for
  16896. the first value encountered.
  16897. '.label SYMBOL'
  16898. Define a special SYMBOL to refer to the load time address of the
  16899. current section program counter.
  16900. '.length'
  16901. '.width'
  16902. Set the page length and width of the output listing file. Ignored.
  16903. '.list'
  16904. '.nolist'
  16905. Control whether the source listing is printed. Ignored.
  16906. '.long VALUE [,...,VALUE_N]'
  16907. '.ulong VALUE [,...,VALUE_N]'
  16908. '.xlong VALUE [,...,VALUE_N]'
  16909. Place one or more 32-bit values into consecutive words in the
  16910. current section. The most significant word is stored first.
  16911. '.long' and '.ulong' align the result on a longword boundary;
  16912. 'xlong' does not.
  16913. '.loop [COUNT]'
  16914. '.break [CONDITION]'
  16915. '.endloop'
  16916. Repeatedly assemble a block of code. '.loop' begins the block, and
  16917. '.endloop' marks its termination. COUNT defaults to 1024, and
  16918. indicates the number of times the block should be repeated.
  16919. '.break' terminates the loop so that assembly begins after the
  16920. '.endloop' directive. The optional CONDITION will cause the loop
  16921. to terminate only if it evaluates to zero.
  16922. 'MACRO_NAME .macro [PARAM1][,...PARAM_N]'
  16923. '[.mexit]'
  16924. '.endm'
  16925. See the section on macros for more explanation (*Note
  16926. TIC54X-Macros::.
  16927. '.mlib "FILENAME" | FILENAME'
  16928. Load the macro library FILENAME. FILENAME must be an archived
  16929. library (BFD ar-compatible) of text files, expected to contain only
  16930. macro definitions. The standard include search path is used.
  16931. '.mlist'
  16932. '.mnolist'
  16933. Control whether to include macro and loop block expansions in the
  16934. listing output. Ignored.
  16935. '.mmregs'
  16936. Define global symbolic names for the 'c54x registers. Supposedly
  16937. equivalent to executing '.set' directives for each register with
  16938. its memory-mapped value, but in reality is provided only for
  16939. compatibility and does nothing.
  16940. '.newblock'
  16941. This directive resets any TIC54X local labels currently defined.
  16942. Normal 'as' local labels are unaffected.
  16943. '.option OPTION_LIST'
  16944. Set listing options. Ignored.
  16945. '.sblock "SECTION_NAME" | SECTION_NAME [,"NAME_N" | NAME_N]'
  16946. Designate SECTION_NAME for blocking. Blocking guarantees that a
  16947. section will start on a page boundary (128 words) if it would
  16948. otherwise cross a page boundary. Only initialized sections may be
  16949. designated with this directive. See also *Note TIC54X-Block::.
  16950. '.sect "SECTION_NAME"'
  16951. Define a named initialized section and make it the current section.
  16952. 'SYMBOL .set "VALUE"'
  16953. 'SYMBOL .equ "VALUE"'
  16954. Equate a constant VALUE to a SYMBOL, which is placed in the symbol
  16955. table. SYMBOL may not be previously defined.
  16956. '.space SIZE_IN_BITS'
  16957. '.bes SIZE_IN_BITS'
  16958. Reserve the given number of bits in the current section and
  16959. zero-fill them. If a label is used with '.space', it points to the
  16960. *first* word reserved. With '.bes', the label points to the *last*
  16961. word reserved.
  16962. '.sslist'
  16963. '.ssnolist'
  16964. Controls the inclusion of subsym replacement in the listing output.
  16965. Ignored.
  16966. '.string "STRING" [,...,"STRING_N"]'
  16967. '.pstring "STRING" [,...,"STRING_N"]'
  16968. Place 8-bit characters from STRING into the current section.
  16969. '.string' zero-fills the upper 8 bits of each word, while
  16970. '.pstring' puts two characters into each word, filling the
  16971. most-significant bits first. Unused space is zero-filled. If a
  16972. label is used, it points to the first word initialized.
  16973. '[STAG] .struct [OFFSET]'
  16974. '[NAME_1] element [COUNT_1]'
  16975. '[NAME_2] element [COUNT_2]'
  16976. '[TNAME] .tag STAGX [TCOUNT]'
  16977. '...'
  16978. '[NAME_N] element [COUNT_N]'
  16979. '[SSIZE] .endstruct'
  16980. 'LABEL .tag [STAG]'
  16981. Assign symbolic offsets to the elements of a structure. STAG
  16982. defines a symbol to use to reference the structure. OFFSET
  16983. indicates a starting value to use for the first element
  16984. encountered; otherwise it defaults to zero. Each element can have
  16985. a named offset, NAME, which is a symbol assigned the value of the
  16986. element's offset into the structure. If STAG is missing, these
  16987. become global symbols. COUNT adjusts the offset that many times,
  16988. as if 'element' were an array. 'element' may be one of '.byte',
  16989. '.word', '.long', '.float', or any equivalent of those, and the
  16990. structure offset is adjusted accordingly. '.field' and '.string'
  16991. are also allowed; the size of '.field' is one bit, and '.string' is
  16992. considered to be one word in size. Only element descriptors,
  16993. structure/union tags, '.align' and conditional assembly directives
  16994. are allowed within '.struct'/'.endstruct'. '.align' aligns member
  16995. offsets to word boundaries only. SSIZE, if provided, will always
  16996. be assigned the size of the structure.
  16997. The '.tag' directive, in addition to being used to define a
  16998. structure/union element within a structure, may be used to apply a
  16999. structure to a symbol. Once applied to LABEL, the individual
  17000. structure elements may be applied to LABEL to produce the desired
  17001. offsets using LABEL as the structure base.
  17002. '.tab'
  17003. Set the tab size in the output listing. Ignored.
  17004. '[UTAG] .union'
  17005. '[NAME_1] element [COUNT_1]'
  17006. '[NAME_2] element [COUNT_2]'
  17007. '[TNAME] .tag UTAGX[,TCOUNT]'
  17008. '...'
  17009. '[NAME_N] element [COUNT_N]'
  17010. '[USIZE] .endstruct'
  17011. 'LABEL .tag [UTAG]'
  17012. Similar to '.struct', but the offset after each element is reset to
  17013. zero, and the USIZE is set to the maximum of all defined elements.
  17014. Starting offset for the union is always zero.
  17015. '[SYMBOL] .usect "SECTION_NAME", SIZE, [,[BLOCKING_FLAG] [,ALIGNMENT_FLAG]]'
  17016. Reserve space for variables in a named, uninitialized section
  17017. (similar to .bss). '.usect' allows definitions sections
  17018. independent of .bss. SYMBOL points to the first location reserved
  17019. by this allocation. The symbol may be used as a variable name.
  17020. SIZE is the allocated size in words. BLOCKING_FLAG indicates
  17021. whether to block this section on a page boundary (128 words) (*note
  17022. TIC54X-Block::). ALIGNMENT FLAG indicates whether the section
  17023. should be longword-aligned.
  17024. '.var SYM[,..., SYM_N]'
  17025. Define a subsym to be a local variable within a macro. See *Note
  17026. TIC54X-Macros::.
  17027. '.version VERSION'
  17028. Set which processor to build instructions for. Though the
  17029. following values are accepted, the op is ignored.
  17030. '541'
  17031. '542'
  17032. '543'
  17033. '545'
  17034. '545LP'
  17035. '546LP'
  17036. '548'
  17037. '549'
  17038. 
  17039. File: as.info, Node: TIC54X-Macros, Next: TIC54X-MMRegs, Prev: TIC54X-Directives, Up: TIC54X-Dependent
  17040. 9.45.10 Macros
  17041. --------------
  17042. Macros do not require explicit dereferencing of arguments (i.e., \ARG).
  17043. During macro expansion, the macro parameters are converted to
  17044. subsyms. If the number of arguments passed the macro invocation exceeds
  17045. the number of parameters defined, the last parameter is assigned the
  17046. string equivalent of all remaining arguments. If fewer arguments are
  17047. given than parameters, the missing parameters are assigned empty
  17048. strings. To include a comma in an argument, you must enclose the
  17049. argument in quotes.
  17050. The following built-in subsym functions allow examination of the
  17051. string value of subsyms (or ordinary strings). The arguments are
  17052. strings unless otherwise indicated (subsyms passed as args will be
  17053. replaced by the strings they represent).
  17054. '$symlen(STR)'
  17055. Returns the length of STR.
  17056. '$symcmp(STR1,STR2)'
  17057. Returns 0 if STR1 == STR2, non-zero otherwise.
  17058. '$firstch(STR,CH)'
  17059. Returns index of the first occurrence of character constant CH in
  17060. STR.
  17061. '$lastch(STR,CH)'
  17062. Returns index of the last occurrence of character constant CH in
  17063. STR.
  17064. '$isdefed(SYMBOL)'
  17065. Returns zero if the symbol SYMBOL is not in the symbol table,
  17066. non-zero otherwise.
  17067. '$ismember(SYMBOL,LIST)'
  17068. Assign the first member of comma-separated string LIST to SYMBOL;
  17069. LIST is reassigned the remainder of the list. Returns zero if LIST
  17070. is a null string. Both arguments must be subsyms.
  17071. '$iscons(EXPR)'
  17072. Returns 1 if string EXPR is binary, 2 if octal, 3 if hexadecimal, 4
  17073. if a character, 5 if decimal, and zero if not an integer.
  17074. '$isname(NAME)'
  17075. Returns 1 if NAME is a valid symbol name, zero otherwise.
  17076. '$isreg(REG)'
  17077. Returns 1 if REG is a valid predefined register name (AR0-AR7
  17078. only).
  17079. '$structsz(STAG)'
  17080. Returns the size of the structure or union represented by STAG.
  17081. '$structacc(STAG)'
  17082. Returns the reference point of the structure or union represented
  17083. by STAG. Always returns zero.
  17084. 
  17085. File: as.info, Node: TIC54X-MMRegs, Next: TIC54X-Syntax, Prev: TIC54X-Macros, Up: TIC54X-Dependent
  17086. 9.45.11 Memory-mapped Registers
  17087. -------------------------------
  17088. The following symbols are recognized as memory-mapped registers:
  17089. 
  17090. File: as.info, Node: TIC54X-Syntax, Prev: TIC54X-MMRegs, Up: TIC54X-Dependent
  17091. 9.45.12 TIC54X Syntax
  17092. ---------------------
  17093. * Menu:
  17094. * TIC54X-Chars:: Special Characters
  17095. 
  17096. File: as.info, Node: TIC54X-Chars, Up: TIC54X-Syntax
  17097. 9.45.12.1 Special Characters
  17098. ............................
  17099. The presence of a ';' appearing anywhere on a line indicates the start
  17100. of a comment that extends to the end of that line.
  17101. If a '#' appears as the first character of a line then the whole line
  17102. is treated as a comment, but in this case the line can also be a logical
  17103. line number directive (*note Comments::) or a preprocessor control
  17104. command (*note Preprocessing::).
  17105. The presence of an asterisk ('*') at the start of a line also
  17106. indicates a comment that extends to the end of that line.
  17107. The TIC54X assembler does not currently support a line separator
  17108. character.
  17109. 
  17110. File: as.info, Node: TIC6X-Dependent, Next: TILE-Gx-Dependent, Prev: TIC54X-Dependent, Up: Machine Dependencies
  17111. 9.46 TIC6X Dependent Features
  17112. =============================
  17113. * Menu:
  17114. * TIC6X Options:: Options
  17115. * TIC6X Syntax:: Syntax
  17116. * TIC6X Directives:: Directives
  17117. 
  17118. File: as.info, Node: TIC6X Options, Next: TIC6X Syntax, Up: TIC6X-Dependent
  17119. 9.46.1 TIC6X Options
  17120. --------------------
  17121. '-march=ARCH'
  17122. Enable (only) instructions from architecture ARCH. By default, all
  17123. instructions are permitted.
  17124. The following values of ARCH are accepted: 'c62x', 'c64x', 'c64x+',
  17125. 'c67x', 'c67x+', 'c674x'.
  17126. '-mdsbt'
  17127. '-mno-dsbt'
  17128. The '-mdsbt' option causes the assembler to generate the
  17129. 'Tag_ABI_DSBT' attribute with a value of 1, indicating that the
  17130. code is using DSBT addressing. The '-mno-dsbt' option, the
  17131. default, causes the tag to have a value of 0, indicating that the
  17132. code does not use DSBT addressing. The linker will emit a warning
  17133. if objects of different type (DSBT and non-DSBT) are linked
  17134. together.
  17135. '-mpid=no'
  17136. '-mpid=near'
  17137. '-mpid=far'
  17138. The '-mpid=' option causes the assembler to generate the
  17139. 'Tag_ABI_PID' attribute with a value indicating the form of data
  17140. addressing used by the code. '-mpid=no', the default, indicates
  17141. position-dependent data addressing, '-mpid=near' indicates
  17142. position-independent addressing with GOT accesses using near DP
  17143. addressing, and '-mpid=far' indicates position-independent
  17144. addressing with GOT accesses using far DP addressing. The linker
  17145. will emit a warning if objects built with different settings of
  17146. this option are linked together.
  17147. '-mpic'
  17148. '-mno-pic'
  17149. The '-mpic' option causes the assembler to generate the
  17150. 'Tag_ABI_PIC' attribute with a value of 1, indicating that the code
  17151. is using position-independent code addressing, The '-mno-pic'
  17152. option, the default, causes the tag to have a value of 0,
  17153. indicating position-dependent code addressing. The linker will
  17154. emit a warning if objects of different type (position-dependent and
  17155. position-independent) are linked together.
  17156. '-mbig-endian'
  17157. '-mlittle-endian'
  17158. Generate code for the specified endianness. The default is
  17159. little-endian.
  17160. 
  17161. File: as.info, Node: TIC6X Syntax, Next: TIC6X Directives, Prev: TIC6X Options, Up: TIC6X-Dependent
  17162. 9.46.2 TIC6X Syntax
  17163. -------------------
  17164. The presence of a ';' on a line indicates the start of a comment that
  17165. extends to the end of the current line. If a '#' or '*' appears as the
  17166. first character of a line, the whole line is treated as a comment. Note
  17167. that if a line starts with a '#' character then it can also be a logical
  17168. line number directive (*note Comments::) or a preprocessor control
  17169. command (*note Preprocessing::).
  17170. The '@' character can be used instead of a newline to separate
  17171. statements.
  17172. Instruction, register and functional unit names are case-insensitive.
  17173. 'as' requires fully-specified functional unit names, such as '.S1',
  17174. '.L1X' or '.D1T2', on all instructions using a functional unit.
  17175. For some instructions, there may be syntactic ambiguity between
  17176. register or functional unit names and the names of labels or other
  17177. symbols. To avoid this, enclose the ambiguous symbol name in
  17178. parentheses; register and functional unit names may not be enclosed in
  17179. parentheses.
  17180. 
  17181. File: as.info, Node: TIC6X Directives, Prev: TIC6X Syntax, Up: TIC6X-Dependent
  17182. 9.46.3 TIC6X Directives
  17183. -----------------------
  17184. Directives controlling the set of instructions accepted by the assembler
  17185. have effect for instructions between the directive and any subsequent
  17186. directive overriding it.
  17187. '.arch ARCH'
  17188. This has the same effect as '-march=ARCH'.
  17189. '.cantunwind'
  17190. Prevents unwinding through the current function. No personality
  17191. routine or exception table data is required or permitted.
  17192. If this is not specified then frame unwinding information will be
  17193. constructed from CFI directives. *note CFI directives::.
  17194. '.c6xabi_attribute TAG, VALUE'
  17195. Set the C6000 EABI build attribute TAG to VALUE.
  17196. The TAG is either an attribute number or one of 'Tag_ISA',
  17197. 'Tag_ABI_wchar_t', 'Tag_ABI_stack_align_needed',
  17198. 'Tag_ABI_stack_align_preserved', 'Tag_ABI_DSBT', 'Tag_ABI_PID',
  17199. 'Tag_ABI_PIC', 'TAG_ABI_array_object_alignment',
  17200. 'TAG_ABI_array_object_align_expected', 'Tag_ABI_compatibility' and
  17201. 'Tag_ABI_conformance'. The VALUE is either a 'number', '"string"',
  17202. or 'number, "string"' depending on the tag.
  17203. '.ehtype SYMBOL'
  17204. Output an exception type table reference to SYMBOL.
  17205. '.endp'
  17206. Marks the end of and exception table or function. If preceded by a
  17207. '.handlerdata' directive then this also switched back to the
  17208. previous text section.
  17209. '.handlerdata'
  17210. Marks the end of the current function, and the start of the
  17211. exception table entry for that function. Anything between this
  17212. directive and the '.endp' directive will be added to the exception
  17213. table entry.
  17214. Must be preceded by a CFI block containing a '.cfi_lsda' directive.
  17215. '.nocmp'
  17216. Disallow use of C64x+ compact instructions in the current text
  17217. section.
  17218. '.personalityindex INDEX'
  17219. Sets the personality routine for the current function to the ABI
  17220. specified compact routine number INDEX
  17221. '.personality NAME'
  17222. Sets the personality routine for the current function to NAME.
  17223. '.scomm SYMBOL, SIZE, ALIGN'
  17224. Like '.comm', creating a common symbol SYMBOL with size SIZE and
  17225. alignment ALIGN, but unlike when using '.comm', this symbol will be
  17226. placed into the small BSS section by the linker.
  17227. 
  17228. File: as.info, Node: TILE-Gx-Dependent, Next: TILEPro-Dependent, Prev: TIC6X-Dependent, Up: Machine Dependencies
  17229. 9.47 TILE-Gx Dependent Features
  17230. ===============================
  17231. * Menu:
  17232. * TILE-Gx Options:: TILE-Gx Options
  17233. * TILE-Gx Syntax:: TILE-Gx Syntax
  17234. * TILE-Gx Directives:: TILE-Gx Directives
  17235. 
  17236. File: as.info, Node: TILE-Gx Options, Next: TILE-Gx Syntax, Up: TILE-Gx-Dependent
  17237. 9.47.1 Options
  17238. --------------
  17239. The following table lists all available TILE-Gx specific options:
  17240. '-m32 | -m64'
  17241. Select the word size, either 32 bits or 64 bits.
  17242. '-EB | -EL'
  17243. Select the endianness, either big-endian (-EB) or little-endian
  17244. (-EL).
  17245. 
  17246. File: as.info, Node: TILE-Gx Syntax, Next: TILE-Gx Directives, Prev: TILE-Gx Options, Up: TILE-Gx-Dependent
  17247. 9.47.2 Syntax
  17248. -------------
  17249. Block comments are delimited by '/*' and '*/'. End of line comments may
  17250. be introduced by '#'.
  17251. Instructions consist of a leading opcode or macro name followed by
  17252. whitespace and an optional comma-separated list of operands:
  17253. OPCODE [OPERAND, ...]
  17254. Instructions must be separated by a newline or semicolon.
  17255. There are two ways to write code: either write naked instructions,
  17256. which the assembler is free to combine into VLIW bundles, or specify the
  17257. VLIW bundles explicitly.
  17258. Bundles are specified using curly braces:
  17259. { ADD r3,r4,r5 ; ADD r7,r8,r9 ; LW r10,r11 }
  17260. A bundle can span multiple lines. If you want to put multiple
  17261. instructions on a line, whether in a bundle or not, you need to separate
  17262. them with semicolons as in this example.
  17263. A bundle may contain one or more instructions, up to the limit
  17264. specified by the ISA (currently three). If fewer instructions are
  17265. specified than the hardware supports in a bundle, the assembler inserts
  17266. 'fnop' instructions automatically.
  17267. The assembler will prefer to preserve the ordering of instructions
  17268. within the bundle, putting the first instruction in a lower-numbered
  17269. pipeline than the next one, etc. This fact, combined with the optional
  17270. use of explicit 'fnop' or 'nop' instructions, allows precise control
  17271. over which pipeline executes each instruction.
  17272. If the instructions cannot be bundled in the listed order, the
  17273. assembler will automatically try to find a valid pipeline assignment.
  17274. If there is no way to bundle the instructions together, the assembler
  17275. reports an error.
  17276. The assembler does not yet auto-bundle (automatically combine
  17277. multiple instructions into one bundle), but it reserves the right to do
  17278. so in the future. If you want to force an instruction to run by itself,
  17279. put it in a bundle explicitly with curly braces and use 'nop'
  17280. instructions (not 'fnop') to fill the remaining pipeline slots in that
  17281. bundle.
  17282. * Menu:
  17283. * TILE-Gx Opcodes:: Opcode Naming Conventions.
  17284. * TILE-Gx Registers:: Register Naming.
  17285. * TILE-Gx Modifiers:: Symbolic Operand Modifiers.
  17286. 
  17287. File: as.info, Node: TILE-Gx Opcodes, Next: TILE-Gx Registers, Up: TILE-Gx Syntax
  17288. 9.47.2.1 Opcode Names
  17289. .....................
  17290. For a complete list of opcodes and descriptions of their semantics, see
  17291. 'TILE-Gx Instruction Set Architecture', available upon request at
  17292. www.tilera.com.
  17293. 
  17294. File: as.info, Node: TILE-Gx Registers, Next: TILE-Gx Modifiers, Prev: TILE-Gx Opcodes, Up: TILE-Gx Syntax
  17295. 9.47.2.2 Register Names
  17296. .......................
  17297. General-purpose registers are represented by predefined symbols of the
  17298. form 'rN', where N represents a number between '0' and '63'. However,
  17299. the following registers have canonical names that must be used instead:
  17300. 'r54'
  17301. sp
  17302. 'r55'
  17303. lr
  17304. 'r56'
  17305. sn
  17306. 'r57'
  17307. idn0
  17308. 'r58'
  17309. idn1
  17310. 'r59'
  17311. udn0
  17312. 'r60'
  17313. udn1
  17314. 'r61'
  17315. udn2
  17316. 'r62'
  17317. udn3
  17318. 'r63'
  17319. zero
  17320. The assembler will emit a warning if a numeric name is used instead
  17321. of the non-numeric name. The '.no_require_canonical_reg_names'
  17322. assembler pseudo-op turns off this warning.
  17323. '.require_canonical_reg_names' turns it back on.
  17324. 
  17325. File: as.info, Node: TILE-Gx Modifiers, Prev: TILE-Gx Registers, Up: TILE-Gx Syntax
  17326. 9.47.2.3 Symbolic Operand Modifiers
  17327. ...................................
  17328. The assembler supports several modifiers when using symbol addresses in
  17329. TILE-Gx instruction operands. The general syntax is the following:
  17330. modifier(symbol)
  17331. The following modifiers are supported:
  17332. 'hw0'
  17333. This modifier is used to load bits 0-15 of the symbol's address.
  17334. 'hw1'
  17335. This modifier is used to load bits 16-31 of the symbol's address.
  17336. 'hw2'
  17337. This modifier is used to load bits 32-47 of the symbol's address.
  17338. 'hw3'
  17339. This modifier is used to load bits 48-63 of the symbol's address.
  17340. 'hw0_last'
  17341. This modifier yields the same value as 'hw0', but it also checks
  17342. that the value does not overflow.
  17343. 'hw1_last'
  17344. This modifier yields the same value as 'hw1', but it also checks
  17345. that the value does not overflow.
  17346. 'hw2_last'
  17347. This modifier yields the same value as 'hw2', but it also checks
  17348. that the value does not overflow.
  17349. A 48-bit symbolic value is constructed by using the following
  17350. idiom:
  17351. moveli r0, hw2_last(sym)
  17352. shl16insli r0, r0, hw1(sym)
  17353. shl16insli r0, r0, hw0(sym)
  17354. 'hw0_got'
  17355. This modifier is used to load bits 0-15 of the symbol's offset in
  17356. the GOT entry corresponding to the symbol.
  17357. 'hw0_last_got'
  17358. This modifier yields the same value as 'hw0_got', but it also
  17359. checks that the value does not overflow.
  17360. 'hw1_last_got'
  17361. This modifier is used to load bits 16-31 of the symbol's offset in
  17362. the GOT entry corresponding to the symbol, and it also checks that
  17363. the value does not overflow.
  17364. 'plt'
  17365. This modifier is used for function symbols. It causes a _procedure
  17366. linkage table_, an array of code stubs, to be created at the time
  17367. the shared object is created or linked against, together with a
  17368. global offset table entry. The value is a pc-relative offset to
  17369. the corresponding stub code in the procedure linkage table. This
  17370. arrangement causes the run-time symbol resolver to be called to
  17371. look up and set the value of the symbol the first time the function
  17372. is called (at latest; depending environment variables). It is only
  17373. safe to leave the symbol unresolved this way if all references are
  17374. function calls.
  17375. 'hw0_plt'
  17376. This modifier is used to load bits 0-15 of the pc-relative address
  17377. of a plt entry.
  17378. 'hw1_plt'
  17379. This modifier is used to load bits 16-31 of the pc-relative address
  17380. of a plt entry.
  17381. 'hw1_last_plt'
  17382. This modifier yields the same value as 'hw1_plt', but it also
  17383. checks that the value does not overflow.
  17384. 'hw2_last_plt'
  17385. This modifier is used to load bits 32-47 of the pc-relative address
  17386. of a plt entry, and it also checks that the value does not
  17387. overflow.
  17388. 'hw0_tls_gd'
  17389. This modifier is used to load bits 0-15 of the offset of the GOT
  17390. entry of the symbol's TLS descriptor, to be used for
  17391. general-dynamic TLS accesses.
  17392. 'hw0_last_tls_gd'
  17393. This modifier yields the same value as 'hw0_tls_gd', but it also
  17394. checks that the value does not overflow.
  17395. 'hw1_last_tls_gd'
  17396. This modifier is used to load bits 16-31 of the offset of the GOT
  17397. entry of the symbol's TLS descriptor, to be used for
  17398. general-dynamic TLS accesses. It also checks that the value does
  17399. not overflow.
  17400. 'hw0_tls_ie'
  17401. This modifier is used to load bits 0-15 of the offset of the GOT
  17402. entry containing the offset of the symbol's address from the TCB,
  17403. to be used for initial-exec TLS accesses.
  17404. 'hw0_last_tls_ie'
  17405. This modifier yields the same value as 'hw0_tls_ie', but it also
  17406. checks that the value does not overflow.
  17407. 'hw1_last_tls_ie'
  17408. This modifier is used to load bits 16-31 of the offset of the GOT
  17409. entry containing the offset of the symbol's address from the TCB,
  17410. to be used for initial-exec TLS accesses. It also checks that the
  17411. value does not overflow.
  17412. 'hw0_tls_le'
  17413. This modifier is used to load bits 0-15 of the offset of the
  17414. symbol's address from the TCB, to be used for local-exec TLS
  17415. accesses.
  17416. 'hw0_last_tls_le'
  17417. This modifier yields the same value as 'hw0_tls_le', but it also
  17418. checks that the value does not overflow.
  17419. 'hw1_last_tls_le'
  17420. This modifier is used to load bits 16-31 of the offset of the
  17421. symbol's address from the TCB, to be used for local-exec TLS
  17422. accesses. It also checks that the value does not overflow.
  17423. 'tls_gd_call'
  17424. This modifier is used to tag an instruction as the "call" part of a
  17425. calling sequence for a TLS GD reference of its operand.
  17426. 'tls_gd_add'
  17427. This modifier is used to tag an instruction as the "add" part of a
  17428. calling sequence for a TLS GD reference of its operand.
  17429. 'tls_ie_load'
  17430. This modifier is used to tag an instruction as the "load" part of a
  17431. calling sequence for a TLS IE reference of its operand.
  17432. 
  17433. File: as.info, Node: TILE-Gx Directives, Prev: TILE-Gx Syntax, Up: TILE-Gx-Dependent
  17434. 9.47.3 TILE-Gx Directives
  17435. -------------------------
  17436. '.align EXPRESSION [, EXPRESSION]'
  17437. This is the generic .ALIGN directive. The first argument is the
  17438. requested alignment in bytes.
  17439. '.allow_suspicious_bundles'
  17440. Turns on error checking for combinations of instructions in a
  17441. bundle that probably indicate a programming error. This is on by
  17442. default.
  17443. '.no_allow_suspicious_bundles'
  17444. Turns off error checking for combinations of instructions in a
  17445. bundle that probably indicate a programming error.
  17446. '.require_canonical_reg_names'
  17447. Require that canonical register names be used, and emit a warning
  17448. if the numeric names are used. This is on by default.
  17449. '.no_require_canonical_reg_names'
  17450. Permit the use of numeric names for registers that have canonical
  17451. names.
  17452. 
  17453. File: as.info, Node: TILEPro-Dependent, Next: V850-Dependent, Prev: TILE-Gx-Dependent, Up: Machine Dependencies
  17454. 9.48 TILEPro Dependent Features
  17455. ===============================
  17456. * Menu:
  17457. * TILEPro Options:: TILEPro Options
  17458. * TILEPro Syntax:: TILEPro Syntax
  17459. * TILEPro Directives:: TILEPro Directives
  17460. 
  17461. File: as.info, Node: TILEPro Options, Next: TILEPro Syntax, Up: TILEPro-Dependent
  17462. 9.48.1 Options
  17463. --------------
  17464. 'as' has no machine-dependent command-line options for TILEPro.
  17465. 
  17466. File: as.info, Node: TILEPro Syntax, Next: TILEPro Directives, Prev: TILEPro Options, Up: TILEPro-Dependent
  17467. 9.48.2 Syntax
  17468. -------------
  17469. Block comments are delimited by '/*' and '*/'. End of line comments may
  17470. be introduced by '#'.
  17471. Instructions consist of a leading opcode or macro name followed by
  17472. whitespace and an optional comma-separated list of operands:
  17473. OPCODE [OPERAND, ...]
  17474. Instructions must be separated by a newline or semicolon.
  17475. There are two ways to write code: either write naked instructions,
  17476. which the assembler is free to combine into VLIW bundles, or specify the
  17477. VLIW bundles explicitly.
  17478. Bundles are specified using curly braces:
  17479. { ADD r3,r4,r5 ; ADD r7,r8,r9 ; LW r10,r11 }
  17480. A bundle can span multiple lines. If you want to put multiple
  17481. instructions on a line, whether in a bundle or not, you need to separate
  17482. them with semicolons as in this example.
  17483. A bundle may contain one or more instructions, up to the limit
  17484. specified by the ISA (currently three). If fewer instructions are
  17485. specified than the hardware supports in a bundle, the assembler inserts
  17486. 'fnop' instructions automatically.
  17487. The assembler will prefer to preserve the ordering of instructions
  17488. within the bundle, putting the first instruction in a lower-numbered
  17489. pipeline than the next one, etc. This fact, combined with the optional
  17490. use of explicit 'fnop' or 'nop' instructions, allows precise control
  17491. over which pipeline executes each instruction.
  17492. If the instructions cannot be bundled in the listed order, the
  17493. assembler will automatically try to find a valid pipeline assignment.
  17494. If there is no way to bundle the instructions together, the assembler
  17495. reports an error.
  17496. The assembler does not yet auto-bundle (automatically combine
  17497. multiple instructions into one bundle), but it reserves the right to do
  17498. so in the future. If you want to force an instruction to run by itself,
  17499. put it in a bundle explicitly with curly braces and use 'nop'
  17500. instructions (not 'fnop') to fill the remaining pipeline slots in that
  17501. bundle.
  17502. * Menu:
  17503. * TILEPro Opcodes:: Opcode Naming Conventions.
  17504. * TILEPro Registers:: Register Naming.
  17505. * TILEPro Modifiers:: Symbolic Operand Modifiers.
  17506. 
  17507. File: as.info, Node: TILEPro Opcodes, Next: TILEPro Registers, Up: TILEPro Syntax
  17508. 9.48.2.1 Opcode Names
  17509. .....................
  17510. For a complete list of opcodes and descriptions of their semantics, see
  17511. 'TILE Processor User Architecture Manual', available upon request at
  17512. www.tilera.com.
  17513. 
  17514. File: as.info, Node: TILEPro Registers, Next: TILEPro Modifiers, Prev: TILEPro Opcodes, Up: TILEPro Syntax
  17515. 9.48.2.2 Register Names
  17516. .......................
  17517. General-purpose registers are represented by predefined symbols of the
  17518. form 'rN', where N represents a number between '0' and '63'. However,
  17519. the following registers have canonical names that must be used instead:
  17520. 'r54'
  17521. sp
  17522. 'r55'
  17523. lr
  17524. 'r56'
  17525. sn
  17526. 'r57'
  17527. idn0
  17528. 'r58'
  17529. idn1
  17530. 'r59'
  17531. udn0
  17532. 'r60'
  17533. udn1
  17534. 'r61'
  17535. udn2
  17536. 'r62'
  17537. udn3
  17538. 'r63'
  17539. zero
  17540. The assembler will emit a warning if a numeric name is used instead
  17541. of the canonical name. The '.no_require_canonical_reg_names' assembler
  17542. pseudo-op turns off this warning. '.require_canonical_reg_names' turns
  17543. it back on.
  17544. 
  17545. File: as.info, Node: TILEPro Modifiers, Prev: TILEPro Registers, Up: TILEPro Syntax
  17546. 9.48.2.3 Symbolic Operand Modifiers
  17547. ...................................
  17548. The assembler supports several modifiers when using symbol addresses in
  17549. TILEPro instruction operands. The general syntax is the following:
  17550. modifier(symbol)
  17551. The following modifiers are supported:
  17552. 'lo16'
  17553. This modifier is used to load the low 16 bits of the symbol's
  17554. address, sign-extended to a 32-bit value (sign-extension allows it
  17555. to be range-checked against signed 16 bit immediate operands
  17556. without complaint).
  17557. 'hi16'
  17558. This modifier is used to load the high 16 bits of the symbol's
  17559. address, also sign-extended to a 32-bit value.
  17560. 'ha16'
  17561. 'ha16(N)' is identical to 'hi16(N)', except if 'lo16(N)' is
  17562. negative it adds one to the 'hi16(N)' value. This way 'lo16' and
  17563. 'ha16' can be added to create any 32-bit value using 'auli'. For
  17564. example, here is how you move an arbitrary 32-bit address into r3:
  17565. moveli r3, lo16(sym)
  17566. auli r3, r3, ha16(sym)
  17567. 'got'
  17568. This modifier is used to load the offset of the GOT entry
  17569. corresponding to the symbol.
  17570. 'got_lo16'
  17571. This modifier is used to load the sign-extended low 16 bits of the
  17572. offset of the GOT entry corresponding to the symbol.
  17573. 'got_hi16'
  17574. This modifier is used to load the sign-extended high 16 bits of the
  17575. offset of the GOT entry corresponding to the symbol.
  17576. 'got_ha16'
  17577. This modifier is like 'got_hi16', but it adds one if 'got_lo16' of
  17578. the input value is negative.
  17579. 'plt'
  17580. This modifier is used for function symbols. It causes a _procedure
  17581. linkage table_, an array of code stubs, to be created at the time
  17582. the shared object is created or linked against, together with a
  17583. global offset table entry. The value is a pc-relative offset to
  17584. the corresponding stub code in the procedure linkage table. This
  17585. arrangement causes the run-time symbol resolver to be called to
  17586. look up and set the value of the symbol the first time the function
  17587. is called (at latest; depending environment variables). It is only
  17588. safe to leave the symbol unresolved this way if all references are
  17589. function calls.
  17590. 'tls_gd'
  17591. This modifier is used to load the offset of the GOT entry of the
  17592. symbol's TLS descriptor, to be used for general-dynamic TLS
  17593. accesses.
  17594. 'tls_gd_lo16'
  17595. This modifier is used to load the sign-extended low 16 bits of the
  17596. offset of the GOT entry of the symbol's TLS descriptor, to be used
  17597. for general dynamic TLS accesses.
  17598. 'tls_gd_hi16'
  17599. This modifier is used to load the sign-extended high 16 bits of the
  17600. offset of the GOT entry of the symbol's TLS descriptor, to be used
  17601. for general dynamic TLS accesses.
  17602. 'tls_gd_ha16'
  17603. This modifier is like 'tls_gd_hi16', but it adds one to the value
  17604. if 'tls_gd_lo16' of the input value is negative.
  17605. 'tls_ie'
  17606. This modifier is used to load the offset of the GOT entry
  17607. containing the offset of the symbol's address from the TCB, to be
  17608. used for initial-exec TLS accesses.
  17609. 'tls_ie_lo16'
  17610. This modifier is used to load the low 16 bits of the offset of the
  17611. GOT entry containing the offset of the symbol's address from the
  17612. TCB, to be used for initial-exec TLS accesses.
  17613. 'tls_ie_hi16'
  17614. This modifier is used to load the high 16 bits of the offset of the
  17615. GOT entry containing the offset of the symbol's address from the
  17616. TCB, to be used for initial-exec TLS accesses.
  17617. 'tls_ie_ha16'
  17618. This modifier is like 'tls_ie_hi16', but it adds one to the value
  17619. if 'tls_ie_lo16' of the input value is negative.
  17620. 'tls_le'
  17621. This modifier is used to load the offset of the symbol's address
  17622. from the TCB, to be used for local-exec TLS accesses.
  17623. 'tls_le_lo16'
  17624. This modifier is used to load the low 16 bits of the offset of the
  17625. symbol's address from the TCB, to be used for local-exec TLS
  17626. accesses.
  17627. 'tls_le_hi16'
  17628. This modifier is used to load the high 16 bits of the offset of the
  17629. symbol's address from the TCB, to be used for local-exec TLS
  17630. accesses.
  17631. 'tls_le_ha16'
  17632. This modifier is like 'tls_le_hi16', but it adds one to the value
  17633. if 'tls_le_lo16' of the input value is negative.
  17634. 'tls_gd_call'
  17635. This modifier is used to tag an instruction as the "call" part of a
  17636. calling sequence for a TLS GD reference of its operand.
  17637. 'tls_gd_add'
  17638. This modifier is used to tag an instruction as the "add" part of a
  17639. calling sequence for a TLS GD reference of its operand.
  17640. 'tls_ie_load'
  17641. This modifier is used to tag an instruction as the "load" part of a
  17642. calling sequence for a TLS IE reference of its operand.
  17643. 
  17644. File: as.info, Node: TILEPro Directives, Prev: TILEPro Syntax, Up: TILEPro-Dependent
  17645. 9.48.3 TILEPro Directives
  17646. -------------------------
  17647. '.align EXPRESSION [, EXPRESSION]'
  17648. This is the generic .ALIGN directive. The first argument is the
  17649. requested alignment in bytes.
  17650. '.allow_suspicious_bundles'
  17651. Turns on error checking for combinations of instructions in a
  17652. bundle that probably indicate a programming error. This is on by
  17653. default.
  17654. '.no_allow_suspicious_bundles'
  17655. Turns off error checking for combinations of instructions in a
  17656. bundle that probably indicate a programming error.
  17657. '.require_canonical_reg_names'
  17658. Require that canonical register names be used, and emit a warning
  17659. if the numeric names are used. This is on by default.
  17660. '.no_require_canonical_reg_names'
  17661. Permit the use of numeric names for registers that have canonical
  17662. names.
  17663. 
  17664. File: as.info, Node: V850-Dependent, Next: Vax-Dependent, Prev: TILEPro-Dependent, Up: Machine Dependencies
  17665. 9.49 v850 Dependent Features
  17666. ============================
  17667. * Menu:
  17668. * V850 Options:: Options
  17669. * V850 Syntax:: Syntax
  17670. * V850 Floating Point:: Floating Point
  17671. * V850 Directives:: V850 Machine Directives
  17672. * V850 Opcodes:: Opcodes
  17673. 
  17674. File: as.info, Node: V850 Options, Next: V850 Syntax, Up: V850-Dependent
  17675. 9.49.1 Options
  17676. --------------
  17677. 'as' supports the following additional command-line options for the V850
  17678. processor family:
  17679. '-wsigned_overflow'
  17680. Causes warnings to be produced when signed immediate values
  17681. overflow the space available for then within their opcodes. By
  17682. default this option is disabled as it is possible to receive
  17683. spurious warnings due to using exact bit patterns as immediate
  17684. constants.
  17685. '-wunsigned_overflow'
  17686. Causes warnings to be produced when unsigned immediate values
  17687. overflow the space available for then within their opcodes. By
  17688. default this option is disabled as it is possible to receive
  17689. spurious warnings due to using exact bit patterns as immediate
  17690. constants.
  17691. '-mv850'
  17692. Specifies that the assembled code should be marked as being
  17693. targeted at the V850 processor. This allows the linker to detect
  17694. attempts to link such code with code assembled for other
  17695. processors.
  17696. '-mv850e'
  17697. Specifies that the assembled code should be marked as being
  17698. targeted at the V850E processor. This allows the linker to detect
  17699. attempts to link such code with code assembled for other
  17700. processors.
  17701. '-mv850e1'
  17702. Specifies that the assembled code should be marked as being
  17703. targeted at the V850E1 processor. This allows the linker to detect
  17704. attempts to link such code with code assembled for other
  17705. processors.
  17706. '-mv850any'
  17707. Specifies that the assembled code should be marked as being
  17708. targeted at the V850 processor but support instructions that are
  17709. specific to the extended variants of the process. This allows the
  17710. production of binaries that contain target specific code, but which
  17711. are also intended to be used in a generic fashion. For example
  17712. libgcc.a contains generic routines used by the code produced by GCC
  17713. for all versions of the v850 architecture, together with support
  17714. routines only used by the V850E architecture.
  17715. '-mv850e2'
  17716. Specifies that the assembled code should be marked as being
  17717. targeted at the V850E2 processor. This allows the linker to detect
  17718. attempts to link such code with code assembled for other
  17719. processors.
  17720. '-mv850e2v3'
  17721. Specifies that the assembled code should be marked as being
  17722. targeted at the V850E2V3 processor. This allows the linker to
  17723. detect attempts to link such code with code assembled for other
  17724. processors.
  17725. '-mv850e2v4'
  17726. This is an alias for '-mv850e3v5'.
  17727. '-mv850e3v5'
  17728. Specifies that the assembled code should be marked as being
  17729. targeted at the V850E3V5 processor. This allows the linker to
  17730. detect attempts to link such code with code assembled for other
  17731. processors.
  17732. '-mrelax'
  17733. Enables relaxation. This allows the .longcall and .longjump pseudo
  17734. ops to be used in the assembler source code. These ops label
  17735. sections of code which are either a long function call or a long
  17736. branch. The assembler will then flag these sections of code and
  17737. the linker will attempt to relax them.
  17738. '-mgcc-abi'
  17739. Marks the generated object file as supporting the old GCC ABI.
  17740. '-mrh850-abi'
  17741. Marks the generated object file as supporting the RH850 ABI. This
  17742. is the default.
  17743. '-m8byte-align'
  17744. Marks the generated object file as supporting a maximum 64-bits of
  17745. alignment for variables defined in the source code.
  17746. '-m4byte-align'
  17747. Marks the generated object file as supporting a maximum 32-bits of
  17748. alignment for variables defined in the source code. This is the
  17749. default.
  17750. '-msoft-float'
  17751. Marks the generated object file as not using any floating point
  17752. instructions - and hence can be linked with other V850 binaries
  17753. that do or do not use floating point. This is the default for
  17754. binaries for architectures earlier than the 'e2v3'.
  17755. '-mhard-float'
  17756. Marks the generated object file as one that uses floating point
  17757. instructions - and hence can only be linked with other V850
  17758. binaries that use the same kind of floating point instructions, or
  17759. with binaries that do not use floating point at all. This is the
  17760. default for binaries the 'e2v3' and later architectures.
  17761. 
  17762. File: as.info, Node: V850 Syntax, Next: V850 Floating Point, Prev: V850 Options, Up: V850-Dependent
  17763. 9.49.2 Syntax
  17764. -------------
  17765. * Menu:
  17766. * V850-Chars:: Special Characters
  17767. * V850-Regs:: Register Names
  17768. 
  17769. File: as.info, Node: V850-Chars, Next: V850-Regs, Up: V850 Syntax
  17770. 9.49.2.1 Special Characters
  17771. ...........................
  17772. '#' is the line comment character. If a '#' appears as the first
  17773. character of a line, the whole line is treated as a comment, but in this
  17774. case the line can also be a logical line number directive (*note
  17775. Comments::) or a preprocessor control command (*note Preprocessing::).
  17776. Two dashes ('--') can also be used to start a line comment.
  17777. The ';' character can be used to separate statements on the same
  17778. line.
  17779. 
  17780. File: as.info, Node: V850-Regs, Prev: V850-Chars, Up: V850 Syntax
  17781. 9.49.2.2 Register Names
  17782. .......................
  17783. 'as' supports the following names for registers:
  17784. 'general register 0'
  17785. r0, zero
  17786. 'general register 1'
  17787. r1
  17788. 'general register 2'
  17789. r2, hp
  17790. 'general register 3'
  17791. r3, sp
  17792. 'general register 4'
  17793. r4, gp
  17794. 'general register 5'
  17795. r5, tp
  17796. 'general register 6'
  17797. r6
  17798. 'general register 7'
  17799. r7
  17800. 'general register 8'
  17801. r8
  17802. 'general register 9'
  17803. r9
  17804. 'general register 10'
  17805. r10
  17806. 'general register 11'
  17807. r11
  17808. 'general register 12'
  17809. r12
  17810. 'general register 13'
  17811. r13
  17812. 'general register 14'
  17813. r14
  17814. 'general register 15'
  17815. r15
  17816. 'general register 16'
  17817. r16
  17818. 'general register 17'
  17819. r17
  17820. 'general register 18'
  17821. r18
  17822. 'general register 19'
  17823. r19
  17824. 'general register 20'
  17825. r20
  17826. 'general register 21'
  17827. r21
  17828. 'general register 22'
  17829. r22
  17830. 'general register 23'
  17831. r23
  17832. 'general register 24'
  17833. r24
  17834. 'general register 25'
  17835. r25
  17836. 'general register 26'
  17837. r26
  17838. 'general register 27'
  17839. r27
  17840. 'general register 28'
  17841. r28
  17842. 'general register 29'
  17843. r29
  17844. 'general register 30'
  17845. r30, ep
  17846. 'general register 31'
  17847. r31, lp
  17848. 'system register 0'
  17849. eipc
  17850. 'system register 1'
  17851. eipsw
  17852. 'system register 2'
  17853. fepc
  17854. 'system register 3'
  17855. fepsw
  17856. 'system register 4'
  17857. ecr
  17858. 'system register 5'
  17859. psw
  17860. 'system register 16'
  17861. ctpc
  17862. 'system register 17'
  17863. ctpsw
  17864. 'system register 18'
  17865. dbpc
  17866. 'system register 19'
  17867. dbpsw
  17868. 'system register 20'
  17869. ctbp
  17870. 
  17871. File: as.info, Node: V850 Floating Point, Next: V850 Directives, Prev: V850 Syntax, Up: V850-Dependent
  17872. 9.49.3 Floating Point
  17873. ---------------------
  17874. The V850 family uses IEEE floating-point numbers.
  17875. 
  17876. File: as.info, Node: V850 Directives, Next: V850 Opcodes, Prev: V850 Floating Point, Up: V850-Dependent
  17877. 9.49.4 V850 Machine Directives
  17878. ------------------------------
  17879. '.offset <EXPRESSION>'
  17880. Moves the offset into the current section to the specified amount.
  17881. '.section "name", <type>'
  17882. This is an extension to the standard .section directive. It sets
  17883. the current section to be <type> and creates an alias for this
  17884. section called "name".
  17885. '.v850'
  17886. Specifies that the assembled code should be marked as being
  17887. targeted at the V850 processor. This allows the linker to detect
  17888. attempts to link such code with code assembled for other
  17889. processors.
  17890. '.v850e'
  17891. Specifies that the assembled code should be marked as being
  17892. targeted at the V850E processor. This allows the linker to detect
  17893. attempts to link such code with code assembled for other
  17894. processors.
  17895. '.v850e1'
  17896. Specifies that the assembled code should be marked as being
  17897. targeted at the V850E1 processor. This allows the linker to detect
  17898. attempts to link such code with code assembled for other
  17899. processors.
  17900. '.v850e2'
  17901. Specifies that the assembled code should be marked as being
  17902. targeted at the V850E2 processor. This allows the linker to detect
  17903. attempts to link such code with code assembled for other
  17904. processors.
  17905. '.v850e2v3'
  17906. Specifies that the assembled code should be marked as being
  17907. targeted at the V850E2V3 processor. This allows the linker to
  17908. detect attempts to link such code with code assembled for other
  17909. processors.
  17910. '.v850e2v4'
  17911. Specifies that the assembled code should be marked as being
  17912. targeted at the V850E3V5 processor. This allows the linker to
  17913. detect attempts to link such code with code assembled for other
  17914. processors.
  17915. '.v850e3v5'
  17916. Specifies that the assembled code should be marked as being
  17917. targeted at the V850E3V5 processor. This allows the linker to
  17918. detect attempts to link such code with code assembled for other
  17919. processors.
  17920. 
  17921. File: as.info, Node: V850 Opcodes, Prev: V850 Directives, Up: V850-Dependent
  17922. 9.49.5 Opcodes
  17923. --------------
  17924. 'as' implements all the standard V850 opcodes.
  17925. 'as' also implements the following pseudo ops:
  17926. 'hi0()'
  17927. Computes the higher 16 bits of the given expression and stores it
  17928. into the immediate operand field of the given instruction. For
  17929. example:
  17930. 'mulhi hi0(here - there), r5, r6'
  17931. computes the difference between the address of labels 'here' and
  17932. 'there', takes the upper 16 bits of this difference, shifts it down
  17933. 16 bits and then multiplies it by the lower 16 bits in register 5,
  17934. putting the result into register 6.
  17935. 'lo()'
  17936. Computes the lower 16 bits of the given expression and stores it
  17937. into the immediate operand field of the given instruction. For
  17938. example:
  17939. 'addi lo(here - there), r5, r6'
  17940. computes the difference between the address of labels 'here' and
  17941. 'there', takes the lower 16 bits of this difference and adds it to
  17942. register 5, putting the result into register 6.
  17943. 'hi()'
  17944. Computes the higher 16 bits of the given expression and then adds
  17945. the value of the most significant bit of the lower 16 bits of the
  17946. expression and stores the result into the immediate operand field
  17947. of the given instruction. For example the following code can be
  17948. used to compute the address of the label 'here' and store it into
  17949. register 6:
  17950. 'movhi hi(here), r0, r6' 'movea lo(here), r6, r6'
  17951. The reason for this special behaviour is that movea performs a sign
  17952. extension on its immediate operand. So for example if the address
  17953. of 'here' was 0xFFFFFFFF then without the special behaviour of the
  17954. hi() pseudo-op the movhi instruction would put 0xFFFF0000 into r6,
  17955. then the movea instruction would takes its immediate operand,
  17956. 0xFFFF, sign extend it to 32 bits, 0xFFFFFFFF, and then add it into
  17957. r6 giving 0xFFFEFFFF which is wrong (the fifth nibble is E). With
  17958. the hi() pseudo op adding in the top bit of the lo() pseudo op, the
  17959. movhi instruction actually stores 0 into r6 (0xFFFF + 1 = 0x0000),
  17960. so that the movea instruction stores 0xFFFFFFFF into r6 - the right
  17961. value.
  17962. 'hilo()'
  17963. Computes the 32 bit value of the given expression and stores it
  17964. into the immediate operand field of the given instruction (which
  17965. must be a mov instruction). For example:
  17966. 'mov hilo(here), r6'
  17967. computes the absolute address of label 'here' and puts the result
  17968. into register 6.
  17969. 'sdaoff()'
  17970. Computes the offset of the named variable from the start of the
  17971. Small Data Area (whose address is held in register 4, the GP
  17972. register) and stores the result as a 16 bit signed value in the
  17973. immediate operand field of the given instruction. For example:
  17974. 'ld.w sdaoff(_a_variable)[gp],r6'
  17975. loads the contents of the location pointed to by the label
  17976. '_a_variable' into register 6, provided that the label is located
  17977. somewhere within +/- 32K of the address held in the GP register.
  17978. [Note the linker assumes that the GP register contains a fixed
  17979. address set to the address of the label called '__gp'. This can
  17980. either be set up automatically by the linker, or specifically set
  17981. by using the '--defsym __gp=<value>' command-line option].
  17982. 'tdaoff()'
  17983. Computes the offset of the named variable from the start of the
  17984. Tiny Data Area (whose address is held in register 30, the EP
  17985. register) and stores the result as a 4,5, 7 or 8 bit unsigned value
  17986. in the immediate operand field of the given instruction. For
  17987. example:
  17988. 'sld.w tdaoff(_a_variable)[ep],r6'
  17989. loads the contents of the location pointed to by the label
  17990. '_a_variable' into register 6, provided that the label is located
  17991. somewhere within +256 bytes of the address held in the EP register.
  17992. [Note the linker assumes that the EP register contains a fixed
  17993. address set to the address of the label called '__ep'. This can
  17994. either be set up automatically by the linker, or specifically set
  17995. by using the '--defsym __ep=<value>' command-line option].
  17996. 'zdaoff()'
  17997. Computes the offset of the named variable from address 0 and stores
  17998. the result as a 16 bit signed value in the immediate operand field
  17999. of the given instruction. For example:
  18000. 'movea zdaoff(_a_variable),zero,r6'
  18001. puts the address of the label '_a_variable' into register 6,
  18002. assuming that the label is somewhere within the first 32K of
  18003. memory. (Strictly speaking it also possible to access the last 32K
  18004. of memory as well, as the offsets are signed).
  18005. 'ctoff()'
  18006. Computes the offset of the named variable from the start of the
  18007. Call Table Area (whose address is held in system register 20, the
  18008. CTBP register) and stores the result a 6 or 16 bit unsigned value
  18009. in the immediate field of then given instruction or piece of data.
  18010. For example:
  18011. 'callt ctoff(table_func1)'
  18012. will put the call the function whose address is held in the call
  18013. table at the location labeled 'table_func1'.
  18014. '.longcall name'
  18015. Indicates that the following sequence of instructions is a long
  18016. call to function 'name'. The linker will attempt to shorten this
  18017. call sequence if 'name' is within a 22bit offset of the call. Only
  18018. valid if the '-mrelax' command-line switch has been enabled.
  18019. '.longjump name'
  18020. Indicates that the following sequence of instructions is a long
  18021. jump to label 'name'. The linker will attempt to shorten this code
  18022. sequence if 'name' is within a 22bit offset of the jump. Only
  18023. valid if the '-mrelax' command-line switch has been enabled.
  18024. For information on the V850 instruction set, see 'V850 Family
  18025. 32-/16-Bit single-Chip Microcontroller Architecture Manual' from NEC.
  18026. Ltd.
  18027. 
  18028. File: as.info, Node: Vax-Dependent, Next: Visium-Dependent, Prev: V850-Dependent, Up: Machine Dependencies
  18029. 9.50 VAX Dependent Features
  18030. ===========================
  18031. * Menu:
  18032. * VAX-Opts:: VAX Command-Line Options
  18033. * VAX-float:: VAX Floating Point
  18034. * VAX-directives:: Vax Machine Directives
  18035. * VAX-opcodes:: VAX Opcodes
  18036. * VAX-branch:: VAX Branch Improvement
  18037. * VAX-operands:: VAX Operands
  18038. * VAX-no:: Not Supported on VAX
  18039. * VAX-Syntax:: VAX Syntax
  18040. 
  18041. File: as.info, Node: VAX-Opts, Next: VAX-float, Up: Vax-Dependent
  18042. 9.50.1 VAX Command-Line Options
  18043. -------------------------------
  18044. The Vax version of 'as' accepts any of the following options, gives a
  18045. warning message that the option was ignored and proceeds. These options
  18046. are for compatibility with scripts designed for other people's
  18047. assemblers.
  18048. '-D (Debug)'
  18049. '-S (Symbol Table)'
  18050. '-T (Token Trace)'
  18051. These are obsolete options used to debug old assemblers.
  18052. '-d (Displacement size for JUMPs)'
  18053. This option expects a number following the '-d'. Like options that
  18054. expect filenames, the number may immediately follow the '-d' (old
  18055. standard) or constitute the whole of the command-line argument that
  18056. follows '-d' (GNU standard).
  18057. '-V (Virtualize Interpass Temporary File)'
  18058. Some other assemblers use a temporary file. This option commanded
  18059. them to keep the information in active memory rather than in a disk
  18060. file. 'as' always does this, so this option is redundant.
  18061. '-J (JUMPify Longer Branches)'
  18062. Many 32-bit computers permit a variety of branch instructions to do
  18063. the same job. Some of these instructions are short (and fast) but
  18064. have a limited range; others are long (and slow) but can branch
  18065. anywhere in virtual memory. Often there are 3 flavors of branch:
  18066. short, medium and long. Some other assemblers would emit short and
  18067. medium branches, unless told by this option to emit short and long
  18068. branches.
  18069. '-t (Temporary File Directory)'
  18070. Some other assemblers may use a temporary file, and this option
  18071. takes a filename being the directory to site the temporary file.
  18072. Since 'as' does not use a temporary disk file, this option makes no
  18073. difference. '-t' needs exactly one filename.
  18074. The Vax version of the assembler accepts additional options when
  18075. compiled for VMS:
  18076. '-h N'
  18077. External symbol or section (used for global variables) names are
  18078. not case sensitive on VAX/VMS and always mapped to upper case.
  18079. This is contrary to the C language definition which explicitly
  18080. distinguishes upper and lower case. To implement a standard
  18081. conforming C compiler, names must be changed (mapped) to preserve
  18082. the case information. The default mapping is to convert all lower
  18083. case characters to uppercase and adding an underscore followed by a
  18084. 6 digit hex value, representing a 24 digit binary value. The one
  18085. digits in the binary value represent which characters are uppercase
  18086. in the original symbol name.
  18087. The '-h N' option determines how we map names. This takes several
  18088. values. No '-h' switch at all allows case hacking as described
  18089. above. A value of zero ('-h0') implies names should be upper case,
  18090. and inhibits the case hack. A value of 2 ('-h2') implies names
  18091. should be all lower case, with no case hack. A value of 3 ('-h3')
  18092. implies that case should be preserved. The value 1 is unused. The
  18093. '-H' option directs 'as' to display every mapped symbol during
  18094. assembly.
  18095. Symbols whose names include a dollar sign '$' are exceptions to the
  18096. general name mapping. These symbols are normally only used to
  18097. reference VMS library names. Such symbols are always mapped to
  18098. upper case.
  18099. '-+'
  18100. The '-+' option causes 'as' to truncate any symbol name larger than
  18101. 31 characters. The '-+' option also prevents some code following
  18102. the '_main' symbol normally added to make the object file
  18103. compatible with Vax-11 "C".
  18104. '-1'
  18105. This option is ignored for backward compatibility with 'as' version
  18106. 1.x.
  18107. '-H'
  18108. The '-H' option causes 'as' to print every symbol which was changed
  18109. by case mapping.
  18110. 
  18111. File: as.info, Node: VAX-float, Next: VAX-directives, Prev: VAX-Opts, Up: Vax-Dependent
  18112. 9.50.2 VAX Floating Point
  18113. -------------------------
  18114. Conversion of flonums to floating point is correct, and compatible with
  18115. previous assemblers. Rounding is towards zero if the remainder is
  18116. exactly half the least significant bit.
  18117. 'D', 'F', 'G' and 'H' floating point formats are understood.
  18118. Immediate floating literals (_e.g._ 'S`$6.9') are rendered
  18119. correctly. Again, rounding is towards zero in the boundary case.
  18120. The '.float' directive produces 'f' format numbers. The '.double'
  18121. directive produces 'd' format numbers.
  18122. 
  18123. File: as.info, Node: VAX-directives, Next: VAX-opcodes, Prev: VAX-float, Up: Vax-Dependent
  18124. 9.50.3 Vax Machine Directives
  18125. -----------------------------
  18126. The Vax version of the assembler supports four directives for generating
  18127. Vax floating point constants. They are described in the table below.
  18128. '.dfloat'
  18129. This expects zero or more flonums, separated by commas, and
  18130. assembles Vax 'd' format 64-bit floating point constants.
  18131. '.ffloat'
  18132. This expects zero or more flonums, separated by commas, and
  18133. assembles Vax 'f' format 32-bit floating point constants.
  18134. '.gfloat'
  18135. This expects zero or more flonums, separated by commas, and
  18136. assembles Vax 'g' format 64-bit floating point constants.
  18137. '.hfloat'
  18138. This expects zero or more flonums, separated by commas, and
  18139. assembles Vax 'h' format 128-bit floating point constants.
  18140. 
  18141. File: as.info, Node: VAX-opcodes, Next: VAX-branch, Prev: VAX-directives, Up: Vax-Dependent
  18142. 9.50.4 VAX Opcodes
  18143. ------------------
  18144. All DEC mnemonics are supported. Beware that 'case...' instructions
  18145. have exactly 3 operands. The dispatch table that follows the 'case...'
  18146. instruction should be made with '.word' statements. This is compatible
  18147. with all unix assemblers we know of.
  18148. 
  18149. File: as.info, Node: VAX-branch, Next: VAX-operands, Prev: VAX-opcodes, Up: Vax-Dependent
  18150. 9.50.5 VAX Branch Improvement
  18151. -----------------------------
  18152. Certain pseudo opcodes are permitted. They are for branch instructions.
  18153. They expand to the shortest branch instruction that reaches the target.
  18154. Generally these mnemonics are made by substituting 'j' for 'b' at the
  18155. start of a DEC mnemonic. This feature is included both for
  18156. compatibility and to help compilers. If you do not need this feature,
  18157. avoid these opcodes. Here are the mnemonics, and the code they can
  18158. expand into.
  18159. 'jbsb'
  18160. 'Jsb' is already an instruction mnemonic, so we chose 'jbsb'.
  18161. (byte displacement)
  18162. 'bsbb ...'
  18163. (word displacement)
  18164. 'bsbw ...'
  18165. (long displacement)
  18166. 'jsb ...'
  18167. 'jbr'
  18168. 'jr'
  18169. Unconditional branch.
  18170. (byte displacement)
  18171. 'brb ...'
  18172. (word displacement)
  18173. 'brw ...'
  18174. (long displacement)
  18175. 'jmp ...'
  18176. 'jCOND'
  18177. COND may be any one of the conditional branches 'neq', 'nequ',
  18178. 'eql', 'eqlu', 'gtr', 'geq', 'lss', 'gtru', 'lequ', 'vc', 'vs',
  18179. 'gequ', 'cc', 'lssu', 'cs'. COND may also be one of the bit tests
  18180. 'bs', 'bc', 'bss', 'bcs', 'bsc', 'bcc', 'bssi', 'bcci', 'lbs',
  18181. 'lbc'. NOTCOND is the opposite condition to COND.
  18182. (byte displacement)
  18183. 'bCOND ...'
  18184. (word displacement)
  18185. 'bNOTCOND foo ; brw ... ; foo:'
  18186. (long displacement)
  18187. 'bNOTCOND foo ; jmp ... ; foo:'
  18188. 'jacbX'
  18189. X may be one of 'b d f g h l w'.
  18190. (word displacement)
  18191. 'OPCODE ...'
  18192. (long displacement)
  18193. OPCODE ..., foo ;
  18194. brb bar ;
  18195. foo: jmp ... ;
  18196. bar:
  18197. 'jaobYYY'
  18198. YYY may be one of 'lss leq'.
  18199. 'jsobZZZ'
  18200. ZZZ may be one of 'geq gtr'.
  18201. (byte displacement)
  18202. 'OPCODE ...'
  18203. (word displacement)
  18204. OPCODE ..., foo ;
  18205. brb bar ;
  18206. foo: brw DESTINATION ;
  18207. bar:
  18208. (long displacement)
  18209. OPCODE ..., foo ;
  18210. brb bar ;
  18211. foo: jmp DESTINATION ;
  18212. bar:
  18213. 'aobleq'
  18214. 'aoblss'
  18215. 'sobgeq'
  18216. 'sobgtr'
  18217. (byte displacement)
  18218. 'OPCODE ...'
  18219. (word displacement)
  18220. OPCODE ..., foo ;
  18221. brb bar ;
  18222. foo: brw DESTINATION ;
  18223. bar:
  18224. (long displacement)
  18225. OPCODE ..., foo ;
  18226. brb bar ;
  18227. foo: jmp DESTINATION ;
  18228. bar:
  18229. 
  18230. File: as.info, Node: VAX-operands, Next: VAX-no, Prev: VAX-branch, Up: Vax-Dependent
  18231. 9.50.6 VAX Operands
  18232. -------------------
  18233. The immediate character is '$' for Unix compatibility, not '#' as DEC
  18234. writes it.
  18235. The indirect character is '*' for Unix compatibility, not '@' as DEC
  18236. writes it.
  18237. The displacement sizing character is '`' (an accent grave) for Unix
  18238. compatibility, not '^' as DEC writes it. The letter preceding '`' may
  18239. have either case. 'G' is not understood, but all other letters ('b i l
  18240. s w') are understood.
  18241. Register names understood are 'r0 r1 r2 ... r15 ap fp sp pc'. Upper
  18242. and lower case letters are equivalent.
  18243. For instance
  18244. tstb *w`$4(r5)
  18245. Any expression is permitted in an operand. Operands are comma
  18246. separated.
  18247. 
  18248. File: as.info, Node: VAX-no, Next: VAX-Syntax, Prev: VAX-operands, Up: Vax-Dependent
  18249. 9.50.7 Not Supported on VAX
  18250. ---------------------------
  18251. Vax bit fields can not be assembled with 'as'. Someone can add the
  18252. required code if they really need it.
  18253. 
  18254. File: as.info, Node: VAX-Syntax, Prev: VAX-no, Up: Vax-Dependent
  18255. 9.50.8 VAX Syntax
  18256. -----------------
  18257. * Menu:
  18258. * VAX-Chars:: Special Characters
  18259. 
  18260. File: as.info, Node: VAX-Chars, Up: VAX-Syntax
  18261. 9.50.8.1 Special Characters
  18262. ...........................
  18263. The presence of a '#' appearing anywhere on a line indicates the start
  18264. of a comment that extends to the end of that line.
  18265. If a '#' appears as the first character of a line then the whole line
  18266. is treated as a comment, but in this case the line can also be a logical
  18267. line number directive (*note Comments::) or a preprocessor control
  18268. command (*note Preprocessing::).
  18269. The ';' character can be used to separate statements on the same
  18270. line.
  18271. 
  18272. File: as.info, Node: Visium-Dependent, Next: WebAssembly-Dependent, Prev: Vax-Dependent, Up: Machine Dependencies
  18273. 9.51 Visium Dependent Features
  18274. ==============================
  18275. * Menu:
  18276. * Visium Options:: Options
  18277. * Visium Syntax:: Syntax
  18278. * Visium Opcodes:: Opcodes
  18279. 
  18280. File: as.info, Node: Visium Options, Next: Visium Syntax, Up: Visium-Dependent
  18281. 9.51.1 Options
  18282. --------------
  18283. The Visium assembler implements one machine-specific option:
  18284. '-mtune=ARCH'
  18285. This option specifies the target architecture. If an attempt is
  18286. made to assemble an instruction that will not execute on the target
  18287. architecture, the assembler will issue an error message.
  18288. The following names are recognized: 'mcm24' 'mcm' 'gr5' 'gr6'
  18289. 
  18290. File: as.info, Node: Visium Syntax, Next: Visium Opcodes, Prev: Visium Options, Up: Visium-Dependent
  18291. 9.51.2 Syntax
  18292. -------------
  18293. * Menu:
  18294. * Visium Characters:: Special Characters
  18295. * Visium Registers:: Register Names
  18296. 
  18297. File: as.info, Node: Visium Characters, Next: Visium Registers, Up: Visium Syntax
  18298. 9.51.2.1 Special Characters
  18299. ...........................
  18300. Line comments are introduced either by the '!' character or by the ';'
  18301. character appearing anywhere on a line.
  18302. A hash character ('#') as the first character on a line also marks
  18303. the start of a line comment, but in this case it could also be a logical
  18304. line number directive (*note Comments::) or a preprocessor control
  18305. command (*note Preprocessing::).
  18306. The Visium assembler does not currently support a line separator
  18307. character.
  18308. 
  18309. File: as.info, Node: Visium Registers, Prev: Visium Characters, Up: Visium Syntax
  18310. 9.51.2.2 Register Names
  18311. .......................
  18312. Registers can be specified either by using their canonical mnemonic
  18313. names or by using their alias if they have one, for example 'sp'.
  18314. 
  18315. File: as.info, Node: Visium Opcodes, Prev: Visium Syntax, Up: Visium-Dependent
  18316. 9.51.3 Opcodes
  18317. --------------
  18318. All the standard opcodes of the architecture are implemented, along with
  18319. the following three pseudo-instructions: 'cmp', 'cmpc', 'move'.
  18320. In addition, the following two illegal opcodes are implemented and
  18321. used by the simulation:
  18322. stop 5-bit immediate, SourceA
  18323. trace 5-bit immediate, SourceA
  18324. 
  18325. File: as.info, Node: WebAssembly-Dependent, Next: XGATE-Dependent, Prev: Visium-Dependent, Up: Machine Dependencies
  18326. 9.52 WebAssembly Dependent Features
  18327. ===================================
  18328. * Menu:
  18329. * WebAssembly-Notes:: Notes
  18330. * WebAssembly-Syntax:: Syntax
  18331. * WebAssembly-Floating-Point:: Floating Point
  18332. * WebAssembly-Opcodes:: Opcodes
  18333. * WebAssembly-module-layout:: Module Layout
  18334. 
  18335. File: as.info, Node: WebAssembly-Notes, Next: WebAssembly-Syntax, Up: WebAssembly-Dependent
  18336. 9.52.1 Notes
  18337. ------------
  18338. While WebAssembly provides its own module format for executables, this
  18339. documentation describes how to use 'as' to produce intermediate ELF
  18340. object format files.
  18341. 
  18342. File: as.info, Node: WebAssembly-Syntax, Next: WebAssembly-Floating-Point, Prev: WebAssembly-Notes, Up: WebAssembly-Dependent
  18343. 9.52.2 Syntax
  18344. -------------
  18345. The assembler syntax directly encodes sequences of opcodes as defined in
  18346. the WebAssembly binary encoding specification at
  18347. https://github.com/webassembly/spec/BinaryEncoding.md. Structured
  18348. sexp-style expressions are not supported as input.
  18349. * Menu:
  18350. * WebAssembly-Chars:: Special Characters
  18351. * WebAssembly-Relocs:: Relocations
  18352. * WebAssembly-Signatures:: Signatures
  18353. 
  18354. File: as.info, Node: WebAssembly-Chars, Next: WebAssembly-Relocs, Up: WebAssembly-Syntax
  18355. 9.52.2.1 Special Characters
  18356. ...........................
  18357. '#' and ';' are the line comment characters. Note that if '#' is the
  18358. first character on a line then it can also be a logical line number
  18359. directive (*note Comments::) or a preprocessor control command (*note
  18360. Preprocessing::).
  18361. 
  18362. File: as.info, Node: WebAssembly-Relocs, Next: WebAssembly-Signatures, Prev: WebAssembly-Chars, Up: WebAssembly-Syntax
  18363. 9.52.2.2 Relocations
  18364. ....................
  18365. Special relocations are available by using the '@PLT', '@GOT', or '@GOT'
  18366. suffixes after a constant expression, which correspond to the
  18367. R_ASMJS_LEB128_PLT, R_ASMJS_LEB128_GOT, and R_ASMJS_LEB128_GOT_CODE
  18368. relocations, respectively.
  18369. The '@PLT' suffix is followed by a symbol name in braces; the symbol
  18370. value is used to determine the function signature for which a PLT stub
  18371. is generated. Currently, the symbol _name_ is parsed from its last 'F'
  18372. character to determine the argument count of the function, which is also
  18373. necessary for generating a PLT stub.
  18374. 
  18375. File: as.info, Node: WebAssembly-Signatures, Prev: WebAssembly-Relocs, Up: WebAssembly-Syntax
  18376. 9.52.2.3 Signatures
  18377. ...................
  18378. Function signatures are specified with the 'signature' pseudo-opcode,
  18379. followed by a simple function signature imitating a C++-mangled function
  18380. type: 'F' followed by an optional 'v', then a sequence of 'i', 'l', 'f',
  18381. and 'd' characters to mark i32, i64, f32, and f64 parameters,
  18382. respectively; followed by a final 'E' to mark the end of the function
  18383. signature.
  18384. 
  18385. File: as.info, Node: WebAssembly-Floating-Point, Next: WebAssembly-Opcodes, Prev: WebAssembly-Syntax, Up: WebAssembly-Dependent
  18386. 9.52.3 Floating Point
  18387. ---------------------
  18388. WebAssembly uses little-endian IEEE floating-point numbers.
  18389. 
  18390. File: as.info, Node: WebAssembly-Opcodes, Next: WebAssembly-module-layout, Prev: WebAssembly-Floating-Point, Up: WebAssembly-Dependent
  18391. 9.52.4 Regular Opcodes
  18392. ----------------------
  18393. Ordinary instructions are encoded with the WebAssembly mnemonics as
  18394. listed at:
  18395. <https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md>.
  18396. Opcodes are written directly in the order in which they are encoded,
  18397. without going through an intermediate sexp-style expression as in the
  18398. 'was' format.
  18399. For "typed" opcodes (block, if, etc.), the type of the block is
  18400. specified in square brackets following the opcode: 'if[i]', 'if[]'.
  18401. 
  18402. File: as.info, Node: WebAssembly-module-layout, Prev: WebAssembly-Opcodes, Up: WebAssembly-Dependent
  18403. 9.52.5 WebAssembly Module Layout
  18404. --------------------------------
  18405. 'as' will only produce ELF output, not a valid WebAssembly module. It
  18406. is possible to make 'as' produce output in a single ELF section which
  18407. becomes a valid WebAssembly module, but a linker script to do so may be
  18408. preferable, as it doesn't require running the entire module through the
  18409. assembler at once.
  18410. 
  18411. File: as.info, Node: XGATE-Dependent, Next: XSTORMY16-Dependent, Prev: WebAssembly-Dependent, Up: Machine Dependencies
  18412. 9.53 XGATE Dependent Features
  18413. =============================
  18414. * Menu:
  18415. * XGATE-Opts:: XGATE Options
  18416. * XGATE-Syntax:: Syntax
  18417. * XGATE-Directives:: Assembler Directives
  18418. * XGATE-Float:: Floating Point
  18419. * XGATE-opcodes:: Opcodes
  18420. 
  18421. File: as.info, Node: XGATE-Opts, Next: XGATE-Syntax, Up: XGATE-Dependent
  18422. 9.53.1 XGATE Options
  18423. --------------------
  18424. The Freescale XGATE version of 'as' has a few machine dependent options.
  18425. '-mshort'
  18426. This option controls the ABI and indicates to use a 16-bit integer
  18427. ABI. It has no effect on the assembled instructions. This is the
  18428. default.
  18429. '-mlong'
  18430. This option controls the ABI and indicates to use a 32-bit integer
  18431. ABI.
  18432. '-mshort-double'
  18433. This option controls the ABI and indicates to use a 32-bit float
  18434. ABI. This is the default.
  18435. '-mlong-double'
  18436. This option controls the ABI and indicates to use a 64-bit float
  18437. ABI.
  18438. '--print-insn-syntax'
  18439. You can use the '--print-insn-syntax' option to obtain the syntax
  18440. description of the instruction when an error is detected.
  18441. '--print-opcodes'
  18442. The '--print-opcodes' option prints the list of all the
  18443. instructions with their syntax. Once the list is printed 'as'
  18444. exits.
  18445. 
  18446. File: as.info, Node: XGATE-Syntax, Next: XGATE-Directives, Prev: XGATE-Opts, Up: XGATE-Dependent
  18447. 9.53.2 Syntax
  18448. -------------
  18449. In XGATE RISC syntax, the instruction name comes first and it may be
  18450. followed by up to three operands. Operands are separated by commas
  18451. (','). 'as' will complain if too many operands are specified for a
  18452. given instruction. The same will happen if you specified too few
  18453. operands.
  18454. nop
  18455. ldl #23
  18456. CMP R1, R2
  18457. The presence of a ';' character or a '!' character anywhere on a line
  18458. indicates the start of a comment that extends to the end of that line.
  18459. A '*' or a '#' character at the start of a line also introduces a
  18460. line comment, but these characters do not work elsewhere on the line.
  18461. If the first character of the line is a '#' then as well as starting a
  18462. comment, the line could also be logical line number directive (*note
  18463. Comments::) or a preprocessor control command (*note Preprocessing::).
  18464. The XGATE assembler does not currently support a line separator
  18465. character.
  18466. The following addressing modes are understood for XGATE:
  18467. "Inherent"
  18468. ''
  18469. "Immediate 3 Bit Wide"
  18470. '#NUMBER'
  18471. "Immediate 4 Bit Wide"
  18472. '#NUMBER'
  18473. "Immediate 8 Bit Wide"
  18474. '#NUMBER'
  18475. "Monadic Addressing"
  18476. 'REG'
  18477. "Dyadic Addressing"
  18478. 'REG, REG'
  18479. "Triadic Addressing"
  18480. 'REG, REG, REG'
  18481. "Relative Addressing 9 Bit Wide"
  18482. '*SYMBOL'
  18483. "Relative Addressing 10 Bit Wide"
  18484. '*SYMBOL'
  18485. "Index Register plus Immediate Offset"
  18486. 'REG, (REG, #NUMBER)'
  18487. "Index Register plus Register Offset"
  18488. 'REG, REG, REG'
  18489. "Index Register plus Register Offset with Post-increment"
  18490. 'REG, REG, REG+'
  18491. "Index Register plus Register Offset with Pre-decrement"
  18492. 'REG, REG, -REG'
  18493. The register can be either 'R0', 'R1', 'R2', 'R3', 'R4', 'R5', 'R6'
  18494. or 'R7'.
  18495. Convene macro opcodes to deal with 16-bit values have been added.
  18496. "Immediate 16 Bit Wide"
  18497. '#NUMBER', or '*SYMBOL'
  18498. For example:
  18499. ldw R1, #1024
  18500. ldw R3, timer
  18501. ldw R1, (R1, #0)
  18502. COM R1
  18503. stw R2, (R1, #0)
  18504. 
  18505. File: as.info, Node: XGATE-Directives, Next: XGATE-Float, Prev: XGATE-Syntax, Up: XGATE-Dependent
  18506. 9.53.3 Assembler Directives
  18507. ---------------------------
  18508. The XGATE version of 'as' have the following specific assembler
  18509. directives:
  18510. 
  18511. File: as.info, Node: XGATE-Float, Next: XGATE-opcodes, Prev: XGATE-Directives, Up: XGATE-Dependent
  18512. 9.53.4 Floating Point
  18513. ---------------------
  18514. Packed decimal (P) format floating literals are not supported(yet).
  18515. The floating point formats generated by directives are these.
  18516. '.float'
  18517. 'Single' precision floating point constants.
  18518. '.double'
  18519. 'Double' precision floating point constants.
  18520. '.extend'
  18521. '.ldouble'
  18522. 'Extended' precision ('long double') floating point constants.
  18523. 
  18524. File: as.info, Node: XGATE-opcodes, Prev: XGATE-Float, Up: XGATE-Dependent
  18525. 9.53.5 Opcodes
  18526. --------------
  18527. 
  18528. File: as.info, Node: XSTORMY16-Dependent, Next: Xtensa-Dependent, Prev: XGATE-Dependent, Up: Machine Dependencies
  18529. 9.54 XStormy16 Dependent Features
  18530. =================================
  18531. * Menu:
  18532. * XStormy16 Syntax:: Syntax
  18533. * XStormy16 Directives:: Machine Directives
  18534. * XStormy16 Opcodes:: Pseudo-Opcodes
  18535. 
  18536. File: as.info, Node: XStormy16 Syntax, Next: XStormy16 Directives, Up: XSTORMY16-Dependent
  18537. 9.54.1 Syntax
  18538. -------------
  18539. * Menu:
  18540. * XStormy16-Chars:: Special Characters
  18541. 
  18542. File: as.info, Node: XStormy16-Chars, Up: XStormy16 Syntax
  18543. 9.54.1.1 Special Characters
  18544. ...........................
  18545. '#' is the line comment character. If a '#' appears as the first
  18546. character of a line, the whole line is treated as a comment, but in this
  18547. case the line can also be a logical line number directive (*note
  18548. Comments::) or a preprocessor control command (*note Preprocessing::).
  18549. A semicolon (';') can be used to start a comment that extends from
  18550. wherever the character appears on the line up to the end of the line.
  18551. The '|' character can be used to separate statements on the same
  18552. line.
  18553. 
  18554. File: as.info, Node: XStormy16 Directives, Next: XStormy16 Opcodes, Prev: XStormy16 Syntax, Up: XSTORMY16-Dependent
  18555. 9.54.2 XStormy16 Machine Directives
  18556. -----------------------------------
  18557. '.16bit_pointers'
  18558. Like the '--16bit-pointers' command-line option this directive
  18559. indicates that the assembly code makes use of 16-bit pointers.
  18560. '.32bit_pointers'
  18561. Like the '--32bit-pointers' command-line option this directive
  18562. indicates that the assembly code makes use of 32-bit pointers.
  18563. '.no_pointers'
  18564. Like the '--no-pointers' command-line option this directive
  18565. indicates that the assembly code does not makes use pointers.
  18566. 
  18567. File: as.info, Node: XStormy16 Opcodes, Prev: XStormy16 Directives, Up: XSTORMY16-Dependent
  18568. 9.54.3 XStormy16 Pseudo-Opcodes
  18569. -------------------------------
  18570. 'as' implements all the standard XStormy16 opcodes.
  18571. 'as' also implements the following pseudo ops:
  18572. '@lo()'
  18573. Computes the lower 16 bits of the given expression and stores it
  18574. into the immediate operand field of the given instruction. For
  18575. example:
  18576. 'add r6, @lo(here - there)'
  18577. computes the difference between the address of labels 'here' and
  18578. 'there', takes the lower 16 bits of this difference and adds it to
  18579. register 6.
  18580. '@hi()'
  18581. Computes the higher 16 bits of the given expression and stores it
  18582. into the immediate operand field of the given instruction. For
  18583. example:
  18584. 'addc r7, @hi(here - there)'
  18585. computes the difference between the address of labels 'here' and
  18586. 'there', takes the upper 16 bits of this difference, shifts it down
  18587. 16 bits and then adds it, along with the carry bit, to the value in
  18588. register 7.
  18589. 
  18590. File: as.info, Node: Xtensa-Dependent, Next: Z80-Dependent, Prev: XSTORMY16-Dependent, Up: Machine Dependencies
  18591. 9.55 Xtensa Dependent Features
  18592. ==============================
  18593. This chapter covers features of the GNU assembler that are specific to
  18594. the Xtensa architecture. For details about the Xtensa instruction set,
  18595. please consult the 'Xtensa Instruction Set Architecture (ISA) Reference
  18596. Manual'.
  18597. * Menu:
  18598. * Xtensa Options:: Command-line Options.
  18599. * Xtensa Syntax:: Assembler Syntax for Xtensa Processors.
  18600. * Xtensa Optimizations:: Assembler Optimizations.
  18601. * Xtensa Relaxation:: Other Automatic Transformations.
  18602. * Xtensa Directives:: Directives for Xtensa Processors.
  18603. 
  18604. File: as.info, Node: Xtensa Options, Next: Xtensa Syntax, Up: Xtensa-Dependent
  18605. 9.55.1 Command-line Options
  18606. ---------------------------
  18607. '--text-section-literals | --no-text-section-literals'
  18608. Control the treatment of literal pools. The default is
  18609. '--no-text-section-literals', which places literals in separate
  18610. sections in the output file. This allows the literal pool to be
  18611. placed in a data RAM/ROM. With '--text-section-literals', the
  18612. literals are interspersed in the text section in order to keep them
  18613. as close as possible to their references. This may be necessary
  18614. for large assembly files, where the literals would otherwise be out
  18615. of range of the 'L32R' instructions in the text section. Literals
  18616. are grouped into pools following '.literal_position' directives or
  18617. preceding 'ENTRY' instructions. These options only affect literals
  18618. referenced via PC-relative 'L32R' instructions; literals for
  18619. absolute mode 'L32R' instructions are handled separately. *Note
  18620. literal: Literal Directive.
  18621. '--auto-litpools | --no-auto-litpools'
  18622. Control the treatment of literal pools. The default is
  18623. '--no-auto-litpools', which in the absence of
  18624. '--text-section-literals' places literals in separate sections in
  18625. the output file. This allows the literal pool to be placed in a
  18626. data RAM/ROM. With '--auto-litpools', the literals are interspersed
  18627. in the text section in order to keep them as close as possible to
  18628. their references, explicit '.literal_position' directives are not
  18629. required. This may be necessary for very large functions, where
  18630. single literal pool at the beginning of the function may not be
  18631. reachable by 'L32R' instructions at the end. These options only
  18632. affect literals referenced via PC-relative 'L32R' instructions;
  18633. literals for absolute mode 'L32R' instructions are handled
  18634. separately. When used together with '--text-section-literals',
  18635. '--auto-litpools' takes precedence. *Note literal: Literal
  18636. Directive.
  18637. '--absolute-literals | --no-absolute-literals'
  18638. Indicate to the assembler whether 'L32R' instructions use absolute
  18639. or PC-relative addressing. If the processor includes the absolute
  18640. addressing option, the default is to use absolute 'L32R'
  18641. relocations. Otherwise, only the PC-relative 'L32R' relocations
  18642. can be used.
  18643. '--target-align | --no-target-align'
  18644. Enable or disable automatic alignment to reduce branch penalties at
  18645. some expense in code size. *Note Automatic Instruction Alignment:
  18646. Xtensa Automatic Alignment. This optimization is enabled by
  18647. default. Note that the assembler will always align instructions
  18648. like 'LOOP' that have fixed alignment requirements.
  18649. '--longcalls | --no-longcalls'
  18650. Enable or disable transformation of call instructions to allow
  18651. calls across a greater range of addresses. *Note Function Call
  18652. Relaxation: Xtensa Call Relaxation. This option should be used
  18653. when call targets can potentially be out of range. It may degrade
  18654. both code size and performance, but the linker can generally
  18655. optimize away the unnecessary overhead when a call ends up within
  18656. range. The default is '--no-longcalls'.
  18657. '--transform | --no-transform'
  18658. Enable or disable all assembler transformations of Xtensa
  18659. instructions, including both relaxation and optimization. The
  18660. default is '--transform'; '--no-transform' should only be used in
  18661. the rare cases when the instructions must be exactly as specified
  18662. in the assembly source. Using '--no-transform' causes out of range
  18663. instruction operands to be errors.
  18664. '--rename-section OLDNAME=NEWNAME'
  18665. Rename the OLDNAME section to NEWNAME. This option can be used
  18666. multiple times to rename multiple sections.
  18667. '--trampolines | --no-trampolines'
  18668. Enable or disable transformation of jump instructions to allow
  18669. jumps across a greater range of addresses. *Note Jump Trampolines:
  18670. Xtensa Jump Relaxation. This option should be used when jump
  18671. targets can potentially be out of range. In the absence of such
  18672. jumps this option does not affect code size or performance. The
  18673. default is '--trampolines'.
  18674. '--abi-windowed | --abi-call0'
  18675. Choose ABI tag written to the '.xtensa.info' section. ABI tag
  18676. indicates ABI of the assembly code. A warning is issued by the
  18677. linker on an attempt to link object files with inconsistent ABI
  18678. tags. Default ABI is chosen by the Xtensa core configuration.
  18679. 
  18680. File: as.info, Node: Xtensa Syntax, Next: Xtensa Optimizations, Prev: Xtensa Options, Up: Xtensa-Dependent
  18681. 9.55.2 Assembler Syntax
  18682. -----------------------
  18683. Block comments are delimited by '/*' and '*/'. End of line comments may
  18684. be introduced with either '#' or '//'.
  18685. If a '#' appears as the first character of a line then the whole line
  18686. is treated as a comment, but in this case the line could also be a
  18687. logical line number directive (*note Comments::) or a preprocessor
  18688. control command (*note Preprocessing::).
  18689. Instructions consist of a leading opcode or macro name followed by
  18690. whitespace and an optional comma-separated list of operands:
  18691. OPCODE [OPERAND, ...]
  18692. Instructions must be separated by a newline or semicolon (';').
  18693. FLIX instructions, which bundle multiple opcodes together in a single
  18694. instruction, are specified by enclosing the bundled opcodes inside
  18695. braces:
  18696. {
  18697. [FORMAT]
  18698. OPCODE0 [OPERANDS]
  18699. OPCODE1 [OPERANDS]
  18700. OPCODE2 [OPERANDS]
  18701. ...
  18702. }
  18703. The opcodes in a FLIX instruction are listed in the same order as the
  18704. corresponding instruction slots in the TIE format declaration.
  18705. Directives and labels are not allowed inside the braces of a FLIX
  18706. instruction. A particular TIE format name can optionally be specified
  18707. immediately after the opening brace, but this is usually unnecessary.
  18708. The assembler will automatically search for a format that can encode the
  18709. specified opcodes, so the format name need only be specified in rare
  18710. cases where there is more than one applicable format and where it
  18711. matters which of those formats is used. A FLIX instruction can also be
  18712. specified on a single line by separating the opcodes with semicolons:
  18713. { [FORMAT;] OPCODE0 [OPERANDS]; OPCODE1 [OPERANDS]; OPCODE2 [OPERANDS]; ... }
  18714. If an opcode can only be encoded in a FLIX instruction but is not
  18715. specified as part of a FLIX bundle, the assembler will choose the
  18716. smallest format where the opcode can be encoded and will fill unused
  18717. instruction slots with no-ops.
  18718. * Menu:
  18719. * Xtensa Opcodes:: Opcode Naming Conventions.
  18720. * Xtensa Registers:: Register Naming.
  18721. 
  18722. File: as.info, Node: Xtensa Opcodes, Next: Xtensa Registers, Up: Xtensa Syntax
  18723. 9.55.2.1 Opcode Names
  18724. .....................
  18725. See the 'Xtensa Instruction Set Architecture (ISA) Reference Manual' for
  18726. a complete list of opcodes and descriptions of their semantics.
  18727. If an opcode name is prefixed with an underscore character ('_'),
  18728. 'as' will not transform that instruction in any way. The underscore
  18729. prefix disables both optimization (*note Xtensa Optimizations: Xtensa
  18730. Optimizations.) and relaxation (*note Xtensa Relaxation: Xtensa
  18731. Relaxation.) for that particular instruction. Only use the underscore
  18732. prefix when it is essential to select the exact opcode produced by the
  18733. assembler. Using this feature unnecessarily makes the code less
  18734. efficient by disabling assembler optimization and less flexible by
  18735. disabling relaxation.
  18736. Note that this special handling of underscore prefixes only applies
  18737. to Xtensa opcodes, not to either built-in macros or user-defined macros.
  18738. When an underscore prefix is used with a macro (e.g., '_MOV'), it refers
  18739. to a different macro. The assembler generally provides built-in macros
  18740. both with and without the underscore prefix, where the underscore
  18741. versions behave as if the underscore carries through to the instructions
  18742. in the macros. For example, '_MOV' may expand to '_MOV.N'.
  18743. The underscore prefix only applies to individual instructions, not to
  18744. series of instructions. For example, if a series of instructions have
  18745. underscore prefixes, the assembler will not transform the individual
  18746. instructions, but it may insert other instructions between them (e.g.,
  18747. to align a 'LOOP' instruction). To prevent the assembler from modifying
  18748. a series of instructions as a whole, use the 'no-transform' directive.
  18749. *Note transform: Transform Directive.
  18750. 
  18751. File: as.info, Node: Xtensa Registers, Prev: Xtensa Opcodes, Up: Xtensa Syntax
  18752. 9.55.2.2 Register Names
  18753. .......................
  18754. The assembly syntax for a register file entry is the "short" name for a
  18755. TIE register file followed by the index into that register file. For
  18756. example, the general-purpose 'AR' register file has a short name of 'a',
  18757. so these registers are named 'a0'...'a15'. As a special feature, 'sp'
  18758. is also supported as a synonym for 'a1'. Additional registers may be
  18759. added by processor configuration options and by designer-defined TIE
  18760. extensions. An initial '$' character is optional in all register names.
  18761. 
  18762. File: as.info, Node: Xtensa Optimizations, Next: Xtensa Relaxation, Prev: Xtensa Syntax, Up: Xtensa-Dependent
  18763. 9.55.3 Xtensa Optimizations
  18764. ---------------------------
  18765. The optimizations currently supported by 'as' are generation of density
  18766. instructions where appropriate and automatic branch target alignment.
  18767. * Menu:
  18768. * Density Instructions:: Using Density Instructions.
  18769. * Xtensa Automatic Alignment:: Automatic Instruction Alignment.
  18770. 
  18771. File: as.info, Node: Density Instructions, Next: Xtensa Automatic Alignment, Up: Xtensa Optimizations
  18772. 9.55.3.1 Using Density Instructions
  18773. ...................................
  18774. The Xtensa instruction set has a code density option that provides
  18775. 16-bit versions of some of the most commonly used opcodes. Use of these
  18776. opcodes can significantly reduce code size. When possible, the
  18777. assembler automatically translates instructions from the core Xtensa
  18778. instruction set into equivalent instructions from the Xtensa code
  18779. density option. This translation can be disabled by using underscore
  18780. prefixes (*note Opcode Names: Xtensa Opcodes.), by using the
  18781. '--no-transform' command-line option (*note Command Line Options: Xtensa
  18782. Options.), or by using the 'no-transform' directive (*note transform:
  18783. Transform Directive.).
  18784. It is a good idea _not_ to use the density instructions directly.
  18785. The assembler will automatically select dense instructions where
  18786. possible. If you later need to use an Xtensa processor without the code
  18787. density option, the same assembly code will then work without
  18788. modification.
  18789. 
  18790. File: as.info, Node: Xtensa Automatic Alignment, Prev: Density Instructions, Up: Xtensa Optimizations
  18791. 9.55.3.2 Automatic Instruction Alignment
  18792. ........................................
  18793. The Xtensa assembler will automatically align certain instructions, both
  18794. to optimize performance and to satisfy architectural requirements.
  18795. As an optimization to improve performance, the assembler attempts to
  18796. align branch targets so they do not cross instruction fetch boundaries.
  18797. (Xtensa processors can be configured with either 32-bit or 64-bit
  18798. instruction fetch widths.) An instruction immediately following a call
  18799. is treated as a branch target in this context, because it will be the
  18800. target of a return from the call. This alignment has the potential to
  18801. reduce branch penalties at some expense in code size. This optimization
  18802. is enabled by default. You can disable it with the '--no-target-align'
  18803. command-line option (*note Command-line Options: Xtensa Options.).
  18804. The target alignment optimization is done without adding instructions
  18805. that could increase the execution time of the program. If there are
  18806. density instructions in the code preceding a target, the assembler can
  18807. change the target alignment by widening some of those instructions to
  18808. the equivalent 24-bit instructions. Extra bytes of padding can be
  18809. inserted immediately following unconditional jump and return
  18810. instructions. This approach is usually successful in aligning many, but
  18811. not all, branch targets.
  18812. The 'LOOP' family of instructions must be aligned such that the first
  18813. instruction in the loop body does not cross an instruction fetch
  18814. boundary (e.g., with a 32-bit fetch width, a 'LOOP' instruction must be
  18815. on either a 1 or 2 mod 4 byte boundary). The assembler knows about this
  18816. restriction and inserts the minimal number of 2 or 3 byte no-op
  18817. instructions to satisfy it. When no-op instructions are added, any
  18818. label immediately preceding the original loop will be moved in order to
  18819. refer to the loop instruction, not the newly generated no-op
  18820. instruction. To preserve binary compatibility across processors with
  18821. different fetch widths, the assembler conservatively assumes a 32-bit
  18822. fetch width when aligning 'LOOP' instructions (except if the first
  18823. instruction in the loop is a 64-bit instruction).
  18824. Previous versions of the assembler automatically aligned 'ENTRY'
  18825. instructions to 4-byte boundaries, but that alignment is now the
  18826. programmer's responsibility.
  18827. 
  18828. File: as.info, Node: Xtensa Relaxation, Next: Xtensa Directives, Prev: Xtensa Optimizations, Up: Xtensa-Dependent
  18829. 9.55.4 Xtensa Relaxation
  18830. ------------------------
  18831. When an instruction operand is outside the range allowed for that
  18832. particular instruction field, 'as' can transform the code to use a
  18833. functionally-equivalent instruction or sequence of instructions. This
  18834. process is known as "relaxation". This is typically done for branch
  18835. instructions because the distance of the branch targets is not known
  18836. until assembly-time. The Xtensa assembler offers branch relaxation and
  18837. also extends this concept to function calls, 'MOVI' instructions and
  18838. other instructions with immediate fields.
  18839. * Menu:
  18840. * Xtensa Branch Relaxation:: Relaxation of Branches.
  18841. * Xtensa Call Relaxation:: Relaxation of Function Calls.
  18842. * Xtensa Jump Relaxation:: Relaxation of Jumps.
  18843. * Xtensa Immediate Relaxation:: Relaxation of other Immediate Fields.
  18844. 
  18845. File: as.info, Node: Xtensa Branch Relaxation, Next: Xtensa Call Relaxation, Up: Xtensa Relaxation
  18846. 9.55.4.1 Conditional Branch Relaxation
  18847. ......................................
  18848. When the target of a branch is too far away from the branch itself,
  18849. i.e., when the offset from the branch to the target is too large to fit
  18850. in the immediate field of the branch instruction, it may be necessary to
  18851. replace the branch with a branch around a jump. For example,
  18852. beqz a2, L
  18853. may result in:
  18854. bnez.n a2, M
  18855. j L
  18856. M:
  18857. (The 'BNEZ.N' instruction would be used in this example only if the
  18858. density option is available. Otherwise, 'BNEZ' would be used.)
  18859. This relaxation works well because the unconditional jump instruction
  18860. has a much larger offset range than the various conditional branches.
  18861. However, an error will occur if a branch target is beyond the range of a
  18862. jump instruction. 'as' cannot relax unconditional jumps. Similarly, an
  18863. error will occur if the original input contains an unconditional jump to
  18864. a target that is out of range.
  18865. Branch relaxation is enabled by default. It can be disabled by using
  18866. underscore prefixes (*note Opcode Names: Xtensa Opcodes.), the
  18867. '--no-transform' command-line option (*note Command-line Options: Xtensa
  18868. Options.), or the 'no-transform' directive (*note transform: Transform
  18869. Directive.).
  18870. 
  18871. File: as.info, Node: Xtensa Call Relaxation, Next: Xtensa Jump Relaxation, Prev: Xtensa Branch Relaxation, Up: Xtensa Relaxation
  18872. 9.55.4.2 Function Call Relaxation
  18873. .................................
  18874. Function calls may require relaxation because the Xtensa immediate call
  18875. instructions ('CALL0', 'CALL4', 'CALL8' and 'CALL12') provide a
  18876. PC-relative offset of only 512 Kbytes in either direction. For larger
  18877. programs, it may be necessary to use indirect calls ('CALLX0', 'CALLX4',
  18878. 'CALLX8' and 'CALLX12') where the target address is specified in a
  18879. register. The Xtensa assembler can automatically relax immediate call
  18880. instructions into indirect call instructions. This relaxation is done
  18881. by loading the address of the called function into the callee's return
  18882. address register and then using a 'CALLX' instruction. So, for example:
  18883. call8 func
  18884. might be relaxed to:
  18885. .literal .L1, func
  18886. l32r a8, .L1
  18887. callx8 a8
  18888. Because the addresses of targets of function calls are not generally
  18889. known until link-time, the assembler must assume the worst and relax all
  18890. the calls to functions in other source files, not just those that really
  18891. will be out of range. The linker can recognize calls that were
  18892. unnecessarily relaxed, and it will remove the overhead introduced by the
  18893. assembler for those cases where direct calls are sufficient.
  18894. Call relaxation is disabled by default because it can have a negative
  18895. effect on both code size and performance, although the linker can
  18896. usually eliminate the unnecessary overhead. If a program is too large
  18897. and some of the calls are out of range, function call relaxation can be
  18898. enabled using the '--longcalls' command-line option or the 'longcalls'
  18899. directive (*note longcalls: Longcalls Directive.).
  18900. 
  18901. File: as.info, Node: Xtensa Jump Relaxation, Next: Xtensa Immediate Relaxation, Prev: Xtensa Call Relaxation, Up: Xtensa Relaxation
  18902. 9.55.4.3 Jump Relaxation
  18903. ........................
  18904. Jump instruction may require relaxation because the Xtensa jump
  18905. instruction ('J') provide a PC-relative offset of only 128 Kbytes in
  18906. either direction. One option is to use jump long ('J.L') instruction,
  18907. which depending on jump distance may be assembled as jump ('J') or
  18908. indirect jump ('JX'). However it needs a free register. When there's
  18909. no spare register it is possible to plant intermediate jump sites
  18910. (trampolines) between the jump instruction and its target. These sites
  18911. may be located in areas unreachable by normal code execution flow, in
  18912. that case they only contain intermediate jumps, or they may be inserted
  18913. in the middle of code block, in which case there's an additional jump
  18914. from the beginning of the trampoline to the instruction past its end.
  18915. So, for example:
  18916. j 1f
  18917. ...
  18918. retw
  18919. ...
  18920. mov a10, a2
  18921. call8 func
  18922. ...
  18923. 1:
  18924. ...
  18925. might be relaxed to:
  18926. j .L0_TR_1
  18927. ...
  18928. retw
  18929. .L0_TR_1:
  18930. j 1f
  18931. ...
  18932. mov a10, a2
  18933. call8 func
  18934. ...
  18935. 1:
  18936. ...
  18937. or to:
  18938. j .L0_TR_1
  18939. ...
  18940. retw
  18941. ...
  18942. mov a10, a2
  18943. j .L0_TR_0
  18944. .L0_TR_1:
  18945. j 1f
  18946. .L0_TR_0:
  18947. call8 func
  18948. ...
  18949. 1:
  18950. ...
  18951. The Xtensa assembler uses trampolines with jump around only when it
  18952. cannot find suitable unreachable trampoline. There may be multiple
  18953. trampolines between the jump instruction and its target.
  18954. This relaxation does not apply to jumps to undefined symbols,
  18955. assuming they will reach their targets once resolved.
  18956. Jump relaxation is enabled by default because it does not affect code
  18957. size or performance while the code itself is small. This relaxation may
  18958. be disabled completely with '--no-trampolines' or '--no-transform'
  18959. command-line options (*note Command-line Options: Xtensa Options.).
  18960. 
  18961. File: as.info, Node: Xtensa Immediate Relaxation, Prev: Xtensa Jump Relaxation, Up: Xtensa Relaxation
  18962. 9.55.4.4 Other Immediate Field Relaxation
  18963. .........................................
  18964. The assembler normally performs the following other relaxations. They
  18965. can be disabled by using underscore prefixes (*note Opcode Names: Xtensa
  18966. Opcodes.), the '--no-transform' command-line option (*note Command-line
  18967. Options: Xtensa Options.), or the 'no-transform' directive (*note
  18968. transform: Transform Directive.).
  18969. The 'MOVI' machine instruction can only materialize values in the
  18970. range from -2048 to 2047. Values outside this range are best
  18971. materialized with 'L32R' instructions. Thus:
  18972. movi a0, 100000
  18973. is assembled into the following machine code:
  18974. .literal .L1, 100000
  18975. l32r a0, .L1
  18976. The 'L8UI' machine instruction can only be used with immediate
  18977. offsets in the range from 0 to 255. The 'L16SI' and 'L16UI' machine
  18978. instructions can only be used with offsets from 0 to 510. The 'L32I'
  18979. machine instruction can only be used with offsets from 0 to 1020. A
  18980. load offset outside these ranges can be materialized with an 'L32R'
  18981. instruction if the destination register of the load is different than
  18982. the source address register. For example:
  18983. l32i a1, a0, 2040
  18984. is translated to:
  18985. .literal .L1, 2040
  18986. l32r a1, .L1
  18987. add a1, a0, a1
  18988. l32i a1, a1, 0
  18989. If the load destination and source address register are the same, an
  18990. out-of-range offset causes an error.
  18991. The Xtensa 'ADDI' instruction only allows immediate operands in the
  18992. range from -128 to 127. There are a number of alternate instruction
  18993. sequences for the 'ADDI' operation. First, if the immediate is 0, the
  18994. 'ADDI' will be turned into a 'MOV.N' instruction (or the equivalent 'OR'
  18995. instruction if the code density option is not available). If the 'ADDI'
  18996. immediate is outside of the range -128 to 127, but inside the range
  18997. -32896 to 32639, an 'ADDMI' instruction or 'ADDMI'/'ADDI' sequence will
  18998. be used. Finally, if the immediate is outside of this range and a free
  18999. register is available, an 'L32R'/'ADD' sequence will be used with a
  19000. literal allocated from the literal pool.
  19001. For example:
  19002. addi a5, a6, 0
  19003. addi a5, a6, 512
  19004. addi a5, a6, 513
  19005. addi a5, a6, 50000
  19006. is assembled into the following:
  19007. .literal .L1, 50000
  19008. mov.n a5, a6
  19009. addmi a5, a6, 0x200
  19010. addmi a5, a6, 0x200
  19011. addi a5, a5, 1
  19012. l32r a5, .L1
  19013. add a5, a6, a5
  19014. 
  19015. File: as.info, Node: Xtensa Directives, Prev: Xtensa Relaxation, Up: Xtensa-Dependent
  19016. 9.55.5 Directives
  19017. -----------------
  19018. The Xtensa assembler supports a region-based directive syntax:
  19019. .begin DIRECTIVE [OPTIONS]
  19020. ...
  19021. .end DIRECTIVE
  19022. All the Xtensa-specific directives that apply to a region of code use
  19023. this syntax.
  19024. The directive applies to code between the '.begin' and the '.end'.
  19025. The state of the option after the '.end' reverts to what it was before
  19026. the '.begin'. A nested '.begin'/'.end' region can further change the
  19027. state of the directive without having to be aware of its outer state.
  19028. For example, consider:
  19029. .begin no-transform
  19030. L: add a0, a1, a2
  19031. .begin transform
  19032. M: add a0, a1, a2
  19033. .end transform
  19034. N: add a0, a1, a2
  19035. .end no-transform
  19036. The 'ADD' opcodes at 'L' and 'N' in the outer 'no-transform' region
  19037. both result in 'ADD' machine instructions, but the assembler selects an
  19038. 'ADD.N' instruction for the 'ADD' at 'M' in the inner 'transform'
  19039. region.
  19040. The advantage of this style is that it works well inside macros which
  19041. can preserve the context of their callers.
  19042. The following directives are available:
  19043. * Menu:
  19044. * Schedule Directive:: Enable instruction scheduling.
  19045. * Longcalls Directive:: Use Indirect Calls for Greater Range.
  19046. * Transform Directive:: Disable All Assembler Transformations.
  19047. * Literal Directive:: Intermix Literals with Instructions.
  19048. * Literal Position Directive:: Specify Inline Literal Pool Locations.
  19049. * Literal Prefix Directive:: Specify Literal Section Name Prefix.
  19050. * Absolute Literals Directive:: Control PC-Relative vs. Absolute Literals.
  19051. 
  19052. File: as.info, Node: Schedule Directive, Next: Longcalls Directive, Up: Xtensa Directives
  19053. 9.55.5.1 schedule
  19054. .................
  19055. The 'schedule' directive is recognized only for compatibility with
  19056. Tensilica's assembler.
  19057. .begin [no-]schedule
  19058. .end [no-]schedule
  19059. This directive is ignored and has no effect on 'as'.
  19060. 
  19061. File: as.info, Node: Longcalls Directive, Next: Transform Directive, Prev: Schedule Directive, Up: Xtensa Directives
  19062. 9.55.5.2 longcalls
  19063. ..................
  19064. The 'longcalls' directive enables or disables function call relaxation.
  19065. *Note Function Call Relaxation: Xtensa Call Relaxation.
  19066. .begin [no-]longcalls
  19067. .end [no-]longcalls
  19068. Call relaxation is disabled by default unless the '--longcalls'
  19069. command-line option is specified. The 'longcalls' directive overrides
  19070. the default determined by the command-line options.
  19071. 
  19072. File: as.info, Node: Transform Directive, Next: Literal Directive, Prev: Longcalls Directive, Up: Xtensa Directives
  19073. 9.55.5.3 transform
  19074. ..................
  19075. This directive enables or disables all assembler transformation,
  19076. including relaxation (*note Xtensa Relaxation: Xtensa Relaxation.) and
  19077. optimization (*note Xtensa Optimizations: Xtensa Optimizations.).
  19078. .begin [no-]transform
  19079. .end [no-]transform
  19080. Transformations are enabled by default unless the '--no-transform'
  19081. option is used. The 'transform' directive overrides the default
  19082. determined by the command-line options. An underscore opcode prefix,
  19083. disabling transformation of that opcode, always takes precedence over
  19084. both directives and command-line flags.
  19085. 
  19086. File: as.info, Node: Literal Directive, Next: Literal Position Directive, Prev: Transform Directive, Up: Xtensa Directives
  19087. 9.55.5.4 literal
  19088. ................
  19089. The '.literal' directive is used to define literal pool data, i.e.,
  19090. read-only 32-bit data accessed via 'L32R' instructions.
  19091. .literal LABEL, VALUE[, VALUE...]
  19092. This directive is similar to the standard '.word' directive, except
  19093. that the actual location of the literal data is determined by the
  19094. assembler and linker, not by the position of the '.literal' directive.
  19095. Using this directive gives the assembler freedom to locate the literal
  19096. data in the most appropriate place and possibly to combine identical
  19097. literals. For example, the code:
  19098. entry sp, 40
  19099. .literal .L1, sym
  19100. l32r a4, .L1
  19101. can be used to load a pointer to the symbol 'sym' into register 'a4'.
  19102. The value of 'sym' will not be placed between the 'ENTRY' and 'L32R'
  19103. instructions; instead, the assembler puts the data in a literal pool.
  19104. Literal pools are placed by default in separate literal sections;
  19105. however, when using the '--text-section-literals' option (*note
  19106. Command-line Options: Xtensa Options.), the literal pools for
  19107. PC-relative mode 'L32R' instructions are placed in the current
  19108. section.(1) These text section literal pools are created automatically
  19109. before 'ENTRY' instructions and manually after '.literal_position'
  19110. directives (*note literal_position: Literal Position Directive.). If
  19111. there are no preceding 'ENTRY' instructions, explicit
  19112. '.literal_position' directives must be used to place the text section
  19113. literal pools; otherwise, 'as' will report an error.
  19114. When literals are placed in separate sections, the literal section
  19115. names are derived from the names of the sections where the literals are
  19116. defined. The base literal section names are '.literal' for PC-relative
  19117. mode 'L32R' instructions and '.lit4' for absolute mode 'L32R'
  19118. instructions (*note absolute-literals: Absolute Literals Directive.).
  19119. These base names are used for literals defined in the default '.text'
  19120. section. For literals defined in other sections or within the scope of
  19121. a 'literal_prefix' directive (*note literal_prefix: Literal Prefix
  19122. Directive.), the following rules determine the literal section name:
  19123. 1. If the current section is a member of a section group, the literal
  19124. section name includes the group name as a suffix to the base
  19125. '.literal' or '.lit4' name, with a period to separate the base name
  19126. and group name. The literal section is also made a member of the
  19127. group.
  19128. 2. If the current section name (or 'literal_prefix' value) begins with
  19129. "'.gnu.linkonce.KIND.'", the literal section name is formed by
  19130. replacing "'.KIND'" with the base '.literal' or '.lit4' name. For
  19131. example, for literals defined in a section named
  19132. '.gnu.linkonce.t.func', the literal section will be
  19133. '.gnu.linkonce.literal.func' or '.gnu.linkonce.lit4.func'.
  19134. 3. If the current section name (or 'literal_prefix' value) ends with
  19135. '.text', the literal section name is formed by replacing that
  19136. suffix with the base '.literal' or '.lit4' name. For example, for
  19137. literals defined in a section named '.iram0.text', the literal
  19138. section will be '.iram0.literal' or '.iram0.lit4'.
  19139. 4. If none of the preceding conditions apply, the literal section name
  19140. is formed by adding the base '.literal' or '.lit4' name as a suffix
  19141. to the current section name (or 'literal_prefix' value).
  19142. ---------- Footnotes ----------
  19143. (1) Literals for the '.init' and '.fini' sections are always placed
  19144. in separate sections, even when '--text-section-literals' is enabled.
  19145. 
  19146. File: as.info, Node: Literal Position Directive, Next: Literal Prefix Directive, Prev: Literal Directive, Up: Xtensa Directives
  19147. 9.55.5.5 literal_position
  19148. .........................
  19149. When using '--text-section-literals' to place literals inline in the
  19150. section being assembled, the '.literal_position' directive can be used
  19151. to mark a potential location for a literal pool.
  19152. .literal_position
  19153. The '.literal_position' directive is ignored when the
  19154. '--text-section-literals' option is not used or when 'L32R' instructions
  19155. use the absolute addressing mode.
  19156. The assembler will automatically place text section literal pools
  19157. before 'ENTRY' instructions, so the '.literal_position' directive is
  19158. only needed to specify some other location for a literal pool. You may
  19159. need to add an explicit jump instruction to skip over an inline literal
  19160. pool.
  19161. For example, an interrupt vector does not begin with an 'ENTRY'
  19162. instruction so the assembler will be unable to automatically find a good
  19163. place to put a literal pool. Moreover, the code for the interrupt
  19164. vector must be at a specific starting address, so the literal pool
  19165. cannot come before the start of the code. The literal pool for the
  19166. vector must be explicitly positioned in the middle of the vector (before
  19167. any uses of the literals, due to the negative offsets used by
  19168. PC-relative 'L32R' instructions). The '.literal_position' directive can
  19169. be used to do this. In the following code, the literal for 'M' will
  19170. automatically be aligned correctly and is placed after the unconditional
  19171. jump.
  19172. .global M
  19173. code_start:
  19174. j continue
  19175. .literal_position
  19176. .align 4
  19177. continue:
  19178. movi a4, M
  19179. 
  19180. File: as.info, Node: Literal Prefix Directive, Next: Absolute Literals Directive, Prev: Literal Position Directive, Up: Xtensa Directives
  19181. 9.55.5.6 literal_prefix
  19182. .......................
  19183. The 'literal_prefix' directive allows you to override the default
  19184. literal section names, which are derived from the names of the sections
  19185. where the literals are defined.
  19186. .begin literal_prefix [NAME]
  19187. .end literal_prefix
  19188. For literals defined within the delimited region, the literal section
  19189. names are derived from the NAME argument instead of the name of the
  19190. current section. The rules used to derive the literal section names do
  19191. not change. *Note literal: Literal Directive. If the NAME argument is
  19192. omitted, the literal sections revert to the defaults. This directive
  19193. has no effect when using the '--text-section-literals' option (*note
  19194. Command-line Options: Xtensa Options.).
  19195. 
  19196. File: as.info, Node: Absolute Literals Directive, Prev: Literal Prefix Directive, Up: Xtensa Directives
  19197. 9.55.5.7 absolute-literals
  19198. ..........................
  19199. The 'absolute-literals' and 'no-absolute-literals' directives control
  19200. the absolute vs. PC-relative mode for 'L32R' instructions. These are
  19201. relevant only for Xtensa configurations that include the absolute
  19202. addressing option for 'L32R' instructions.
  19203. .begin [no-]absolute-literals
  19204. .end [no-]absolute-literals
  19205. These directives do not change the 'L32R' mode--they only cause the
  19206. assembler to emit the appropriate kind of relocation for 'L32R'
  19207. instructions and to place the literal values in the appropriate section.
  19208. To change the 'L32R' mode, the program must write the 'LITBASE' special
  19209. register. It is the programmer's responsibility to keep track of the
  19210. mode and indicate to the assembler which mode is used in each region of
  19211. code.
  19212. If the Xtensa configuration includes the absolute 'L32R' addressing
  19213. option, the default is to assume absolute 'L32R' addressing unless the
  19214. '--no-absolute-literals' command-line option is specified. Otherwise,
  19215. the default is to assume PC-relative 'L32R' addressing. The
  19216. 'absolute-literals' directive can then be used to override the default
  19217. determined by the command-line options.
  19218. 
  19219. File: as.info, Node: Z80-Dependent, Next: Z8000-Dependent, Prev: Xtensa-Dependent, Up: Machine Dependencies
  19220. 9.56 Z80 Dependent Features
  19221. ===========================
  19222. * Menu:
  19223. * Z80 Options:: Options
  19224. * Z80 Syntax:: Syntax
  19225. * Z80 Floating Point:: Floating Point
  19226. * Z80 Directives:: Z80 Machine Directives
  19227. * Z80 Opcodes:: Opcodes
  19228. 
  19229. File: as.info, Node: Z80 Options, Next: Z80 Syntax, Up: Z80-Dependent
  19230. 9.56.1 Command-line Options
  19231. ---------------------------
  19232. '-march=CPU[-EXT...][+EXT...]'
  19233. This option specifies the target processor. The assembler will
  19234. issue an error message if an attempt is made to assemble an
  19235. instruction which will not execute on the target processor. The
  19236. following processor names are recognized: 'z80', 'z180', 'ez80',
  19237. 'gbz80', 'z80n', 'r800'. In addition to the basic instruction set,
  19238. the assembler can be told to accept some extention mnemonics. For
  19239. example, '-march=z180+sli+infc' extends Z180 with SLI instructions
  19240. and IN F,(C). The following extentions are currently supported:
  19241. 'full' (all known instructions), 'adl' (ADL CPU mode by default,
  19242. eZ80 only), 'sli' (instruction known as SLI, SLL or SL1), 'xyhl'
  19243. (instructions with halves of index registers: IXL, IXH, IYL, IYH),
  19244. 'xdcb' (instructions like ROTOP (II+D),R and BITOP N,(II+D),R),
  19245. 'infc' (instruction IN F,(C) or IN (C)), 'outc0' (instruction OUT
  19246. (C),0). Note that rather than extending a basic instruction set,
  19247. the extention mnemonics starting with '-' revoke the respective
  19248. functionality: '-march=z80-full+xyhl' first removes all default
  19249. extentions and adds support for index registers halves only.
  19250. If this option is not specified then '-march=z80+xyhl+infc' is
  19251. assumed.
  19252. '-local-prefix=PREFIX'
  19253. Mark all labels with specified prefix as local. But such label can
  19254. be marked global explicitly in the code. This option do not change
  19255. default local label prefix '.L', it is just adds new one.
  19256. '-colonless'
  19257. Accept colonless labels. All symbols at line begin are treated as
  19258. labels.
  19259. '-sdcc'
  19260. Accept assembler code produced by SDCC.
  19261. '-fp-s=FORMAT'
  19262. Single precision floating point numbers format. Default: ieee754
  19263. (32 bit).
  19264. '-fp-d=FORMAT'
  19265. Double precision floating point numbers format. Default: ieee754
  19266. (64 bit).
  19267. Floating point numbers formats.
  19268. 'ieee754'
  19269. Single or double precision IEEE754 compatible format.
  19270. 'half'
  19271. Half precision IEEE754 compatible format (16 bits).
  19272. 'single'
  19273. Single precision IEEE754 compatible format (32 bits).
  19274. 'double'
  19275. Double precision IEEE754 compatible format (64 bits).
  19276. 'zeda32'
  19277. 32 bit floating point format from z80float library by Zeda.
  19278. 'math48'
  19279. 48 bit floating point format from Math48 package by Anders
  19280. Hejlsberg.
  19281. 
  19282. File: as.info, Node: Z80 Syntax, Next: Z80 Floating Point, Prev: Z80 Options, Up: Z80-Dependent
  19283. 9.56.2 Syntax
  19284. -------------
  19285. The assembler syntax closely follows the 'Z80 family CPU User Manual' by
  19286. Zilog. In expressions a single '=' may be used as "is equal to"
  19287. comparison operator.
  19288. Suffices can be used to indicate the radix of integer constants; 'H'
  19289. or 'h' for hexadecimal, 'D' or 'd' for decimal, 'Q', 'O', 'q' or 'o' for
  19290. octal, and 'B' for binary.
  19291. The suffix 'b' denotes a backreference to local label.
  19292. * Menu:
  19293. * Z80-Chars:: Special Characters
  19294. * Z80-Regs:: Register Names
  19295. * Z80-Case:: Case Sensitivity
  19296. * Z80-Labels:: Labels
  19297. 
  19298. File: as.info, Node: Z80-Chars, Next: Z80-Regs, Up: Z80 Syntax
  19299. 9.56.2.1 Special Characters
  19300. ...........................
  19301. The semicolon ';' is the line comment character;
  19302. If a '#' appears as the first character of a line then the whole line
  19303. is treated as a comment, but in this case the line could also be a
  19304. logical line number directive (*note Comments::) or a preprocessor
  19305. control command (*note Preprocessing::).
  19306. The Z80 assembler does not support a line separator character.
  19307. The dollar sign '$' can be used as a prefix for hexadecimal numbers
  19308. and as a symbol denoting the current location counter.
  19309. A backslash '\' is an ordinary character for the Z80 assembler.
  19310. The single quote ''' must be followed by a closing quote. If there
  19311. is one character in between, it is a character constant, otherwise it is
  19312. a string constant.
  19313. 
  19314. File: as.info, Node: Z80-Regs, Next: Z80-Case, Prev: Z80-Chars, Up: Z80 Syntax
  19315. 9.56.2.2 Register Names
  19316. .......................
  19317. The registers are referred to with the letters assigned to them by
  19318. Zilog. In addition 'as' recognizes 'ixl' and 'ixh' as the least and
  19319. most significant octet in 'ix', and similarly 'iyl' and 'iyh' as parts
  19320. of 'iy'.
  19321. 
  19322. File: as.info, Node: Z80-Case, Next: Z80-Labels, Prev: Z80-Regs, Up: Z80 Syntax
  19323. 9.56.2.3 Case Sensitivity
  19324. .........................
  19325. Upper and lower case are equivalent in register names, opcodes,
  19326. condition codes and assembler directives. The case of letters is
  19327. significant in labels and symbol names. The case is also important to
  19328. distinguish the suffix 'b' for a backward reference to a local label
  19329. from the suffix 'B' for a number in binary notation.
  19330. 
  19331. File: as.info, Node: Z80-Labels, Prev: Z80-Case, Up: Z80 Syntax
  19332. 9.56.2.4 Labels
  19333. ...............
  19334. Labels started by '.L' acts as local labels. You may specify custom
  19335. local label prefix by '-local-prefix' command-line option. Dollar,
  19336. forward and backward local labels are supported. By default, all labels
  19337. are followed by colon. Legacy code with colonless labels can be built
  19338. with '-colonless' command-line option specified. In this case all
  19339. tokens at line begin are treated as labels.
  19340. 
  19341. File: as.info, Node: Z80 Floating Point, Next: Z80 Directives, Prev: Z80 Syntax, Up: Z80-Dependent
  19342. 9.56.3 Floating Point
  19343. ---------------------
  19344. Floating-point numbers of following types are supported:
  19345. 'ieee754'
  19346. Supported half, single and double precision IEEE754 compatible
  19347. numbers.
  19348. 'zeda32'
  19349. 32 bit floating point numbers from z80float library by Zeda.
  19350. 'math48'
  19351. 48 bit floating point numbers from Math48 package by Anders
  19352. Hejlsberg.
  19353. 
  19354. File: as.info, Node: Z80 Directives, Next: Z80 Opcodes, Prev: Z80 Floating Point, Up: Z80-Dependent
  19355. 9.56.4 Z80 Assembler Directives
  19356. -------------------------------
  19357. 'as' for the Z80 supports some additional directives for compatibility
  19358. with other assemblers.
  19359. These are the additional directives in 'as' for the Z80:
  19360. '.assume ADL = EXPRESSION'
  19361. Set ADL status for eZ80. Non-zero value enable compilation in ADL
  19362. mode else used Z80 mode. ADL and Z80 mode produces incompatible
  19363. object code. Mixing both of them within one binary may lead
  19364. problems with disassembler.
  19365. 'db EXPRESSION|STRING[,EXPRESSION|STRING...]'
  19366. 'defb EXPRESSION|STRING[,EXPRESSION|STRING...]'
  19367. 'defm STRING[,STRING...]'
  19368. For each STRING the characters are copied to the object file, for
  19369. each other EXPRESSION the value is stored in one byte. A warning
  19370. is issued in case of an overflow. Backslash symbol in the strings
  19371. is generic symbol, it cannot be used as escape character. *Note
  19372. '.ascii': Ascii.
  19373. 'dw EXPRESSION[,EXPRESSION...]'
  19374. 'defw EXPRESSION[,EXPRESSION...]'
  19375. For each EXPRESSION the value is stored in two bytes, ignoring
  19376. overflow.
  19377. 'd24 EXPRESSION[,EXPRESSION...]'
  19378. 'def24 EXPRESSION[,EXPRESSION...]'
  19379. For each EXPRESSION the value is stored in three bytes, ignoring
  19380. overflow.
  19381. 'd32 EXPRESSION[,EXPRESSION...]'
  19382. 'def32 EXPRESSION[,EXPRESSION...]'
  19383. For each EXPRESSION the value is stored in four bytes, ignoring
  19384. overflow.
  19385. 'ds COUNT[, VALUE]'
  19386. 'defs COUNT[, VALUE]'
  19387. Fill COUNT bytes in the object file with VALUE, if VALUE is omitted
  19388. it defaults to zero.
  19389. 'SYMBOL defl EXPRESSION'
  19390. The 'defl' directive is like '.set' but with different syntax.
  19391. *Note '.set': Set. It set the value of SYMBOL to EXPRESSION.
  19392. Symbols defined with 'defl' are not protected from redefinition.
  19393. 'SYMBOL equ EXPRESSION'
  19394. The 'equ' directive is like '.equiv' but with different syntax.
  19395. *Note '.equiv': Equiv. It set the value of SYMBOL to EXPRESSION.
  19396. It is an error if SYMBOL is already defined. Symbols defined with
  19397. 'equ' are not protected from redefinition.
  19398. 'psect NAME'
  19399. A synonym for '.section', no second argument should be given.
  19400. *Note '.section': Section.
  19401. 'xdef SYMBOL'
  19402. A synonym for '.global', make SYMBOL is visible to linker. *Note
  19403. '.global': Global.
  19404. 'xref NAME'
  19405. A synonym for '.extern' (*note '.extern': Extern.).
  19406. 
  19407. File: as.info, Node: Z80 Opcodes, Prev: Z80 Directives, Up: Z80-Dependent
  19408. 9.56.5 Opcodes
  19409. --------------
  19410. In line with common practice, Z80 mnemonics are used for the Z80, Z80N,
  19411. Z180, eZ80, Ascii R800 and the GameBoy Z80.
  19412. In many instructions it is possible to use one of the half index
  19413. registers ('ixl','ixh','iyl','iyh') in stead of an 8-bit general purpose
  19414. register. This yields instructions that are documented on the eZ80 and
  19415. the R800, undocumented on the Z80 and unsupported on the Z180.
  19416. Similarly 'in f,(c)' is documented on the R800, undocumented on the Z80
  19417. and unsupported on the Z180 and the eZ80.
  19418. The assembler also supports the following undocumented
  19419. Z80-instructions, that have not been adopted in any other instruction
  19420. set:
  19421. 'out (c),0'
  19422. Sends zero to the port pointed to by register 'C'.
  19423. 'sli M'
  19424. Equivalent to 'M = (M<<1)+1', the operand M can be any operand that
  19425. is valid for 'sla'. One can use 'sll' as a synonym for 'sli'.
  19426. 'OP (ix+D), R'
  19427. This is equivalent to
  19428. ld R, (ix+D)
  19429. OP R
  19430. ld (ix+D), R
  19431. The operation 'OP' may be any of 'res B,', 'set B,', 'rl', 'rlc',
  19432. 'rr', 'rrc', 'sla', 'sli', 'sra' and 'srl', and the register 'R'
  19433. may be any of 'a', 'b', 'c', 'd', 'e', 'h' and 'l'.
  19434. 'OP (iy+D), R'
  19435. As above, but with 'iy' instead of 'ix'.
  19436. The web site at <http://www.z80.info> is a good starting place to
  19437. find more information on programming the Z80.
  19438. You may enable or disable any of these instructions for any target
  19439. CPU even this instruction is not supported by any real CPU of this type.
  19440. Useful for custom CPU cores.
  19441. 
  19442. File: as.info, Node: Z8000-Dependent, Prev: Z80-Dependent, Up: Machine Dependencies
  19443. 9.57 Z8000 Dependent Features
  19444. =============================
  19445. The Z8000 as supports both members of the Z8000 family: the unsegmented
  19446. Z8002, with 16 bit addresses, and the segmented Z8001 with 24 bit
  19447. addresses.
  19448. When the assembler is in unsegmented mode (specified with the
  19449. 'unsegm' directive), an address takes up one word (16 bit) sized
  19450. register. When the assembler is in segmented mode (specified with the
  19451. 'segm' directive), a 24-bit address takes up a long (32 bit) register.
  19452. *Note Assembler Directives for the Z8000: Z8000 Directives, for a list
  19453. of other Z8000 specific assembler directives.
  19454. * Menu:
  19455. * Z8000 Options:: Command-line options for the Z8000
  19456. * Z8000 Syntax:: Assembler syntax for the Z8000
  19457. * Z8000 Directives:: Special directives for the Z8000
  19458. * Z8000 Opcodes:: Opcodes
  19459. 
  19460. File: as.info, Node: Z8000 Options, Next: Z8000 Syntax, Up: Z8000-Dependent
  19461. 9.57.1 Options
  19462. --------------
  19463. '-z8001'
  19464. Generate segmented code by default.
  19465. '-z8002'
  19466. Generate unsegmented code by default.
  19467. 
  19468. File: as.info, Node: Z8000 Syntax, Next: Z8000 Directives, Prev: Z8000 Options, Up: Z8000-Dependent
  19469. 9.57.2 Syntax
  19470. -------------
  19471. * Menu:
  19472. * Z8000-Chars:: Special Characters
  19473. * Z8000-Regs:: Register Names
  19474. * Z8000-Addressing:: Addressing Modes
  19475. 
  19476. File: as.info, Node: Z8000-Chars, Next: Z8000-Regs, Up: Z8000 Syntax
  19477. 9.57.2.1 Special Characters
  19478. ...........................
  19479. '!' is the line comment character.
  19480. If a '#' appears as the first character of a line then the whole line
  19481. is treated as a comment, but in this case the line could also be a
  19482. logical line number directive (*note Comments::) or a preprocessor
  19483. control command (*note Preprocessing::).
  19484. You can use ';' instead of a newline to separate statements.
  19485. 
  19486. File: as.info, Node: Z8000-Regs, Next: Z8000-Addressing, Prev: Z8000-Chars, Up: Z8000 Syntax
  19487. 9.57.2.2 Register Names
  19488. .......................
  19489. The Z8000 has sixteen 16 bit registers, numbered 0 to 15. You can refer
  19490. to different sized groups of registers by register number, with the
  19491. prefix 'r' for 16 bit registers, 'rr' for 32 bit registers and 'rq' for
  19492. 64 bit registers. You can also refer to the contents of the first eight
  19493. (of the sixteen 16 bit registers) by bytes. They are named 'rlN' and
  19494. 'rhN'.
  19495. _byte registers_
  19496. rl0 rh0 rl1 rh1 rl2 rh2 rl3 rh3
  19497. rl4 rh4 rl5 rh5 rl6 rh6 rl7 rh7
  19498. _word registers_
  19499. r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15
  19500. _long word registers_
  19501. rr0 rr2 rr4 rr6 rr8 rr10 rr12 rr14
  19502. _quad word registers_
  19503. rq0 rq4 rq8 rq12
  19504. 
  19505. File: as.info, Node: Z8000-Addressing, Prev: Z8000-Regs, Up: Z8000 Syntax
  19506. 9.57.2.3 Addressing Modes
  19507. .........................
  19508. as understands the following addressing modes for the Z8000:
  19509. 'rlN'
  19510. 'rhN'
  19511. 'rN'
  19512. 'rrN'
  19513. 'rqN'
  19514. Register direct: 8bit, 16bit, 32bit, and 64bit registers.
  19515. '@rN'
  19516. '@rrN'
  19517. Indirect register: @rrN in segmented mode, @rN in unsegmented mode.
  19518. 'ADDR'
  19519. Direct: the 16 bit or 24 bit address (depending on whether the
  19520. assembler is in segmented or unsegmented mode) of the operand is in
  19521. the instruction.
  19522. 'address(rN)'
  19523. Indexed: the 16 or 24 bit address is added to the 16 bit register
  19524. to produce the final address in memory of the operand.
  19525. 'rN(#IMM)'
  19526. 'rrN(#IMM)'
  19527. Base Address: the 16 or 24 bit register is added to the 16 bit sign
  19528. extended immediate displacement to produce the final address in
  19529. memory of the operand.
  19530. 'rN(rM)'
  19531. 'rrN(rM)'
  19532. Base Index: the 16 or 24 bit register rN or rrN is added to the
  19533. sign extended 16 bit index register rM to produce the final address
  19534. in memory of the operand.
  19535. '#XX'
  19536. Immediate data XX.
  19537. 
  19538. File: as.info, Node: Z8000 Directives, Next: Z8000 Opcodes, Prev: Z8000 Syntax, Up: Z8000-Dependent
  19539. 9.57.3 Assembler Directives for the Z8000
  19540. -----------------------------------------
  19541. The Z8000 port of as includes additional assembler directives, for
  19542. compatibility with other Z8000 assemblers. These do not begin with '.'
  19543. (unlike the ordinary as directives).
  19544. 'segm'
  19545. '.z8001'
  19546. Generate code for the segmented Z8001.
  19547. 'unsegm'
  19548. '.z8002'
  19549. Generate code for the unsegmented Z8002.
  19550. 'name'
  19551. Synonym for '.file'
  19552. 'global'
  19553. Synonym for '.global'
  19554. 'wval'
  19555. Synonym for '.word'
  19556. 'lval'
  19557. Synonym for '.long'
  19558. 'bval'
  19559. Synonym for '.byte'
  19560. 'sval'
  19561. Assemble a string. 'sval' expects one string literal, delimited by
  19562. single quotes. It assembles each byte of the string into
  19563. consecutive addresses. You can use the escape sequence '%XX'
  19564. (where XX represents a two-digit hexadecimal number) to represent
  19565. the character whose ASCII value is XX. Use this feature to
  19566. describe single quote and other characters that may not appear in
  19567. string literals as themselves. For example, the C statement
  19568. 'char *a = "he said \"it's 50% off\"";' is represented in Z8000
  19569. assembly language (shown with the assembler output in hex at the
  19570. left) as
  19571. 68652073 sval 'he said %22it%27s 50%25 off%22%00'
  19572. 61696420
  19573. 22697427
  19574. 73203530
  19575. 25206F66
  19576. 662200
  19577. 'rsect'
  19578. synonym for '.section'
  19579. 'block'
  19580. synonym for '.space'
  19581. 'even'
  19582. special case of '.align'; aligns output to even byte boundary.
  19583. 
  19584. File: as.info, Node: Z8000 Opcodes, Prev: Z8000 Directives, Up: Z8000-Dependent
  19585. 9.57.4 Opcodes
  19586. --------------
  19587. For detailed information on the Z8000 machine instruction set, see
  19588. 'Z8000 Technical Manual'.
  19589. The following table summarizes the opcodes and their arguments:
  19590. rs 16 bit source register
  19591. rd 16 bit destination register
  19592. rbs 8 bit source register
  19593. rbd 8 bit destination register
  19594. rrs 32 bit source register
  19595. rrd 32 bit destination register
  19596. rqs 64 bit source register
  19597. rqd 64 bit destination register
  19598. addr 16/24 bit address
  19599. imm immediate data
  19600. adc rd,rs clrb addr cpsir @rd,@rs,rr,cc
  19601. adcb rbd,rbs clrb addr(rd) cpsirb @rd,@rs,rr,cc
  19602. add rd,@rs clrb rbd dab rbd
  19603. add rd,addr com @rd dbjnz rbd,disp7
  19604. add rd,addr(rs) com addr dec @rd,imm4m1
  19605. add rd,imm16 com addr(rd) dec addr(rd),imm4m1
  19606. add rd,rs com rd dec addr,imm4m1
  19607. addb rbd,@rs comb @rd dec rd,imm4m1
  19608. addb rbd,addr comb addr decb @rd,imm4m1
  19609. addb rbd,addr(rs) comb addr(rd) decb addr(rd),imm4m1
  19610. addb rbd,imm8 comb rbd decb addr,imm4m1
  19611. addb rbd,rbs comflg flags decb rbd,imm4m1
  19612. addl rrd,@rs cp @rd,imm16 di i2
  19613. addl rrd,addr cp addr(rd),imm16 div rrd,@rs
  19614. addl rrd,addr(rs) cp addr,imm16 div rrd,addr
  19615. addl rrd,imm32 cp rd,@rs div rrd,addr(rs)
  19616. addl rrd,rrs cp rd,addr div rrd,imm16
  19617. and rd,@rs cp rd,addr(rs) div rrd,rs
  19618. and rd,addr cp rd,imm16 divl rqd,@rs
  19619. and rd,addr(rs) cp rd,rs divl rqd,addr
  19620. and rd,imm16 cpb @rd,imm8 divl rqd,addr(rs)
  19621. and rd,rs cpb addr(rd),imm8 divl rqd,imm32
  19622. andb rbd,@rs cpb addr,imm8 divl rqd,rrs
  19623. andb rbd,addr cpb rbd,@rs djnz rd,disp7
  19624. andb rbd,addr(rs) cpb rbd,addr ei i2
  19625. andb rbd,imm8 cpb rbd,addr(rs) ex rd,@rs
  19626. andb rbd,rbs cpb rbd,imm8 ex rd,addr
  19627. bit @rd,imm4 cpb rbd,rbs ex rd,addr(rs)
  19628. bit addr(rd),imm4 cpd rd,@rs,rr,cc ex rd,rs
  19629. bit addr,imm4 cpdb rbd,@rs,rr,cc exb rbd,@rs
  19630. bit rd,imm4 cpdr rd,@rs,rr,cc exb rbd,addr
  19631. bit rd,rs cpdrb rbd,@rs,rr,cc exb rbd,addr(rs)
  19632. bitb @rd,imm4 cpi rd,@rs,rr,cc exb rbd,rbs
  19633. bitb addr(rd),imm4 cpib rbd,@rs,rr,cc ext0e imm8
  19634. bitb addr,imm4 cpir rd,@rs,rr,cc ext0f imm8
  19635. bitb rbd,imm4 cpirb rbd,@rs,rr,cc ext8e imm8
  19636. bitb rbd,rs cpl rrd,@rs ext8f imm8
  19637. bpt cpl rrd,addr exts rrd
  19638. call @rd cpl rrd,addr(rs) extsb rd
  19639. call addr cpl rrd,imm32 extsl rqd
  19640. call addr(rd) cpl rrd,rrs halt
  19641. calr disp12 cpsd @rd,@rs,rr,cc in rd,@rs
  19642. clr @rd cpsdb @rd,@rs,rr,cc in rd,imm16
  19643. clr addr cpsdr @rd,@rs,rr,cc inb rbd,@rs
  19644. clr addr(rd) cpsdrb @rd,@rs,rr,cc inb rbd,imm16
  19645. clr rd cpsi @rd,@rs,rr,cc inc @rd,imm4m1
  19646. clrb @rd cpsib @rd,@rs,rr,cc inc addr(rd),imm4m1
  19647. inc addr,imm4m1 ldb rbd,rs(rx) mult rrd,addr(rs)
  19648. inc rd,imm4m1 ldb rd(imm16),rbs mult rrd,imm16
  19649. incb @rd,imm4m1 ldb rd(rx),rbs mult rrd,rs
  19650. incb addr(rd),imm4m1 ldctl ctrl,rs multl rqd,@rs
  19651. incb addr,imm4m1 ldctl rd,ctrl multl rqd,addr
  19652. incb rbd,imm4m1 ldd @rs,@rd,rr multl rqd,addr(rs)
  19653. ind @rd,@rs,ra lddb @rs,@rd,rr multl rqd,imm32
  19654. indb @rd,@rs,rba lddr @rs,@rd,rr multl rqd,rrs
  19655. inib @rd,@rs,ra lddrb @rs,@rd,rr neg @rd
  19656. inibr @rd,@rs,ra ldi @rd,@rs,rr neg addr
  19657. iret ldib @rd,@rs,rr neg addr(rd)
  19658. jp cc,@rd ldir @rd,@rs,rr neg rd
  19659. jp cc,addr ldirb @rd,@rs,rr negb @rd
  19660. jp cc,addr(rd) ldk rd,imm4 negb addr
  19661. jr cc,disp8 ldl @rd,rrs negb addr(rd)
  19662. ld @rd,imm16 ldl addr(rd),rrs negb rbd
  19663. ld @rd,rs ldl addr,rrs nop
  19664. ld addr(rd),imm16 ldl rd(imm16),rrs or rd,@rs
  19665. ld addr(rd),rs ldl rd(rx),rrs or rd,addr
  19666. ld addr,imm16 ldl rrd,@rs or rd,addr(rs)
  19667. ld addr,rs ldl rrd,addr or rd,imm16
  19668. ld rd(imm16),rs ldl rrd,addr(rs) or rd,rs
  19669. ld rd(rx),rs ldl rrd,imm32 orb rbd,@rs
  19670. ld rd,@rs ldl rrd,rrs orb rbd,addr
  19671. ld rd,addr ldl rrd,rs(imm16) orb rbd,addr(rs)
  19672. ld rd,addr(rs) ldl rrd,rs(rx) orb rbd,imm8
  19673. ld rd,imm16 ldm @rd,rs,n orb rbd,rbs
  19674. ld rd,rs ldm addr(rd),rs,n out @rd,rs
  19675. ld rd,rs(imm16) ldm addr,rs,n out imm16,rs
  19676. ld rd,rs(rx) ldm rd,@rs,n outb @rd,rbs
  19677. lda rd,addr ldm rd,addr(rs),n outb imm16,rbs
  19678. lda rd,addr(rs) ldm rd,addr,n outd @rd,@rs,ra
  19679. lda rd,rs(imm16) ldps @rs outdb @rd,@rs,rba
  19680. lda rd,rs(rx) ldps addr outib @rd,@rs,ra
  19681. ldar rd,disp16 ldps addr(rs) outibr @rd,@rs,ra
  19682. ldb @rd,imm8 ldr disp16,rs pop @rd,@rs
  19683. ldb @rd,rbs ldr rd,disp16 pop addr(rd),@rs
  19684. ldb addr(rd),imm8 ldrb disp16,rbs pop addr,@rs
  19685. ldb addr(rd),rbs ldrb rbd,disp16 pop rd,@rs
  19686. ldb addr,imm8 ldrl disp16,rrs popl @rd,@rs
  19687. ldb addr,rbs ldrl rrd,disp16 popl addr(rd),@rs
  19688. ldb rbd,@rs mbit popl addr,@rs
  19689. ldb rbd,addr mreq rd popl rrd,@rs
  19690. ldb rbd,addr(rs) mres push @rd,@rs
  19691. ldb rbd,imm8 mset push @rd,addr
  19692. ldb rbd,rbs mult rrd,@rs push @rd,addr(rs)
  19693. ldb rbd,rs(imm16) mult rrd,addr push @rd,imm16
  19694. push @rd,rs set addr,imm4 subl rrd,imm32
  19695. pushl @rd,@rs set rd,imm4 subl rrd,rrs
  19696. pushl @rd,addr set rd,rs tcc cc,rd
  19697. pushl @rd,addr(rs) setb @rd,imm4 tccb cc,rbd
  19698. pushl @rd,rrs setb addr(rd),imm4 test @rd
  19699. res @rd,imm4 setb addr,imm4 test addr
  19700. res addr(rd),imm4 setb rbd,imm4 test addr(rd)
  19701. res addr,imm4 setb rbd,rs test rd
  19702. res rd,imm4 setflg imm4 testb @rd
  19703. res rd,rs sinb rbd,imm16 testb addr
  19704. resb @rd,imm4 sinb rd,imm16 testb addr(rd)
  19705. resb addr(rd),imm4 sind @rd,@rs,ra testb rbd
  19706. resb addr,imm4 sindb @rd,@rs,rba testl @rd
  19707. resb rbd,imm4 sinib @rd,@rs,ra testl addr
  19708. resb rbd,rs sinibr @rd,@rs,ra testl addr(rd)
  19709. resflg imm4 sla rd,imm8 testl rrd
  19710. ret cc slab rbd,imm8 trdb @rd,@rs,rba
  19711. rl rd,imm1or2 slal rrd,imm8 trdrb @rd,@rs,rba
  19712. rlb rbd,imm1or2 sll rd,imm8 trib @rd,@rs,rbr
  19713. rlc rd,imm1or2 sllb rbd,imm8 trirb @rd,@rs,rbr
  19714. rlcb rbd,imm1or2 slll rrd,imm8 trtdrb @ra,@rb,rbr
  19715. rldb rbb,rba sout imm16,rs trtib @ra,@rb,rr
  19716. rr rd,imm1or2 soutb imm16,rbs trtirb @ra,@rb,rbr
  19717. rrb rbd,imm1or2 soutd @rd,@rs,ra trtrb @ra,@rb,rbr
  19718. rrc rd,imm1or2 soutdb @rd,@rs,rba tset @rd
  19719. rrcb rbd,imm1or2 soutib @rd,@rs,ra tset addr
  19720. rrdb rbb,rba soutibr @rd,@rs,ra tset addr(rd)
  19721. rsvd36 sra rd,imm8 tset rd
  19722. rsvd38 srab rbd,imm8 tsetb @rd
  19723. rsvd78 sral rrd,imm8 tsetb addr
  19724. rsvd7e srl rd,imm8 tsetb addr(rd)
  19725. rsvd9d srlb rbd,imm8 tsetb rbd
  19726. rsvd9f srll rrd,imm8 xor rd,@rs
  19727. rsvdb9 sub rd,@rs xor rd,addr
  19728. rsvdbf sub rd,addr xor rd,addr(rs)
  19729. sbc rd,rs sub rd,addr(rs) xor rd,imm16
  19730. sbcb rbd,rbs sub rd,imm16 xor rd,rs
  19731. sc imm8 sub rd,rs xorb rbd,@rs
  19732. sda rd,rs subb rbd,@rs xorb rbd,addr
  19733. sdab rbd,rs subb rbd,addr xorb rbd,addr(rs)
  19734. sdal rrd,rs subb rbd,addr(rs) xorb rbd,imm8
  19735. sdl rd,rs subb rbd,imm8 xorb rbd,rbs
  19736. sdlb rbd,rs subb rbd,rbs xorb rbd,rbs
  19737. sdll rrd,rs subl rrd,@rs
  19738. set @rd,imm4 subl rrd,addr
  19739. set addr(rd),imm4 subl rrd,addr(rs)
  19740. 
  19741. File: as.info, Node: Reporting Bugs, Next: Acknowledgements, Prev: Machine Dependencies, Up: Top
  19742. 10 Reporting Bugs
  19743. *****************
  19744. Your bug reports play an essential role in making 'as' reliable.
  19745. Reporting a bug may help you by bringing a solution to your problem,
  19746. or it may not. But in any case the principal function of a bug report
  19747. is to help the entire community by making the next version of 'as' work
  19748. better. Bug reports are your contribution to the maintenance of 'as'.
  19749. In order for a bug report to serve its purpose, you must include the
  19750. information that enables us to fix the bug.
  19751. * Menu:
  19752. * Bug Criteria:: Have you found a bug?
  19753. * Bug Reporting:: How to report bugs
  19754. 
  19755. File: as.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
  19756. 10.1 Have You Found a Bug?
  19757. ==========================
  19758. If you are not sure whether you have found a bug, here are some
  19759. guidelines:
  19760. * If the assembler gets a fatal signal, for any input whatever, that
  19761. is a 'as' bug. Reliable assemblers never crash.
  19762. * If 'as' produces an error message for valid input, that is a bug.
  19763. * If 'as' does not produce an error message for invalid input, that
  19764. is a bug. However, you should note that your idea of "invalid
  19765. input" might be our idea of "an extension" or "support for
  19766. traditional practice".
  19767. * If you are an experienced user of assemblers, your suggestions for
  19768. improvement of 'as' are welcome in any case.
  19769. 
  19770. File: as.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
  19771. 10.2 How to Report Bugs
  19772. =======================
  19773. A number of companies and individuals offer support for GNU products.
  19774. If you obtained 'as' from a support organization, we recommend you
  19775. contact that organization first.
  19776. You can find contact information for many support companies and
  19777. individuals in the file 'etc/SERVICE' in the GNU Emacs distribution.
  19778. In any event, we also recommend that you send bug reports for 'as' to
  19779. <https://sourceware.org/bugzilla/>.
  19780. The fundamental principle of reporting bugs usefully is this: *report
  19781. all the facts*. If you are not sure whether to state a fact or leave it
  19782. out, state it!
  19783. Often people omit facts because they think they know what causes the
  19784. problem and assume that some details do not matter. Thus, you might
  19785. assume that the name of a symbol you use in an example does not matter.
  19786. Well, probably it does not, but one cannot be sure. Perhaps the bug is
  19787. a stray memory reference which happens to fetch from the location where
  19788. that name is stored in memory; perhaps, if the name were different, the
  19789. contents of that location would fool the assembler into doing the right
  19790. thing despite the bug. Play it safe and give a specific, complete
  19791. example. That is the easiest thing for you to do, and the most helpful.
  19792. Keep in mind that the purpose of a bug report is to enable us to fix
  19793. the bug if it is new to us. Therefore, always write your bug reports on
  19794. the assumption that the bug has not been reported previously.
  19795. Sometimes people give a few sketchy facts and ask, "Does this ring a
  19796. bell?" This cannot help us fix a bug, so it is basically useless. We
  19797. respond by asking for enough details to enable us to investigate. You
  19798. might as well expedite matters by sending them to begin with.
  19799. To enable us to fix the bug, you should include all these things:
  19800. * The version of 'as'. 'as' announces it if you start it with the
  19801. '--version' argument.
  19802. Without this, we will not know whether there is any point in
  19803. looking for the bug in the current version of 'as'.
  19804. * Any patches you may have applied to the 'as' source.
  19805. * The type of machine you are using, and the operating system name
  19806. and version number.
  19807. * What compiler (and its version) was used to compile 'as'--e.g.
  19808. "'gcc-2.7'".
  19809. * The command arguments you gave the assembler to assemble your
  19810. example and observe the bug. To guarantee you will not omit
  19811. something important, list them all. A copy of the Makefile (or the
  19812. output from make) is sufficient.
  19813. If we were to try to guess the arguments, we would probably guess
  19814. wrong and then we might not encounter the bug.
  19815. * A complete input file that will reproduce the bug. If the bug is
  19816. observed when the assembler is invoked via a compiler, send the
  19817. assembler source, not the high level language source. Most
  19818. compilers will produce the assembler source when run with the '-S'
  19819. option. If you are using 'gcc', use the options '-v --save-temps';
  19820. this will save the assembler source in a file with an extension of
  19821. '.s', and also show you exactly how 'as' is being run.
  19822. * A description of what behavior you observe that you believe is
  19823. incorrect. For example, "It gets a fatal signal."
  19824. Of course, if the bug is that 'as' gets a fatal signal, then we
  19825. will certainly notice it. But if the bug is incorrect output, we
  19826. might not notice unless it is glaringly wrong. You might as well
  19827. not give us a chance to make a mistake.
  19828. Even if the problem you experience is a fatal signal, you should
  19829. still say so explicitly. Suppose something strange is going on,
  19830. such as, your copy of 'as' is out of sync, or you have encountered
  19831. a bug in the C library on your system. (This has happened!) Your
  19832. copy might crash and ours would not. If you told us to expect a
  19833. crash, then when ours fails to crash, we would know that the bug
  19834. was not happening for us. If you had not told us to expect a
  19835. crash, then we would not be able to draw any conclusion from our
  19836. observations.
  19837. * If you wish to suggest changes to the 'as' source, send us context
  19838. diffs, as generated by 'diff' with the '-u', '-c', or '-p' option.
  19839. Always send diffs from the old file to the new file. If you even
  19840. discuss something in the 'as' source, refer to it by context, not
  19841. by line number.
  19842. The line numbers in our development sources will not match those in
  19843. your sources. Your line numbers would convey no useful information
  19844. to us.
  19845. Here are some things that are not necessary:
  19846. * A description of the envelope of the bug.
  19847. Often people who encounter a bug spend a lot of time investigating
  19848. which changes to the input file will make the bug go away and which
  19849. changes will not affect it.
  19850. This is often time consuming and not very useful, because the way
  19851. we will find the bug is by running a single example under the
  19852. debugger with breakpoints, not by pure deduction from a series of
  19853. examples. We recommend that you save your time for something else.
  19854. Of course, if you can find a simpler example to report _instead_ of
  19855. the original one, that is a convenience for us. Errors in the
  19856. output will be easier to spot, running under the debugger will take
  19857. less time, and so on.
  19858. However, simplification is not vital; if you do not want to do
  19859. this, report the bug anyway and send us the entire test case you
  19860. used.
  19861. * A patch for the bug.
  19862. A patch for the bug does help us if it is a good one. But do not
  19863. omit the necessary information, such as the test case, on the
  19864. assumption that a patch is all we need. We might see problems with
  19865. your patch and decide to fix the problem another way, or we might
  19866. not understand it at all.
  19867. Sometimes with a program as complicated as 'as' it is very hard to
  19868. construct an example that will make the program follow a certain
  19869. path through the code. If you do not send us the example, we will
  19870. not be able to construct one, so we will not be able to verify that
  19871. the bug is fixed.
  19872. And if we cannot understand what bug you are trying to fix, or why
  19873. your patch should be an improvement, we will not install it. A
  19874. test case will help us to understand.
  19875. * A guess about what the bug is or what it depends on.
  19876. Such guesses are usually wrong. Even we cannot guess right about
  19877. such things without first using the debugger to find the facts.
  19878. 
  19879. File: as.info, Node: Acknowledgements, Next: GNU Free Documentation License, Prev: Reporting Bugs, Up: Top
  19880. 11 Acknowledgements
  19881. *******************
  19882. If you have contributed to GAS and your name isn't listed here, it is
  19883. not meant as a slight. We just don't know about it. Send mail to the
  19884. maintainer, and we'll correct the situation. Currently the maintainer
  19885. is Nick Clifton (email address 'nickc@redhat.com').
  19886. Dean Elsner wrote the original GNU assembler for the VAX.(1)
  19887. Jay Fenlason maintained GAS for a while, adding support for
  19888. GDB-specific debug information and the 68k series machines, most of the
  19889. preprocessing pass, and extensive changes in 'messages.c',
  19890. 'input-file.c', 'write.c'.
  19891. K. Richard Pixley maintained GAS for a while, adding various
  19892. enhancements and many bug fixes, including merging support for several
  19893. processors, breaking GAS up to handle multiple object file format back
  19894. ends (including heavy rewrite, testing, an integration of the coff and
  19895. b.out back ends), adding configuration including heavy testing and
  19896. verification of cross assemblers and file splits and renaming, converted
  19897. GAS to strictly ANSI C including full prototypes, added support for
  19898. m680[34]0 and cpu32, did considerable work on i960 including a COFF port
  19899. (including considerable amounts of reverse engineering), a SPARC opcode
  19900. file rewrite, DECstation, rs6000, and hp300hpux host ports, updated
  19901. "know" assertions and made them work, much other reorganization,
  19902. cleanup, and lint.
  19903. Ken Raeburn wrote the high-level BFD interface code to replace most
  19904. of the code in format-specific I/O modules.
  19905. The original VMS support was contributed by David L. Kashtan. Eric
  19906. Youngdale has done much work with it since.
  19907. The Intel 80386 machine description was written by Eliot Dresselhaus.
  19908. Minh Tran-Le at IntelliCorp contributed some AIX 386 support.
  19909. The Motorola 88k machine description was contributed by Devon Bowen
  19910. of Buffalo University and Torbjorn Granlund of the Swedish Institute of
  19911. Computer Science.
  19912. Keith Knowles at the Open Software Foundation wrote the original MIPS
  19913. back end ('tc-mips.c', 'tc-mips.h'), and contributed Rose format support
  19914. (which hasn't been merged in yet). Ralph Campbell worked with the MIPS
  19915. code to support a.out format.
  19916. Support for the Zilog Z8k and Renesas H8/300 processors (tc-z8k,
  19917. tc-h8300), and IEEE 695 object file format (obj-ieee), was written by
  19918. Steve Chamberlain of Cygnus Support. Steve also modified the COFF back
  19919. end to use BFD for some low-level operations, for use with the H8/300
  19920. and AMD 29k targets.
  19921. John Gilmore built the AMD 29000 support, added '.include' support,
  19922. and simplified the configuration of which versions accept which
  19923. directives. He updated the 68k machine description so that Motorola's
  19924. opcodes always produced fixed-size instructions (e.g., 'jsr'), while
  19925. synthetic instructions remained shrinkable ('jbsr'). John fixed many
  19926. bugs, including true tested cross-compilation support, and one bug in
  19927. relaxation that took a week and required the proverbial one-bit fix.
  19928. Ian Lance Taylor of Cygnus Support merged the Motorola and MIT syntax
  19929. for the 68k, completed support for some COFF targets (68k, i386 SVR3,
  19930. and SCO Unix), added support for MIPS ECOFF and ELF targets, wrote the
  19931. initial RS/6000 and PowerPC assembler, and made a few other minor
  19932. patches.
  19933. Steve Chamberlain made GAS able to generate listings.
  19934. Hewlett-Packard contributed support for the HP9000/300.
  19935. Jeff Law wrote GAS and BFD support for the native HPPA object format
  19936. (SOM) along with a fairly extensive HPPA testsuite (for both SOM and ELF
  19937. object formats). This work was supported by both the Center for
  19938. Software Science at the University of Utah and Cygnus Support.
  19939. Support for ELF format files has been worked on by Mark Eichin of
  19940. Cygnus Support (original, incomplete implementation for SPARC), Pete
  19941. Hoogenboom and Jeff Law at the University of Utah (HPPA mainly), Michael
  19942. Meissner of the Open Software Foundation (i386 mainly), and Ken Raeburn
  19943. of Cygnus Support (sparc, and some initial 64-bit support).
  19944. Linas Vepstas added GAS support for the ESA/390 "IBM 370"
  19945. architecture.
  19946. Richard Henderson rewrote the Alpha assembler. Klaus Kaempf wrote
  19947. GAS and BFD support for openVMS/Alpha.
  19948. Timothy Wall, Michael Hayes, and Greg Smart contributed to the
  19949. various tic* flavors.
  19950. David Heine, Sterling Augustine, Bob Wilson and John Ruttenberg from
  19951. Tensilica, Inc. added support for Xtensa processors.
  19952. Several engineers at Cygnus Support have also provided many small bug
  19953. fixes and configuration enhancements.
  19954. Jon Beniston added support for the Lattice Mico32 architecture.
  19955. Many others have contributed large or small bugfixes and
  19956. enhancements. If you have contributed significant work and are not
  19957. mentioned on this list, and want to be, let us know. Some of the
  19958. history has been lost; we are not intentionally leaving anyone out.
  19959. ---------- Footnotes ----------
  19960. (1) Any more details?
  19961. 
  19962. File: as.info, Node: GNU Free Documentation License, Next: AS Index, Prev: Acknowledgements, Up: Top
  19963. Appendix A GNU Free Documentation License
  19964. *****************************************
  19965. Version 1.3, 3 November 2008
  19966. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  19967. <http://fsf.org/>
  19968. Everyone is permitted to copy and distribute verbatim copies
  19969. of this license document, but changing it is not allowed.
  19970. 0. PREAMBLE
  19971. The purpose of this License is to make a manual, textbook, or other
  19972. functional and useful document "free" in the sense of freedom: to
  19973. assure everyone the effective freedom to copy and redistribute it,
  19974. with or without modifying it, either commercially or
  19975. noncommercially. Secondarily, this License preserves for the
  19976. author and publisher a way to get credit for their work, while not
  19977. being considered responsible for modifications made by others.
  19978. This License is a kind of "copyleft", which means that derivative
  19979. works of the document must themselves be free in the same sense.
  19980. It complements the GNU General Public License, which is a copyleft
  19981. license designed for free software.
  19982. We have designed this License in order to use it for manuals for
  19983. free software, because free software needs free documentation: a
  19984. free program should come with manuals providing the same freedoms
  19985. that the software does. But this License is not limited to
  19986. software manuals; it can be used for any textual work, regardless
  19987. of subject matter or whether it is published as a printed book. We
  19988. recommend this License principally for works whose purpose is
  19989. instruction or reference.
  19990. 1. APPLICABILITY AND DEFINITIONS
  19991. This License applies to any manual or other work, in any medium,
  19992. that contains a notice placed by the copyright holder saying it can
  19993. be distributed under the terms of this License. Such a notice
  19994. grants a world-wide, royalty-free license, unlimited in duration,
  19995. to use that work under the conditions stated herein. The
  19996. "Document", below, refers to any such manual or work. Any member
  19997. of the public is a licensee, and is addressed as "you". You accept
  19998. the license if you copy, modify or distribute the work in a way
  19999. requiring permission under copyright law.
  20000. A "Modified Version" of the Document means any work containing the
  20001. Document or a portion of it, either copied verbatim, or with
  20002. modifications and/or translated into another language.
  20003. A "Secondary Section" is a named appendix or a front-matter section
  20004. of the Document that deals exclusively with the relationship of the
  20005. publishers or authors of the Document to the Document's overall
  20006. subject (or to related matters) and contains nothing that could
  20007. fall directly within that overall subject. (Thus, if the Document
  20008. is in part a textbook of mathematics, a Secondary Section may not
  20009. explain any mathematics.) The relationship could be a matter of
  20010. historical connection with the subject or with related matters, or
  20011. of legal, commercial, philosophical, ethical or political position
  20012. regarding them.
  20013. The "Invariant Sections" are certain Secondary Sections whose
  20014. titles are designated, as being those of Invariant Sections, in the
  20015. notice that says that the Document is released under this License.
  20016. If a section does not fit the above definition of Secondary then it
  20017. is not allowed to be designated as Invariant. The Document may
  20018. contain zero Invariant Sections. If the Document does not identify
  20019. any Invariant Sections then there are none.
  20020. The "Cover Texts" are certain short passages of text that are
  20021. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  20022. that says that the Document is released under this License. A
  20023. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  20024. be at most 25 words.
  20025. A "Transparent" copy of the Document means a machine-readable copy,
  20026. represented in a format whose specification is available to the
  20027. general public, that is suitable for revising the document
  20028. straightforwardly with generic text editors or (for images composed
  20029. of pixels) generic paint programs or (for drawings) some widely
  20030. available drawing editor, and that is suitable for input to text
  20031. formatters or for automatic translation to a variety of formats
  20032. suitable for input to text formatters. A copy made in an otherwise
  20033. Transparent file format whose markup, or absence of markup, has
  20034. been arranged to thwart or discourage subsequent modification by
  20035. readers is not Transparent. An image format is not Transparent if
  20036. used for any substantial amount of text. A copy that is not
  20037. "Transparent" is called "Opaque".
  20038. Examples of suitable formats for Transparent copies include plain
  20039. ASCII without markup, Texinfo input format, LaTeX input format,
  20040. SGML or XML using a publicly available DTD, and standard-conforming
  20041. simple HTML, PostScript or PDF designed for human modification.
  20042. Examples of transparent image formats include PNG, XCF and JPG.
  20043. Opaque formats include proprietary formats that can be read and
  20044. edited only by proprietary word processors, SGML or XML for which
  20045. the DTD and/or processing tools are not generally available, and
  20046. the machine-generated HTML, PostScript or PDF produced by some word
  20047. processors for output purposes only.
  20048. The "Title Page" means, for a printed book, the title page itself,
  20049. plus such following pages as are needed to hold, legibly, the
  20050. material this License requires to appear in the title page. For
  20051. works in formats which do not have any title page as such, "Title
  20052. Page" means the text near the most prominent appearance of the
  20053. work's title, preceding the beginning of the body of the text.
  20054. The "publisher" means any person or entity that distributes copies
  20055. of the Document to the public.
  20056. A section "Entitled XYZ" means a named subunit of the Document
  20057. whose title either is precisely XYZ or contains XYZ in parentheses
  20058. following text that translates XYZ in another language. (Here XYZ
  20059. stands for a specific section name mentioned below, such as
  20060. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  20061. To "Preserve the Title" of such a section when you modify the
  20062. Document means that it remains a section "Entitled XYZ" according
  20063. to this definition.
  20064. The Document may include Warranty Disclaimers next to the notice
  20065. which states that this License applies to the Document. These
  20066. Warranty Disclaimers are considered to be included by reference in
  20067. this License, but only as regards disclaiming warranties: any other
  20068. implication that these Warranty Disclaimers may have is void and
  20069. has no effect on the meaning of this License.
  20070. 2. VERBATIM COPYING
  20071. You may copy and distribute the Document in any medium, either
  20072. commercially or noncommercially, provided that this License, the
  20073. copyright notices, and the license notice saying this License
  20074. applies to the Document are reproduced in all copies, and that you
  20075. add no other conditions whatsoever to those of this License. You
  20076. may not use technical measures to obstruct or control the reading
  20077. or further copying of the copies you make or distribute. However,
  20078. you may accept compensation in exchange for copies. If you
  20079. distribute a large enough number of copies you must also follow the
  20080. conditions in section 3.
  20081. You may also lend copies, under the same conditions stated above,
  20082. and you may publicly display copies.
  20083. 3. COPYING IN QUANTITY
  20084. If you publish printed copies (or copies in media that commonly
  20085. have printed covers) of the Document, numbering more than 100, and
  20086. the Document's license notice requires Cover Texts, you must
  20087. enclose the copies in covers that carry, clearly and legibly, all
  20088. these Cover Texts: Front-Cover Texts on the front cover, and
  20089. Back-Cover Texts on the back cover. Both covers must also clearly
  20090. and legibly identify you as the publisher of these copies. The
  20091. front cover must present the full title with all words of the title
  20092. equally prominent and visible. You may add other material on the
  20093. covers in addition. Copying with changes limited to the covers, as
  20094. long as they preserve the title of the Document and satisfy these
  20095. conditions, can be treated as verbatim copying in other respects.
  20096. If the required texts for either cover are too voluminous to fit
  20097. legibly, you should put the first ones listed (as many as fit
  20098. reasonably) on the actual cover, and continue the rest onto
  20099. adjacent pages.
  20100. If you publish or distribute Opaque copies of the Document
  20101. numbering more than 100, you must either include a machine-readable
  20102. Transparent copy along with each Opaque copy, or state in or with
  20103. each Opaque copy a computer-network location from which the general
  20104. network-using public has access to download using public-standard
  20105. network protocols a complete Transparent copy of the Document, free
  20106. of added material. If you use the latter option, you must take
  20107. reasonably prudent steps, when you begin distribution of Opaque
  20108. copies in quantity, to ensure that this Transparent copy will
  20109. remain thus accessible at the stated location until at least one
  20110. year after the last time you distribute an Opaque copy (directly or
  20111. through your agents or retailers) of that edition to the public.
  20112. It is requested, but not required, that you contact the authors of
  20113. the Document well before redistributing any large number of copies,
  20114. to give them a chance to provide you with an updated version of the
  20115. Document.
  20116. 4. MODIFICATIONS
  20117. You may copy and distribute a Modified Version of the Document
  20118. under the conditions of sections 2 and 3 above, provided that you
  20119. release the Modified Version under precisely this License, with the
  20120. Modified Version filling the role of the Document, thus licensing
  20121. distribution and modification of the Modified Version to whoever
  20122. possesses a copy of it. In addition, you must do these things in
  20123. the Modified Version:
  20124. A. Use in the Title Page (and on the covers, if any) a title
  20125. distinct from that of the Document, and from those of previous
  20126. versions (which should, if there were any, be listed in the
  20127. History section of the Document). You may use the same title
  20128. as a previous version if the original publisher of that
  20129. version gives permission.
  20130. B. List on the Title Page, as authors, one or more persons or
  20131. entities responsible for authorship of the modifications in
  20132. the Modified Version, together with at least five of the
  20133. principal authors of the Document (all of its principal
  20134. authors, if it has fewer than five), unless they release you
  20135. from this requirement.
  20136. C. State on the Title page the name of the publisher of the
  20137. Modified Version, as the publisher.
  20138. D. Preserve all the copyright notices of the Document.
  20139. E. Add an appropriate copyright notice for your modifications
  20140. adjacent to the other copyright notices.
  20141. F. Include, immediately after the copyright notices, a license
  20142. notice giving the public permission to use the Modified
  20143. Version under the terms of this License, in the form shown in
  20144. the Addendum below.
  20145. G. Preserve in that license notice the full lists of Invariant
  20146. Sections and required Cover Texts given in the Document's
  20147. license notice.
  20148. H. Include an unaltered copy of this License.
  20149. I. Preserve the section Entitled "History", Preserve its Title,
  20150. and add to it an item stating at least the title, year, new
  20151. authors, and publisher of the Modified Version as given on the
  20152. Title Page. If there is no section Entitled "History" in the
  20153. Document, create one stating the title, year, authors, and
  20154. publisher of the Document as given on its Title Page, then add
  20155. an item describing the Modified Version as stated in the
  20156. previous sentence.
  20157. J. Preserve the network location, if any, given in the Document
  20158. for public access to a Transparent copy of the Document, and
  20159. likewise the network locations given in the Document for
  20160. previous versions it was based on. These may be placed in the
  20161. "History" section. You may omit a network location for a work
  20162. that was published at least four years before the Document
  20163. itself, or if the original publisher of the version it refers
  20164. to gives permission.
  20165. K. For any section Entitled "Acknowledgements" or "Dedications",
  20166. Preserve the Title of the section, and preserve in the section
  20167. all the substance and tone of each of the contributor
  20168. acknowledgements and/or dedications given therein.
  20169. L. Preserve all the Invariant Sections of the Document, unaltered
  20170. in their text and in their titles. Section numbers or the
  20171. equivalent are not considered part of the section titles.
  20172. M. Delete any section Entitled "Endorsements". Such a section
  20173. may not be included in the Modified Version.
  20174. N. Do not retitle any existing section to be Entitled
  20175. "Endorsements" or to conflict in title with any Invariant
  20176. Section.
  20177. O. Preserve any Warranty Disclaimers.
  20178. If the Modified Version includes new front-matter sections or
  20179. appendices that qualify as Secondary Sections and contain no
  20180. material copied from the Document, you may at your option designate
  20181. some or all of these sections as invariant. To do this, add their
  20182. titles to the list of Invariant Sections in the Modified Version's
  20183. license notice. These titles must be distinct from any other
  20184. section titles.
  20185. You may add a section Entitled "Endorsements", provided it contains
  20186. nothing but endorsements of your Modified Version by various
  20187. parties--for example, statements of peer review or that the text
  20188. has been approved by an organization as the authoritative
  20189. definition of a standard.
  20190. You may add a passage of up to five words as a Front-Cover Text,
  20191. and a passage of up to 25 words as a Back-Cover Text, to the end of
  20192. the list of Cover Texts in the Modified Version. Only one passage
  20193. of Front-Cover Text and one of Back-Cover Text may be added by (or
  20194. through arrangements made by) any one entity. If the Document
  20195. already includes a cover text for the same cover, previously added
  20196. by you or by arrangement made by the same entity you are acting on
  20197. behalf of, you may not add another; but you may replace the old
  20198. one, on explicit permission from the previous publisher that added
  20199. the old one.
  20200. The author(s) and publisher(s) of the Document do not by this
  20201. License give permission to use their names for publicity for or to
  20202. assert or imply endorsement of any Modified Version.
  20203. 5. COMBINING DOCUMENTS
  20204. You may combine the Document with other documents released under
  20205. this License, under the terms defined in section 4 above for
  20206. modified versions, provided that you include in the combination all
  20207. of the Invariant Sections of all of the original documents,
  20208. unmodified, and list them all as Invariant Sections of your
  20209. combined work in its license notice, and that you preserve all
  20210. their Warranty Disclaimers.
  20211. The combined work need only contain one copy of this License, and
  20212. multiple identical Invariant Sections may be replaced with a single
  20213. copy. If there are multiple Invariant Sections with the same name
  20214. but different contents, make the title of each such section unique
  20215. by adding at the end of it, in parentheses, the name of the
  20216. original author or publisher of that section if known, or else a
  20217. unique number. Make the same adjustment to the section titles in
  20218. the list of Invariant Sections in the license notice of the
  20219. combined work.
  20220. In the combination, you must combine any sections Entitled
  20221. "History" in the various original documents, forming one section
  20222. Entitled "History"; likewise combine any sections Entitled
  20223. "Acknowledgements", and any sections Entitled "Dedications". You
  20224. must delete all sections Entitled "Endorsements."
  20225. 6. COLLECTIONS OF DOCUMENTS
  20226. You may make a collection consisting of the Document and other
  20227. documents released under this License, and replace the individual
  20228. copies of this License in the various documents with a single copy
  20229. that is included in the collection, provided that you follow the
  20230. rules of this License for verbatim copying of each of the documents
  20231. in all other respects.
  20232. You may extract a single document from such a collection, and
  20233. distribute it individually under this License, provided you insert
  20234. a copy of this License into the extracted document, and follow this
  20235. License in all other respects regarding verbatim copying of that
  20236. document.
  20237. 7. AGGREGATION WITH INDEPENDENT WORKS
  20238. A compilation of the Document or its derivatives with other
  20239. separate and independent documents or works, in or on a volume of a
  20240. storage or distribution medium, is called an "aggregate" if the
  20241. copyright resulting from the compilation is not used to limit the
  20242. legal rights of the compilation's users beyond what the individual
  20243. works permit. When the Document is included in an aggregate, this
  20244. License does not apply to the other works in the aggregate which
  20245. are not themselves derivative works of the Document.
  20246. If the Cover Text requirement of section 3 is applicable to these
  20247. copies of the Document, then if the Document is less than one half
  20248. of the entire aggregate, the Document's Cover Texts may be placed
  20249. on covers that bracket the Document within the aggregate, or the
  20250. electronic equivalent of covers if the Document is in electronic
  20251. form. Otherwise they must appear on printed covers that bracket
  20252. the whole aggregate.
  20253. 8. TRANSLATION
  20254. Translation is considered a kind of modification, so you may
  20255. distribute translations of the Document under the terms of section
  20256. 4. Replacing Invariant Sections with translations requires special
  20257. permission from their copyright holders, but you may include
  20258. translations of some or all Invariant Sections in addition to the
  20259. original versions of these Invariant Sections. You may include a
  20260. translation of this License, and all the license notices in the
  20261. Document, and any Warranty Disclaimers, provided that you also
  20262. include the original English version of this License and the
  20263. original versions of those notices and disclaimers. In case of a
  20264. disagreement between the translation and the original version of
  20265. this License or a notice or disclaimer, the original version will
  20266. prevail.
  20267. If a section in the Document is Entitled "Acknowledgements",
  20268. "Dedications", or "History", the requirement (section 4) to
  20269. Preserve its Title (section 1) will typically require changing the
  20270. actual title.
  20271. 9. TERMINATION
  20272. You may not copy, modify, sublicense, or distribute the Document
  20273. except as expressly provided under this License. Any attempt
  20274. otherwise to copy, modify, sublicense, or distribute it is void,
  20275. and will automatically terminate your rights under this License.
  20276. However, if you cease all violation of this License, then your
  20277. license from a particular copyright holder is reinstated (a)
  20278. provisionally, unless and until the copyright holder explicitly and
  20279. finally terminates your license, and (b) permanently, if the
  20280. copyright holder fails to notify you of the violation by some
  20281. reasonable means prior to 60 days after the cessation.
  20282. Moreover, your license from a particular copyright holder is
  20283. reinstated permanently if the copyright holder notifies you of the
  20284. violation by some reasonable means, this is the first time you have
  20285. received notice of violation of this License (for any work) from
  20286. that copyright holder, and you cure the violation prior to 30 days
  20287. after your receipt of the notice.
  20288. Termination of your rights under this section does not terminate
  20289. the licenses of parties who have received copies or rights from you
  20290. under this License. If your rights have been terminated and not
  20291. permanently reinstated, receipt of a copy of some or all of the
  20292. same material does not give you any rights to use it.
  20293. 10. FUTURE REVISIONS OF THIS LICENSE
  20294. The Free Software Foundation may publish new, revised versions of
  20295. the GNU Free Documentation License from time to time. Such new
  20296. versions will be similar in spirit to the present version, but may
  20297. differ in detail to address new problems or concerns. See
  20298. <http://www.gnu.org/copyleft/>.
  20299. Each version of the License is given a distinguishing version
  20300. number. If the Document specifies that a particular numbered
  20301. version of this License "or any later version" applies to it, you
  20302. have the option of following the terms and conditions either of
  20303. that specified version or of any later version that has been
  20304. published (not as a draft) by the Free Software Foundation. If the
  20305. Document does not specify a version number of this License, you may
  20306. choose any version ever published (not as a draft) by the Free
  20307. Software Foundation. If the Document specifies that a proxy can
  20308. decide which future versions of this License can be used, that
  20309. proxy's public statement of acceptance of a version permanently
  20310. authorizes you to choose that version for the Document.
  20311. 11. RELICENSING
  20312. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  20313. World Wide Web server that publishes copyrightable works and also
  20314. provides prominent facilities for anybody to edit those works. A
  20315. public wiki that anybody can edit is an example of such a server.
  20316. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  20317. site means any set of copyrightable works thus published on the MMC
  20318. site.
  20319. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  20320. license published by Creative Commons Corporation, a not-for-profit
  20321. corporation with a principal place of business in San Francisco,
  20322. California, as well as future copyleft versions of that license
  20323. published by that same organization.
  20324. "Incorporate" means to publish or republish a Document, in whole or
  20325. in part, as part of another Document.
  20326. An MMC is "eligible for relicensing" if it is licensed under this
  20327. License, and if all works that were first published under this
  20328. License somewhere other than this MMC, and subsequently
  20329. incorporated in whole or in part into the MMC, (1) had no cover
  20330. texts or invariant sections, and (2) were thus incorporated prior
  20331. to November 1, 2008.
  20332. The operator of an MMC Site may republish an MMC contained in the
  20333. site under CC-BY-SA on the same site at any time before August 1,
  20334. 2009, provided the MMC is eligible for relicensing.
  20335. ADDENDUM: How to use this License for your documents
  20336. ====================================================
  20337. To use this License in a document you have written, include a copy of
  20338. the License in the document and put the following copyright and license
  20339. notices just after the title page:
  20340. Copyright (C) YEAR YOUR NAME.
  20341. Permission is granted to copy, distribute and/or modify this document
  20342. under the terms of the GNU Free Documentation License, Version 1.3
  20343. or any later version published by the Free Software Foundation;
  20344. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  20345. Texts. A copy of the license is included in the section entitled ``GNU
  20346. Free Documentation License''.
  20347. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  20348. Texts, replace the "with...Texts." line with this:
  20349. with the Invariant Sections being LIST THEIR TITLES, with
  20350. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  20351. being LIST.
  20352. If you have Invariant Sections without Cover Texts, or some other
  20353. combination of the three, merge those two alternatives to suit the
  20354. situation.
  20355. If your document contains nontrivial examples of program code, we
  20356. recommend releasing these examples in parallel under your choice of free
  20357. software license, such as the GNU General Public License, to permit
  20358. their use in free software.
  20359. 
  20360. File: as.info, Node: AS Index, Prev: GNU Free Documentation License, Up: Top
  20361. AS Index
  20362. ********
  20363. �[index�]
  20364. * Menu:
  20365. * \" (doublequote character): Strings. (line 43)
  20366. * \b (backspace character): Strings. (line 15)
  20367. * \DDD (octal character code): Strings. (line 30)
  20368. * \f (formfeed character): Strings. (line 18)
  20369. * \n (newline character): Strings. (line 21)
  20370. * \r (carriage return character): Strings. (line 24)
  20371. * \t (tab): Strings. (line 27)
  20372. * \XD... (hex character code): Strings. (line 36)
  20373. * \\ (\ character): Strings. (line 40)
  20374. * #: Comments. (line 33)
  20375. * #APP: Preprocessing. (line 28)
  20376. * #NO_APP: Preprocessing. (line 28)
  20377. * $ in symbol names: D10V-Chars. (line 46)
  20378. * $ in symbol names <1>: D30V-Chars. (line 70)
  20379. * $ in symbol names <2>: Meta-Chars. (line 10)
  20380. * $ in symbol names <3>: SH-Chars. (line 15)
  20381. * $a: ARM Mapping Symbols.
  20382. (line 9)
  20383. * $acos math builtin, TIC54X: TIC54X-Builtins. (line 10)
  20384. * $asin math builtin, TIC54X: TIC54X-Builtins. (line 13)
  20385. * $atan math builtin, TIC54X: TIC54X-Builtins. (line 16)
  20386. * $atan2 math builtin, TIC54X: TIC54X-Builtins. (line 19)
  20387. * $ceil math builtin, TIC54X: TIC54X-Builtins. (line 22)
  20388. * $cos math builtin, TIC54X: TIC54X-Builtins. (line 28)
  20389. * $cosh math builtin, TIC54X: TIC54X-Builtins. (line 25)
  20390. * $cvf math builtin, TIC54X: TIC54X-Builtins. (line 31)
  20391. * $cvi math builtin, TIC54X: TIC54X-Builtins. (line 34)
  20392. * $d: AArch64 Mapping Symbols.
  20393. (line 12)
  20394. * $d <1>: ARM Mapping Symbols.
  20395. (line 15)
  20396. * $exp math builtin, TIC54X: TIC54X-Builtins. (line 37)
  20397. * $fabs math builtin, TIC54X: TIC54X-Builtins. (line 40)
  20398. * $firstch subsym builtin, TIC54X: TIC54X-Macros. (line 26)
  20399. * $floor math builtin, TIC54X: TIC54X-Builtins. (line 43)
  20400. * $fmod math builtin, TIC54X: TIC54X-Builtins. (line 47)
  20401. * $int math builtin, TIC54X: TIC54X-Builtins. (line 50)
  20402. * $iscons subsym builtin, TIC54X: TIC54X-Macros. (line 43)
  20403. * $isdefed subsym builtin, TIC54X: TIC54X-Macros. (line 34)
  20404. * $ismember subsym builtin, TIC54X: TIC54X-Macros. (line 38)
  20405. * $isname subsym builtin, TIC54X: TIC54X-Macros. (line 47)
  20406. * $isreg subsym builtin, TIC54X: TIC54X-Macros. (line 50)
  20407. * $lastch subsym builtin, TIC54X: TIC54X-Macros. (line 30)
  20408. * $ldexp math builtin, TIC54X: TIC54X-Builtins. (line 53)
  20409. * $log math builtin, TIC54X: TIC54X-Builtins. (line 59)
  20410. * $log10 math builtin, TIC54X: TIC54X-Builtins. (line 56)
  20411. * $max math builtin, TIC54X: TIC54X-Builtins. (line 62)
  20412. * $min math builtin, TIC54X: TIC54X-Builtins. (line 65)
  20413. * $pow math builtin, TIC54X: TIC54X-Builtins. (line 68)
  20414. * $round math builtin, TIC54X: TIC54X-Builtins. (line 71)
  20415. * $sgn math builtin, TIC54X: TIC54X-Builtins. (line 74)
  20416. * $sin math builtin, TIC54X: TIC54X-Builtins. (line 77)
  20417. * $sinh math builtin, TIC54X: TIC54X-Builtins. (line 80)
  20418. * $sqrt math builtin, TIC54X: TIC54X-Builtins. (line 83)
  20419. * $structacc subsym builtin, TIC54X: TIC54X-Macros. (line 57)
  20420. * $structsz subsym builtin, TIC54X: TIC54X-Macros. (line 54)
  20421. * $symcmp subsym builtin, TIC54X: TIC54X-Macros. (line 23)
  20422. * $symlen subsym builtin, TIC54X: TIC54X-Macros. (line 20)
  20423. * $t: ARM Mapping Symbols.
  20424. (line 12)
  20425. * $tan math builtin, TIC54X: TIC54X-Builtins. (line 86)
  20426. * $tanh math builtin, TIC54X: TIC54X-Builtins. (line 89)
  20427. * $trunc math builtin, TIC54X: TIC54X-Builtins. (line 92)
  20428. * $x: AArch64 Mapping Symbols.
  20429. (line 9)
  20430. * %gp: RX-Modifiers. (line 6)
  20431. * %gpreg: RX-Modifiers. (line 22)
  20432. * %pidreg: RX-Modifiers. (line 25)
  20433. * -+ option, VAX/VMS: VAX-Opts. (line 71)
  20434. * --: Command Line. (line 10)
  20435. * --32 option, i386: i386-Options. (line 8)
  20436. * --32 option, x86-64: i386-Options. (line 8)
  20437. * --64 option, i386: i386-Options. (line 8)
  20438. * --64 option, x86-64: i386-Options. (line 8)
  20439. * --abi-call0: Xtensa Options. (line 82)
  20440. * --abi-windowed: Xtensa Options. (line 82)
  20441. * --absolute-literals: Xtensa Options. (line 39)
  20442. * --allow-reg-prefix: SH Options. (line 9)
  20443. * --alternate: alternate. (line 6)
  20444. * --auto-litpools: Xtensa Options. (line 22)
  20445. * --base-size-default-16: M68K-Opts. (line 66)
  20446. * --base-size-default-32: M68K-Opts. (line 66)
  20447. * --big: SH Options. (line 9)
  20448. * --bitwise-or option, M680x0: M68K-Opts. (line 59)
  20449. * --compress-debug-sections= option: Overview. (line 379)
  20450. * --disp-size-default-16: M68K-Opts. (line 75)
  20451. * --disp-size-default-32: M68K-Opts. (line 75)
  20452. * --divide option, i386: i386-Options. (line 25)
  20453. * --dsp: SH Options. (line 9)
  20454. * --emulation=crisaout command-line option, CRIS: CRIS-Opts. (line 9)
  20455. * --emulation=criself command-line option, CRIS: CRIS-Opts. (line 9)
  20456. * --enforce-aligned-data: Sparc-Aligned-Data. (line 11)
  20457. * --fatal-warnings: W. (line 16)
  20458. * --fdpic: SH Options. (line 31)
  20459. * --fix-v4bx command-line option, ARM: ARM Options. (line 382)
  20460. * --fixed-special-register-names command-line option, MMIX: MMIX-Opts.
  20461. (line 8)
  20462. * --force-long-branches: M68HC11-Opts. (line 81)
  20463. * --generate-example: M68HC11-Opts. (line 98)
  20464. * --globalize-symbols command-line option, MMIX: MMIX-Opts. (line 12)
  20465. * --gnu-syntax command-line option, MMIX: MMIX-Opts. (line 16)
  20466. * --linker-allocated-gregs command-line option, MMIX: MMIX-Opts.
  20467. (line 67)
  20468. * --listing-cont-lines: listing. (line 34)
  20469. * --listing-lhs-width: listing. (line 16)
  20470. * --listing-lhs-width2: listing. (line 21)
  20471. * --listing-rhs-width: listing. (line 28)
  20472. * --little: SH Options. (line 9)
  20473. * --longcalls: Xtensa Options. (line 53)
  20474. * --march=ARCHITECTURE command-line option, CRIS: CRIS-Opts. (line 34)
  20475. * --MD: MD. (line 6)
  20476. * --mul-bug-abort command-line option, CRIS: CRIS-Opts. (line 63)
  20477. * --no-absolute-literals: Xtensa Options. (line 39)
  20478. * --no-auto-litpools: Xtensa Options. (line 22)
  20479. * --no-expand command-line option, MMIX: MMIX-Opts. (line 31)
  20480. * --no-longcalls: Xtensa Options. (line 53)
  20481. * --no-merge-gregs command-line option, MMIX: MMIX-Opts. (line 36)
  20482. * --no-mul-bug-abort command-line option, CRIS: CRIS-Opts. (line 63)
  20483. * --no-pad-sections: no-pad-sections. (line 6)
  20484. * --no-predefined-syms command-line option, MMIX: MMIX-Opts. (line 22)
  20485. * --no-pushj-stubs command-line option, MMIX: MMIX-Opts. (line 54)
  20486. * --no-stubs command-line option, MMIX: MMIX-Opts. (line 54)
  20487. * --no-target-align: Xtensa Options. (line 46)
  20488. * --no-text-section-literals: Xtensa Options. (line 7)
  20489. * --no-trampolines: Xtensa Options. (line 74)
  20490. * --no-transform: Xtensa Options. (line 62)
  20491. * --no-underscore command-line option, CRIS: CRIS-Opts. (line 15)
  20492. * --no-warn: W. (line 11)
  20493. * --pcrel: M68K-Opts. (line 87)
  20494. * --pic command-line option, CRIS: CRIS-Opts. (line 27)
  20495. * --print-insn-syntax: M68HC11-Opts. (line 87)
  20496. * --print-insn-syntax <1>: XGATE-Opts. (line 25)
  20497. * --print-opcodes: M68HC11-Opts. (line 91)
  20498. * --print-opcodes <1>: XGATE-Opts. (line 29)
  20499. * --register-prefix-optional option, M680x0: M68K-Opts. (line 46)
  20500. * --relax: SH Options. (line 9)
  20501. * --relax command-line option, MMIX: MMIX-Opts. (line 19)
  20502. * --rename-section: Xtensa Options. (line 70)
  20503. * --renesas: SH Options. (line 9)
  20504. * --sectname-subst: Section. (line 71)
  20505. * --short-branches: M68HC11-Opts. (line 67)
  20506. * --small: SH Options. (line 9)
  20507. * --statistics: statistics. (line 6)
  20508. * --strict-direct-mode: M68HC11-Opts. (line 57)
  20509. * --target-align: Xtensa Options. (line 46)
  20510. * --text-section-literals: Xtensa Options. (line 7)
  20511. * --traditional-format: traditional-format. (line 6)
  20512. * --trampolines: Xtensa Options. (line 74)
  20513. * --transform: Xtensa Options. (line 62)
  20514. * --underscore command-line option, CRIS: CRIS-Opts. (line 15)
  20515. * --warn: W. (line 19)
  20516. * --x32 option, i386: i386-Options. (line 8)
  20517. * --x32 option, x86-64: i386-Options. (line 8)
  20518. * --xgate-ramoffset: M68HC11-Opts. (line 36)
  20519. * -1 option, VAX/VMS: VAX-Opts. (line 77)
  20520. * -32addr command-line option, Alpha: Alpha Options. (line 57)
  20521. * -a: a. (line 6)
  20522. * -ac: a. (line 6)
  20523. * -ad: a. (line 6)
  20524. * -ag: a. (line 6)
  20525. * -ah: a. (line 6)
  20526. * -al: a. (line 6)
  20527. * -Aleon: Sparc-Opts. (line 25)
  20528. * -an: a. (line 6)
  20529. * -as: a. (line 6)
  20530. * -Asparc: Sparc-Opts. (line 25)
  20531. * -Asparcfmaf: Sparc-Opts. (line 25)
  20532. * -Asparcima: Sparc-Opts. (line 25)
  20533. * -Asparclet: Sparc-Opts. (line 25)
  20534. * -Asparclite: Sparc-Opts. (line 25)
  20535. * -Asparcvis: Sparc-Opts. (line 25)
  20536. * -Asparcvis2: Sparc-Opts. (line 25)
  20537. * -Asparcvis3: Sparc-Opts. (line 25)
  20538. * -Asparcvis3r: Sparc-Opts. (line 25)
  20539. * -Av6: Sparc-Opts. (line 25)
  20540. * -Av7: Sparc-Opts. (line 25)
  20541. * -Av8: Sparc-Opts. (line 25)
  20542. * -Av9: Sparc-Opts. (line 25)
  20543. * -Av9a: Sparc-Opts. (line 25)
  20544. * -Av9b: Sparc-Opts. (line 25)
  20545. * -Av9c: Sparc-Opts. (line 25)
  20546. * -Av9d: Sparc-Opts. (line 25)
  20547. * -Av9e: Sparc-Opts. (line 25)
  20548. * -Av9m: Sparc-Opts. (line 25)
  20549. * -Av9v: Sparc-Opts. (line 25)
  20550. * -big option, M32R: M32R-Opts. (line 35)
  20551. * -colonless command-line option, Z80: Z80 Options. (line 33)
  20552. * -D: D. (line 6)
  20553. * -D, ignored on VAX: VAX-Opts. (line 11)
  20554. * -d, VAX option: VAX-Opts. (line 16)
  20555. * -eabi= command-line option, ARM: ARM Options. (line 358)
  20556. * -EB command-line option, AArch64: AArch64 Options. (line 6)
  20557. * -EB command-line option, ARC: ARC Options. (line 84)
  20558. * -EB command-line option, ARM: ARM Options. (line 363)
  20559. * -EB command-line option, BPF: BPF Options. (line 6)
  20560. * -EB option (MIPS): MIPS Options. (line 13)
  20561. * -EB option, M32R: M32R-Opts. (line 39)
  20562. * -EB option, TILE-Gx: TILE-Gx Options. (line 11)
  20563. * -EL command-line option, AArch64: AArch64 Options. (line 10)
  20564. * -EL command-line option, ARC: ARC Options. (line 88)
  20565. * -EL command-line option, ARM: ARM Options. (line 374)
  20566. * -EL command-line option, BPF: BPF Options. (line 10)
  20567. * -EL option (MIPS): MIPS Options. (line 13)
  20568. * -EL option, M32R: M32R-Opts. (line 32)
  20569. * -EL option, TILE-Gx: TILE-Gx Options. (line 11)
  20570. * -f: f. (line 6)
  20571. * -F command-line option, Alpha: Alpha Options. (line 57)
  20572. * -fno-pic option, RISC-V: RISC-V-Options. (line 12)
  20573. * -fp-d command-line option, Z80: Z80 Options. (line 44)
  20574. * -fp-s command-line option, Z80: Z80 Options. (line 40)
  20575. * -fpic option, RISC-V: RISC-V-Options. (line 8)
  20576. * -g command-line option, Alpha: Alpha Options. (line 47)
  20577. * -G command-line option, Alpha: Alpha Options. (line 53)
  20578. * -G option (MIPS): MIPS Options. (line 8)
  20579. * -h option, VAX/VMS: VAX-Opts. (line 45)
  20580. * -H option, VAX/VMS: VAX-Opts. (line 81)
  20581. * -I PATH: I. (line 6)
  20582. * -ignore-parallel-conflicts option, M32RX: M32R-Opts. (line 87)
  20583. * -Ip option, M32RX: M32R-Opts. (line 97)
  20584. * -J, ignored on VAX: VAX-Opts. (line 27)
  20585. * -K: K. (line 6)
  20586. * -k command-line option, ARM: ARM Options. (line 378)
  20587. * -KPIC option, M32R: M32R-Opts. (line 42)
  20588. * -KPIC option, MIPS: MIPS Options. (line 21)
  20589. * -L: L. (line 6)
  20590. * -l option, M680x0: M68K-Opts. (line 34)
  20591. * -little option, M32R: M32R-Opts. (line 27)
  20592. * -local-prefix command-line option, Z80: Z80 Options. (line 28)
  20593. * -M: M. (line 6)
  20594. * -m11/03: PDP-11-Options. (line 140)
  20595. * -m11/04: PDP-11-Options. (line 143)
  20596. * -m11/05: PDP-11-Options. (line 146)
  20597. * -m11/10: PDP-11-Options. (line 146)
  20598. * -m11/15: PDP-11-Options. (line 149)
  20599. * -m11/20: PDP-11-Options. (line 149)
  20600. * -m11/21: PDP-11-Options. (line 152)
  20601. * -m11/23: PDP-11-Options. (line 155)
  20602. * -m11/24: PDP-11-Options. (line 155)
  20603. * -m11/34: PDP-11-Options. (line 158)
  20604. * -m11/34a: PDP-11-Options. (line 161)
  20605. * -m11/35: PDP-11-Options. (line 164)
  20606. * -m11/40: PDP-11-Options. (line 164)
  20607. * -m11/44: PDP-11-Options. (line 167)
  20608. * -m11/45: PDP-11-Options. (line 170)
  20609. * -m11/50: PDP-11-Options. (line 170)
  20610. * -m11/53: PDP-11-Options. (line 173)
  20611. * -m11/55: PDP-11-Options. (line 170)
  20612. * -m11/60: PDP-11-Options. (line 176)
  20613. * -m11/70: PDP-11-Options. (line 170)
  20614. * -m11/73: PDP-11-Options. (line 173)
  20615. * -m11/83: PDP-11-Options. (line 173)
  20616. * -m11/84: PDP-11-Options. (line 173)
  20617. * -m11/93: PDP-11-Options. (line 173)
  20618. * -m11/94: PDP-11-Options. (line 173)
  20619. * -m16c option, M16C: M32C-Opts. (line 12)
  20620. * -m31 option, s390: s390 Options. (line 8)
  20621. * -m32 option, TILE-Gx: TILE-Gx Options. (line 8)
  20622. * -m32bit-doubles: RX-Opts. (line 9)
  20623. * -m32c option, M32C: M32C-Opts. (line 9)
  20624. * -m32r option, M32R: M32R-Opts. (line 21)
  20625. * -m32rx option, M32R2: M32R-Opts. (line 17)
  20626. * -m32rx option, M32RX: M32R-Opts. (line 9)
  20627. * -m4byte-align command-line option, V850: V850 Options. (line 90)
  20628. * -m64 option, s390: s390 Options. (line 8)
  20629. * -m64 option, TILE-Gx: TILE-Gx Options. (line 8)
  20630. * -m64bit-doubles: RX-Opts. (line 15)
  20631. * -m68000 and related options: M68K-Opts. (line 99)
  20632. * -m68hc11: M68HC11-Opts. (line 9)
  20633. * -m68hc12: M68HC11-Opts. (line 14)
  20634. * -m68hcs12: M68HC11-Opts. (line 21)
  20635. * -m8byte-align command-line option, V850: V850 Options. (line 86)
  20636. * -mabi= command-line option, AArch64: AArch64 Options. (line 14)
  20637. * -mabi=ABI option, RISC-V: RISC-V-Options. (line 33)
  20638. * -madd-bnd-prefix option, i386: i386-Options. (line 163)
  20639. * -madd-bnd-prefix option, x86-64: i386-Options. (line 163)
  20640. * -malign-branch-boundary= option, i386: i386-Options. (line 209)
  20641. * -malign-branch-boundary= option, x86-64: i386-Options. (line 209)
  20642. * -malign-branch-prefix-size= option, i386: i386-Options. (line 224)
  20643. * -malign-branch-prefix-size= option, x86-64: i386-Options. (line 224)
  20644. * -malign-branch= option, i386: i386-Options. (line 216)
  20645. * -malign-branch= option, x86-64: i386-Options. (line 216)
  20646. * -mall: PDP-11-Options. (line 26)
  20647. * -mall-enabled command-line option, LM32: LM32 Options. (line 30)
  20648. * -mall-extensions: PDP-11-Options. (line 26)
  20649. * -mall-opcodes command-line option, AVR: AVR Options. (line 111)
  20650. * -mamd64 option, x86-64: i386-Options. (line 294)
  20651. * -mapcs-26 command-line option, ARM: ARM Options. (line 330)
  20652. * -mapcs-32 command-line option, ARM: ARM Options. (line 330)
  20653. * -mapcs-float command-line option, ARM: ARM Options. (line 344)
  20654. * -mapcs-reentrant command-line option, ARM: ARM Options. (line 349)
  20655. * -march-attr option, RISC-V: RISC-V-Options. (line 48)
  20656. * -march= command-line option, AArch64: AArch64 Options. (line 44)
  20657. * -march= command-line option, ARM: ARM Options. (line 86)
  20658. * -march= command-line option, M680x0: M68K-Opts. (line 8)
  20659. * -march= command-line option, TIC6X: TIC6X Options. (line 6)
  20660. * -march= command-line option, Z80: Z80 Options. (line 6)
  20661. * -march= option, i386: i386-Options. (line 32)
  20662. * -march= option, s390: s390 Options. (line 25)
  20663. * -march= option, x86-64: i386-Options. (line 32)
  20664. * -march=ISA option, RISC-V: RISC-V-Options. (line 15)
  20665. * -matpcs command-line option, ARM: ARM Options. (line 336)
  20666. * -mavxscalar= option, i386: i386-Options. (line 108)
  20667. * -mavxscalar= option, x86-64: i386-Options. (line 108)
  20668. * -mbarrel-shift-enabled command-line option, LM32: LM32 Options.
  20669. (line 12)
  20670. * -mbig-endian: RX-Opts. (line 20)
  20671. * -mbig-endian option, RISC-V: RISC-V-Options. (line 71)
  20672. * -mbig-obj option, i386: i386-Options. (line 177)
  20673. * -mbig-obj option, x86-64: i386-Options. (line 177)
  20674. * -mbranches-within-32B-boundaries option, i386: i386-Options.
  20675. (line 229)
  20676. * -mbranches-within-32B-boundaries option, x86-64: i386-Options.
  20677. (line 229)
  20678. * -mbreak-enabled command-line option, LM32: LM32 Options. (line 27)
  20679. * -mccs command-line option, ARM: ARM Options. (line 391)
  20680. * -mcis: PDP-11-Options. (line 32)
  20681. * -mcode-density command-line option, ARC: ARC Options. (line 93)
  20682. * -mconstant-gp command-line option, IA-64: IA-64 Options. (line 6)
  20683. * -mCPU command-line option, Alpha: Alpha Options. (line 6)
  20684. * -mcpu option, cpu: TIC54X-Opts. (line 15)
  20685. * -mcpu=: RX-Opts. (line 75)
  20686. * -mcpu= command-line option, AArch64: AArch64 Options. (line 19)
  20687. * -mcpu= command-line option, ARM: ARM Options. (line 6)
  20688. * -mcpu= command-line option, Blackfin: Blackfin Options. (line 6)
  20689. * -mcpu= command-line option, M680x0: M68K-Opts. (line 14)
  20690. * -mcpu=CPU command-line option, ARC: ARC Options. (line 10)
  20691. * -mcsm: PDP-11-Options. (line 43)
  20692. * -mcsr-check option, RISC-V: RISC-V-Options. (line 60)
  20693. * -mdcache-enabled command-line option, LM32: LM32 Options. (line 24)
  20694. * -mdebug command-line option, Alpha: Alpha Options. (line 25)
  20695. * -mdivide-enabled command-line option, LM32: LM32 Options. (line 9)
  20696. * -mdollar-hex option, dollar-hex: S12Z Options. (line 17)
  20697. * -mdpfp command-line option, ARC: ARC Options. (line 108)
  20698. * -mdsbt command-line option, TIC6X: TIC6X Options. (line 13)
  20699. * -me option, stderr redirect: TIC54X-Opts. (line 20)
  20700. * -meis: PDP-11-Options. (line 46)
  20701. * -mepiphany command-line option, Epiphany: Epiphany Options.
  20702. (line 9)
  20703. * -mepiphany16 command-line option, Epiphany: Epiphany Options.
  20704. (line 13)
  20705. * -merrors-to-file option, stderr redirect: TIC54X-Opts. (line 20)
  20706. * -mesa option, s390: s390 Options. (line 17)
  20707. * -mevexlig= option, i386: i386-Options. (line 129)
  20708. * -mevexlig= option, x86-64: i386-Options. (line 129)
  20709. * -mevexrcig= option, i386: i386-Options. (line 284)
  20710. * -mevexrcig= option, x86-64: i386-Options. (line 284)
  20711. * -mevexwig= option, i386: i386-Options. (line 139)
  20712. * -mevexwig= option, x86-64: i386-Options. (line 139)
  20713. * -mf option, far-mode: TIC54X-Opts. (line 8)
  20714. * -mf11: PDP-11-Options. (line 122)
  20715. * -mfar-mode option, far-mode: TIC54X-Opts. (line 8)
  20716. * -mfdpic command-line option, Blackfin: Blackfin Options. (line 19)
  20717. * -mfence-as-lock-add= option, i386: i386-Options. (line 190)
  20718. * -mfence-as-lock-add= option, x86-64: i386-Options. (line 190)
  20719. * -mfis: PDP-11-Options. (line 51)
  20720. * -mfloat-abi= command-line option, ARM: ARM Options. (line 353)
  20721. * -mfp-11: PDP-11-Options. (line 56)
  20722. * -mfp16-format= command-line option: ARM Options. (line 291)
  20723. * -mfpp: PDP-11-Options. (line 56)
  20724. * -mfpu: PDP-11-Options. (line 56)
  20725. * -mfpu= command-line option, ARM: ARM Options. (line 267)
  20726. * -mfpuda command-line option, ARC: ARC Options. (line 111)
  20727. * -mgcc-abi: RX-Opts. (line 63)
  20728. * -mgcc-abi command-line option, V850: V850 Options. (line 79)
  20729. * -mgcc-isr command-line option, AVR: AVR Options. (line 132)
  20730. * -mhard-float command-line option, V850: V850 Options. (line 101)
  20731. * -micache-enabled command-line option, LM32: LM32 Options. (line 21)
  20732. * -mimplicit-it command-line option, ARM: ARM Options. (line 314)
  20733. * -mint-register: RX-Opts. (line 57)
  20734. * -mintel64 option, x86-64: i386-Options. (line 294)
  20735. * -mip2022 option, IP2K: IP2K-Opts. (line 14)
  20736. * -mip2022ext option, IP2022: IP2K-Opts. (line 9)
  20737. * -misa-spec=ISAspec option, RISC-V: RISC-V-Options. (line 21)
  20738. * -mj11: PDP-11-Options. (line 126)
  20739. * -mka11: PDP-11-Options. (line 92)
  20740. * -mkb11: PDP-11-Options. (line 95)
  20741. * -mkd11a: PDP-11-Options. (line 98)
  20742. * -mkd11b: PDP-11-Options. (line 101)
  20743. * -mkd11d: PDP-11-Options. (line 104)
  20744. * -mkd11e: PDP-11-Options. (line 107)
  20745. * -mkd11f: PDP-11-Options. (line 110)
  20746. * -mkd11h: PDP-11-Options. (line 110)
  20747. * -mkd11k: PDP-11-Options. (line 114)
  20748. * -mkd11q: PDP-11-Options. (line 110)
  20749. * -mkd11z: PDP-11-Options. (line 118)
  20750. * -mkev11: PDP-11-Options. (line 51)
  20751. * -mkev11 <1>: PDP-11-Options. (line 51)
  20752. * -mlfence-after-load= option, i386: i386-Options. (line 237)
  20753. * -mlfence-after-load= option, x86-64: i386-Options. (line 237)
  20754. * -mlfence-before-indirect-branch= option, i386: i386-Options.
  20755. (line 244)
  20756. * -mlfence-before-indirect-branch= option, x86-64: i386-Options.
  20757. (line 244)
  20758. * -mlfence-before-ret= option, i386: i386-Options. (line 264)
  20759. * -mlfence-before-ret= option, x86-64: i386-Options. (line 264)
  20760. * -mlimited-eis: PDP-11-Options. (line 64)
  20761. * -mlink-relax command-line option, AVR: AVR Options. (line 123)
  20762. * -mlittle-endian: RX-Opts. (line 26)
  20763. * -mlittle-endian option, RISC-V: RISC-V-Options. (line 68)
  20764. * -mlong: M68HC11-Opts. (line 45)
  20765. * -mlong <1>: XGATE-Opts. (line 13)
  20766. * -mlong-double: M68HC11-Opts. (line 53)
  20767. * -mlong-double <1>: XGATE-Opts. (line 21)
  20768. * -mm9s12x: M68HC11-Opts. (line 27)
  20769. * -mm9s12xg: M68HC11-Opts. (line 32)
  20770. * -mmcu= command-line option, AVR: AVR Options. (line 6)
  20771. * -mmfpt: PDP-11-Options. (line 70)
  20772. * -mmicrocode: PDP-11-Options. (line 83)
  20773. * -mmnemonic= option, i386: i386-Options. (line 146)
  20774. * -mmnemonic= option, x86-64: i386-Options. (line 146)
  20775. * -mmultiply-enabled command-line option, LM32: LM32 Options.
  20776. (line 6)
  20777. * -mmutiproc: PDP-11-Options. (line 73)
  20778. * -mmxps: PDP-11-Options. (line 77)
  20779. * -mnaked-reg option, i386: i386-Options. (line 158)
  20780. * -mnaked-reg option, x86-64: i386-Options. (line 158)
  20781. * -mnan= command-line option, MIPS: MIPS Options. (line 439)
  20782. * -mno-allow-string-insns: RX-Opts. (line 82)
  20783. * -mno-arch-attr option, RISC-V: RISC-V-Options. (line 56)
  20784. * -mno-cis: PDP-11-Options. (line 32)
  20785. * -mno-csm: PDP-11-Options. (line 43)
  20786. * -mno-csr-check option, RISC-V: RISC-V-Options. (line 65)
  20787. * -mno-dollar-line-separator command line option, AVR: AVR Options.
  20788. (line 135)
  20789. * -mno-dsbt command-line option, TIC6X: TIC6X Options. (line 13)
  20790. * -mno-eis: PDP-11-Options. (line 46)
  20791. * -mno-extensions: PDP-11-Options. (line 29)
  20792. * -mno-fdpic command-line option, Blackfin: Blackfin Options.
  20793. (line 22)
  20794. * -mno-fis: PDP-11-Options. (line 51)
  20795. * -mno-fp-11: PDP-11-Options. (line 56)
  20796. * -mno-fpp: PDP-11-Options. (line 56)
  20797. * -mno-fpu: PDP-11-Options. (line 56)
  20798. * -mno-kev11: PDP-11-Options. (line 51)
  20799. * -mno-limited-eis: PDP-11-Options. (line 64)
  20800. * -mno-link-relax command-line option, AVR: AVR Options. (line 127)
  20801. * -mno-mfpt: PDP-11-Options. (line 70)
  20802. * -mno-microcode: PDP-11-Options. (line 83)
  20803. * -mno-mutiproc: PDP-11-Options. (line 73)
  20804. * -mno-mxps: PDP-11-Options. (line 77)
  20805. * -mno-pic: PDP-11-Options. (line 11)
  20806. * -mno-pic command-line option, TIC6X: TIC6X Options. (line 36)
  20807. * -mno-regnames option, s390: s390 Options. (line 51)
  20808. * -mno-relax option, RISC-V: RISC-V-Options. (line 45)
  20809. * -mno-skip-bug command-line option, AVR: AVR Options. (line 114)
  20810. * -mno-spl: PDP-11-Options. (line 80)
  20811. * -mno-sym32: MIPS Options. (line 348)
  20812. * -mno-verbose-error command-line option, AArch64: AArch64 Options.
  20813. (line 66)
  20814. * -mno-wrap command-line option, AVR: AVR Options. (line 117)
  20815. * -mnopic command-line option, Blackfin: Blackfin Options. (line 22)
  20816. * -mnps400 command-line option, ARC: ARC Options. (line 102)
  20817. * -momit-lock-prefix= option, i386: i386-Options. (line 181)
  20818. * -momit-lock-prefix= option, x86-64: i386-Options. (line 181)
  20819. * -mpic: PDP-11-Options. (line 11)
  20820. * -mpic command-line option, TIC6X: TIC6X Options. (line 36)
  20821. * -mpid: RX-Opts. (line 50)
  20822. * -mpid= command-line option, TIC6X: TIC6X Options. (line 23)
  20823. * -mpriv-spec=PRIVspec option, RISC-V: RISC-V-Options. (line 27)
  20824. * -mreg-prefix=PREFIX option, reg-prefix: S12Z Options. (line 9)
  20825. * -mregnames option, s390: s390 Options. (line 48)
  20826. * -mrelax command-line option, ARC: ARC Options. (line 97)
  20827. * -mrelax command-line option, V850: V850 Options. (line 72)
  20828. * -mrelax option, RISC-V: RISC-V-Options. (line 41)
  20829. * -mrelax-relocations= option, i386: i386-Options. (line 199)
  20830. * -mrelax-relocations= option, x86-64: i386-Options. (line 199)
  20831. * -mrh850-abi command-line option, V850: V850 Options. (line 82)
  20832. * -mrmw command-line option, AVR: AVR Options. (line 120)
  20833. * -mrx-abi: RX-Opts. (line 69)
  20834. * -mshared option, i386: i386-Options. (line 168)
  20835. * -mshared option, x86-64: i386-Options. (line 168)
  20836. * -mshort: M68HC11-Opts. (line 40)
  20837. * -mshort <1>: XGATE-Opts. (line 8)
  20838. * -mshort-double: M68HC11-Opts. (line 49)
  20839. * -mshort-double <1>: XGATE-Opts. (line 17)
  20840. * -msign-extend-enabled command-line option, LM32: LM32 Options.
  20841. (line 15)
  20842. * -msmall-data-limit: RX-Opts. (line 42)
  20843. * -msoft-float command-line option, V850: V850 Options. (line 95)
  20844. * -mspfp command-line option, ARC: ARC Options. (line 105)
  20845. * -mspl: PDP-11-Options. (line 80)
  20846. * -msse-check= option, i386: i386-Options. (line 98)
  20847. * -msse-check= option, x86-64: i386-Options. (line 98)
  20848. * -msse2avx option, i386: i386-Options. (line 90)
  20849. * -msse2avx option, x86-64: i386-Options. (line 90)
  20850. * -msym32: MIPS Options. (line 348)
  20851. * -msyntax= option, i386: i386-Options. (line 152)
  20852. * -msyntax= option, x86-64: i386-Options. (line 152)
  20853. * -mt11: PDP-11-Options. (line 130)
  20854. * -mthumb command-line option, ARM: ARM Options. (line 304)
  20855. * -mthumb-interwork command-line option, ARM: ARM Options. (line 309)
  20856. * -mtune= option, i386: i386-Options. (line 82)
  20857. * -mtune= option, x86-64: i386-Options. (line 82)
  20858. * -mtune=ARCH command-line option, Visium: Visium Options. (line 8)
  20859. * -muse-conventional-section-names: RX-Opts. (line 33)
  20860. * -muse-renesas-section-names: RX-Opts. (line 37)
  20861. * -muse-unaligned-vector-move option, i386: i386-Options. (line 94)
  20862. * -muse-unaligned-vector-move option, x86-64: i386-Options. (line 94)
  20863. * -muser-enabled command-line option, LM32: LM32 Options. (line 18)
  20864. * -mv850 command-line option, V850: V850 Options. (line 23)
  20865. * -mv850any command-line option, V850: V850 Options. (line 41)
  20866. * -mv850e command-line option, V850: V850 Options. (line 29)
  20867. * -mv850e1 command-line option, V850: V850 Options. (line 35)
  20868. * -mv850e2 command-line option, V850: V850 Options. (line 51)
  20869. * -mv850e2v3 command-line option, V850: V850 Options. (line 57)
  20870. * -mv850e2v4 command-line option, V850: V850 Options. (line 63)
  20871. * -mv850e3v5 command-line option, V850: V850 Options. (line 66)
  20872. * -mverbose-error command-line option, AArch64: AArch64 Options.
  20873. (line 62)
  20874. * -mvexwig= option, i386: i386-Options. (line 119)
  20875. * -mvexwig= option, x86-64: i386-Options. (line 119)
  20876. * -mvxworks-pic option, MIPS: MIPS Options. (line 26)
  20877. * -mwarn-areg-zero option, s390: s390 Options. (line 54)
  20878. * -mwarn-deprecated command-line option, ARM: ARM Options. (line 386)
  20879. * -mwarn-syms command-line option, ARM: ARM Options. (line 394)
  20880. * -mx86-used-note= option, i386: i386-Options. (line 277)
  20881. * -mx86-used-note= option, x86-64: i386-Options. (line 277)
  20882. * -mzarch option, s390: s390 Options. (line 17)
  20883. * -m[no-]68851 command-line option, M680x0: M68K-Opts. (line 21)
  20884. * -m[no-]68881 command-line option, M680x0: M68K-Opts. (line 21)
  20885. * -m[no-]div command-line option, M680x0: M68K-Opts. (line 21)
  20886. * -m[no-]emac command-line option, M680x0: M68K-Opts. (line 21)
  20887. * -m[no-]float command-line option, M680x0: M68K-Opts. (line 21)
  20888. * -m[no-]mac command-line option, M680x0: M68K-Opts. (line 21)
  20889. * -m[no-]usp command-line option, M680x0: M68K-Opts. (line 21)
  20890. * -N command-line option, CRIS: CRIS-Opts. (line 59)
  20891. * -nIp option, M32RX: M32R-Opts. (line 101)
  20892. * -no-bitinst, M32R2: M32R-Opts. (line 54)
  20893. * -no-ignore-parallel-conflicts option, M32RX: M32R-Opts. (line 93)
  20894. * -no-mdebug command-line option, Alpha: Alpha Options. (line 25)
  20895. * -no-parallel option, M32RX: M32R-Opts. (line 51)
  20896. * -no-warn-explicit-parallel-conflicts option, M32RX: M32R-Opts.
  20897. (line 79)
  20898. * -no-warn-unmatched-high option, M32R: M32R-Opts. (line 111)
  20899. * -nocpp ignored (MIPS): MIPS Options. (line 351)
  20900. * -noreplace command-line option, Alpha: Alpha Options. (line 40)
  20901. * -o: o. (line 6)
  20902. * -O option, i386: i386-Options. (line 300)
  20903. * -O option, M32RX: M32R-Opts. (line 59)
  20904. * -O option, x86-64: i386-Options. (line 300)
  20905. * -O0 option, i386: i386-Options. (line 300)
  20906. * -O0 option, x86-64: i386-Options. (line 300)
  20907. * -O1 option, i386: i386-Options. (line 300)
  20908. * -O1 option, x86-64: i386-Options. (line 300)
  20909. * -O2 option, i386: i386-Options. (line 300)
  20910. * -O2 option, x86-64: i386-Options. (line 300)
  20911. * -Os option, i386: i386-Options. (line 300)
  20912. * -Os option, x86-64: i386-Options. (line 300)
  20913. * -parallel option, M32RX: M32R-Opts. (line 46)
  20914. * -R: R. (line 6)
  20915. * -relax command-line option, Alpha: Alpha Options. (line 32)
  20916. * -replace command-line option, Alpha: Alpha Options. (line 40)
  20917. * -S, ignored on VAX: VAX-Opts. (line 11)
  20918. * -sdcc command-line option, Z80: Z80 Options. (line 37)
  20919. * -T, ignored on VAX: VAX-Opts. (line 11)
  20920. * -t, ignored on VAX: VAX-Opts. (line 36)
  20921. * -v: v. (line 6)
  20922. * -V, redundant on VAX: VAX-Opts. (line 22)
  20923. * -version: v. (line 6)
  20924. * -W: W. (line 11)
  20925. * -warn-explicit-parallel-conflicts option, M32RX: M32R-Opts.
  20926. (line 65)
  20927. * -warn-unmatched-high option, M32R: M32R-Opts. (line 105)
  20928. * -Wnp option, M32RX: M32R-Opts. (line 83)
  20929. * -Wnuh option, M32RX: M32R-Opts. (line 117)
  20930. * -Wp option, M32RX: M32R-Opts. (line 75)
  20931. * -wsigned_overflow command-line option, V850: V850 Options. (line 9)
  20932. * -Wuh option, M32RX: M32R-Opts. (line 114)
  20933. * -wunsigned_overflow command-line option, V850: V850 Options.
  20934. (line 16)
  20935. * -x command-line option, MMIX: MMIX-Opts. (line 44)
  20936. * -z8001 command-line option, Z8000: Z8000 Options. (line 6)
  20937. * -z8002 command-line option, Z8000: Z8000 Options. (line 9)
  20938. * . (symbol): Dot. (line 6)
  20939. * .align directive, ARM: ARM Directives. (line 6)
  20940. * .align directive, TILE-Gx: TILE-Gx Directives. (line 6)
  20941. * .align directive, TILEPro: TILEPro Directives. (line 6)
  20942. * .allow_suspicious_bundles directive, TILE-Gx: TILE-Gx Directives.
  20943. (line 10)
  20944. * .allow_suspicious_bundles directive, TILEPro: TILEPro Directives.
  20945. (line 10)
  20946. * .arch directive, AArch64: AArch64 Directives. (line 6)
  20947. * .arch directive, ARM: ARM Directives. (line 13)
  20948. * .arch directive, TIC6X: TIC6X Directives. (line 10)
  20949. * .arch_extension directive, AArch64: AArch64 Directives. (line 13)
  20950. * .arch_extension directive, ARM: ARM Directives. (line 21)
  20951. * .arc_attribute directive, ARC: ARC Directives. (line 240)
  20952. * .arm directive, ARM: ARM Directives. (line 30)
  20953. * .assume directive, Z80: Z80 Directives. (line 12)
  20954. * .attribute directive, RISC-V: RISC-V-Directives. (line 123)
  20955. * .big directive, M32RX: M32R-Directives. (line 88)
  20956. * .bss directive, AArch64: AArch64 Directives. (line 21)
  20957. * .bss directive, ARM: ARM Directives. (line 33)
  20958. * .c6xabi_attribute directive, TIC6X: TIC6X Directives. (line 20)
  20959. * .cantunwind directive, ARM: ARM Directives. (line 36)
  20960. * .cantunwind directive, TIC6X: TIC6X Directives. (line 13)
  20961. * .cfi_b_key_frame directive, AArch64: AArch64 Directives. (line 99)
  20962. * .code directive, ARM: ARM Directives. (line 40)
  20963. * .cpu directive, AArch64: AArch64 Directives. (line 24)
  20964. * .cpu directive, ARM: ARM Directives. (line 44)
  20965. * .dn and .qn directives, ARM: ARM Directives. (line 52)
  20966. * .dword directive, AArch64: AArch64 Directives. (line 28)
  20967. * .eabi_attribute directive, ARM: ARM Directives. (line 76)
  20968. * .ehtype directive, TIC6X: TIC6X Directives. (line 31)
  20969. * .endp directive, TIC6X: TIC6X Directives. (line 34)
  20970. * .even directive, AArch64: AArch64 Directives. (line 31)
  20971. * .even directive, ARM: ARM Directives. (line 105)
  20972. * .extend directive, ARM: ARM Directives. (line 108)
  20973. * .float16 directive, AArch64: AArch64 Directives. (line 35)
  20974. * .float16 directive, ARM: ARM Directives. (line 114)
  20975. * .float16_format directive, ARM: ARM Directives. (line 122)
  20976. * .fnend directive, ARM: ARM Directives. (line 129)
  20977. * .fnstart directive, ARM: ARM Directives. (line 137)
  20978. * .force_thumb directive, ARM: ARM Directives. (line 140)
  20979. * .fpu directive, ARM: ARM Directives. (line 144)
  20980. * .global: MIPS insn. (line 12)
  20981. * .gnu_attribute 4, N directive, MIPS: MIPS FP ABI History.
  20982. (line 6)
  20983. * .gnu_attribute Tag_GNU_MIPS_ABI_FP, N directive, MIPS: MIPS FP ABI History.
  20984. (line 6)
  20985. * .handlerdata directive, ARM: ARM Directives. (line 148)
  20986. * .handlerdata directive, TIC6X: TIC6X Directives. (line 39)
  20987. * .insn: MIPS insn. (line 6)
  20988. * .insn directive, s390: s390 Directives. (line 11)
  20989. * .inst directive, AArch64: AArch64 Directives. (line 41)
  20990. * .inst directive, ARM: ARM Directives. (line 157)
  20991. * .ldouble directive, ARM: ARM Directives. (line 108)
  20992. * .little directive, M32RX: M32R-Directives. (line 82)
  20993. * .long directive, s390: s390 Directives. (line 16)
  20994. * .ltorg directive, AArch64: AArch64 Directives. (line 45)
  20995. * .ltorg directive, ARM: ARM Directives. (line 167)
  20996. * .ltorg directive, s390: s390 Directives. (line 79)
  20997. * .m32r directive, M32R: M32R-Directives. (line 66)
  20998. * .m32r2 directive, M32R2: M32R-Directives. (line 77)
  20999. * .m32rx directive, M32RX: M32R-Directives. (line 72)
  21000. * .machine directive, s390: s390 Directives. (line 84)
  21001. * .machinemode directive, s390: s390 Directives. (line 101)
  21002. * .module: MIPS assembly options.
  21003. (line 6)
  21004. * .module fp=NN directive, MIPS: MIPS FP ABI Selection.
  21005. (line 6)
  21006. * .movsp directive, ARM: ARM Directives. (line 181)
  21007. * .nan directive, MIPS: MIPS NaN Encodings. (line 6)
  21008. * .nocmp directive, TIC6X: TIC6X Directives. (line 47)
  21009. * .no_pointers directive, XStormy16: XStormy16 Directives.
  21010. (line 14)
  21011. * .o: Object. (line 6)
  21012. * .object_arch directive, ARM: ARM Directives. (line 186)
  21013. * .packed directive, ARM: ARM Directives. (line 192)
  21014. * .pad directive, ARM: ARM Directives. (line 197)
  21015. * .param on HPPA: HPPA Directives. (line 19)
  21016. * .personality directive, ARM: ARM Directives. (line 202)
  21017. * .personality directive, TIC6X: TIC6X Directives. (line 55)
  21018. * .personalityindex directive, ARM: ARM Directives. (line 205)
  21019. * .personalityindex directive, TIC6X: TIC6X Directives. (line 51)
  21020. * .pool directive, AArch64: AArch64 Directives. (line 59)
  21021. * .pool directive, ARM: ARM Directives. (line 209)
  21022. * .quad directive, s390: s390 Directives. (line 16)
  21023. * .req directive, AArch64: AArch64 Directives. (line 62)
  21024. * .req directive, ARM: ARM Directives. (line 212)
  21025. * .require_canonical_reg_names directive, TILE-Gx: TILE-Gx Directives.
  21026. (line 19)
  21027. * .require_canonical_reg_names directive, TILEPro: TILEPro Directives.
  21028. (line 19)
  21029. * .save directive, ARM: ARM Directives. (line 217)
  21030. * .scomm directive, TIC6X: TIC6X Directives. (line 58)
  21031. * .secrel32 directive, ARM: ARM Directives. (line 255)
  21032. * .set arch=CPU: MIPS ISA. (line 18)
  21033. * .set at: MIPS Macros. (line 41)
  21034. * .set at=REG: MIPS Macros. (line 35)
  21035. * .set autoextend: MIPS autoextend. (line 6)
  21036. * .set crc: MIPS ASE Instruction Generation Overrides.
  21037. (line 68)
  21038. * .set doublefloat: MIPS Floating-Point.
  21039. (line 12)
  21040. * .set dsp: MIPS ASE Instruction Generation Overrides.
  21041. (line 21)
  21042. * .set dspr2: MIPS ASE Instruction Generation Overrides.
  21043. (line 26)
  21044. * .set dspr3: MIPS ASE Instruction Generation Overrides.
  21045. (line 31)
  21046. * .set ginv: MIPS ASE Instruction Generation Overrides.
  21047. (line 72)
  21048. * .set hardfloat: MIPS Floating-Point.
  21049. (line 6)
  21050. * .set insn32: MIPS assembly options.
  21051. (line 18)
  21052. * .set loongson-cam: MIPS ASE Instruction Generation Overrides.
  21053. (line 81)
  21054. * .set loongson-ext: MIPS ASE Instruction Generation Overrides.
  21055. (line 86)
  21056. * .set loongson-ext2: MIPS ASE Instruction Generation Overrides.
  21057. (line 91)
  21058. * .set loongson-mmi: MIPS ASE Instruction Generation Overrides.
  21059. (line 76)
  21060. * .set macro: MIPS Macros. (line 30)
  21061. * .set mcu: MIPS ASE Instruction Generation Overrides.
  21062. (line 42)
  21063. * .set mdmx: MIPS ASE Instruction Generation Overrides.
  21064. (line 16)
  21065. * .set mips16e2: MIPS ASE Instruction Generation Overrides.
  21066. (line 61)
  21067. * .set mips3d: MIPS ASE Instruction Generation Overrides.
  21068. (line 6)
  21069. * .set mipsN: MIPS ISA. (line 6)
  21070. * .set msa: MIPS ASE Instruction Generation Overrides.
  21071. (line 47)
  21072. * .set mt: MIPS ASE Instruction Generation Overrides.
  21073. (line 37)
  21074. * .set noat: MIPS Macros. (line 41)
  21075. * .set noautoextend: MIPS autoextend. (line 6)
  21076. * .set nocrc: MIPS ASE Instruction Generation Overrides.
  21077. (line 68)
  21078. * .set nodsp: MIPS ASE Instruction Generation Overrides.
  21079. (line 21)
  21080. * .set nodspr2: MIPS ASE Instruction Generation Overrides.
  21081. (line 26)
  21082. * .set nodspr3: MIPS ASE Instruction Generation Overrides.
  21083. (line 31)
  21084. * .set noginv: MIPS ASE Instruction Generation Overrides.
  21085. (line 72)
  21086. * .set noinsn32: MIPS assembly options.
  21087. (line 18)
  21088. * .set noloongson-cam: MIPS ASE Instruction Generation Overrides.
  21089. (line 81)
  21090. * .set noloongson-ext: MIPS ASE Instruction Generation Overrides.
  21091. (line 86)
  21092. * .set noloongson-ext2: MIPS ASE Instruction Generation Overrides.
  21093. (line 91)
  21094. * .set noloongson-mmi: MIPS ASE Instruction Generation Overrides.
  21095. (line 76)
  21096. * .set nomacro: MIPS Macros. (line 30)
  21097. * .set nomcu: MIPS ASE Instruction Generation Overrides.
  21098. (line 42)
  21099. * .set nomdmx: MIPS ASE Instruction Generation Overrides.
  21100. (line 16)
  21101. * .set nomips16e2: MIPS ASE Instruction Generation Overrides.
  21102. (line 61)
  21103. * .set nomips3d: MIPS ASE Instruction Generation Overrides.
  21104. (line 6)
  21105. * .set nomsa: MIPS ASE Instruction Generation Overrides.
  21106. (line 47)
  21107. * .set nomt: MIPS ASE Instruction Generation Overrides.
  21108. (line 37)
  21109. * .set nosmartmips: MIPS ASE Instruction Generation Overrides.
  21110. (line 11)
  21111. * .set nosym32: MIPS Symbol Sizes. (line 6)
  21112. * .set novirt: MIPS ASE Instruction Generation Overrides.
  21113. (line 52)
  21114. * .set noxpa: MIPS ASE Instruction Generation Overrides.
  21115. (line 57)
  21116. * .set pop: MIPS Option Stack. (line 6)
  21117. * .set push: MIPS Option Stack. (line 6)
  21118. * .set singlefloat: MIPS Floating-Point.
  21119. (line 12)
  21120. * .set smartmips: MIPS ASE Instruction Generation Overrides.
  21121. (line 11)
  21122. * .set softfloat: MIPS Floating-Point.
  21123. (line 6)
  21124. * .set sym32: MIPS Symbol Sizes. (line 6)
  21125. * .set virt: MIPS ASE Instruction Generation Overrides.
  21126. (line 52)
  21127. * .set xpa: MIPS ASE Instruction Generation Overrides.
  21128. (line 57)
  21129. * .setfp directive, ARM: ARM Directives. (line 241)
  21130. * .short directive, s390: s390 Directives. (line 16)
  21131. * .syntax directive, ARM: ARM Directives. (line 260)
  21132. * .thumb directive, ARM: ARM Directives. (line 264)
  21133. * .thumb_func directive, ARM: ARM Directives. (line 267)
  21134. * .thumb_set directive, ARM: ARM Directives. (line 278)
  21135. * .tlsdescadd directive, AArch64: AArch64 Directives. (line 70)
  21136. * .tlsdesccall directive, AArch64: AArch64 Directives. (line 73)
  21137. * .tlsdescldr directive, AArch64: AArch64 Directives. (line 76)
  21138. * .tlsdescseq directive, ARM: ARM Directives. (line 285)
  21139. * .unreq directive, AArch64: AArch64 Directives. (line 79)
  21140. * .unreq directive, ARM: ARM Directives. (line 290)
  21141. * .unwind_raw directive, ARM: ARM Directives. (line 301)
  21142. * .v850 directive, V850: V850 Directives. (line 14)
  21143. * .v850e directive, V850: V850 Directives. (line 20)
  21144. * .v850e1 directive, V850: V850 Directives. (line 26)
  21145. * .v850e2 directive, V850: V850 Directives. (line 32)
  21146. * .v850e2v3 directive, V850: V850 Directives. (line 38)
  21147. * .v850e2v4 directive, V850: V850 Directives. (line 44)
  21148. * .v850e3v5 directive, V850: V850 Directives. (line 50)
  21149. * .variant_pcs directive, AArch64: AArch64 Directives. (line 90)
  21150. * .vsave directive, ARM: ARM Directives. (line 308)
  21151. * .xword directive, AArch64: AArch64 Directives. (line 95)
  21152. * .z8001: Z8000 Directives. (line 11)
  21153. * .z8002: Z8000 Directives. (line 15)
  21154. * 16-bit code, i386: i386-16bit. (line 6)
  21155. * 16bit_pointers directive, XStormy16: XStormy16 Directives.
  21156. (line 6)
  21157. * 16byte directive, Nios II: Nios II Directives. (line 28)
  21158. * 16byte directive, PRU: PRU Directives. (line 25)
  21159. * 2byte directive: 2byte. (line 6)
  21160. * 2byte directive, Nios II: Nios II Directives. (line 19)
  21161. * 2byte directive, PRU: PRU Directives. (line 16)
  21162. * 32bit_pointers directive, XStormy16: XStormy16 Directives.
  21163. (line 10)
  21164. * 3DNow!, i386: i386-SIMD. (line 6)
  21165. * 3DNow!, x86-64: i386-SIMD. (line 6)
  21166. * 430 support: MSP430-Dependent. (line 6)
  21167. * 4byte directive: 4byte. (line 6)
  21168. * 4byte directive, Nios II: Nios II Directives. (line 22)
  21169. * 4byte directive, PRU: PRU Directives. (line 19)
  21170. * 8byte directive: 8byte. (line 6)
  21171. * 8byte directive, Nios II: Nios II Directives. (line 25)
  21172. * 8byte directive, PRU: PRU Directives. (line 22)
  21173. * : (label): Statements. (line 31)
  21174. * @gotoff(SYMBOL), ARC modifier: ARC Modifiers. (line 20)
  21175. * @gotpc(SYMBOL), ARC modifier: ARC Modifiers. (line 16)
  21176. * @hi pseudo-op, XStormy16: XStormy16 Opcodes. (line 21)
  21177. * @lo pseudo-op, XStormy16: XStormy16 Opcodes. (line 10)
  21178. * @pcl(SYMBOL), ARC modifier: ARC Modifiers. (line 12)
  21179. * @plt(SYMBOL), ARC modifier: ARC Modifiers. (line 23)
  21180. * @sda(SYMBOL), ARC modifier: ARC Modifiers. (line 28)
  21181. * @word modifier, D10V: D10V-Word. (line 6)
  21182. * _ opcode prefix: Xtensa Opcodes. (line 9)
  21183. * __DYNAMIC__, ARC pre-defined symbol: ARC Symbols. (line 14)
  21184. * __GLOBAL_OFFSET_TABLE__, ARC pre-defined symbol: ARC Symbols.
  21185. (line 11)
  21186. * a.out: Object. (line 6)
  21187. * a.out symbol attributes: a.out Symbols. (line 6)
  21188. * AArch64 floating point (IEEE): AArch64 Floating Point.
  21189. (line 6)
  21190. * AArch64 immediate character: AArch64-Chars. (line 13)
  21191. * AArch64 line comment character: AArch64-Chars. (line 6)
  21192. * AArch64 line separator: AArch64-Chars. (line 10)
  21193. * AArch64 machine directives: AArch64 Directives. (line 6)
  21194. * AArch64 opcodes: AArch64 Opcodes. (line 6)
  21195. * AArch64 options (none): AArch64 Options. (line 6)
  21196. * AArch64 register names: AArch64-Regs. (line 6)
  21197. * AArch64 relocations: AArch64-Relocations.
  21198. (line 6)
  21199. * AArch64 support: AArch64-Dependent. (line 6)
  21200. * abort directive: Abort. (line 6)
  21201. * ABORT directive: ABORT (COFF). (line 6)
  21202. * absolute section: Ld Sections. (line 29)
  21203. * absolute-literals directive: Absolute Literals Directive.
  21204. (line 6)
  21205. * ADDI instructions, relaxation: Xtensa Immediate Relaxation.
  21206. (line 43)
  21207. * addition, permitted arguments: Infix Ops. (line 45)
  21208. * addresses: Expressions. (line 6)
  21209. * addresses, format of: Secs Background. (line 65)
  21210. * addressing modes, D10V: D10V-Addressing. (line 6)
  21211. * addressing modes, D30V: D30V-Addressing. (line 6)
  21212. * addressing modes, H8/300: H8/300-Addressing. (line 6)
  21213. * addressing modes, M680x0: M68K-Syntax. (line 21)
  21214. * addressing modes, M68HC11: M68HC11-Syntax. (line 29)
  21215. * addressing modes, S12Z: S12Z Addressing Modes.
  21216. (line 6)
  21217. * addressing modes, SH: SH-Addressing. (line 6)
  21218. * addressing modes, XGATE: XGATE-Syntax. (line 28)
  21219. * addressing modes, Z8000: Z8000-Addressing. (line 6)
  21220. * ADR reg,<label> pseudo op, ARM: ARM Opcodes. (line 25)
  21221. * ADRL reg,<label> pseudo op, ARM: ARM Opcodes. (line 43)
  21222. * ADRP, ADD, LDR/STR group relocations, AArch64: AArch64-Relocations.
  21223. (line 14)
  21224. * advancing location counter: Org. (line 6)
  21225. * align directive: Align. (line 6)
  21226. * align directive <1>: RISC-V-Directives. (line 8)
  21227. * align directive, Nios II: Nios II Directives. (line 6)
  21228. * align directive, OpenRISC: OpenRISC-Directives.
  21229. (line 9)
  21230. * align directive, PRU: PRU Directives. (line 6)
  21231. * align directive, SPARC: Sparc-Directives. (line 9)
  21232. * align directive, TIC54X: TIC54X-Directives. (line 6)
  21233. * aligned instruction bundle: Bundle directives. (line 9)
  21234. * alignment for NEON instructions: ARM-Neon-Alignment. (line 6)
  21235. * alignment of branch targets: Xtensa Automatic Alignment.
  21236. (line 6)
  21237. * alignment of LOOP instructions: Xtensa Automatic Alignment.
  21238. (line 6)
  21239. * Alpha floating point (IEEE): Alpha Floating Point.
  21240. (line 6)
  21241. * Alpha line comment character: Alpha-Chars. (line 6)
  21242. * Alpha line separator: Alpha-Chars. (line 11)
  21243. * Alpha notes: Alpha Notes. (line 6)
  21244. * Alpha options: Alpha Options. (line 6)
  21245. * Alpha registers: Alpha-Regs. (line 6)
  21246. * Alpha relocations: Alpha-Relocs. (line 6)
  21247. * Alpha support: Alpha-Dependent. (line 6)
  21248. * Alpha Syntax: Alpha Options. (line 60)
  21249. * Alpha-only directives: Alpha Directives. (line 9)
  21250. * Altera Nios II support: NiosII-Dependent. (line 6)
  21251. * altered difference tables: Word. (line 12)
  21252. * alternate syntax for the 680x0: M68K-Moto-Syntax. (line 6)
  21253. * ARC Branch Target Address: ARC-Regs. (line 60)
  21254. * ARC BTA saved on exception entry: ARC-Regs. (line 79)
  21255. * ARC Build configuration for: BTA Registers: ARC-Regs. (line 89)
  21256. * ARC Build configuration for: Core Registers: ARC-Regs. (line 97)
  21257. * ARC Build configuration for: Interrupts: ARC-Regs. (line 93)
  21258. * ARC Build Configuration Registers Version: ARC-Regs. (line 85)
  21259. * ARC C preprocessor macro separator: ARC-Chars. (line 31)
  21260. * ARC core general registers: ARC-Regs. (line 10)
  21261. * ARC DCCM RAM Configuration Register: ARC-Regs. (line 101)
  21262. * ARC Exception Cause Register: ARC-Regs. (line 63)
  21263. * ARC Exception Return Address: ARC-Regs. (line 76)
  21264. * ARC extension core registers: ARC-Regs. (line 38)
  21265. * ARC frame pointer: ARC-Regs. (line 17)
  21266. * ARC global pointer: ARC-Regs. (line 14)
  21267. * ARC interrupt link register: ARC-Regs. (line 27)
  21268. * ARC Interrupt Vector Base address: ARC-Regs. (line 66)
  21269. * ARC level 1 interrupt link register: ARC-Regs. (line 23)
  21270. * ARC level 2 interrupt link register: ARC-Regs. (line 31)
  21271. * ARC line comment character: ARC-Chars. (line 11)
  21272. * ARC line separator: ARC-Chars. (line 27)
  21273. * ARC link register: ARC-Regs. (line 35)
  21274. * ARC loop counter: ARC-Regs. (line 41)
  21275. * ARC machine directives: ARC Directives. (line 6)
  21276. * ARC opcodes: ARC Opcodes. (line 6)
  21277. * ARC options: ARC Options. (line 6)
  21278. * ARC Processor Identification register: ARC-Regs. (line 51)
  21279. * ARC Program Counter: ARC-Regs. (line 54)
  21280. * ARC register name prefix character: ARC-Chars. (line 7)
  21281. * ARC register names: ARC-Regs. (line 6)
  21282. * ARC Saved User Stack Pointer: ARC-Regs. (line 73)
  21283. * ARC stack pointer: ARC-Regs. (line 20)
  21284. * ARC Status register: ARC-Regs. (line 57)
  21285. * ARC STATUS32 saved on exception: ARC-Regs. (line 82)
  21286. * ARC Stored STATUS32 register on entry to level P0 interrupts: ARC-Regs.
  21287. (line 69)
  21288. * ARC support: ARC-Dependent. (line 6)
  21289. * ARC symbol prefix character: ARC-Chars. (line 20)
  21290. * ARC word aligned program counter: ARC-Regs. (line 44)
  21291. * arch directive, i386: i386-Arch. (line 6)
  21292. * arch directive, M680x0: M68K-Directives. (line 22)
  21293. * arch directive, MSP 430: MSP430 Directives. (line 18)
  21294. * arch directive, x86-64: i386-Arch. (line 6)
  21295. * architecture options, IP2022: IP2K-Opts. (line 9)
  21296. * architecture options, IP2K: IP2K-Opts. (line 14)
  21297. * architecture options, M16C: M32C-Opts. (line 12)
  21298. * architecture options, M32C: M32C-Opts. (line 9)
  21299. * architecture options, M32R: M32R-Opts. (line 21)
  21300. * architecture options, M32R2: M32R-Opts. (line 17)
  21301. * architecture options, M32RX: M32R-Opts. (line 9)
  21302. * architecture options, M680x0: M68K-Opts. (line 99)
  21303. * Architecture variant option, CRIS: CRIS-Opts. (line 34)
  21304. * architectures, Meta: Meta Options. (line 6)
  21305. * architectures, PowerPC: PowerPC-Opts. (line 6)
  21306. * architectures, SCORE: SCORE-Opts. (line 6)
  21307. * architectures, SPARC: Sparc-Opts. (line 6)
  21308. * arguments for addition: Infix Ops. (line 45)
  21309. * arguments for subtraction: Infix Ops. (line 50)
  21310. * arguments in expressions: Arguments. (line 6)
  21311. * arithmetic functions: Operators. (line 6)
  21312. * arithmetic operands: Arguments. (line 6)
  21313. * ARM data relocations: ARM-Relocations. (line 6)
  21314. * ARM floating point (IEEE): ARM Floating Point. (line 6)
  21315. * ARM identifiers: ARM-Chars. (line 19)
  21316. * ARM immediate character: ARM-Chars. (line 17)
  21317. * ARM line comment character: ARM-Chars. (line 6)
  21318. * ARM line separator: ARM-Chars. (line 14)
  21319. * ARM machine directives: ARM Directives. (line 6)
  21320. * ARM opcodes: ARM Opcodes. (line 6)
  21321. * ARM options (none): ARM Options. (line 6)
  21322. * ARM register names: ARM-Regs. (line 6)
  21323. * ARM support: ARM-Dependent. (line 6)
  21324. * ascii directive: Ascii. (line 6)
  21325. * asciz directive: Asciz. (line 6)
  21326. * asg directive, TIC54X: TIC54X-Directives. (line 18)
  21327. * assembler bugs, reporting: Bug Reporting. (line 6)
  21328. * assembler crash: Bug Criteria. (line 9)
  21329. * assembler directive .3byte, RX: RX-Directives. (line 9)
  21330. * assembler directive .arch, CRIS: CRIS-Pseudos. (line 50)
  21331. * assembler directive .dword, CRIS: CRIS-Pseudos. (line 12)
  21332. * assembler directive .far, M68HC11: M68HC11-Directives. (line 20)
  21333. * assembler directive .fetchalign, RX: RX-Directives. (line 13)
  21334. * assembler directive .interrupt, M68HC11: M68HC11-Directives.
  21335. (line 26)
  21336. * assembler directive .mode, M68HC11: M68HC11-Directives. (line 16)
  21337. * assembler directive .relax, M68HC11: M68HC11-Directives. (line 10)
  21338. * assembler directive .syntax, CRIS: CRIS-Pseudos. (line 18)
  21339. * assembler directive .xrefb, M68HC11: M68HC11-Directives. (line 31)
  21340. * assembler directive BSPEC, MMIX: MMIX-Pseudos. (line 137)
  21341. * assembler directive BYTE, MMIX: MMIX-Pseudos. (line 101)
  21342. * assembler directive ESPEC, MMIX: MMIX-Pseudos. (line 137)
  21343. * assembler directive GREG, MMIX: MMIX-Pseudos. (line 53)
  21344. * assembler directive IS, MMIX: MMIX-Pseudos. (line 44)
  21345. * assembler directive LOC, MMIX: MMIX-Pseudos. (line 7)
  21346. * assembler directive LOCAL, MMIX: MMIX-Pseudos. (line 29)
  21347. * assembler directive OCTA, MMIX: MMIX-Pseudos. (line 113)
  21348. * assembler directive PREFIX, MMIX: MMIX-Pseudos. (line 125)
  21349. * assembler directive TETRA, MMIX: MMIX-Pseudos. (line 113)
  21350. * assembler directive WYDE, MMIX: MMIX-Pseudos. (line 113)
  21351. * assembler directives, CRIS: CRIS-Pseudos. (line 6)
  21352. * assembler directives, M68HC11: M68HC11-Directives. (line 6)
  21353. * assembler directives, M68HC12: M68HC11-Directives. (line 6)
  21354. * assembler directives, MMIX: MMIX-Pseudos. (line 6)
  21355. * assembler directives, RL78: RL78-Directives. (line 6)
  21356. * assembler directives, RX: RX-Directives. (line 6)
  21357. * assembler directives, XGATE: XGATE-Directives. (line 6)
  21358. * assembler internal logic error: As Sections. (line 13)
  21359. * assembler version: v. (line 6)
  21360. * assembler, and linker: Secs Background. (line 10)
  21361. * assembly listings, enabling: a. (line 6)
  21362. * assigning values to symbols: Setting Symbols. (line 6)
  21363. * assigning values to symbols <1>: Equ. (line 6)
  21364. * at register, MIPS: MIPS Macros. (line 35)
  21365. * attributes, symbol: Symbol Attributes. (line 6)
  21366. * att_syntax pseudo op, i386: i386-Variations. (line 6)
  21367. * att_syntax pseudo op, x86-64: i386-Variations. (line 6)
  21368. * auxiliary attributes, COFF symbols: COFF Symbols. (line 19)
  21369. * auxiliary symbol information, COFF: Dim. (line 6)
  21370. * AVR line comment character: AVR-Chars. (line 6)
  21371. * AVR line separator: AVR-Chars. (line 14)
  21372. * AVR modifiers: AVR-Modifiers. (line 6)
  21373. * AVR opcode summary: AVR Opcodes. (line 6)
  21374. * AVR options (none): AVR Options. (line 6)
  21375. * AVR register names: AVR-Regs. (line 6)
  21376. * AVR support: AVR-Dependent. (line 6)
  21377. * A_DIR environment variable, TIC54X: TIC54X-Env. (line 6)
  21378. * backslash (\\): Strings. (line 40)
  21379. * backspace (\b): Strings. (line 15)
  21380. * balign directive: Balign. (line 6)
  21381. * balignl directive: Balign. (line 29)
  21382. * balignw directive: Balign. (line 29)
  21383. * bes directive, TIC54X: TIC54X-Directives. (line 194)
  21384. * bfloat16 directive, i386: i386-Float. (line 14)
  21385. * bfloat16 directive, x86-64: i386-Float. (line 14)
  21386. * big endian output, MIPS: Overview. (line 870)
  21387. * big endian output, PJ: Overview. (line 774)
  21388. * big-endian output, MIPS: MIPS Options. (line 13)
  21389. * big-endian output, TIC6X: TIC6X Options. (line 46)
  21390. * bignums: Bignums. (line 6)
  21391. * binary constants, TIC54X: TIC54X-Constants. (line 8)
  21392. * binary files, including: Incbin. (line 6)
  21393. * binary integers: Integers. (line 6)
  21394. * bit names, IA-64: IA-64-Bits. (line 6)
  21395. * bitfields, not supported on VAX: VAX-no. (line 6)
  21396. * Blackfin directives: Blackfin Directives.
  21397. (line 6)
  21398. * Blackfin options (none): Blackfin Options. (line 6)
  21399. * Blackfin support: Blackfin-Dependent. (line 6)
  21400. * Blackfin syntax: Blackfin Syntax. (line 6)
  21401. * block: Z8000 Directives. (line 55)
  21402. * BMI, i386: i386-BMI. (line 6)
  21403. * BMI, x86-64: i386-BMI. (line 6)
  21404. * BPF line comment character: BPF-Chars. (line 6)
  21405. * BPF opcodes: BPF Opcodes. (line 6)
  21406. * BPF options (none): BPF Options. (line 6)
  21407. * BPF register names: BPF-Regs. (line 6)
  21408. * BPF support: BPF-Dependent. (line 6)
  21409. * branch improvement, M680x0: M68K-Branch. (line 6)
  21410. * branch improvement, M68HC11: M68HC11-Branch. (line 6)
  21411. * branch improvement, VAX: VAX-branch. (line 6)
  21412. * branch instructions, relaxation: Xtensa Branch Relaxation.
  21413. (line 6)
  21414. * Branch Target Address, ARC: ARC-Regs. (line 60)
  21415. * branch target alignment: Xtensa Automatic Alignment.
  21416. (line 6)
  21417. * break directive, TIC54X: TIC54X-Directives. (line 141)
  21418. * BSD syntax: PDP-11-Syntax. (line 6)
  21419. * bss directive: Bss. (line 6)
  21420. * BSS directive: RISC-V-Directives. (line 24)
  21421. * bss directive, TIC54X: TIC54X-Directives. (line 27)
  21422. * bss section: Ld Sections. (line 20)
  21423. * bss section <1>: bss. (line 6)
  21424. * BTA saved on exception entry, ARC: ARC-Regs. (line 79)
  21425. * bug criteria: Bug Criteria. (line 6)
  21426. * bug reports: Bug Reporting. (line 6)
  21427. * bugs in assembler: Reporting Bugs. (line 6)
  21428. * Build configuration for: BTA Registers, ARC: ARC-Regs. (line 89)
  21429. * Build configuration for: Core Registers, ARC: ARC-Regs. (line 97)
  21430. * Build configuration for: Interrupts, ARC: ARC-Regs. (line 93)
  21431. * Build Configuration Registers Version, ARC: ARC-Regs. (line 85)
  21432. * Built-in symbols, CRIS: CRIS-Symbols. (line 6)
  21433. * builtin math functions, TIC54X: TIC54X-Builtins. (line 6)
  21434. * builtin subsym functions, TIC54X: TIC54X-Macros. (line 16)
  21435. * bundle: Bundle directives. (line 9)
  21436. * bundle-locked: Bundle directives. (line 38)
  21437. * bundle_align_mode directive: Bundle directives. (line 9)
  21438. * bundle_lock directive: Bundle directives. (line 31)
  21439. * bundle_unlock directive: Bundle directives. (line 31)
  21440. * bus lock prefixes, i386: i386-Prefixes. (line 36)
  21441. * bval: Z8000 Directives. (line 30)
  21442. * byte directive: Byte. (line 6)
  21443. * byte directive, TIC54X: TIC54X-Directives. (line 34)
  21444. * C preprocessor macro separator, ARC: ARC-Chars. (line 31)
  21445. * C-SKY options: C-SKY Options. (line 6)
  21446. * C-SKY support: C-SKY-Dependent. (line 6)
  21447. * C54XDSP_DIR environment variable, TIC54X: TIC54X-Env. (line 6)
  21448. * call directive, Nios II: Nios II Relocations.
  21449. (line 38)
  21450. * call instructions, i386: i386-Mnemonics. (line 115)
  21451. * call instructions, relaxation: Xtensa Call Relaxation.
  21452. (line 6)
  21453. * call instructions, x86-64: i386-Mnemonics. (line 115)
  21454. * call_hiadj directive, Nios II: Nios II Relocations.
  21455. (line 38)
  21456. * call_lo directive, Nios II: Nios II Relocations.
  21457. (line 38)
  21458. * carriage return (backslash-r): Strings. (line 24)
  21459. * case sensitivity, Z80: Z80-Case. (line 6)
  21460. * cfi_endproc directive: CFI directives. (line 40)
  21461. * cfi_fde_data directive: CFI directives. (line 66)
  21462. * cfi_personality directive: CFI directives. (line 47)
  21463. * cfi_personality_id directive: CFI directives. (line 59)
  21464. * cfi_sections directive: CFI directives. (line 9)
  21465. * cfi_startproc directive: CFI directives. (line 30)
  21466. * char directive, TIC54X: TIC54X-Directives. (line 34)
  21467. * character constant, Z80: Z80-Chars. (line 20)
  21468. * character constants: Characters. (line 6)
  21469. * character escape codes: Strings. (line 15)
  21470. * character escapes, Z80: Z80-Chars. (line 18)
  21471. * character, single: Chars. (line 6)
  21472. * characters used in symbols: Symbol Intro. (line 6)
  21473. * clink directive, TIC54X: TIC54X-Directives. (line 43)
  21474. * code16 directive, i386: i386-16bit. (line 6)
  21475. * code16gcc directive, i386: i386-16bit. (line 6)
  21476. * code32 directive, i386: i386-16bit. (line 6)
  21477. * code64 directive, i386: i386-16bit. (line 6)
  21478. * code64 directive, x86-64: i386-16bit. (line 6)
  21479. * COFF auxiliary symbol information: Dim. (line 6)
  21480. * COFF structure debugging: Tag. (line 6)
  21481. * COFF symbol attributes: COFF Symbols. (line 6)
  21482. * COFF symbol descriptor: Desc. (line 6)
  21483. * COFF symbol storage class: Scl. (line 6)
  21484. * COFF symbol type: Type. (line 11)
  21485. * COFF symbols, debugging: Def. (line 6)
  21486. * COFF value attribute: Val. (line 6)
  21487. * COMDAT: Linkonce. (line 6)
  21488. * comm directive: Comm. (line 6)
  21489. * command line conventions: Command Line. (line 6)
  21490. * command-line options ignored, VAX: VAX-Opts. (line 6)
  21491. * command-line options, V850: V850 Options. (line 9)
  21492. * comment character, XStormy16: XStormy16-Chars. (line 11)
  21493. * comments: Comments. (line 6)
  21494. * comments, M680x0: M68K-Chars. (line 6)
  21495. * comments, removed by preprocessor: Preprocessing. (line 11)
  21496. * common directive, SPARC: Sparc-Directives. (line 12)
  21497. * common sections: Linkonce. (line 6)
  21498. * common variable storage: bss. (line 6)
  21499. * comparison expressions: Infix Ops. (line 56)
  21500. * conditional assembly: If. (line 6)
  21501. * constant, single character: Chars. (line 6)
  21502. * constants: Constants. (line 6)
  21503. * constants, bignum: Bignums. (line 6)
  21504. * constants, character: Characters. (line 6)
  21505. * constants, converted by preprocessor: Preprocessing. (line 14)
  21506. * constants, floating point: Flonums. (line 6)
  21507. * constants, integer: Integers. (line 6)
  21508. * constants, number: Numbers. (line 6)
  21509. * constants, Sparc: Sparc-Constants. (line 6)
  21510. * constants, string: Strings. (line 6)
  21511. * constants, TIC54X: TIC54X-Constants. (line 6)
  21512. * conversion instructions, i386: i386-Mnemonics. (line 66)
  21513. * conversion instructions, x86-64: i386-Mnemonics. (line 66)
  21514. * coprocessor wait, i386: i386-Prefixes. (line 40)
  21515. * copy directive, TIC54X: TIC54X-Directives. (line 52)
  21516. * core general registers, ARC: ARC-Regs. (line 10)
  21517. * cpu directive, ARC: ARC Directives. (line 27)
  21518. * cpu directive, M680x0: M68K-Directives. (line 30)
  21519. * cpu directive, MSP 430: MSP430 Directives. (line 22)
  21520. * CR16 line comment character: CR16-Chars. (line 6)
  21521. * CR16 line separator: CR16-Chars. (line 12)
  21522. * CR16 Operand Qualifiers: CR16 Operand Qualifiers.
  21523. (line 6)
  21524. * CR16 support: CR16-Dependent. (line 6)
  21525. * crash of assembler: Bug Criteria. (line 9)
  21526. * CRIS --emulation=crisaout command-line option: CRIS-Opts. (line 9)
  21527. * CRIS --emulation=criself command-line option: CRIS-Opts. (line 9)
  21528. * CRIS --march=ARCHITECTURE command-line option: CRIS-Opts. (line 34)
  21529. * CRIS --mul-bug-abort command-line option: CRIS-Opts. (line 63)
  21530. * CRIS --no-mul-bug-abort command-line option: CRIS-Opts. (line 63)
  21531. * CRIS --no-underscore command-line option: CRIS-Opts. (line 15)
  21532. * CRIS --pic command-line option: CRIS-Opts. (line 27)
  21533. * CRIS --underscore command-line option: CRIS-Opts. (line 15)
  21534. * CRIS -N command-line option: CRIS-Opts. (line 59)
  21535. * CRIS architecture variant option: CRIS-Opts. (line 34)
  21536. * CRIS assembler directive .arch: CRIS-Pseudos. (line 50)
  21537. * CRIS assembler directive .dword: CRIS-Pseudos. (line 12)
  21538. * CRIS assembler directive .syntax: CRIS-Pseudos. (line 18)
  21539. * CRIS assembler directives: CRIS-Pseudos. (line 6)
  21540. * CRIS built-in symbols: CRIS-Symbols. (line 6)
  21541. * CRIS instruction expansion: CRIS-Expand. (line 6)
  21542. * CRIS line comment characters: CRIS-Chars. (line 6)
  21543. * CRIS options: CRIS-Opts. (line 6)
  21544. * CRIS position-independent code: CRIS-Opts. (line 27)
  21545. * CRIS pseudo-op .arch: CRIS-Pseudos. (line 50)
  21546. * CRIS pseudo-op .dword: CRIS-Pseudos. (line 12)
  21547. * CRIS pseudo-op .syntax: CRIS-Pseudos. (line 18)
  21548. * CRIS pseudo-ops: CRIS-Pseudos. (line 6)
  21549. * CRIS register names: CRIS-Regs. (line 6)
  21550. * CRIS support: CRIS-Dependent. (line 6)
  21551. * CRIS symbols in position-independent code: CRIS-Pic. (line 6)
  21552. * ctbp register, V850: V850-Regs. (line 90)
  21553. * ctoff pseudo-op, V850: V850 Opcodes. (line 110)
  21554. * ctpc register, V850: V850-Regs. (line 82)
  21555. * ctpsw register, V850: V850-Regs. (line 84)
  21556. * current address: Dot. (line 6)
  21557. * current address, advancing: Org. (line 6)
  21558. * c_mode directive, TIC54X: TIC54X-Directives. (line 49)
  21559. * D10V @word modifier: D10V-Word. (line 6)
  21560. * D10V addressing modes: D10V-Addressing. (line 6)
  21561. * D10V floating point: D10V-Float. (line 6)
  21562. * D10V line comment character: D10V-Chars. (line 6)
  21563. * D10V opcode summary: D10V-Opcodes. (line 6)
  21564. * D10V optimization: Overview. (line 653)
  21565. * D10V options: D10V-Opts. (line 6)
  21566. * D10V registers: D10V-Regs. (line 6)
  21567. * D10V size modifiers: D10V-Size. (line 6)
  21568. * D10V sub-instruction ordering: D10V-Chars. (line 14)
  21569. * D10V sub-instructions: D10V-Subs. (line 6)
  21570. * D10V support: D10V-Dependent. (line 6)
  21571. * D10V syntax: D10V-Syntax. (line 6)
  21572. * d24 directive, Z80: Z80 Directives. (line 32)
  21573. * D30V addressing modes: D30V-Addressing. (line 6)
  21574. * D30V floating point: D30V-Float. (line 6)
  21575. * D30V Guarded Execution: D30V-Guarded. (line 6)
  21576. * D30V line comment character: D30V-Chars. (line 6)
  21577. * D30V nops: Overview. (line 661)
  21578. * D30V nops after 32-bit multiply: Overview. (line 664)
  21579. * D30V opcode summary: D30V-Opcodes. (line 6)
  21580. * D30V optimization: Overview. (line 658)
  21581. * D30V options: D30V-Opts. (line 6)
  21582. * D30V registers: D30V-Regs. (line 6)
  21583. * D30V size modifiers: D30V-Size. (line 6)
  21584. * D30V sub-instruction ordering: D30V-Chars. (line 14)
  21585. * D30V sub-instructions: D30V-Subs. (line 6)
  21586. * D30V support: D30V-Dependent. (line 6)
  21587. * D30V syntax: D30V-Syntax. (line 6)
  21588. * d32 directive, Z80: Z80 Directives. (line 37)
  21589. * data alignment on SPARC: Sparc-Aligned-Data. (line 6)
  21590. * data and text sections, joining: R. (line 6)
  21591. * data directive: Data. (line 6)
  21592. * data directive, TIC54X: TIC54X-Directives. (line 59)
  21593. * Data directives: RISC-V-Directives. (line 12)
  21594. * data relocations, ARM: ARM-Relocations. (line 6)
  21595. * data section: Ld Sections. (line 9)
  21596. * data1 directive, M680x0: M68K-Directives. (line 9)
  21597. * data2 directive, M680x0: M68K-Directives. (line 12)
  21598. * db directive, Z80: Z80 Directives. (line 18)
  21599. * dbpc register, V850: V850-Regs. (line 86)
  21600. * dbpsw register, V850: V850-Regs. (line 88)
  21601. * dc directive: Dc. (line 6)
  21602. * dcb directive: Dcb. (line 6)
  21603. * DCCM RAM Configuration Register, ARC: ARC-Regs. (line 101)
  21604. * debuggers, and symbol order: Symbols. (line 10)
  21605. * debugging COFF symbols: Def. (line 6)
  21606. * DEC syntax: PDP-11-Syntax. (line 6)
  21607. * decimal integers: Integers. (line 12)
  21608. * def directive: Def. (line 6)
  21609. * def directive, TIC54X: TIC54X-Directives. (line 101)
  21610. * def24 directive, Z80: Z80 Directives. (line 33)
  21611. * def32 directive, Z80: Z80 Directives. (line 38)
  21612. * defb directive, Z80: Z80 Directives. (line 19)
  21613. * defl directive, Z80: Z80 Directives. (line 47)
  21614. * defm directive, Z80: Z80 Directives. (line 20)
  21615. * defs directive, Z80: Z80 Directives. (line 43)
  21616. * defw directive, Z80: Z80 Directives. (line 28)
  21617. * density instructions: Density Instructions.
  21618. (line 6)
  21619. * dependency tracking: MD. (line 6)
  21620. * deprecated directives: Deprecated. (line 6)
  21621. * desc directive: Desc. (line 6)
  21622. * descriptor, of a.out symbol: Symbol Desc. (line 6)
  21623. * dfloat directive, VAX: VAX-directives. (line 9)
  21624. * difference tables altered: Word. (line 12)
  21625. * difference tables, warning: K. (line 6)
  21626. * differences, mmixal: MMIX-mmixal. (line 6)
  21627. * dim directive: Dim. (line 6)
  21628. * directives and instructions: Statements. (line 20)
  21629. * directives for PowerPC: PowerPC-Pseudo. (line 6)
  21630. * directives for SCORE: SCORE-Pseudo. (line 6)
  21631. * directives, Blackfin: Blackfin Directives.
  21632. (line 6)
  21633. * directives, M32R: M32R-Directives. (line 6)
  21634. * directives, M680x0: M68K-Directives. (line 6)
  21635. * directives, machine independent: Pseudo Ops. (line 6)
  21636. * directives, Xtensa: Xtensa Directives. (line 6)
  21637. * directives, Z8000: Z8000 Directives. (line 6)
  21638. * Disable floating-point instructions: MIPS Floating-Point.
  21639. (line 6)
  21640. * Disable single-precision floating-point operations: MIPS Floating-Point.
  21641. (line 12)
  21642. * displacement sizing character, VAX: VAX-operands. (line 12)
  21643. * dollar local symbols: Symbol Names. (line 123)
  21644. * dot (symbol): Dot. (line 6)
  21645. * double directive: Double. (line 6)
  21646. * double directive, i386: i386-Float. (line 14)
  21647. * double directive, M680x0: M68K-Float. (line 14)
  21648. * double directive, M68HC11: M68HC11-Float. (line 14)
  21649. * double directive, RX: RX-Float. (line 11)
  21650. * double directive, TIC54X: TIC54X-Directives. (line 62)
  21651. * double directive, VAX: VAX-float. (line 15)
  21652. * double directive, x86-64: i386-Float. (line 14)
  21653. * double directive, XGATE: XGATE-Float. (line 13)
  21654. * doublequote (\"): Strings. (line 43)
  21655. * drlist directive, TIC54X: TIC54X-Directives. (line 71)
  21656. * drnolist directive, TIC54X: TIC54X-Directives. (line 71)
  21657. * ds directive: Ds. (line 6)
  21658. * ds directive, Z80: Z80 Directives. (line 42)
  21659. * DTP-relative data directives: RISC-V-Directives. (line 18)
  21660. * dw directive, Z80: Z80 Directives. (line 27)
  21661. * dword directive, BPF: BPF Directives. (line 15)
  21662. * dword directive, Nios II: Nios II Directives. (line 16)
  21663. * dword directive, PRU: PRU Directives. (line 13)
  21664. * EB command-line option, C-SKY: C-SKY Options. (line 18)
  21665. * EB command-line option, Nios II: Nios II Options. (line 22)
  21666. * ecr register, V850: V850-Regs. (line 78)
  21667. * eight-byte integer: Quad. (line 9)
  21668. * eight-byte integer <1>: 8byte. (line 6)
  21669. * eipc register, V850: V850-Regs. (line 70)
  21670. * eipsw register, V850: V850-Regs. (line 72)
  21671. * eject directive: Eject. (line 6)
  21672. * EL command-line option, C-SKY: C-SKY Options. (line 14)
  21673. * EL command-line option, Nios II: Nios II Options. (line 25)
  21674. * ELF symbol type: Type. (line 22)
  21675. * else directive: Else. (line 6)
  21676. * elseif directive: Elseif. (line 6)
  21677. * empty expressions: Empty Exprs. (line 6)
  21678. * emsg directive, TIC54X: TIC54X-Directives. (line 75)
  21679. * emulation: Overview. (line 1124)
  21680. * encoding options, i386: i386-Mnemonics. (line 38)
  21681. * encoding options, x86-64: i386-Mnemonics. (line 38)
  21682. * end directive: End. (line 6)
  21683. * endef directive: Endef. (line 6)
  21684. * endfunc directive: Endfunc. (line 6)
  21685. * endianness, MIPS: Overview. (line 870)
  21686. * endianness, PJ: Overview. (line 774)
  21687. * endif directive: Endif. (line 6)
  21688. * endloop directive, TIC54X: TIC54X-Directives. (line 141)
  21689. * endm directive: Macro. (line 137)
  21690. * endm directive, TIC54X: TIC54X-Directives. (line 151)
  21691. * endproc directive, OpenRISC: OpenRISC-Directives.
  21692. (line 24)
  21693. * endstruct directive, TIC54X: TIC54X-Directives. (line 214)
  21694. * endunion directive, TIC54X: TIC54X-Directives. (line 248)
  21695. * environment settings, TIC54X: TIC54X-Env. (line 6)
  21696. * EOF, newline must precede: Statements. (line 14)
  21697. * ep register, V850: V850-Regs. (line 66)
  21698. * Epiphany line comment character: Epiphany-Chars. (line 6)
  21699. * Epiphany line separator: Epiphany-Chars. (line 14)
  21700. * Epiphany options: Epiphany Options. (line 6)
  21701. * Epiphany support: Epiphany-Dependent. (line 6)
  21702. * equ directive: Equ. (line 6)
  21703. * equ directive, TIC54X: TIC54X-Directives. (line 189)
  21704. * equ directive, Z80: Z80 Directives. (line 52)
  21705. * equiv directive: Equiv. (line 6)
  21706. * eqv directive: Eqv. (line 6)
  21707. * err directive: Err. (line 6)
  21708. * error directive: Error. (line 6)
  21709. * error messages: Errors. (line 6)
  21710. * error on valid input: Bug Criteria. (line 12)
  21711. * errors, caused by warnings: W. (line 16)
  21712. * errors, continuing after: Z. (line 6)
  21713. * escape codes, character: Strings. (line 15)
  21714. * eval directive, TIC54X: TIC54X-Directives. (line 22)
  21715. * even: Z8000 Directives. (line 58)
  21716. * even directive, M680x0: M68K-Directives. (line 15)
  21717. * even directive, TIC54X: TIC54X-Directives. (line 6)
  21718. * Exception Cause Register, ARC: ARC-Regs. (line 63)
  21719. * Exception Return Address, ARC: ARC-Regs. (line 76)
  21720. * exitm directive: Macro. (line 140)
  21721. * expr (internal section): As Sections. (line 17)
  21722. * expression arguments: Arguments. (line 6)
  21723. * expressions: Expressions. (line 6)
  21724. * expressions, comparison: Infix Ops. (line 56)
  21725. * expressions, empty: Empty Exprs. (line 6)
  21726. * expressions, integer: Integer Exprs. (line 6)
  21727. * extAuxRegister directive, ARC: ARC Directives. (line 105)
  21728. * extCondCode directive, ARC: ARC Directives. (line 126)
  21729. * extCoreRegister directive, ARC: ARC Directives. (line 137)
  21730. * extend directive M680x0: M68K-Float. (line 17)
  21731. * extend directive M68HC11: M68HC11-Float. (line 17)
  21732. * extend directive XGATE: XGATE-Float. (line 16)
  21733. * extension core registers, ARC: ARC-Regs. (line 38)
  21734. * extension instructions, i386: i386-Mnemonics. (line 85)
  21735. * extension instructions, x86-64: i386-Mnemonics. (line 85)
  21736. * extern directive: Extern. (line 6)
  21737. * extInstruction directive, ARC: ARC Directives. (line 164)
  21738. * fail directive: Fail. (line 6)
  21739. * far_mode directive, TIC54X: TIC54X-Directives. (line 80)
  21740. * faster processing (-f): f. (line 6)
  21741. * fatal signal: Bug Criteria. (line 9)
  21742. * fclist directive, TIC54X: TIC54X-Directives. (line 85)
  21743. * fcnolist directive, TIC54X: TIC54X-Directives. (line 85)
  21744. * fepc register, V850: V850-Regs. (line 74)
  21745. * fepsw register, V850: V850-Regs. (line 76)
  21746. * ffloat directive, VAX: VAX-directives. (line 13)
  21747. * field directive, TIC54X: TIC54X-Directives. (line 89)
  21748. * file directive: File. (line 6)
  21749. * file directive, MSP 430: MSP430 Directives. (line 6)
  21750. * file name, logical: File. (line 13)
  21751. * file names and line numbers, in warnings/errors: Errors. (line 16)
  21752. * files, including: Include. (line 6)
  21753. * files, input: Input Files. (line 6)
  21754. * fill directive: Fill. (line 6)
  21755. * filling memory: Skip. (line 6)
  21756. * filling memory <1>: Space. (line 6)
  21757. * filling memory with no-op instructions: Nop. (line 6)
  21758. * filling memory with no-op instructions <1>: Nops. (line 6)
  21759. * filling memory with zero bytes: Zero. (line 6)
  21760. * FLIX syntax: Xtensa Syntax. (line 6)
  21761. * float directive: Float. (line 6)
  21762. * float directive, i386: i386-Float. (line 14)
  21763. * float directive, M680x0: M68K-Float. (line 11)
  21764. * float directive, M68HC11: M68HC11-Float. (line 11)
  21765. * float directive, RX: RX-Float. (line 8)
  21766. * float directive, TIC54X: TIC54X-Directives. (line 62)
  21767. * float directive, VAX: VAX-float. (line 15)
  21768. * float directive, x86-64: i386-Float. (line 14)
  21769. * float directive, XGATE: XGATE-Float. (line 10)
  21770. * floating point numbers: Flonums. (line 6)
  21771. * floating point numbers (double): Double. (line 6)
  21772. * floating point numbers (single): Float. (line 6)
  21773. * floating point numbers (single) <1>: Single. (line 6)
  21774. * floating point, AArch64 (IEEE): AArch64 Floating Point.
  21775. (line 6)
  21776. * floating point, Alpha (IEEE): Alpha Floating Point.
  21777. (line 6)
  21778. * floating point, ARM (IEEE): ARM Floating Point. (line 6)
  21779. * floating point, D10V: D10V-Float. (line 6)
  21780. * floating point, D30V: D30V-Float. (line 6)
  21781. * floating point, H8/300 (IEEE): H8/300 Floating Point.
  21782. (line 6)
  21783. * floating point, HPPA (IEEE): HPPA Floating Point.
  21784. (line 6)
  21785. * floating point, i386: i386-Float. (line 6)
  21786. * floating point, M680x0: M68K-Float. (line 6)
  21787. * floating point, M68HC11: M68HC11-Float. (line 6)
  21788. * floating point, MSP 430 (IEEE): MSP430 Floating Point.
  21789. (line 6)
  21790. * floating point, OPENRISC (IEEE): OpenRISC-Float. (line 6)
  21791. * floating point, RX: RX-Float. (line 6)
  21792. * floating point, s390: s390 Floating Point.
  21793. (line 6)
  21794. * floating point, SH (IEEE): SH Floating Point. (line 6)
  21795. * floating point, SPARC (IEEE): Sparc-Float. (line 6)
  21796. * floating point, V850 (IEEE): V850 Floating Point.
  21797. (line 6)
  21798. * floating point, VAX: VAX-float. (line 6)
  21799. * floating point, WebAssembly (IEEE): WebAssembly-Floating-Point.
  21800. (line 6)
  21801. * floating point, x86-64: i386-Float. (line 6)
  21802. * floating point, XGATE: XGATE-Float. (line 6)
  21803. * floating point, Z80: Z80 Floating Point. (line 6)
  21804. * flonums: Flonums. (line 6)
  21805. * force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21806. * format of error messages: Errors. (line 38)
  21807. * format of warning messages: Errors. (line 12)
  21808. * formfeed (\f): Strings. (line 18)
  21809. * four-byte integer: 4byte. (line 6)
  21810. * fpic command-line option, C-SKY: C-SKY Options. (line 22)
  21811. * frame pointer, ARC: ARC-Regs. (line 17)
  21812. * func directive: Func. (line 6)
  21813. * functions, in expressions: Operators. (line 6)
  21814. * gfloat directive, VAX: VAX-directives. (line 17)
  21815. * global: Z8000 Directives. (line 21)
  21816. * global directive: Global. (line 6)
  21817. * global directive, TIC54X: TIC54X-Directives. (line 101)
  21818. * global pointer, ARC: ARC-Regs. (line 14)
  21819. * got directive, Nios II: Nios II Relocations.
  21820. (line 38)
  21821. * gotoff directive, Nios II: Nios II Relocations.
  21822. (line 38)
  21823. * gotoff_hiadj directive, Nios II: Nios II Relocations.
  21824. (line 38)
  21825. * gotoff_lo directive, Nios II: Nios II Relocations.
  21826. (line 38)
  21827. * got_hiadj directive, Nios II: Nios II Relocations.
  21828. (line 38)
  21829. * got_lo directive, Nios II: Nios II Relocations.
  21830. (line 38)
  21831. * gp register, MIPS: MIPS Small Data. (line 6)
  21832. * gp register, V850: V850-Regs. (line 14)
  21833. * gprel directive, Nios II: Nios II Relocations.
  21834. (line 26)
  21835. * grouping data: Sub-Sections. (line 6)
  21836. * H8/300 addressing modes: H8/300-Addressing. (line 6)
  21837. * H8/300 floating point (IEEE): H8/300 Floating Point.
  21838. (line 6)
  21839. * H8/300 line comment character: H8/300-Chars. (line 6)
  21840. * H8/300 line separator: H8/300-Chars. (line 8)
  21841. * H8/300 machine directives (none): H8/300 Directives. (line 6)
  21842. * H8/300 opcode summary: H8/300 Opcodes. (line 6)
  21843. * H8/300 options: H8/300 Options. (line 6)
  21844. * H8/300 registers: H8/300-Regs. (line 6)
  21845. * H8/300 size suffixes: H8/300 Opcodes. (line 160)
  21846. * H8/300 support: H8/300-Dependent. (line 6)
  21847. * H8/300H, assembling for: H8/300 Directives. (line 8)
  21848. * half directive, BPF: BPF Directives. (line 9)
  21849. * half directive, Nios II: Nios II Directives. (line 10)
  21850. * half directive, SPARC: Sparc-Directives. (line 17)
  21851. * half directive, TIC54X: TIC54X-Directives. (line 109)
  21852. * hex character code (\XD...): Strings. (line 36)
  21853. * hexadecimal integers: Integers. (line 15)
  21854. * hexadecimal prefix, S12Z: S12Z Options. (line 17)
  21855. * hexadecimal prefix, Z80: Z80-Chars. (line 15)
  21856. * hfloat directive, i386: i386-Float. (line 14)
  21857. * hfloat directive, VAX: VAX-directives. (line 21)
  21858. * hfloat directive, x86-64: i386-Float. (line 14)
  21859. * hi directive, Nios II: Nios II Relocations.
  21860. (line 20)
  21861. * hi pseudo-op, V850: V850 Opcodes. (line 33)
  21862. * hi0 pseudo-op, V850: V850 Opcodes. (line 10)
  21863. * hiadj directive, Nios II: Nios II Relocations.
  21864. (line 6)
  21865. * hidden directive: Hidden. (line 6)
  21866. * high directive, M32R: M32R-Directives. (line 18)
  21867. * hilo pseudo-op, V850: V850 Opcodes. (line 55)
  21868. * HPPA directives not supported: HPPA Directives. (line 11)
  21869. * HPPA floating point (IEEE): HPPA Floating Point.
  21870. (line 6)
  21871. * HPPA Syntax: HPPA Options. (line 7)
  21872. * HPPA-only directives: HPPA Directives. (line 24)
  21873. * hword directive: hword. (line 6)
  21874. * i386 16-bit code: i386-16bit. (line 6)
  21875. * i386 arch directive: i386-Arch. (line 6)
  21876. * i386 att_syntax pseudo op: i386-Variations. (line 6)
  21877. * i386 conversion instructions: i386-Mnemonics. (line 66)
  21878. * i386 extension instructions: i386-Mnemonics. (line 85)
  21879. * i386 floating point: i386-Float. (line 6)
  21880. * i386 immediate operands: i386-Variations. (line 15)
  21881. * i386 instruction naming: i386-Mnemonics. (line 9)
  21882. * i386 instruction prefixes: i386-Prefixes. (line 6)
  21883. * i386 intel_syntax pseudo op: i386-Variations. (line 6)
  21884. * i386 jump optimization: i386-Jumps. (line 6)
  21885. * i386 jump, call, return: i386-Variations. (line 45)
  21886. * i386 jump/call operands: i386-Variations. (line 15)
  21887. * i386 line comment character: i386-Chars. (line 6)
  21888. * i386 line separator: i386-Chars. (line 18)
  21889. * i386 memory references: i386-Memory. (line 6)
  21890. * i386 mnemonic compatibility: i386-Mnemonics. (line 121)
  21891. * i386 mul, imul instructions: i386-Notes. (line 6)
  21892. * i386 options: i386-Options. (line 6)
  21893. * i386 register operands: i386-Variations. (line 15)
  21894. * i386 registers: i386-Regs. (line 6)
  21895. * i386 sections: i386-Variations. (line 51)
  21896. * i386 size suffixes: i386-Variations. (line 28)
  21897. * i386 source, destination operands: i386-Variations. (line 21)
  21898. * i386 support: i386-Dependent. (line 6)
  21899. * i386 syntax compatibility: i386-Variations. (line 6)
  21900. * i80386 support: i386-Dependent. (line 6)
  21901. * IA-64 line comment character: IA-64-Chars. (line 6)
  21902. * IA-64 line separator: IA-64-Chars. (line 8)
  21903. * IA-64 options: IA-64 Options. (line 6)
  21904. * IA-64 Processor-status-Register bit names: IA-64-Bits. (line 6)
  21905. * IA-64 registers: IA-64-Regs. (line 6)
  21906. * IA-64 relocations: IA-64-Relocs. (line 6)
  21907. * IA-64 support: IA-64-Dependent. (line 6)
  21908. * IA-64 Syntax: IA-64 Options. (line 85)
  21909. * ident directive: Ident. (line 6)
  21910. * identifiers, ARM: ARM-Chars. (line 19)
  21911. * identifiers, MSP 430: MSP430-Chars. (line 17)
  21912. * if directive: If. (line 6)
  21913. * ifb directive: If. (line 21)
  21914. * ifc directive: If. (line 25)
  21915. * ifdef directive: If. (line 16)
  21916. * ifeq directive: If. (line 33)
  21917. * ifeqs directive: If. (line 36)
  21918. * ifge directive: If. (line 40)
  21919. * ifgt directive: If. (line 44)
  21920. * ifle directive: If. (line 48)
  21921. * iflt directive: If. (line 52)
  21922. * ifnb directive: If. (line 56)
  21923. * ifnc directive: If. (line 61)
  21924. * ifndef directive: If. (line 65)
  21925. * ifne directive: If. (line 72)
  21926. * ifnes directive: If. (line 76)
  21927. * ifnotdef directive: If. (line 65)
  21928. * immediate character, AArch64: AArch64-Chars. (line 13)
  21929. * immediate character, ARM: ARM-Chars. (line 17)
  21930. * immediate character, M680x0: M68K-Chars. (line 13)
  21931. * immediate character, VAX: VAX-operands. (line 6)
  21932. * immediate fields, relaxation: Xtensa Immediate Relaxation.
  21933. (line 6)
  21934. * immediate operands, i386: i386-Variations. (line 15)
  21935. * immediate operands, x86-64: i386-Variations. (line 15)
  21936. * imul instruction, i386: i386-Notes. (line 6)
  21937. * imul instruction, x86-64: i386-Notes. (line 6)
  21938. * incbin directive: Incbin. (line 6)
  21939. * include directive: Include. (line 6)
  21940. * include directive search path: I. (line 6)
  21941. * indirect character, VAX: VAX-operands. (line 9)
  21942. * infix operators: Infix Ops. (line 6)
  21943. * inhibiting interrupts, i386: i386-Prefixes. (line 36)
  21944. * input: Input Files. (line 6)
  21945. * input file linenumbers: Input Files. (line 35)
  21946. * INSN directives: RISC-V-Directives. (line 105)
  21947. * instruction aliases, s390: s390 Aliases. (line 6)
  21948. * instruction bundle: Bundle directives. (line 9)
  21949. * instruction expansion, CRIS: CRIS-Expand. (line 6)
  21950. * instruction expansion, MMIX: MMIX-Expand. (line 6)
  21951. * instruction formats, risc-v: RISC-V-Formats. (line 6)
  21952. * instruction formats, s390: s390 Formats. (line 6)
  21953. * instruction marker, s390: s390 Instruction Marker.
  21954. (line 6)
  21955. * instruction mnemonics, s390: s390 Mnemonics. (line 6)
  21956. * instruction naming, i386: i386-Mnemonics. (line 9)
  21957. * instruction naming, x86-64: i386-Mnemonics. (line 9)
  21958. * instruction operand modifier, s390: s390 Operand Modifier.
  21959. (line 6)
  21960. * instruction operands, s390: s390 Operands. (line 6)
  21961. * instruction prefixes, i386: i386-Prefixes. (line 6)
  21962. * instruction set, M680x0: M68K-opcodes. (line 6)
  21963. * instruction set, M68HC11: M68HC11-opcodes. (line 6)
  21964. * instruction set, XGATE: XGATE-opcodes. (line 5)
  21965. * instruction summary, AVR: AVR Opcodes. (line 6)
  21966. * instruction summary, D10V: D10V-Opcodes. (line 6)
  21967. * instruction summary, D30V: D30V-Opcodes. (line 6)
  21968. * instruction summary, H8/300: H8/300 Opcodes. (line 6)
  21969. * instruction summary, LM32: LM32 Opcodes. (line 6)
  21970. * instruction summary, LM32 <1>: OpenRISC-Opcodes. (line 6)
  21971. * instruction summary, SH: SH Opcodes. (line 6)
  21972. * instruction summary, Z8000: Z8000 Opcodes. (line 6)
  21973. * instruction syntax, s390: s390 Syntax. (line 6)
  21974. * instructions and directives: Statements. (line 20)
  21975. * int directive: Int. (line 6)
  21976. * int directive, H8/300: H8/300 Directives. (line 6)
  21977. * int directive, i386: i386-Float. (line 22)
  21978. * int directive, TIC54X: TIC54X-Directives. (line 109)
  21979. * int directive, x86-64: i386-Float. (line 22)
  21980. * integer expressions: Integer Exprs. (line 6)
  21981. * integer, 16-byte: Octa. (line 6)
  21982. * integer, 2-byte: 2byte. (line 6)
  21983. * integer, 4-byte: 4byte. (line 6)
  21984. * integer, 8-byte: Quad. (line 9)
  21985. * integer, 8-byte <1>: 8byte. (line 6)
  21986. * integers: Integers. (line 6)
  21987. * integers, 16-bit: hword. (line 6)
  21988. * integers, 32-bit: Int. (line 6)
  21989. * integers, binary: Integers. (line 6)
  21990. * integers, decimal: Integers. (line 12)
  21991. * integers, hexadecimal: Integers. (line 15)
  21992. * integers, octal: Integers. (line 9)
  21993. * integers, one byte: Byte. (line 6)
  21994. * intel_syntax pseudo op, i386: i386-Variations. (line 6)
  21995. * intel_syntax pseudo op, x86-64: i386-Variations. (line 6)
  21996. * internal assembler sections: As Sections. (line 6)
  21997. * internal directive: Internal. (line 6)
  21998. * interrupt link register, ARC: ARC-Regs. (line 27)
  21999. * Interrupt Vector Base address, ARC: ARC-Regs. (line 66)
  22000. * invalid input: Bug Criteria. (line 14)
  22001. * invocation summary: Overview. (line 6)
  22002. * IP2K architecture options: IP2K-Opts. (line 9)
  22003. * IP2K architecture options <1>: IP2K-Opts. (line 14)
  22004. * IP2K line comment character: IP2K-Chars. (line 6)
  22005. * IP2K line separator: IP2K-Chars. (line 14)
  22006. * IP2K options: IP2K-Opts. (line 6)
  22007. * IP2K support: IP2K-Dependent. (line 6)
  22008. * irp directive: Irp. (line 6)
  22009. * irpc directive: Irpc. (line 6)
  22010. * joining text and data sections: R. (line 6)
  22011. * jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  22012. * jump instructions, i386: i386-Mnemonics. (line 115)
  22013. * jump instructions, relaxation: Xtensa Jump Relaxation.
  22014. (line 6)
  22015. * jump instructions, x86-64: i386-Mnemonics. (line 115)
  22016. * jump optimization, i386: i386-Jumps. (line 6)
  22017. * jump optimization, x86-64: i386-Jumps. (line 6)
  22018. * jump/call operands, i386: i386-Variations. (line 15)
  22019. * jump/call operands, x86-64: i386-Variations. (line 15)
  22020. * L16SI instructions, relaxation: Xtensa Immediate Relaxation.
  22021. (line 23)
  22022. * L16UI instructions, relaxation: Xtensa Immediate Relaxation.
  22023. (line 23)
  22024. * L32I instructions, relaxation: Xtensa Immediate Relaxation.
  22025. (line 23)
  22026. * L8UI instructions, relaxation: Xtensa Immediate Relaxation.
  22027. (line 23)
  22028. * label (:): Statements. (line 31)
  22029. * label directive, TIC54X: TIC54X-Directives. (line 121)
  22030. * labels: Labels. (line 6)
  22031. * labels, Z80: Z80-Labels. (line 6)
  22032. * largecomm directive, ELF: i386-Directives. (line 17)
  22033. * lcomm directive: Lcomm. (line 6)
  22034. * lcomm directive <1>: ARC Directives. (line 9)
  22035. * lcomm directive, COFF: i386-Directives. (line 6)
  22036. * lcommon directive, ARC: ARC Directives. (line 24)
  22037. * ld: Object. (line 15)
  22038. * ldouble directive M680x0: M68K-Float. (line 17)
  22039. * ldouble directive M68HC11: M68HC11-Float. (line 17)
  22040. * ldouble directive XGATE: XGATE-Float. (line 16)
  22041. * ldouble directive, TIC54X: TIC54X-Directives. (line 62)
  22042. * LDR reg,=<expr> pseudo op, AArch64: AArch64 Opcodes. (line 9)
  22043. * LDR reg,=<label> pseudo op, ARM: ARM Opcodes. (line 15)
  22044. * LEB128 directives: RISC-V-Directives. (line 27)
  22045. * length directive, TIC54X: TIC54X-Directives. (line 125)
  22046. * length of symbols: Symbol Intro. (line 20)
  22047. * level 1 interrupt link register, ARC: ARC-Regs. (line 23)
  22048. * level 2 interrupt link register, ARC: ARC-Regs. (line 31)
  22049. * lflags directive (ignored): Lflags. (line 6)
  22050. * line: ARC-Chars. (line 30)
  22051. * line comment character: Comments. (line 19)
  22052. * line comment character, AArch64: AArch64-Chars. (line 6)
  22053. * line comment character, Alpha: Alpha-Chars. (line 6)
  22054. * line comment character, ARC: ARC-Chars. (line 11)
  22055. * line comment character, ARM: ARM-Chars. (line 6)
  22056. * line comment character, AVR: AVR-Chars. (line 6)
  22057. * line comment character, BPF: BPF-Chars. (line 6)
  22058. * line comment character, CR16: CR16-Chars. (line 6)
  22059. * line comment character, D10V: D10V-Chars. (line 6)
  22060. * line comment character, D30V: D30V-Chars. (line 6)
  22061. * line comment character, Epiphany: Epiphany-Chars. (line 6)
  22062. * line comment character, H8/300: H8/300-Chars. (line 6)
  22063. * line comment character, i386: i386-Chars. (line 6)
  22064. * line comment character, IA-64: IA-64-Chars. (line 6)
  22065. * line comment character, IP2K: IP2K-Chars. (line 6)
  22066. * line comment character, LM32: LM32-Chars. (line 6)
  22067. * line comment character, M32C: M32C-Chars. (line 6)
  22068. * line comment character, M680x0: M68K-Chars. (line 6)
  22069. * line comment character, M68HC11: M68HC11-Syntax. (line 17)
  22070. * line comment character, Meta: Meta-Chars. (line 6)
  22071. * line comment character, MicroBlaze: MicroBlaze-Chars. (line 6)
  22072. * line comment character, MIPS: MIPS-Chars. (line 6)
  22073. * line comment character, MSP 430: MSP430-Chars. (line 6)
  22074. * line comment character, Nios II: Nios II Chars. (line 6)
  22075. * line comment character, NS32K: NS32K-Chars. (line 6)
  22076. * line comment character, OpenRISC: OpenRISC-Chars. (line 6)
  22077. * line comment character, PJ: PJ-Chars. (line 6)
  22078. * line comment character, PowerPC: PowerPC-Chars. (line 6)
  22079. * line comment character, PRU: PRU Chars. (line 6)
  22080. * line comment character, RL78: RL78-Chars. (line 6)
  22081. * line comment character, RX: RX-Chars. (line 6)
  22082. * line comment character, S12Z: S12Z Syntax Overview.
  22083. (line 32)
  22084. * line comment character, s390: s390 Characters. (line 6)
  22085. * line comment character, SCORE: SCORE-Chars. (line 6)
  22086. * line comment character, SH: SH-Chars. (line 6)
  22087. * line comment character, Sparc: Sparc-Chars. (line 6)
  22088. * line comment character, TIC54X: TIC54X-Chars. (line 6)
  22089. * line comment character, TIC6X: TIC6X Syntax. (line 6)
  22090. * line comment character, V850: V850-Chars. (line 6)
  22091. * line comment character, VAX: VAX-Chars. (line 6)
  22092. * line comment character, Visium: Visium Characters. (line 6)
  22093. * line comment character, WebAssembly: WebAssembly-Chars. (line 6)
  22094. * line comment character, XGATE: XGATE-Syntax. (line 16)
  22095. * line comment character, XStormy16: XStormy16-Chars. (line 6)
  22096. * line comment character, Z80: Z80-Chars. (line 6)
  22097. * line comment character, Z8000: Z8000-Chars. (line 6)
  22098. * line comment characters, CRIS: CRIS-Chars. (line 6)
  22099. * line comment characters, MMIX: MMIX-Chars. (line 6)
  22100. * line directive: Line. (line 6)
  22101. * line directive, MSP 430: MSP430 Directives. (line 14)
  22102. * line numbers, in input files: Input Files. (line 35)
  22103. * line separator character: Statements. (line 6)
  22104. * line separator character, Nios II: Nios II Chars. (line 6)
  22105. * line separator, AArch64: AArch64-Chars. (line 10)
  22106. * line separator, Alpha: Alpha-Chars. (line 11)
  22107. * line separator, ARC: ARC-Chars. (line 27)
  22108. * line separator, ARM: ARM-Chars. (line 14)
  22109. * line separator, AVR: AVR-Chars. (line 14)
  22110. * line separator, CR16: CR16-Chars. (line 12)
  22111. * line separator, Epiphany: Epiphany-Chars. (line 14)
  22112. * line separator, H8/300: H8/300-Chars. (line 8)
  22113. * line separator, i386: i386-Chars. (line 18)
  22114. * line separator, IA-64: IA-64-Chars. (line 8)
  22115. * line separator, IP2K: IP2K-Chars. (line 14)
  22116. * line separator, LM32: LM32-Chars. (line 12)
  22117. * line separator, M32C: M32C-Chars. (line 14)
  22118. * line separator, M680x0: M68K-Chars. (line 20)
  22119. * line separator, M68HC11: M68HC11-Syntax. (line 26)
  22120. * line separator, Meta: Meta-Chars. (line 8)
  22121. * line separator, MicroBlaze: MicroBlaze-Chars. (line 14)
  22122. * line separator, MIPS: MIPS-Chars. (line 14)
  22123. * line separator, MSP 430: MSP430-Chars. (line 14)
  22124. * line separator, NS32K: NS32K-Chars. (line 18)
  22125. * line separator, OpenRISC: OpenRISC-Chars. (line 9)
  22126. * line separator, PJ: PJ-Chars. (line 14)
  22127. * line separator, PowerPC: PowerPC-Chars. (line 18)
  22128. * line separator, RL78: RL78-Chars. (line 14)
  22129. * line separator, RX: RX-Chars. (line 14)
  22130. * line separator, S12Z: S12Z Syntax Overview.
  22131. (line 41)
  22132. * line separator, s390: s390 Characters. (line 13)
  22133. * line separator, SCORE: SCORE-Chars. (line 14)
  22134. * line separator, SH: SH-Chars. (line 8)
  22135. * line separator, Sparc: Sparc-Chars. (line 14)
  22136. * line separator, TIC54X: TIC54X-Chars. (line 17)
  22137. * line separator, TIC6X: TIC6X Syntax. (line 13)
  22138. * line separator, V850: V850-Chars. (line 13)
  22139. * line separator, VAX: VAX-Chars. (line 14)
  22140. * line separator, Visium: Visium Characters. (line 14)
  22141. * line separator, XGATE: XGATE-Syntax. (line 25)
  22142. * line separator, XStormy16: XStormy16-Chars. (line 14)
  22143. * line separator, Z80: Z80-Chars. (line 13)
  22144. * line separator, Z8000: Z8000-Chars. (line 13)
  22145. * lines starting with #: Comments. (line 33)
  22146. * link register, ARC: ARC-Regs. (line 35)
  22147. * linker: Object. (line 15)
  22148. * linker, and assembler: Secs Background. (line 10)
  22149. * linkonce directive: Linkonce. (line 6)
  22150. * list directive: List. (line 6)
  22151. * list directive, TIC54X: TIC54X-Directives. (line 129)
  22152. * listing control, turning off: Nolist. (line 6)
  22153. * listing control, turning on: List. (line 6)
  22154. * listing control: new page: Eject. (line 6)
  22155. * listing control: paper size: Psize. (line 6)
  22156. * listing control: subtitle: Sbttl. (line 6)
  22157. * listing control: title line: Title. (line 6)
  22158. * listings, enabling: a. (line 6)
  22159. * literal directive: Literal Directive. (line 6)
  22160. * literal pool entries, s390: s390 Literal Pool Entries.
  22161. (line 6)
  22162. * literal_position directive: Literal Position Directive.
  22163. (line 6)
  22164. * literal_prefix directive: Literal Prefix Directive.
  22165. (line 6)
  22166. * little endian output, MIPS: Overview. (line 873)
  22167. * little endian output, PJ: Overview. (line 777)
  22168. * little-endian output, MIPS: MIPS Options. (line 13)
  22169. * little-endian output, TIC6X: TIC6X Options. (line 46)
  22170. * LM32 line comment character: LM32-Chars. (line 6)
  22171. * LM32 line separator: LM32-Chars. (line 12)
  22172. * LM32 modifiers: LM32-Modifiers. (line 6)
  22173. * LM32 opcode summary: LM32 Opcodes. (line 6)
  22174. * LM32 options (none): LM32 Options. (line 6)
  22175. * LM32 register names: LM32-Regs. (line 6)
  22176. * LM32 support: LM32-Dependent. (line 6)
  22177. * ln directive: Ln. (line 6)
  22178. * lo directive, Nios II: Nios II Relocations.
  22179. (line 23)
  22180. * lo pseudo-op, V850: V850 Opcodes. (line 22)
  22181. * loc directive: Loc. (line 6)
  22182. * local common symbols: Lcomm. (line 6)
  22183. * local directive: Local. (line 6)
  22184. * local labels: Symbol Names. (line 53)
  22185. * local symbol names: Symbol Names. (line 40)
  22186. * local symbols, retaining in output: L. (line 6)
  22187. * location counter: Dot. (line 6)
  22188. * location counter, advancing: Org. (line 6)
  22189. * location counter, Z80: Z80-Chars. (line 15)
  22190. * loc_mark_labels directive: Loc_mark_labels. (line 6)
  22191. * logical file name: File. (line 13)
  22192. * logical line number: Line. (line 6)
  22193. * logical line numbers: Comments. (line 33)
  22194. * long directive: Long. (line 6)
  22195. * long directive, i386: i386-Float. (line 22)
  22196. * long directive, TIC54X: TIC54X-Directives. (line 133)
  22197. * long directive, x86-64: i386-Float. (line 22)
  22198. * longcall pseudo-op, V850: V850 Opcodes. (line 122)
  22199. * longcalls directive: Longcalls Directive.
  22200. (line 6)
  22201. * longjump pseudo-op, V850: V850 Opcodes. (line 128)
  22202. * Loongson Content Address Memory (CAM) generation override: MIPS ASE Instruction Generation Overrides.
  22203. (line 81)
  22204. * Loongson EXTensions (EXT) instructions generation override: MIPS ASE Instruction Generation Overrides.
  22205. (line 86)
  22206. * Loongson EXTensions R2 (EXT2) instructions generation override: MIPS ASE Instruction Generation Overrides.
  22207. (line 91)
  22208. * Loongson MultiMedia extensions Instructions (MMI) generation override: MIPS ASE Instruction Generation Overrides.
  22209. (line 76)
  22210. * loop counter, ARC: ARC-Regs. (line 41)
  22211. * loop directive, TIC54X: TIC54X-Directives. (line 141)
  22212. * LOOP instructions, alignment: Xtensa Automatic Alignment.
  22213. (line 6)
  22214. * low directive, M32R: M32R-Directives. (line 9)
  22215. * lp register, V850: V850-Regs. (line 68)
  22216. * lval: Z8000 Directives. (line 27)
  22217. * LWP, i386: i386-LWP. (line 6)
  22218. * LWP, x86-64: i386-LWP. (line 6)
  22219. * M16C architecture option: M32C-Opts. (line 12)
  22220. * M32C architecture option: M32C-Opts. (line 9)
  22221. * M32C line comment character: M32C-Chars. (line 6)
  22222. * M32C line separator: M32C-Chars. (line 14)
  22223. * M32C modifiers: M32C-Modifiers. (line 6)
  22224. * M32C options: M32C-Opts. (line 6)
  22225. * M32C support: M32C-Dependent. (line 6)
  22226. * M32R architecture options: M32R-Opts. (line 9)
  22227. * M32R architecture options <1>: M32R-Opts. (line 17)
  22228. * M32R architecture options <2>: M32R-Opts. (line 21)
  22229. * M32R directives: M32R-Directives. (line 6)
  22230. * M32R options: M32R-Opts. (line 6)
  22231. * M32R support: M32R-Dependent. (line 6)
  22232. * M32R warnings: M32R-Warnings. (line 6)
  22233. * M680x0 addressing modes: M68K-Syntax. (line 21)
  22234. * M680x0 architecture options: M68K-Opts. (line 99)
  22235. * M680x0 branch improvement: M68K-Branch. (line 6)
  22236. * M680x0 directives: M68K-Directives. (line 6)
  22237. * M680x0 floating point: M68K-Float. (line 6)
  22238. * M680x0 immediate character: M68K-Chars. (line 13)
  22239. * M680x0 line comment character: M68K-Chars. (line 6)
  22240. * M680x0 line separator: M68K-Chars. (line 20)
  22241. * M680x0 opcodes: M68K-opcodes. (line 6)
  22242. * M680x0 options: M68K-Opts. (line 6)
  22243. * M680x0 pseudo-opcodes: M68K-Branch. (line 6)
  22244. * M680x0 size modifiers: M68K-Syntax. (line 8)
  22245. * M680x0 support: M68K-Dependent. (line 6)
  22246. * M680x0 syntax: M68K-Syntax. (line 8)
  22247. * M68HC11 addressing modes: M68HC11-Syntax. (line 29)
  22248. * M68HC11 and M68HC12 support: M68HC11-Dependent. (line 6)
  22249. * M68HC11 assembler directive .far: M68HC11-Directives. (line 20)
  22250. * M68HC11 assembler directive .interrupt: M68HC11-Directives.
  22251. (line 26)
  22252. * M68HC11 assembler directive .mode: M68HC11-Directives. (line 16)
  22253. * M68HC11 assembler directive .relax: M68HC11-Directives. (line 10)
  22254. * M68HC11 assembler directive .xrefb: M68HC11-Directives. (line 31)
  22255. * M68HC11 assembler directives: M68HC11-Directives. (line 6)
  22256. * M68HC11 branch improvement: M68HC11-Branch. (line 6)
  22257. * M68HC11 floating point: M68HC11-Float. (line 6)
  22258. * M68HC11 line comment character: M68HC11-Syntax. (line 17)
  22259. * M68HC11 line separator: M68HC11-Syntax. (line 26)
  22260. * M68HC11 modifiers: M68HC11-Modifiers. (line 6)
  22261. * M68HC11 opcodes: M68HC11-opcodes. (line 6)
  22262. * M68HC11 options: M68HC11-Opts. (line 6)
  22263. * M68HC11 pseudo-opcodes: M68HC11-Branch. (line 6)
  22264. * M68HC11 syntax: M68HC11-Syntax. (line 6)
  22265. * M68HC12 assembler directives: M68HC11-Directives. (line 6)
  22266. * mA6 command-line option, ARC: ARC Options. (line 14)
  22267. * mA7 command-line option, ARC: ARC Options. (line 39)
  22268. * machine dependencies: Machine Dependencies.
  22269. (line 6)
  22270. * machine directives, AArch64: AArch64 Directives. (line 6)
  22271. * machine directives, ARC: ARC Directives. (line 6)
  22272. * machine directives, ARM: ARM Directives. (line 6)
  22273. * machine directives, BPF: BPF Directives. (line 6)
  22274. * machine directives, H8/300 (none): H8/300 Directives. (line 6)
  22275. * machine directives, MSP 430: MSP430 Directives. (line 6)
  22276. * machine directives, Nios II: Nios II Directives. (line 6)
  22277. * machine directives, OPENRISC: OpenRISC-Directives.
  22278. (line 6)
  22279. * machine directives, PRU: PRU Directives. (line 6)
  22280. * machine directives, RISC-V: RISC-V-Directives. (line 6)
  22281. * machine directives, SH: SH Directives. (line 6)
  22282. * machine directives, SPARC: Sparc-Directives. (line 6)
  22283. * machine directives, TIC54X: TIC54X-Directives. (line 6)
  22284. * machine directives, TIC6X: TIC6X Directives. (line 6)
  22285. * machine directives, TILE-Gx: TILE-Gx Directives. (line 6)
  22286. * machine directives, TILEPro: TILEPro Directives. (line 6)
  22287. * machine directives, V850: V850 Directives. (line 6)
  22288. * machine directives, VAX: VAX-directives. (line 6)
  22289. * machine directives, x86: i386-Directives. (line 6)
  22290. * machine directives, XStormy16: XStormy16 Directives.
  22291. (line 6)
  22292. * machine independent directives: Pseudo Ops. (line 6)
  22293. * machine instructions (not covered): Manual. (line 14)
  22294. * machine relocations, Nios II: Nios II Relocations.
  22295. (line 6)
  22296. * machine relocations, PRU: PRU Relocations. (line 6)
  22297. * machine-independent syntax: Syntax. (line 6)
  22298. * macro directive: Macro. (line 28)
  22299. * macro directive, TIC54X: TIC54X-Directives. (line 151)
  22300. * macros: Macro. (line 6)
  22301. * macros, count executed: Macro. (line 142)
  22302. * Macros, MSP 430: MSP430-Macros. (line 6)
  22303. * macros, TIC54X: TIC54X-Macros. (line 6)
  22304. * make rules: MD. (line 6)
  22305. * manual, structure and purpose: Manual. (line 6)
  22306. * marc600 command-line option, ARC: ARC Options. (line 14)
  22307. * mARC601 command-line option, ARC: ARC Options. (line 27)
  22308. * mARC700 command-line option, ARC: ARC Options. (line 39)
  22309. * march command-line option, C-SKY: C-SKY Options. (line 6)
  22310. * march command-line option, Nios II: Nios II Options. (line 28)
  22311. * math builtins, TIC54X: TIC54X-Builtins. (line 6)
  22312. * Maximum number of continuation lines: listing. (line 34)
  22313. * mbig-endian command-line option, C-SKY: C-SKY Options. (line 18)
  22314. * mbranch-stub command-line option, C-SKY: C-SKY Options. (line 34)
  22315. * mcache command-line option, C-SKY: C-SKY Options. (line 100)
  22316. * mcp command-line option, C-SKY: C-SKY Options. (line 97)
  22317. * mcpu command-line option, C-SKY: C-SKY Options. (line 10)
  22318. * mdsp command-line option, C-SKY: C-SKY Options. (line 109)
  22319. * medsp command-line option, C-SKY: C-SKY Options. (line 112)
  22320. * melrw command-line option, C-SKY: C-SKY Options. (line 64)
  22321. * mEM command-line option, ARC: ARC Options. (line 42)
  22322. * memory references, i386: i386-Memory. (line 6)
  22323. * memory references, x86-64: i386-Memory. (line 6)
  22324. * memory-mapped registers, TIC54X: TIC54X-MMRegs. (line 6)
  22325. * merging text and data sections: R. (line 6)
  22326. * messages from assembler: Errors. (line 6)
  22327. * Meta architectures: Meta Options. (line 6)
  22328. * Meta line comment character: Meta-Chars. (line 6)
  22329. * Meta line separator: Meta-Chars. (line 8)
  22330. * Meta options: Meta Options. (line 6)
  22331. * Meta registers: Meta-Regs. (line 6)
  22332. * Meta support: Meta-Dependent. (line 6)
  22333. * mforce2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  22334. * mhard-float command-line option, C-SKY: C-SKY Options. (line 91)
  22335. * mHS command-line option, ARC: ARC Options. (line 64)
  22336. * MicroBlaze architectures: MicroBlaze-Dependent.
  22337. (line 6)
  22338. * MicroBlaze directives: MicroBlaze Directives.
  22339. (line 6)
  22340. * MicroBlaze line comment character: MicroBlaze-Chars. (line 6)
  22341. * MicroBlaze line separator: MicroBlaze-Chars. (line 14)
  22342. * MicroBlaze support: MicroBlaze-Dependent.
  22343. (line 12)
  22344. * minus, permitted arguments: Infix Ops. (line 50)
  22345. * MIPS 32-bit microMIPS instruction generation override: MIPS assembly options.
  22346. (line 18)
  22347. * MIPS architecture options: MIPS Options. (line 29)
  22348. * MIPS big-endian output: MIPS Options. (line 13)
  22349. * MIPS CPU override: MIPS ISA. (line 18)
  22350. * MIPS cyclic redundancy check (CRC) instruction generation override: MIPS ASE Instruction Generation Overrides.
  22351. (line 68)
  22352. * MIPS directives to override command-line options: MIPS assembly options.
  22353. (line 6)
  22354. * MIPS DSP Release 1 instruction generation override: MIPS ASE Instruction Generation Overrides.
  22355. (line 21)
  22356. * MIPS DSP Release 2 instruction generation override: MIPS ASE Instruction Generation Overrides.
  22357. (line 26)
  22358. * MIPS DSP Release 3 instruction generation override: MIPS ASE Instruction Generation Overrides.
  22359. (line 31)
  22360. * MIPS endianness: Overview. (line 870)
  22361. * MIPS eXtended Physical Address (XPA) instruction generation override: MIPS ASE Instruction Generation Overrides.
  22362. (line 57)
  22363. * MIPS Global INValidate (GINV) instruction generation override: MIPS ASE Instruction Generation Overrides.
  22364. (line 72)
  22365. * MIPS IEEE 754 NaN data encoding selection: MIPS NaN Encodings.
  22366. (line 6)
  22367. * MIPS ISA: Overview. (line 876)
  22368. * MIPS ISA override: MIPS ISA. (line 6)
  22369. * MIPS line comment character: MIPS-Chars. (line 6)
  22370. * MIPS line separator: MIPS-Chars. (line 14)
  22371. * MIPS little-endian output: MIPS Options. (line 13)
  22372. * MIPS MCU instruction generation override: MIPS ASE Instruction Generation Overrides.
  22373. (line 42)
  22374. * MIPS MDMX instruction generation override: MIPS ASE Instruction Generation Overrides.
  22375. (line 16)
  22376. * MIPS MIPS-3D instruction generation override: MIPS ASE Instruction Generation Overrides.
  22377. (line 6)
  22378. * MIPS MT instruction generation override: MIPS ASE Instruction Generation Overrides.
  22379. (line 37)
  22380. * MIPS option stack: MIPS Option Stack. (line 6)
  22381. * MIPS processor: MIPS-Dependent. (line 6)
  22382. * MIPS SIMD Architecture instruction generation override: MIPS ASE Instruction Generation Overrides.
  22383. (line 47)
  22384. * MIPS16e2 instruction generation override: MIPS ASE Instruction Generation Overrides.
  22385. (line 61)
  22386. * mistack command-line option, C-SKY: C-SKY Options. (line 82)
  22387. * MIT: M68K-Syntax. (line 6)
  22388. * mjsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  22389. * mlabr command-line option, C-SKY: C-SKY Options. (line 75)
  22390. * mlaf command-line option, C-SKY: C-SKY Options. (line 69)
  22391. * mlib directive, TIC54X: TIC54X-Directives. (line 157)
  22392. * mlink-relax command-line option, PRU: PRU Options. (line 6)
  22393. * mlist directive, TIC54X: TIC54X-Directives. (line 162)
  22394. * mliterals-after-br command-line option, C-SKY: C-SKY Options.
  22395. (line 75)
  22396. * mliterals-after-func command-line option, C-SKY: C-SKY Options.
  22397. (line 69)
  22398. * mlittle-endian command-line option, C-SKY: C-SKY Options. (line 14)
  22399. * mljump command-line option, C-SKY: C-SKY Options. (line 26)
  22400. * MMIX assembler directive BSPEC: MMIX-Pseudos. (line 137)
  22401. * MMIX assembler directive BYTE: MMIX-Pseudos. (line 101)
  22402. * MMIX assembler directive ESPEC: MMIX-Pseudos. (line 137)
  22403. * MMIX assembler directive GREG: MMIX-Pseudos. (line 53)
  22404. * MMIX assembler directive IS: MMIX-Pseudos. (line 44)
  22405. * MMIX assembler directive LOC: MMIX-Pseudos. (line 7)
  22406. * MMIX assembler directive LOCAL: MMIX-Pseudos. (line 29)
  22407. * MMIX assembler directive OCTA: MMIX-Pseudos. (line 113)
  22408. * MMIX assembler directive PREFIX: MMIX-Pseudos. (line 125)
  22409. * MMIX assembler directive TETRA: MMIX-Pseudos. (line 113)
  22410. * MMIX assembler directive WYDE: MMIX-Pseudos. (line 113)
  22411. * MMIX assembler directives: MMIX-Pseudos. (line 6)
  22412. * MMIX line comment characters: MMIX-Chars. (line 6)
  22413. * MMIX options: MMIX-Opts. (line 6)
  22414. * MMIX pseudo-op BSPEC: MMIX-Pseudos. (line 137)
  22415. * MMIX pseudo-op BYTE: MMIX-Pseudos. (line 101)
  22416. * MMIX pseudo-op ESPEC: MMIX-Pseudos. (line 137)
  22417. * MMIX pseudo-op GREG: MMIX-Pseudos. (line 53)
  22418. * MMIX pseudo-op IS: MMIX-Pseudos. (line 44)
  22419. * MMIX pseudo-op LOC: MMIX-Pseudos. (line 7)
  22420. * MMIX pseudo-op LOCAL: MMIX-Pseudos. (line 29)
  22421. * MMIX pseudo-op OCTA: MMIX-Pseudos. (line 113)
  22422. * MMIX pseudo-op PREFIX: MMIX-Pseudos. (line 125)
  22423. * MMIX pseudo-op TETRA: MMIX-Pseudos. (line 113)
  22424. * MMIX pseudo-op WYDE: MMIX-Pseudos. (line 113)
  22425. * MMIX pseudo-ops: MMIX-Pseudos. (line 6)
  22426. * MMIX register names: MMIX-Regs. (line 6)
  22427. * MMIX support: MMIX-Dependent. (line 6)
  22428. * mmixal differences: MMIX-mmixal. (line 6)
  22429. * mmp command-line option, C-SKY: C-SKY Options. (line 94)
  22430. * mmregs directive, TIC54X: TIC54X-Directives. (line 167)
  22431. * mmsg directive, TIC54X: TIC54X-Directives. (line 75)
  22432. * MMX, i386: i386-SIMD. (line 6)
  22433. * MMX, x86-64: i386-SIMD. (line 6)
  22434. * mnemonic compatibility, i386: i386-Mnemonics. (line 121)
  22435. * mnemonic suffixes, i386: i386-Variations. (line 28)
  22436. * mnemonic suffixes, x86-64: i386-Variations. (line 28)
  22437. * mnemonics for opcodes, VAX: VAX-opcodes. (line 6)
  22438. * mnemonics, AVR: AVR Opcodes. (line 6)
  22439. * mnemonics, D10V: D10V-Opcodes. (line 6)
  22440. * mnemonics, D30V: D30V-Opcodes. (line 6)
  22441. * mnemonics, H8/300: H8/300 Opcodes. (line 6)
  22442. * mnemonics, LM32: LM32 Opcodes. (line 6)
  22443. * mnemonics, OpenRISC: OpenRISC-Opcodes. (line 6)
  22444. * mnemonics, SH: SH Opcodes. (line 6)
  22445. * mnemonics, Z8000: Z8000 Opcodes. (line 6)
  22446. * mno-branch-stub command-line option, C-SKY: C-SKY Options. (line 34)
  22447. * mno-elrw command-line option, C-SKY: C-SKY Options. (line 64)
  22448. * mno-force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  22449. * mno-istack command-line option, C-SKY: C-SKY Options. (line 82)
  22450. * mno-jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  22451. * mno-labr command-line option, C-SKY: C-SKY Options. (line 75)
  22452. * mno-laf command-line option, C-SKY: C-SKY Options. (line 69)
  22453. * mno-link-relax command-line option, PRU: PRU Options. (line 12)
  22454. * mno-literals-after-func command-line option, C-SKY: C-SKY Options.
  22455. (line 69)
  22456. * mno-ljump command-line option, C-SKY: C-SKY Options. (line 26)
  22457. * mno-lrw command-line option, C-SKY: C-SKY Options. (line 59)
  22458. * mno-warn-regname-label command-line option, PRU: PRU Options.
  22459. (line 16)
  22460. * mnolist directive, TIC54X: TIC54X-Directives. (line 162)
  22461. * mnoliterals-after-br command-line option, C-SKY: C-SKY Options.
  22462. (line 75)
  22463. * mnolrw command-line option, C-SKY: C-SKY Options. (line 59)
  22464. * mnps400 command-line option, ARC: ARC Options. (line 79)
  22465. * modifiers, M32C: M32C-Modifiers. (line 6)
  22466. * module layout, WebAssembly: WebAssembly-module-layout.
  22467. (line 6)
  22468. * Motorola syntax for the 680x0: M68K-Moto-Syntax. (line 6)
  22469. * MOVI instructions, relaxation: Xtensa Immediate Relaxation.
  22470. (line 12)
  22471. * MOVN, MOVZ and MOVK group relocations, AArch64: AArch64-Relocations.
  22472. (line 6)
  22473. * MOVW and MOVT relocations, ARM: ARM-Relocations. (line 21)
  22474. * MRI compatibility mode: M. (line 6)
  22475. * mri directive: MRI. (line 6)
  22476. * MRI mode, temporarily: MRI. (line 6)
  22477. * msecurity command-line option, C-SKY: C-SKY Options. (line 103)
  22478. * MSP 430 floating point (IEEE): MSP430 Floating Point.
  22479. (line 6)
  22480. * MSP 430 identifiers: MSP430-Chars. (line 17)
  22481. * MSP 430 line comment character: MSP430-Chars. (line 6)
  22482. * MSP 430 line separator: MSP430-Chars. (line 14)
  22483. * MSP 430 machine directives: MSP430 Directives. (line 6)
  22484. * MSP 430 macros: MSP430-Macros. (line 6)
  22485. * MSP 430 opcodes: MSP430 Opcodes. (line 6)
  22486. * MSP 430 options (none): MSP430 Options. (line 6)
  22487. * MSP 430 profiling capability: MSP430 Profiling Capability.
  22488. (line 6)
  22489. * MSP 430 register names: MSP430-Regs. (line 6)
  22490. * MSP 430 support: MSP430-Dependent. (line 6)
  22491. * MSP430 Assembler Extensions: MSP430-Ext. (line 6)
  22492. * mspabi_attribute directive, MSP430: MSP430 Directives. (line 38)
  22493. * mtrust command-line option, C-SKY: C-SKY Options. (line 106)
  22494. * mul instruction, i386: i386-Notes. (line 6)
  22495. * mul instruction, x86-64: i386-Notes. (line 6)
  22496. * mvdsp command-line option, C-SKY: C-SKY Options. (line 115)
  22497. * N32K support: NS32K-Dependent. (line 6)
  22498. * name: Z8000 Directives. (line 18)
  22499. * named section: Section. (line 6)
  22500. * named sections: Ld Sections. (line 8)
  22501. * names, symbol: Symbol Names. (line 6)
  22502. * naming object file: o. (line 6)
  22503. * NDS32 options: NDS32 Options. (line 6)
  22504. * NDS32 processor: NDS32-Dependent. (line 6)
  22505. * new page, in listings: Eject. (line 6)
  22506. * newblock directive, TIC54X: TIC54X-Directives. (line 173)
  22507. * newline (\n): Strings. (line 21)
  22508. * newline, required at file end: Statements. (line 14)
  22509. * Nios II line comment character: Nios II Chars. (line 6)
  22510. * Nios II line separator character: Nios II Chars. (line 6)
  22511. * Nios II machine directives: Nios II Directives. (line 6)
  22512. * Nios II machine relocations: Nios II Relocations.
  22513. (line 6)
  22514. * Nios II opcodes: Nios II Opcodes. (line 6)
  22515. * Nios II options: Nios II Options. (line 6)
  22516. * Nios II support: NiosII-Dependent. (line 6)
  22517. * Nios support: NiosII-Dependent. (line 6)
  22518. * no-absolute-literals directive: Absolute Literals Directive.
  22519. (line 6)
  22520. * no-force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  22521. * no-jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  22522. * no-longcalls directive: Longcalls Directive.
  22523. (line 6)
  22524. * no-relax command-line option, Nios II: Nios II Options. (line 19)
  22525. * no-schedule directive: Schedule Directive. (line 6)
  22526. * no-transform directive: Transform Directive.
  22527. (line 6)
  22528. * nodelay directive, OpenRISC: OpenRISC-Directives.
  22529. (line 15)
  22530. * nolist directive: Nolist. (line 6)
  22531. * nolist directive, TIC54X: TIC54X-Directives. (line 129)
  22532. * nop directive: Nop. (line 6)
  22533. * NOP pseudo op, ARM: ARM Opcodes. (line 9)
  22534. * nops directive: Nops. (line 6)
  22535. * notes for Alpha: Alpha Notes. (line 6)
  22536. * notes for WebAssembly: WebAssembly-Notes. (line 6)
  22537. * NS32K line comment character: NS32K-Chars. (line 6)
  22538. * NS32K line separator: NS32K-Chars. (line 18)
  22539. * null-terminated strings: Asciz. (line 6)
  22540. * number constants: Numbers. (line 6)
  22541. * number of macros executed: Macro. (line 142)
  22542. * numbered subsections: Sub-Sections. (line 6)
  22543. * numbers, 16-bit: hword. (line 6)
  22544. * numeric values: Expressions. (line 6)
  22545. * nword directive, SPARC: Sparc-Directives. (line 20)
  22546. * Object Attribute, RISC-V: RISC-V-ATTRIBUTE. (line 6)
  22547. * object attributes: Object Attributes. (line 6)
  22548. * object file: Object. (line 6)
  22549. * object file format: Object Formats. (line 6)
  22550. * object file name: o. (line 6)
  22551. * object file, after errors: Z. (line 6)
  22552. * obsolescent directives: Deprecated. (line 6)
  22553. * octa directive: Octa. (line 6)
  22554. * octal character code (\DDD): Strings. (line 30)
  22555. * octal integers: Integers. (line 9)
  22556. * offset directive: Offset. (line 6)
  22557. * offset directive, V850: V850 Directives. (line 6)
  22558. * opcode mnemonics, VAX: VAX-opcodes. (line 6)
  22559. * opcode names, TILE-Gx: TILE-Gx Opcodes. (line 6)
  22560. * opcode names, TILEPro: TILEPro Opcodes. (line 6)
  22561. * opcode names, Xtensa: Xtensa Opcodes. (line 6)
  22562. * opcode summary, AVR: AVR Opcodes. (line 6)
  22563. * opcode summary, D10V: D10V-Opcodes. (line 6)
  22564. * opcode summary, D30V: D30V-Opcodes. (line 6)
  22565. * opcode summary, H8/300: H8/300 Opcodes. (line 6)
  22566. * opcode summary, LM32: LM32 Opcodes. (line 6)
  22567. * opcode summary, OpenRISC: OpenRISC-Opcodes. (line 6)
  22568. * opcode summary, SH: SH Opcodes. (line 6)
  22569. * opcode summary, Z8000: Z8000 Opcodes. (line 6)
  22570. * opcodes for AArch64: AArch64 Opcodes. (line 6)
  22571. * opcodes for ARC: ARC Opcodes. (line 6)
  22572. * opcodes for ARM: ARM Opcodes. (line 6)
  22573. * opcodes for BPF: BPF Opcodes. (line 6)
  22574. * opcodes for MSP 430: MSP430 Opcodes. (line 6)
  22575. * opcodes for Nios II: Nios II Opcodes. (line 6)
  22576. * opcodes for PRU: PRU Opcodes. (line 6)
  22577. * opcodes for V850: V850 Opcodes. (line 6)
  22578. * opcodes, M680x0: M68K-opcodes. (line 6)
  22579. * opcodes, M68HC11: M68HC11-opcodes. (line 6)
  22580. * opcodes, WebAssembly: WebAssembly-Opcodes.
  22581. (line 6)
  22582. * OPENRISC floating point (IEEE): OpenRISC-Float. (line 6)
  22583. * OpenRISC line comment character: OpenRISC-Chars. (line 6)
  22584. * OpenRISC line separator: OpenRISC-Chars. (line 9)
  22585. * OPENRISC machine directives: OpenRISC-Directives.
  22586. (line 6)
  22587. * OpenRISC opcode summary: OpenRISC-Opcodes. (line 6)
  22588. * OpenRISC registers: OpenRISC-Regs. (line 6)
  22589. * OpenRISC relocations: OpenRISC-Relocs. (line 6)
  22590. * OPENRISC support: OpenRISC-Dependent. (line 6)
  22591. * OPENRISC syntax: OpenRISC-Dependent. (line 13)
  22592. * operand delimiters, i386: i386-Variations. (line 15)
  22593. * operand delimiters, x86-64: i386-Variations. (line 15)
  22594. * operand notation, VAX: VAX-operands. (line 6)
  22595. * operands in expressions: Arguments. (line 6)
  22596. * operator precedence: Infix Ops. (line 11)
  22597. * operators, in expressions: Operators. (line 6)
  22598. * operators, permitted arguments: Infix Ops. (line 6)
  22599. * optimization, D10V: Overview. (line 653)
  22600. * optimization, D30V: Overview. (line 658)
  22601. * optimizations: Xtensa Optimizations.
  22602. (line 6)
  22603. * Option directive: RISC-V-Directives. (line 34)
  22604. * option directive: RISC-V-Directives. (line 34)
  22605. * option directive, TIC54X: TIC54X-Directives. (line 177)
  22606. * option summary: Overview. (line 6)
  22607. * options for AArch64 (none): AArch64 Options. (line 6)
  22608. * options for Alpha: Alpha Options. (line 6)
  22609. * options for ARC: ARC Options. (line 6)
  22610. * options for ARM (none): ARM Options. (line 6)
  22611. * options for AVR (none): AVR Options. (line 6)
  22612. * options for Blackfin (none): Blackfin Options. (line 6)
  22613. * options for BPF (none): BPF Options. (line 6)
  22614. * options for C-SKY: C-SKY Options. (line 6)
  22615. * options for i386: i386-Options. (line 6)
  22616. * options for IA-64: IA-64 Options. (line 6)
  22617. * options for LM32 (none): LM32 Options. (line 6)
  22618. * options for Meta: Meta Options. (line 6)
  22619. * options for MSP430 (none): MSP430 Options. (line 6)
  22620. * options for NDS32: NDS32 Options. (line 6)
  22621. * options for Nios II: Nios II Options. (line 6)
  22622. * options for PDP-11: PDP-11-Options. (line 6)
  22623. * options for PowerPC: PowerPC-Opts. (line 6)
  22624. * options for PRU: PRU Options. (line 6)
  22625. * options for s390: s390 Options. (line 6)
  22626. * options for SCORE: SCORE-Opts. (line 6)
  22627. * options for SPARC: Sparc-Opts. (line 6)
  22628. * options for TIC6X: TIC6X Options. (line 6)
  22629. * options for V850 (none): V850 Options. (line 6)
  22630. * options for VAX/VMS: VAX-Opts. (line 42)
  22631. * options for Visium: Visium Options. (line 6)
  22632. * options for x86-64: i386-Options. (line 6)
  22633. * options for Z80: Z80 Options. (line 6)
  22634. * options, all versions of assembler: Invoking. (line 6)
  22635. * options, command line: Command Line. (line 13)
  22636. * options, CRIS: CRIS-Opts. (line 6)
  22637. * options, D10V: D10V-Opts. (line 6)
  22638. * options, D30V: D30V-Opts. (line 6)
  22639. * options, Epiphany: Epiphany Options. (line 6)
  22640. * options, H8/300: H8/300 Options. (line 6)
  22641. * options, IP2K: IP2K-Opts. (line 6)
  22642. * options, M32C: M32C-Opts. (line 6)
  22643. * options, M32R: M32R-Opts. (line 6)
  22644. * options, M680x0: M68K-Opts. (line 6)
  22645. * options, M68HC11: M68HC11-Opts. (line 6)
  22646. * options, MMIX: MMIX-Opts. (line 6)
  22647. * options, PJ: PJ Options. (line 6)
  22648. * options, RL78: RL78-Opts. (line 6)
  22649. * options, RX: RX-Opts. (line 6)
  22650. * options, S12Z: S12Z Options. (line 6)
  22651. * options, SH: SH Options. (line 6)
  22652. * options, TIC54X: TIC54X-Opts. (line 6)
  22653. * options, XGATE: XGATE-Opts. (line 6)
  22654. * options, Z8000: Z8000 Options. (line 6)
  22655. * org directive: Org. (line 6)
  22656. * other attribute, of a.out symbol: Symbol Other. (line 6)
  22657. * output file: Object. (line 6)
  22658. * output section padding: no-pad-sections. (line 6)
  22659. * p2align directive: P2align. (line 6)
  22660. * p2alignl directive: P2align. (line 30)
  22661. * p2alignw directive: P2align. (line 30)
  22662. * padding the location counter: Align. (line 6)
  22663. * padding the location counter given a power of two: P2align.
  22664. (line 6)
  22665. * padding the location counter given number of bytes: Balign.
  22666. (line 6)
  22667. * page, in listings: Eject. (line 6)
  22668. * paper size, for listings: Psize. (line 6)
  22669. * paths for .include: I. (line 6)
  22670. * patterns, writing in memory: Fill. (line 6)
  22671. * PDP-11 comments: PDP-11-Syntax. (line 16)
  22672. * PDP-11 floating-point register syntax: PDP-11-Syntax. (line 13)
  22673. * PDP-11 general-purpose register syntax: PDP-11-Syntax. (line 10)
  22674. * PDP-11 instruction naming: PDP-11-Mnemonics. (line 6)
  22675. * PDP-11 line separator: PDP-11-Syntax. (line 19)
  22676. * PDP-11 support: PDP-11-Dependent. (line 6)
  22677. * PDP-11 syntax: PDP-11-Syntax. (line 6)
  22678. * PIC code generation for ARM: ARM Options. (line 378)
  22679. * PIC code generation for M32R: M32R-Opts. (line 42)
  22680. * pic command-line option, C-SKY: C-SKY Options. (line 22)
  22681. * PIC selection, MIPS: MIPS Options. (line 21)
  22682. * PJ endianness: Overview. (line 774)
  22683. * PJ line comment character: PJ-Chars. (line 6)
  22684. * PJ line separator: PJ-Chars. (line 14)
  22685. * PJ options: PJ Options. (line 6)
  22686. * PJ support: PJ-Dependent. (line 6)
  22687. * plus, permitted arguments: Infix Ops. (line 45)
  22688. * pmem directive, PRU: PRU Relocations. (line 6)
  22689. * popsection directive: PopSection. (line 6)
  22690. * Position-independent code, CRIS: CRIS-Opts. (line 27)
  22691. * Position-independent code, symbols in, CRIS: CRIS-Pic. (line 6)
  22692. * PowerPC architectures: PowerPC-Opts. (line 6)
  22693. * PowerPC directives: PowerPC-Pseudo. (line 6)
  22694. * PowerPC line comment character: PowerPC-Chars. (line 6)
  22695. * PowerPC line separator: PowerPC-Chars. (line 18)
  22696. * PowerPC options: PowerPC-Opts. (line 6)
  22697. * PowerPC support: PPC-Dependent. (line 6)
  22698. * precedence of operators: Infix Ops. (line 11)
  22699. * precision, floating point: Flonums. (line 6)
  22700. * prefix operators: Prefix Ops. (line 6)
  22701. * prefixes, i386: i386-Prefixes. (line 6)
  22702. * preprocessing: Preprocessing. (line 6)
  22703. * preprocessing, turning on and off: Preprocessing. (line 28)
  22704. * previous directive: Previous. (line 6)
  22705. * primary attributes, COFF symbols: COFF Symbols. (line 13)
  22706. * print directive: Print. (line 6)
  22707. * proc directive, OpenRISC: OpenRISC-Directives.
  22708. (line 20)
  22709. * proc directive, SPARC: Sparc-Directives. (line 25)
  22710. * Processor Identification register, ARC: ARC-Regs. (line 51)
  22711. * profiler directive, MSP 430: MSP430 Directives. (line 26)
  22712. * profiling capability for MSP 430: MSP430 Profiling Capability.
  22713. (line 6)
  22714. * Program Counter, ARC: ARC-Regs. (line 54)
  22715. * protected directive: Protected. (line 6)
  22716. * PRU line comment character: PRU Chars. (line 6)
  22717. * PRU machine directives: PRU Directives. (line 6)
  22718. * PRU machine relocations: PRU Relocations. (line 6)
  22719. * PRU opcodes: PRU Opcodes. (line 6)
  22720. * PRU options: PRU Options. (line 6)
  22721. * PRU support: PRU-Dependent. (line 6)
  22722. * psect directive, Z80: Z80 Directives. (line 58)
  22723. * pseudo map fd, BPF: BPF-Pseudo-Maps. (line 6)
  22724. * pseudo-op .arch, CRIS: CRIS-Pseudos. (line 50)
  22725. * pseudo-op .dword, CRIS: CRIS-Pseudos. (line 12)
  22726. * pseudo-op .syntax, CRIS: CRIS-Pseudos. (line 18)
  22727. * pseudo-op BSPEC, MMIX: MMIX-Pseudos. (line 137)
  22728. * pseudo-op BYTE, MMIX: MMIX-Pseudos. (line 101)
  22729. * pseudo-op ESPEC, MMIX: MMIX-Pseudos. (line 137)
  22730. * pseudo-op GREG, MMIX: MMIX-Pseudos. (line 53)
  22731. * pseudo-op IS, MMIX: MMIX-Pseudos. (line 44)
  22732. * pseudo-op LOC, MMIX: MMIX-Pseudos. (line 7)
  22733. * pseudo-op LOCAL, MMIX: MMIX-Pseudos. (line 29)
  22734. * pseudo-op OCTA, MMIX: MMIX-Pseudos. (line 113)
  22735. * pseudo-op PREFIX, MMIX: MMIX-Pseudos. (line 125)
  22736. * pseudo-op TETRA, MMIX: MMIX-Pseudos. (line 113)
  22737. * pseudo-op WYDE, MMIX: MMIX-Pseudos. (line 113)
  22738. * pseudo-opcodes for XStormy16: XStormy16 Opcodes. (line 6)
  22739. * pseudo-opcodes, M680x0: M68K-Branch. (line 6)
  22740. * pseudo-opcodes, M68HC11: M68HC11-Branch. (line 6)
  22741. * pseudo-ops for branch, VAX: VAX-branch. (line 6)
  22742. * pseudo-ops, CRIS: CRIS-Pseudos. (line 6)
  22743. * pseudo-ops, machine independent: Pseudo Ops. (line 6)
  22744. * pseudo-ops, MMIX: MMIX-Pseudos. (line 6)
  22745. * psize directive: Psize. (line 6)
  22746. * PSR bits: IA-64-Bits. (line 6)
  22747. * pstring directive, TIC54X: TIC54X-Directives. (line 206)
  22748. * psw register, V850: V850-Regs. (line 80)
  22749. * purgem directive: Purgem. (line 6)
  22750. * purpose of GNU assembler: GNU Assembler. (line 12)
  22751. * pushsection directive: PushSection. (line 6)
  22752. * quad directive: Quad. (line 6)
  22753. * quad directive, i386: i386-Float. (line 22)
  22754. * quad directive, x86-64: i386-Float. (line 22)
  22755. * real-mode code, i386: i386-16bit. (line 6)
  22756. * ref directive, TIC54X: TIC54X-Directives. (line 101)
  22757. * refsym directive, MSP 430: MSP430 Directives. (line 30)
  22758. * register directive, SPARC: Sparc-Directives. (line 29)
  22759. * register name prefix character, ARC: ARC-Chars. (line 7)
  22760. * register names, AArch64: AArch64-Regs. (line 6)
  22761. * register names, Alpha: Alpha-Regs. (line 6)
  22762. * register names, ARC: ARC-Regs. (line 6)
  22763. * register names, ARM: ARM-Regs. (line 6)
  22764. * register names, AVR: AVR-Regs. (line 6)
  22765. * register names, BPF: BPF-Regs. (line 6)
  22766. * register names, CRIS: CRIS-Regs. (line 6)
  22767. * register names, H8/300: H8/300-Regs. (line 6)
  22768. * register names, IA-64: IA-64-Regs. (line 6)
  22769. * register names, LM32: LM32-Regs. (line 6)
  22770. * register names, MMIX: MMIX-Regs. (line 6)
  22771. * register names, MSP 430: MSP430-Regs. (line 6)
  22772. * register names, OpenRISC: OpenRISC-Regs. (line 6)
  22773. * register names, S12Z: S12Z Addressing Modes.
  22774. (line 28)
  22775. * register names, Sparc: Sparc-Regs. (line 6)
  22776. * register names, TILE-Gx: TILE-Gx Registers. (line 6)
  22777. * register names, TILEPro: TILEPro Registers. (line 6)
  22778. * register names, V850: V850-Regs. (line 6)
  22779. * register names, VAX: VAX-operands. (line 17)
  22780. * register names, Visium: Visium Registers. (line 6)
  22781. * register names, Xtensa: Xtensa Registers. (line 6)
  22782. * register names, Z80: Z80-Regs. (line 6)
  22783. * register naming, s390: s390 Register. (line 6)
  22784. * register notation, S12Z: S12Z Register Notation.
  22785. (line 6)
  22786. * register operands, i386: i386-Variations. (line 15)
  22787. * register operands, x86-64: i386-Variations. (line 15)
  22788. * registers, D10V: D10V-Regs. (line 6)
  22789. * registers, D30V: D30V-Regs. (line 6)
  22790. * registers, i386: i386-Regs. (line 6)
  22791. * registers, Meta: Meta-Regs. (line 6)
  22792. * registers, SH: SH-Regs. (line 6)
  22793. * registers, TIC54X memory-mapped: TIC54X-MMRegs. (line 6)
  22794. * registers, x86-64: i386-Regs. (line 6)
  22795. * registers, Z8000: Z8000-Regs. (line 6)
  22796. * relax-all command-line option, Nios II: Nios II Options. (line 13)
  22797. * relax-section command-line option, Nios II: Nios II Options.
  22798. (line 6)
  22799. * relaxation: Xtensa Relaxation. (line 6)
  22800. * relaxation of ADDI instructions: Xtensa Immediate Relaxation.
  22801. (line 43)
  22802. * relaxation of branch instructions: Xtensa Branch Relaxation.
  22803. (line 6)
  22804. * relaxation of call instructions: Xtensa Call Relaxation.
  22805. (line 6)
  22806. * relaxation of immediate fields: Xtensa Immediate Relaxation.
  22807. (line 6)
  22808. * relaxation of jump instructions: Xtensa Jump Relaxation.
  22809. (line 6)
  22810. * relaxation of L16SI instructions: Xtensa Immediate Relaxation.
  22811. (line 23)
  22812. * relaxation of L16UI instructions: Xtensa Immediate Relaxation.
  22813. (line 23)
  22814. * relaxation of L32I instructions: Xtensa Immediate Relaxation.
  22815. (line 23)
  22816. * relaxation of L8UI instructions: Xtensa Immediate Relaxation.
  22817. (line 23)
  22818. * relaxation of MOVI instructions: Xtensa Immediate Relaxation.
  22819. (line 12)
  22820. * reloc directive: Reloc. (line 6)
  22821. * relocation: Sections. (line 6)
  22822. * relocation example: Ld Sections. (line 40)
  22823. * relocations, AArch64: AArch64-Relocations.
  22824. (line 6)
  22825. * relocations, Alpha: Alpha-Relocs. (line 6)
  22826. * relocations, OpenRISC: OpenRISC-Relocs. (line 6)
  22827. * relocations, Sparc: Sparc-Relocs. (line 6)
  22828. * relocations, WebAssembly: WebAssembly-Relocs. (line 6)
  22829. * repeat prefixes, i386: i386-Prefixes. (line 44)
  22830. * reporting bugs in assembler: Reporting Bugs. (line 6)
  22831. * rept directive: Rept. (line 6)
  22832. * reserve directive, SPARC: Sparc-Directives. (line 39)
  22833. * return instructions, i386: i386-Variations. (line 45)
  22834. * return instructions, x86-64: i386-Variations. (line 45)
  22835. * REX prefixes, i386: i386-Prefixes. (line 46)
  22836. * RISC-V instruction formats: RISC-V-Formats. (line 6)
  22837. * RISC-V machine directives: RISC-V-Directives. (line 6)
  22838. * RISC-V support: RISC-V-Dependent. (line 6)
  22839. * RL78 assembler directives: RL78-Directives. (line 6)
  22840. * RL78 line comment character: RL78-Chars. (line 6)
  22841. * RL78 line separator: RL78-Chars. (line 14)
  22842. * RL78 modifiers: RL78-Modifiers. (line 6)
  22843. * RL78 options: RL78-Opts. (line 6)
  22844. * RL78 support: RL78-Dependent. (line 6)
  22845. * rsect: Z8000 Directives. (line 52)
  22846. * RX assembler directive .3byte: RX-Directives. (line 9)
  22847. * RX assembler directive .fetchalign: RX-Directives. (line 13)
  22848. * RX assembler directives: RX-Directives. (line 6)
  22849. * RX floating point: RX-Float. (line 6)
  22850. * RX line comment character: RX-Chars. (line 6)
  22851. * RX line separator: RX-Chars. (line 14)
  22852. * RX modifiers: RX-Modifiers. (line 6)
  22853. * RX options: RX-Opts. (line 6)
  22854. * RX support: RX-Dependent. (line 6)
  22855. * S12Z addressing modes: S12Z Addressing Modes.
  22856. (line 6)
  22857. * S12Z line separator: S12Z Syntax Overview.
  22858. (line 41)
  22859. * S12Z options: S12Z Options. (line 6)
  22860. * S12Z support: S12Z-Dependent. (line 8)
  22861. * S12Z syntax: S12Z Syntax. (line 12)
  22862. * s390 floating point: s390 Floating Point.
  22863. (line 6)
  22864. * s390 instruction aliases: s390 Aliases. (line 6)
  22865. * s390 instruction formats: s390 Formats. (line 6)
  22866. * s390 instruction marker: s390 Instruction Marker.
  22867. (line 6)
  22868. * s390 instruction mnemonics: s390 Mnemonics. (line 6)
  22869. * s390 instruction operand modifier: s390 Operand Modifier.
  22870. (line 6)
  22871. * s390 instruction operands: s390 Operands. (line 6)
  22872. * s390 instruction syntax: s390 Syntax. (line 6)
  22873. * s390 line comment character: s390 Characters. (line 6)
  22874. * s390 line separator: s390 Characters. (line 13)
  22875. * s390 literal pool entries: s390 Literal Pool Entries.
  22876. (line 6)
  22877. * s390 options: s390 Options. (line 6)
  22878. * s390 register naming: s390 Register. (line 6)
  22879. * s390 support: S/390-Dependent. (line 6)
  22880. * Saved User Stack Pointer, ARC: ARC-Regs. (line 73)
  22881. * sblock directive, TIC54X: TIC54X-Directives. (line 180)
  22882. * sbttl directive: Sbttl. (line 6)
  22883. * schedule directive: Schedule Directive. (line 6)
  22884. * scl directive: Scl. (line 6)
  22885. * SCORE architectures: SCORE-Opts. (line 6)
  22886. * SCORE directives: SCORE-Pseudo. (line 6)
  22887. * SCORE line comment character: SCORE-Chars. (line 6)
  22888. * SCORE line separator: SCORE-Chars. (line 14)
  22889. * SCORE options: SCORE-Opts. (line 6)
  22890. * SCORE processor: SCORE-Dependent. (line 6)
  22891. * sdaoff pseudo-op, V850: V850 Opcodes. (line 65)
  22892. * search path for .include: I. (line 6)
  22893. * sect directive, TIC54X: TIC54X-Directives. (line 186)
  22894. * section directive (COFF version): Section. (line 16)
  22895. * section directive (ELF version): Section. (line 67)
  22896. * section directive, V850: V850 Directives. (line 9)
  22897. * section name substitution: Section. (line 71)
  22898. * section override prefixes, i386: i386-Prefixes. (line 23)
  22899. * Section Stack: PopSection. (line 6)
  22900. * Section Stack <1>: Previous. (line 6)
  22901. * Section Stack <2>: PushSection. (line 6)
  22902. * Section Stack <3>: Section. (line 62)
  22903. * Section Stack <4>: SubSection. (line 6)
  22904. * section-relative addressing: Secs Background. (line 65)
  22905. * sections: Sections. (line 6)
  22906. * sections in messages, internal: As Sections. (line 6)
  22907. * sections, i386: i386-Variations. (line 51)
  22908. * sections, named: Ld Sections. (line 8)
  22909. * sections, x86-64: i386-Variations. (line 51)
  22910. * seg directive, SPARC: Sparc-Directives. (line 44)
  22911. * segm: Z8000 Directives. (line 10)
  22912. * set at directive, Nios II: Nios II Directives. (line 35)
  22913. * set break directive, Nios II: Nios II Directives. (line 43)
  22914. * set directive: Set. (line 6)
  22915. * set directive, Nios II: Nios II Directives. (line 57)
  22916. * set directive, TIC54X: TIC54X-Directives. (line 189)
  22917. * set noat directive, Nios II: Nios II Directives. (line 31)
  22918. * set nobreak directive, Nios II: Nios II Directives. (line 39)
  22919. * set norelax directive, Nios II: Nios II Directives. (line 46)
  22920. * set no_warn_regname_label directive, PRU: PRU Directives. (line 28)
  22921. * set relaxall directive, Nios II: Nios II Directives. (line 53)
  22922. * set relaxsection directive, Nios II: Nios II Directives. (line 49)
  22923. * SH addressing modes: SH-Addressing. (line 6)
  22924. * SH floating point (IEEE): SH Floating Point. (line 6)
  22925. * SH line comment character: SH-Chars. (line 6)
  22926. * SH line separator: SH-Chars. (line 8)
  22927. * SH machine directives: SH Directives. (line 6)
  22928. * SH opcode summary: SH Opcodes. (line 6)
  22929. * SH options: SH Options. (line 6)
  22930. * SH registers: SH-Regs. (line 6)
  22931. * SH support: SH-Dependent. (line 6)
  22932. * shigh directive, M32R: M32R-Directives. (line 26)
  22933. * short directive: Short. (line 6)
  22934. * short directive, TIC54X: TIC54X-Directives. (line 109)
  22935. * signatures, WebAssembly: WebAssembly-Signatures.
  22936. (line 6)
  22937. * SIMD, i386: i386-SIMD. (line 6)
  22938. * SIMD, x86-64: i386-SIMD. (line 6)
  22939. * single character constant: Chars. (line 6)
  22940. * single directive: Single. (line 6)
  22941. * single directive, i386: i386-Float. (line 14)
  22942. * single directive, x86-64: i386-Float. (line 14)
  22943. * single quote, Z80: Z80-Chars. (line 20)
  22944. * sixteen bit integers: hword. (line 6)
  22945. * sixteen byte integer: Octa. (line 6)
  22946. * size directive (COFF version): Size. (line 11)
  22947. * size directive (ELF version): Size. (line 19)
  22948. * size modifiers, D10V: D10V-Size. (line 6)
  22949. * size modifiers, D30V: D30V-Size. (line 6)
  22950. * size modifiers, M680x0: M68K-Syntax. (line 8)
  22951. * size prefixes, i386: i386-Prefixes. (line 27)
  22952. * size suffixes, H8/300: H8/300 Opcodes. (line 160)
  22953. * size, translations, Sparc: Sparc-Size-Translations.
  22954. (line 6)
  22955. * sizes operands, i386: i386-Variations. (line 28)
  22956. * sizes operands, x86-64: i386-Variations. (line 28)
  22957. * skip directive: Skip. (line 6)
  22958. * skip directive, M680x0: M68K-Directives. (line 19)
  22959. * skip directive, SPARC: Sparc-Directives. (line 48)
  22960. * sleb128 directive: Sleb128. (line 6)
  22961. * small data, MIPS: MIPS Small Data. (line 6)
  22962. * SmartMIPS instruction generation override: MIPS ASE Instruction Generation Overrides.
  22963. (line 11)
  22964. * SOM symbol attributes: SOM Symbols. (line 6)
  22965. * source program: Input Files. (line 6)
  22966. * source, destination operands; i386: i386-Variations. (line 21)
  22967. * source, destination operands; x86-64: i386-Variations. (line 21)
  22968. * sp register: Xtensa Registers. (line 6)
  22969. * sp register, V850: V850-Regs. (line 12)
  22970. * space directive: Space. (line 6)
  22971. * space directive, TIC54X: TIC54X-Directives. (line 194)
  22972. * space used, maximum for assembly: statistics. (line 6)
  22973. * SPARC architectures: Sparc-Opts. (line 6)
  22974. * Sparc constants: Sparc-Constants. (line 6)
  22975. * SPARC data alignment: Sparc-Aligned-Data. (line 6)
  22976. * SPARC floating point (IEEE): Sparc-Float. (line 6)
  22977. * Sparc line comment character: Sparc-Chars. (line 6)
  22978. * Sparc line separator: Sparc-Chars. (line 14)
  22979. * SPARC machine directives: Sparc-Directives. (line 6)
  22980. * SPARC options: Sparc-Opts. (line 6)
  22981. * Sparc registers: Sparc-Regs. (line 6)
  22982. * Sparc relocations: Sparc-Relocs. (line 6)
  22983. * Sparc size translations: Sparc-Size-Translations.
  22984. (line 6)
  22985. * SPARC support: Sparc-Dependent. (line 6)
  22986. * SPARC syntax: Sparc-Aligned-Data. (line 21)
  22987. * special characters, M680x0: M68K-Chars. (line 6)
  22988. * special purpose registers, MSP 430: MSP430-Regs. (line 11)
  22989. * sslist directive, TIC54X: TIC54X-Directives. (line 201)
  22990. * ssnolist directive, TIC54X: TIC54X-Directives. (line 201)
  22991. * stabd directive: Stab. (line 38)
  22992. * stabn directive: Stab. (line 49)
  22993. * stabs directive: Stab. (line 52)
  22994. * stabX directives: Stab. (line 6)
  22995. * stack pointer, ARC: ARC-Regs. (line 20)
  22996. * standard assembler sections: Secs Background. (line 27)
  22997. * standard input, as input file: Command Line. (line 10)
  22998. * statement separator character: Statements. (line 6)
  22999. * statement separator, AArch64: AArch64-Chars. (line 10)
  23000. * statement separator, Alpha: Alpha-Chars. (line 11)
  23001. * statement separator, ARC: ARC-Chars. (line 27)
  23002. * statement separator, ARM: ARM-Chars. (line 14)
  23003. * statement separator, AVR: AVR-Chars. (line 14)
  23004. * statement separator, BPF: BPF-Chars. (line 10)
  23005. * statement separator, CR16: CR16-Chars. (line 12)
  23006. * statement separator, Epiphany: Epiphany-Chars. (line 14)
  23007. * statement separator, H8/300: H8/300-Chars. (line 8)
  23008. * statement separator, i386: i386-Chars. (line 18)
  23009. * statement separator, IA-64: IA-64-Chars. (line 8)
  23010. * statement separator, IP2K: IP2K-Chars. (line 14)
  23011. * statement separator, LM32: LM32-Chars. (line 12)
  23012. * statement separator, M32C: M32C-Chars. (line 14)
  23013. * statement separator, M68HC11: M68HC11-Syntax. (line 26)
  23014. * statement separator, Meta: Meta-Chars. (line 8)
  23015. * statement separator, MicroBlaze: MicroBlaze-Chars. (line 14)
  23016. * statement separator, MIPS: MIPS-Chars. (line 14)
  23017. * statement separator, MSP 430: MSP430-Chars. (line 14)
  23018. * statement separator, NS32K: NS32K-Chars. (line 18)
  23019. * statement separator, OpenRISC: OpenRISC-Chars. (line 9)
  23020. * statement separator, PJ: PJ-Chars. (line 14)
  23021. * statement separator, PowerPC: PowerPC-Chars. (line 18)
  23022. * statement separator, RL78: RL78-Chars. (line 14)
  23023. * statement separator, RX: RX-Chars. (line 14)
  23024. * statement separator, S12Z: S12Z Syntax Overview.
  23025. (line 41)
  23026. * statement separator, s390: s390 Characters. (line 13)
  23027. * statement separator, SCORE: SCORE-Chars. (line 14)
  23028. * statement separator, SH: SH-Chars. (line 8)
  23029. * statement separator, Sparc: Sparc-Chars. (line 14)
  23030. * statement separator, TIC54X: TIC54X-Chars. (line 17)
  23031. * statement separator, TIC6X: TIC6X Syntax. (line 13)
  23032. * statement separator, V850: V850-Chars. (line 13)
  23033. * statement separator, VAX: VAX-Chars. (line 14)
  23034. * statement separator, Visium: Visium Characters. (line 14)
  23035. * statement separator, XGATE: XGATE-Syntax. (line 25)
  23036. * statement separator, XStormy16: XStormy16-Chars. (line 14)
  23037. * statement separator, Z80: Z80-Chars. (line 13)
  23038. * statement separator, Z8000: Z8000-Chars. (line 13)
  23039. * statements, structure of: Statements. (line 6)
  23040. * statistics, about assembly: statistics. (line 6)
  23041. * Status register, ARC: ARC-Regs. (line 57)
  23042. * STATUS32 saved on exception, ARC: ARC-Regs. (line 82)
  23043. * stopping the assembly: Abort. (line 6)
  23044. * Stored STATUS32 register on entry to level P0 interrupts, ARC: ARC-Regs.
  23045. (line 69)
  23046. * string constants: Strings. (line 6)
  23047. * string directive: String. (line 8)
  23048. * string directive on HPPA: HPPA Directives. (line 137)
  23049. * string directive, TIC54X: TIC54X-Directives. (line 206)
  23050. * string literals: Ascii. (line 6)
  23051. * string, copying to object file: String. (line 8)
  23052. * string16 directive: String. (line 8)
  23053. * string16, copying to object file: String. (line 8)
  23054. * string32 directive: String. (line 8)
  23055. * string32, copying to object file: String. (line 8)
  23056. * string64 directive: String. (line 8)
  23057. * string64, copying to object file: String. (line 8)
  23058. * string8 directive: String. (line 8)
  23059. * string8, copying to object file: String. (line 8)
  23060. * struct directive: Struct. (line 6)
  23061. * struct directive, TIC54X: TIC54X-Directives. (line 214)
  23062. * structure debugging, COFF: Tag. (line 6)
  23063. * sub-instruction ordering, D10V: D10V-Chars. (line 14)
  23064. * sub-instruction ordering, D30V: D30V-Chars. (line 14)
  23065. * sub-instructions, D10V: D10V-Subs. (line 6)
  23066. * sub-instructions, D30V: D30V-Subs. (line 6)
  23067. * subexpressions: Arguments. (line 24)
  23068. * subsection directive: SubSection. (line 6)
  23069. * subsym builtins, TIC54X: TIC54X-Macros. (line 16)
  23070. * subtitles for listings: Sbttl. (line 6)
  23071. * subtraction, permitted arguments: Infix Ops. (line 50)
  23072. * summary of options: Overview. (line 6)
  23073. * support: HPPA-Dependent. (line 6)
  23074. * supporting files, including: Include. (line 6)
  23075. * suppressing warnings: W. (line 11)
  23076. * sval: Z8000 Directives. (line 33)
  23077. * symbol attributes: Symbol Attributes. (line 6)
  23078. * symbol attributes, a.out: a.out Symbols. (line 6)
  23079. * symbol attributes, COFF: COFF Symbols. (line 6)
  23080. * symbol attributes, SOM: SOM Symbols. (line 6)
  23081. * symbol descriptor, COFF: Desc. (line 6)
  23082. * symbol modifiers: AVR-Modifiers. (line 12)
  23083. * symbol modifiers <1>: LM32-Modifiers. (line 12)
  23084. * symbol modifiers <2>: M32C-Modifiers. (line 11)
  23085. * symbol modifiers <3>: M68HC11-Modifiers. (line 12)
  23086. * symbol modifiers, TILE-Gx: TILE-Gx Modifiers. (line 6)
  23087. * symbol modifiers, TILEPro: TILEPro Modifiers. (line 6)
  23088. * symbol names: Symbol Names. (line 6)
  23089. * symbol names, $ in: D10V-Chars. (line 46)
  23090. * symbol names, $ in <1>: D30V-Chars. (line 70)
  23091. * symbol names, $ in <2>: Meta-Chars. (line 10)
  23092. * symbol names, $ in <3>: SH-Chars. (line 15)
  23093. * symbol names, local: Symbol Names. (line 40)
  23094. * symbol names, temporary: Symbol Names. (line 53)
  23095. * symbol prefix character, ARC: ARC-Chars. (line 20)
  23096. * symbol storage class (COFF): Scl. (line 6)
  23097. * symbol type: Symbol Type. (line 6)
  23098. * symbol type, COFF: Type. (line 11)
  23099. * symbol type, ELF: Type. (line 22)
  23100. * symbol value: Symbol Value. (line 6)
  23101. * symbol value, setting: Set. (line 6)
  23102. * symbol values, assigning: Setting Symbols. (line 6)
  23103. * symbol versioning: Symver. (line 6)
  23104. * symbol, common: Comm. (line 6)
  23105. * symbol, making visible to linker: Global. (line 6)
  23106. * symbolic debuggers, information for: Stab. (line 6)
  23107. * symbols: Symbols. (line 6)
  23108. * Symbols in position-independent code, CRIS: CRIS-Pic. (line 6)
  23109. * symbols with uppercase, VAX/VMS: VAX-Opts. (line 42)
  23110. * symbols, assigning values to: Equ. (line 6)
  23111. * Symbols, built-in, CRIS: CRIS-Symbols. (line 6)
  23112. * Symbols, CRIS, built-in: CRIS-Symbols. (line 6)
  23113. * symbols, local common: Lcomm. (line 6)
  23114. * symver directive: Symver. (line 6)
  23115. * syntax compatibility, i386: i386-Variations. (line 6)
  23116. * syntax compatibility, x86-64: i386-Variations. (line 6)
  23117. * syntax, AVR: AVR-Modifiers. (line 6)
  23118. * syntax, Blackfin: Blackfin Syntax. (line 6)
  23119. * syntax, D10V: D10V-Syntax. (line 6)
  23120. * syntax, D30V: D30V-Syntax. (line 6)
  23121. * syntax, LM32: LM32-Modifiers. (line 6)
  23122. * syntax, M680x0: M68K-Syntax. (line 8)
  23123. * syntax, M68HC11: M68HC11-Syntax. (line 6)
  23124. * syntax, M68HC11 <1>: M68HC11-Modifiers. (line 6)
  23125. * syntax, machine-independent: Syntax. (line 6)
  23126. * syntax, OPENRISC: OpenRISC-Dependent. (line 12)
  23127. * syntax, RL78: RL78-Modifiers. (line 6)
  23128. * syntax, RX: RX-Modifiers. (line 6)
  23129. * syntax, S12Z: S12Z Syntax. (line 11)
  23130. * syntax, SPARC: Sparc-Aligned-Data. (line 20)
  23131. * syntax, TILE-Gx: TILE-Gx Syntax. (line 6)
  23132. * syntax, TILEPro: TILEPro Syntax. (line 6)
  23133. * syntax, XGATE: XGATE-Syntax. (line 6)
  23134. * syntax, Xtensa assembler: Xtensa Syntax. (line 6)
  23135. * tab (\t): Strings. (line 27)
  23136. * tab directive, TIC54X: TIC54X-Directives. (line 245)
  23137. * tag directive: Tag. (line 6)
  23138. * tag directive, TIC54X: TIC54X-Directives. (line 214)
  23139. * tag directive, TIC54X <1>: TIC54X-Directives. (line 248)
  23140. * TBM, i386: i386-TBM. (line 6)
  23141. * TBM, x86-64: i386-TBM. (line 6)
  23142. * tdaoff pseudo-op, V850: V850 Opcodes. (line 81)
  23143. * temporary symbol names: Symbol Names. (line 53)
  23144. * text and data sections, joining: R. (line 6)
  23145. * text directive: Text. (line 6)
  23146. * text section: Ld Sections. (line 9)
  23147. * tfloat directive, i386: i386-Float. (line 14)
  23148. * tfloat directive, x86-64: i386-Float. (line 14)
  23149. * Thumb support: ARM-Dependent. (line 6)
  23150. * TIC54X builtin math functions: TIC54X-Builtins. (line 6)
  23151. * TIC54X line comment character: TIC54X-Chars. (line 6)
  23152. * TIC54X line separator: TIC54X-Chars. (line 17)
  23153. * TIC54X machine directives: TIC54X-Directives. (line 6)
  23154. * TIC54X memory-mapped registers: TIC54X-MMRegs. (line 6)
  23155. * TIC54X options: TIC54X-Opts. (line 6)
  23156. * TIC54X subsym builtins: TIC54X-Macros. (line 16)
  23157. * TIC54X support: TIC54X-Dependent. (line 6)
  23158. * TIC54X-specific macros: TIC54X-Macros. (line 6)
  23159. * TIC6X big-endian output: TIC6X Options. (line 46)
  23160. * TIC6X line comment character: TIC6X Syntax. (line 6)
  23161. * TIC6X line separator: TIC6X Syntax. (line 13)
  23162. * TIC6X little-endian output: TIC6X Options. (line 46)
  23163. * TIC6X machine directives: TIC6X Directives. (line 6)
  23164. * TIC6X options: TIC6X Options. (line 6)
  23165. * TIC6X support: TIC6X-Dependent. (line 6)
  23166. * TILE-Gx machine directives: TILE-Gx Directives. (line 6)
  23167. * TILE-Gx modifiers: TILE-Gx Modifiers. (line 6)
  23168. * TILE-Gx opcode names: TILE-Gx Opcodes. (line 6)
  23169. * TILE-Gx register names: TILE-Gx Registers. (line 6)
  23170. * TILE-Gx support: TILE-Gx-Dependent. (line 6)
  23171. * TILE-Gx syntax: TILE-Gx Syntax. (line 6)
  23172. * TILEPro machine directives: TILEPro Directives. (line 6)
  23173. * TILEPro modifiers: TILEPro Modifiers. (line 6)
  23174. * TILEPro opcode names: TILEPro Opcodes. (line 6)
  23175. * TILEPro register names: TILEPro Registers. (line 6)
  23176. * TILEPro support: TILEPro-Dependent. (line 6)
  23177. * TILEPro syntax: TILEPro Syntax. (line 6)
  23178. * time, total for assembly: statistics. (line 6)
  23179. * title directive: Title. (line 6)
  23180. * tls_common directive: Tls_common. (line 6)
  23181. * tls_gd directive, Nios II: Nios II Relocations.
  23182. (line 38)
  23183. * tls_ie directive, Nios II: Nios II Relocations.
  23184. (line 38)
  23185. * tls_ldm directive, Nios II: Nios II Relocations.
  23186. (line 38)
  23187. * tls_ldo directive, Nios II: Nios II Relocations.
  23188. (line 38)
  23189. * tls_le directive, Nios II: Nios II Relocations.
  23190. (line 38)
  23191. * TMS320C6X support: TIC6X-Dependent. (line 6)
  23192. * tp register, V850: V850-Regs. (line 16)
  23193. * transform directive: Transform Directive.
  23194. (line 6)
  23195. * trusted compiler: f. (line 6)
  23196. * turning preprocessing on and off: Preprocessing. (line 28)
  23197. * two-byte integer: 2byte. (line 6)
  23198. * type directive (COFF version): Type. (line 11)
  23199. * type directive (ELF version): Type. (line 22)
  23200. * type of a symbol: Symbol Type. (line 6)
  23201. * ualong directive, SH: SH Directives. (line 6)
  23202. * uaquad directive, SH: SH Directives. (line 6)
  23203. * uaword directive, SH: SH Directives. (line 6)
  23204. * ubyte directive, TIC54X: TIC54X-Directives. (line 34)
  23205. * uchar directive, TIC54X: TIC54X-Directives. (line 34)
  23206. * uhalf directive, TIC54X: TIC54X-Directives. (line 109)
  23207. * uint directive, TIC54X: TIC54X-Directives. (line 109)
  23208. * uleb128 directive: Uleb128. (line 6)
  23209. * ulong directive, TIC54X: TIC54X-Directives. (line 133)
  23210. * undefined section: Ld Sections. (line 36)
  23211. * union directive, TIC54X: TIC54X-Directives. (line 248)
  23212. * unsegm: Z8000 Directives. (line 14)
  23213. * usect directive, TIC54X: TIC54X-Directives. (line 260)
  23214. * ushort directive, TIC54X: TIC54X-Directives. (line 109)
  23215. * uword directive, TIC54X: TIC54X-Directives. (line 109)
  23216. * V850 command-line options: V850 Options. (line 9)
  23217. * V850 floating point (IEEE): V850 Floating Point.
  23218. (line 6)
  23219. * V850 line comment character: V850-Chars. (line 6)
  23220. * V850 line separator: V850-Chars. (line 13)
  23221. * V850 machine directives: V850 Directives. (line 6)
  23222. * V850 opcodes: V850 Opcodes. (line 6)
  23223. * V850 options (none): V850 Options. (line 6)
  23224. * V850 register names: V850-Regs. (line 6)
  23225. * V850 support: V850-Dependent. (line 6)
  23226. * val directive: Val. (line 6)
  23227. * value attribute, COFF: Val. (line 6)
  23228. * value directive: i386-Directives. (line 26)
  23229. * value of a symbol: Symbol Value. (line 6)
  23230. * var directive, TIC54X: TIC54X-Directives. (line 270)
  23231. * VAX bitfields not supported: VAX-no. (line 6)
  23232. * VAX branch improvement: VAX-branch. (line 6)
  23233. * VAX command-line options ignored: VAX-Opts. (line 6)
  23234. * VAX displacement sizing character: VAX-operands. (line 12)
  23235. * VAX floating point: VAX-float. (line 6)
  23236. * VAX immediate character: VAX-operands. (line 6)
  23237. * VAX indirect character: VAX-operands. (line 9)
  23238. * VAX line comment character: VAX-Chars. (line 6)
  23239. * VAX line separator: VAX-Chars. (line 14)
  23240. * VAX machine directives: VAX-directives. (line 6)
  23241. * VAX opcode mnemonics: VAX-opcodes. (line 6)
  23242. * VAX operand notation: VAX-operands. (line 6)
  23243. * VAX register names: VAX-operands. (line 17)
  23244. * VAX support: Vax-Dependent. (line 6)
  23245. * Vax-11 C compatibility: VAX-Opts. (line 42)
  23246. * VAX/VMS options: VAX-Opts. (line 42)
  23247. * version directive: Version. (line 6)
  23248. * version directive, TIC54X: TIC54X-Directives. (line 274)
  23249. * version of assembler: v. (line 6)
  23250. * versions of symbols: Symver. (line 6)
  23251. * Virtualization instruction generation override: MIPS ASE Instruction Generation Overrides.
  23252. (line 52)
  23253. * visibility: Hidden. (line 6)
  23254. * visibility <1>: Internal. (line 6)
  23255. * visibility <2>: Protected. (line 6)
  23256. * Visium line comment character: Visium Characters. (line 6)
  23257. * Visium line separator: Visium Characters. (line 14)
  23258. * Visium options: Visium Options. (line 6)
  23259. * Visium registers: Visium Registers. (line 6)
  23260. * Visium support: Visium-Dependent. (line 6)
  23261. * VMS (VAX) options: VAX-Opts. (line 42)
  23262. * vtable_entry directive: VTableEntry. (line 6)
  23263. * vtable_inherit directive: VTableInherit. (line 6)
  23264. * warning directive: Warning. (line 6)
  23265. * warning for altered difference tables: K. (line 6)
  23266. * warning messages: Errors. (line 6)
  23267. * warnings, causing error: W. (line 16)
  23268. * warnings, M32R: M32R-Warnings. (line 6)
  23269. * warnings, suppressing: W. (line 11)
  23270. * warnings, switching on: W. (line 19)
  23271. * weak directive: Weak. (line 6)
  23272. * weakref directive: Weakref. (line 6)
  23273. * WebAssembly floating point (IEEE): WebAssembly-Floating-Point.
  23274. (line 6)
  23275. * WebAssembly line comment character: WebAssembly-Chars. (line 6)
  23276. * WebAssembly module layout: WebAssembly-module-layout.
  23277. (line 6)
  23278. * WebAssembly notes: WebAssembly-Notes. (line 6)
  23279. * WebAssembly opcodes: WebAssembly-Opcodes.
  23280. (line 6)
  23281. * WebAssembly relocations: WebAssembly-Relocs. (line 6)
  23282. * WebAssembly signatures: WebAssembly-Signatures.
  23283. (line 6)
  23284. * WebAssembly support: WebAssembly-Dependent.
  23285. (line 6)
  23286. * WebAssembly Syntax: WebAssembly-Syntax. (line 6)
  23287. * whitespace: Whitespace. (line 6)
  23288. * whitespace, removed by preprocessor: Preprocessing. (line 7)
  23289. * wide floating point directives, VAX: VAX-directives. (line 9)
  23290. * width directive, TIC54X: TIC54X-Directives. (line 125)
  23291. * Width of continuation lines of disassembly output: listing.
  23292. (line 21)
  23293. * Width of first line disassembly output: listing. (line 16)
  23294. * Width of source line output: listing. (line 28)
  23295. * wmsg directive, TIC54X: TIC54X-Directives. (line 75)
  23296. * word aligned program counter, ARC: ARC-Regs. (line 44)
  23297. * word directive: Word. (line 6)
  23298. * word directive, BPF: BPF Directives. (line 12)
  23299. * word directive, H8/300: H8/300 Directives. (line 6)
  23300. * word directive, i386: i386-Float. (line 22)
  23301. * word directive, Nios II: Nios II Directives. (line 13)
  23302. * word directive, OpenRISC: OpenRISC-Directives.
  23303. (line 12)
  23304. * word directive, PRU: PRU Directives. (line 10)
  23305. * word directive, SPARC: Sparc-Directives. (line 51)
  23306. * word directive, TIC54X: TIC54X-Directives. (line 109)
  23307. * word directive, x86-64: i386-Float. (line 22)
  23308. * writing patterns in memory: Fill. (line 6)
  23309. * wval: Z8000 Directives. (line 24)
  23310. * x86 machine directives: i386-Directives. (line 6)
  23311. * x86-64 arch directive: i386-Arch. (line 6)
  23312. * x86-64 att_syntax pseudo op: i386-Variations. (line 6)
  23313. * x86-64 conversion instructions: i386-Mnemonics. (line 66)
  23314. * x86-64 extension instructions: i386-Mnemonics. (line 85)
  23315. * x86-64 floating point: i386-Float. (line 6)
  23316. * x86-64 immediate operands: i386-Variations. (line 15)
  23317. * x86-64 instruction naming: i386-Mnemonics. (line 9)
  23318. * x86-64 intel_syntax pseudo op: i386-Variations. (line 6)
  23319. * x86-64 jump optimization: i386-Jumps. (line 6)
  23320. * x86-64 jump, call, return: i386-Variations. (line 45)
  23321. * x86-64 jump/call operands: i386-Variations. (line 15)
  23322. * x86-64 memory references: i386-Memory. (line 6)
  23323. * x86-64 options: i386-Options. (line 6)
  23324. * x86-64 register operands: i386-Variations. (line 15)
  23325. * x86-64 registers: i386-Regs. (line 6)
  23326. * x86-64 sections: i386-Variations. (line 51)
  23327. * x86-64 size suffixes: i386-Variations. (line 28)
  23328. * x86-64 source, destination operands: i386-Variations. (line 21)
  23329. * x86-64 support: i386-Dependent. (line 6)
  23330. * x86-64 syntax compatibility: i386-Variations. (line 6)
  23331. * xdef directive, Z80: Z80 Directives. (line 62)
  23332. * xfloat directive, TIC54X: TIC54X-Directives. (line 62)
  23333. * XGATE addressing modes: XGATE-Syntax. (line 28)
  23334. * XGATE assembler directives: XGATE-Directives. (line 6)
  23335. * XGATE floating point: XGATE-Float. (line 6)
  23336. * XGATE line comment character: XGATE-Syntax. (line 16)
  23337. * XGATE line separator: XGATE-Syntax. (line 25)
  23338. * XGATE opcodes: XGATE-opcodes. (line 6)
  23339. * XGATE options: XGATE-Opts. (line 6)
  23340. * XGATE support: XGATE-Dependent. (line 6)
  23341. * XGATE syntax: XGATE-Syntax. (line 6)
  23342. * xlong directive, TIC54X: TIC54X-Directives. (line 133)
  23343. * xref directive, Z80: Z80 Directives. (line 66)
  23344. * XStormy16 comment character: XStormy16-Chars. (line 11)
  23345. * XStormy16 line comment character: XStormy16-Chars. (line 6)
  23346. * XStormy16 line separator: XStormy16-Chars. (line 14)
  23347. * XStormy16 machine directives: XStormy16 Directives.
  23348. (line 6)
  23349. * XStormy16 pseudo-opcodes: XStormy16 Opcodes. (line 6)
  23350. * XStormy16 support: XSTORMY16-Dependent.
  23351. (line 6)
  23352. * Xtensa architecture: Xtensa-Dependent. (line 6)
  23353. * Xtensa assembler syntax: Xtensa Syntax. (line 6)
  23354. * Xtensa directives: Xtensa Directives. (line 6)
  23355. * Xtensa opcode names: Xtensa Opcodes. (line 6)
  23356. * Xtensa register names: Xtensa Registers. (line 6)
  23357. * xword directive, SPARC: Sparc-Directives. (line 55)
  23358. * Z80 $: Z80-Chars. (line 15)
  23359. * Z80 ': Z80-Chars. (line 20)
  23360. * Z80 floating point: Z80 Floating Point. (line 6)
  23361. * Z80 labels: Z80-Labels. (line 6)
  23362. * Z80 line comment character: Z80-Chars. (line 6)
  23363. * Z80 line separator: Z80-Chars. (line 13)
  23364. * Z80 options: Z80 Options. (line 6)
  23365. * Z80 registers: Z80-Regs. (line 6)
  23366. * Z80 support: Z80-Dependent. (line 6)
  23367. * Z80 Syntax: Z80 Options. (line 67)
  23368. * Z80, case sensitivity: Z80-Case. (line 6)
  23369. * Z80, \: Z80-Chars. (line 18)
  23370. * Z80-only directives: Z80 Directives. (line 6)
  23371. * Z800 addressing modes: Z8000-Addressing. (line 6)
  23372. * Z8000 directives: Z8000 Directives. (line 6)
  23373. * Z8000 line comment character: Z8000-Chars. (line 6)
  23374. * Z8000 line separator: Z8000-Chars. (line 13)
  23375. * Z8000 opcode summary: Z8000 Opcodes. (line 6)
  23376. * Z8000 options: Z8000 Options. (line 6)
  23377. * Z8000 registers: Z8000-Regs. (line 6)
  23378. * Z8000 support: Z8000-Dependent. (line 6)
  23379. * zdaoff pseudo-op, V850: V850 Opcodes. (line 98)
  23380. * zero directive: Zero. (line 6)
  23381. * zero register, V850: V850-Regs. (line 7)
  23382. * zero-terminated strings: Asciz. (line 6)
  23383. 
  23384. Tag Table:
  23385. Node: Top733
  23386. Node: Overview1718
  23387. Node: Manual44222
  23388. Node: GNU Assembler45166
  23389. Node: Object Formats46337
  23390. Node: Command Line46789
  23391. Node: Input Files47875
  23392. Node: Object49856
  23393. Node: Errors50752
  23394. Node: Invoking52314
  23395. Node: a54320
  23396. Node: alternate56231
  23397. Node: D56403
  23398. Node: f56636
  23399. Node: I57145
  23400. Node: K57689
  23401. Node: L57993
  23402. Node: listing58732
  23403. Node: M60391
  23404. Node: MD64228
  23405. Node: no-pad-sections64668
  23406. Node: o65043
  23407. Node: R65470
  23408. Node: statistics66500
  23409. Node: traditional-format66907
  23410. Node: v67380
  23411. Node: W67655
  23412. Node: Z68562
  23413. Node: Syntax69084
  23414. Node: Preprocessing69676
  23415. Node: Whitespace71333
  23416. Node: Comments71729
  23417. Node: Symbol Intro73740
  23418. Node: Statements74811
  23419. Node: Constants76799
  23420. Node: Characters77430
  23421. Node: Strings77932
  23422. Node: Chars80105
  23423. Node: Numbers80957
  23424. Node: Integers81497
  23425. Node: Bignums82153
  23426. Node: Flonums82509
  23427. Node: Sections84126
  23428. Node: Secs Background84504
  23429. Node: Ld Sections89537
  23430. Node: As Sections91921
  23431. Node: Sub-Sections92831
  23432. Node: bss95979
  23433. Node: Symbols96929
  23434. Node: Labels97577
  23435. Node: Setting Symbols98308
  23436. Node: Symbol Names98862
  23437. Node: Dot104917
  23438. Node: Symbol Attributes105364
  23439. Node: Symbol Value106097
  23440. Node: Symbol Type107142
  23441. Node: a.out Symbols107530
  23442. Node: Symbol Desc107792
  23443. Node: Symbol Other108088
  23444. Node: COFF Symbols108257
  23445. Node: SOM Symbols108930
  23446. Node: Expressions109372
  23447. Node: Empty Exprs110121
  23448. Node: Integer Exprs110468
  23449. Node: Arguments110863
  23450. Node: Operators111969
  23451. Node: Prefix Ops112304
  23452. Node: Infix Ops112631
  23453. Node: Pseudo Ops115025
  23454. Node: Abort121315
  23455. Node: ABORT (COFF)121728
  23456. Node: Align121936
  23457. Node: Altmacro124332
  23458. Node: Ascii125663
  23459. Node: Asciz125972
  23460. Node: Attach_to_group126362
  23461. Node: Balign126776
  23462. Node: Bss128771
  23463. Node: Bundle directives129195
  23464. Node: Byte132179
  23465. Node: CFI directives132440
  23466. Node: Comm141752
  23467. Ref: Comm-Footnote-1143352
  23468. Node: Data143714
  23469. Node: Dc144030
  23470. Node: Dcb145007
  23471. Node: Ds145800
  23472. Node: Def146734
  23473. Node: Desc146964
  23474. Node: Dim147464
  23475. Node: Double147721
  23476. Node: Eject148059
  23477. Node: Else148234
  23478. Node: Elseif148534
  23479. Node: End148828
  23480. Node: Endef149043
  23481. Node: Endfunc149220
  23482. Node: Endif149395
  23483. Node: Equ149656
  23484. Node: Equiv150171
  23485. Node: Eqv150727
  23486. Node: Err151091
  23487. Node: Error151402
  23488. Node: Exitm151847
  23489. Node: Extern152016
  23490. Node: Fail152277
  23491. Node: File152722
  23492. Node: Fill155009
  23493. Node: Float155973
  23494. Node: Func156315
  23495. Node: Global156905
  23496. Node: Gnu_attribute157662
  23497. Node: Hidden157887
  23498. Node: hword158473
  23499. Node: Ident158801
  23500. Node: If159375
  23501. Node: Incbin162436
  23502. Node: Include163130
  23503. Node: Int163681
  23504. Node: Internal164062
  23505. Node: Irp164709
  23506. Node: Irpc165588
  23507. Node: Lcomm166504
  23508. Node: Lflags167251
  23509. Node: Line167445
  23510. Node: Linkonce168361
  23511. Node: List169590
  23512. Node: Ln170197
  23513. Node: Loc170347
  23514. Node: Loc_mark_labels172652
  23515. Node: Local173136
  23516. Node: Long173748
  23517. Node: Macro173926
  23518. Node: MRI179857
  23519. Node: Noaltmacro180195
  23520. Node: Nolist180364
  23521. Node: Nop180792
  23522. Node: Nops181476
  23523. Node: Octa182331
  23524. Node: Offset182666
  23525. Node: Org182993
  23526. Node: P2align184278
  23527. Node: PopSection186332
  23528. Node: Previous186840
  23529. Node: Print188252
  23530. Node: Protected188481
  23531. Node: Psize189128
  23532. Node: Purgem189812
  23533. Node: PushSection190033
  23534. Node: Quad190777
  23535. Node: Reloc191231
  23536. Node: Rept191992
  23537. Node: Sbttl192554
  23538. Node: Scl192919
  23539. Node: Section193260
  23540. Ref: Section Name Substitutions195318
  23541. Node: Set203146
  23542. Node: Short204238
  23543. Node: Single204559
  23544. Node: Size204904
  23545. Node: Skip205570
  23546. Node: Sleb128205894
  23547. Node: Space206216
  23548. Node: Stab206857
  23549. Node: String208860
  23550. Node: Struct209852
  23551. Node: SubSection210575
  23552. Node: Symver211136
  23553. Node: Tag214017
  23554. Node: Text214397
  23555. Node: Title214717
  23556. Node: Tls_common215104
  23557. Node: Type215423
  23558. Node: Uleb128217891
  23559. Node: Val218215
  23560. Node: Version218465
  23561. Node: VTableEntry218739
  23562. Node: VTableInherit219029
  23563. Node: Warning219479
  23564. Node: Weak219713
  23565. Node: Weakref220382
  23566. Node: Word221347
  23567. Node: Zero223187
  23568. Node: 2byte223594
  23569. Node: 4byte224544
  23570. Node: 8byte224808
  23571. Node: Deprecated225085
  23572. Node: Object Attributes225320
  23573. Node: GNU Object Attributes227040
  23574. Node: Defining New Object Attributes231386
  23575. Node: Machine Dependencies232178
  23576. Node: AArch64-Dependent236213
  23577. Node: AArch64 Options236695
  23578. Node: AArch64 Extensions239800
  23579. Node: AArch64 Syntax246427
  23580. Node: AArch64-Chars246727
  23581. Node: AArch64-Regs247213
  23582. Node: AArch64-Relocations247507
  23583. Node: AArch64 Floating Point248581
  23584. Node: AArch64 Directives248806
  23585. Node: AArch64 Opcodes252733
  23586. Node: AArch64 Mapping Symbols253410
  23587. Node: Alpha-Dependent253791
  23588. Node: Alpha Notes254231
  23589. Node: Alpha Options254512
  23590. Node: Alpha Syntax256987
  23591. Node: Alpha-Chars257456
  23592. Node: Alpha-Regs257868
  23593. Node: Alpha-Relocs258255
  23594. Node: Alpha Floating Point264501
  23595. Node: Alpha Directives264723
  23596. Node: Alpha Opcodes270250
  23597. Node: ARC-Dependent270545
  23598. Node: ARC Options270990
  23599. Node: ARC Syntax274116
  23600. Node: ARC-Chars274344
  23601. Node: ARC-Regs275466
  23602. Node: ARC Directives278234
  23603. Node: ARC Modifiers286889
  23604. Node: ARC Symbols287899
  23605. Node: ARC Opcodes288453
  23606. Node: ARM-Dependent288699
  23607. Node: ARM Options289164
  23608. Node: ARM Syntax309425
  23609. Node: ARM-Instruction-Set309793
  23610. Node: ARM-Chars311008
  23611. Node: ARM-Regs311719
  23612. Node: ARM-Relocations311928
  23613. Node: ARM-Neon-Alignment313614
  23614. Node: ARM Floating Point314079
  23615. Node: ARM Directives314278
  23616. Ref: arm_fnend319437
  23617. Ref: arm_fnstart319756
  23618. Ref: arm_pad322164
  23619. Ref: arm_save322766
  23620. Ref: arm_setfp323467
  23621. Node: ARM Opcodes326753
  23622. Node: ARM Mapping Symbols329355
  23623. Node: ARM Unwinding Tutorial330164
  23624. Node: AVR-Dependent336364
  23625. Node: AVR Options336703
  23626. Node: AVR Syntax343196
  23627. Node: AVR-Chars343483
  23628. Node: AVR-Regs344114
  23629. Node: AVR-Modifiers344695
  23630. Node: AVR Opcodes347063
  23631. Node: AVR Pseudo Instructions352341
  23632. Node: Blackfin-Dependent354000
  23633. Node: Blackfin Options354311
  23634. Node: Blackfin Syntax355285
  23635. Node: Blackfin Directives361491
  23636. Node: BPF-Dependent362232
  23637. Node: BPF Options362549
  23638. Node: BPF Syntax362932
  23639. Node: BPF-Chars363200
  23640. Node: BPF-Regs363593
  23641. Node: BPF-Pseudo-Maps364105
  23642. Node: BPF Directives364525
  23643. Node: BPF Opcodes364939
  23644. Node: CR16-Dependent371497
  23645. Node: CR16 Operand Qualifiers371792
  23646. Node: CR16 Syntax374501
  23647. Node: CR16-Chars374687
  23648. Node: CRIS-Dependent375224
  23649. Node: CRIS-Opts375571
  23650. Ref: march-option377256
  23651. Node: CRIS-Expand379075
  23652. Node: CRIS-Symbols380258
  23653. Node: CRIS-Syntax381429
  23654. Node: CRIS-Chars381765
  23655. Node: CRIS-Pic382316
  23656. Ref: crispic382511
  23657. Node: CRIS-Regs386060
  23658. Node: CRIS-Pseudos386477
  23659. Ref: crisnous387254
  23660. Node: C-SKY-Dependent388542
  23661. Node: C-SKY Options388804
  23662. Node: C-SKY Syntax391789
  23663. Node: D10V-Dependent392034
  23664. Node: D10V-Opts392388
  23665. Node: D10V-Syntax393359
  23666. Node: D10V-Size393890
  23667. Node: D10V-Subs394863
  23668. Node: D10V-Chars395900
  23669. Node: D10V-Regs397713
  23670. Node: D10V-Addressing398742
  23671. Node: D10V-Word399422
  23672. Node: D10V-Float399939
  23673. Node: D10V-Opcodes400252
  23674. Node: D30V-Dependent400647
  23675. Node: D30V-Opts401004
  23676. Node: D30V-Syntax401682
  23677. Node: D30V-Size402216
  23678. Node: D30V-Subs403189
  23679. Node: D30V-Chars404226
  23680. Node: D30V-Guarded406836
  23681. Node: D30V-Regs407513
  23682. Node: D30V-Addressing408632
  23683. Node: D30V-Float409294
  23684. Node: D30V-Opcodes409607
  23685. Node: Epiphany-Dependent410002
  23686. Node: Epiphany Options410290
  23687. Node: Epiphany Syntax410689
  23688. Node: Epiphany-Chars410890
  23689. Node: H8/300-Dependent411444
  23690. Node: H8/300 Options411860
  23691. Node: H8/300 Syntax412300
  23692. Node: H8/300-Chars412601
  23693. Node: H8/300-Regs412900
  23694. Node: H8/300-Addressing413819
  23695. Node: H8/300 Floating Point414843
  23696. Node: H8/300 Directives415170
  23697. Node: H8/300 Opcodes416298
  23698. Node: HPPA-Dependent424617
  23699. Node: HPPA Notes425049
  23700. Node: HPPA Options425808
  23701. Node: HPPA Syntax426003
  23702. Node: HPPA Floating Point427273
  23703. Node: HPPA Directives427479
  23704. Node: HPPA Opcodes436161
  23705. Node: i386-Dependent436420
  23706. Node: i386-Options437803
  23707. Node: i386-Directives452988
  23708. Node: i386-Syntax454330
  23709. Node: i386-Variations454635
  23710. Node: i386-Chars457559
  23711. Node: i386-Mnemonics458288
  23712. Node: i386-Regs463295
  23713. Node: i386-Prefixes465953
  23714. Node: i386-Memory468713
  23715. Node: i386-Jumps471652
  23716. Node: i386-Float472775
  23717. Node: i386-SIMD474676
  23718. Node: i386-LWP475785
  23719. Node: i386-BMI476619
  23720. Node: i386-TBM476997
  23721. Node: i386-16bit477527
  23722. Node: i386-Arch479598
  23723. Node: i386-ISA483307
  23724. Node: i386-Bugs484178
  23725. Node: i386-Notes484928
  23726. Node: IA-64-Dependent485787
  23727. Node: IA-64 Options486088
  23728. Node: IA-64 Syntax489239
  23729. Node: IA-64-Chars489645
  23730. Node: IA-64-Regs489875
  23731. Node: IA-64-Bits490801
  23732. Node: IA-64-Relocs491331
  23733. Node: IA-64 Opcodes491802
  23734. Node: IP2K-Dependent492074
  23735. Node: IP2K-Opts492346
  23736. Node: IP2K-Syntax492845
  23737. Node: IP2K-Chars493019
  23738. Node: LM32-Dependent493562
  23739. Node: LM32 Options493857
  23740. Node: LM32 Syntax494490
  23741. Node: LM32-Regs494786
  23742. Node: LM32-Modifiers495727
  23743. Node: LM32-Chars497107
  23744. Node: LM32 Opcodes497615
  23745. Node: M32C-Dependent497919
  23746. Node: M32C-Opts498425
  23747. Node: M32C-Syntax498844
  23748. Node: M32C-Modifiers499079
  23749. Node: M32C-Chars500871
  23750. Node: M32R-Dependent501437
  23751. Node: M32R-Opts501758
  23752. Node: M32R-Directives505920
  23753. Node: M32R-Warnings509894
  23754. Node: M68K-Dependent512899
  23755. Node: M68K-Opts513366
  23756. Node: M68K-Syntax520788
  23757. Node: M68K-Moto-Syntax522628
  23758. Node: M68K-Float525212
  23759. Node: M68K-Directives525732
  23760. Node: M68K-opcodes527059
  23761. Node: M68K-Branch527285
  23762. Node: M68K-Chars531480
  23763. Node: M68HC11-Dependent532343
  23764. Node: M68HC11-Opts532874
  23765. Node: M68HC11-Syntax537186
  23766. Node: M68HC11-Modifiers539980
  23767. Node: M68HC11-Directives541807
  23768. Node: M68HC11-Float543181
  23769. Node: M68HC11-opcodes543709
  23770. Node: M68HC11-Branch543891
  23771. Node: S12Z-Dependent546341
  23772. Node: S12Z Options546684
  23773. Node: S12Z Syntax547668
  23774. Node: S12Z Syntax Overview547987
  23775. Node: S12Z Addressing Modes549649
  23776. Node: S12Z Register Notation553453
  23777. Node: Meta-Dependent554629
  23778. Node: Meta Options554911
  23779. Node: Meta Syntax555573
  23780. Node: Meta-Chars555785
  23781. Node: Meta-Regs556085
  23782. Node: MicroBlaze-Dependent556361
  23783. Node: MicroBlaze Directives557048
  23784. Node: MicroBlaze Syntax558439
  23785. Node: MicroBlaze-Chars558671
  23786. Node: MIPS-Dependent559223
  23787. Node: MIPS Options560657
  23788. Node: MIPS Macros579749
  23789. Ref: MIPS Macros-Footnote-1582463
  23790. Node: MIPS Symbol Sizes582606
  23791. Node: MIPS Small Data584278
  23792. Node: MIPS ISA586442
  23793. Node: MIPS assembly options588226
  23794. Node: MIPS autoextend589359
  23795. Node: MIPS insn590093
  23796. Node: MIPS FP ABIs591374
  23797. Node: MIPS FP ABI History591826
  23798. Node: MIPS FP ABI Variants592586
  23799. Node: MIPS FP ABI Selection595139
  23800. Node: MIPS FP ABI Compatibility596202
  23801. Node: MIPS NaN Encodings597012
  23802. Node: MIPS Option Stack598975
  23803. Node: MIPS ASE Instruction Generation Overrides599760
  23804. Node: MIPS Floating-Point604521
  23805. Node: MIPS Syntax605427
  23806. Node: MIPS-Chars605689
  23807. Node: MMIX-Dependent606231
  23808. Node: MMIX-Opts606611
  23809. Node: MMIX-Expand610217
  23810. Node: MMIX-Syntax611529
  23811. Ref: mmixsite611885
  23812. Node: MMIX-Chars612727
  23813. Node: MMIX-Symbols613600
  23814. Node: MMIX-Regs615671
  23815. Node: MMIX-Pseudos616696
  23816. Ref: MMIX-loc616838
  23817. Ref: MMIX-local617919
  23818. Ref: MMIX-is618452
  23819. Ref: MMIX-greg618724
  23820. Ref: GREG-base619642
  23821. Ref: MMIX-byte620961
  23822. Ref: MMIX-constants621433
  23823. Ref: MMIX-prefix622075
  23824. Ref: MMIX-spec622450
  23825. Node: MMIX-mmixal622784
  23826. Node: MSP430-Dependent626279
  23827. Node: MSP430 Options626748
  23828. Node: MSP430 Syntax630316
  23829. Node: MSP430-Macros630632
  23830. Node: MSP430-Chars631362
  23831. Node: MSP430-Regs632077
  23832. Node: MSP430-Ext632638
  23833. Node: MSP430 Floating Point634457
  23834. Node: MSP430 Directives634681
  23835. Node: MSP430 Opcodes636522
  23836. Node: MSP430 Profiling Capability636917
  23837. Node: NDS32-Dependent639245
  23838. Node: NDS32 Options639854
  23839. Node: NDS32 Syntax641737
  23840. Node: NDS32-Chars642005
  23841. Node: NDS32-Regs642472
  23842. Node: NDS32-Ops643326
  23843. Node: NiosII-Dependent646923
  23844. Node: Nios II Options647342
  23845. Node: Nios II Syntax648574
  23846. Node: Nios II Chars648780
  23847. Node: Nios II Relocations648971
  23848. Node: Nios II Directives650542
  23849. Node: Nios II Opcodes652104
  23850. Node: NS32K-Dependent652379
  23851. Node: NS32K Syntax652608
  23852. Node: NS32K-Chars652757
  23853. Node: OpenRISC-Dependent653497
  23854. Node: OpenRISC-Syntax653840
  23855. Node: OpenRISC-Chars654161
  23856. Node: OpenRISC-Regs654484
  23857. Node: OpenRISC-Relocs655497
  23858. Node: OpenRISC-Float660277
  23859. Node: OpenRISC-Directives660483
  23860. Node: OpenRISC-Opcodes661281
  23861. Node: PDP-11-Dependent661573
  23862. Node: PDP-11-Options661966
  23863. Node: PDP-11-Pseudos667025
  23864. Node: PDP-11-Syntax667370
  23865. Node: PDP-11-Mnemonics668202
  23866. Node: PDP-11-Synthetic668504
  23867. Node: PJ-Dependent668722
  23868. Node: PJ Options668985
  23869. Node: PJ Syntax669280
  23870. Node: PJ-Chars669445
  23871. Node: PPC-Dependent669994
  23872. Node: PowerPC-Opts670326
  23873. Node: PowerPC-Pseudo674117
  23874. Node: PowerPC-Syntax674738
  23875. Node: PowerPC-Chars674928
  23876. Node: PRU-Dependent675679
  23877. Node: PRU Options676062
  23878. Node: PRU Syntax676801
  23879. Node: PRU Chars676988
  23880. Node: PRU Relocations677143
  23881. Node: PRU Directives677694
  23882. Node: PRU Opcodes678597
  23883. Node: RISC-V-Dependent679014
  23884. Node: RISC-V-Options679442
  23885. Node: RISC-V-Directives682156
  23886. Node: RISC-V-Modifiers687423
  23887. Node: RISC-V-Formats691491
  23888. Node: RISC-V-ATTRIBUTE700093
  23889. Node: RL78-Dependent702055
  23890. Node: RL78-Opts702456
  23891. Node: RL78-Modifiers703290
  23892. Node: RL78-Directives704069
  23893. Node: RL78-Syntax704673
  23894. Node: RL78-Chars704869
  23895. Node: RX-Dependent705425
  23896. Node: RX-Opts705856
  23897. Node: RX-Modifiers710118
  23898. Node: RX-Directives711221
  23899. Node: RX-Float711960
  23900. Node: RX-Syntax712595
  23901. Node: RX-Chars712774
  23902. Node: S/390-Dependent713326
  23903. Node: s390 Options714178
  23904. Node: s390 Characters716353
  23905. Node: s390 Syntax716874
  23906. Node: s390 Register717776
  23907. Node: s390 Mnemonics718592
  23908. Node: s390 Operands721612
  23909. Node: s390 Formats724243
  23910. Node: s390 Aliases733834
  23911. Node: s390 Operand Modifier737799
  23912. Node: s390 Instruction Marker741602
  23913. Node: s390 Literal Pool Entries742616
  23914. Node: s390 Directives744549
  23915. Node: s390 Floating Point750006
  23916. Node: SCORE-Dependent750454
  23917. Node: SCORE-Opts750756
  23918. Node: SCORE-Pseudo752043
  23919. Node: SCORE-Syntax754125
  23920. Node: SCORE-Chars754307
  23921. Node: SH-Dependent754865
  23922. Node: SH Options755277
  23923. Node: SH Syntax756328
  23924. Node: SH-Chars756601
  23925. Node: SH-Regs757144
  23926. Node: SH-Addressing757758
  23927. Node: SH Floating Point758666
  23928. Node: SH Directives759763
  23929. Node: SH Opcodes760164
  23930. Node: Sparc-Dependent764485
  23931. Node: Sparc-Opts764894
  23932. Node: Sparc-Aligned-Data770607
  23933. Node: Sparc-Syntax771439
  23934. Node: Sparc-Chars772013
  23935. Node: Sparc-Regs772576
  23936. Node: Sparc-Constants778424
  23937. Node: Sparc-Relocs783184
  23938. Node: Sparc-Size-Translations788302
  23939. Node: Sparc-Float789952
  23940. Node: Sparc-Directives790147
  23941. Node: TIC54X-Dependent792109
  23942. Node: TIC54X-Opts792872
  23943. Node: TIC54X-Block793913
  23944. Node: TIC54X-Env794273
  23945. Node: TIC54X-Constants794621
  23946. Node: TIC54X-Subsyms795018
  23947. Node: TIC54X-Locals796922
  23948. Node: TIC54X-Builtins797662
  23949. Node: TIC54X-Ext800076
  23950. Node: TIC54X-Directives800647
  23951. Node: TIC54X-Macros811555
  23952. Node: TIC54X-MMRegs813642
  23953. Node: TIC54X-Syntax813879
  23954. Node: TIC54X-Chars814069
  23955. Node: TIC6X-Dependent814760
  23956. Node: TIC6X Options815063
  23957. Node: TIC6X Syntax817062
  23958. Node: TIC6X Directives818165
  23959. Node: TILE-Gx-Dependent820449
  23960. Node: TILE-Gx Options820759
  23961. Node: TILE-Gx Syntax821108
  23962. Node: TILE-Gx Opcodes823344
  23963. Node: TILE-Gx Registers823632
  23964. Node: TILE-Gx Modifiers824403
  23965. Node: TILE-Gx Directives829402
  23966. Node: TILEPro-Dependent830305
  23967. Node: TILEPro Options830614
  23968. Node: TILEPro Syntax830798
  23969. Node: TILEPro Opcodes833034
  23970. Node: TILEPro Registers833325
  23971. Node: TILEPro Modifiers834095
  23972. Node: TILEPro Directives838884
  23973. Node: V850-Dependent839787
  23974. Node: V850 Options840183
  23975. Node: V850 Syntax844461
  23976. Node: V850-Chars844701
  23977. Node: V850-Regs845245
  23978. Node: V850 Floating Point846755
  23979. Node: V850 Directives846961
  23980. Node: V850 Opcodes849027
  23981. Node: Vax-Dependent854906
  23982. Node: VAX-Opts855490
  23983. Node: VAX-float859211
  23984. Node: VAX-directives859844
  23985. Node: VAX-opcodes860704
  23986. Node: VAX-branch861093
  23987. Node: VAX-operands863597
  23988. Node: VAX-no864360
  23989. Node: VAX-Syntax864616
  23990. Node: VAX-Chars864782
  23991. Node: Visium-Dependent865336
  23992. Node: Visium Options865649
  23993. Node: Visium Syntax866115
  23994. Node: Visium Characters866360
  23995. Node: Visium Registers866941
  23996. Node: Visium Opcodes867213
  23997. Node: WebAssembly-Dependent867639
  23998. Node: WebAssembly-Notes868080
  23999. Node: WebAssembly-Syntax868366
  24000. Node: WebAssembly-Chars868932
  24001. Node: WebAssembly-Relocs869311
  24002. Node: WebAssembly-Signatures870037
  24003. Node: WebAssembly-Floating-Point870538
  24004. Node: WebAssembly-Opcodes870779
  24005. Node: WebAssembly-module-layout871412
  24006. Node: XGATE-Dependent871891
  24007. Node: XGATE-Opts872318
  24008. Node: XGATE-Syntax873307
  24009. Node: XGATE-Directives875386
  24010. Node: XGATE-Float875625
  24011. Node: XGATE-opcodes876122
  24012. Node: XSTORMY16-Dependent876234
  24013. Node: XStormy16 Syntax876580
  24014. Node: XStormy16-Chars876770
  24015. Node: XStormy16 Directives877383
  24016. Node: XStormy16 Opcodes878037
  24017. Node: Xtensa-Dependent879092
  24018. Node: Xtensa Options879823
  24019. Node: Xtensa Syntax884396
  24020. Node: Xtensa Opcodes886540
  24021. Node: Xtensa Registers888333
  24022. Node: Xtensa Optimizations888966
  24023. Node: Density Instructions889418
  24024. Node: Xtensa Automatic Alignment890520
  24025. Node: Xtensa Relaxation892967
  24026. Node: Xtensa Branch Relaxation893932
  24027. Node: Xtensa Call Relaxation895304
  24028. Node: Xtensa Jump Relaxation897085
  24029. Node: Xtensa Immediate Relaxation899185
  24030. Node: Xtensa Directives901760
  24031. Node: Schedule Directive903468
  24032. Node: Longcalls Directive903808
  24033. Node: Transform Directive904352
  24034. Node: Literal Directive905094
  24035. Ref: Literal Directive-Footnote-1908633
  24036. Node: Literal Position Directive908775
  24037. Node: Literal Prefix Directive910474
  24038. Node: Absolute Literals Directive911372
  24039. Node: Z80-Dependent912679
  24040. Node: Z80 Options913067
  24041. Node: Z80 Syntax915566
  24042. Node: Z80-Chars916274
  24043. Node: Z80-Regs917125
  24044. Node: Z80-Case917477
  24045. Node: Z80-Labels917941
  24046. Node: Z80 Floating Point918437
  24047. Node: Z80 Directives918906
  24048. Node: Z80 Opcodes921338
  24049. Node: Z8000-Dependent922964
  24050. Node: Z8000 Options923900
  24051. Node: Z8000 Syntax924117
  24052. Node: Z8000-Chars924407
  24053. Node: Z8000-Regs924889
  24054. Node: Z8000-Addressing925679
  24055. Node: Z8000 Directives926789
  24056. Node: Z8000 Opcodes928398
  24057. Node: Reporting Bugs938340
  24058. Node: Bug Criteria939066
  24059. Node: Bug Reporting939833
  24060. Node: Acknowledgements946474
  24061. Ref: Acknowledgements-Footnote-1951440
  24062. Node: GNU Free Documentation License951466
  24063. Node: AS Index976616
  24064. 
  24065. End Tag Table
  24066. 
  24067. Local Variables:
  24068. coding: utf-8
  24069. End: