as.info 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485
  1. This is as.info, produced by makeinfo version 6.7 from as.texi.
  2. This file documents the GNU Assembler "as".
  3. Copyright (C) 1991-2020 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.34.
  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-2] [-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. [-hash-size=NUM] [-reduce-memory-overheads]
  57. [-statistics]
  58. [-v] [-version] [-version]
  59. [-W] [-warn] [-fatal-warnings] [-w] [-x]
  60. [-Z] [@FILE]
  61. [-sectname-subst] [-size-check=[error|warning]]
  62. [-elf-stt-common=[no|yes]]
  63. [-generate-missing-build-notes=[no|yes]]
  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. _Target RL78 options:_
  250. [-mg10]
  251. [-m32bit-doubles|-m64bit-doubles]
  252. _Target RX options:_
  253. [-mlittle-endian|-mbig-endian]
  254. [-m32bit-doubles|-m64bit-doubles]
  255. [-muse-conventional-section-names]
  256. [-msmall-data-limit]
  257. [-mpid]
  258. [-mrelax]
  259. [-mint-register=NUMBER]
  260. [-mgcc-abi|-mrx-abi]
  261. _Target s390 options:_
  262. [-m31|-m64] [-mesa|-mzarch] [-march=CPU]
  263. [-mregnames|-mno-regnames]
  264. [-mwarn-areg-zero]
  265. _Target SCORE options:_
  266. [-EB][-EL][-FIXDD][-NWARN]
  267. [-SCORE5][-SCORE5U][-SCORE7][-SCORE3]
  268. [-march=score7][-march=score3]
  269. [-USE_R1][-KPIC][-O0][-G NUM][-V]
  270. _Target SPARC options:_
  271. [-Av6|-Av7|-Av8|-Aleon|-Asparclet|-Asparclite
  272. -Av8plus|-Av8plusa|-Av8plusb|-Av8plusc|-Av8plusd
  273. -Av8plusv|-Av8plusm|-Av9|-Av9a|-Av9b|-Av9c
  274. -Av9d|-Av9e|-Av9v|-Av9m|-Asparc|-Asparcvis
  275. -Asparcvis2|-Asparcfmaf|-Asparcima|-Asparcvis3
  276. -Asparcvisr|-Asparc5]
  277. [-xarch=v8plus|-xarch=v8plusa]|-xarch=v8plusb|-xarch=v8plusc
  278. -xarch=v8plusd|-xarch=v8plusv|-xarch=v8plusm|-xarch=v9
  279. -xarch=v9a|-xarch=v9b|-xarch=v9c|-xarch=v9d|-xarch=v9e
  280. -xarch=v9v|-xarch=v9m|-xarch=sparc|-xarch=sparcvis
  281. -xarch=sparcvis2|-xarch=sparcfmaf|-xarch=sparcima
  282. -xarch=sparcvis3|-xarch=sparcvisr|-xarch=sparc5
  283. -bump]
  284. [-32|-64]
  285. [-enforce-aligned-data][-dcti-couples-detect]
  286. _Target TIC54X options:_
  287. [-mcpu=54[123589]|-mcpu=54[56]lp] [-mfar-mode|-mf]
  288. [-merrors-to-file <FILENAME>|-me <FILENAME>]
  289. _Target TIC6X options:_
  290. [-march=ARCH] [-mbig-endian|-mlittle-endian]
  291. [-mdsbt|-mno-dsbt] [-mpid=no|-mpid=near|-mpid=far]
  292. [-mpic|-mno-pic]
  293. _Target TILE-Gx options:_
  294. [-m32|-m64][-EB][-EL]
  295. _Target Visium options:_
  296. [-mtune=ARCH]
  297. _Target Xtensa options:_
  298. [-[no-]text-section-literals] [-[no-]auto-litpools]
  299. [-[no-]absolute-literals]
  300. [-[no-]target-align] [-[no-]longcalls]
  301. [-[no-]transform]
  302. [-rename-section OLDNAME=NEWNAME]
  303. [-[no-]trampolines]
  304. _Target Z80 options:_
  305. [-z80]|[-z180]|[-r800]|[-ez80]|[-ez80-adl]
  306. [-local-prefix=PREFIX]
  307. [-colonless]
  308. [-sdcc]
  309. [-fp-s=FORMAT]
  310. [-fp-d=FORMAT]
  311. [-strict]|[-full]
  312. [-with-inst=INST[,...]] [-Wnins INST[,...]]
  313. [-without-inst=INST[,...]] [-Fins INST[,...]]
  314. [ -ignore-undocumented-instructions] [-Wnud]
  315. [ -ignore-unportable-instructions] [-Wnup]
  316. [ -warn-undocumented-instructions] [-Wud]
  317. [ -warn-unportable-instructions] [-Wup]
  318. [ -forbid-undocumented-instructions] [-Fud]
  319. [ -forbid-unportable-instructions] [-Fup]
  320. '@FILE'
  321. Read command-line options from FILE. The options read are inserted
  322. in place of the original @FILE option. If FILE does not exist, or
  323. cannot be read, then the option will be treated literally, and not
  324. removed.
  325. Options in FILE are separated by whitespace. A whitespace
  326. character may be included in an option by surrounding the entire
  327. option in either single or double quotes. Any character (including
  328. a backslash) may be included by prefixing the character to be
  329. included with a backslash. The FILE may itself contain additional
  330. @FILE options; any such options will be processed recursively.
  331. '-a[cdghlmns]'
  332. Turn on listings, in any of a variety of ways:
  333. '-ac'
  334. omit false conditionals
  335. '-ad'
  336. omit debugging directives
  337. '-ag'
  338. include general information, like as version and options
  339. passed
  340. '-ah'
  341. include high-level source
  342. '-al'
  343. include assembly
  344. '-am'
  345. include macro expansions
  346. '-an'
  347. omit forms processing
  348. '-as'
  349. include symbols
  350. '=file'
  351. set the name of the listing file
  352. You may combine these options; for example, use '-aln' for assembly
  353. listing without forms processing. The '=file' option, if used,
  354. must be the last one. By itself, '-a' defaults to '-ahls'.
  355. '--alternate'
  356. Begin in alternate macro mode. *Note '.altmacro': Altmacro.
  357. '--compress-debug-sections'
  358. Compress DWARF debug sections using zlib with SHF_COMPRESSED from
  359. the ELF ABI. The resulting object file may not be compatible with
  360. older linkers and object file utilities. Note if compression would
  361. make a given section _larger_ then it is not compressed.
  362. '--compress-debug-sections=none'
  363. '--compress-debug-sections=zlib'
  364. '--compress-debug-sections=zlib-gnu'
  365. '--compress-debug-sections=zlib-gabi'
  366. These options control how DWARF debug sections are compressed.
  367. '--compress-debug-sections=none' is equivalent to
  368. '--nocompress-debug-sections'. '--compress-debug-sections=zlib'
  369. and '--compress-debug-sections=zlib-gabi' are equivalent to
  370. '--compress-debug-sections'. '--compress-debug-sections=zlib-gnu'
  371. compresses DWARF debug sections using zlib. The debug sections are
  372. renamed to begin with '.zdebug'. Note if compression would make a
  373. given section _larger_ then it is not compressed nor renamed.
  374. '--nocompress-debug-sections'
  375. Do not compress DWARF debug sections. This is usually the default
  376. for all targets except the x86/x86_64, but a configure time option
  377. can be used to override this.
  378. '-D'
  379. Ignored. This option is accepted for script compatibility with
  380. calls to other assemblers.
  381. '--debug-prefix-map OLD=NEW'
  382. When assembling files in directory 'OLD', record debugging
  383. information describing them as in 'NEW' instead.
  384. '--defsym SYM=VALUE'
  385. Define the symbol SYM to be VALUE before assembling the input file.
  386. VALUE must be an integer constant. As in C, a leading '0x'
  387. indicates a hexadecimal value, and a leading '0' indicates an octal
  388. value. The value of the symbol can be overridden inside a source
  389. file via the use of a '.set' pseudo-op.
  390. '-f'
  391. "fast"--skip whitespace and comment preprocessing (assume source is
  392. compiler output).
  393. '-g'
  394. '--gen-debug'
  395. Generate debugging information for each assembler source line using
  396. whichever debug format is preferred by the target. This currently
  397. means either STABS, ECOFF or DWARF2.
  398. '--gstabs'
  399. Generate stabs debugging information for each assembler line. This
  400. may help debugging assembler code, if the debugger can handle it.
  401. '--gstabs+'
  402. Generate stabs debugging information for each assembler line, with
  403. GNU extensions that probably only gdb can handle, and that could
  404. make other debuggers crash or refuse to read your program. This
  405. may help debugging assembler code. Currently the only GNU
  406. extension is the location of the current working directory at
  407. assembling time.
  408. '--gdwarf-2'
  409. Generate DWARF2 debugging information for each assembler line.
  410. This may help debugging assembler code, if the debugger can handle
  411. it. Note--this option is only supported by some targets, not all
  412. of them.
  413. '--gdwarf-sections'
  414. Instead of creating a .debug_line section, create a series of
  415. .debug_line.FOO sections where FOO is the name of the corresponding
  416. code section. For example a code section called .TEXT.FUNC will
  417. have its dwarf line number information placed into a section called
  418. .DEBUG_LINE.TEXT.FUNC. If the code section is just called .TEXT
  419. then debug line section will still be called just .DEBUG_LINE
  420. without any suffix.
  421. '--gdwarf-cie-version=VERSION'
  422. Control which version of DWARF Common Information Entries (CIEs)
  423. are produced. When this flag is not specificed the default is
  424. version 1, though some targets can modify this default. Other
  425. possible values for VERSION are 3 or 4.
  426. '--size-check=error'
  427. '--size-check=warning'
  428. Issue an error or warning for invalid ELF .size directive.
  429. '--elf-stt-common=no'
  430. '--elf-stt-common=yes'
  431. These options control whether the ELF assembler should generate
  432. common symbols with the 'STT_COMMON' type. The default can be
  433. controlled by a configure option '--enable-elf-stt-common'.
  434. '--generate-missing-build-notes=yes'
  435. '--generate-missing-build-notes=no'
  436. These options control whether the ELF assembler should generate GNU
  437. Build attribute notes if none are present in the input sources.
  438. The default can be controlled by the
  439. '--enable-generate-build-notes' configure option.
  440. '--help'
  441. Print a summary of the command-line options and exit.
  442. '--target-help'
  443. Print a summary of all target specific options and exit.
  444. '-I DIR'
  445. Add directory DIR to the search list for '.include' directives.
  446. '-J'
  447. Don't warn about signed overflow.
  448. '-K'
  449. Issue warnings when difference tables altered for long
  450. displacements.
  451. '-L'
  452. '--keep-locals'
  453. Keep (in the symbol table) local symbols. These symbols start with
  454. system-specific local label prefixes, typically '.L' for ELF
  455. systems or 'L' for traditional a.out systems. *Note Symbol
  456. Names::.
  457. '--listing-lhs-width=NUMBER'
  458. Set the maximum width, in words, of the output data column for an
  459. assembler listing to NUMBER.
  460. '--listing-lhs-width2=NUMBER'
  461. Set the maximum width, in words, of the output data column for
  462. continuation lines in an assembler listing to NUMBER.
  463. '--listing-rhs-width=NUMBER'
  464. Set the maximum width of an input source line, as displayed in a
  465. listing, to NUMBER bytes.
  466. '--listing-cont-lines=NUMBER'
  467. Set the maximum number of lines printed in a listing for a single
  468. line of input to NUMBER + 1.
  469. '--no-pad-sections'
  470. Stop the assembler for padding the ends of output sections to the
  471. alignment of that section. The default is to pad the sections, but
  472. this can waste space which might be needed on targets which have
  473. tight memory constraints.
  474. '-o OBJFILE'
  475. Name the object-file output from 'as' OBJFILE.
  476. '-R'
  477. Fold the data section into the text section.
  478. '--hash-size=NUMBER'
  479. Set the default size of GAS's hash tables to a prime number close
  480. to NUMBER. Increasing this value can reduce the length of time it
  481. takes the assembler to perform its tasks, at the expense of
  482. increasing the assembler's memory requirements. Similarly reducing
  483. this value can reduce the memory requirements at the expense of
  484. speed.
  485. '--reduce-memory-overheads'
  486. This option reduces GAS's memory requirements, at the expense of
  487. making the assembly processes slower. Currently this switch is a
  488. synonym for '--hash-size=4051', but in the future it may have other
  489. effects as well.
  490. '--sectname-subst'
  491. Honor substitution sequences in section names. *Note '.section
  492. NAME': Section Name Substitutions.
  493. '--statistics'
  494. Print the maximum space (in bytes) and total time (in seconds) used
  495. by assembly.
  496. '--strip-local-absolute'
  497. Remove local absolute symbols from the outgoing symbol table.
  498. '-v'
  499. '-version'
  500. Print the 'as' version.
  501. '--version'
  502. Print the 'as' version and exit.
  503. '-W'
  504. '--no-warn'
  505. Suppress warning messages.
  506. '--fatal-warnings'
  507. Treat warnings as errors.
  508. '--warn'
  509. Don't suppress warning messages or treat them as errors.
  510. '-w'
  511. Ignored.
  512. '-x'
  513. Ignored.
  514. '-Z'
  515. Generate an object file even after errors.
  516. '-- | FILES ...'
  517. Standard input, or source files to assemble.
  518. *Note AArch64 Options::, for the options available when as is
  519. configured for the 64-bit mode of the ARM Architecture (AArch64).
  520. *Note Alpha Options::, for the options available when as is
  521. configured for an Alpha processor.
  522. The following options are available when as is configured for an ARC
  523. processor.
  524. '-mcpu=CPU'
  525. This option selects the core processor variant.
  526. '-EB | -EL'
  527. Select either big-endian (-EB) or little-endian (-EL) output.
  528. '-mcode-density'
  529. Enable Code Density extenssion instructions.
  530. The following options are available when as is configured for the ARM
  531. processor family.
  532. '-mcpu=PROCESSOR[+EXTENSION...]'
  533. Specify which ARM processor variant is the target.
  534. '-march=ARCHITECTURE[+EXTENSION...]'
  535. Specify which ARM architecture variant is used by the target.
  536. '-mfpu=FLOATING-POINT-FORMAT'
  537. Select which Floating Point architecture is the target.
  538. '-mfloat-abi=ABI'
  539. Select which floating point ABI is in use.
  540. '-mthumb'
  541. Enable Thumb only instruction decoding.
  542. '-mapcs-32 | -mapcs-26 | -mapcs-float | -mapcs-reentrant'
  543. Select which procedure calling convention is in use.
  544. '-EB | -EL'
  545. Select either big-endian (-EB) or little-endian (-EL) output.
  546. '-mthumb-interwork'
  547. Specify that the code has been generated with interworking between
  548. Thumb and ARM code in mind.
  549. '-mccs'
  550. Turns on CodeComposer Studio assembly syntax compatibility mode.
  551. '-k'
  552. Specify that PIC code has been generated.
  553. *Note Blackfin Options::, for the options available when as is
  554. configured for the Blackfin processor family.
  555. *Note BPF Options::, for the options available when as is configured
  556. for the Linux kernel BPF processor family.
  557. See the info pages for documentation of the CRIS-specific options.
  558. *Note C-SKY Options::, for the options available when as is
  559. configured for the C-SKY processor family.
  560. The following options are available when as is configured for a D10V
  561. processor.
  562. '-O'
  563. Optimize output by parallelizing instructions.
  564. The following options are available when as is configured for a D30V
  565. processor.
  566. '-O'
  567. Optimize output by parallelizing instructions.
  568. '-n'
  569. Warn when nops are generated.
  570. '-N'
  571. Warn when a nop after a 32-bit multiply instruction is generated.
  572. The following options are available when as is configured for the
  573. Adapteva EPIPHANY series.
  574. *Note Epiphany Options::, for the options available when as is
  575. configured for an Epiphany processor.
  576. *Note i386-Options::, for the options available when as is configured
  577. for an i386 processor.
  578. The following options are available when as is configured for the
  579. Ubicom IP2K series.
  580. '-mip2022ext'
  581. Specifies that the extended IP2022 instructions are allowed.
  582. '-mip2022'
  583. Restores the default behaviour, which restricts the permitted
  584. instructions to just the basic IP2022 ones.
  585. The following options are available when as is configured for the
  586. Renesas M32C and M16C processors.
  587. '-m32c'
  588. Assemble M32C instructions.
  589. '-m16c'
  590. Assemble M16C instructions (the default).
  591. '-relax'
  592. Enable support for link-time relaxations.
  593. '-h-tick-hex'
  594. Support H'00 style hex constants in addition to 0x00 style.
  595. The following options are available when as is configured for the
  596. Renesas M32R (formerly Mitsubishi M32R) series.
  597. '--m32rx'
  598. Specify which processor in the M32R family is the target. The
  599. default is normally the M32R, but this option changes it to the
  600. M32RX.
  601. '--warn-explicit-parallel-conflicts or --Wp'
  602. Produce warning messages when questionable parallel constructs are
  603. encountered.
  604. '--no-warn-explicit-parallel-conflicts or --Wnp'
  605. Do not produce warning messages when questionable parallel
  606. constructs are encountered.
  607. The following options are available when as is configured for the
  608. Motorola 68000 series.
  609. '-l'
  610. Shorten references to undefined symbols, to one word instead of
  611. two.
  612. '-m68000 | -m68008 | -m68010 | -m68020 | -m68030'
  613. '| -m68040 | -m68060 | -m68302 | -m68331 | -m68332'
  614. '| -m68333 | -m68340 | -mcpu32 | -m5200'
  615. Specify what processor in the 68000 family is the target. The
  616. default is normally the 68020, but this can be changed at
  617. configuration time.
  618. '-m68881 | -m68882 | -mno-68881 | -mno-68882'
  619. The target machine does (or does not) have a floating-point
  620. coprocessor. The default is to assume a coprocessor for 68020,
  621. 68030, and cpu32. Although the basic 68000 is not compatible with
  622. the 68881, a combination of the two can be specified, since it's
  623. possible to do emulation of the coprocessor instructions with the
  624. main processor.
  625. '-m68851 | -mno-68851'
  626. The target machine does (or does not) have a memory-management unit
  627. coprocessor. The default is to assume an MMU for 68020 and up.
  628. *Note Nios II Options::, for the options available when as is
  629. configured for an Altera Nios II processor.
  630. For details about the PDP-11 machine dependent features options, see
  631. *note PDP-11-Options::.
  632. '-mpic | -mno-pic'
  633. Generate position-independent (or position-dependent) code. The
  634. default is '-mpic'.
  635. '-mall'
  636. '-mall-extensions'
  637. Enable all instruction set extensions. This is the default.
  638. '-mno-extensions'
  639. Disable all instruction set extensions.
  640. '-mEXTENSION | -mno-EXTENSION'
  641. Enable (or disable) a particular instruction set extension.
  642. '-mCPU'
  643. Enable the instruction set extensions supported by a particular
  644. CPU, and disable all other extensions.
  645. '-mMACHINE'
  646. Enable the instruction set extensions supported by a particular
  647. machine model, and disable all other extensions.
  648. The following options are available when as is configured for a
  649. picoJava processor.
  650. '-mb'
  651. Generate "big endian" format output.
  652. '-ml'
  653. Generate "little endian" format output.
  654. *Note PRU Options::, for the options available when as is configured
  655. for a PRU processor.
  656. The following options are available when as is configured for the
  657. Motorola 68HC11 or 68HC12 series.
  658. '-m68hc11 | -m68hc12 | -m68hcs12 | -mm9s12x | -mm9s12xg'
  659. Specify what processor is the target. The default is defined by
  660. the configuration option when building the assembler.
  661. '--xgate-ramoffset'
  662. Instruct the linker to offset RAM addresses from S12X address space
  663. into XGATE address space.
  664. '-mshort'
  665. Specify to use the 16-bit integer ABI.
  666. '-mlong'
  667. Specify to use the 32-bit integer ABI.
  668. '-mshort-double'
  669. Specify to use the 32-bit double ABI.
  670. '-mlong-double'
  671. Specify to use the 64-bit double ABI.
  672. '--force-long-branches'
  673. Relative branches are turned into absolute ones. This concerns
  674. conditional branches, unconditional branches and branches to a sub
  675. routine.
  676. '-S | --short-branches'
  677. Do not turn relative branches into absolute ones when the offset is
  678. out of range.
  679. '--strict-direct-mode'
  680. Do not turn the direct addressing mode into extended addressing
  681. mode when the instruction does not support direct addressing mode.
  682. '--print-insn-syntax'
  683. Print the syntax of instruction in case of error.
  684. '--print-opcodes'
  685. Print the list of instructions with syntax and then exit.
  686. '--generate-example'
  687. Print an example of instruction for each possible instruction and
  688. then exit. This option is only useful for testing 'as'.
  689. The following options are available when 'as' is configured for the
  690. SPARC architecture:
  691. '-Av6 | -Av7 | -Av8 | -Asparclet | -Asparclite'
  692. '-Av8plus | -Av8plusa | -Av9 | -Av9a'
  693. Explicitly select a variant of the SPARC architecture.
  694. '-Av8plus' and '-Av8plusa' select a 32 bit environment. '-Av9' and
  695. '-Av9a' select a 64 bit environment.
  696. '-Av8plusa' and '-Av9a' enable the SPARC V9 instruction set with
  697. UltraSPARC extensions.
  698. '-xarch=v8plus | -xarch=v8plusa'
  699. For compatibility with the Solaris v9 assembler. These options are
  700. equivalent to -Av8plus and -Av8plusa, respectively.
  701. '-bump'
  702. Warn when the assembler switches to another architecture.
  703. The following options are available when as is configured for the
  704. 'c54x architecture.
  705. '-mfar-mode'
  706. Enable extended addressing mode. All addresses and relocations
  707. will assume extended addressing (usually 23 bits).
  708. '-mcpu=CPU_VERSION'
  709. Sets the CPU version being compiled for.
  710. '-merrors-to-file FILENAME'
  711. Redirect error output to a file, for broken systems which don't
  712. support such behaviour in the shell.
  713. The following options are available when as is configured for a MIPS
  714. processor.
  715. '-G NUM'
  716. This option sets the largest size of an object that can be
  717. referenced implicitly with the 'gp' register. It is only accepted
  718. for targets that use ECOFF format, such as a DECstation running
  719. Ultrix. The default value is 8.
  720. '-EB'
  721. Generate "big endian" format output.
  722. '-EL'
  723. Generate "little endian" format output.
  724. '-mips1'
  725. '-mips2'
  726. '-mips3'
  727. '-mips4'
  728. '-mips5'
  729. '-mips32'
  730. '-mips32r2'
  731. '-mips32r3'
  732. '-mips32r5'
  733. '-mips32r6'
  734. '-mips64'
  735. '-mips64r2'
  736. '-mips64r3'
  737. '-mips64r5'
  738. '-mips64r6'
  739. Generate code for a particular MIPS Instruction Set Architecture
  740. level. '-mips1' is an alias for '-march=r3000', '-mips2' is an
  741. alias for '-march=r6000', '-mips3' is an alias for '-march=r4000'
  742. and '-mips4' is an alias for '-march=r8000'. '-mips5', '-mips32',
  743. '-mips32r2', '-mips32r3', '-mips32r5', '-mips32r6', '-mips64',
  744. '-mips64r2', '-mips64r3', '-mips64r5', and '-mips64r6' correspond
  745. to generic MIPS V, MIPS32, MIPS32 Release 2, MIPS32 Release 3,
  746. MIPS32 Release 5, MIPS32 Release 6, MIPS64, MIPS64 Release 2,
  747. MIPS64 Release 3, MIPS64 Release 5, and MIPS64 Release 6 ISA
  748. processors, respectively.
  749. '-march=CPU'
  750. Generate code for a particular MIPS CPU.
  751. '-mtune=CPU'
  752. Schedule and tune for a particular MIPS CPU.
  753. '-mfix7000'
  754. '-mno-fix7000'
  755. Cause nops to be inserted if the read of the destination register
  756. of an mfhi or mflo instruction occurs in the following two
  757. instructions.
  758. '-mfix-rm7000'
  759. '-mno-fix-rm7000'
  760. Cause nops to be inserted if a dmult or dmultu instruction is
  761. followed by a load instruction.
  762. '-mfix-r5900'
  763. '-mno-fix-r5900'
  764. Do not attempt to schedule the preceding instruction into the delay
  765. slot of a branch instruction placed at the end of a short loop of
  766. six instructions or fewer and always schedule a 'nop' instruction
  767. there instead. The short loop bug under certain conditions causes
  768. loops to execute only once or twice, due to a hardware bug in the
  769. R5900 chip.
  770. '-mdebug'
  771. '-no-mdebug'
  772. Cause stabs-style debugging output to go into an ECOFF-style
  773. .mdebug section instead of the standard ELF .stabs sections.
  774. '-mpdr'
  775. '-mno-pdr'
  776. Control generation of '.pdr' sections.
  777. '-mgp32'
  778. '-mfp32'
  779. The register sizes are normally inferred from the ISA and ABI, but
  780. these flags force a certain group of registers to be treated as 32
  781. bits wide at all times. '-mgp32' controls the size of
  782. general-purpose registers and '-mfp32' controls the size of
  783. floating-point registers.
  784. '-mgp64'
  785. '-mfp64'
  786. The register sizes are normally inferred from the ISA and ABI, but
  787. these flags force a certain group of registers to be treated as 64
  788. bits wide at all times. '-mgp64' controls the size of
  789. general-purpose registers and '-mfp64' controls the size of
  790. floating-point registers.
  791. '-mfpxx'
  792. The register sizes are normally inferred from the ISA and ABI, but
  793. using this flag in combination with '-mabi=32' enables an ABI
  794. variant which will operate correctly with floating-point registers
  795. which are 32 or 64 bits wide.
  796. '-modd-spreg'
  797. '-mno-odd-spreg'
  798. Enable use of floating-point operations on odd-numbered
  799. single-precision registers when supported by the ISA. '-mfpxx'
  800. implies '-mno-odd-spreg', otherwise the default is '-modd-spreg'.
  801. '-mips16'
  802. '-no-mips16'
  803. Generate code for the MIPS 16 processor. This is equivalent to
  804. putting '.module mips16' at the start of the assembly file.
  805. '-no-mips16' turns off this option.
  806. '-mmips16e2'
  807. '-mno-mips16e2'
  808. Enable the use of MIPS16e2 instructions in MIPS16 mode. This is
  809. equivalent to putting '.module mips16e2' at the start of the
  810. assembly file. '-mno-mips16e2' turns off this option.
  811. '-mmicromips'
  812. '-mno-micromips'
  813. Generate code for the microMIPS processor. This is equivalent to
  814. putting '.module micromips' at the start of the assembly file.
  815. '-mno-micromips' turns off this option. This is equivalent to
  816. putting '.module nomicromips' at the start of the assembly file.
  817. '-msmartmips'
  818. '-mno-smartmips'
  819. Enables the SmartMIPS extension to the MIPS32 instruction set.
  820. This is equivalent to putting '.module smartmips' at the start of
  821. the assembly file. '-mno-smartmips' turns off this option.
  822. '-mips3d'
  823. '-no-mips3d'
  824. Generate code for the MIPS-3D Application Specific Extension. This
  825. tells the assembler to accept MIPS-3D instructions. '-no-mips3d'
  826. turns off this option.
  827. '-mdmx'
  828. '-no-mdmx'
  829. Generate code for the MDMX Application Specific Extension. This
  830. tells the assembler to accept MDMX instructions. '-no-mdmx' turns
  831. off this option.
  832. '-mdsp'
  833. '-mno-dsp'
  834. Generate code for the DSP Release 1 Application Specific Extension.
  835. This tells the assembler to accept DSP Release 1 instructions.
  836. '-mno-dsp' turns off this option.
  837. '-mdspr2'
  838. '-mno-dspr2'
  839. Generate code for the DSP Release 2 Application Specific Extension.
  840. This option implies '-mdsp'. This tells the assembler to accept
  841. DSP Release 2 instructions. '-mno-dspr2' turns off this option.
  842. '-mdspr3'
  843. '-mno-dspr3'
  844. Generate code for the DSP Release 3 Application Specific Extension.
  845. This option implies '-mdsp' and '-mdspr2'. This tells the
  846. assembler to accept DSP Release 3 instructions. '-mno-dspr3' turns
  847. off this option.
  848. '-mmsa'
  849. '-mno-msa'
  850. Generate code for the MIPS SIMD Architecture Extension. This tells
  851. the assembler to accept MSA instructions. '-mno-msa' turns off
  852. this option.
  853. '-mxpa'
  854. '-mno-xpa'
  855. Generate code for the MIPS eXtended Physical Address (XPA)
  856. Extension. This tells the assembler to accept XPA instructions.
  857. '-mno-xpa' turns off this option.
  858. '-mmt'
  859. '-mno-mt'
  860. Generate code for the MT Application Specific Extension. This
  861. tells the assembler to accept MT instructions. '-mno-mt' turns off
  862. this option.
  863. '-mmcu'
  864. '-mno-mcu'
  865. Generate code for the MCU Application Specific Extension. This
  866. tells the assembler to accept MCU instructions. '-mno-mcu' turns
  867. off this option.
  868. '-mcrc'
  869. '-mno-crc'
  870. Generate code for the MIPS cyclic redundancy check (CRC)
  871. Application Specific Extension. This tells the assembler to accept
  872. CRC instructions. '-mno-crc' turns off this option.
  873. '-mginv'
  874. '-mno-ginv'
  875. Generate code for the Global INValidate (GINV) Application Specific
  876. Extension. This tells the assembler to accept GINV instructions.
  877. '-mno-ginv' turns off this option.
  878. '-mloongson-mmi'
  879. '-mno-loongson-mmi'
  880. Generate code for the Loongson MultiMedia extensions Instructions
  881. (MMI) Application Specific Extension. This tells the assembler to
  882. accept MMI instructions. '-mno-loongson-mmi' turns off this
  883. option.
  884. '-mloongson-cam'
  885. '-mno-loongson-cam'
  886. Generate code for the Loongson Content Address Memory (CAM)
  887. instructions. This tells the assembler to accept Loongson CAM
  888. instructions. '-mno-loongson-cam' turns off this option.
  889. '-mloongson-ext'
  890. '-mno-loongson-ext'
  891. Generate code for the Loongson EXTensions (EXT) instructions. This
  892. tells the assembler to accept Loongson EXT instructions.
  893. '-mno-loongson-ext' turns off this option.
  894. '-mloongson-ext2'
  895. '-mno-loongson-ext2'
  896. Generate code for the Loongson EXTensions R2 (EXT2) instructions.
  897. This option implies '-mloongson-ext'. This tells the assembler to
  898. accept Loongson EXT2 instructions. '-mno-loongson-ext2' turns off
  899. this option.
  900. '-minsn32'
  901. '-mno-insn32'
  902. Only use 32-bit instruction encodings when generating code for the
  903. microMIPS processor. This option inhibits the use of any 16-bit
  904. instructions. This is equivalent to putting '.set insn32' at the
  905. start of the assembly file. '-mno-insn32' turns off this option.
  906. This is equivalent to putting '.set noinsn32' at the start of the
  907. assembly file. By default '-mno-insn32' is selected, allowing all
  908. instructions to be used.
  909. '--construct-floats'
  910. '--no-construct-floats'
  911. The '--no-construct-floats' option disables the construction of
  912. double width floating point constants by loading the two halves of
  913. the value into the two single width floating point registers that
  914. make up the double width register. By default '--construct-floats'
  915. is selected, allowing construction of these floating point
  916. constants.
  917. '--relax-branch'
  918. '--no-relax-branch'
  919. The '--relax-branch' option enables the relaxation of out-of-range
  920. branches. By default '--no-relax-branch' is selected, causing any
  921. out-of-range branches to produce an error.
  922. '-mignore-branch-isa'
  923. '-mno-ignore-branch-isa'
  924. Ignore branch checks for invalid transitions between ISA modes.
  925. The semantics of branches does not provide for an ISA mode switch,
  926. so in most cases the ISA mode a branch has been encoded for has to
  927. be the same as the ISA mode of the branch's target label.
  928. Therefore GAS has checks implemented that verify in branch assembly
  929. that the two ISA modes match. '-mignore-branch-isa' disables these
  930. checks. By default '-mno-ignore-branch-isa' is selected, causing
  931. any invalid branch requiring a transition between ISA modes to
  932. produce an error.
  933. '-mnan=ENCODING'
  934. Select between the IEEE 754-2008 ('-mnan=2008') or the legacy
  935. ('-mnan=legacy') NaN encoding format. The latter is the default.
  936. '--emulation=NAME'
  937. This option was formerly used to switch between ELF and ECOFF
  938. output on targets like IRIX 5 that supported both. MIPS ECOFF
  939. support was removed in GAS 2.24, so the option now serves little
  940. purpose. It is retained for backwards compatibility.
  941. The available configuration names are: 'mipself', 'mipslelf' and
  942. 'mipsbelf'. Choosing 'mipself' now has no effect, since the output
  943. is always ELF. 'mipslelf' and 'mipsbelf' select little- and
  944. big-endian output respectively, but '-EL' and '-EB' are now the
  945. preferred options instead.
  946. '-nocpp'
  947. 'as' ignores this option. It is accepted for compatibility with
  948. the native tools.
  949. '--trap'
  950. '--no-trap'
  951. '--break'
  952. '--no-break'
  953. Control how to deal with multiplication overflow and division by
  954. zero. '--trap' or '--no-break' (which are synonyms) take a trap
  955. exception (and only work for Instruction Set Architecture level 2
  956. and higher); '--break' or '--no-trap' (also synonyms, and the
  957. default) take a break exception.
  958. '-n'
  959. When this option is used, 'as' will issue a warning every time it
  960. generates a nop instruction from a macro.
  961. The following options are available when as is configured for an
  962. MCore processor.
  963. '-jsri2bsr'
  964. '-nojsri2bsr'
  965. Enable or disable the JSRI to BSR transformation. By default this
  966. is enabled. The command-line option '-nojsri2bsr' can be used to
  967. disable it.
  968. '-sifilter'
  969. '-nosifilter'
  970. Enable or disable the silicon filter behaviour. By default this is
  971. disabled. The default can be overridden by the '-sifilter'
  972. command-line option.
  973. '-relax'
  974. Alter jump instructions for long displacements.
  975. '-mcpu=[210|340]'
  976. Select the cpu type on the target hardware. This controls which
  977. instructions can be assembled.
  978. '-EB'
  979. Assemble for a big endian target.
  980. '-EL'
  981. Assemble for a little endian target.
  982. *Note Meta Options::, for the options available when as is configured
  983. for a Meta processor.
  984. See the info pages for documentation of the MMIX-specific options.
  985. *Note NDS32 Options::, for the options available when as is
  986. configured for a NDS32 processor.
  987. *Note PowerPC-Opts::, for the options available when as is configured
  988. for a PowerPC processor.
  989. *Note RISC-V-Options::, for the options available when as is
  990. configured for a RISC-V processor.
  991. See the info pages for documentation of the RX-specific options.
  992. The following options are available when as is configured for the
  993. s390 processor family.
  994. '-m31'
  995. '-m64'
  996. Select the word size, either 31/32 bits or 64 bits.
  997. '-mesa'
  998. '-mzarch'
  999. Select the architecture mode, either the Enterprise System
  1000. Architecture (esa) or the z/Architecture mode (zarch).
  1001. '-march=PROCESSOR'
  1002. Specify which s390 processor variant is the target, 'g5' (or
  1003. 'arch3'), 'g6', 'z900' (or 'arch5'), 'z990' (or 'arch6'), 'z9-109',
  1004. 'z9-ec' (or 'arch7'), 'z10' (or 'arch8'), 'z196' (or 'arch9'),
  1005. 'zEC12' (or 'arch10'), 'z13' (or 'arch11'), 'z14' (or 'arch12'), or
  1006. 'z15' (or 'arch13').
  1007. '-mregnames'
  1008. '-mno-regnames'
  1009. Allow or disallow symbolic names for registers.
  1010. '-mwarn-areg-zero'
  1011. Warn whenever the operand for a base or index register has been
  1012. specified but evaluates to zero.
  1013. *Note TIC6X Options::, for the options available when as is
  1014. configured for a TMS320C6000 processor.
  1015. *Note TILE-Gx Options::, for the options available when as is
  1016. configured for a TILE-Gx processor.
  1017. *Note Visium Options::, for the options available when as is
  1018. configured for a Visium processor.
  1019. *Note Xtensa Options::, for the options available when as is
  1020. configured for an Xtensa processor.
  1021. *Note Z80 Options::, for the options available when as is configured
  1022. for an Z80 processor.
  1023. * Menu:
  1024. * Manual:: Structure of this Manual
  1025. * GNU Assembler:: The GNU Assembler
  1026. * Object Formats:: Object File Formats
  1027. * Command Line:: Command Line
  1028. * Input Files:: Input Files
  1029. * Object:: Output (Object) File
  1030. * Errors:: Error and Warning Messages
  1031. 
  1032. File: as.info, Node: Manual, Next: GNU Assembler, Up: Overview
  1033. 1.1 Structure of this Manual
  1034. ============================
  1035. This manual is intended to describe what you need to know to use GNU
  1036. 'as'. We cover the syntax expected in source files, including notation
  1037. for symbols, constants, and expressions; the directives that 'as'
  1038. understands; and of course how to invoke 'as'.
  1039. This manual also describes some of the machine-dependent features of
  1040. various flavors of the assembler.
  1041. On the other hand, this manual is _not_ intended as an introduction
  1042. to programming in assembly language--let alone programming in general!
  1043. In a similar vein, we make no attempt to introduce the machine
  1044. architecture; we do _not_ describe the instruction set, standard
  1045. mnemonics, registers or addressing modes that are standard to a
  1046. particular architecture. You may want to consult the manufacturer's
  1047. machine architecture manual for this information.
  1048. 
  1049. File: as.info, Node: GNU Assembler, Next: Object Formats, Prev: Manual, Up: Overview
  1050. 1.2 The GNU Assembler
  1051. =====================
  1052. GNU 'as' is really a family of assemblers. If you use (or have used)
  1053. the GNU assembler on one architecture, you should find a fairly similar
  1054. environment when you use it on another architecture. Each version has
  1055. much in common with the others, including object file formats, most
  1056. assembler directives (often called "pseudo-ops") and assembler syntax.
  1057. 'as' is primarily intended to assemble the output of the GNU C
  1058. compiler 'gcc' for use by the linker 'ld'. Nevertheless, we've tried to
  1059. make 'as' assemble correctly everything that other assemblers for the
  1060. same machine would assemble. Any exceptions are documented explicitly
  1061. (*note Machine Dependencies::). This doesn't mean 'as' always uses the
  1062. same syntax as another assembler for the same architecture; for example,
  1063. we know of several incompatible versions of 680x0 assembly language
  1064. syntax.
  1065. Unlike older assemblers, 'as' is designed to assemble a source
  1066. program in one pass of the source file. This has a subtle impact on the
  1067. '.org' directive (*note '.org': Org.).
  1068. 
  1069. File: as.info, Node: Object Formats, Next: Command Line, Prev: GNU Assembler, Up: Overview
  1070. 1.3 Object File Formats
  1071. =======================
  1072. The GNU assembler can be configured to produce several alternative
  1073. object file formats. For the most part, this does not affect how you
  1074. write assembly language programs; but directives for debugging symbols
  1075. are typically different in different file formats. *Note Symbol
  1076. Attributes: Symbol Attributes.
  1077. 
  1078. File: as.info, Node: Command Line, Next: Input Files, Prev: Object Formats, Up: Overview
  1079. 1.4 Command Line
  1080. ================
  1081. After the program name 'as', the command line may contain options and
  1082. file names. Options may appear in any order, and may be before, after,
  1083. or between file names. The order of file names is significant.
  1084. '--' (two hyphens) by itself names the standard input file
  1085. explicitly, as one of the files for 'as' to assemble.
  1086. Except for '--' any command-line argument that begins with a hyphen
  1087. ('-') is an option. Each option changes the behavior of 'as'. No
  1088. option changes the way another option works. An option is a '-'
  1089. followed by one or more letters; the case of the letter is important.
  1090. All options are optional.
  1091. Some options expect exactly one file name to follow them. The file
  1092. name may either immediately follow the option's letter (compatible with
  1093. older assemblers) or it may be the next command argument (GNU standard).
  1094. These two command lines are equivalent:
  1095. as -o my-object-file.o mumble.s
  1096. as -omy-object-file.o mumble.s
  1097. 
  1098. File: as.info, Node: Input Files, Next: Object, Prev: Command Line, Up: Overview
  1099. 1.5 Input Files
  1100. ===============
  1101. We use the phrase "source program", abbreviated "source", to describe
  1102. the program input to one run of 'as'. The program may be in one or more
  1103. files; how the source is partitioned into files doesn't change the
  1104. meaning of the source.
  1105. The source program is a concatenation of the text in all the files,
  1106. in the order specified.
  1107. Each time you run 'as' it assembles exactly one source program. The
  1108. source program is made up of one or more files. (The standard input is
  1109. also a file.)
  1110. You give 'as' a command line that has zero or more input file names.
  1111. The input files are read (from left file name to right). A command-line
  1112. argument (in any position) that has no special meaning is taken to be an
  1113. input file name.
  1114. If you give 'as' no file names it attempts to read one input file
  1115. from the 'as' standard input, which is normally your terminal. You may
  1116. have to type <ctl-D> to tell 'as' there is no more program to assemble.
  1117. Use '--' if you need to explicitly name the standard input file in
  1118. your command line.
  1119. If the source is empty, 'as' produces a small, empty object file.
  1120. Filenames and Line-numbers
  1121. --------------------------
  1122. There are two ways of locating a line in the input file (or files) and
  1123. either may be used in reporting error messages. One way refers to a
  1124. line number in a physical file; the other refers to a line number in a
  1125. "logical" file. *Note Error and Warning Messages: Errors.
  1126. "Physical files" are those files named in the command line given to
  1127. 'as'.
  1128. "Logical files" are simply names declared explicitly by assembler
  1129. directives; they bear no relation to physical files. Logical file names
  1130. help error messages reflect the original source file, when 'as' source
  1131. is itself synthesized from other files. 'as' understands the '#'
  1132. directives emitted by the 'gcc' preprocessor. See also *note '.file':
  1133. File.
  1134. 
  1135. File: as.info, Node: Object, Next: Errors, Prev: Input Files, Up: Overview
  1136. 1.6 Output (Object) File
  1137. ========================
  1138. Every time you run 'as' it produces an output file, which is your
  1139. assembly language program translated into numbers. This file is the
  1140. object file. Its default name is 'a.out'. You can give it another name
  1141. by using the '-o' option. Conventionally, object file names end with
  1142. '.o'. The default name is used for historical reasons: older assemblers
  1143. were capable of assembling self-contained programs directly into a
  1144. runnable program. (For some formats, this isn't currently possible, but
  1145. it can be done for the 'a.out' format.)
  1146. The object file is meant for input to the linker 'ld'. It contains
  1147. assembled program code, information to help 'ld' integrate the assembled
  1148. program into a runnable file, and (optionally) symbolic information for
  1149. the debugger.
  1150. 
  1151. File: as.info, Node: Errors, Prev: Object, Up: Overview
  1152. 1.7 Error and Warning Messages
  1153. ==============================
  1154. 'as' may write warnings and error messages to the standard error file
  1155. (usually your terminal). This should not happen when a compiler runs
  1156. 'as' automatically. Warnings report an assumption made so that 'as'
  1157. could keep assembling a flawed program; errors report a grave problem
  1158. that stops the assembly.
  1159. Warning messages have the format
  1160. file_name:NNN:Warning Message Text
  1161. (where NNN is a line number). If both a logical file name (*note
  1162. '.file': File.) and a logical line number (*note '.line': Line.) have
  1163. been given then they will be used, otherwise the file name and line
  1164. number in the current assembler source file will be used. The message
  1165. text is intended to be self explanatory (in the grand Unix tradition).
  1166. Note the file name must be set via the logical version of the '.file'
  1167. directive, not the DWARF2 version of the '.file' directive. For
  1168. example:
  1169. .file 2 "bar.c"
  1170. error_assembler_source
  1171. .file "foo.c"
  1172. .line 30
  1173. error_c_source
  1174. produces this output:
  1175. Assembler messages:
  1176. asm.s:2: Error: no such instruction: `error_assembler_source'
  1177. foo.c:31: Error: no such instruction: `error_c_source'
  1178. Error messages have the format
  1179. file_name:NNN:FATAL:Error Message Text
  1180. The file name and line number are derived as for warning messages.
  1181. The actual message text may be rather less explanatory because many of
  1182. them aren't supposed to happen.
  1183. 
  1184. File: as.info, Node: Invoking, Next: Syntax, Prev: Overview, Up: Top
  1185. 2 Command-Line Options
  1186. **********************
  1187. This chapter describes command-line options available in _all_ versions
  1188. of the GNU assembler; see *note Machine Dependencies::, for options
  1189. specific to particular machine architectures.
  1190. If you are invoking 'as' via the GNU C compiler, you can use the
  1191. '-Wa' option to pass arguments through to the assembler. The assembler
  1192. arguments must be separated from each other (and the '-Wa') by commas.
  1193. For example:
  1194. gcc -c -g -O -Wa,-alh,-L file.c
  1195. This passes two options to the assembler: '-alh' (emit a listing to
  1196. standard output with high-level and assembly source) and '-L' (retain
  1197. local symbols in the symbol table).
  1198. Usually you do not need to use this '-Wa' mechanism, since many
  1199. compiler command-line options are automatically passed to the assembler
  1200. by the compiler. (You can call the GNU compiler driver with the '-v'
  1201. option to see precisely what options it passes to each compilation pass,
  1202. including the assembler.)
  1203. * Menu:
  1204. * a:: -a[cdghlns] enable listings
  1205. * alternate:: -alternate enable alternate macro syntax
  1206. * D:: -D for compatibility
  1207. * f:: -f to work faster
  1208. * I:: -I for .include search path
  1209. * K:: -K for difference tables
  1210. * L:: -L to retain local symbols
  1211. * listing:: -listing-XXX to configure listing output
  1212. * M:: -M or -mri to assemble in MRI compatibility mode
  1213. * MD:: -MD for dependency tracking
  1214. * no-pad-sections:: -no-pad-sections to stop section padding
  1215. * o:: -o to name the object file
  1216. * R:: -R to join data and text sections
  1217. * statistics:: -statistics to see statistics about assembly
  1218. * traditional-format:: -traditional-format for compatible output
  1219. * v:: -v to announce version
  1220. * W:: -W, -no-warn, -warn, -fatal-warnings to control warnings
  1221. * Z:: -Z to make object file even after errors
  1222. 
  1223. File: as.info, Node: a, Next: alternate, Up: Invoking
  1224. 2.1 Enable Listings: '-a[cdghlns]'
  1225. ==================================
  1226. These options enable listing output from the assembler. By itself, '-a'
  1227. requests high-level, assembly, and symbols listing. You can use other
  1228. letters to select specific options for the list: '-ah' requests a
  1229. high-level language listing, '-al' requests an output-program assembly
  1230. listing, and '-as' requests a symbol table listing. High-level listings
  1231. require that a compiler debugging option like '-g' be used, and that
  1232. assembly listings ('-al') be requested also.
  1233. Use the '-ag' option to print a first section with general assembly
  1234. information, like as version, switches passed, or time stamp.
  1235. Use the '-ac' option to omit false conditionals from a listing. Any
  1236. lines which are not assembled because of a false '.if' (or '.ifdef', or
  1237. any other conditional), or a true '.if' followed by an '.else', will be
  1238. omitted from the listing.
  1239. Use the '-ad' option to omit debugging directives from the listing.
  1240. Once you have specified one of these options, you can further control
  1241. listing output and its appearance using the directives '.list',
  1242. '.nolist', '.psize', '.eject', '.title', and '.sbttl'. The '-an' option
  1243. turns off all forms processing. If you do not request listing output
  1244. with one of the '-a' options, the listing-control directives have no
  1245. effect.
  1246. The letters after '-a' may be combined into one option, _e.g._,
  1247. '-aln'.
  1248. Note if the assembler source is coming from the standard input (e.g.,
  1249. because it is being created by 'gcc' and the '-pipe' command-line switch
  1250. is being used) then the listing will not contain any comments or
  1251. preprocessor directives. This is because the listing code buffers input
  1252. source lines from stdin only after they have been preprocessed by the
  1253. assembler. This reduces memory usage and makes the code more efficient.
  1254. 
  1255. File: as.info, Node: alternate, Next: D, Prev: a, Up: Invoking
  1256. 2.2 '--alternate'
  1257. =================
  1258. Begin in alternate macro mode, see *note '.altmacro': Altmacro.
  1259. 
  1260. File: as.info, Node: D, Next: f, Prev: alternate, Up: Invoking
  1261. 2.3 '-D'
  1262. ========
  1263. This option has no effect whatsoever, but it is accepted to make it more
  1264. likely that scripts written for other assemblers also work with 'as'.
  1265. 
  1266. File: as.info, Node: f, Next: I, Prev: D, Up: Invoking
  1267. 2.4 Work Faster: '-f'
  1268. =====================
  1269. '-f' should only be used when assembling programs written by a (trusted)
  1270. compiler. '-f' stops the assembler from doing whitespace and comment
  1271. preprocessing on the input file(s) before assembling them. *Note
  1272. Preprocessing: Preprocessing.
  1273. _Warning:_ if you use '-f' when the files actually need to be
  1274. preprocessed (if they contain comments, for example), 'as' does not
  1275. work correctly.
  1276. 
  1277. File: as.info, Node: I, Next: K, Prev: f, Up: Invoking
  1278. 2.5 '.include' Search Path: '-I' PATH
  1279. =====================================
  1280. Use this option to add a PATH to the list of directories 'as' searches
  1281. for files specified in '.include' directives (*note '.include':
  1282. Include.). You may use '-I' as many times as necessary to include a
  1283. variety of paths. The current working directory is always searched
  1284. first; after that, 'as' searches any '-I' directories in the same order
  1285. as they were specified (left to right) on the command line.
  1286. 
  1287. File: as.info, Node: K, Next: L, Prev: I, Up: Invoking
  1288. 2.6 Difference Tables: '-K'
  1289. ===========================
  1290. 'as' sometimes alters the code emitted for directives of the form '.word
  1291. SYM1-SYM2'. *Note '.word': Word. You can use the '-K' option if you
  1292. want a warning issued when this is done.
  1293. 
  1294. File: as.info, Node: L, Next: listing, Prev: K, Up: Invoking
  1295. 2.7 Include Local Symbols: '-L'
  1296. ===============================
  1297. Symbols beginning with system-specific local label prefixes, typically
  1298. '.L' for ELF systems or 'L' for traditional a.out systems, are called
  1299. "local symbols". *Note Symbol Names::. Normally you do not see such
  1300. symbols when debugging, because they are intended for the use of
  1301. programs (like compilers) that compose assembler programs, not for your
  1302. notice. Normally both 'as' and 'ld' discard such symbols, so you do not
  1303. normally debug with them.
  1304. This option tells 'as' to retain those local symbols in the object
  1305. file. Usually if you do this you also tell the linker 'ld' to preserve
  1306. those symbols.
  1307. 
  1308. File: as.info, Node: listing, Next: M, Prev: L, Up: Invoking
  1309. 2.8 Configuring listing output: '--listing'
  1310. ===========================================
  1311. The listing feature of the assembler can be enabled via the command-line
  1312. switch '-a' (*note a::). This feature combines the input source file(s)
  1313. with a hex dump of the corresponding locations in the output object
  1314. file, and displays them as a listing file. The format of this listing
  1315. can be controlled by directives inside the assembler source (i.e.,
  1316. '.list' (*note List::), '.title' (*note Title::), '.sbttl' (*note
  1317. Sbttl::), '.psize' (*note Psize::), and '.eject' (*note Eject::) and
  1318. also by the following switches:
  1319. '--listing-lhs-width='number''
  1320. Sets the maximum width, in words, of the first line of the hex byte
  1321. dump. This dump appears on the left hand side of the listing
  1322. output.
  1323. '--listing-lhs-width2='number''
  1324. Sets the maximum width, in words, of any further lines of the hex
  1325. byte dump for a given input source line. If this value is not
  1326. specified, it defaults to being the same as the value specified for
  1327. '--listing-lhs-width'. If neither switch is used the default is to
  1328. one.
  1329. '--listing-rhs-width='number''
  1330. Sets the maximum width, in characters, of the source line that is
  1331. displayed alongside the hex dump. The default value for this
  1332. parameter is 100. The source line is displayed on the right hand
  1333. side of the listing output.
  1334. '--listing-cont-lines='number''
  1335. Sets the maximum number of continuation lines of hex dump that will
  1336. be displayed for a given single line of source input. The default
  1337. value is 4.
  1338. 
  1339. File: as.info, Node: M, Next: MD, Prev: listing, Up: Invoking
  1340. 2.9 Assemble in MRI Compatibility Mode: '-M'
  1341. ============================================
  1342. The '-M' or '--mri' option selects MRI compatibility mode. This changes
  1343. the syntax and pseudo-op handling of 'as' to make it compatible with the
  1344. 'ASM68K' assembler from Microtec Research. The exact nature of the MRI
  1345. syntax will not be documented here; see the MRI manuals for more
  1346. information. Note in particular that the handling of macros and macro
  1347. arguments is somewhat different. The purpose of this option is to
  1348. permit assembling existing MRI assembler code using 'as'.
  1349. The MRI compatibility is not complete. Certain operations of the MRI
  1350. assembler depend upon its object file format, and can not be supported
  1351. using other object file formats. Supporting these would require
  1352. enhancing each object file format individually. These are:
  1353. * global symbols in common section
  1354. The m68k MRI assembler supports common sections which are merged by
  1355. the linker. Other object file formats do not support this. 'as'
  1356. handles common sections by treating them as a single common symbol.
  1357. It permits local symbols to be defined within a common section, but
  1358. it can not support global symbols, since it has no way to describe
  1359. them.
  1360. * complex relocations
  1361. The MRI assemblers support relocations against a negated section
  1362. address, and relocations which combine the start addresses of two
  1363. or more sections. These are not support by other object file
  1364. formats.
  1365. * 'END' pseudo-op specifying start address
  1366. The MRI 'END' pseudo-op permits the specification of a start
  1367. address. This is not supported by other object file formats. The
  1368. start address may instead be specified using the '-e' option to the
  1369. linker, or in a linker script.
  1370. * 'IDNT', '.ident' and 'NAME' pseudo-ops
  1371. The MRI 'IDNT', '.ident' and 'NAME' pseudo-ops assign a module name
  1372. to the output file. This is not supported by other object file
  1373. formats.
  1374. * 'ORG' pseudo-op
  1375. The m68k MRI 'ORG' pseudo-op begins an absolute section at a given
  1376. address. This differs from the usual 'as' '.org' pseudo-op, which
  1377. changes the location within the current section. Absolute sections
  1378. are not supported by other object file formats. The address of a
  1379. section may be assigned within a linker script.
  1380. There are some other features of the MRI assembler which are not
  1381. supported by 'as', typically either because they are difficult or
  1382. because they seem of little consequence. Some of these may be supported
  1383. in future releases.
  1384. * EBCDIC strings
  1385. EBCDIC strings are not supported.
  1386. * packed binary coded decimal
  1387. Packed binary coded decimal is not supported. This means that the
  1388. 'DC.P' and 'DCB.P' pseudo-ops are not supported.
  1389. * 'FEQU' pseudo-op
  1390. The m68k 'FEQU' pseudo-op is not supported.
  1391. * 'NOOBJ' pseudo-op
  1392. The m68k 'NOOBJ' pseudo-op is not supported.
  1393. * 'OPT' branch control options
  1394. The m68k 'OPT' branch control options--'B', 'BRS', 'BRB', 'BRL',
  1395. and 'BRW'--are ignored. 'as' automatically relaxes all branches,
  1396. whether forward or backward, to an appropriate size, so these
  1397. options serve no purpose.
  1398. * 'OPT' list control options
  1399. The following m68k 'OPT' list control options are ignored: 'C',
  1400. 'CEX', 'CL', 'CRE', 'E', 'G', 'I', 'M', 'MEX', 'MC', 'MD', 'X'.
  1401. * other 'OPT' options
  1402. The following m68k 'OPT' options are ignored: 'NEST', 'O', 'OLD',
  1403. 'OP', 'P', 'PCO', 'PCR', 'PCS', 'R'.
  1404. * 'OPT' 'D' option is default
  1405. The m68k 'OPT' 'D' option is the default, unlike the MRI assembler.
  1406. 'OPT NOD' may be used to turn it off.
  1407. * 'XREF' pseudo-op.
  1408. The m68k 'XREF' pseudo-op is ignored.
  1409. 
  1410. File: as.info, Node: MD, Next: no-pad-sections, Prev: M, Up: Invoking
  1411. 2.10 Dependency Tracking: '--MD'
  1412. ================================
  1413. 'as' can generate a dependency file for the file it creates. This file
  1414. consists of a single rule suitable for 'make' describing the
  1415. dependencies of the main source file.
  1416. The rule is written to the file named in its argument.
  1417. This feature is used in the automatic updating of makefiles.
  1418. 
  1419. File: as.info, Node: no-pad-sections, Next: o, Prev: MD, Up: Invoking
  1420. 2.11 Output Section Padding
  1421. ===========================
  1422. Normally the assembler will pad the end of each output section up to its
  1423. alignment boundary. But this can waste space, which can be significant
  1424. on memory constrained targets. So the '--no-pad-sections' option will
  1425. disable this behaviour.
  1426. 
  1427. File: as.info, Node: o, Next: R, Prev: no-pad-sections, Up: Invoking
  1428. 2.12 Name the Object File: '-o'
  1429. ===============================
  1430. There is always one object file output when you run 'as'. By default it
  1431. has the name 'a.out'. You use this option (which takes exactly one
  1432. filename) to give the object file a different name.
  1433. Whatever the object file is called, 'as' overwrites any existing file
  1434. of the same name.
  1435. 
  1436. File: as.info, Node: R, Next: statistics, Prev: o, Up: Invoking
  1437. 2.13 Join Data and Text Sections: '-R'
  1438. ======================================
  1439. '-R' tells 'as' to write the object file as if all data-section data
  1440. lives in the text section. This is only done at the very last moment:
  1441. your binary data are the same, but data section parts are relocated
  1442. differently. The data section part of your object file is zero bytes
  1443. long because all its bytes are appended to the text section. (*Note
  1444. Sections and Relocation: Sections.)
  1445. When you specify '-R' it would be possible to generate shorter
  1446. address displacements (because we do not have to cross between text and
  1447. data section). We refrain from doing this simply for compatibility with
  1448. older versions of 'as'. In future, '-R' may work this way.
  1449. When 'as' is configured for COFF or ELF output, this option is only
  1450. useful if you use sections named '.text' and '.data'.
  1451. '-R' is not supported for any of the HPPA targets. Using '-R'
  1452. generates a warning from 'as'.
  1453. 
  1454. File: as.info, Node: statistics, Next: traditional-format, Prev: R, Up: Invoking
  1455. 2.14 Display Assembly Statistics: '--statistics'
  1456. ================================================
  1457. Use '--statistics' to display two statistics about the resources used by
  1458. 'as': the maximum amount of space allocated during the assembly (in
  1459. bytes), and the total execution time taken for the assembly (in CPU
  1460. seconds).
  1461. 
  1462. File: as.info, Node: traditional-format, Next: v, Prev: statistics, Up: Invoking
  1463. 2.15 Compatible Output: '--traditional-format'
  1464. ==============================================
  1465. For some targets, the output of 'as' is different in some ways from the
  1466. output of some existing assembler. This switch requests 'as' to use the
  1467. traditional format instead.
  1468. For example, it disables the exception frame optimizations which 'as'
  1469. normally does by default on 'gcc' output.
  1470. 
  1471. File: as.info, Node: v, Next: W, Prev: traditional-format, Up: Invoking
  1472. 2.16 Announce Version: '-v'
  1473. ===========================
  1474. You can find out what version of as is running by including the option
  1475. '-v' (which you can also spell as '-version') on the command line.
  1476. 
  1477. File: as.info, Node: W, Next: Z, Prev: v, Up: Invoking
  1478. 2.17 Control Warnings: '-W', '--warn', '--no-warn', '--fatal-warnings'
  1479. ======================================================================
  1480. 'as' should never give a warning or error message when assembling
  1481. compiler output. But programs written by people often cause 'as' to
  1482. give a warning that a particular assumption was made. All such warnings
  1483. are directed to the standard error file.
  1484. If you use the '-W' and '--no-warn' options, no warnings are issued.
  1485. This only affects the warning messages: it does not change any
  1486. particular of how 'as' assembles your file. Errors, which stop the
  1487. assembly, are still reported.
  1488. If you use the '--fatal-warnings' option, 'as' considers files that
  1489. generate warnings to be in error.
  1490. You can switch these options off again by specifying '--warn', which
  1491. causes warnings to be output as usual.
  1492. 
  1493. File: as.info, Node: Z, Prev: W, Up: Invoking
  1494. 2.18 Generate Object File in Spite of Errors: '-Z'
  1495. ==================================================
  1496. After an error message, 'as' normally produces no output. If for some
  1497. reason you are interested in object file output even after 'as' gives an
  1498. error message on your program, use the '-Z' option. If there are any
  1499. errors, 'as' continues anyways, and writes an object file after a final
  1500. warning message of the form 'N errors, M warnings, generating bad object
  1501. file.'
  1502. 
  1503. File: as.info, Node: Syntax, Next: Sections, Prev: Invoking, Up: Top
  1504. 3 Syntax
  1505. ********
  1506. This chapter describes the machine-independent syntax allowed in a
  1507. source file. 'as' syntax is similar to what many other assemblers use;
  1508. it is inspired by the BSD 4.2 assembler, except that 'as' does not
  1509. assemble Vax bit-fields.
  1510. * Menu:
  1511. * Preprocessing:: Preprocessing
  1512. * Whitespace:: Whitespace
  1513. * Comments:: Comments
  1514. * Symbol Intro:: Symbols
  1515. * Statements:: Statements
  1516. * Constants:: Constants
  1517. 
  1518. File: as.info, Node: Preprocessing, Next: Whitespace, Up: Syntax
  1519. 3.1 Preprocessing
  1520. =================
  1521. The 'as' internal preprocessor:
  1522. * adjusts and removes extra whitespace. It leaves one space or tab
  1523. before the keywords on a line, and turns any other whitespace on
  1524. the line into a single space.
  1525. * removes all comments, replacing them with a single space, or an
  1526. appropriate number of newlines.
  1527. * converts character constants into the appropriate numeric values.
  1528. It does not do macro processing, include file handling, or anything
  1529. else you may get from your C compiler's preprocessor. You can do
  1530. include file processing with the '.include' directive (*note '.include':
  1531. Include.). You can use the GNU C compiler driver to get other "CPP"
  1532. style preprocessing by giving the input file a '.S' suffix. *Note
  1533. Options Controlling the Kind of Output: (gcc info)Overall Options.
  1534. Excess whitespace, comments, and character constants cannot be used
  1535. in the portions of the input text that are not preprocessed.
  1536. If the first line of an input file is '#NO_APP' or if you use the
  1537. '-f' option, whitespace and comments are not removed from the input
  1538. file. Within an input file, you can ask for whitespace and comment
  1539. removal in specific portions of the by putting a line that says '#APP'
  1540. before the text that may contain whitespace or comments, and putting a
  1541. line that says '#NO_APP' after this text. This feature is mainly intend
  1542. to support 'asm' statements in compilers whose output is otherwise free
  1543. of comments and whitespace.
  1544. 
  1545. File: as.info, Node: Whitespace, Next: Comments, Prev: Preprocessing, Up: Syntax
  1546. 3.2 Whitespace
  1547. ==============
  1548. "Whitespace" is one or more blanks or tabs, in any order. Whitespace is
  1549. used to separate symbols, and to make programs neater for people to
  1550. read. Unless within character constants (*note Character Constants:
  1551. Characters.), any whitespace means the same as exactly one space.
  1552. 
  1553. File: as.info, Node: Comments, Next: Symbol Intro, Prev: Whitespace, Up: Syntax
  1554. 3.3 Comments
  1555. ============
  1556. There are two ways of rendering comments to 'as'. In both cases the
  1557. comment is equivalent to one space.
  1558. Anything from '/*' through the next '*/' is a comment. This means
  1559. you may not nest these comments.
  1560. /*
  1561. The only way to include a newline ('\n') in a comment
  1562. is to use this sort of comment.
  1563. */
  1564. /* This sort of comment does not nest. */
  1565. Anything from a "line comment" character up to the next newline is
  1566. considered a comment and is ignored. The line comment character is
  1567. target specific, and some targets multiple comment characters. Some
  1568. targets also have line comment characters that only work if they are the
  1569. first character on a line. Some targets use a sequence of two
  1570. characters to introduce a line comment. Some targets can also change
  1571. their line comment characters depending upon command-line options that
  1572. have been used. For more details see the _Syntax_ section in the
  1573. documentation for individual targets.
  1574. If the line comment character is the hash sign ('#') then it still
  1575. has the special ability to enable and disable preprocessing (*note
  1576. Preprocessing::) and to specify logical line numbers:
  1577. To be compatible with past assemblers, lines that begin with '#' have
  1578. a special interpretation. Following the '#' should be an absolute
  1579. expression (*note Expressions::): the logical line number of the _next_
  1580. line. Then a string (*note Strings: Strings.) is allowed: if present it
  1581. is a new logical file name. The rest of the line, if any, should be
  1582. whitespace.
  1583. If the first non-whitespace characters on the line are not numeric,
  1584. the line is ignored. (Just like a comment.)
  1585. # This is an ordinary comment.
  1586. # 42-6 "new_file_name" # New logical file name
  1587. # This is logical line # 36.
  1588. This feature is deprecated, and may disappear from future versions of
  1589. 'as'.
  1590. 
  1591. File: as.info, Node: Symbol Intro, Next: Statements, Prev: Comments, Up: Syntax
  1592. 3.4 Symbols
  1593. ===========
  1594. A "symbol" is one or more characters chosen from the set of all letters
  1595. (both upper and lower case), digits and the three characters '_.$'. On
  1596. most machines, you can also use '$' in symbol names; exceptions are
  1597. noted in *note Machine Dependencies::. No symbol may begin with a
  1598. digit. Case is significant. There is no length limit; all characters
  1599. are significant. Multibyte characters are supported. Symbols are
  1600. delimited by characters not in that set, or by the beginning of a file
  1601. (since the source program must end with a newline, the end of a file is
  1602. not a possible symbol delimiter). *Note Symbols::.
  1603. Symbol names may also be enclosed in double quote '"' characters. In
  1604. such cases any characters are allowed, except for the NUL character. If
  1605. a double quote character is to be included in the symbol name it must be
  1606. preceeded by a backslash '\' character.
  1607. 
  1608. File: as.info, Node: Statements, Next: Constants, Prev: Symbol Intro, Up: Syntax
  1609. 3.5 Statements
  1610. ==============
  1611. A "statement" ends at a newline character ('\n') or a "line separator
  1612. character". The line separator character is target specific and
  1613. described in the _Syntax_ section of each target's documentation. Not
  1614. all targets support a line separator character. The newline or line
  1615. separator character is considered to be part of the preceding statement.
  1616. Newlines and separators within character constants are an exception:
  1617. they do not end statements.
  1618. It is an error to end any statement with end-of-file: the last
  1619. character of any input file should be a newline.
  1620. An empty statement is allowed, and may include whitespace. It is
  1621. ignored.
  1622. A statement begins with zero or more labels, optionally followed by a
  1623. key symbol which determines what kind of statement it is. The key
  1624. symbol determines the syntax of the rest of the statement. If the
  1625. symbol begins with a dot '.' then the statement is an assembler
  1626. directive: typically valid for any computer. If the symbol begins with
  1627. a letter the statement is an assembly language "instruction": it
  1628. assembles into a machine language instruction. Different versions of
  1629. 'as' for different computers recognize different instructions. In fact,
  1630. the same symbol may represent a different instruction in a different
  1631. computer's assembly language.
  1632. A label is a symbol immediately followed by a colon (':').
  1633. Whitespace before a label or after a colon is permitted, but you may not
  1634. have whitespace between a label's symbol and its colon. *Note Labels::.
  1635. For HPPA targets, labels need not be immediately followed by a colon,
  1636. but the definition of a label must begin in column zero. This also
  1637. implies that only one label may be defined on each line.
  1638. label: .directive followed by something
  1639. another_label: # This is an empty statement.
  1640. instruction operand_1, operand_2, ...
  1641. 
  1642. File: as.info, Node: Constants, Prev: Statements, Up: Syntax
  1643. 3.6 Constants
  1644. =============
  1645. A constant is a number, written so that its value is known by
  1646. inspection, without knowing any context. Like this:
  1647. .byte 74, 0112, 092, 0x4A, 0X4a, 'J, '\J # All the same value.
  1648. .ascii "Ring the bell\7" # A string constant.
  1649. .octa 0x123456789abcdef0123456789ABCDEF0 # A bignum.
  1650. .float 0f-314159265358979323846264338327\
  1651. 95028841971.693993751E-40 # - pi, a flonum.
  1652. * Menu:
  1653. * Characters:: Character Constants
  1654. * Numbers:: Number Constants
  1655. 
  1656. File: as.info, Node: Characters, Next: Numbers, Up: Constants
  1657. 3.6.1 Character Constants
  1658. -------------------------
  1659. There are two kinds of character constants. A "character" stands for
  1660. one character in one byte and its value may be used in numeric
  1661. expressions. String constants (properly called string _literals_) are
  1662. potentially many bytes and their values may not be used in arithmetic
  1663. expressions.
  1664. * Menu:
  1665. * Strings:: Strings
  1666. * Chars:: Characters
  1667. 
  1668. File: as.info, Node: Strings, Next: Chars, Up: Characters
  1669. 3.6.1.1 Strings
  1670. ...............
  1671. A "string" is written between double-quotes. It may contain
  1672. double-quotes or null characters. The way to get special characters
  1673. into a string is to "escape" these characters: precede them with a
  1674. backslash '\' character. For example '\\' represents one backslash: the
  1675. first '\' is an escape which tells 'as' to interpret the second
  1676. character literally as a backslash (which prevents 'as' from recognizing
  1677. the second '\' as an escape character). The complete list of escapes
  1678. follows.
  1679. '\b'
  1680. Mnemonic for backspace; for ASCII this is octal code 010.
  1681. 'backslash-f'
  1682. Mnemonic for FormFeed; for ASCII this is octal code 014.
  1683. '\n'
  1684. Mnemonic for newline; for ASCII this is octal code 012.
  1685. '\r'
  1686. Mnemonic for carriage-Return; for ASCII this is octal code 015.
  1687. '\t'
  1688. Mnemonic for horizontal Tab; for ASCII this is octal code 011.
  1689. '\ DIGIT DIGIT DIGIT'
  1690. An octal character code. The numeric code is 3 octal digits. For
  1691. compatibility with other Unix systems, 8 and 9 are accepted as
  1692. digits: for example, '\008' has the value 010, and '\009' the value
  1693. 011.
  1694. '\x HEX-DIGITS...'
  1695. A hex character code. All trailing hex digits are combined.
  1696. Either upper or lower case 'x' works.
  1697. '\\'
  1698. Represents one '\' character.
  1699. '\"'
  1700. Represents one '"' character. Needed in strings to represent this
  1701. character, because an unescaped '"' would end the string.
  1702. '\ ANYTHING-ELSE'
  1703. Any other character when escaped by '\' gives a warning, but
  1704. assembles as if the '\' was not present. The idea is that if you
  1705. used an escape sequence you clearly didn't want the literal
  1706. interpretation of the following character. However 'as' has no
  1707. other interpretation, so 'as' knows it is giving you the wrong code
  1708. and warns you of the fact.
  1709. Which characters are escapable, and what those escapes represent,
  1710. varies widely among assemblers. The current set is what we think the
  1711. BSD 4.2 assembler recognizes, and is a subset of what most C compilers
  1712. recognize. If you are in doubt, do not use an escape sequence.
  1713. 
  1714. File: as.info, Node: Chars, Prev: Strings, Up: Characters
  1715. 3.6.1.2 Characters
  1716. ..................
  1717. A single character may be written as a single quote immediately followed
  1718. by that character. Some backslash escapes apply to characters, '\b',
  1719. '\f', '\n', '\r', '\t', and '\"' with the same meaning as for strings,
  1720. plus '\'' for a single quote. So if you want to write the character
  1721. backslash, you must write ''\\' where the first '\' escapes the second
  1722. '\'. As you can see, the quote is an acute accent, not a grave accent.
  1723. A newline immediately following an acute accent is taken as a literal
  1724. character and does not count as the end of a statement. The value of a
  1725. character constant in a numeric expression is the machine's byte-wide
  1726. code for that character. 'as' assumes your character code is ASCII:
  1727. ''A' means 65, ''B' means 66, and so on.
  1728. 
  1729. File: as.info, Node: Numbers, Prev: Characters, Up: Constants
  1730. 3.6.2 Number Constants
  1731. ----------------------
  1732. 'as' distinguishes three kinds of numbers according to how they are
  1733. stored in the target machine. _Integers_ are numbers that would fit
  1734. into an 'int' in the C language. _Bignums_ are integers, but they are
  1735. stored in more than 32 bits. _Flonums_ are floating point numbers,
  1736. described below.
  1737. * Menu:
  1738. * Integers:: Integers
  1739. * Bignums:: Bignums
  1740. * Flonums:: Flonums
  1741. 
  1742. File: as.info, Node: Integers, Next: Bignums, Up: Numbers
  1743. 3.6.2.1 Integers
  1744. ................
  1745. A binary integer is '0b' or '0B' followed by zero or more of the binary
  1746. digits '01'.
  1747. An octal integer is '0' followed by zero or more of the octal digits
  1748. ('01234567').
  1749. A decimal integer starts with a non-zero digit followed by zero or
  1750. more digits ('0123456789').
  1751. A hexadecimal integer is '0x' or '0X' followed by one or more
  1752. hexadecimal digits chosen from '0123456789abcdefABCDEF'.
  1753. Integers have the usual values. To denote a negative integer, use
  1754. the prefix operator '-' discussed under expressions (*note Prefix
  1755. Operators: Prefix Ops.).
  1756. 
  1757. File: as.info, Node: Bignums, Next: Flonums, Prev: Integers, Up: Numbers
  1758. 3.6.2.2 Bignums
  1759. ...............
  1760. A "bignum" has the same syntax and semantics as an integer except that
  1761. the number (or its negative) takes more than 32 bits to represent in
  1762. binary. The distinction is made because in some places integers are
  1763. permitted while bignums are not.
  1764. 
  1765. File: as.info, Node: Flonums, Prev: Bignums, Up: Numbers
  1766. 3.6.2.3 Flonums
  1767. ...............
  1768. A "flonum" represents a floating point number. The translation is
  1769. indirect: a decimal floating point number from the text is converted by
  1770. 'as' to a generic binary floating point number of more than sufficient
  1771. precision. This generic floating point number is converted to a
  1772. particular computer's floating point format (or formats) by a portion of
  1773. 'as' specialized to that computer.
  1774. A flonum is written by writing (in order)
  1775. * The digit '0'. ('0' is optional on the HPPA.)
  1776. * A letter, to tell 'as' the rest of the number is a flonum. 'e' is
  1777. recommended. Case is not important.
  1778. On the H8/300 and Renesas / SuperH SH architectures, the letter
  1779. must be one of the letters 'DFPRSX' (in upper or lower case).
  1780. On the ARC, the letter must be one of the letters 'DFRS' (in upper
  1781. or lower case).
  1782. On the HPPA architecture, the letter must be 'E' (upper case only).
  1783. * An optional sign: either '+' or '-'.
  1784. * An optional "integer part": zero or more decimal digits.
  1785. * An optional "fractional part": '.' followed by zero or more decimal
  1786. digits.
  1787. * An optional exponent, consisting of:
  1788. * An 'E' or 'e'.
  1789. * Optional sign: either '+' or '-'.
  1790. * One or more decimal digits.
  1791. At least one of the integer part or the fractional part must be
  1792. present. The floating point number has the usual base-10 value.
  1793. 'as' does all processing using integers. Flonums are computed
  1794. independently of any floating point hardware in the computer running
  1795. 'as'.
  1796. 
  1797. File: as.info, Node: Sections, Next: Symbols, Prev: Syntax, Up: Top
  1798. 4 Sections and Relocation
  1799. *************************
  1800. * Menu:
  1801. * Secs Background:: Background
  1802. * Ld Sections:: Linker Sections
  1803. * As Sections:: Assembler Internal Sections
  1804. * Sub-Sections:: Sub-Sections
  1805. * bss:: bss Section
  1806. 
  1807. File: as.info, Node: Secs Background, Next: Ld Sections, Up: Sections
  1808. 4.1 Background
  1809. ==============
  1810. Roughly, a section is a range of addresses, with no gaps; all data "in"
  1811. those addresses is treated the same for some particular purpose. For
  1812. example there may be a "read only" section.
  1813. The linker 'ld' reads many object files (partial programs) and
  1814. combines their contents to form a runnable program. When 'as' emits an
  1815. object file, the partial program is assumed to start at address 0. 'ld'
  1816. assigns the final addresses for the partial program, so that different
  1817. partial programs do not overlap. This is actually an
  1818. oversimplification, but it suffices to explain how 'as' uses sections.
  1819. 'ld' moves blocks of bytes of your program to their run-time
  1820. addresses. These blocks slide to their run-time addresses as rigid
  1821. units; their length does not change and neither does the order of bytes
  1822. within them. Such a rigid unit is called a _section_. Assigning
  1823. run-time addresses to sections is called "relocation". It includes the
  1824. task of adjusting mentions of object-file addresses so they refer to the
  1825. proper run-time addresses. For the H8/300, and for the Renesas / SuperH
  1826. SH, 'as' pads sections if needed to ensure they end on a word (sixteen
  1827. bit) boundary.
  1828. An object file written by 'as' has at least three sections, any of
  1829. which may be empty. These are named "text", "data" and "bss" sections.
  1830. When it generates COFF or ELF output, 'as' can also generate whatever
  1831. other named sections you specify using the '.section' directive (*note
  1832. '.section': Section.). If you do not use any directives that place
  1833. output in the '.text' or '.data' sections, these sections still exist,
  1834. but are empty.
  1835. When 'as' generates SOM or ELF output for the HPPA, 'as' can also
  1836. generate whatever other named sections you specify using the '.space'
  1837. and '.subspace' directives. See 'HP9000 Series 800 Assembly Language
  1838. Reference Manual' (HP 92432-90001) for details on the '.space' and
  1839. '.subspace' assembler directives.
  1840. Additionally, 'as' uses different names for the standard text, data,
  1841. and bss sections when generating SOM output. Program text is placed
  1842. into the '$CODE$' section, data into '$DATA$', and BSS into '$BSS$'.
  1843. Within the object file, the text section starts at address '0', the
  1844. data section follows, and the bss section follows the data section.
  1845. When generating either SOM or ELF output files on the HPPA, the text
  1846. section starts at address '0', the data section at address '0x4000000',
  1847. and the bss section follows the data section.
  1848. To let 'ld' know which data changes when the sections are relocated,
  1849. and how to change that data, 'as' also writes to the object file details
  1850. of the relocation needed. To perform relocation 'ld' must know, each
  1851. time an address in the object file is mentioned:
  1852. * Where in the object file is the beginning of this reference to an
  1853. address?
  1854. * How long (in bytes) is this reference?
  1855. * Which section does the address refer to? What is the numeric value
  1856. of
  1857. (ADDRESS) - (START-ADDRESS OF SECTION)?
  1858. * Is the reference to an address "Program-Counter relative"?
  1859. In fact, every address 'as' ever uses is expressed as
  1860. (SECTION) + (OFFSET INTO SECTION)
  1861. Further, most expressions 'as' computes have this section-relative
  1862. nature. (For some object formats, such as SOM for the HPPA, some
  1863. expressions are symbol-relative instead.)
  1864. In this manual we use the notation {SECNAME N} to mean "offset N into
  1865. section SECNAME."
  1866. Apart from text, data and bss sections you need to know about the
  1867. "absolute" section. When 'ld' mixes partial programs, addresses in the
  1868. absolute section remain unchanged. For example, address '{absolute 0}'
  1869. is "relocated" to run-time address 0 by 'ld'. Although the linker never
  1870. arranges two partial programs' data sections with overlapping addresses
  1871. after linking, _by definition_ their absolute sections must overlap.
  1872. Address '{absolute 239}' in one part of a program is always the same
  1873. address when the program is running as address '{absolute 239}' in any
  1874. other part of the program.
  1875. The idea of sections is extended to the "undefined" section. Any
  1876. address whose section is unknown at assembly time is by definition
  1877. rendered {undefined U}--where U is filled in later. Since numbers are
  1878. always defined, the only way to generate an undefined address is to
  1879. mention an undefined symbol. A reference to a named common block would
  1880. be such a symbol: its value is unknown at assembly time so it has
  1881. section _undefined_.
  1882. By analogy the word _section_ is used to describe groups of sections
  1883. in the linked program. 'ld' puts all partial programs' text sections in
  1884. contiguous addresses in the linked program. It is customary to refer to
  1885. the _text section_ of a program, meaning all the addresses of all
  1886. partial programs' text sections. Likewise for data and bss sections.
  1887. Some sections are manipulated by 'ld'; others are invented for use of
  1888. 'as' and have no meaning except during assembly.
  1889. 
  1890. File: as.info, Node: Ld Sections, Next: As Sections, Prev: Secs Background, Up: Sections
  1891. 4.2 Linker Sections
  1892. ===================
  1893. 'ld' deals with just four kinds of sections, summarized below.
  1894. *named sections*
  1895. *text section*
  1896. *data section*
  1897. These sections hold your program. 'as' and 'ld' treat them as
  1898. separate but equal sections. Anything you can say of one section
  1899. is true of another. When the program is running, however, it is
  1900. customary for the text section to be unalterable. The text section
  1901. is often shared among processes: it contains instructions,
  1902. constants and the like. The data section of a running program is
  1903. usually alterable: for example, C variables would be stored in the
  1904. data section.
  1905. *bss section*
  1906. This section contains zeroed bytes when your program begins
  1907. running. It is used to hold uninitialized variables or common
  1908. storage. The length of each partial program's bss section is
  1909. important, but because it starts out containing zeroed bytes there
  1910. is no need to store explicit zero bytes in the object file. The
  1911. bss section was invented to eliminate those explicit zeros from
  1912. object files.
  1913. *absolute section*
  1914. Address 0 of this section is always "relocated" to runtime address
  1915. 0. This is useful if you want to refer to an address that 'ld'
  1916. must not change when relocating. In this sense we speak of
  1917. absolute addresses being "unrelocatable": they do not change during
  1918. relocation.
  1919. *undefined section*
  1920. This "section" is a catch-all for address references to objects not
  1921. in the preceding sections.
  1922. An idealized example of three relocatable sections follows. The
  1923. example uses the traditional section names '.text' and '.data'. Memory
  1924. addresses are on the horizontal axis.
  1925. +-----+----+--+
  1926. partial program # 1: |ttttt|dddd|00|
  1927. +-----+----+--+
  1928. text data bss
  1929. seg. seg. seg.
  1930. +---+---+---+
  1931. partial program # 2: |TTT|DDD|000|
  1932. +---+---+---+
  1933. +--+---+-----+--+----+---+-----+~~
  1934. linked program: | |TTT|ttttt| |dddd|DDD|00000|
  1935. +--+---+-----+--+----+---+-----+~~
  1936. addresses: 0 ...
  1937. 
  1938. File: as.info, Node: As Sections, Next: Sub-Sections, Prev: Ld Sections, Up: Sections
  1939. 4.3 Assembler Internal Sections
  1940. ===============================
  1941. These sections are meant only for the internal use of 'as'. They have
  1942. no meaning at run-time. You do not really need to know about these
  1943. sections for most purposes; but they can be mentioned in 'as' warning
  1944. messages, so it might be helpful to have an idea of their meanings to
  1945. 'as'. These sections are used to permit the value of every expression
  1946. in your assembly language program to be a section-relative address.
  1947. ASSEMBLER-INTERNAL-LOGIC-ERROR!
  1948. An internal assembler logic error has been found. This means there
  1949. is a bug in the assembler.
  1950. expr section
  1951. The assembler stores complex expression internally as combinations
  1952. of symbols. When it needs to represent an expression as a symbol,
  1953. it puts it in the expr section.
  1954. 
  1955. File: as.info, Node: Sub-Sections, Next: bss, Prev: As Sections, Up: Sections
  1956. 4.4 Sub-Sections
  1957. ================
  1958. Assembled bytes conventionally fall into two sections: text and data.
  1959. You may have separate groups of data in named sections that you want to
  1960. end up near to each other in the object file, even though they are not
  1961. contiguous in the assembler source. 'as' allows you to use
  1962. "subsections" for this purpose. Within each section, there can be
  1963. numbered subsections with values from 0 to 8192. Objects assembled into
  1964. the same subsection go into the object file together with other objects
  1965. in the same subsection. For example, a compiler might want to store
  1966. constants in the text section, but might not want to have them
  1967. interspersed with the program being assembled. In this case, the
  1968. compiler could issue a '.text 0' before each section of code being
  1969. output, and a '.text 1' before each group of constants being output.
  1970. Subsections are optional. If you do not use subsections, everything
  1971. goes in subsection number zero.
  1972. Each subsection is zero-padded up to a multiple of four bytes.
  1973. (Subsections may be padded a different amount on different flavors of
  1974. 'as'.)
  1975. Subsections appear in your object file in numeric order, lowest
  1976. numbered to highest. (All this to be compatible with other people's
  1977. assemblers.) The object file contains no representation of subsections;
  1978. 'ld' and other programs that manipulate object files see no trace of
  1979. them. They just see all your text subsections as a text section, and
  1980. all your data subsections as a data section.
  1981. To specify which subsection you want subsequent statements assembled
  1982. into, use a numeric argument to specify it, in a '.text EXPRESSION' or a
  1983. '.data EXPRESSION' statement. When generating COFF output, you can also
  1984. use an extra subsection argument with arbitrary named sections:
  1985. '.section NAME, EXPRESSION'. When generating ELF output, you can also
  1986. use the '.subsection' directive (*note SubSection::) to specify a
  1987. subsection: '.subsection EXPRESSION'. EXPRESSION should be an absolute
  1988. expression (*note Expressions::). If you just say '.text' then '.text
  1989. 0' is assumed. Likewise '.data' means '.data 0'. Assembly begins in
  1990. 'text 0'. For instance:
  1991. .text 0 # The default subsection is text 0 anyway.
  1992. .ascii "This lives in the first text subsection. *"
  1993. .text 1
  1994. .ascii "But this lives in the second text subsection."
  1995. .data 0
  1996. .ascii "This lives in the data section,"
  1997. .ascii "in the first data subsection."
  1998. .text 0
  1999. .ascii "This lives in the first text section,"
  2000. .ascii "immediately following the asterisk (*)."
  2001. Each section has a "location counter" incremented by one for every
  2002. byte assembled into that section. Because subsections are merely a
  2003. convenience restricted to 'as' there is no concept of a subsection
  2004. location counter. There is no way to directly manipulate a location
  2005. counter--but the '.align' directive changes it, and any label definition
  2006. captures its current value. The location counter of the section where
  2007. statements are being assembled is said to be the "active" location
  2008. counter.
  2009. 
  2010. File: as.info, Node: bss, Prev: Sub-Sections, Up: Sections
  2011. 4.5 bss Section
  2012. ===============
  2013. The bss section is used for local common variable storage. You may
  2014. allocate address space in the bss section, but you may not dictate data
  2015. to load into it before your program executes. When your program starts
  2016. running, all the contents of the bss section are zeroed bytes.
  2017. The '.lcomm' pseudo-op defines a symbol in the bss section; see *note
  2018. '.lcomm': Lcomm.
  2019. The '.comm' pseudo-op may be used to declare a common symbol, which
  2020. is another form of uninitialized symbol; see *note '.comm': Comm.
  2021. When assembling for a target which supports multiple sections, such
  2022. as ELF or COFF, you may switch into the '.bss' section and define
  2023. symbols as usual; see *note '.section': Section. You may only assemble
  2024. zero values into the section. Typically the section will only contain
  2025. symbol definitions and '.skip' directives (*note '.skip': Skip.).
  2026. 
  2027. File: as.info, Node: Symbols, Next: Expressions, Prev: Sections, Up: Top
  2028. 5 Symbols
  2029. *********
  2030. Symbols are a central concept: the programmer uses symbols to name
  2031. things, the linker uses symbols to link, and the debugger uses symbols
  2032. to debug.
  2033. _Warning:_ 'as' does not place symbols in the object file in the
  2034. same order they were declared. This may break some debuggers.
  2035. * Menu:
  2036. * Labels:: Labels
  2037. * Setting Symbols:: Giving Symbols Other Values
  2038. * Symbol Names:: Symbol Names
  2039. * Dot:: The Special Dot Symbol
  2040. * Symbol Attributes:: Symbol Attributes
  2041. 
  2042. File: as.info, Node: Labels, Next: Setting Symbols, Up: Symbols
  2043. 5.1 Labels
  2044. ==========
  2045. A "label" is written as a symbol immediately followed by a colon ':'.
  2046. The symbol then represents the current value of the active location
  2047. counter, and is, for example, a suitable instruction operand. You are
  2048. warned if you use the same symbol to represent two different locations:
  2049. the first definition overrides any other definitions.
  2050. On the HPPA, the usual form for a label need not be immediately
  2051. followed by a colon, but instead must start in column zero. Only one
  2052. label may be defined on a single line. To work around this, the HPPA
  2053. version of 'as' also provides a special directive '.label' for defining
  2054. labels more flexibly.
  2055. 
  2056. File: as.info, Node: Setting Symbols, Next: Symbol Names, Prev: Labels, Up: Symbols
  2057. 5.2 Giving Symbols Other Values
  2058. ===============================
  2059. A symbol can be given an arbitrary value by writing a symbol, followed
  2060. by an equals sign '=', followed by an expression (*note Expressions::).
  2061. This is equivalent to using the '.set' directive. *Note '.set': Set.
  2062. In the same way, using a double equals sign '=''=' here represents an
  2063. equivalent of the '.eqv' directive. *Note '.eqv': Eqv.
  2064. Blackfin does not support symbol assignment with '='.
  2065. 
  2066. File: as.info, Node: Symbol Names, Next: Dot, Prev: Setting Symbols, Up: Symbols
  2067. 5.3 Symbol Names
  2068. ================
  2069. Symbol names begin with a letter or with one of '._'. On most machines,
  2070. you can also use '$' in symbol names; exceptions are noted in *note
  2071. Machine Dependencies::. That character may be followed by any string of
  2072. digits, letters, dollar signs (unless otherwise noted for a particular
  2073. target machine), and underscores.
  2074. Case of letters is significant: 'foo' is a different symbol name than
  2075. 'Foo'.
  2076. Symbol names do not start with a digit. An exception to this rule is
  2077. made for Local Labels. See below.
  2078. Multibyte characters are supported. To generate a symbol name
  2079. containing multibyte characters enclose it within double quotes and use
  2080. escape codes. cf *Note Strings::. Generating a multibyte symbol name
  2081. from a label is not currently supported.
  2082. Each symbol has exactly one name. Each name in an assembly language
  2083. program refers to exactly one symbol. You may use that symbol name any
  2084. number of times in a program.
  2085. Local Symbol Names
  2086. ------------------
  2087. A local symbol is any symbol beginning with certain local label
  2088. prefixes. By default, the local label prefix is '.L' for ELF systems or
  2089. 'L' for traditional a.out systems, but each target may have its own set
  2090. of local label prefixes. On the HPPA local symbols begin with 'L$'.
  2091. Local symbols are defined and used within the assembler, but they are
  2092. normally not saved in object files. Thus, they are not visible when
  2093. debugging. You may use the '-L' option (*note Include Local Symbols:
  2094. L.) to retain the local symbols in the object files.
  2095. Local Labels
  2096. ------------
  2097. Local labels are different from local symbols. Local labels help
  2098. compilers and programmers use names temporarily. They create symbols
  2099. which are guaranteed to be unique over the entire scope of the input
  2100. source code and which can be referred to by a simple notation. To
  2101. define a local label, write a label of the form 'N:' (where N represents
  2102. any non-negative integer). To refer to the most recent previous
  2103. definition of that label write 'Nb', using the same number as when you
  2104. defined the label. To refer to the next definition of a local label,
  2105. write 'Nf'. The 'b' stands for "backwards" and the 'f' stands for
  2106. "forwards".
  2107. There is no restriction on how you can use these labels, and you can
  2108. reuse them too. So that it is possible to repeatedly define the same
  2109. local label (using the same number 'N'), although you can only refer to
  2110. the most recently defined local label of that number (for a backwards
  2111. reference) or the next definition of a specific local label for a
  2112. forward reference. It is also worth noting that the first 10 local
  2113. labels ('0:'...'9:') are implemented in a slightly more efficient manner
  2114. than the others.
  2115. Here is an example:
  2116. 1: branch 1f
  2117. 2: branch 1b
  2118. 1: branch 2f
  2119. 2: branch 1b
  2120. Which is the equivalent of:
  2121. label_1: branch label_3
  2122. label_2: branch label_1
  2123. label_3: branch label_4
  2124. label_4: branch label_3
  2125. Local label names are only a notational device. They are immediately
  2126. transformed into more conventional symbol names before the assembler
  2127. uses them. The symbol names are stored in the symbol table, appear in
  2128. error messages, and are optionally emitted to the object file. The
  2129. names are constructed using these parts:
  2130. '_local label prefix_'
  2131. All local symbols begin with the system-specific local label
  2132. prefix. Normally both 'as' and 'ld' forget symbols that start with
  2133. the local label prefix. These labels are used for symbols you are
  2134. never intended to see. If you use the '-L' option then 'as'
  2135. retains these symbols in the object file. If you also instruct
  2136. 'ld' to retain these symbols, you may use them in debugging.
  2137. 'NUMBER'
  2138. This is the number that was used in the local label definition. So
  2139. if the label is written '55:' then the number is '55'.
  2140. 'C-B'
  2141. This unusual character is included so you do not accidentally
  2142. invent a symbol of the same name. The character has ASCII value of
  2143. '\002' (control-B).
  2144. '_ordinal number_'
  2145. This is a serial number to keep the labels distinct. The first
  2146. definition of '0:' gets the number '1'. The 15th definition of
  2147. '0:' gets the number '15', and so on. Likewise the first
  2148. definition of '1:' gets the number '1' and its 15th definition gets
  2149. '15' as well.
  2150. So for example, the first '1:' may be named '.L1C-B1', and the 44th
  2151. '3:' may be named '.L3C-B44'.
  2152. Dollar Local Labels
  2153. -------------------
  2154. On some targets 'as' also supports an even more local form of local
  2155. labels called dollar labels. These labels go out of scope (i.e., they
  2156. become undefined) as soon as a non-local label is defined. Thus they
  2157. remain valid for only a small region of the input source code. Normal
  2158. local labels, by contrast, remain in scope for the entire file, or until
  2159. they are redefined by another occurrence of the same local label.
  2160. Dollar labels are defined in exactly the same way as ordinary local
  2161. labels, except that they have a dollar sign suffix to their numeric
  2162. value, e.g., '55$:'.
  2163. They can also be distinguished from ordinary local labels by their
  2164. transformed names which use ASCII character '\001' (control-A) as the
  2165. magic character to distinguish them from ordinary labels. For example,
  2166. the fifth definition of '6$' may be named '.L6'C-A'5'.
  2167. 
  2168. File: as.info, Node: Dot, Next: Symbol Attributes, Prev: Symbol Names, Up: Symbols
  2169. 5.4 The Special Dot Symbol
  2170. ==========================
  2171. The special symbol '.' refers to the current address that 'as' is
  2172. assembling into. Thus, the expression 'melvin: .long .' defines
  2173. 'melvin' to contain its own address. Assigning a value to '.' is
  2174. treated the same as a '.org' directive. Thus, the expression '.=.+4' is
  2175. the same as saying '.space 4'.
  2176. 
  2177. File: as.info, Node: Symbol Attributes, Prev: Dot, Up: Symbols
  2178. 5.5 Symbol Attributes
  2179. =====================
  2180. Every symbol has, as well as its name, the attributes "Value" and
  2181. "Type". Depending on output format, symbols can also have auxiliary
  2182. attributes.
  2183. If you use a symbol without defining it, 'as' assumes zero for all
  2184. these attributes, and probably won't warn you. This makes the symbol an
  2185. externally defined symbol, which is generally what you would want.
  2186. * Menu:
  2187. * Symbol Value:: Value
  2188. * Symbol Type:: Type
  2189. * a.out Symbols:: Symbol Attributes: 'a.out'
  2190. * COFF Symbols:: Symbol Attributes for COFF
  2191. * SOM Symbols:: Symbol Attributes for SOM
  2192. 
  2193. File: as.info, Node: Symbol Value, Next: Symbol Type, Up: Symbol Attributes
  2194. 5.5.1 Value
  2195. -----------
  2196. The value of a symbol is (usually) 32 bits. For a symbol which labels a
  2197. location in the text, data, bss or absolute sections the value is the
  2198. number of addresses from the start of that section to the label.
  2199. Naturally for text, data and bss sections the value of a symbol changes
  2200. as 'ld' changes section base addresses during linking. Absolute
  2201. symbols' values do not change during linking: that is why they are
  2202. called absolute.
  2203. The value of an undefined symbol is treated in a special way. If it
  2204. is 0 then the symbol is not defined in this assembler source file, and
  2205. 'ld' tries to determine its value from other files linked into the same
  2206. program. You make this kind of symbol simply by mentioning a symbol
  2207. name without defining it. A non-zero value represents a '.comm' common
  2208. declaration. The value is how much common storage to reserve, in bytes
  2209. (addresses). The symbol refers to the first address of the allocated
  2210. storage.
  2211. 
  2212. File: as.info, Node: Symbol Type, Next: a.out Symbols, Prev: Symbol Value, Up: Symbol Attributes
  2213. 5.5.2 Type
  2214. ----------
  2215. The type attribute of a symbol contains relocation (section)
  2216. information, any flag settings indicating that a symbol is external, and
  2217. (optionally), other information for linkers and debuggers. The exact
  2218. format depends on the object-code output format in use.
  2219. 
  2220. File: as.info, Node: a.out Symbols, Next: COFF Symbols, Prev: Symbol Type, Up: Symbol Attributes
  2221. 5.5.3 Symbol Attributes: 'a.out'
  2222. --------------------------------
  2223. * Menu:
  2224. * Symbol Desc:: Descriptor
  2225. * Symbol Other:: Other
  2226. 
  2227. File: as.info, Node: Symbol Desc, Next: Symbol Other, Up: a.out Symbols
  2228. 5.5.3.1 Descriptor
  2229. ..................
  2230. This is an arbitrary 16-bit value. You may establish a symbol's
  2231. descriptor value by using a '.desc' statement (*note '.desc': Desc.). A
  2232. descriptor value means nothing to 'as'.
  2233. 
  2234. File: as.info, Node: Symbol Other, Prev: Symbol Desc, Up: a.out Symbols
  2235. 5.5.3.2 Other
  2236. .............
  2237. This is an arbitrary 8-bit value. It means nothing to 'as'.
  2238. 
  2239. File: as.info, Node: COFF Symbols, Next: SOM Symbols, Prev: a.out Symbols, Up: Symbol Attributes
  2240. 5.5.4 Symbol Attributes for COFF
  2241. --------------------------------
  2242. The COFF format supports a multitude of auxiliary symbol attributes;
  2243. like the primary symbol attributes, they are set between '.def' and
  2244. '.endef' directives.
  2245. 5.5.4.1 Primary Attributes
  2246. ..........................
  2247. The symbol name is set with '.def'; the value and type, respectively,
  2248. with '.val' and '.type'.
  2249. 5.5.4.2 Auxiliary Attributes
  2250. ............................
  2251. The 'as' directives '.dim', '.line', '.scl', '.size', '.tag', and
  2252. '.weak' can generate auxiliary symbol table information for COFF.
  2253. 
  2254. File: as.info, Node: SOM Symbols, Prev: COFF Symbols, Up: Symbol Attributes
  2255. 5.5.5 Symbol Attributes for SOM
  2256. -------------------------------
  2257. The SOM format for the HPPA supports a multitude of symbol attributes
  2258. set with the '.EXPORT' and '.IMPORT' directives.
  2259. The attributes are described in 'HP9000 Series 800 Assembly Language
  2260. Reference Manual' (HP 92432-90001) under the 'IMPORT' and 'EXPORT'
  2261. assembler directive documentation.
  2262. 
  2263. File: as.info, Node: Expressions, Next: Pseudo Ops, Prev: Symbols, Up: Top
  2264. 6 Expressions
  2265. *************
  2266. An "expression" specifies an address or numeric value. Whitespace may
  2267. precede and/or follow an expression.
  2268. The result of an expression must be an absolute number, or else an
  2269. offset into a particular section. If an expression is not absolute, and
  2270. there is not enough information when 'as' sees the expression to know
  2271. its section, a second pass over the source program might be necessary to
  2272. interpret the expression--but the second pass is currently not
  2273. implemented. 'as' aborts with an error message in this situation.
  2274. * Menu:
  2275. * Empty Exprs:: Empty Expressions
  2276. * Integer Exprs:: Integer Expressions
  2277. 
  2278. File: as.info, Node: Empty Exprs, Next: Integer Exprs, Up: Expressions
  2279. 6.1 Empty Expressions
  2280. =====================
  2281. An empty expression has no value: it is just whitespace or null.
  2282. Wherever an absolute expression is required, you may omit the
  2283. expression, and 'as' assumes a value of (absolute) 0. This is
  2284. compatible with other assemblers.
  2285. 
  2286. File: as.info, Node: Integer Exprs, Prev: Empty Exprs, Up: Expressions
  2287. 6.2 Integer Expressions
  2288. =======================
  2289. An "integer expression" is one or more _arguments_ delimited by
  2290. _operators_.
  2291. * Menu:
  2292. * Arguments:: Arguments
  2293. * Operators:: Operators
  2294. * Prefix Ops:: Prefix Operators
  2295. * Infix Ops:: Infix Operators
  2296. 
  2297. File: as.info, Node: Arguments, Next: Operators, Up: Integer Exprs
  2298. 6.2.1 Arguments
  2299. ---------------
  2300. "Arguments" are symbols, numbers or subexpressions. In other contexts
  2301. arguments are sometimes called "arithmetic operands". In this manual,
  2302. to avoid confusing them with the "instruction operands" of the machine
  2303. language, we use the term "argument" to refer to parts of expressions
  2304. only, reserving the word "operand" to refer only to machine instruction
  2305. operands.
  2306. Symbols are evaluated to yield {SECTION NNN} where SECTION is one of
  2307. text, data, bss, absolute, or undefined. NNN is a signed, 2's
  2308. complement 32 bit integer.
  2309. Numbers are usually integers.
  2310. A number can be a flonum or bignum. In this case, you are warned
  2311. that only the low order 32 bits are used, and 'as' pretends these 32
  2312. bits are an integer. You may write integer-manipulating instructions
  2313. that act on exotic constants, compatible with other assemblers.
  2314. Subexpressions are a left parenthesis '(' followed by an integer
  2315. expression, followed by a right parenthesis ')'; or a prefix operator
  2316. followed by an argument.
  2317. 
  2318. File: as.info, Node: Operators, Next: Prefix Ops, Prev: Arguments, Up: Integer Exprs
  2319. 6.2.2 Operators
  2320. ---------------
  2321. "Operators" are arithmetic functions, like '+' or '%'. Prefix operators
  2322. are followed by an argument. Infix operators appear between their
  2323. arguments. Operators may be preceded and/or followed by whitespace.
  2324. 
  2325. File: as.info, Node: Prefix Ops, Next: Infix Ops, Prev: Operators, Up: Integer Exprs
  2326. 6.2.3 Prefix Operator
  2327. ---------------------
  2328. 'as' has the following "prefix operators". They each take one argument,
  2329. which must be absolute.
  2330. '-'
  2331. "Negation". Two's complement negation.
  2332. '~'
  2333. "Complementation". Bitwise not.
  2334. 
  2335. File: as.info, Node: Infix Ops, Prev: Prefix Ops, Up: Integer Exprs
  2336. 6.2.4 Infix Operators
  2337. ---------------------
  2338. "Infix operators" take two arguments, one on either side. Operators
  2339. have precedence, but operations with equal precedence are performed left
  2340. to right. Apart from '+' or '-', both arguments must be absolute, and
  2341. the result is absolute.
  2342. 1. Highest Precedence
  2343. '*'
  2344. "Multiplication".
  2345. '/'
  2346. "Division". Truncation is the same as the C operator '/'
  2347. '%'
  2348. "Remainder".
  2349. '<<'
  2350. "Shift Left". Same as the C operator '<<'.
  2351. '>>'
  2352. "Shift Right". Same as the C operator '>>'.
  2353. 2. Intermediate precedence
  2354. '|'
  2355. "Bitwise Inclusive Or".
  2356. '&'
  2357. "Bitwise And".
  2358. '^'
  2359. "Bitwise Exclusive Or".
  2360. '!'
  2361. "Bitwise Or Not".
  2362. 3. Low Precedence
  2363. '+'
  2364. "Addition". If either argument is absolute, the result has
  2365. the section of the other argument. You may not add together
  2366. arguments from different sections.
  2367. '-'
  2368. "Subtraction". If the right argument is absolute, the result
  2369. has the section of the left argument. If both arguments are
  2370. in the same section, the result is absolute. You may not
  2371. subtract arguments from different sections.
  2372. '=='
  2373. "Is Equal To"
  2374. '<>'
  2375. '!='
  2376. "Is Not Equal To"
  2377. '<'
  2378. "Is Less Than"
  2379. '>'
  2380. "Is Greater Than"
  2381. '>='
  2382. "Is Greater Than Or Equal To"
  2383. '<='
  2384. "Is Less Than Or Equal To"
  2385. The comparison operators can be used as infix operators. A
  2386. true results has a value of -1 whereas a false result has a
  2387. value of 0. Note, these operators perform signed comparisons.
  2388. 4. Lowest Precedence
  2389. '&&'
  2390. "Logical And".
  2391. '||'
  2392. "Logical Or".
  2393. These two logical operations can be used to combine the
  2394. results of sub expressions. Note, unlike the comparison
  2395. operators a true result returns a value of 1 but a false
  2396. results does still return 0. Also note that the logical or
  2397. operator has a slightly lower precedence than logical and.
  2398. In short, it's only meaningful to add or subtract the _offsets_ in an
  2399. address; you can only have a defined section in one of the two
  2400. arguments.
  2401. 
  2402. File: as.info, Node: Pseudo Ops, Next: Object Attributes, Prev: Expressions, Up: Top
  2403. 7 Assembler Directives
  2404. **********************
  2405. All assembler directives have names that begin with a period ('.'). The
  2406. names are case insensitive for most targets, and usually written in
  2407. lower case.
  2408. This chapter discusses directives that are available regardless of
  2409. the target machine configuration for the GNU assembler. Some machine
  2410. configurations provide additional directives. *Note Machine
  2411. Dependencies::.
  2412. * Menu:
  2413. * Abort:: '.abort'
  2414. * ABORT (COFF):: '.ABORT'
  2415. * Align:: '.align [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2416. * Altmacro:: '.altmacro'
  2417. * Ascii:: '.ascii "STRING"'...
  2418. * Asciz:: '.asciz "STRING"'...
  2419. * Balign:: '.balign [ABS-EXPR[, ABS-EXPR]]'
  2420. * Bundle directives:: '.bundle_align_mode ABS-EXPR', etc
  2421. * Byte:: '.byte EXPRESSIONS'
  2422. * CFI directives:: '.cfi_startproc [simple]', '.cfi_endproc', etc.
  2423. * Comm:: '.comm SYMBOL , LENGTH '
  2424. * Data:: '.data SUBSECTION'
  2425. * Dc:: '.dc[SIZE] EXPRESSIONS'
  2426. * Dcb:: '.dcb[SIZE] NUMBER [,FILL]'
  2427. * Ds:: '.ds[SIZE] NUMBER [,FILL]'
  2428. * Def:: '.def NAME'
  2429. * Desc:: '.desc SYMBOL, ABS-EXPRESSION'
  2430. * Dim:: '.dim'
  2431. * Double:: '.double FLONUMS'
  2432. * Eject:: '.eject'
  2433. * Else:: '.else'
  2434. * Elseif:: '.elseif'
  2435. * End:: '.end'
  2436. * Endef:: '.endef'
  2437. * Endfunc:: '.endfunc'
  2438. * Endif:: '.endif'
  2439. * Equ:: '.equ SYMBOL, EXPRESSION'
  2440. * Equiv:: '.equiv SYMBOL, EXPRESSION'
  2441. * Eqv:: '.eqv SYMBOL, EXPRESSION'
  2442. * Err:: '.err'
  2443. * Error:: '.error STRING'
  2444. * Exitm:: '.exitm'
  2445. * Extern:: '.extern'
  2446. * Fail:: '.fail'
  2447. * File:: '.file'
  2448. * Fill:: '.fill REPEAT , SIZE , VALUE'
  2449. * Float:: '.float FLONUMS'
  2450. * Func:: '.func'
  2451. * Global:: '.global SYMBOL', '.globl SYMBOL'
  2452. * Gnu_attribute:: '.gnu_attribute TAG,VALUE'
  2453. * Hidden:: '.hidden NAMES'
  2454. * hword:: '.hword EXPRESSIONS'
  2455. * Ident:: '.ident'
  2456. * If:: '.if ABSOLUTE EXPRESSION'
  2457. * Incbin:: '.incbin "FILE"[,SKIP[,COUNT]]'
  2458. * Include:: '.include "FILE"'
  2459. * Int:: '.int EXPRESSIONS'
  2460. * Internal:: '.internal NAMES'
  2461. * Irp:: '.irp SYMBOL,VALUES'...
  2462. * Irpc:: '.irpc SYMBOL,VALUES'...
  2463. * Lcomm:: '.lcomm SYMBOL , LENGTH'
  2464. * Lflags:: '.lflags'
  2465. * Line:: '.line LINE-NUMBER'
  2466. * Linkonce:: '.linkonce [TYPE]'
  2467. * List:: '.list'
  2468. * Ln:: '.ln LINE-NUMBER'
  2469. * Loc:: '.loc FILENO LINENO'
  2470. * Loc_mark_labels:: '.loc_mark_labels ENABLE'
  2471. * Local:: '.local NAMES'
  2472. * Long:: '.long EXPRESSIONS'
  2473. * Macro:: '.macro NAME ARGS'...
  2474. * MRI:: '.mri VAL'
  2475. * Noaltmacro:: '.noaltmacro'
  2476. * Nolist:: '.nolist'
  2477. * Nops:: '.nops SIZE[, CONTROL]'
  2478. * Octa:: '.octa BIGNUMS'
  2479. * Offset:: '.offset LOC'
  2480. * Org:: '.org NEW-LC, FILL'
  2481. * P2align:: '.p2align [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2482. * PopSection:: '.popsection'
  2483. * Previous:: '.previous'
  2484. * Print:: '.print STRING'
  2485. * Protected:: '.protected NAMES'
  2486. * Psize:: '.psize LINES, COLUMNS'
  2487. * Purgem:: '.purgem NAME'
  2488. * PushSection:: '.pushsection NAME'
  2489. * Quad:: '.quad BIGNUMS'
  2490. * Reloc:: '.reloc OFFSET, RELOC_NAME[, EXPRESSION]'
  2491. * Rept:: '.rept COUNT'
  2492. * Sbttl:: '.sbttl "SUBHEADING"'
  2493. * Scl:: '.scl CLASS'
  2494. * Section:: '.section NAME[, FLAGS]'
  2495. * Set:: '.set SYMBOL, EXPRESSION'
  2496. * Short:: '.short EXPRESSIONS'
  2497. * Single:: '.single FLONUMS'
  2498. * Size:: '.size [NAME , EXPRESSION]'
  2499. * Skip:: '.skip SIZE [,FILL]'
  2500. * Sleb128:: '.sleb128 EXPRESSIONS'
  2501. * Space:: '.space SIZE [,FILL]'
  2502. * Stab:: '.stabd, .stabn, .stabs'
  2503. * String:: '.string "STR"', '.string8 "STR"', '.string16 "STR"', '.string32 "STR"', '.string64 "STR"'
  2504. * Struct:: '.struct EXPRESSION'
  2505. * SubSection:: '.subsection'
  2506. * Symver:: '.symver NAME,NAME2@NODENAME'
  2507. * Tag:: '.tag STRUCTNAME'
  2508. * Text:: '.text SUBSECTION'
  2509. * Title:: '.title "HEADING"'
  2510. * Type:: '.type <INT | NAME , TYPE DESCRIPTION>'
  2511. * Uleb128:: '.uleb128 EXPRESSIONS'
  2512. * Val:: '.val ADDR'
  2513. * Version:: '.version "STRING"'
  2514. * VTableEntry:: '.vtable_entry TABLE, OFFSET'
  2515. * VTableInherit:: '.vtable_inherit CHILD, PARENT'
  2516. * Warning:: '.warning STRING'
  2517. * Weak:: '.weak NAMES'
  2518. * Weakref:: '.weakref ALIAS, SYMBOL'
  2519. * Word:: '.word EXPRESSIONS'
  2520. * Zero:: '.zero SIZE'
  2521. * 2byte:: '.2byte EXPRESSIONS'
  2522. * 4byte:: '.4byte EXPRESSIONS'
  2523. * 8byte:: '.8byte BIGNUMS'
  2524. * Deprecated:: Deprecated Directives
  2525. 
  2526. File: as.info, Node: Abort, Next: ABORT (COFF), Up: Pseudo Ops
  2527. 7.1 '.abort'
  2528. ============
  2529. This directive stops the assembly immediately. It is for compatibility
  2530. with other assemblers. The original idea was that the assembly language
  2531. source would be piped into the assembler. If the sender of the source
  2532. quit, it could use this directive tells 'as' to quit also. One day
  2533. '.abort' will not be supported.
  2534. 
  2535. File: as.info, Node: ABORT (COFF), Next: Align, Prev: Abort, Up: Pseudo Ops
  2536. 7.2 '.ABORT' (COFF)
  2537. ===================
  2538. When producing COFF output, 'as' accepts this directive as a synonym for
  2539. '.abort'.
  2540. 
  2541. File: as.info, Node: Align, Next: Altmacro, Prev: ABORT (COFF), Up: Pseudo Ops
  2542. 7.3 '.align [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2543. ===============================================
  2544. Pad the location counter (in the current subsection) to a particular
  2545. storage boundary. The first expression (which must be absolute) is the
  2546. alignment required, as described below. If this expression is omitted
  2547. then a default value of 0 is used, effectively disabling alignment
  2548. requirements.
  2549. The second expression (also absolute) gives the fill value to be
  2550. stored in the padding bytes. It (and the comma) may be omitted. If it
  2551. is omitted, the padding bytes are normally zero. However, on most
  2552. systems, if the section is marked as containing code and the fill value
  2553. is omitted, the space is filled with no-op instructions.
  2554. The third expression is also absolute, and is also optional. If it
  2555. is present, it is the maximum number of bytes that should be skipped by
  2556. this alignment directive. If doing the alignment would require skipping
  2557. more bytes than the specified maximum, then the alignment is not done at
  2558. all. You can omit the fill value (the second argument) entirely by
  2559. simply using two commas after the required alignment; this can be useful
  2560. if you want the alignment to be filled with no-op instructions when
  2561. appropriate.
  2562. The way the required alignment is specified varies from system to
  2563. system. For the arc, hppa, i386 using ELF, iq2000, m68k, or1k, s390,
  2564. sparc, tic4x and xtensa, the first expression is the alignment request
  2565. in bytes. For example '.align 8' advances the location counter until it
  2566. is a multiple of 8. If the location counter is already a multiple of 8,
  2567. no change is needed. For the tic54x, the first expression is the
  2568. alignment request in words.
  2569. For other systems, including ppc, i386 using a.out format, arm and
  2570. strongarm, it is the number of low-order zero bits the location counter
  2571. must have after advancement. For example '.align 3' advances the
  2572. location counter until it is a multiple of 8. If the location counter
  2573. is already a multiple of 8, no change is needed.
  2574. This inconsistency is due to the different behaviors of the various
  2575. native assemblers for these systems which GAS must emulate. GAS also
  2576. provides '.balign' and '.p2align' directives, described later, which
  2577. have a consistent behavior across all architectures (but are specific to
  2578. GAS).
  2579. 
  2580. File: as.info, Node: Altmacro, Next: Ascii, Prev: Align, Up: Pseudo Ops
  2581. 7.4 '.altmacro'
  2582. ===============
  2583. Enable alternate macro mode, enabling:
  2584. 'LOCAL NAME [ , ... ]'
  2585. One additional directive, 'LOCAL', is available. It is used to
  2586. generate a string replacement for each of the NAME arguments, and
  2587. replace any instances of NAME in each macro expansion. The
  2588. replacement string is unique in the assembly, and different for
  2589. each separate macro expansion. 'LOCAL' allows you to write macros
  2590. that define symbols, without fear of conflict between separate
  2591. macro expansions.
  2592. 'String delimiters'
  2593. You can write strings delimited in these other ways besides
  2594. '"STRING"':
  2595. ''STRING''
  2596. You can delimit strings with single-quote characters.
  2597. '<STRING>'
  2598. You can delimit strings with matching angle brackets.
  2599. 'single-character string escape'
  2600. To include any single character literally in a string (even if the
  2601. character would otherwise have some special meaning), you can
  2602. prefix the character with '!' (an exclamation mark). For example,
  2603. you can write '<4.3 !> 5.4!!>' to get the literal text '4.3 >
  2604. 5.4!'.
  2605. 'Expression results as strings'
  2606. You can write '%EXPR' to evaluate the expression EXPR and use the
  2607. result as a string.
  2608. 
  2609. File: as.info, Node: Ascii, Next: Asciz, Prev: Altmacro, Up: Pseudo Ops
  2610. 7.5 '.ascii "STRING"'...
  2611. ========================
  2612. '.ascii' expects zero or more string literals (*note Strings::)
  2613. separated by commas. It assembles each string (with no automatic
  2614. trailing zero byte) into consecutive addresses.
  2615. 
  2616. File: as.info, Node: Asciz, Next: Balign, Prev: Ascii, Up: Pseudo Ops
  2617. 7.6 '.asciz "STRING"'...
  2618. ========================
  2619. '.asciz' is just like '.ascii', but each string is followed by a zero
  2620. byte. The "z" in '.asciz' stands for "zero".
  2621. 
  2622. File: as.info, Node: Balign, Next: Bundle directives, Prev: Asciz, Up: Pseudo Ops
  2623. 7.7 '.balign[wl] [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  2624. ====================================================
  2625. Pad the location counter (in the current subsection) to a particular
  2626. storage boundary. The first expression (which must be absolute) is the
  2627. alignment request in bytes. For example '.balign 8' advances the
  2628. location counter until it is a multiple of 8. If the location counter
  2629. is already a multiple of 8, no change is needed. If the expression is
  2630. omitted then a default value of 0 is used, effectively disabling
  2631. alignment requirements.
  2632. The second expression (also absolute) gives the fill value to be
  2633. stored in the padding bytes. It (and the comma) may be omitted. If it
  2634. is omitted, the padding bytes are normally zero. However, on most
  2635. systems, if the section is marked as containing code and the fill value
  2636. is omitted, the space is filled with no-op instructions.
  2637. The third expression is also absolute, and is also optional. If it
  2638. is present, it is the maximum number of bytes that should be skipped by
  2639. this alignment directive. If doing the alignment would require skipping
  2640. more bytes than the specified maximum, then the alignment is not done at
  2641. all. You can omit the fill value (the second argument) entirely by
  2642. simply using two commas after the required alignment; this can be useful
  2643. if you want the alignment to be filled with no-op instructions when
  2644. appropriate.
  2645. The '.balignw' and '.balignl' directives are variants of the
  2646. '.balign' directive. The '.balignw' directive treats the fill pattern
  2647. as a two byte word value. The '.balignl' directives treats the fill
  2648. pattern as a four byte longword value. For example, '.balignw 4,0x368d'
  2649. will align to a multiple of 4. If it skips two bytes, they will be
  2650. filled in with the value 0x368d (the exact placement of the bytes
  2651. depends upon the endianness of the processor). If it skips 1 or 3
  2652. bytes, the fill value is undefined.
  2653. 
  2654. File: as.info, Node: Bundle directives, Next: Byte, Prev: Balign, Up: Pseudo Ops
  2655. 7.8 Bundle directives
  2656. =====================
  2657. 7.8.1 '.bundle_align_mode ABS-EXPR'
  2658. -----------------------------------
  2659. '.bundle_align_mode' enables or disables "aligned instruction bundle"
  2660. mode. In this mode, sequences of adjacent instructions are grouped into
  2661. fixed-sized "bundles". If the argument is zero, this mode is disabled
  2662. (which is the default state). If the argument it not zero, it gives the
  2663. size of an instruction bundle as a power of two (as for the '.p2align'
  2664. directive, *note P2align::).
  2665. For some targets, it's an ABI requirement that no instruction may
  2666. span a certain aligned boundary. A "bundle" is simply a sequence of
  2667. instructions that starts on an aligned boundary. For example, if
  2668. ABS-EXPR is '5' then the bundle size is 32, so each aligned chunk of 32
  2669. bytes is a bundle. When aligned instruction bundle mode is in effect,
  2670. no single instruction may span a boundary between bundles. If an
  2671. instruction would start too close to the end of a bundle for the length
  2672. of that particular instruction to fit within the bundle, then the space
  2673. at the end of that bundle is filled with no-op instructions so the
  2674. instruction starts in the next bundle. As a corollary, it's an error if
  2675. any single instruction's encoding is longer than the bundle size.
  2676. 7.8.2 '.bundle_lock' and '.bundle_unlock'
  2677. -----------------------------------------
  2678. The '.bundle_lock' and directive '.bundle_unlock' directives allow
  2679. explicit control over instruction bundle padding. These directives are
  2680. only valid when '.bundle_align_mode' has been used to enable aligned
  2681. instruction bundle mode. It's an error if they appear when
  2682. '.bundle_align_mode' has not been used at all, or when the last
  2683. directive was '.bundle_align_mode 0'.
  2684. For some targets, it's an ABI requirement that certain instructions
  2685. may appear only as part of specified permissible sequences of multiple
  2686. instructions, all within the same bundle. A pair of '.bundle_lock' and
  2687. '.bundle_unlock' directives define a "bundle-locked" instruction
  2688. sequence. For purposes of aligned instruction bundle mode, a sequence
  2689. starting with '.bundle_lock' and ending with '.bundle_unlock' is treated
  2690. as a single instruction. That is, the entire sequence must fit into a
  2691. single bundle and may not span a bundle boundary. If necessary, no-op
  2692. instructions will be inserted before the first instruction of the
  2693. sequence so that the whole sequence starts on an aligned bundle
  2694. boundary. It's an error if the sequence is longer than the bundle size.
  2695. For convenience when using '.bundle_lock' and '.bundle_unlock' inside
  2696. assembler macros (*note Macro::), bundle-locked sequences may be nested.
  2697. That is, a second '.bundle_lock' directive before the next
  2698. '.bundle_unlock' directive has no effect except that it must be matched
  2699. by another closing '.bundle_unlock' so that there is the same number of
  2700. '.bundle_lock' and '.bundle_unlock' directives.
  2701. 
  2702. File: as.info, Node: Byte, Next: CFI directives, Prev: Bundle directives, Up: Pseudo Ops
  2703. 7.9 '.byte EXPRESSIONS'
  2704. =======================
  2705. '.byte' expects zero or more expressions, separated by commas. Each
  2706. expression is assembled into the next byte.
  2707. 
  2708. File: as.info, Node: CFI directives, Next: Comm, Prev: Byte, Up: Pseudo Ops
  2709. 7.10 CFI directives
  2710. ===================
  2711. 7.10.1 '.cfi_sections SECTION_LIST'
  2712. -----------------------------------
  2713. '.cfi_sections' may be used to specify whether CFI directives should
  2714. emit '.eh_frame' section and/or '.debug_frame' section. If SECTION_LIST
  2715. is '.eh_frame', '.eh_frame' is emitted, if SECTION_LIST is
  2716. '.debug_frame', '.debug_frame' is emitted. To emit both use '.eh_frame,
  2717. .debug_frame'. The default if this directive is not used is
  2718. '.cfi_sections .eh_frame'.
  2719. On targets that support compact unwinding tables these can be
  2720. generated by specifying '.eh_frame_entry' instead of '.eh_frame'.
  2721. Some targets may support an additional name, such as '.c6xabi.exidx'
  2722. which is used by the target.
  2723. The '.cfi_sections' directive can be repeated, with the same or
  2724. different arguments, provided that CFI generation has not yet started.
  2725. Once CFI generation has started however the section list is fixed and
  2726. any attempts to redefine it will result in an error.
  2727. 7.10.2 '.cfi_startproc [simple]'
  2728. --------------------------------
  2729. '.cfi_startproc' is used at the beginning of each function that should
  2730. have an entry in '.eh_frame'. It initializes some internal data
  2731. structures. Don't forget to close the function by '.cfi_endproc'.
  2732. Unless '.cfi_startproc' is used along with parameter 'simple' it also
  2733. emits some architecture dependent initial CFI instructions.
  2734. 7.10.3 '.cfi_endproc'
  2735. ---------------------
  2736. '.cfi_endproc' is used at the end of a function where it closes its
  2737. unwind entry previously opened by '.cfi_startproc', and emits it to
  2738. '.eh_frame'.
  2739. 7.10.4 '.cfi_personality ENCODING [, EXP]'
  2740. ------------------------------------------
  2741. '.cfi_personality' defines personality routine and its encoding.
  2742. ENCODING must be a constant determining how the personality should be
  2743. encoded. If it is 255 ('DW_EH_PE_omit'), second argument is not
  2744. present, otherwise second argument should be a constant or a symbol
  2745. name. When using indirect encodings, the symbol provided should be the
  2746. location where personality can be loaded from, not the personality
  2747. routine itself. The default after '.cfi_startproc' is '.cfi_personality
  2748. 0xff', no personality routine.
  2749. 7.10.5 '.cfi_personality_id ID'
  2750. -------------------------------
  2751. 'cfi_personality_id' defines a personality routine by its index as
  2752. defined in a compact unwinding format. Only valid when generating
  2753. compact EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2754. 7.10.6 '.cfi_fde_data [OPCODE1 [, ...]]'
  2755. ----------------------------------------
  2756. 'cfi_fde_data' is used to describe the compact unwind opcodes to be used
  2757. for the current function. These are emitted inline in the
  2758. '.eh_frame_entry' section if small enough and there is no LSDA, or in
  2759. the '.gnu.extab' section otherwise. Only valid when generating compact
  2760. EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2761. 7.10.7 '.cfi_lsda ENCODING [, EXP]'
  2762. -----------------------------------
  2763. '.cfi_lsda' defines LSDA and its encoding. ENCODING must be a constant
  2764. determining how the LSDA should be encoded. If it is 255
  2765. ('DW_EH_PE_omit'), the second argument is not present, otherwise the
  2766. second argument should be a constant or a symbol name. The default
  2767. after '.cfi_startproc' is '.cfi_lsda 0xff', meaning that no LSDA is
  2768. present.
  2769. 7.10.8 '.cfi_inline_lsda' [ALIGN]
  2770. ---------------------------------
  2771. '.cfi_inline_lsda' marks the start of a LSDA data section and switches
  2772. to the corresponding '.gnu.extab' section. Must be preceded by a CFI
  2773. block containing a '.cfi_lsda' directive. Only valid when generating
  2774. compact EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2775. The table header and unwinding opcodes will be generated at this
  2776. point, so that they are immediately followed by the LSDA data. The
  2777. symbol referenced by the '.cfi_lsda' directive should still be defined
  2778. in case a fallback FDE based encoding is used. The LSDA data is
  2779. terminated by a section directive.
  2780. The optional ALIGN argument specifies the alignment required. The
  2781. alignment is specified as a power of two, as with the '.p2align'
  2782. directive.
  2783. 7.10.9 '.cfi_def_cfa REGISTER, OFFSET'
  2784. --------------------------------------
  2785. '.cfi_def_cfa' defines a rule for computing CFA as: take address from
  2786. REGISTER and add OFFSET to it.
  2787. 7.10.10 '.cfi_def_cfa_register REGISTER'
  2788. ----------------------------------------
  2789. '.cfi_def_cfa_register' modifies a rule for computing CFA. From now on
  2790. REGISTER will be used instead of the old one. Offset remains the same.
  2791. 7.10.11 '.cfi_def_cfa_offset OFFSET'
  2792. ------------------------------------
  2793. '.cfi_def_cfa_offset' modifies a rule for computing CFA. Register
  2794. remains the same, but OFFSET is new. Note that it is the absolute
  2795. offset that will be added to a defined register to compute CFA address.
  2796. 7.10.12 '.cfi_adjust_cfa_offset OFFSET'
  2797. ---------------------------------------
  2798. Same as '.cfi_def_cfa_offset' but OFFSET is a relative value that is
  2799. added/subtracted from the previous offset.
  2800. 7.10.13 '.cfi_offset REGISTER, OFFSET'
  2801. --------------------------------------
  2802. Previous value of REGISTER is saved at offset OFFSET from CFA.
  2803. 7.10.14 '.cfi_val_offset REGISTER, OFFSET'
  2804. ------------------------------------------
  2805. Previous value of REGISTER is CFA + OFFSET.
  2806. 7.10.15 '.cfi_rel_offset REGISTER, OFFSET'
  2807. ------------------------------------------
  2808. Previous value of REGISTER is saved at offset OFFSET from the current
  2809. CFA register. This is transformed to '.cfi_offset' using the known
  2810. displacement of the CFA register from the CFA. This is often easier to
  2811. use, because the number will match the code it's annotating.
  2812. 7.10.16 '.cfi_register REGISTER1, REGISTER2'
  2813. --------------------------------------------
  2814. Previous value of REGISTER1 is saved in register REGISTER2.
  2815. 7.10.17 '.cfi_restore REGISTER'
  2816. -------------------------------
  2817. '.cfi_restore' says that the rule for REGISTER is now the same as it was
  2818. at the beginning of the function, after all initial instruction added by
  2819. '.cfi_startproc' were executed.
  2820. 7.10.18 '.cfi_undefined REGISTER'
  2821. ---------------------------------
  2822. From now on the previous value of REGISTER can't be restored anymore.
  2823. 7.10.19 '.cfi_same_value REGISTER'
  2824. ----------------------------------
  2825. Current value of REGISTER is the same like in the previous frame, i.e.
  2826. no restoration needed.
  2827. 7.10.20 '.cfi_remember_state' and '.cfi_restore_state'
  2828. ------------------------------------------------------
  2829. '.cfi_remember_state' pushes the set of rules for every register onto an
  2830. implicit stack, while '.cfi_restore_state' pops them off the stack and
  2831. places them in the current row. This is useful for situations where you
  2832. have multiple '.cfi_*' directives that need to be undone due to the
  2833. control flow of the program. For example, we could have something like
  2834. this (assuming the CFA is the value of 'rbp'):
  2835. je label
  2836. popq %rbx
  2837. .cfi_restore %rbx
  2838. popq %r12
  2839. .cfi_restore %r12
  2840. popq %rbp
  2841. .cfi_restore %rbp
  2842. .cfi_def_cfa %rsp, 8
  2843. ret
  2844. label:
  2845. /* Do something else */
  2846. Here, we want the '.cfi' directives to affect only the rows
  2847. corresponding to the instructions before 'label'. This means we'd have
  2848. to add multiple '.cfi' directives after 'label' to recreate the original
  2849. save locations of the registers, as well as setting the CFA back to the
  2850. value of 'rbp'. This would be clumsy, and result in a larger binary
  2851. size. Instead, we can write:
  2852. je label
  2853. popq %rbx
  2854. .cfi_remember_state
  2855. .cfi_restore %rbx
  2856. popq %r12
  2857. .cfi_restore %r12
  2858. popq %rbp
  2859. .cfi_restore %rbp
  2860. .cfi_def_cfa %rsp, 8
  2861. ret
  2862. label:
  2863. .cfi_restore_state
  2864. /* Do something else */
  2865. That way, the rules for the instructions after 'label' will be the
  2866. same as before the first '.cfi_restore' without having to use multiple
  2867. '.cfi' directives.
  2868. 7.10.21 '.cfi_return_column REGISTER'
  2869. -------------------------------------
  2870. Change return column REGISTER, i.e. the return address is either
  2871. directly in REGISTER or can be accessed by rules for REGISTER.
  2872. 7.10.22 '.cfi_signal_frame'
  2873. ---------------------------
  2874. Mark current function as signal trampoline.
  2875. 7.10.23 '.cfi_window_save'
  2876. --------------------------
  2877. SPARC register window has been saved.
  2878. 7.10.24 '.cfi_escape' EXPRESSION[, ...]
  2879. ---------------------------------------
  2880. Allows the user to add arbitrary bytes to the unwind info. One might
  2881. use this to add OS-specific CFI opcodes, or generic CFI opcodes that GAS
  2882. does not yet support.
  2883. 7.10.25 '.cfi_val_encoded_addr REGISTER, ENCODING, LABEL'
  2884. ---------------------------------------------------------
  2885. The current value of REGISTER is LABEL. The value of LABEL will be
  2886. encoded in the output file according to ENCODING; see the description of
  2887. '.cfi_personality' for details on this encoding.
  2888. The usefulness of equating a register to a fixed label is probably
  2889. limited to the return address register. Here, it can be useful to mark
  2890. a code segment that has only one return address which is reached by a
  2891. direct branch and no copy of the return address exists in memory or
  2892. another register.
  2893. 
  2894. File: as.info, Node: Comm, Next: Data, Prev: CFI directives, Up: Pseudo Ops
  2895. 7.11 '.comm SYMBOL , LENGTH '
  2896. =============================
  2897. '.comm' declares a common symbol named SYMBOL. When linking, a common
  2898. symbol in one object file may be merged with a defined or common symbol
  2899. of the same name in another object file. If 'ld' does not see a
  2900. definition for the symbol-just one or more common symbols-then it will
  2901. allocate LENGTH bytes of uninitialized memory. LENGTH must be an
  2902. absolute expression. If 'ld' sees multiple common symbols with the same
  2903. name, and they do not all have the same size, it will allocate space
  2904. using the largest size.
  2905. When using ELF or (as a GNU extension) PE, the '.comm' directive
  2906. takes an optional third argument. This is the desired alignment of the
  2907. symbol, specified for ELF as a byte boundary (for example, an alignment
  2908. of 16 means that the least significant 4 bits of the address should be
  2909. zero), and for PE as a power of two (for example, an alignment of 5
  2910. means aligned to a 32-byte boundary). The alignment must be an absolute
  2911. expression, and it must be a power of two. If 'ld' allocates
  2912. uninitialized memory for the common symbol, it will use the alignment
  2913. when placing the symbol. If no alignment is specified, 'as' will set
  2914. the alignment to the largest power of two less than or equal to the size
  2915. of the symbol, up to a maximum of 16 on ELF, or the default section
  2916. alignment of 4 on PE(1).
  2917. The syntax for '.comm' differs slightly on the HPPA. The syntax is
  2918. 'SYMBOL .comm, LENGTH'; SYMBOL is optional.
  2919. ---------- Footnotes ----------
  2920. (1) This is not the same as the executable image file alignment
  2921. controlled by 'ld''s '--section-alignment' option; image file sections
  2922. in PE are aligned to multiples of 4096, which is far too large an
  2923. alignment for ordinary variables. It is rather the default alignment
  2924. for (non-debug) sections within object ('*.o') files, which are less
  2925. strictly aligned.
  2926. 
  2927. File: as.info, Node: Data, Next: Dc, Prev: Comm, Up: Pseudo Ops
  2928. 7.12 '.data SUBSECTION'
  2929. =======================
  2930. '.data' tells 'as' to assemble the following statements onto the end of
  2931. the data subsection numbered SUBSECTION (which is an absolute
  2932. expression). If SUBSECTION is omitted, it defaults to zero.
  2933. 
  2934. File: as.info, Node: Dc, Next: Dcb, Prev: Data, Up: Pseudo Ops
  2935. 7.13 '.dc[SIZE] EXPRESSIONS'
  2936. ============================
  2937. The '.dc' directive expects zero or more EXPRESSIONS separated by
  2938. commas. These expressions are evaluated and their values inserted into
  2939. the current section. The size of the emitted value depends upon the
  2940. suffix to the '.dc' directive:
  2941. ''.a''
  2942. Emits N-bit values, where N is the size of an address on the target
  2943. system.
  2944. ''.b''
  2945. Emits 8-bit values.
  2946. ''.d''
  2947. Emits double precision floating-point values.
  2948. ''.l''
  2949. Emits 32-bit values.
  2950. ''.s''
  2951. Emits single precision floating-point values.
  2952. ''.w''
  2953. Emits 16-bit values. Note - this is true even on targets where the
  2954. '.word' directive would emit 32-bit values.
  2955. ''.x''
  2956. Emits long double precision floating-point values.
  2957. If no suffix is used then '.w' is assumed.
  2958. The byte ordering is target dependent, as is the size and format of
  2959. floating point values.
  2960. 
  2961. File: as.info, Node: Dcb, Next: Ds, Prev: Dc, Up: Pseudo Ops
  2962. 7.14 '.dcb[SIZE] NUMBER [,FILL]'
  2963. ================================
  2964. This directive emits NUMBER copies of FILL, each of SIZE bytes. Both
  2965. NUMBER and FILL are absolute expressions. If the comma and FILL are
  2966. omitted, FILL is assumed to be zero. The SIZE suffix, if present, must
  2967. be one of:
  2968. ''.b''
  2969. Emits single byte values.
  2970. ''.d''
  2971. Emits double-precision floating point values.
  2972. ''.l''
  2973. Emits 4-byte values.
  2974. ''.s''
  2975. Emits single-precision floating point values.
  2976. ''.w''
  2977. Emits 2-byte values.
  2978. ''.x''
  2979. Emits long double-precision floating point values.
  2980. If the SIZE suffix is omitted then '.w' is assumed.
  2981. The byte ordering is target dependent, as is the size and format of
  2982. floating point values.
  2983. 
  2984. File: as.info, Node: Ds, Next: Def, Prev: Dcb, Up: Pseudo Ops
  2985. 7.15 '.ds[SIZE] NUMBER [,FILL]'
  2986. ===============================
  2987. This directive emits NUMBER copies of FILL, each of SIZE bytes. Both
  2988. NUMBER and FILL are absolute expressions. If the comma and FILL are
  2989. omitted, FILL is assumed to be zero. The SIZE suffix, if present, must
  2990. be one of:
  2991. ''.b''
  2992. Emits single byte values.
  2993. ''.d''
  2994. Emits 8-byte values.
  2995. ''.l''
  2996. Emits 4-byte values.
  2997. ''.p''
  2998. Emits 12-byte values.
  2999. ''.s''
  3000. Emits 4-byte values.
  3001. ''.w''
  3002. Emits 2-byte values.
  3003. ''.x''
  3004. Emits 12-byte values.
  3005. Note - unlike the '.dcb' directive the '.d', '.s' and '.x' suffixes
  3006. do not indicate that floating-point values are to be inserted.
  3007. If the SIZE suffix is omitted then '.w' is assumed.
  3008. The byte ordering is target dependent.
  3009. 
  3010. File: as.info, Node: Def, Next: Desc, Prev: Ds, Up: Pseudo Ops
  3011. 7.16 '.def NAME'
  3012. ================
  3013. Begin defining debugging information for a symbol NAME; the definition
  3014. extends until the '.endef' directive is encountered.
  3015. 
  3016. File: as.info, Node: Desc, Next: Dim, Prev: Def, Up: Pseudo Ops
  3017. 7.17 '.desc SYMBOL, ABS-EXPRESSION'
  3018. ===================================
  3019. This directive sets the descriptor of the symbol (*note Symbol
  3020. Attributes::) to the low 16 bits of an absolute expression.
  3021. The '.desc' directive is not available when 'as' is configured for
  3022. COFF output; it is only for 'a.out' or 'b.out' object format. For the
  3023. sake of compatibility, 'as' accepts it, but produces no output, when
  3024. configured for COFF.
  3025. 
  3026. File: as.info, Node: Dim, Next: Double, Prev: Desc, Up: Pseudo Ops
  3027. 7.18 '.dim'
  3028. ===========
  3029. This directive is generated by compilers to include auxiliary debugging
  3030. information in the symbol table. It is only permitted inside
  3031. '.def'/'.endef' pairs.
  3032. 
  3033. File: as.info, Node: Double, Next: Eject, Prev: Dim, Up: Pseudo Ops
  3034. 7.19 '.double FLONUMS'
  3035. ======================
  3036. '.double' expects zero or more flonums, separated by commas. It
  3037. assembles floating point numbers. The exact kind of floating point
  3038. numbers emitted depends on how 'as' is configured. *Note Machine
  3039. Dependencies::.
  3040. 
  3041. File: as.info, Node: Eject, Next: Else, Prev: Double, Up: Pseudo Ops
  3042. 7.20 '.eject'
  3043. =============
  3044. Force a page break at this point, when generating assembly listings.
  3045. 
  3046. File: as.info, Node: Else, Next: Elseif, Prev: Eject, Up: Pseudo Ops
  3047. 7.21 '.else'
  3048. ============
  3049. '.else' is part of the 'as' support for conditional assembly; see *note
  3050. '.if': If. It marks the beginning of a section of code to be assembled
  3051. if the condition for the preceding '.if' was false.
  3052. 
  3053. File: as.info, Node: Elseif, Next: End, Prev: Else, Up: Pseudo Ops
  3054. 7.22 '.elseif'
  3055. ==============
  3056. '.elseif' is part of the 'as' support for conditional assembly; see
  3057. *note '.if': If. It is shorthand for beginning a new '.if' block that
  3058. would otherwise fill the entire '.else' section.
  3059. 
  3060. File: as.info, Node: End, Next: Endef, Prev: Elseif, Up: Pseudo Ops
  3061. 7.23 '.end'
  3062. ===========
  3063. '.end' marks the end of the assembly file. 'as' does not process
  3064. anything in the file past the '.end' directive.
  3065. 
  3066. File: as.info, Node: Endef, Next: Endfunc, Prev: End, Up: Pseudo Ops
  3067. 7.24 '.endef'
  3068. =============
  3069. This directive flags the end of a symbol definition begun with '.def'.
  3070. 
  3071. File: as.info, Node: Endfunc, Next: Endif, Prev: Endef, Up: Pseudo Ops
  3072. 7.25 '.endfunc'
  3073. ===============
  3074. '.endfunc' marks the end of a function specified with '.func'.
  3075. 
  3076. File: as.info, Node: Endif, Next: Equ, Prev: Endfunc, Up: Pseudo Ops
  3077. 7.26 '.endif'
  3078. =============
  3079. '.endif' is part of the 'as' support for conditional assembly; it marks
  3080. the end of a block of code that is only assembled conditionally. *Note
  3081. '.if': If.
  3082. 
  3083. File: as.info, Node: Equ, Next: Equiv, Prev: Endif, Up: Pseudo Ops
  3084. 7.27 '.equ SYMBOL, EXPRESSION'
  3085. ==============================
  3086. This directive sets the value of SYMBOL to EXPRESSION. It is synonymous
  3087. with '.set'; see *note '.set': Set.
  3088. The syntax for 'equ' on the HPPA is 'SYMBOL .equ EXPRESSION'.
  3089. The syntax for 'equ' on the Z80 is 'SYMBOL equ EXPRESSION'. On the
  3090. Z80 it is an error if SYMBOL is already defined, but the symbol is not
  3091. protected from later redefinition. Compare *note Equiv::.
  3092. 
  3093. File: as.info, Node: Equiv, Next: Eqv, Prev: Equ, Up: Pseudo Ops
  3094. 7.28 '.equiv SYMBOL, EXPRESSION'
  3095. ================================
  3096. The '.equiv' directive is like '.equ' and '.set', except that the
  3097. assembler will signal an error if SYMBOL is already defined. Note a
  3098. symbol which has been referenced but not actually defined is considered
  3099. to be undefined.
  3100. Except for the contents of the error message, this is roughly
  3101. equivalent to
  3102. .ifdef SYM
  3103. .err
  3104. .endif
  3105. .equ SYM,VAL
  3106. plus it protects the symbol from later redefinition.
  3107. 
  3108. File: as.info, Node: Eqv, Next: Err, Prev: Equiv, Up: Pseudo Ops
  3109. 7.29 '.eqv SYMBOL, EXPRESSION'
  3110. ==============================
  3111. The '.eqv' directive is like '.equiv', but no attempt is made to
  3112. evaluate the expression or any part of it immediately. Instead each
  3113. time the resulting symbol is used in an expression, a snapshot of its
  3114. current value is taken.
  3115. 
  3116. File: as.info, Node: Err, Next: Error, Prev: Eqv, Up: Pseudo Ops
  3117. 7.30 '.err'
  3118. ===========
  3119. If 'as' assembles a '.err' directive, it will print an error message
  3120. and, unless the '-Z' option was used, it will not generate an object
  3121. file. This can be used to signal an error in conditionally compiled
  3122. code.
  3123. 
  3124. File: as.info, Node: Error, Next: Exitm, Prev: Err, Up: Pseudo Ops
  3125. 7.31 '.error "STRING"'
  3126. ======================
  3127. Similarly to '.err', this directive emits an error, but you can specify
  3128. a string that will be emitted as the error message. If you don't
  3129. specify the message, it defaults to '".error directive invoked in source
  3130. file"'. *Note Error and Warning Messages: Errors.
  3131. .error "This code has not been assembled and tested."
  3132. 
  3133. File: as.info, Node: Exitm, Next: Extern, Prev: Error, Up: Pseudo Ops
  3134. 7.32 '.exitm'
  3135. =============
  3136. Exit early from the current macro definition. *Note Macro::.
  3137. 
  3138. File: as.info, Node: Extern, Next: Fail, Prev: Exitm, Up: Pseudo Ops
  3139. 7.33 '.extern'
  3140. ==============
  3141. '.extern' is accepted in the source program--for compatibility with
  3142. other assemblers--but it is ignored. 'as' treats all undefined symbols
  3143. as external.
  3144. 
  3145. File: as.info, Node: Fail, Next: File, Prev: Extern, Up: Pseudo Ops
  3146. 7.34 '.fail EXPRESSION'
  3147. =======================
  3148. Generates an error or a warning. If the value of the EXPRESSION is 500
  3149. or more, 'as' will print a warning message. If the value is less than
  3150. 500, 'as' will print an error message. The message will include the
  3151. value of EXPRESSION. This can occasionally be useful inside complex
  3152. nested macros or conditional assembly.
  3153. 
  3154. File: as.info, Node: File, Next: Fill, Prev: Fail, Up: Pseudo Ops
  3155. 7.35 '.file'
  3156. ============
  3157. There are two different versions of the '.file' directive. Targets that
  3158. support DWARF2 line number information use the DWARF2 version of
  3159. '.file'. Other targets use the default version.
  3160. Default Version
  3161. ---------------
  3162. This version of the '.file' directive tells 'as' that we are about to
  3163. start a new logical file. The syntax is:
  3164. .file STRING
  3165. STRING is the new file name. In general, the filename is recognized
  3166. whether or not it is surrounded by quotes '"'; but if you wish to
  3167. specify an empty file name, you must give the quotes-'""'. This
  3168. statement may go away in future: it is only recognized to be compatible
  3169. with old 'as' programs.
  3170. DWARF2 Version
  3171. --------------
  3172. When emitting DWARF2 line number information, '.file' assigns filenames
  3173. to the '.debug_line' file name table. The syntax is:
  3174. .file FILENO FILENAME
  3175. The FILENO operand should be a unique positive integer to use as the
  3176. index of the entry in the table. The FILENAME operand is a C string
  3177. literal.
  3178. The detail of filename indices is exposed to the user because the
  3179. filename table is shared with the '.debug_info' section of the DWARF2
  3180. debugging information, and thus the user must know the exact indices
  3181. that table entries will have.
  3182. 
  3183. File: as.info, Node: Fill, Next: Float, Prev: File, Up: Pseudo Ops
  3184. 7.36 '.fill REPEAT , SIZE , VALUE'
  3185. ==================================
  3186. REPEAT, SIZE and VALUE are absolute expressions. This emits REPEAT
  3187. copies of SIZE bytes. REPEAT may be zero or more. SIZE may be zero or
  3188. more, but if it is more than 8, then it is deemed to have the value 8,
  3189. compatible with other people's assemblers. The contents of each REPEAT
  3190. bytes is taken from an 8-byte number. The highest order 4 bytes are
  3191. zero. The lowest order 4 bytes are VALUE rendered in the byte-order of
  3192. an integer on the computer 'as' is assembling for. Each SIZE bytes in a
  3193. repetition is taken from the lowest order SIZE bytes of this number.
  3194. Again, this bizarre behavior is compatible with other people's
  3195. assemblers.
  3196. SIZE and VALUE are optional. If the second comma and VALUE are
  3197. absent, VALUE is assumed zero. If the first comma and following tokens
  3198. are absent, SIZE is assumed to be 1.
  3199. 
  3200. File: as.info, Node: Float, Next: Func, Prev: Fill, Up: Pseudo Ops
  3201. 7.37 '.float FLONUMS'
  3202. =====================
  3203. This directive assembles zero or more flonums, separated by commas. It
  3204. has the same effect as '.single'. The exact kind of floating point
  3205. numbers emitted depends on how 'as' is configured. *Note Machine
  3206. Dependencies::.
  3207. 
  3208. File: as.info, Node: Func, Next: Global, Prev: Float, Up: Pseudo Ops
  3209. 7.38 '.func NAME[,LABEL]'
  3210. =========================
  3211. '.func' emits debugging information to denote function NAME, and is
  3212. ignored unless the file is assembled with debugging enabled. Only
  3213. '--gstabs[+]' is currently supported. LABEL is the entry point of the
  3214. function and if omitted NAME prepended with the 'leading char' is used.
  3215. 'leading char' is usually '_' or nothing, depending on the target. All
  3216. functions are currently defined to have 'void' return type. The
  3217. function must be terminated with '.endfunc'.
  3218. 
  3219. File: as.info, Node: Global, Next: Gnu_attribute, Prev: Func, Up: Pseudo Ops
  3220. 7.39 '.global SYMBOL', '.globl SYMBOL'
  3221. ======================================
  3222. '.global' makes the symbol visible to 'ld'. If you define SYMBOL in
  3223. your partial program, its value is made available to other partial
  3224. programs that are linked with it. Otherwise, SYMBOL takes its
  3225. attributes from a symbol of the same name from another file linked into
  3226. the same program.
  3227. Both spellings ('.globl' and '.global') are accepted, for
  3228. compatibility with other assemblers.
  3229. On the HPPA, '.global' is not always enough to make it accessible to
  3230. other partial programs. You may need the HPPA-only '.EXPORT' directive
  3231. as well. *Note HPPA Assembler Directives: HPPA Directives.
  3232. 
  3233. File: as.info, Node: Gnu_attribute, Next: Hidden, Prev: Global, Up: Pseudo Ops
  3234. 7.40 '.gnu_attribute TAG,VALUE'
  3235. ===============================
  3236. Record a GNU object attribute for this file. *Note Object Attributes::.
  3237. 
  3238. File: as.info, Node: Hidden, Next: hword, Prev: Gnu_attribute, Up: Pseudo Ops
  3239. 7.41 '.hidden NAMES'
  3240. ====================
  3241. This is one of the ELF visibility directives. The other two are
  3242. '.internal' (*note '.internal': Internal.) and '.protected' (*note
  3243. '.protected': Protected.).
  3244. This directive overrides the named symbols default visibility (which
  3245. is set by their binding: local, global or weak). The directive sets the
  3246. visibility to 'hidden' which means that the symbols are not visible to
  3247. other components. Such symbols are always considered to be 'protected'
  3248. as well.
  3249. 
  3250. File: as.info, Node: hword, Next: Ident, Prev: Hidden, Up: Pseudo Ops
  3251. 7.42 '.hword EXPRESSIONS'
  3252. =========================
  3253. This expects zero or more EXPRESSIONS, and emits a 16 bit number for
  3254. each.
  3255. This directive is a synonym for '.short'; depending on the target
  3256. architecture, it may also be a synonym for '.word'.
  3257. 
  3258. File: as.info, Node: Ident, Next: If, Prev: hword, Up: Pseudo Ops
  3259. 7.43 '.ident'
  3260. =============
  3261. This directive is used by some assemblers to place tags in object files.
  3262. The behavior of this directive varies depending on the target. When
  3263. using the a.out object file format, 'as' simply accepts the directive
  3264. for source-file compatibility with existing assemblers, but does not
  3265. emit anything for it. When using COFF, comments are emitted to the
  3266. '.comment' or '.rdata' section, depending on the target. When using
  3267. ELF, comments are emitted to the '.comment' section.
  3268. 
  3269. File: as.info, Node: If, Next: Incbin, Prev: Ident, Up: Pseudo Ops
  3270. 7.44 '.if ABSOLUTE EXPRESSION'
  3271. ==============================
  3272. '.if' marks the beginning of a section of code which is only considered
  3273. part of the source program being assembled if the argument (which must
  3274. be an ABSOLUTE EXPRESSION) is non-zero. The end of the conditional
  3275. section of code must be marked by '.endif' (*note '.endif': Endif.);
  3276. optionally, you may include code for the alternative condition, flagged
  3277. by '.else' (*note '.else': Else.). If you have several conditions to
  3278. check, '.elseif' may be used to avoid nesting blocks if/else within each
  3279. subsequent '.else' block.
  3280. The following variants of '.if' are also supported:
  3281. '.ifdef SYMBOL'
  3282. Assembles the following section of code if the specified SYMBOL has
  3283. been defined. Note a symbol which has been referenced but not yet
  3284. defined is considered to be undefined.
  3285. '.ifb TEXT'
  3286. Assembles the following section of code if the operand is blank
  3287. (empty).
  3288. '.ifc STRING1,STRING2'
  3289. Assembles the following section of code if the two strings are the
  3290. same. The strings may be optionally quoted with single quotes. If
  3291. they are not quoted, the first string stops at the first comma, and
  3292. the second string stops at the end of the line. Strings which
  3293. contain whitespace should be quoted. The string comparison is case
  3294. sensitive.
  3295. '.ifeq ABSOLUTE EXPRESSION'
  3296. Assembles the following section of code if the argument is zero.
  3297. '.ifeqs STRING1,STRING2'
  3298. Another form of '.ifc'. The strings must be quoted using double
  3299. quotes.
  3300. '.ifge ABSOLUTE EXPRESSION'
  3301. Assembles the following section of code if the argument is greater
  3302. than or equal to zero.
  3303. '.ifgt ABSOLUTE EXPRESSION'
  3304. Assembles the following section of code if the argument is greater
  3305. than zero.
  3306. '.ifle ABSOLUTE EXPRESSION'
  3307. Assembles the following section of code if the argument is less
  3308. than or equal to zero.
  3309. '.iflt ABSOLUTE EXPRESSION'
  3310. Assembles the following section of code if the argument is less
  3311. than zero.
  3312. '.ifnb TEXT'
  3313. Like '.ifb', but the sense of the test is reversed: this assembles
  3314. the following section of code if the operand is non-blank
  3315. (non-empty).
  3316. '.ifnc STRING1,STRING2.'
  3317. Like '.ifc', but the sense of the test is reversed: this assembles
  3318. the following section of code if the two strings are not the same.
  3319. '.ifndef SYMBOL'
  3320. '.ifnotdef SYMBOL'
  3321. Assembles the following section of code if the specified SYMBOL has
  3322. not been defined. Both spelling variants are equivalent. Note a
  3323. symbol which has been referenced but not yet defined is considered
  3324. to be undefined.
  3325. '.ifne ABSOLUTE EXPRESSION'
  3326. Assembles the following section of code if the argument is not
  3327. equal to zero (in other words, this is equivalent to '.if').
  3328. '.ifnes STRING1,STRING2'
  3329. Like '.ifeqs', but the sense of the test is reversed: this
  3330. assembles the following section of code if the two strings are not
  3331. the same.
  3332. 
  3333. File: as.info, Node: Incbin, Next: Include, Prev: If, Up: Pseudo Ops
  3334. 7.45 '.incbin "FILE"[,SKIP[,COUNT]]'
  3335. ====================================
  3336. The 'incbin' directive includes FILE verbatim at the current location.
  3337. You can control the search paths used with the '-I' command-line option
  3338. (*note Command-Line Options: Invoking.). Quotation marks are required
  3339. around FILE.
  3340. The SKIP argument skips a number of bytes from the start of the FILE.
  3341. The COUNT argument indicates the maximum number of bytes to read. Note
  3342. that the data is not aligned in any way, so it is the user's
  3343. responsibility to make sure that proper alignment is provided both
  3344. before and after the 'incbin' directive.
  3345. 
  3346. File: as.info, Node: Include, Next: Int, Prev: Incbin, Up: Pseudo Ops
  3347. 7.46 '.include "FILE"'
  3348. ======================
  3349. This directive provides a way to include supporting files at specified
  3350. points in your source program. The code from FILE is assembled as if it
  3351. followed the point of the '.include'; when the end of the included file
  3352. is reached, assembly of the original file continues. You can control
  3353. the search paths used with the '-I' command-line option (*note
  3354. Command-Line Options: Invoking.). Quotation marks are required around
  3355. FILE.
  3356. 
  3357. File: as.info, Node: Int, Next: Internal, Prev: Include, Up: Pseudo Ops
  3358. 7.47 '.int EXPRESSIONS'
  3359. =======================
  3360. Expect zero or more EXPRESSIONS, of any section, separated by commas.
  3361. For each expression, emit a number that, at run time, is the value of
  3362. that expression. The byte order and bit size of the number depends on
  3363. what kind of target the assembly is for.
  3364. 
  3365. File: as.info, Node: Internal, Next: Irp, Prev: Int, Up: Pseudo Ops
  3366. 7.48 '.internal NAMES'
  3367. ======================
  3368. This is one of the ELF visibility directives. The other two are
  3369. '.hidden' (*note '.hidden': Hidden.) and '.protected' (*note
  3370. '.protected': Protected.).
  3371. This directive overrides the named symbols default visibility (which
  3372. is set by their binding: local, global or weak). The directive sets the
  3373. visibility to 'internal' which means that the symbols are considered to
  3374. be 'hidden' (i.e., not visible to other components), and that some
  3375. extra, processor specific processing must also be performed upon the
  3376. symbols as well.
  3377. 
  3378. File: as.info, Node: Irp, Next: Irpc, Prev: Internal, Up: Pseudo Ops
  3379. 7.49 '.irp SYMBOL,VALUES'...
  3380. ============================
  3381. Evaluate a sequence of statements assigning different values to SYMBOL.
  3382. The sequence of statements starts at the '.irp' directive, and is
  3383. terminated by an '.endr' directive. For each VALUE, SYMBOL is set to
  3384. VALUE, and the sequence of statements is assembled. If no VALUE is
  3385. listed, the sequence of statements is assembled once, with SYMBOL set to
  3386. the null string. To refer to SYMBOL within the sequence of statements,
  3387. use \SYMBOL.
  3388. For example, assembling
  3389. .irp param,1,2,3
  3390. move d\param,sp@-
  3391. .endr
  3392. is equivalent to assembling
  3393. move d1,sp@-
  3394. move d2,sp@-
  3395. move d3,sp@-
  3396. For some caveats with the spelling of SYMBOL, see also *note Macro::.
  3397. 
  3398. File: as.info, Node: Irpc, Next: Lcomm, Prev: Irp, Up: Pseudo Ops
  3399. 7.50 '.irpc SYMBOL,VALUES'...
  3400. =============================
  3401. Evaluate a sequence of statements assigning different values to SYMBOL.
  3402. The sequence of statements starts at the '.irpc' directive, and is
  3403. terminated by an '.endr' directive. For each character in VALUE, SYMBOL
  3404. is set to the character, and the sequence of statements is assembled.
  3405. If no VALUE is listed, the sequence of statements is assembled once,
  3406. with SYMBOL set to the null string. To refer to SYMBOL within the
  3407. sequence of statements, use \SYMBOL.
  3408. For example, assembling
  3409. .irpc param,123
  3410. move d\param,sp@-
  3411. .endr
  3412. is equivalent to assembling
  3413. move d1,sp@-
  3414. move d2,sp@-
  3415. move d3,sp@-
  3416. For some caveats with the spelling of SYMBOL, see also the discussion
  3417. at *Note Macro::.
  3418. 
  3419. File: as.info, Node: Lcomm, Next: Lflags, Prev: Irpc, Up: Pseudo Ops
  3420. 7.51 '.lcomm SYMBOL , LENGTH'
  3421. =============================
  3422. Reserve LENGTH (an absolute expression) bytes for a local common denoted
  3423. by SYMBOL. The section and value of SYMBOL are those of the new local
  3424. common. The addresses are allocated in the bss section, so that at
  3425. run-time the bytes start off zeroed. SYMBOL is not declared global
  3426. (*note '.global': Global.), so is normally not visible to 'ld'.
  3427. Some targets permit a third argument to be used with '.lcomm'. This
  3428. argument specifies the desired alignment of the symbol in the bss
  3429. section.
  3430. The syntax for '.lcomm' differs slightly on the HPPA. The syntax is
  3431. 'SYMBOL .lcomm, LENGTH'; SYMBOL is optional.
  3432. 
  3433. File: as.info, Node: Lflags, Next: Line, Prev: Lcomm, Up: Pseudo Ops
  3434. 7.52 '.lflags'
  3435. ==============
  3436. 'as' accepts this directive, for compatibility with other assemblers,
  3437. but ignores it.
  3438. 
  3439. File: as.info, Node: Line, Next: Linkonce, Prev: Lflags, Up: Pseudo Ops
  3440. 7.53 '.line LINE-NUMBER'
  3441. ========================
  3442. Change the logical line number. LINE-NUMBER must be an absolute
  3443. expression. The next line has that logical line number. Therefore any
  3444. other statements on the current line (after a statement separator
  3445. character) are reported as on logical line number LINE-NUMBER - 1. One
  3446. day 'as' will no longer support this directive: it is recognized only
  3447. for compatibility with existing assembler programs.
  3448. Even though this is a directive associated with the 'a.out' or
  3449. 'b.out' object-code formats, 'as' still recognizes it when producing
  3450. COFF output, and treats '.line' as though it were the COFF '.ln' _if_ it
  3451. is found outside a '.def'/'.endef' pair.
  3452. Inside a '.def', '.line' is, instead, one of the directives used by
  3453. compilers to generate auxiliary symbol information for debugging.
  3454. 
  3455. File: as.info, Node: Linkonce, Next: List, Prev: Line, Up: Pseudo Ops
  3456. 7.54 '.linkonce [TYPE]'
  3457. =======================
  3458. Mark the current section so that the linker only includes a single copy
  3459. of it. This may be used to include the same section in several
  3460. different object files, but ensure that the linker will only include it
  3461. once in the final output file. The '.linkonce' pseudo-op must be used
  3462. for each instance of the section. Duplicate sections are detected based
  3463. on the section name, so it should be unique.
  3464. This directive is only supported by a few object file formats; as of
  3465. this writing, the only object file format which supports it is the
  3466. Portable Executable format used on Windows NT.
  3467. The TYPE argument is optional. If specified, it must be one of the
  3468. following strings. For example:
  3469. .linkonce same_size
  3470. Not all types may be supported on all object file formats.
  3471. 'discard'
  3472. Silently discard duplicate sections. This is the default.
  3473. 'one_only'
  3474. Warn if there are duplicate sections, but still keep only one copy.
  3475. 'same_size'
  3476. Warn if any of the duplicates have different sizes.
  3477. 'same_contents'
  3478. Warn if any of the duplicates do not have exactly the same
  3479. contents.
  3480. 
  3481. File: as.info, Node: List, Next: Ln, Prev: Linkonce, Up: Pseudo Ops
  3482. 7.55 '.list'
  3483. ============
  3484. Control (in conjunction with the '.nolist' directive) whether or not
  3485. assembly listings are generated. These two directives maintain an
  3486. internal counter (which is zero initially). '.list' increments the
  3487. counter, and '.nolist' decrements it. Assembly listings are generated
  3488. whenever the counter is greater than zero.
  3489. By default, listings are disabled. When you enable them (with the
  3490. '-a' command-line option; *note Command-Line Options: Invoking.), the
  3491. initial value of the listing counter is one.
  3492. 
  3493. File: as.info, Node: Ln, Next: Loc, Prev: List, Up: Pseudo Ops
  3494. 7.56 '.ln LINE-NUMBER'
  3495. ======================
  3496. '.ln' is a synonym for '.line'.
  3497. 
  3498. File: as.info, Node: Loc, Next: Loc_mark_labels, Prev: Ln, Up: Pseudo Ops
  3499. 7.57 '.loc FILENO LINENO [COLUMN] [OPTIONS]'
  3500. ============================================
  3501. When emitting DWARF2 line number information, the '.loc' directive will
  3502. add a row to the '.debug_line' line number matrix corresponding to the
  3503. immediately following assembly instruction. The FILENO, LINENO, and
  3504. optional COLUMN arguments will be applied to the '.debug_line' state
  3505. machine before the row is added.
  3506. The OPTIONS are a sequence of the following tokens in any order:
  3507. 'basic_block'
  3508. This option will set the 'basic_block' register in the
  3509. '.debug_line' state machine to 'true'.
  3510. 'prologue_end'
  3511. This option will set the 'prologue_end' register in the
  3512. '.debug_line' state machine to 'true'.
  3513. 'epilogue_begin'
  3514. This option will set the 'epilogue_begin' register in the
  3515. '.debug_line' state machine to 'true'.
  3516. 'is_stmt VALUE'
  3517. This option will set the 'is_stmt' register in the '.debug_line'
  3518. state machine to 'value', which must be either 0 or 1.
  3519. 'isa VALUE'
  3520. This directive will set the 'isa' register in the '.debug_line'
  3521. state machine to VALUE, which must be an unsigned integer.
  3522. 'discriminator VALUE'
  3523. This directive will set the 'discriminator' register in the
  3524. '.debug_line' state machine to VALUE, which must be an unsigned
  3525. integer.
  3526. 'view VALUE'
  3527. This option causes a row to be added to '.debug_line' in reference
  3528. to the current address (which might not be the same as that of the
  3529. following assembly instruction), and to associate VALUE with the
  3530. 'view' register in the '.debug_line' state machine. If VALUE is a
  3531. label, both the 'view' register and the label are set to the number
  3532. of prior '.loc' directives at the same program location. If VALUE
  3533. is the literal '0', the 'view' register is set to zero, and the
  3534. assembler asserts that there aren't any prior '.loc' directives at
  3535. the same program location. If VALUE is the literal '-0', the
  3536. assembler arrange for the 'view' register to be reset in this row,
  3537. even if there are prior '.loc' directives at the same program
  3538. location.
  3539. 
  3540. File: as.info, Node: Loc_mark_labels, Next: Local, Prev: Loc, Up: Pseudo Ops
  3541. 7.58 '.loc_mark_labels ENABLE'
  3542. ==============================
  3543. When emitting DWARF2 line number information, the '.loc_mark_labels'
  3544. directive makes the assembler emit an entry to the '.debug_line' line
  3545. number matrix with the 'basic_block' register in the state machine set
  3546. whenever a code label is seen. The ENABLE argument should be either 1
  3547. or 0, to enable or disable this function respectively.
  3548. 
  3549. File: as.info, Node: Local, Next: Long, Prev: Loc_mark_labels, Up: Pseudo Ops
  3550. 7.59 '.local NAMES'
  3551. ===================
  3552. This directive, which is available for ELF targets, marks each symbol in
  3553. the comma-separated list of 'names' as a local symbol so that it will
  3554. not be externally visible. If the symbols do not already exist, they
  3555. will be created.
  3556. For targets where the '.lcomm' directive (*note Lcomm::) does not
  3557. accept an alignment argument, which is the case for most ELF targets,
  3558. the '.local' directive can be used in combination with '.comm' (*note
  3559. Comm::) to define aligned local common data.
  3560. 
  3561. File: as.info, Node: Long, Next: Macro, Prev: Local, Up: Pseudo Ops
  3562. 7.60 '.long EXPRESSIONS'
  3563. ========================
  3564. '.long' is the same as '.int'. *Note '.int': Int.
  3565. 
  3566. File: as.info, Node: Macro, Next: MRI, Prev: Long, Up: Pseudo Ops
  3567. 7.61 '.macro'
  3568. =============
  3569. The commands '.macro' and '.endm' allow you to define macros that
  3570. generate assembly output. For example, this definition specifies a
  3571. macro 'sum' that puts a sequence of numbers into memory:
  3572. .macro sum from=0, to=5
  3573. .long \from
  3574. .if \to-\from
  3575. sum "(\from+1)",\to
  3576. .endif
  3577. .endm
  3578. With that definition, 'SUM 0,5' is equivalent to this assembly input:
  3579. .long 0
  3580. .long 1
  3581. .long 2
  3582. .long 3
  3583. .long 4
  3584. .long 5
  3585. '.macro MACNAME'
  3586. '.macro MACNAME MACARGS ...'
  3587. Begin the definition of a macro called MACNAME. If your macro
  3588. definition requires arguments, specify their names after the macro
  3589. name, separated by commas or spaces. You can qualify the macro
  3590. argument to indicate whether all invocations must specify a
  3591. non-blank value (through ':'req''), or whether it takes all of the
  3592. remaining arguments (through ':'vararg''). You can supply a
  3593. default value for any macro argument by following the name with
  3594. '=DEFLT'. You cannot define two macros with the same MACNAME
  3595. unless it has been subject to the '.purgem' directive (*note
  3596. Purgem::) between the two definitions. For example, these are all
  3597. valid '.macro' statements:
  3598. '.macro comm'
  3599. Begin the definition of a macro called 'comm', which takes no
  3600. arguments.
  3601. '.macro plus1 p, p1'
  3602. '.macro plus1 p p1'
  3603. Either statement begins the definition of a macro called
  3604. 'plus1', which takes two arguments; within the macro
  3605. definition, write '\p' or '\p1' to evaluate the arguments.
  3606. '.macro reserve_str p1=0 p2'
  3607. Begin the definition of a macro called 'reserve_str', with two
  3608. arguments. The first argument has a default value, but not
  3609. the second. After the definition is complete, you can call
  3610. the macro either as 'reserve_str A,B' (with '\p1' evaluating
  3611. to A and '\p2' evaluating to B), or as 'reserve_str ,B' (with
  3612. '\p1' evaluating as the default, in this case '0', and '\p2'
  3613. evaluating to B).
  3614. '.macro m p1:req, p2=0, p3:vararg'
  3615. Begin the definition of a macro called 'm', with at least
  3616. three arguments. The first argument must always have a value
  3617. specified, but not the second, which instead has a default
  3618. value. The third formal will get assigned all remaining
  3619. arguments specified at invocation time.
  3620. When you call a macro, you can specify the argument values
  3621. either by position, or by keyword. For example, 'sum 9,17' is
  3622. equivalent to 'sum to=17, from=9'.
  3623. Note that since each of the MACARGS can be an identifier exactly as
  3624. any other one permitted by the target architecture, there may be
  3625. occasional problems if the target hand-crafts special meanings to
  3626. certain characters when they occur in a special position. For
  3627. example, if the colon (':') is generally permitted to be part of a
  3628. symbol name, but the architecture specific code special-cases it
  3629. when occurring as the final character of a symbol (to denote a
  3630. label), then the macro parameter replacement code will have no way
  3631. of knowing that and consider the whole construct (including the
  3632. colon) an identifier, and check only this identifier for being the
  3633. subject to parameter substitution. So for example this macro
  3634. definition:
  3635. .macro label l
  3636. \l:
  3637. .endm
  3638. might not work as expected. Invoking 'label foo' might not create
  3639. a label called 'foo' but instead just insert the text '\l:' into
  3640. the assembler source, probably generating an error about an
  3641. unrecognised identifier.
  3642. Similarly problems might occur with the period character ('.')
  3643. which is often allowed inside opcode names (and hence identifier
  3644. names). So for example constructing a macro to build an opcode
  3645. from a base name and a length specifier like this:
  3646. .macro opcode base length
  3647. \base.\length
  3648. .endm
  3649. and invoking it as 'opcode store l' will not create a 'store.l'
  3650. instruction but instead generate some kind of error as the
  3651. assembler tries to interpret the text '\base.\length'.
  3652. There are several possible ways around this problem:
  3653. 'Insert white space'
  3654. If it is possible to use white space characters then this is
  3655. the simplest solution. eg:
  3656. .macro label l
  3657. \l :
  3658. .endm
  3659. 'Use '\()''
  3660. The string '\()' can be used to separate the end of a macro
  3661. argument from the following text. eg:
  3662. .macro opcode base length
  3663. \base\().\length
  3664. .endm
  3665. 'Use the alternate macro syntax mode'
  3666. In the alternative macro syntax mode the ampersand character
  3667. ('&') can be used as a separator. eg:
  3668. .altmacro
  3669. .macro label l
  3670. l&:
  3671. .endm
  3672. Note: this problem of correctly identifying string parameters to
  3673. pseudo ops also applies to the identifiers used in '.irp' (*note
  3674. Irp::) and '.irpc' (*note Irpc::) as well.
  3675. '.endm'
  3676. Mark the end of a macro definition.
  3677. '.exitm'
  3678. Exit early from the current macro definition.
  3679. '\@'
  3680. 'as' maintains a counter of how many macros it has executed in this
  3681. pseudo-variable; you can copy that number to your output with '\@',
  3682. but _only within a macro definition_.
  3683. 'LOCAL NAME [ , ... ]'
  3684. _Warning: 'LOCAL' is only available if you select "alternate macro
  3685. syntax" with '--alternate' or '.altmacro'._ *Note '.altmacro':
  3686. Altmacro.
  3687. 
  3688. File: as.info, Node: MRI, Next: Noaltmacro, Prev: Macro, Up: Pseudo Ops
  3689. 7.62 '.mri VAL'
  3690. ===============
  3691. If VAL is non-zero, this tells 'as' to enter MRI mode. If VAL is zero,
  3692. this tells 'as' to exit MRI mode. This change affects code assembled
  3693. until the next '.mri' directive, or until the end of the file. *Note
  3694. MRI mode: M.
  3695. 
  3696. File: as.info, Node: Noaltmacro, Next: Nolist, Prev: MRI, Up: Pseudo Ops
  3697. 7.63 '.noaltmacro'
  3698. ==================
  3699. Disable alternate macro mode. *Note Altmacro::.
  3700. 
  3701. File: as.info, Node: Nolist, Next: Nops, Prev: Noaltmacro, Up: Pseudo Ops
  3702. 7.64 '.nolist'
  3703. ==============
  3704. Control (in conjunction with the '.list' directive) whether or not
  3705. assembly listings are generated. These two directives maintain an
  3706. internal counter (which is zero initially). '.list' increments the
  3707. counter, and '.nolist' decrements it. Assembly listings are generated
  3708. whenever the counter is greater than zero.
  3709. 
  3710. File: as.info, Node: Nops, Next: Octa, Prev: Nolist, Up: Pseudo Ops
  3711. 7.65 '.nops SIZE[, CONTROL]'
  3712. ============================
  3713. This directive emits SIZE bytes filled with no-op instructions. SIZE is
  3714. absolute expression, which must be a positve value. CONTROL controls
  3715. how no-op instructions should be generated. If the comma and CONTROL
  3716. are omitted, CONTROL is assumed to be zero.
  3717. Note: For Intel 80386 and AMD x86-64 targets, CONTROL specifies the
  3718. size limit of a no-op instruction. The valid values of CONTROL are
  3719. between 0 and 4 in 16-bit mode, between 0 and 7 when tuning for older
  3720. processors in 32-bit mode, between 0 and 11 in 64-bit mode or when
  3721. tuning for newer processors in 32-bit mode. When 0 is used, the no-op
  3722. instruction size limit is set to the maximum supported size.
  3723. 
  3724. File: as.info, Node: Octa, Next: Offset, Prev: Nops, Up: Pseudo Ops
  3725. 7.66 '.octa BIGNUMS'
  3726. ====================
  3727. This directive expects zero or more bignums, separated by commas. For
  3728. each bignum, it emits a 16-byte integer.
  3729. The term "octa" comes from contexts in which a "word" is two bytes;
  3730. hence _octa_-word for 16 bytes.
  3731. 
  3732. File: as.info, Node: Offset, Next: Org, Prev: Octa, Up: Pseudo Ops
  3733. 7.67 '.offset LOC'
  3734. ==================
  3735. Set the location counter to LOC in the absolute section. LOC must be an
  3736. absolute expression. This directive may be useful for defining symbols
  3737. with absolute values. Do not confuse it with the '.org' directive.
  3738. 
  3739. File: as.info, Node: Org, Next: P2align, Prev: Offset, Up: Pseudo Ops
  3740. 7.68 '.org NEW-LC , FILL'
  3741. =========================
  3742. Advance the location counter of the current section to NEW-LC. NEW-LC
  3743. is either an absolute expression or an expression with the same section
  3744. as the current subsection. That is, you can't use '.org' to cross
  3745. sections: if NEW-LC has the wrong section, the '.org' directive is
  3746. ignored. To be compatible with former assemblers, if the section of
  3747. NEW-LC is absolute, 'as' issues a warning, then pretends the section of
  3748. NEW-LC is the same as the current subsection.
  3749. '.org' may only increase the location counter, or leave it unchanged;
  3750. you cannot use '.org' to move the location counter backwards.
  3751. Because 'as' tries to assemble programs in one pass, NEW-LC may not
  3752. be undefined. If you really detest this restriction we eagerly await a
  3753. chance to share your improved assembler.
  3754. Beware that the origin is relative to the start of the section, not
  3755. to the start of the subsection. This is compatible with other people's
  3756. assemblers.
  3757. When the location counter (of the current subsection) is advanced,
  3758. the intervening bytes are filled with FILL which should be an absolute
  3759. expression. If the comma and FILL are omitted, FILL defaults to zero.
  3760. 
  3761. File: as.info, Node: P2align, Next: PopSection, Prev: Org, Up: Pseudo Ops
  3762. 7.69 '.p2align[wl] [ABS-EXPR[, ABS-EXPR[, ABS-EXPR]]]'
  3763. ======================================================
  3764. Pad the location counter (in the current subsection) to a particular
  3765. storage boundary. The first expression (which must be absolute) is the
  3766. number of low-order zero bits the location counter must have after
  3767. advancement. For example '.p2align 3' advances the location counter
  3768. until it is a multiple of 8. If the location counter is already a
  3769. multiple of 8, no change is needed. If the expression is omitted then a
  3770. default value of 0 is used, effectively disabling alignment
  3771. requirements.
  3772. The second expression (also absolute) gives the fill value to be
  3773. stored in the padding bytes. It (and the comma) may be omitted. If it
  3774. is omitted, the padding bytes are normally zero. However, on most
  3775. systems, if the section is marked as containing code and the fill value
  3776. is omitted, the space is filled with no-op instructions.
  3777. The third expression is also absolute, and is also optional. If it
  3778. is present, it is the maximum number of bytes that should be skipped by
  3779. this alignment directive. If doing the alignment would require skipping
  3780. more bytes than the specified maximum, then the alignment is not done at
  3781. all. You can omit the fill value (the second argument) entirely by
  3782. simply using two commas after the required alignment; this can be useful
  3783. if you want the alignment to be filled with no-op instructions when
  3784. appropriate.
  3785. The '.p2alignw' and '.p2alignl' directives are variants of the
  3786. '.p2align' directive. The '.p2alignw' directive treats the fill pattern
  3787. as a two byte word value. The '.p2alignl' directives treats the fill
  3788. pattern as a four byte longword value. For example, '.p2alignw
  3789. 2,0x368d' will align to a multiple of 4. If it skips two bytes, they
  3790. will be filled in with the value 0x368d (the exact placement of the
  3791. bytes depends upon the endianness of the processor). If it skips 1 or 3
  3792. bytes, the fill value is undefined.
  3793. 
  3794. File: as.info, Node: PopSection, Next: Previous, Prev: P2align, Up: Pseudo Ops
  3795. 7.70 '.popsection'
  3796. ==================
  3797. This is one of the ELF section stack manipulation directives. The
  3798. others are '.section' (*note Section::), '.subsection' (*note
  3799. SubSection::), '.pushsection' (*note PushSection::), and '.previous'
  3800. (*note Previous::).
  3801. This directive replaces the current section (and subsection) with the
  3802. top section (and subsection) on the section stack. This section is
  3803. popped off the stack.
  3804. 
  3805. File: as.info, Node: Previous, Next: Print, Prev: PopSection, Up: Pseudo Ops
  3806. 7.71 '.previous'
  3807. ================
  3808. This is one of the ELF section stack manipulation directives. The
  3809. others are '.section' (*note Section::), '.subsection' (*note
  3810. SubSection::), '.pushsection' (*note PushSection::), and '.popsection'
  3811. (*note PopSection::).
  3812. This directive swaps the current section (and subsection) with most
  3813. recently referenced section/subsection pair prior to this one. Multiple
  3814. '.previous' directives in a row will flip between two sections (and
  3815. their subsections). For example:
  3816. .section A
  3817. .subsection 1
  3818. .word 0x1234
  3819. .subsection 2
  3820. .word 0x5678
  3821. .previous
  3822. .word 0x9abc
  3823. Will place 0x1234 and 0x9abc into subsection 1 and 0x5678 into
  3824. subsection 2 of section A. Whilst:
  3825. .section A
  3826. .subsection 1
  3827. # Now in section A subsection 1
  3828. .word 0x1234
  3829. .section B
  3830. .subsection 0
  3831. # Now in section B subsection 0
  3832. .word 0x5678
  3833. .subsection 1
  3834. # Now in section B subsection 1
  3835. .word 0x9abc
  3836. .previous
  3837. # Now in section B subsection 0
  3838. .word 0xdef0
  3839. Will place 0x1234 into section A, 0x5678 and 0xdef0 into subsection 0
  3840. of section B and 0x9abc into subsection 1 of section B.
  3841. In terms of the section stack, this directive swaps the current
  3842. section with the top section on the section stack.
  3843. 
  3844. File: as.info, Node: Print, Next: Protected, Prev: Previous, Up: Pseudo Ops
  3845. 7.72 '.print STRING'
  3846. ====================
  3847. 'as' will print STRING on the standard output during assembly. You must
  3848. put STRING in double quotes.
  3849. 
  3850. File: as.info, Node: Protected, Next: Psize, Prev: Print, Up: Pseudo Ops
  3851. 7.73 '.protected NAMES'
  3852. =======================
  3853. This is one of the ELF visibility directives. The other two are
  3854. '.hidden' (*note Hidden::) and '.internal' (*note Internal::).
  3855. This directive overrides the named symbols default visibility (which
  3856. is set by their binding: local, global or weak). The directive sets the
  3857. visibility to 'protected' which means that any references to the symbols
  3858. from within the components that defines them must be resolved to the
  3859. definition in that component, even if a definition in another component
  3860. would normally preempt this.
  3861. 
  3862. File: as.info, Node: Psize, Next: Purgem, Prev: Protected, Up: Pseudo Ops
  3863. 7.74 '.psize LINES , COLUMNS'
  3864. =============================
  3865. Use this directive to declare the number of lines--and, optionally, the
  3866. number of columns--to use for each page, when generating listings.
  3867. If you do not use '.psize', listings use a default line-count of 60.
  3868. You may omit the comma and COLUMNS specification; the default width is
  3869. 200 columns.
  3870. 'as' generates formfeeds whenever the specified number of lines is
  3871. exceeded (or whenever you explicitly request one, using '.eject').
  3872. If you specify LINES as '0', no formfeeds are generated save those
  3873. explicitly specified with '.eject'.
  3874. 
  3875. File: as.info, Node: Purgem, Next: PushSection, Prev: Psize, Up: Pseudo Ops
  3876. 7.75 '.purgem NAME'
  3877. ===================
  3878. Undefine the macro NAME, so that later uses of the string will not be
  3879. expanded. *Note Macro::.
  3880. 
  3881. File: as.info, Node: PushSection, Next: Quad, Prev: Purgem, Up: Pseudo Ops
  3882. 7.76 '.pushsection NAME [, SUBSECTION] [, "FLAGS"[, @TYPE[,ARGUMENTS]]]'
  3883. ========================================================================
  3884. This is one of the ELF section stack manipulation directives. The
  3885. others are '.section' (*note Section::), '.subsection' (*note
  3886. SubSection::), '.popsection' (*note PopSection::), and '.previous'
  3887. (*note Previous::).
  3888. This directive pushes the current section (and subsection) onto the
  3889. top of the section stack, and then replaces the current section and
  3890. subsection with 'name' and 'subsection'. The optional 'flags', 'type'
  3891. and 'arguments' are treated the same as in the '.section' (*note
  3892. Section::) directive.
  3893. 
  3894. File: as.info, Node: Quad, Next: Reloc, Prev: PushSection, Up: Pseudo Ops
  3895. 7.77 '.quad BIGNUMS'
  3896. ====================
  3897. '.quad' expects zero or more bignums, separated by commas. For each
  3898. bignum, it emits an 8-byte integer. If the bignum won't fit in 8 bytes,
  3899. it prints a warning message; and just takes the lowest order 8 bytes of
  3900. the bignum.
  3901. The term "quad" comes from contexts in which a "word" is two bytes;
  3902. hence _quad_-word for 8 bytes.
  3903. 
  3904. File: as.info, Node: Reloc, Next: Rept, Prev: Quad, Up: Pseudo Ops
  3905. 7.78 '.reloc OFFSET, RELOC_NAME[, EXPRESSION]'
  3906. ==============================================
  3907. Generate a relocation at OFFSET of type RELOC_NAME with value
  3908. EXPRESSION. If OFFSET is a number, the relocation is generated in the
  3909. current section. If OFFSET is an expression that resolves to a symbol
  3910. plus offset, the relocation is generated in the given symbol's section.
  3911. EXPRESSION, if present, must resolve to a symbol plus addend or to an
  3912. absolute value, but note that not all targets support an addend. e.g.
  3913. ELF REL targets such as i386 store an addend in the section contents
  3914. rather than in the relocation. This low level interface does not
  3915. support addends stored in the section.
  3916. 
  3917. File: as.info, Node: Rept, Next: Sbttl, Prev: Reloc, Up: Pseudo Ops
  3918. 7.79 '.rept COUNT'
  3919. ==================
  3920. Repeat the sequence of lines between the '.rept' directive and the next
  3921. '.endr' directive COUNT times.
  3922. For example, assembling
  3923. .rept 3
  3924. .long 0
  3925. .endr
  3926. is equivalent to assembling
  3927. .long 0
  3928. .long 0
  3929. .long 0
  3930. A count of zero is allowed, but nothing is generated. Negative
  3931. counts are not allowed and if encountered will be treated as if they
  3932. were zero.
  3933. 
  3934. File: as.info, Node: Sbttl, Next: Scl, Prev: Rept, Up: Pseudo Ops
  3935. 7.80 '.sbttl "SUBHEADING"'
  3936. ==========================
  3937. Use SUBHEADING as the title (third line, immediately after the title
  3938. line) when generating assembly listings.
  3939. This directive affects subsequent pages, as well as the current page
  3940. if it appears within ten lines of the top of a page.
  3941. 
  3942. File: as.info, Node: Scl, Next: Section, Prev: Sbttl, Up: Pseudo Ops
  3943. 7.81 '.scl CLASS'
  3944. =================
  3945. Set the storage-class value for a symbol. This directive may only be
  3946. used inside a '.def'/'.endef' pair. Storage class may flag whether a
  3947. symbol is static or external, or it may record further symbolic
  3948. debugging information.
  3949. 
  3950. File: as.info, Node: Section, Next: Set, Prev: Scl, Up: Pseudo Ops
  3951. 7.82 '.section NAME'
  3952. ====================
  3953. Use the '.section' directive to assemble the following code into a
  3954. section named NAME.
  3955. This directive is only supported for targets that actually support
  3956. arbitrarily named sections; on 'a.out' targets, for example, it is not
  3957. accepted, even with a standard 'a.out' section name.
  3958. COFF Version
  3959. ------------
  3960. For COFF targets, the '.section' directive is used in one of the
  3961. following ways:
  3962. .section NAME[, "FLAGS"]
  3963. .section NAME[, SUBSECTION]
  3964. If the optional argument is quoted, it is taken as flags to use for
  3965. the section. Each flag is a single character. The following flags are
  3966. recognized:
  3967. 'b'
  3968. bss section (uninitialized data)
  3969. 'n'
  3970. section is not loaded
  3971. 'w'
  3972. writable section
  3973. 'd'
  3974. data section
  3975. 'e'
  3976. exclude section from linking
  3977. 'r'
  3978. read-only section
  3979. 'x'
  3980. executable section
  3981. 's'
  3982. shared section (meaningful for PE targets)
  3983. 'a'
  3984. ignored. (For compatibility with the ELF version)
  3985. 'y'
  3986. section is not readable (meaningful for PE targets)
  3987. '0-9'
  3988. single-digit power-of-two section alignment (GNU extension)
  3989. If no flags are specified, the default flags depend upon the section
  3990. name. If the section name is not recognized, the default will be for
  3991. the section to be loaded and writable. Note the 'n' and 'w' flags
  3992. remove attributes from the section, rather than adding them, so if they
  3993. are used on their own it will be as if no flags had been specified at
  3994. all.
  3995. If the optional argument to the '.section' directive is not quoted,
  3996. it is taken as a subsection number (*note Sub-Sections::).
  3997. ELF Version
  3998. -----------
  3999. This is one of the ELF section stack manipulation directives. The
  4000. others are '.subsection' (*note SubSection::), '.pushsection' (*note
  4001. PushSection::), '.popsection' (*note PopSection::), and '.previous'
  4002. (*note Previous::).
  4003. For ELF targets, the '.section' directive is used like this:
  4004. .section NAME [, "FLAGS"[, @TYPE[,FLAG_SPECIFIC_ARGUMENTS]]]
  4005. If the '--sectname-subst' command-line option is provided, the NAME
  4006. argument may contain a substitution sequence. Only '%S' is supported at
  4007. the moment, and substitutes the current section name. For example:
  4008. .macro exception_code
  4009. .section %S.exception
  4010. [exception code here]
  4011. .previous
  4012. .endm
  4013. .text
  4014. [code]
  4015. exception_code
  4016. [...]
  4017. .section .init
  4018. [init code]
  4019. exception_code
  4020. [...]
  4021. The two 'exception_code' invocations above would create the
  4022. '.text.exception' and '.init.exception' sections respectively. This is
  4023. useful e.g. to discriminate between ancillary sections that are tied to
  4024. setup code to be discarded after use from ancillary sections that need
  4025. to stay resident without having to define multiple 'exception_code'
  4026. macros just for that purpose.
  4027. The optional FLAGS argument is a quoted string which may contain any
  4028. combination of the following characters:
  4029. 'a'
  4030. section is allocatable
  4031. 'd'
  4032. section is a GNU_MBIND section
  4033. 'e'
  4034. section is excluded from executable and shared library.
  4035. 'w'
  4036. section is writable
  4037. 'x'
  4038. section is executable
  4039. 'M'
  4040. section is mergeable
  4041. 'S'
  4042. section contains zero terminated strings
  4043. 'G'
  4044. section is a member of a section group
  4045. 'T'
  4046. section is used for thread-local-storage
  4047. '?'
  4048. section is a member of the previously-current section's group, if
  4049. any
  4050. '<number>'
  4051. a numeric value indicating the bits to be set in the ELF section
  4052. header's flags field. Note - if one or more of the alphabetic
  4053. characters described above is also included in the flags field,
  4054. their bit values will be ORed into the resulting value.
  4055. '<target specific>'
  4056. some targets extend this list with their own flag characters
  4057. Note - once a section's flags have been set they cannot be changed.
  4058. There are a few exceptions to this rule however. Processor and
  4059. application specific flags can be added to an already defined section.
  4060. The '.interp', '.strtab' and '.symtab' sections can have the allocate
  4061. flag ('a') set after they are initially defined, and the
  4062. '.note-GNU-stack' section may have the executable ('x') flag added.
  4063. The optional TYPE argument may contain one of the following
  4064. constants:
  4065. '@progbits'
  4066. section contains data
  4067. '@nobits'
  4068. section does not contain data (i.e., section only occupies space)
  4069. '@note'
  4070. section contains data which is used by things other than the
  4071. program
  4072. '@init_array'
  4073. section contains an array of pointers to init functions
  4074. '@fini_array'
  4075. section contains an array of pointers to finish functions
  4076. '@preinit_array'
  4077. section contains an array of pointers to pre-init functions
  4078. '@<number>'
  4079. a numeric value to be set as the ELF section header's type field.
  4080. '@<target specific>'
  4081. some targets extend this list with their own types
  4082. Many targets only support the first three section types. The type
  4083. may be enclosed in double quotes if necessary.
  4084. Note on targets where the '@' character is the start of a comment (eg
  4085. ARM) then another character is used instead. For example the ARM port
  4086. uses the '%' character.
  4087. Note - some sections, eg '.text' and '.data' are considered to be
  4088. special and have fixed types. Any attempt to declare them with a
  4089. different type will generate an error from the assembler.
  4090. If FLAGS contains the 'M' symbol then the TYPE argument must be
  4091. specified as well as an extra argument--ENTSIZE--like this:
  4092. .section NAME , "FLAGS"M, @TYPE, ENTSIZE
  4093. Sections with the 'M' flag but not 'S' flag must contain fixed size
  4094. constants, each ENTSIZE octets long. Sections with both 'M' and 'S'
  4095. must contain zero terminated strings where each character is ENTSIZE
  4096. bytes long. The linker may remove duplicates within sections with the
  4097. same name, same entity size and same flags. ENTSIZE must be an absolute
  4098. expression. For sections with both 'M' and 'S', a string which is a
  4099. suffix of a larger string is considered a duplicate. Thus '"def"' will
  4100. be merged with '"abcdef"'; A reference to the first '"def"' will be
  4101. changed to a reference to '"abcdef"+3'.
  4102. If FLAGS contains the 'G' symbol then the TYPE argument must be
  4103. present along with an additional field like this:
  4104. .section NAME , "FLAGS"G, @TYPE, GROUPNAME[, LINKAGE]
  4105. The GROUPNAME field specifies the name of the section group to which
  4106. this particular section belongs. The optional linkage field can
  4107. contain:
  4108. 'comdat'
  4109. indicates that only one copy of this section should be retained
  4110. '.gnu.linkonce'
  4111. an alias for comdat
  4112. Note: if both the M and G flags are present then the fields for the
  4113. Merge flag should come first, like this:
  4114. .section NAME , "FLAGS"MG, @TYPE, ENTSIZE, GROUPNAME[, LINKAGE]
  4115. If FLAGS contains the '?' symbol then it may not also contain the 'G'
  4116. symbol and the GROUPNAME or LINKAGE fields should not be present.
  4117. Instead, '?' says to consider the section that's current before this
  4118. directive. If that section used 'G', then the new section will use 'G'
  4119. with those same GROUPNAME and LINKAGE fields implicitly. If not, then
  4120. the '?' symbol has no effect.
  4121. If no flags are specified, the default flags depend upon the section
  4122. name. If the section name is not recognized, the default will be for
  4123. the section to have none of the above flags: it will not be allocated in
  4124. memory, nor writable, nor executable. The section will contain data.
  4125. For ELF targets, the assembler supports another type of '.section'
  4126. directive for compatibility with the Solaris assembler:
  4127. .section "NAME"[, FLAGS...]
  4128. Note that the section name is quoted. There may be a sequence of
  4129. comma separated flags:
  4130. '#alloc'
  4131. section is allocatable
  4132. '#write'
  4133. section is writable
  4134. '#execinstr'
  4135. section is executable
  4136. '#exclude'
  4137. section is excluded from executable and shared library.
  4138. '#tls'
  4139. section is used for thread local storage
  4140. This directive replaces the current section and subsection. See the
  4141. contents of the gas testsuite directory 'gas/testsuite/gas/elf' for some
  4142. examples of how this directive and the other section stack directives
  4143. work.
  4144. 
  4145. File: as.info, Node: Set, Next: Short, Prev: Section, Up: Pseudo Ops
  4146. 7.83 '.set SYMBOL, EXPRESSION'
  4147. ==============================
  4148. Set the value of SYMBOL to EXPRESSION. This changes SYMBOL's value and
  4149. type to conform to EXPRESSION. If SYMBOL was flagged as external, it
  4150. remains flagged (*note Symbol Attributes::).
  4151. You may '.set' a symbol many times in the same assembly provided that
  4152. the values given to the symbol are constants. Values that are based on
  4153. expressions involving other symbols are allowed, but some targets may
  4154. restrict this to only being done once per assembly. This is because
  4155. those targets do not set the addresses of symbols at assembly time, but
  4156. rather delay the assignment until a final link is performed. This
  4157. allows the linker a chance to change the code in the files, changing the
  4158. location of, and the relative distance between, various different
  4159. symbols.
  4160. If you '.set' a global symbol, the value stored in the object file is
  4161. the last value stored into it.
  4162. On Z80 'set' is a real instruction, use '.set' or 'SYMBOL defl
  4163. EXPRESSION' instead.
  4164. 
  4165. File: as.info, Node: Short, Next: Single, Prev: Set, Up: Pseudo Ops
  4166. 7.84 '.short EXPRESSIONS'
  4167. =========================
  4168. '.short' is normally the same as '.word'. *Note '.word': Word.
  4169. In some configurations, however, '.short' and '.word' generate
  4170. numbers of different lengths. *Note Machine Dependencies::.
  4171. 
  4172. File: as.info, Node: Single, Next: Size, Prev: Short, Up: Pseudo Ops
  4173. 7.85 '.single FLONUMS'
  4174. ======================
  4175. This directive assembles zero or more flonums, separated by commas. It
  4176. has the same effect as '.float'. The exact kind of floating point
  4177. numbers emitted depends on how 'as' is configured. *Note Machine
  4178. Dependencies::.
  4179. 
  4180. File: as.info, Node: Size, Next: Skip, Prev: Single, Up: Pseudo Ops
  4181. 7.86 '.size'
  4182. ============
  4183. This directive is used to set the size associated with a symbol.
  4184. COFF Version
  4185. ------------
  4186. For COFF targets, the '.size' directive is only permitted inside
  4187. '.def'/'.endef' pairs. It is used like this:
  4188. .size EXPRESSION
  4189. ELF Version
  4190. -----------
  4191. For ELF targets, the '.size' directive is used like this:
  4192. .size NAME , EXPRESSION
  4193. This directive sets the size associated with a symbol NAME. The size
  4194. in bytes is computed from EXPRESSION which can make use of label
  4195. arithmetic. This directive is typically used to set the size of
  4196. function symbols.
  4197. 
  4198. File: as.info, Node: Skip, Next: Sleb128, Prev: Size, Up: Pseudo Ops
  4199. 7.87 '.skip SIZE [,FILL]'
  4200. =========================
  4201. This directive emits SIZE bytes, each of value FILL. Both SIZE and FILL
  4202. are absolute expressions. If the comma and FILL are omitted, FILL is
  4203. assumed to be zero. This is the same as '.space'.
  4204. 
  4205. File: as.info, Node: Sleb128, Next: Space, Prev: Skip, Up: Pseudo Ops
  4206. 7.88 '.sleb128 EXPRESSIONS'
  4207. ===========================
  4208. SLEB128 stands for "signed little endian base 128." This is a compact,
  4209. variable length representation of numbers used by the DWARF symbolic
  4210. debugging format. *Note '.uleb128': Uleb128.
  4211. 
  4212. File: as.info, Node: Space, Next: Stab, Prev: Sleb128, Up: Pseudo Ops
  4213. 7.89 '.space SIZE [,FILL]'
  4214. ==========================
  4215. This directive emits SIZE bytes, each of value FILL. Both SIZE and FILL
  4216. are absolute expressions. If the comma and FILL are omitted, FILL is
  4217. assumed to be zero. This is the same as '.skip'.
  4218. _Warning:_ '.space' has a completely different meaning for HPPA
  4219. targets; use '.block' as a substitute. See 'HP9000 Series 800
  4220. Assembly Language Reference Manual' (HP 92432-90001) for the
  4221. meaning of the '.space' directive. *Note HPPA Assembler
  4222. Directives: HPPA Directives, for a summary.
  4223. 
  4224. File: as.info, Node: Stab, Next: String, Prev: Space, Up: Pseudo Ops
  4225. 7.90 '.stabd, .stabn, .stabs'
  4226. =============================
  4227. There are three directives that begin '.stab'. All emit symbols (*note
  4228. Symbols::), for use by symbolic debuggers. The symbols are not entered
  4229. in the 'as' hash table: they cannot be referenced elsewhere in the
  4230. source file. Up to five fields are required:
  4231. STRING
  4232. This is the symbol's name. It may contain any character except
  4233. '\000', so is more general than ordinary symbol names. Some
  4234. debuggers used to code arbitrarily complex structures into symbol
  4235. names using this field.
  4236. TYPE
  4237. An absolute expression. The symbol's type is set to the low 8 bits
  4238. of this expression. Any bit pattern is permitted, but 'ld' and
  4239. debuggers choke on silly bit patterns.
  4240. OTHER
  4241. An absolute expression. The symbol's "other" attribute is set to
  4242. the low 8 bits of this expression.
  4243. DESC
  4244. An absolute expression. The symbol's descriptor is set to the low
  4245. 16 bits of this expression.
  4246. VALUE
  4247. An absolute expression which becomes the symbol's value.
  4248. If a warning is detected while reading a '.stabd', '.stabn', or
  4249. '.stabs' statement, the symbol has probably already been created; you
  4250. get a half-formed symbol in your object file. This is compatible with
  4251. earlier assemblers!
  4252. '.stabd TYPE , OTHER , DESC'
  4253. The "name" of the symbol generated is not even an empty string. It
  4254. is a null pointer, for compatibility. Older assemblers used a null
  4255. pointer so they didn't waste space in object files with empty
  4256. strings.
  4257. The symbol's value is set to the location counter, relocatably.
  4258. When your program is linked, the value of this symbol is the
  4259. address of the location counter when the '.stabd' was assembled.
  4260. '.stabn TYPE , OTHER , DESC , VALUE'
  4261. The name of the symbol is set to the empty string '""'.
  4262. '.stabs STRING , TYPE , OTHER , DESC , VALUE'
  4263. All five fields are specified.
  4264. 
  4265. File: as.info, Node: String, Next: Struct, Prev: Stab, Up: Pseudo Ops
  4266. 7.91 '.string' "STR", '.string8' "STR", '.string16'
  4267. ===================================================
  4268. "STR", '.string32' "STR", '.string64' "STR"
  4269. Copy the characters in STR to the object file. You may specify more
  4270. than one string to copy, separated by commas. Unless otherwise
  4271. specified for a particular machine, the assembler marks the end of each
  4272. string with a 0 byte. You can use any of the escape sequences described
  4273. in *note Strings: Strings.
  4274. The variants 'string16', 'string32' and 'string64' differ from the
  4275. 'string' pseudo opcode in that each 8-bit character from STR is copied
  4276. and expanded to 16, 32 or 64 bits respectively. The expanded characters
  4277. are stored in target endianness byte order.
  4278. Example:
  4279. .string32 "BYE"
  4280. expands to:
  4281. .string "B\0\0\0Y\0\0\0E\0\0\0" /* On little endian targets. */
  4282. .string "\0\0\0B\0\0\0Y\0\0\0E" /* On big endian targets. */
  4283. 
  4284. File: as.info, Node: Struct, Next: SubSection, Prev: String, Up: Pseudo Ops
  4285. 7.92 '.struct EXPRESSION'
  4286. =========================
  4287. Switch to the absolute section, and set the section offset to
  4288. EXPRESSION, which must be an absolute expression. You might use this as
  4289. follows:
  4290. .struct 0
  4291. field1:
  4292. .struct field1 + 4
  4293. field2:
  4294. .struct field2 + 4
  4295. field3:
  4296. This would define the symbol 'field1' to have the value 0, the symbol
  4297. 'field2' to have the value 4, and the symbol 'field3' to have the value
  4298. 8. Assembly would be left in the absolute section, and you would need
  4299. to use a '.section' directive of some sort to change to some other
  4300. section before further assembly.
  4301. 
  4302. File: as.info, Node: SubSection, Next: Symver, Prev: Struct, Up: Pseudo Ops
  4303. 7.93 '.subsection NAME'
  4304. =======================
  4305. This is one of the ELF section stack manipulation directives. The
  4306. others are '.section' (*note Section::), '.pushsection' (*note
  4307. PushSection::), '.popsection' (*note PopSection::), and '.previous'
  4308. (*note Previous::).
  4309. This directive replaces the current subsection with 'name'. The
  4310. current section is not changed. The replaced subsection is put onto the
  4311. section stack in place of the then current top of stack subsection.
  4312. 
  4313. File: as.info, Node: Symver, Next: Tag, Prev: SubSection, Up: Pseudo Ops
  4314. 7.94 '.symver'
  4315. ==============
  4316. Use the '.symver' directive to bind symbols to specific version nodes
  4317. within a source file. This is only supported on ELF platforms, and is
  4318. typically used when assembling files to be linked into a shared library.
  4319. There are cases where it may make sense to use this in objects to be
  4320. bound into an application itself so as to override a versioned symbol
  4321. from a shared library.
  4322. For ELF targets, the '.symver' directive can be used like this:
  4323. .symver NAME, NAME2@NODENAME
  4324. If the symbol NAME is defined within the file being assembled, the
  4325. '.symver' directive effectively creates a symbol alias with the name
  4326. NAME2@NODENAME, and in fact the main reason that we just don't try and
  4327. create a regular alias is that the @ character isn't permitted in symbol
  4328. names. The NAME2 part of the name is the actual name of the symbol by
  4329. which it will be externally referenced. The name NAME itself is merely
  4330. a name of convenience that is used so that it is possible to have
  4331. definitions for multiple versions of a function within a single source
  4332. file, and so that the compiler can unambiguously know which version of a
  4333. function is being mentioned. The NODENAME portion of the alias should
  4334. be the name of a node specified in the version script supplied to the
  4335. linker when building a shared library. If you are attempting to
  4336. override a versioned symbol from a shared library, then NODENAME should
  4337. correspond to the nodename of the symbol you are trying to override.
  4338. If the symbol NAME is not defined within the file being assembled,
  4339. all references to NAME will be changed to NAME2@NODENAME. If no
  4340. reference to NAME is made, NAME2@NODENAME will be removed from the
  4341. symbol table.
  4342. Another usage of the '.symver' directive is:
  4343. .symver NAME, NAME2@@NODENAME
  4344. In this case, the symbol NAME must exist and be defined within the
  4345. file being assembled. It is similar to NAME2@NODENAME. The difference
  4346. is NAME2@@NODENAME will also be used to resolve references to NAME2 by
  4347. the linker.
  4348. The third usage of the '.symver' directive is:
  4349. .symver NAME, NAME2@@@NODENAME
  4350. When NAME is not defined within the file being assembled, it is
  4351. treated as NAME2@NODENAME. When NAME is defined within the file being
  4352. assembled, the symbol name, NAME, will be changed to NAME2@@NODENAME.
  4353. 
  4354. File: as.info, Node: Tag, Next: Text, Prev: Symver, Up: Pseudo Ops
  4355. 7.95 '.tag STRUCTNAME'
  4356. ======================
  4357. This directive is generated by compilers to include auxiliary debugging
  4358. information in the symbol table. It is only permitted inside
  4359. '.def'/'.endef' pairs. Tags are used to link structure definitions in
  4360. the symbol table with instances of those structures.
  4361. 
  4362. File: as.info, Node: Text, Next: Title, Prev: Tag, Up: Pseudo Ops
  4363. 7.96 '.text SUBSECTION'
  4364. =======================
  4365. Tells 'as' to assemble the following statements onto the end of the text
  4366. subsection numbered SUBSECTION, which is an absolute expression. If
  4367. SUBSECTION is omitted, subsection number zero is used.
  4368. 
  4369. File: as.info, Node: Title, Next: Type, Prev: Text, Up: Pseudo Ops
  4370. 7.97 '.title "HEADING"'
  4371. =======================
  4372. Use HEADING as the title (second line, immediately after the source file
  4373. name and pagenumber) when generating assembly listings.
  4374. This directive affects subsequent pages, as well as the current page
  4375. if it appears within ten lines of the top of a page.
  4376. 
  4377. File: as.info, Node: Type, Next: Uleb128, Prev: Title, Up: Pseudo Ops
  4378. 7.98 '.type'
  4379. ============
  4380. This directive is used to set the type of a symbol.
  4381. COFF Version
  4382. ------------
  4383. For COFF targets, this directive is permitted only within
  4384. '.def'/'.endef' pairs. It is used like this:
  4385. .type INT
  4386. This records the integer INT as the type attribute of a symbol table
  4387. entry.
  4388. ELF Version
  4389. -----------
  4390. For ELF targets, the '.type' directive is used like this:
  4391. .type NAME , TYPE DESCRIPTION
  4392. This sets the type of symbol NAME to be either a function symbol or
  4393. an object symbol. There are five different syntaxes supported for the
  4394. TYPE DESCRIPTION field, in order to provide compatibility with various
  4395. other assemblers.
  4396. Because some of the characters used in these syntaxes (such as '@'
  4397. and '#') are comment characters for some architectures, some of the
  4398. syntaxes below do not work on all architectures. The first variant will
  4399. be accepted by the GNU assembler on all architectures so that variant
  4400. should be used for maximum portability, if you do not need to assemble
  4401. your code with other assemblers.
  4402. The syntaxes supported are:
  4403. .type <name> STT_<TYPE_IN_UPPER_CASE>
  4404. .type <name>,#<type>
  4405. .type <name>,@<type>
  4406. .type <name>,%<type>
  4407. .type <name>,"<type>"
  4408. The types supported are:
  4409. 'STT_FUNC'
  4410. 'function'
  4411. Mark the symbol as being a function name.
  4412. 'STT_GNU_IFUNC'
  4413. 'gnu_indirect_function'
  4414. Mark the symbol as an indirect function when evaluated during reloc
  4415. processing. (This is only supported on assemblers targeting GNU
  4416. systems).
  4417. 'STT_OBJECT'
  4418. 'object'
  4419. Mark the symbol as being a data object.
  4420. 'STT_TLS'
  4421. 'tls_object'
  4422. Mark the symbol as being a thread-local data object.
  4423. 'STT_COMMON'
  4424. 'common'
  4425. Mark the symbol as being a common data object.
  4426. 'STT_NOTYPE'
  4427. 'notype'
  4428. Does not mark the symbol in any way. It is supported just for
  4429. completeness.
  4430. 'gnu_unique_object'
  4431. Marks the symbol as being a globally unique data object. The
  4432. dynamic linker will make sure that in the entire process there is
  4433. just one symbol with this name and type in use. (This is only
  4434. supported on assemblers targeting GNU systems).
  4435. Changing between incompatible types other than from/to STT_NOTYPE
  4436. will result in a diagnostic. An intermediate change to STT_NOTYPE will
  4437. silence this.
  4438. Note: Some targets support extra types in addition to those listed
  4439. above.
  4440. 
  4441. File: as.info, Node: Uleb128, Next: Val, Prev: Type, Up: Pseudo Ops
  4442. 7.99 '.uleb128 EXPRESSIONS'
  4443. ===========================
  4444. ULEB128 stands for "unsigned little endian base 128." This is a
  4445. compact, variable length representation of numbers used by the DWARF
  4446. symbolic debugging format. *Note '.sleb128': Sleb128.
  4447. 
  4448. File: as.info, Node: Val, Next: Version, Prev: Uleb128, Up: Pseudo Ops
  4449. 7.100 '.val ADDR'
  4450. =================
  4451. This directive, permitted only within '.def'/'.endef' pairs, records the
  4452. address ADDR as the value attribute of a symbol table entry.
  4453. 
  4454. File: as.info, Node: Version, Next: VTableEntry, Prev: Val, Up: Pseudo Ops
  4455. 7.101 '.version "STRING"'
  4456. =========================
  4457. This directive creates a '.note' section and places into it an ELF
  4458. formatted note of type NT_VERSION. The note's name is set to 'string'.
  4459. 
  4460. File: as.info, Node: VTableEntry, Next: VTableInherit, Prev: Version, Up: Pseudo Ops
  4461. 7.102 '.vtable_entry TABLE, OFFSET'
  4462. ===================================
  4463. This directive finds or creates a symbol 'table' and creates a
  4464. 'VTABLE_ENTRY' relocation for it with an addend of 'offset'.
  4465. 
  4466. File: as.info, Node: VTableInherit, Next: Warning, Prev: VTableEntry, Up: Pseudo Ops
  4467. 7.103 '.vtable_inherit CHILD, PARENT'
  4468. =====================================
  4469. This directive finds the symbol 'child' and finds or creates the symbol
  4470. 'parent' and then creates a 'VTABLE_INHERIT' relocation for the parent
  4471. whose addend is the value of the child symbol. As a special case the
  4472. parent name of '0' is treated as referring to the '*ABS*' section.
  4473. 
  4474. File: as.info, Node: Warning, Next: Weak, Prev: VTableInherit, Up: Pseudo Ops
  4475. 7.104 '.warning "STRING"'
  4476. =========================
  4477. Similar to the directive '.error' (*note '.error "STRING"': Error.), but
  4478. just emits a warning.
  4479. 
  4480. File: as.info, Node: Weak, Next: Weakref, Prev: Warning, Up: Pseudo Ops
  4481. 7.105 '.weak NAMES'
  4482. ===================
  4483. This directive sets the weak attribute on the comma separated list of
  4484. symbol 'names'. If the symbols do not already exist, they will be
  4485. created.
  4486. On COFF targets other than PE, weak symbols are a GNU extension.
  4487. This directive sets the weak attribute on the comma separated list of
  4488. symbol 'names'. If the symbols do not already exist, they will be
  4489. created.
  4490. On the PE target, weak symbols are supported natively as weak
  4491. aliases. When a weak symbol is created that is not an alias, GAS
  4492. creates an alternate symbol to hold the default value.
  4493. 
  4494. File: as.info, Node: Weakref, Next: Word, Prev: Weak, Up: Pseudo Ops
  4495. 7.106 '.weakref ALIAS, TARGET'
  4496. ==============================
  4497. This directive creates an alias to the target symbol that enables the
  4498. symbol to be referenced with weak-symbol semantics, but without actually
  4499. making it weak. If direct references or definitions of the symbol are
  4500. present, then the symbol will not be weak, but if all references to it
  4501. are through weak references, the symbol will be marked as weak in the
  4502. symbol table.
  4503. The effect is equivalent to moving all references to the alias to a
  4504. separate assembly source file, renaming the alias to the symbol in it,
  4505. declaring the symbol as weak there, and running a reloadable link to
  4506. merge the object files resulting from the assembly of the new source
  4507. file and the old source file that had the references to the alias
  4508. removed.
  4509. The alias itself never makes to the symbol table, and is entirely
  4510. handled within the assembler.
  4511. 
  4512. File: as.info, Node: Word, Next: Zero, Prev: Weakref, Up: Pseudo Ops
  4513. 7.107 '.word EXPRESSIONS'
  4514. =========================
  4515. This directive expects zero or more EXPRESSIONS, of any section,
  4516. separated by commas.
  4517. The size of the number emitted, and its byte order, depend on what
  4518. target computer the assembly is for.
  4519. _Warning: Special Treatment to support Compilers_
  4520. Machines with a 32-bit address space, but that do less than 32-bit
  4521. addressing, require the following special treatment. If the machine of
  4522. interest to you does 32-bit addressing (or doesn't require it; *note
  4523. Machine Dependencies::), you can ignore this issue.
  4524. In order to assemble compiler output into something that works, 'as'
  4525. occasionally does strange things to '.word' directives. Directives of
  4526. the form '.word sym1-sym2' are often emitted by compilers as part of
  4527. jump tables. Therefore, when 'as' assembles a directive of the form
  4528. '.word sym1-sym2', and the difference between 'sym1' and 'sym2' does not
  4529. fit in 16 bits, 'as' creates a "secondary jump table", immediately
  4530. before the next label. This secondary jump table is preceded by a
  4531. short-jump to the first byte after the secondary table. This short-jump
  4532. prevents the flow of control from accidentally falling into the new
  4533. table. Inside the table is a long-jump to 'sym2'. The original '.word'
  4534. contains 'sym1' minus the address of the long-jump to 'sym2'.
  4535. If there were several occurrences of '.word sym1-sym2' before the
  4536. secondary jump table, all of them are adjusted. If there was a '.word
  4537. sym3-sym4', that also did not fit in sixteen bits, a long-jump to 'sym4'
  4538. is included in the secondary jump table, and the '.word' directives are
  4539. adjusted to contain 'sym3' minus the address of the long-jump to 'sym4';
  4540. and so on, for as many entries in the original jump table as necessary.
  4541. 
  4542. File: as.info, Node: Zero, Next: 2byte, Prev: Word, Up: Pseudo Ops
  4543. 7.108 '.zero SIZE'
  4544. ==================
  4545. This directive emits SIZE 0-valued bytes. SIZE must be an absolute
  4546. expression. This directive is actually an alias for the '.skip'
  4547. directive so it can take an optional second argument of the value to
  4548. store in the bytes instead of zero. Using '.zero' in this way would be
  4549. confusing however.
  4550. 
  4551. File: as.info, Node: 2byte, Next: 4byte, Prev: Zero, Up: Pseudo Ops
  4552. 7.109 '.2byte EXPRESSION [, EXPRESSION]*'
  4553. =========================================
  4554. This directive expects zero or more expressions, separated by commas.
  4555. If there are no expressions then the directive does nothing. Otherwise
  4556. each expression is evaluated in turn and placed in the next two bytes of
  4557. the current output section, using the endian model of the target. If an
  4558. expression will not fit in two bytes, a warning message is displayed and
  4559. the least significant two bytes of the expression's value are used. If
  4560. an expression cannot be evaluated at assembly time then relocations will
  4561. be generated in order to compute the value at link time.
  4562. This directive does not apply any alignment before or after inserting
  4563. the values. As a result of this, if relocations are generated, they may
  4564. be different from those used for inserting values with a guaranteed
  4565. alignment.
  4566. This directive is only available for ELF targets,
  4567. 
  4568. File: as.info, Node: 4byte, Next: 8byte, Prev: 2byte, Up: Pseudo Ops
  4569. 7.110 '.4byte EXPRESSION [, EXPRESSION]*'
  4570. =========================================
  4571. Like the '.2byte' directive, except that it inserts unaligned, four byte
  4572. long values into the output.
  4573. 
  4574. File: as.info, Node: 8byte, Next: Deprecated, Prev: 4byte, Up: Pseudo Ops
  4575. 7.111 '.8byte EXPRESSION [, EXPRESSION]*'
  4576. =========================================
  4577. Like the '.2byte' directive, except that it inserts unaligned, eight
  4578. byte long bignum values into the output.
  4579. 
  4580. File: as.info, Node: Deprecated, Prev: 8byte, Up: Pseudo Ops
  4581. 7.112 Deprecated Directives
  4582. ===========================
  4583. One day these directives won't work. They are included for
  4584. compatibility with older assemblers.
  4585. .abort
  4586. .line
  4587. 
  4588. File: as.info, Node: Object Attributes, Next: Machine Dependencies, Prev: Pseudo Ops, Up: Top
  4589. 8 Object Attributes
  4590. *******************
  4591. 'as' assembles source files written for a specific architecture into
  4592. object files for that architecture. But not all object files are alike.
  4593. Many architectures support incompatible variations. For instance,
  4594. floating point arguments might be passed in floating point registers if
  4595. the object file requires hardware floating point support--or floating
  4596. point arguments might be passed in integer registers if the object file
  4597. supports processors with no hardware floating point unit. Or, if two
  4598. objects are built for different generations of the same architecture,
  4599. the combination may require the newer generation at run-time.
  4600. This information is useful during and after linking. At link time,
  4601. 'ld' can warn about incompatible object files. After link time, tools
  4602. like 'gdb' can use it to process the linked file correctly.
  4603. Compatibility information is recorded as a series of object
  4604. attributes. Each attribute has a "vendor", "tag", and "value". The
  4605. vendor is a string, and indicates who sets the meaning of the tag. The
  4606. tag is an integer, and indicates what property the attribute describes.
  4607. The value may be a string or an integer, and indicates how the property
  4608. affects this object. Missing attributes are the same as attributes with
  4609. a zero value or empty string value.
  4610. Object attributes were developed as part of the ABI for the ARM
  4611. Architecture. The file format is documented in 'ELF for the ARM
  4612. Architecture'.
  4613. * Menu:
  4614. * GNU Object Attributes:: GNU Object Attributes
  4615. * Defining New Object Attributes:: Defining New Object Attributes
  4616. 
  4617. File: as.info, Node: GNU Object Attributes, Next: Defining New Object Attributes, Up: Object Attributes
  4618. 8.1 GNU Object Attributes
  4619. =========================
  4620. The '.gnu_attribute' directive records an object attribute with vendor
  4621. 'gnu'.
  4622. Except for 'Tag_compatibility', which has both an integer and a
  4623. string for its value, GNU attributes have a string value if the tag
  4624. number is odd and an integer value if the tag number is even. The
  4625. second bit ('TAG & 2' is set for architecture-independent attributes and
  4626. clear for architecture-dependent ones.
  4627. 8.1.1 Common GNU attributes
  4628. ---------------------------
  4629. These attributes are valid on all architectures.
  4630. Tag_compatibility (32)
  4631. The compatibility attribute takes an integer flag value and a
  4632. vendor name. If the flag value is 0, the file is compatible with
  4633. other toolchains. If it is 1, then the file is only compatible
  4634. with the named toolchain. If it is greater than 1, the file can
  4635. only be processed by other toolchains under some private
  4636. arrangement indicated by the flag value and the vendor name.
  4637. 8.1.2 MIPS Attributes
  4638. ---------------------
  4639. Tag_GNU_MIPS_ABI_FP (4)
  4640. The floating-point ABI used by this object file. The value will
  4641. be:
  4642. * 0 for files not affected by the floating-point ABI.
  4643. * 1 for files using the hardware floating-point ABI with a
  4644. standard double-precision FPU.
  4645. * 2 for files using the hardware floating-point ABI with a
  4646. single-precision FPU.
  4647. * 3 for files using the software floating-point ABI.
  4648. * 4 for files using the deprecated hardware floating-point ABI
  4649. which used 64-bit floating-point registers, 32-bit
  4650. general-purpose registers and increased the number of
  4651. callee-saved floating-point registers.
  4652. * 5 for files using the hardware floating-point ABI with a
  4653. double-precision FPU with either 32-bit or 64-bit
  4654. floating-point registers and 32-bit general-purpose registers.
  4655. * 6 for files using the hardware floating-point ABI with 64-bit
  4656. floating-point registers and 32-bit general-purpose registers.
  4657. * 7 for files using the hardware floating-point ABI with 64-bit
  4658. floating-point registers, 32-bit general-purpose registers and
  4659. a rule that forbids the direct use of odd-numbered
  4660. single-precision floating-point registers.
  4661. 8.1.3 PowerPC Attributes
  4662. ------------------------
  4663. Tag_GNU_Power_ABI_FP (4)
  4664. The floating-point ABI used by this object file. The value will
  4665. be:
  4666. * 0 for files not affected by the floating-point ABI.
  4667. * 1 for files using double-precision hardware floating-point
  4668. ABI.
  4669. * 2 for files using the software floating-point ABI.
  4670. * 3 for files using single-precision hardware floating-point
  4671. ABI.
  4672. Tag_GNU_Power_ABI_Vector (8)
  4673. The vector ABI used by this object file. The value will be:
  4674. * 0 for files not affected by the vector ABI.
  4675. * 1 for files using general purpose registers to pass vectors.
  4676. * 2 for files using AltiVec registers to pass vectors.
  4677. * 3 for files using SPE registers to pass vectors.
  4678. 8.1.4 IBM z Systems Attributes
  4679. ------------------------------
  4680. Tag_GNU_S390_ABI_Vector (8)
  4681. The vector ABI used by this object file. The value will be:
  4682. * 0 for files not affected by the vector ABI.
  4683. * 1 for files using software vector ABI.
  4684. * 2 for files using hardware vector ABI.
  4685. 8.1.5 MSP430 Attributes
  4686. -----------------------
  4687. Tag_GNU_MSP430_Data_Region (4)
  4688. The data region used by this object file. The value will be:
  4689. * 0 for files not using the large memory model.
  4690. * 1 for files which have been compiled with the condition that
  4691. all data is in the lower memory region, i.e. below address
  4692. 0x10000.
  4693. * 2 for files which allow data to be placed in the full 20-bit
  4694. memory range.
  4695. 
  4696. File: as.info, Node: Defining New Object Attributes, Prev: GNU Object Attributes, Up: Object Attributes
  4697. 8.2 Defining New Object Attributes
  4698. ==================================
  4699. If you want to define a new GNU object attribute, here are the places
  4700. you will need to modify. New attributes should be discussed on the
  4701. 'binutils' mailing list.
  4702. * This manual, which is the official register of attributes.
  4703. * The header for your architecture 'include/elf', to define the tag.
  4704. * The 'bfd' support file for your architecture, to merge the
  4705. attribute and issue any appropriate link warnings.
  4706. * Test cases in 'ld/testsuite' for merging and link warnings.
  4707. * 'binutils/readelf.c' to display your attribute.
  4708. * GCC, if you want the compiler to mark the attribute automatically.
  4709. 
  4710. File: as.info, Node: Machine Dependencies, Next: Reporting Bugs, Prev: Object Attributes, Up: Top
  4711. 9 Machine Dependent Features
  4712. ****************************
  4713. The machine instruction sets are (almost by definition) different on
  4714. each machine where 'as' runs. Floating point representations vary as
  4715. well, and 'as' often supports a few additional directives or
  4716. command-line options for compatibility with other assemblers on a
  4717. particular platform. Finally, some versions of 'as' support special
  4718. pseudo-instructions for branch optimization.
  4719. This chapter discusses most of these differences, though it does not
  4720. include details on any machine's instruction set. For details on that
  4721. subject, see the hardware manufacturer's manual.
  4722. * Menu:
  4723. * AArch64-Dependent:: AArch64 Dependent Features
  4724. * Alpha-Dependent:: Alpha Dependent Features
  4725. * ARC-Dependent:: ARC Dependent Features
  4726. * ARM-Dependent:: ARM Dependent Features
  4727. * AVR-Dependent:: AVR Dependent Features
  4728. * Blackfin-Dependent:: Blackfin Dependent Features
  4729. * BPF-Dependent:: BPF Dependent Features
  4730. * CR16-Dependent:: CR16 Dependent Features
  4731. * CRIS-Dependent:: CRIS Dependent Features
  4732. * C-SKY-Dependent:: C-SKY Dependent Features
  4733. * D10V-Dependent:: D10V Dependent Features
  4734. * D30V-Dependent:: D30V Dependent Features
  4735. * Epiphany-Dependent:: EPIPHANY Dependent Features
  4736. * H8/300-Dependent:: Renesas H8/300 Dependent Features
  4737. * HPPA-Dependent:: HPPA Dependent Features
  4738. * i386-Dependent:: Intel 80386 and AMD x86-64 Dependent Features
  4739. * IA-64-Dependent:: Intel IA-64 Dependent Features
  4740. * IP2K-Dependent:: IP2K Dependent Features
  4741. * LM32-Dependent:: LM32 Dependent Features
  4742. * M32C-Dependent:: M32C Dependent Features
  4743. * M32R-Dependent:: M32R Dependent Features
  4744. * M68K-Dependent:: M680x0 Dependent Features
  4745. * M68HC11-Dependent:: M68HC11 and 68HC12 Dependent Features
  4746. * S12Z-Dependent:: S12Z Dependent Features
  4747. * Meta-Dependent :: Meta Dependent Features
  4748. * MicroBlaze-Dependent:: MICROBLAZE Dependent Features
  4749. * MIPS-Dependent:: MIPS Dependent Features
  4750. * MMIX-Dependent:: MMIX Dependent Features
  4751. * MSP430-Dependent:: MSP430 Dependent Features
  4752. * NDS32-Dependent:: Andes NDS32 Dependent Features
  4753. * NiosII-Dependent:: Altera Nios II Dependent Features
  4754. * NS32K-Dependent:: NS32K Dependent Features
  4755. * OpenRISC-Dependent:: OpenRISC 1000 Features
  4756. * PDP-11-Dependent:: PDP-11 Dependent Features
  4757. * PJ-Dependent:: picoJava Dependent Features
  4758. * PPC-Dependent:: PowerPC Dependent Features
  4759. * PRU-Dependent:: PRU Dependent Features
  4760. * RISC-V-Dependent:: RISC-V Dependent Features
  4761. * RL78-Dependent:: RL78 Dependent Features
  4762. * RX-Dependent:: RX Dependent Features
  4763. * S/390-Dependent:: IBM S/390 Dependent Features
  4764. * SCORE-Dependent:: SCORE Dependent Features
  4765. * SH-Dependent:: Renesas / SuperH SH Dependent Features
  4766. * Sparc-Dependent:: SPARC Dependent Features
  4767. * TIC54X-Dependent:: TI TMS320C54x Dependent Features
  4768. * TIC6X-Dependent :: TI TMS320C6x Dependent Features
  4769. * TILE-Gx-Dependent :: Tilera TILE-Gx Dependent Features
  4770. * TILEPro-Dependent :: Tilera TILEPro Dependent Features
  4771. * V850-Dependent:: V850 Dependent Features
  4772. * Vax-Dependent:: VAX Dependent Features
  4773. * Visium-Dependent:: Visium Dependent Features
  4774. * WebAssembly-Dependent:: WebAssembly Dependent Features
  4775. * XGATE-Dependent:: XGATE Dependent Features
  4776. * XSTORMY16-Dependent:: XStormy16 Dependent Features
  4777. * Xtensa-Dependent:: Xtensa Dependent Features
  4778. * Z80-Dependent:: Z80 Dependent Features
  4779. * Z8000-Dependent:: Z8000 Dependent Features
  4780. 
  4781. File: as.info, Node: AArch64-Dependent, Next: Alpha-Dependent, Up: Machine Dependencies
  4782. 9.1 AArch64 Dependent Features
  4783. ==============================
  4784. * Menu:
  4785. * AArch64 Options:: Options
  4786. * AArch64 Extensions:: Extensions
  4787. * AArch64 Syntax:: Syntax
  4788. * AArch64 Floating Point:: Floating Point
  4789. * AArch64 Directives:: AArch64 Machine Directives
  4790. * AArch64 Opcodes:: Opcodes
  4791. * AArch64 Mapping Symbols:: Mapping Symbols
  4792. 
  4793. File: as.info, Node: AArch64 Options, Next: AArch64 Extensions, Up: AArch64-Dependent
  4794. 9.1.1 Options
  4795. -------------
  4796. '-EB'
  4797. This option specifies that the output generated by the assembler
  4798. should be marked as being encoded for a big-endian processor.
  4799. '-EL'
  4800. This option specifies that the output generated by the assembler
  4801. should be marked as being encoded for a little-endian processor.
  4802. '-mabi=ABI'
  4803. Specify which ABI the source code uses. The recognized arguments
  4804. are: 'ilp32' and 'lp64', which decides the generated object file in
  4805. ELF32 and ELF64 format respectively. The default is 'lp64'.
  4806. '-mcpu=PROCESSOR[+EXTENSION...]'
  4807. This option specifies the target processor. The assembler will
  4808. issue an error message if an attempt is made to assemble an
  4809. instruction which will not execute on the target processor. The
  4810. following processor names are recognized: 'cortex-a34',
  4811. 'cortex-a35', 'cortex-a53', 'cortex-a55', 'cortex-a57',
  4812. 'cortex-a65', 'cortex-a65ae', 'cortex-a72', 'cortex-a73',
  4813. 'cortex-a75', 'cortex-a76', 'cortex-a76ae', 'cortex-a77', 'ares',
  4814. 'exynos-m1', 'falkor', 'neoverse-n1', 'neoverse-e1', 'qdf24xx',
  4815. 'saphira', 'thunderx', 'vulcan', 'xgene1' and 'xgene2'. The
  4816. special name 'all' may be used to allow the assembler to accept
  4817. instructions valid for any supported processor, including all
  4818. optional extensions.
  4819. In addition to the basic instruction set, the assembler can be told
  4820. to accept, or restrict, various extension mnemonics that extend the
  4821. processor. *Note AArch64 Extensions::.
  4822. If some implementations of a particular processor can have an
  4823. extension, then then those extensions are automatically enabled.
  4824. Consequently, you will not normally have to specify any additional
  4825. extensions.
  4826. '-march=ARCHITECTURE[+EXTENSION...]'
  4827. This option specifies the target architecture. The assembler will
  4828. issue an error message if an attempt is made to assemble an
  4829. instruction which will not execute on the target architecture. The
  4830. following architecture names are recognized: 'armv8-a',
  4831. 'armv8.1-a', 'armv8.2-a', 'armv8.3-a', 'armv8.4-a' 'armv8.5-a', and
  4832. 'armv8.6-a'.
  4833. If both '-mcpu' and '-march' are specified, the assembler will use
  4834. the setting for '-mcpu'. If neither are specified, the assembler
  4835. will default to '-mcpu=all'.
  4836. The architecture option can be extended with the same instruction
  4837. set extension options as the '-mcpu' option. Unlike '-mcpu',
  4838. extensions are not always enabled by default, *Note AArch64
  4839. Extensions::.
  4840. '-mverbose-error'
  4841. This option enables verbose error messages for AArch64 gas. This
  4842. option is enabled by default.
  4843. '-mno-verbose-error'
  4844. This option disables verbose error messages in AArch64 gas.
  4845. 
  4846. File: as.info, Node: AArch64 Extensions, Next: AArch64 Syntax, Prev: AArch64 Options, Up: AArch64-Dependent
  4847. 9.1.2 Architecture Extensions
  4848. -----------------------------
  4849. The table below lists the permitted architecture extensions that are
  4850. supported by the assembler and the conditions under which they are
  4851. automatically enabled.
  4852. Multiple extensions may be specified, separated by a '+'. Extension
  4853. mnemonics may also be removed from those the assembler accepts. This is
  4854. done by prepending 'no' to the option that adds the extension.
  4855. Extensions that are removed must be listed after all extensions that
  4856. have been added.
  4857. Enabling an extension that requires other extensions will
  4858. automatically cause those extensions to be enabled. Similarly,
  4859. disabling an extension that is required by other extensions will
  4860. automatically cause those extensions to be disabled.
  4861. Extension Minimum Enabled by Description
  4862. Architecture default
  4863. ----------------------------------------------------------------------------
  4864. 'i8mm' ARMv8.2-A ARMv8.6-A Enable Int8 Matrix Multiply
  4865. or later extension.
  4866. 'f32mm' ARMv8.2-A No Enable F32 Matrix Multiply extension.
  4867. 'f64mm' ARMv8.2-A No Enable F64 Matrix Multiply extension.
  4868. 'bf16' ARMv8.2-A ARMv8.6-A Enable BFloat16 extension.
  4869. or later
  4870. 'compnum' ARMv8.2-A ARMv8.3-A Enable the complex number SIMD
  4871. or later extensions. This implies 'fp16' and
  4872. 'simd'.
  4873. 'crc' ARMv8-A ARMv8.1-A Enable CRC instructions.
  4874. or later
  4875. 'crypto' ARMv8-A No Enable cryptographic extensions.
  4876. This implies 'fp', 'simd', 'aes' and
  4877. 'sha2'.
  4878. 'aes' ARMv8-A No Enable the AES cryptographic
  4879. extensions. This implies 'fp' and
  4880. 'simd'.
  4881. 'sha2' ARMv8-A No Enable the SHA2 cryptographic
  4882. extensions. This implies 'fp' and
  4883. 'simd'.
  4884. 'sha3' ARMv8.2-A No Enable the ARMv8.2-A SHA2 and SHA3
  4885. cryptographic extensions. This
  4886. implies 'fp', 'simd' and 'sha2'.
  4887. 'sm4' ARMv8.2-A No Enable the ARMv8.2-A SM3 and SM4
  4888. cryptographic extensions. This
  4889. implies 'fp' and 'simd'.
  4890. 'fp' ARMv8-A ARMv8-A or Enable floating-point extensions.
  4891. later
  4892. 'fp16' ARMv8.2-A ARMv8.2-A Enable ARMv8.2 16-bit floating-point
  4893. or later support. This implies 'fp'.
  4894. 'lor' ARMv8-A ARMv8.1-A Enable Limited Ordering Regions
  4895. or later extensions.
  4896. 'lse' ARMv8-A ARMv8.1-A Enable Large System extensions.
  4897. or later
  4898. 'pan' ARMv8-A ARMv8.1-A Enable Privileged Access Never
  4899. or later support.
  4900. 'profile' ARMv8.2-A No Enable statistical profiling
  4901. extensions.
  4902. 'ras' ARMv8-A ARMv8.2-A Enable the Reliability, Availability
  4903. or later and Serviceability extension.
  4904. 'rcpc' ARMv8.2-A ARMv8.3-A Enable the weak release consistency
  4905. or later extension.
  4906. 'rdma' ARMv8-A ARMv8.1-A Enable ARMv8.1 Advanced SIMD
  4907. or later extensions. This implies 'simd'.
  4908. 'simd' ARMv8-A ARMv8-A or Enable Advanced SIMD extensions.
  4909. later This implies 'fp'.
  4910. 'sve' ARMv8.2-A No Enable the Scalable Vector
  4911. Extensions. This implies 'fp16',
  4912. 'simd' and 'compnum'.
  4913. 'dotprod' ARMv8.2-A ARMv8.4-A Enable the Dot Product extension.
  4914. or later This implies 'simd'.
  4915. 'fp16fml' ARMv8.2-A ARMv8.4-A Enable ARMv8.2 16-bit floating-point
  4916. or later multiplication variant support. This
  4917. implies 'fp16'.
  4918. 'sb' ARMv8-A ARMv8.5-A Enable the speculation barrier
  4919. or later instruction sb.
  4920. 'predres' ARMv8-A ARMv8.5-A Enable the Execution and Data and
  4921. or later Prediction instructions.
  4922. 'rng' ARMv8.5-A No Enable ARMv8.5-A random number
  4923. instructions.
  4924. 'ssbs' ARMv8-A ARMv8.5-A Enable Speculative Store Bypassing
  4925. or later Safe state read and write.
  4926. 'memtag' ARMv8.5-A No Enable ARMv8.5-A Memory Tagging
  4927. Extensions.
  4928. 'tme' ARMv8-A No Enable Transactional Memory
  4929. Extensions.
  4930. 'sve2' ARMv8-A No Enable the SVE2 Extension.
  4931. 'sve2-bitperm'ARMv8-A No Enable SVE2 BITPERM Extension.
  4932. 'sve2-sm4'ARMv8-A No Enable SVE2 SM4 Extension.
  4933. 'sve2-aes'ARMv8-A No Enable SVE2 AES Extension. This also
  4934. enables the .Q->.B form of the
  4935. 'pmullt' and 'pmullb' instructions.
  4936. 'sve2-sha3'ARMv8-A No Enable SVE2 SHA3 Extension.
  4937. 
  4938. File: as.info, Node: AArch64 Syntax, Next: AArch64 Floating Point, Prev: AArch64 Extensions, Up: AArch64-Dependent
  4939. 9.1.3 Syntax
  4940. ------------
  4941. * Menu:
  4942. * AArch64-Chars:: Special Characters
  4943. * AArch64-Regs:: Register Names
  4944. * AArch64-Relocations:: Relocations
  4945. 
  4946. File: as.info, Node: AArch64-Chars, Next: AArch64-Regs, Up: AArch64 Syntax
  4947. 9.1.3.1 Special Characters
  4948. ..........................
  4949. The presence of a '//' on a line indicates the start of a comment that
  4950. extends to the end of the current line. If a '#' appears as the first
  4951. character of a line, the whole line is treated as a comment.
  4952. The ';' character can be used instead of a newline to separate
  4953. statements.
  4954. The '#' can be optionally used to indicate immediate operands.
  4955. 
  4956. File: as.info, Node: AArch64-Regs, Next: AArch64-Relocations, Prev: AArch64-Chars, Up: AArch64 Syntax
  4957. 9.1.3.2 Register Names
  4958. ......................
  4959. Please refer to the section '4.4 Register Names' of 'ARMv8 Instruction
  4960. Set Overview', which is available at <http://infocenter.arm.com>.
  4961. 
  4962. File: as.info, Node: AArch64-Relocations, Prev: AArch64-Regs, Up: AArch64 Syntax
  4963. 9.1.3.3 Relocations
  4964. ...................
  4965. Relocations for 'MOVZ' and 'MOVK' instructions can be generated by
  4966. prefixing the label with '#:abs_g2:' etc. For example to load the
  4967. 48-bit absolute address of FOO into x0:
  4968. movz x0, #:abs_g2:foo // bits 32-47, overflow check
  4969. movk x0, #:abs_g1_nc:foo // bits 16-31, no overflow check
  4970. movk x0, #:abs_g0_nc:foo // bits 0-15, no overflow check
  4971. Relocations for 'ADRP', and 'ADD', 'LDR' or 'STR' instructions can be
  4972. generated by prefixing the label with ':pg_hi21:' and '#:lo12:'
  4973. respectively.
  4974. For example to use 33-bit (+/-4GB) pc-relative addressing to load the
  4975. address of FOO into x0:
  4976. adrp x0, :pg_hi21:foo
  4977. add x0, x0, #:lo12:foo
  4978. Or to load the value of FOO into x0:
  4979. adrp x0, :pg_hi21:foo
  4980. ldr x0, [x0, #:lo12:foo]
  4981. Note that ':pg_hi21:' is optional.
  4982. adrp x0, foo
  4983. is equivalent to
  4984. adrp x0, :pg_hi21:foo
  4985. 
  4986. File: as.info, Node: AArch64 Floating Point, Next: AArch64 Directives, Prev: AArch64 Syntax, Up: AArch64-Dependent
  4987. 9.1.4 Floating Point
  4988. --------------------
  4989. The AArch64 architecture uses IEEE floating-point numbers.
  4990. 
  4991. File: as.info, Node: AArch64 Directives, Next: AArch64 Opcodes, Prev: AArch64 Floating Point, Up: AArch64-Dependent
  4992. 9.1.5 AArch64 Machine Directives
  4993. --------------------------------
  4994. '.arch NAME'
  4995. Select the target architecture. Valid values for NAME are the same
  4996. as for the '-march' command-line option.
  4997. Specifying '.arch' clears any previously selected architecture
  4998. extensions.
  4999. '.arch_extension NAME'
  5000. Add or remove an architecture extension to the target architecture.
  5001. Valid values for NAME are the same as those accepted as
  5002. architectural extensions by the '-mcpu' command-line option.
  5003. '.arch_extension' may be used multiple times to add or remove
  5004. extensions incrementally to the architecture being compiled for.
  5005. '.bss'
  5006. This directive switches to the '.bss' section.
  5007. '.cpu NAME'
  5008. Set the target processor. Valid values for NAME are the same as
  5009. those accepted by the '-mcpu=' command-line option.
  5010. '.dword EXPRESSIONS'
  5011. The '.dword' directive produces 64 bit values.
  5012. '.even'
  5013. The '.even' directive aligns the output on the next even byte
  5014. boundary.
  5015. '.float16 VALUE [,...,VALUE_N]'
  5016. Place the half precision floating point representation of one or
  5017. more floating-point values into the current section. The format
  5018. used to encode the floating point values is always the IEEE
  5019. 754-2008 half precision floating point format.
  5020. '.inst EXPRESSIONS'
  5021. Inserts the expressions into the output as if they were
  5022. instructions, rather than data.
  5023. '.ltorg'
  5024. This directive causes the current contents of the literal pool to
  5025. be dumped into the current section (which is assumed to be the
  5026. .text section) at the current location (aligned to a word
  5027. boundary). GAS maintains a separate literal pool for each section
  5028. and each sub-section. The '.ltorg' directive will only affect the
  5029. literal pool of the current section and sub-section. At the end of
  5030. assembly all remaining, un-empty literal pools will automatically
  5031. be dumped.
  5032. Note - older versions of GAS would dump the current literal pool
  5033. any time a section change occurred. This is no longer done, since
  5034. it prevents accurate control of the placement of literal pools.
  5035. '.pool'
  5036. This is a synonym for .ltorg.
  5037. 'NAME .req REGISTER NAME'
  5038. This creates an alias for REGISTER NAME called NAME. For example:
  5039. foo .req w0
  5040. ip0, ip1, lr and fp are automatically defined to alias to X16, X17,
  5041. X30 and X29 respectively.
  5042. '.tlsdescadd'
  5043. Emits a TLSDESC_ADD reloc on the next instruction.
  5044. '.tlsdesccall'
  5045. Emits a TLSDESC_CALL reloc on the next instruction.
  5046. '.tlsdescldr'
  5047. Emits a TLSDESC_LDR reloc on the next instruction.
  5048. '.unreq ALIAS-NAME'
  5049. This undefines a register alias which was previously defined using
  5050. the 'req' directive. For example:
  5051. foo .req w0
  5052. .unreq foo
  5053. An error occurs if the name is undefined. Note - this pseudo op
  5054. can be used to delete builtin in register name aliases (eg 'w0').
  5055. This should only be done if it is really necessary.
  5056. '.variant_pcs SYMBOL'
  5057. This directive marks SYMBOL referencing a function that may follow
  5058. a variant procedure call standard with different register usage
  5059. convention from the base procedure call standard.
  5060. '.xword EXPRESSIONS'
  5061. The '.xword' directive produces 64 bit values. This is the same as
  5062. the '.dword' directive.
  5063. '.cfi_b_key_frame'
  5064. The '.cfi_b_key_frame' directive inserts a 'B' character into the
  5065. CIE corresponding to the current frame's FDE, meaning that its
  5066. return address has been signed with the B-key. If two frames are
  5067. signed with differing keys then they will not share the same CIE.
  5068. This information is intended to be used by the stack unwinder in
  5069. order to properly authenticate return addresses.
  5070. 
  5071. File: as.info, Node: AArch64 Opcodes, Next: AArch64 Mapping Symbols, Prev: AArch64 Directives, Up: AArch64-Dependent
  5072. 9.1.6 Opcodes
  5073. -------------
  5074. GAS implements all the standard AArch64 opcodes. It also implements
  5075. several pseudo opcodes, including several synthetic load instructions.
  5076. 'LDR ='
  5077. ldr <register> , =<expression>
  5078. The constant expression will be placed into the nearest literal
  5079. pool (if it not already there) and a PC-relative LDR instruction
  5080. will be generated.
  5081. For more information on the AArch64 instruction set and assembly
  5082. language notation, see 'ARMv8 Instruction Set Overview' available at
  5083. <http://infocenter.arm.com>.
  5084. 
  5085. File: as.info, Node: AArch64 Mapping Symbols, Prev: AArch64 Opcodes, Up: AArch64-Dependent
  5086. 9.1.7 Mapping Symbols
  5087. ---------------------
  5088. The AArch64 ELF specification requires that special symbols be inserted
  5089. into object files to mark certain features:
  5090. '$x'
  5091. At the start of a region of code containing AArch64 instructions.
  5092. '$d'
  5093. At the start of a region of data.
  5094. 
  5095. File: as.info, Node: Alpha-Dependent, Next: ARC-Dependent, Prev: AArch64-Dependent, Up: Machine Dependencies
  5096. 9.2 Alpha Dependent Features
  5097. ============================
  5098. * Menu:
  5099. * Alpha Notes:: Notes
  5100. * Alpha Options:: Options
  5101. * Alpha Syntax:: Syntax
  5102. * Alpha Floating Point:: Floating Point
  5103. * Alpha Directives:: Alpha Machine Directives
  5104. * Alpha Opcodes:: Opcodes
  5105. 
  5106. File: as.info, Node: Alpha Notes, Next: Alpha Options, Up: Alpha-Dependent
  5107. 9.2.1 Notes
  5108. -----------
  5109. The documentation here is primarily for the ELF object format. 'as'
  5110. also supports the ECOFF and EVAX formats, but features specific to these
  5111. formats are not yet documented.
  5112. 
  5113. File: as.info, Node: Alpha Options, Next: Alpha Syntax, Prev: Alpha Notes, Up: Alpha-Dependent
  5114. 9.2.2 Options
  5115. -------------
  5116. '-mCPU'
  5117. This option specifies the target processor. If an attempt is made
  5118. to assemble an instruction which will not execute on the target
  5119. processor, the assembler may either expand the instruction as a
  5120. macro or issue an error message. This option is equivalent to the
  5121. '.arch' directive.
  5122. The following processor names are recognized: '21064', '21064a',
  5123. '21066', '21068', '21164', '21164a', '21164pc', '21264', '21264a',
  5124. '21264b', 'ev4', 'ev5', 'lca45', 'ev5', 'ev56', 'pca56', 'ev6',
  5125. 'ev67', 'ev68'. The special name 'all' may be used to allow the
  5126. assembler to accept instructions valid for any Alpha processor.
  5127. In order to support existing practice in OSF/1 with respect to
  5128. '.arch', and existing practice within 'MILO' (the Linux ARC
  5129. bootloader), the numbered processor names (e.g. 21064) enable the
  5130. processor-specific PALcode instructions, while the "electro-vlasic"
  5131. names (e.g. 'ev4') do not.
  5132. '-mdebug'
  5133. '-no-mdebug'
  5134. Enables or disables the generation of '.mdebug' encapsulation for
  5135. stabs directives and procedure descriptors. The default is to
  5136. automatically enable '.mdebug' when the first stabs directive is
  5137. seen.
  5138. '-relax'
  5139. This option forces all relocations to be put into the object file,
  5140. instead of saving space and resolving some relocations at assembly
  5141. time. Note that this option does not propagate all symbol
  5142. arithmetic into the object file, because not all symbol arithmetic
  5143. can be represented. However, the option can still be useful in
  5144. specific applications.
  5145. '-replace'
  5146. '-noreplace'
  5147. Enables or disables the optimization of procedure calls, both at
  5148. assemblage and at link time. These options are only available for
  5149. VMS targets and '-replace' is the default. See section 1.4.1 of
  5150. the OpenVMS Linker Utility Manual.
  5151. '-g'
  5152. This option is used when the compiler generates debug information.
  5153. When 'gcc' is using 'mips-tfile' to generate debug information for
  5154. ECOFF, local labels must be passed through to the object file.
  5155. Otherwise this option has no effect.
  5156. '-GSIZE'
  5157. A local common symbol larger than SIZE is placed in '.bss', while
  5158. smaller symbols are placed in '.sbss'.
  5159. '-F'
  5160. '-32addr'
  5161. These options are ignored for backward compatibility.
  5162. 
  5163. File: as.info, Node: Alpha Syntax, Next: Alpha Floating Point, Prev: Alpha Options, Up: Alpha-Dependent
  5164. 9.2.3 Syntax
  5165. ------------
  5166. The assembler syntax closely follow the Alpha Reference Manual;
  5167. assembler directives and general syntax closely follow the OSF/1 and
  5168. OpenVMS syntax, with a few differences for ELF.
  5169. * Menu:
  5170. * Alpha-Chars:: Special Characters
  5171. * Alpha-Regs:: Register Names
  5172. * Alpha-Relocs:: Relocations
  5173. 
  5174. File: as.info, Node: Alpha-Chars, Next: Alpha-Regs, Up: Alpha Syntax
  5175. 9.2.3.1 Special Characters
  5176. ..........................
  5177. '#' is the line comment character. Note that if '#' is the first
  5178. character on a line then it can also be a logical line number directive
  5179. (*note Comments::) or a preprocessor control command (*note
  5180. Preprocessing::).
  5181. ';' can be used instead of a newline to separate statements.
  5182. 
  5183. File: as.info, Node: Alpha-Regs, Next: Alpha-Relocs, Prev: Alpha-Chars, Up: Alpha Syntax
  5184. 9.2.3.2 Register Names
  5185. ......................
  5186. The 32 integer registers are referred to as '$N' or '$rN'. In addition,
  5187. registers 15, 28, 29, and 30 may be referred to by the symbols '$fp',
  5188. '$at', '$gp', and '$sp' respectively.
  5189. The 32 floating-point registers are referred to as '$fN'.
  5190. 
  5191. File: as.info, Node: Alpha-Relocs, Prev: Alpha-Regs, Up: Alpha Syntax
  5192. 9.2.3.3 Relocations
  5193. ...................
  5194. Some of these relocations are available for ECOFF, but mostly only for
  5195. ELF. They are modeled after the relocation format introduced in Digital
  5196. Unix 4.0, but there are additions.
  5197. The format is '!TAG' or '!TAG!NUMBER' where TAG is the name of the
  5198. relocation. In some cases NUMBER is used to relate specific
  5199. instructions.
  5200. The relocation is placed at the end of the instruction like so:
  5201. ldah $0,a($29) !gprelhigh
  5202. lda $0,a($0) !gprellow
  5203. ldq $1,b($29) !literal!100
  5204. ldl $2,0($1) !lituse_base!100
  5205. '!literal'
  5206. '!literal!N'
  5207. Used with an 'ldq' instruction to load the address of a symbol from
  5208. the GOT.
  5209. A sequence number N is optional, and if present is used to pair
  5210. 'lituse' relocations with this 'literal' relocation. The 'lituse'
  5211. relocations are used by the linker to optimize the code based on
  5212. the final location of the symbol.
  5213. Note that these optimizations are dependent on the data flow of the
  5214. program. Therefore, if _any_ 'lituse' is paired with a 'literal'
  5215. relocation, then _all_ uses of the register set by the 'literal'
  5216. instruction must also be marked with 'lituse' relocations. This is
  5217. because the original 'literal' instruction may be deleted or
  5218. transformed into another instruction.
  5219. Also note that there may be a one-to-many relationship between
  5220. 'literal' and 'lituse', but not a many-to-one. That is, if there
  5221. are two code paths that load up the same address and feed the value
  5222. to a single use, then the use may not use a 'lituse' relocation.
  5223. '!lituse_base!N'
  5224. Used with any memory format instruction (e.g. 'ldl') to indicate
  5225. that the literal is used for an address load. The offset field of
  5226. the instruction must be zero. During relaxation, the code may be
  5227. altered to use a gp-relative load.
  5228. '!lituse_jsr!N'
  5229. Used with a register branch format instruction (e.g. 'jsr') to
  5230. indicate that the literal is used for a call. During relaxation,
  5231. the code may be altered to use a direct branch (e.g. 'bsr').
  5232. '!lituse_jsrdirect!N'
  5233. Similar to 'lituse_jsr', but also that this call cannot be vectored
  5234. through a PLT entry. This is useful for functions with special
  5235. calling conventions which do not allow the normal call-clobbered
  5236. registers to be clobbered.
  5237. '!lituse_bytoff!N'
  5238. Used with a byte mask instruction (e.g. 'extbl') to indicate that
  5239. only the low 3 bits of the address are relevant. During
  5240. relaxation, the code may be altered to use an immediate instead of
  5241. a register shift.
  5242. '!lituse_addr!N'
  5243. Used with any other instruction to indicate that the original
  5244. address is in fact used, and the original 'ldq' instruction may not
  5245. be altered or deleted. This is useful in conjunction with
  5246. 'lituse_jsr' to test whether a weak symbol is defined.
  5247. ldq $27,foo($29) !literal!1
  5248. beq $27,is_undef !lituse_addr!1
  5249. jsr $26,($27),foo !lituse_jsr!1
  5250. '!lituse_tlsgd!N'
  5251. Used with a register branch format instruction to indicate that the
  5252. literal is the call to '__tls_get_addr' used to compute the address
  5253. of the thread-local storage variable whose descriptor was loaded
  5254. with '!tlsgd!N'.
  5255. '!lituse_tlsldm!N'
  5256. Used with a register branch format instruction to indicate that the
  5257. literal is the call to '__tls_get_addr' used to compute the address
  5258. of the base of the thread-local storage block for the current
  5259. module. The descriptor for the module must have been loaded with
  5260. '!tlsldm!N'.
  5261. '!gpdisp!N'
  5262. Used with 'ldah' and 'lda' to load the GP from the current address,
  5263. a-la the 'ldgp' macro. The source register for the 'ldah'
  5264. instruction must contain the address of the 'ldah' instruction.
  5265. There must be exactly one 'lda' instruction paired with the 'ldah'
  5266. instruction, though it may appear anywhere in the instruction
  5267. stream. The immediate operands must be zero.
  5268. bsr $26,foo
  5269. ldah $29,0($26) !gpdisp!1
  5270. lda $29,0($29) !gpdisp!1
  5271. '!gprelhigh'
  5272. Used with an 'ldah' instruction to add the high 16 bits of a 32-bit
  5273. displacement from the GP.
  5274. '!gprellow'
  5275. Used with any memory format instruction to add the low 16 bits of a
  5276. 32-bit displacement from the GP.
  5277. '!gprel'
  5278. Used with any memory format instruction to add a 16-bit
  5279. displacement from the GP.
  5280. '!samegp'
  5281. Used with any branch format instruction to skip the GP load at the
  5282. target address. The referenced symbol must have the same GP as the
  5283. source object file, and it must be declared to either not use '$27'
  5284. or perform a standard GP load in the first two instructions via the
  5285. '.prologue' directive.
  5286. '!tlsgd'
  5287. '!tlsgd!N'
  5288. Used with an 'lda' instruction to load the address of a TLS
  5289. descriptor for a symbol in the GOT.
  5290. The sequence number N is optional, and if present it used to pair
  5291. the descriptor load with both the 'literal' loading the address of
  5292. the '__tls_get_addr' function and the 'lituse_tlsgd' marking the
  5293. call to that function.
  5294. For proper relaxation, both the 'tlsgd', 'literal' and 'lituse'
  5295. relocations must be in the same extended basic block. That is, the
  5296. relocation with the lowest address must be executed first at
  5297. runtime.
  5298. '!tlsldm'
  5299. '!tlsldm!N'
  5300. Used with an 'lda' instruction to load the address of a TLS
  5301. descriptor for the current module in the GOT.
  5302. Similar in other respects to 'tlsgd'.
  5303. '!gotdtprel'
  5304. Used with an 'ldq' instruction to load the offset of the TLS symbol
  5305. within its module's thread-local storage block. Also known as the
  5306. dynamic thread pointer offset or dtp-relative offset.
  5307. '!dtprelhi'
  5308. '!dtprello'
  5309. '!dtprel'
  5310. Like 'gprel' relocations except they compute dtp-relative offsets.
  5311. '!gottprel'
  5312. Used with an 'ldq' instruction to load the offset of the TLS symbol
  5313. from the thread pointer. Also known as the tp-relative offset.
  5314. '!tprelhi'
  5315. '!tprello'
  5316. '!tprel'
  5317. Like 'gprel' relocations except they compute tp-relative offsets.
  5318. 
  5319. File: as.info, Node: Alpha Floating Point, Next: Alpha Directives, Prev: Alpha Syntax, Up: Alpha-Dependent
  5320. 9.2.4 Floating Point
  5321. --------------------
  5322. The Alpha family uses both IEEE and VAX floating-point numbers.
  5323. 
  5324. File: as.info, Node: Alpha Directives, Next: Alpha Opcodes, Prev: Alpha Floating Point, Up: Alpha-Dependent
  5325. 9.2.5 Alpha Assembler Directives
  5326. --------------------------------
  5327. 'as' for the Alpha supports many additional directives for compatibility
  5328. with the native assembler. This section describes them only briefly.
  5329. These are the additional directives in 'as' for the Alpha:
  5330. '.arch CPU'
  5331. Specifies the target processor. This is equivalent to the '-mCPU'
  5332. command-line option. *Note Options: Alpha Options, for a list of
  5333. values for CPU.
  5334. '.ent FUNCTION[, N]'
  5335. Mark the beginning of FUNCTION. An optional number may follow for
  5336. compatibility with the OSF/1 assembler, but is ignored. When
  5337. generating '.mdebug' information, this will create a procedure
  5338. descriptor for the function. In ELF, it will mark the symbol as a
  5339. function a-la the generic '.type' directive.
  5340. '.end FUNCTION'
  5341. Mark the end of FUNCTION. In ELF, it will set the size of the
  5342. symbol a-la the generic '.size' directive.
  5343. '.mask MASK, OFFSET'
  5344. Indicate which of the integer registers are saved in the current
  5345. function's stack frame. MASK is interpreted a bit mask in which
  5346. bit N set indicates that register N is saved. The registers are
  5347. saved in a block located OFFSET bytes from the "canonical frame
  5348. address" (CFA) which is the value of the stack pointer on entry to
  5349. the function. The registers are saved sequentially, except that
  5350. the return address register (normally '$26') is saved first.
  5351. This and the other directives that describe the stack frame are
  5352. currently only used when generating '.mdebug' information. They
  5353. may in the future be used to generate DWARF2 '.debug_frame' unwind
  5354. information for hand written assembly.
  5355. '.fmask MASK, OFFSET'
  5356. Indicate which of the floating-point registers are saved in the
  5357. current stack frame. The MASK and OFFSET parameters are
  5358. interpreted as with '.mask'.
  5359. '.frame FRAMEREG, FRAMEOFFSET, RETREG[, ARGOFFSET]'
  5360. Describes the shape of the stack frame. The frame pointer in use
  5361. is FRAMEREG; normally this is either '$fp' or '$sp'. The frame
  5362. pointer is FRAMEOFFSET bytes below the CFA. The return address is
  5363. initially located in RETREG until it is saved as indicated in
  5364. '.mask'. For compatibility with OSF/1 an optional ARGOFFSET
  5365. parameter is accepted and ignored. It is believed to indicate the
  5366. offset from the CFA to the saved argument registers.
  5367. '.prologue N'
  5368. Indicate that the stack frame is set up and all registers have been
  5369. spilled. The argument N indicates whether and how the function
  5370. uses the incoming "procedure vector" (the address of the called
  5371. function) in '$27'. 0 indicates that '$27' is not used; 1
  5372. indicates that the first two instructions of the function use '$27'
  5373. to perform a load of the GP register; 2 indicates that '$27' is
  5374. used in some non-standard way and so the linker cannot elide the
  5375. load of the procedure vector during relaxation.
  5376. '.usepv FUNCTION, WHICH'
  5377. Used to indicate the use of the '$27' register, similar to
  5378. '.prologue', but without the other semantics of needing to be
  5379. inside an open '.ent'/'.end' block.
  5380. The WHICH argument should be either 'no', indicating that '$27' is
  5381. not used, or 'std', indicating that the first two instructions of
  5382. the function perform a GP load.
  5383. One might use this directive instead of '.prologue' if you are also
  5384. using dwarf2 CFI directives.
  5385. '.gprel32 EXPRESSION'
  5386. Computes the difference between the address in EXPRESSION and the
  5387. GP for the current object file, and stores it in 4 bytes. In
  5388. addition to being smaller than a full 8 byte address, this also
  5389. does not require a dynamic relocation when used in a shared
  5390. library.
  5391. '.t_floating EXPRESSION'
  5392. Stores EXPRESSION as an IEEE double precision value.
  5393. '.s_floating EXPRESSION'
  5394. Stores EXPRESSION as an IEEE single precision value.
  5395. '.f_floating EXPRESSION'
  5396. Stores EXPRESSION as a VAX F format value.
  5397. '.g_floating EXPRESSION'
  5398. Stores EXPRESSION as a VAX G format value.
  5399. '.d_floating EXPRESSION'
  5400. Stores EXPRESSION as a VAX D format value.
  5401. '.set FEATURE'
  5402. Enables or disables various assembler features. Using the positive
  5403. name of the feature enables while using 'noFEATURE' disables.
  5404. 'at'
  5405. Indicates that macro expansions may clobber the "assembler
  5406. temporary" ('$at' or '$28') register. Some macros may not be
  5407. expanded without this and will generate an error message if
  5408. 'noat' is in effect. When 'at' is in effect, a warning will
  5409. be generated if '$at' is used by the programmer.
  5410. 'macro'
  5411. Enables the expansion of macro instructions. Note that
  5412. variants of real instructions, such as 'br label' vs 'br
  5413. $31,label' are considered alternate forms and not macros.
  5414. 'move'
  5415. 'reorder'
  5416. 'volatile'
  5417. These control whether and how the assembler may re-order
  5418. instructions. Accepted for compatibility with the OSF/1
  5419. assembler, but 'as' does not do instruction scheduling, so
  5420. these features are ignored.
  5421. The following directives are recognized for compatibility with the
  5422. OSF/1 assembler but are ignored.
  5423. .proc .aproc
  5424. .reguse .livereg
  5425. .option .aent
  5426. .ugen .eflag
  5427. .alias .noalias
  5428. 
  5429. File: as.info, Node: Alpha Opcodes, Prev: Alpha Directives, Up: Alpha-Dependent
  5430. 9.2.6 Opcodes
  5431. -------------
  5432. For detailed information on the Alpha machine instruction set, see the
  5433. Alpha Architecture Handbook
  5434. (ftp://ftp.digital.com/pub/Digital/info/semiconductor/literature/alphaahb.pdf).
  5435. 
  5436. File: as.info, Node: ARC-Dependent, Next: ARM-Dependent, Prev: Alpha-Dependent, Up: Machine Dependencies
  5437. 9.3 ARC Dependent Features
  5438. ==========================
  5439. * Menu:
  5440. * ARC Options:: Options
  5441. * ARC Syntax:: Syntax
  5442. * ARC Directives:: ARC Machine Directives
  5443. * ARC Modifiers:: ARC Assembler Modifiers
  5444. * ARC Symbols:: ARC Pre-defined Symbols
  5445. * ARC Opcodes:: Opcodes
  5446. 
  5447. File: as.info, Node: ARC Options, Next: ARC Syntax, Up: ARC-Dependent
  5448. 9.3.1 Options
  5449. -------------
  5450. The following options control the type of CPU for which code is
  5451. assembled, and generic constraints on the code generated:
  5452. '-mcpu=CPU'
  5453. Set architecture type and register usage for CPU. There are also
  5454. shortcut alias options available for backward compatibility and
  5455. convenience. Supported values for CPU are
  5456. 'arc600'
  5457. Assemble for ARC 600. Aliases: '-mA6', '-mARC600'.
  5458. 'arc600_norm'
  5459. Assemble for ARC 600 with norm instructions.
  5460. 'arc600_mul64'
  5461. Assemble for ARC 600 with mul64 instructions.
  5462. 'arc600_mul32x16'
  5463. Assemble for ARC 600 with mul32x16 instructions.
  5464. 'arc601'
  5465. Assemble for ARC 601. Alias: '-mARC601'.
  5466. 'arc601_norm'
  5467. Assemble for ARC 601 with norm instructions.
  5468. 'arc601_mul64'
  5469. Assemble for ARC 601 with mul64 instructions.
  5470. 'arc601_mul32x16'
  5471. Assemble for ARC 601 with mul32x16 instructions.
  5472. 'arc700'
  5473. Assemble for ARC 700. Aliases: '-mA7', '-mARC700'.
  5474. 'arcem'
  5475. Assemble for ARC EM. Aliases: '-mEM'
  5476. 'em'
  5477. Assemble for ARC EM, identical as arcem variant.
  5478. 'em4'
  5479. Assemble for ARC EM with code-density instructions.
  5480. 'em4_dmips'
  5481. Assemble for ARC EM with code-density instructions.
  5482. 'em4_fpus'
  5483. Assemble for ARC EM with code-density instructions.
  5484. 'em4_fpuda'
  5485. Assemble for ARC EM with code-density, and double-precision
  5486. assist instructions.
  5487. 'quarkse_em'
  5488. Assemble for QuarkSE-EM cpu.
  5489. 'archs'
  5490. Assemble for ARC HS. Aliases: '-mHS', '-mav2hs'.
  5491. 'hs'
  5492. Assemble for ARC HS.
  5493. 'hs34'
  5494. Assemble for ARC HS34.
  5495. 'hs38'
  5496. Assemble for ARC HS38.
  5497. 'hs38_linux'
  5498. Assemble for ARC HS38 with floating point support on.
  5499. 'nps400'
  5500. Assemble for ARC 700 with NPS-400 extended instructions.
  5501. Note: the '.cpu' directive (*note ARC Directives::) can to be used
  5502. to select a core variant from within assembly code.
  5503. '-EB'
  5504. This option specifies that the output generated by the assembler
  5505. should be marked as being encoded for a big-endian processor.
  5506. '-EL'
  5507. This option specifies that the output generated by the assembler
  5508. should be marked as being encoded for a little-endian processor -
  5509. this is the default.
  5510. '-mcode-density'
  5511. This option turns on Code Density instructions. Only valid for ARC
  5512. EM processors.
  5513. '-mrelax'
  5514. Enable support for assembly-time relaxation. The assembler will
  5515. replace a longer version of an instruction with a shorter one,
  5516. whenever it is possible.
  5517. '-mnps400'
  5518. Enable support for NPS-400 extended instructions.
  5519. '-mspfp'
  5520. Enable support for single-precision floating point instructions.
  5521. '-mdpfp'
  5522. Enable support for double-precision floating point instructions.
  5523. '-mfpuda'
  5524. Enable support for double-precision assist floating point
  5525. instructions. Only valid for ARC EM processors.
  5526. 
  5527. File: as.info, Node: ARC Syntax, Next: ARC Directives, Prev: ARC Options, Up: ARC-Dependent
  5528. 9.3.2 Syntax
  5529. ------------
  5530. * Menu:
  5531. * ARC-Chars:: Special Characters
  5532. * ARC-Regs:: Register Names
  5533. 
  5534. File: as.info, Node: ARC-Chars, Next: ARC-Regs, Up: ARC Syntax
  5535. 9.3.2.1 Special Characters
  5536. ..........................
  5537. '%'
  5538. A register name can optionally be prefixed by a '%' character. So
  5539. register '%r0' is equivalent to 'r0' in the assembly code.
  5540. '#'
  5541. The presence of a '#' character within a line (but not at the start
  5542. of a line) indicates the start of a comment that extends to the end
  5543. of the current line.
  5544. _Note:_ if a line starts with a '#' character then it can also be a
  5545. logical line number directive (*note Comments::) or a preprocessor
  5546. control command (*note Preprocessing::).
  5547. '@'
  5548. Prefixing an operand with an '@' specifies that the operand is a
  5549. symbol and not a register. This is how the assembler disambiguates
  5550. the use of an ARC register name as a symbol. So the instruction
  5551. mov r0, @r0
  5552. moves the address of symbol 'r0' into register 'r0'.
  5553. '`'
  5554. The '`' (backtick) character is used to separate statements on a
  5555. single line.
  5556. '-'
  5557. Used as a separator to obtain a sequence of commands from a C
  5558. preprocessor macro.
  5559. 
  5560. File: as.info, Node: ARC-Regs, Prev: ARC-Chars, Up: ARC Syntax
  5561. 9.3.2.2 Register Names
  5562. ......................
  5563. The ARC assembler uses the following register names for its core
  5564. registers:
  5565. 'r0-r31'
  5566. The core general registers. Registers 'r26' through 'r31' have
  5567. special functions, and are usually referred to by those synonyms.
  5568. 'gp'
  5569. The global pointer and a synonym for 'r26'.
  5570. 'fp'
  5571. The frame pointer and a synonym for 'r27'.
  5572. 'sp'
  5573. The stack pointer and a synonym for 'r28'.
  5574. 'ilink1'
  5575. For ARC 600 and ARC 700, the level 1 interrupt link register and a
  5576. synonym for 'r29'. Not supported for ARCv2.
  5577. 'ilink'
  5578. For ARCv2, the interrupt link register and a synonym for 'r29'.
  5579. Not supported for ARC 600 and ARC 700.
  5580. 'ilink2'
  5581. For ARC 600 and ARC 700, the level 2 interrupt link register and a
  5582. synonym for 'r30'. Not supported for ARC v2.
  5583. 'blink'
  5584. The link register and a synonym for 'r31'.
  5585. 'r32-r59'
  5586. The extension core registers.
  5587. 'lp_count'
  5588. The loop count register.
  5589. 'pcl'
  5590. The word aligned program counter.
  5591. In addition the ARC processor has a large number of _auxiliary
  5592. registers_. The precise set depends on the extensions being supported,
  5593. but the following baseline set are always defined:
  5594. 'identity'
  5595. Processor Identification register. Auxiliary register address 0x4.
  5596. 'pc'
  5597. Program Counter. Auxiliary register address 0x6.
  5598. 'status32'
  5599. Status register. Auxiliary register address 0x0a.
  5600. 'bta'
  5601. Branch Target Address. Auxiliary register address 0x412.
  5602. 'ecr'
  5603. Exception Cause Register. Auxiliary register address 0x403.
  5604. 'int_vector_base'
  5605. Interrupt Vector Base address. Auxiliary register address 0x25.
  5606. 'status32_p0'
  5607. Stored STATUS32 register on entry to level P0 interrupts.
  5608. Auxiliary register address 0xb.
  5609. 'aux_user_sp'
  5610. Saved User Stack Pointer. Auxiliary register address 0xd.
  5611. 'eret'
  5612. Exception Return Address. Auxiliary register address 0x400.
  5613. 'erbta'
  5614. BTA saved on exception entry. Auxiliary register address 0x401.
  5615. 'erstatus'
  5616. STATUS32 saved on exception. Auxiliary register address 0x402.
  5617. 'bcr_ver'
  5618. Build Configuration Registers Version. Auxiliary register address
  5619. 0x60.
  5620. 'bta_link_build'
  5621. Build configuration for: BTA Registers. Auxiliary register address
  5622. 0x63.
  5623. 'vecbase_ac_build'
  5624. Build configuration for: Interrupts. Auxiliary register address
  5625. 0x68.
  5626. 'rf_build'
  5627. Build configuration for: Core Registers. Auxiliary register
  5628. address 0x6e.
  5629. 'dccm_build'
  5630. DCCM RAM Configuration Register. Auxiliary register address 0xc1.
  5631. Additional auxiliary register names are defined according to the
  5632. processor architecture version and extensions selected by the options.
  5633. 
  5634. File: as.info, Node: ARC Directives, Next: ARC Modifiers, Prev: ARC Syntax, Up: ARC-Dependent
  5635. 9.3.3 ARC Machine Directives
  5636. ----------------------------
  5637. The ARC version of 'as' supports the following additional machine
  5638. directives:
  5639. '.lcomm SYMBOL, LENGTH[, ALIGNMENT]'
  5640. Reserve LENGTH (an absolute expression) bytes for a local common
  5641. denoted by SYMBOL. The section and value of SYMBOL are those of
  5642. the new local common. The addresses are allocated in the bss
  5643. section, so that at run-time the bytes start off zeroed. Since
  5644. SYMBOL is not declared global, it is normally not visible to 'ld'.
  5645. The optional third parameter, ALIGNMENT, specifies the desired
  5646. alignment of the symbol in the bss section, specified as a byte
  5647. boundary (for example, an alignment of 16 means that the least
  5648. significant 4 bits of the address should be zero). The alignment
  5649. must be an absolute expression, and it must be a power of two. If
  5650. no alignment is specified, as will set the alignment to the largest
  5651. power of two less than or equal to the size of the symbol, up to a
  5652. maximum of 16.
  5653. '.lcommon SYMBOL, LENGTH[, ALIGNMENT]'
  5654. The same as 'lcomm' directive.
  5655. '.cpu CPU'
  5656. The '.cpu' directive must be followed by the desired core version.
  5657. Permitted values for CPU are:
  5658. 'ARC600'
  5659. Assemble for the ARC600 instruction set.
  5660. 'arc600_norm'
  5661. Assemble for ARC 600 with norm instructions.
  5662. 'arc600_mul64'
  5663. Assemble for ARC 600 with mul64 instructions.
  5664. 'arc600_mul32x16'
  5665. Assemble for ARC 600 with mul32x16 instructions.
  5666. 'arc601'
  5667. Assemble for ARC 601 instruction set.
  5668. 'arc601_norm'
  5669. Assemble for ARC 601 with norm instructions.
  5670. 'arc601_mul64'
  5671. Assemble for ARC 601 with mul64 instructions.
  5672. 'arc601_mul32x16'
  5673. Assemble for ARC 601 with mul32x16 instructions.
  5674. 'ARC700'
  5675. Assemble for the ARC700 instruction set.
  5676. 'NPS400'
  5677. Assemble for the NPS400 instruction set.
  5678. 'EM'
  5679. Assemble for the ARC EM instruction set.
  5680. 'arcem'
  5681. Assemble for ARC EM instruction set
  5682. 'em4'
  5683. Assemble for ARC EM with code-density instructions.
  5684. 'em4_dmips'
  5685. Assemble for ARC EM with code-density instructions.
  5686. 'em4_fpus'
  5687. Assemble for ARC EM with code-density instructions.
  5688. 'em4_fpuda'
  5689. Assemble for ARC EM with code-density, and double-precision
  5690. assist instructions.
  5691. 'quarkse_em'
  5692. Assemble for QuarkSE-EM instruction set.
  5693. 'HS'
  5694. Assemble for the ARC HS instruction set.
  5695. 'archs'
  5696. Assemble for ARC HS instruction set.
  5697. 'hs'
  5698. Assemble for ARC HS instruction set.
  5699. 'hs34'
  5700. Assemble for ARC HS34 instruction set.
  5701. 'hs38'
  5702. Assemble for ARC HS38 instruction set.
  5703. 'hs38_linux'
  5704. Assemble for ARC HS38 with floating point support on.
  5705. Note: the '.cpu' directive overrides the command-line option
  5706. '-mcpu=CPU'; a warning is emitted when the version is not
  5707. consistent between the two.
  5708. '.extAuxRegister NAME, ADDR, MODE'
  5709. Auxiliary registers can be defined in the assembler source code by
  5710. using this directive. The first parameter, NAME, is the name of
  5711. the new auxiliary register. The second parameter, ADDR, is address
  5712. the of the auxiliary register. The third parameter, MODE,
  5713. specifies whether the register is readable and/or writable and is
  5714. one of:
  5715. 'r'
  5716. Read only;
  5717. 'w'
  5718. Write only;
  5719. 'r|w'
  5720. Read and write.
  5721. For example:
  5722. .extAuxRegister mulhi, 0x12, w
  5723. specifies a write only extension auxiliary register, MULHI at
  5724. address 0x12.
  5725. '.extCondCode SUFFIX, VAL'
  5726. ARC supports extensible condition codes. This directive defines a
  5727. new condition code, to be known by the suffix, SUFFIX and will
  5728. depend on the value, VAL in the condition code.
  5729. For example:
  5730. .extCondCode is_busy,0x14
  5731. add.is_busy r1,r2,r3
  5732. will only execute the 'add' instruction if the condition code value
  5733. is 0x14.
  5734. '.extCoreRegister NAME, REGNUM, MODE, SHORTCUT'
  5735. Specifies an extension core register named NAME as a synonym for
  5736. the register numbered REGNUM. The register number must be between
  5737. 32 and 59. The third argument, MODE, indicates whether the
  5738. register is readable and/or writable and is one of:
  5739. 'r'
  5740. Read only;
  5741. 'w'
  5742. Write only;
  5743. 'r|w'
  5744. Read and write.
  5745. The final parameter, SHORTCUT indicates whether the register has a
  5746. short cut in the pipeline. The valid values are:
  5747. 'can_shortcut'
  5748. The register has a short cut in the pipeline;
  5749. 'cannot_shortcut'
  5750. The register does not have a short cut in the pipeline.
  5751. For example:
  5752. .extCoreRegister mlo, 57, r , can_shortcut
  5753. defines a read only extension core register, 'mlo', which is
  5754. register 57, and can short cut the pipeline.
  5755. '.extInstruction NAME, OPCODE, SUBOPCODE, SUFFIXCLASS, SYNTAXCLASS'
  5756. ARC allows the user to specify extension instructions. These
  5757. extension instructions are not macros; the assembler creates
  5758. encodings for use of these instructions according to the
  5759. specification by the user.
  5760. The first argument, NAME, gives the name of the instruction.
  5761. The second argument, OPCODE, is the opcode to be used (bits 31:27
  5762. in the encoding).
  5763. The third argument, SUBOPCODE, is the sub-opcode to be used, but
  5764. the correct value also depends on the fifth argument, SYNTAXCLASS
  5765. The fourth argument, SUFFIXCLASS, determines the kinds of suffixes
  5766. to be allowed. Valid values are:
  5767. 'SUFFIX_NONE'
  5768. No suffixes are permitted;
  5769. 'SUFFIX_COND'
  5770. Conditional suffixes are permitted;
  5771. 'SUFFIX_FLAG'
  5772. Flag setting suffixes are permitted.
  5773. 'SUFFIX_COND|SUFFIX_FLAG'
  5774. Both conditional and flag setting suffices are permitted.
  5775. The fifth and final argument, SYNTAXCLASS, determines the syntax
  5776. class for the instruction. It can have the following values:
  5777. 'SYNTAX_2OP'
  5778. Two Operand Instruction;
  5779. 'SYNTAX_3OP'
  5780. Three Operand Instruction.
  5781. 'SYNTAX_1OP'
  5782. One Operand Instruction.
  5783. 'SYNTAX_NOP'
  5784. No Operand Instruction.
  5785. The syntax class may be followed by '|' and one of the following
  5786. modifiers.
  5787. 'OP1_MUST_BE_IMM'
  5788. Modifies syntax class 'SYNTAX_3OP', specifying that the first
  5789. operand of a three-operand instruction must be an immediate
  5790. (i.e., the result is discarded). This is usually used to set
  5791. the flags using specific instructions and not retain results.
  5792. 'OP1_IMM_IMPLIED'
  5793. Modifies syntax class 'SYNTAX_20P', specifying that there is
  5794. an implied immediate destination operand which does not appear
  5795. in the syntax.
  5796. For example, if the source code contains an instruction like:
  5797. inst r1,r2
  5798. the first argument is an implied immediate (that is, the
  5799. result is discarded). This is the same as though the source
  5800. code were: inst 0,r1,r2.
  5801. For example, defining a 64-bit multiplier with immediate operands:
  5802. .extInstruction mp64, 0x07, 0x2d, SUFFIX_COND|SUFFIX_FLAG,
  5803. SYNTAX_3OP|OP1_MUST_BE_IMM
  5804. which specifies an extension instruction named 'mp64' with 3
  5805. operands. It sets the flags and can be used with a condition code,
  5806. for which the first operand is an immediate, i.e. equivalent to
  5807. discarding the result of the operation.
  5808. A two operands instruction variant would be:
  5809. .extInstruction mul64, 0x07, 0x2d, SUFFIX_COND,
  5810. SYNTAX_2OP|OP1_IMM_IMPLIED
  5811. which describes a two operand instruction with an implicit first
  5812. immediate operand. The result of this operation would be
  5813. discarded.
  5814. '.arc_attribute TAG, VALUE'
  5815. Set the ARC object attribute TAG to VALUE.
  5816. The TAG is either an attribute number, or one of the following:
  5817. 'Tag_ARC_PCS_config', 'Tag_ARC_CPU_base', 'Tag_ARC_CPU_variation',
  5818. 'Tag_ARC_CPU_name', 'Tag_ARC_ABI_rf16', 'Tag_ARC_ABI_osver',
  5819. 'Tag_ARC_ABI_sda', 'Tag_ARC_ABI_pic', 'Tag_ARC_ABI_tls',
  5820. 'Tag_ARC_ABI_enumsize', 'Tag_ARC_ABI_exceptions',
  5821. 'Tag_ARC_ABI_double_size', 'Tag_ARC_ISA_config',
  5822. 'Tag_ARC_ISA_apex', 'Tag_ARC_ISA_mpy_option'
  5823. The VALUE is either a 'number', '"string"', or 'number, "string"'
  5824. depending on the tag.
  5825. 
  5826. File: as.info, Node: ARC Modifiers, Next: ARC Symbols, Prev: ARC Directives, Up: ARC-Dependent
  5827. 9.3.4 ARC Assembler Modifiers
  5828. -----------------------------
  5829. The following additional assembler modifiers have been added for
  5830. position-independent code. These modifiers are available only with the
  5831. ARC 700 and above processors and generate relocation entries, which are
  5832. interpreted by the linker as follows:
  5833. '@pcl(SYMBOL)'
  5834. Relative distance of SYMBOL's from the current program counter
  5835. location.
  5836. '@gotpc(SYMBOL)'
  5837. Relative distance of SYMBOL's Global Offset Table entry from the
  5838. current program counter location.
  5839. '@gotoff(SYMBOL)'
  5840. Distance of SYMBOL from the base of the Global Offset Table.
  5841. '@plt(SYMBOL)'
  5842. Distance of SYMBOL's Procedure Linkage Table entry from the current
  5843. program counter. This is valid only with branch and link
  5844. instructions and PC-relative calls.
  5845. '@sda(SYMBOL)'
  5846. Relative distance of SYMBOL from the base of the Small Data
  5847. Pointer.
  5848. 
  5849. File: as.info, Node: ARC Symbols, Next: ARC Opcodes, Prev: ARC Modifiers, Up: ARC-Dependent
  5850. 9.3.5 ARC Pre-defined Symbols
  5851. -----------------------------
  5852. The following assembler symbols will prove useful when developing
  5853. position-independent code. These symbols are available only with the
  5854. ARC 700 and above processors.
  5855. '__GLOBAL_OFFSET_TABLE__'
  5856. Symbol referring to the base of the Global Offset Table.
  5857. '__DYNAMIC__'
  5858. An alias for the Global Offset Table 'Base__GLOBAL_OFFSET_TABLE__'.
  5859. It can be used only with '@gotpc' modifiers.
  5860. 
  5861. File: as.info, Node: ARC Opcodes, Prev: ARC Symbols, Up: ARC-Dependent
  5862. 9.3.6 Opcodes
  5863. -------------
  5864. For information on the ARC instruction set, see 'ARC Programmers
  5865. Reference Manual', available where you download the processor IP
  5866. library.
  5867. 
  5868. File: as.info, Node: ARM-Dependent, Next: AVR-Dependent, Prev: ARC-Dependent, Up: Machine Dependencies
  5869. 9.4 ARM Dependent Features
  5870. ==========================
  5871. * Menu:
  5872. * ARM Options:: Options
  5873. * ARM Syntax:: Syntax
  5874. * ARM Floating Point:: Floating Point
  5875. * ARM Directives:: ARM Machine Directives
  5876. * ARM Opcodes:: Opcodes
  5877. * ARM Mapping Symbols:: Mapping Symbols
  5878. * ARM Unwinding Tutorial:: Unwinding
  5879. 
  5880. File: as.info, Node: ARM Options, Next: ARM Syntax, Up: ARM-Dependent
  5881. 9.4.1 Options
  5882. -------------
  5883. '-mcpu=PROCESSOR[+EXTENSION...]'
  5884. This option specifies the target processor. The assembler will
  5885. issue an error message if an attempt is made to assemble an
  5886. instruction which will not execute on the target processor. The
  5887. following processor names are recognized: 'arm1', 'arm2', 'arm250',
  5888. 'arm3', 'arm6', 'arm60', 'arm600', 'arm610', 'arm620', 'arm7',
  5889. 'arm7m', 'arm7d', 'arm7dm', 'arm7di', 'arm7dmi', 'arm70', 'arm700',
  5890. 'arm700i', 'arm710', 'arm710t', 'arm720', 'arm720t', 'arm740t',
  5891. 'arm710c', 'arm7100', 'arm7500', 'arm7500fe', 'arm7t', 'arm7tdmi',
  5892. 'arm7tdmi-s', 'arm8', 'arm810', 'strongarm', 'strongarm1',
  5893. 'strongarm110', 'strongarm1100', 'strongarm1110', 'arm9', 'arm920',
  5894. 'arm920t', 'arm922t', 'arm940t', 'arm9tdmi', 'fa526' (Faraday FA526
  5895. processor), 'fa626' (Faraday FA626 processor), 'arm9e', 'arm926e',
  5896. 'arm926ej-s', 'arm946e-r0', 'arm946e', 'arm946e-s', 'arm966e-r0',
  5897. 'arm966e', 'arm966e-s', 'arm968e-s', 'arm10t', 'arm10tdmi',
  5898. 'arm10e', 'arm1020', 'arm1020t', 'arm1020e', 'arm1022e',
  5899. 'arm1026ej-s', 'fa606te' (Faraday FA606TE processor), 'fa616te'
  5900. (Faraday FA616TE processor), 'fa626te' (Faraday FA626TE processor),
  5901. 'fmp626' (Faraday FMP626 processor), 'fa726te' (Faraday FA726TE
  5902. processor), 'arm1136j-s', 'arm1136jf-s', 'arm1156t2-s',
  5903. 'arm1156t2f-s', 'arm1176jz-s', 'arm1176jzf-s', 'mpcore',
  5904. 'mpcorenovfp', 'cortex-a5', 'cortex-a7', 'cortex-a8', 'cortex-a9',
  5905. 'cortex-a15', 'cortex-a17', 'cortex-a32', 'cortex-a35',
  5906. 'cortex-a53', 'cortex-a55', 'cortex-a57', 'cortex-a72',
  5907. 'cortex-a73', 'cortex-a75', 'cortex-a76', 'cortex-a76ae',
  5908. 'cortex-a77', 'ares', 'cortex-r4', 'cortex-r4f', 'cortex-r5',
  5909. 'cortex-r7', 'cortex-r8', 'cortex-r52', 'cortex-m35p',
  5910. 'cortex-m33', 'cortex-m23', 'cortex-m7', 'cortex-m4', 'cortex-m3',
  5911. 'cortex-m1', 'cortex-m0', 'cortex-m0plus', 'exynos-m1',
  5912. 'marvell-pj4', 'marvell-whitney', 'neoverse-n1', 'xgene1',
  5913. 'xgene2', 'ep9312' (ARM920 with Cirrus Maverick coprocessor),
  5914. 'i80200' (Intel XScale processor) 'iwmmxt' (Intel XScale processor
  5915. with Wireless MMX technology coprocessor) and 'xscale'. The
  5916. special name 'all' may be used to allow the assembler to accept
  5917. instructions valid for any ARM processor.
  5918. In addition to the basic instruction set, the assembler can be told
  5919. to accept various extension mnemonics that extend the processor
  5920. using the co-processor instruction space. For example,
  5921. '-mcpu=arm920+maverick' is equivalent to specifying '-mcpu=ep9312'.
  5922. Multiple extensions may be specified, separated by a '+'. The
  5923. extensions should be specified in ascending alphabetical order.
  5924. Some extensions may be restricted to particular architectures; this
  5925. is documented in the list of extensions below.
  5926. Extension mnemonics may also be removed from those the assembler
  5927. accepts. This is done be prepending 'no' to the option that adds
  5928. the extension. Extensions that are removed should be listed after
  5929. all extensions which have been added, again in ascending
  5930. alphabetical order. For example, '-mcpu=ep9312+nomaverick' is
  5931. equivalent to specifying '-mcpu=arm920'.
  5932. The following extensions are currently supported: 'bf16' (BFloat16
  5933. extensions for v8.6-A architecture), 'i8mm' (Int8 Matrix Multiply
  5934. extensions for v8.6-A architecture), 'crc' 'crypto' (Cryptography
  5935. Extensions for v8-A architecture, implies 'fp+simd'), 'dotprod'
  5936. (Dot Product Extensions for v8.2-A architecture, implies
  5937. 'fp+simd'), 'fp' (Floating Point Extensions for v8-A architecture),
  5938. 'fp16' (FP16 Extensions for v8.2-A architecture, implies 'fp'),
  5939. 'fp16fml' (FP16 Floating Point Multiplication Variant Extensions
  5940. for v8.2-A architecture, implies 'fp16'), 'idiv' (Integer Divide
  5941. Extensions for v7-A and v7-R architectures), 'iwmmxt', 'iwmmxt2',
  5942. 'xscale', 'maverick', 'mp' (Multiprocessing Extensions for v7-A and
  5943. v7-R architectures), 'os' (Operating System for v6M architecture),
  5944. 'predres' (Execution and Data Prediction Restriction Instruction
  5945. for v8-A architectures, added by default from v8.5-A), 'sb'
  5946. (Speculation Barrier Instruction for v8-A architectures, added by
  5947. default from v8.5-A), 'sec' (Security Extensions for v6K and v7-A
  5948. architectures), 'simd' (Advanced SIMD Extensions for v8-A
  5949. architecture, implies 'fp'), 'virt' (Virtualization Extensions for
  5950. v7-A architecture, implies 'idiv'), 'pan' (Privileged Access Never
  5951. Extensions for v8-A architecture), 'ras' (Reliability, Availability
  5952. and Serviceability extensions for v8-A architecture), 'rdma'
  5953. (ARMv8.1 Advanced SIMD extensions for v8-A architecture, implies
  5954. 'simd') and 'xscale'.
  5955. '-march=ARCHITECTURE[+EXTENSION...]'
  5956. This option specifies the target architecture. The assembler will
  5957. issue an error message if an attempt is made to assemble an
  5958. instruction which will not execute on the target architecture. The
  5959. following architecture names are recognized: 'armv1', 'armv2',
  5960. 'armv2a', 'armv2s', 'armv3', 'armv3m', 'armv4', 'armv4xm',
  5961. 'armv4t', 'armv4txm', 'armv5', 'armv5t', 'armv5txm', 'armv5te',
  5962. 'armv5texp', 'armv6', 'armv6j', 'armv6k', 'armv6z', 'armv6kz',
  5963. 'armv6-m', 'armv6s-m', 'armv7', 'armv7-a', 'armv7ve', 'armv7-r',
  5964. 'armv7-m', 'armv7e-m', 'armv8-a', 'armv8.1-a', 'armv8.2-a',
  5965. 'armv8.3-a', 'armv8-r', 'armv8.4-a', 'armv8.5-a', 'armv8-m.base',
  5966. 'armv8-m.main', 'armv8.1-m.main', 'armv8.6-a', 'iwmmxt', 'iwmmxt2'
  5967. and 'xscale'. If both '-mcpu' and '-march' are specified, the
  5968. assembler will use the setting for '-mcpu'.
  5969. The architecture option can be extended with a set extension
  5970. options. These extensions are context sensitive, i.e. the same
  5971. extension may mean different things when used with different
  5972. architectures. When used together with a '-mfpu' option, the union
  5973. of both feature enablement is taken. See their availability and
  5974. meaning below:
  5975. For 'armv5te', 'armv5texp', 'armv5tej', 'armv6', 'armv6j',
  5976. 'armv6k', 'armv6z', 'armv6kz', 'armv6zk', 'armv6t2', 'armv6kt2' and
  5977. 'armv6zt2':
  5978. '+fp': Enables VFPv2 instructions. '+nofp': Disables all FPU
  5979. instrunctions.
  5980. For 'armv7':
  5981. '+fp': Enables VFPv3 instructions with 16 double-word registers.
  5982. '+nofp': Disables all FPU instructions.
  5983. For 'armv7-a':
  5984. '+fp': Enables VFPv3 instructions with 16 double-word registers.
  5985. '+vfpv3-d16': Alias for '+fp'. '+vfpv3': Enables VFPv3
  5986. instructions with 32 double-word registers. '+vfpv3-d16-fp16':
  5987. Enables VFPv3 with half precision floating-point conversion
  5988. instructions and 16 double-word registers. '+vfpv3-fp16': Enables
  5989. VFPv3 with half precision floating-point conversion instructions
  5990. and 32 double-word registers. '+vfpv4-d16': Enables VFPv4
  5991. instructions with 16 double-word registers. '+vfpv4': Enables
  5992. VFPv4 instructions with 32 double-word registers. '+simd': Enables
  5993. VFPv3 and NEONv1 instructions with 32 double-word registers.
  5994. '+neon': Alias for '+simd'. '+neon-vfpv3': Alias for '+simd'.
  5995. '+neon-fp16': Enables VFPv3, half precision floating-point
  5996. conversion and NEONv1 instructions with 32 double-word registers.
  5997. '+neon-vfpv4': Enables VFPv4 and NEONv1 with Fused-MAC instructions
  5998. and 32 double-word registers. '+mp': Enables Multiprocessing
  5999. Extensions. '+sec': Enables Security Extensions. '+nofp':
  6000. Disables all FPU and NEON instructions. '+nosimd': Disables all
  6001. NEON instructions.
  6002. For 'armv7ve':
  6003. '+fp': Enables VFPv4 instructions with 16 double-word registers.
  6004. '+vfpv4-d16': Alias for '+fp'. '+vfpv3-d16': Enables VFPv3
  6005. instructions with 16 double-word registers. '+vfpv3': Enables
  6006. VFPv3 instructions with 32 double-word registers.
  6007. '+vfpv3-d16-fp16': Enables VFPv3 with half precision floating-point
  6008. conversion instructions and 16 double-word registers.
  6009. '+vfpv3-fp16': Enables VFPv3 with half precision floating-point
  6010. conversion instructions and 32 double-word registers. '+vfpv4':
  6011. Enables VFPv4 instructions with 32 double-word registers. '+simd':
  6012. Enables VFPv4 and NEONv1 with Fused-MAC instructions and 32
  6013. double-word registers. '+neon-vfpv4': Alias for '+simd'. '+neon':
  6014. Enables VFPv3 and NEONv1 instructions with 32 double-word
  6015. registers. '+neon-vfpv3': Alias for '+neon'. '+neon-fp16':
  6016. Enables VFPv3, half precision floating-point conversion and NEONv1
  6017. instructions with 32 double-word registers. double-word registers.
  6018. '+nofp': Disables all FPU and NEON instructions. '+nosimd':
  6019. Disables all NEON instructions.
  6020. For 'armv7-r':
  6021. '+fp.sp': Enables single-precision only VFPv3 instructions with 16
  6022. double-word registers. '+vfpv3xd': Alias for '+fp.sp'. '+fp':
  6023. Enables VFPv3 instructions with 16 double-word registers.
  6024. '+vfpv3-d16': Alias for '+fp'. '+vfpv3xd-fp16': Enables
  6025. single-precision only VFPv3 and half floating-point conversion
  6026. instructions with 16 double-word registers. '+vfpv3-d16-fp16':
  6027. Enables VFPv3 and half precision floating-point conversion
  6028. instructions with 16 double-word registers. '+idiv': Enables
  6029. integer division instructions in ARM mode. '+nofp': Disables all
  6030. FPU instructions.
  6031. For 'armv7e-m':
  6032. '+fp': Enables single-precision only VFPv4 instructions with 16
  6033. double-word registers. '+vfpvf4-sp-d16': Alias for '+fp'.
  6034. '+fpv5': Enables single-precision only VFPv5 instructions with 16
  6035. double-word registers. '+fp.dp': Enables VFPv5 instructions with
  6036. 16 double-word registers. '+fpv5-d16"': Alias for '+fp.dp'.
  6037. '+nofp': Disables all FPU instructions.
  6038. For 'armv8-m.main':
  6039. '+dsp': Enables DSP Extension. '+fp': Enables single-precision
  6040. only VFPv5 instructions with 16 double-word registers. '+fp.dp':
  6041. Enables VFPv5 instructions with 16 double-word registers. '+nofp':
  6042. Disables all FPU instructions. '+nodsp': Disables DSP Extension.
  6043. For 'armv8.1-m.main':
  6044. '+dsp': Enables DSP Extension. '+fp': Enables single and half
  6045. precision scalar Floating Point Extensions for Armv8.1-M Mainline
  6046. with 16 double-word registers. '+fp.dp': Enables double precision
  6047. scalar Floating Point Extensions for Armv8.1-M Mainline, implies
  6048. '+fp'. '+mve': Enables integer only M-profile Vector Extension for
  6049. Armv8.1-M Mainline, implies '+dsp'. '+mve.fp': Enables Floating
  6050. Point M-profile Vector Extension for Armv8.1-M Mainline, implies
  6051. '+mve' and '+fp'. '+nofp': Disables all FPU instructions.
  6052. '+nodsp': Disables DSP Extension. '+nomve': Disables all M-profile
  6053. Vector Extensions.
  6054. For 'armv8-a':
  6055. '+crc': Enables CRC32 Extension. '+simd': Enables VFP and NEON for
  6056. Armv8-A. '+crypto': Enables Cryptography Extensions for Armv8-A,
  6057. implies '+simd'. '+sb': Enables Speculation Barrier Instruction
  6058. for Armv8-A. '+predres': Enables Execution and Data Prediction
  6059. Restriction Instruction for Armv8-A. '+nofp': Disables all FPU,
  6060. NEON and Cryptography Extensions. '+nocrypto': Disables
  6061. Cryptography Extensions.
  6062. For 'armv8.1-a':
  6063. '+simd': Enables VFP and NEON for Armv8.1-A. '+crypto': Enables
  6064. Cryptography Extensions for Armv8-A, implies '+simd'. '+sb':
  6065. Enables Speculation Barrier Instruction for Armv8-A. '+predres':
  6066. Enables Execution and Data Prediction Restriction Instruction for
  6067. Armv8-A. '+nofp': Disables all FPU, NEON and Cryptography
  6068. Extensions. '+nocrypto': Disables Cryptography Extensions.
  6069. For 'armv8.2-a' and 'armv8.3-a':
  6070. '+simd': Enables VFP and NEON for Armv8.1-A. '+fp16': Enables FP16
  6071. Extension for Armv8.2-A, implies '+simd'. '+fp16fml': Enables FP16
  6072. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6073. implies '+fp16'. '+crypto': Enables Cryptography Extensions for
  6074. Armv8-A, implies '+simd'. '+dotprod': Enables Dot Product
  6075. Extensions for Armv8.2-A, implies '+simd'. '+sb': Enables
  6076. Speculation Barrier Instruction for Armv8-A. '+predres': Enables
  6077. Execution and Data Prediction Restriction Instruction for Armv8-A.
  6078. '+nofp': Disables all FPU, NEON, Cryptography and Dot Product
  6079. Extensions. '+nocrypto': Disables Cryptography Extensions.
  6080. For 'armv8.4-a':
  6081. '+simd': Enables VFP and NEON for Armv8.1-A and Dot Product
  6082. Extensions for Armv8.2-A. '+fp16': Enables FP16 Floating Point and
  6083. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6084. implies '+simd'. '+crypto': Enables Cryptography Extensions for
  6085. Armv8-A, implies '+simd'. '+sb': Enables Speculation Barrier
  6086. Instruction for Armv8-A. '+predres': Enables Execution and Data
  6087. Prediction Restriction Instruction for Armv8-A. '+nofp': Disables
  6088. all FPU, NEON, Cryptography and Dot Product Extensions.
  6089. '+nocryptp': Disables Cryptography Extensions.
  6090. For 'armv8.5-a':
  6091. '+simd': Enables VFP and NEON for Armv8.1-A and Dot Product
  6092. Extensions for Armv8.2-A. '+fp16': Enables FP16 Floating Point and
  6093. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6094. implies '+simd'. '+crypto': Enables Cryptography Extensions for
  6095. Armv8-A, implies '+simd'. '+nofp': Disables all FPU, NEON,
  6096. Cryptography and Dot Product Extensions. '+nocryptp': Disables
  6097. Cryptography Extensions.
  6098. '-mfpu=FLOATING-POINT-FORMAT'
  6099. This option specifies the floating point format to assemble for.
  6100. The assembler will issue an error message if an attempt is made to
  6101. assemble an instruction which will not execute on the target
  6102. floating point unit. The following format options are recognized:
  6103. 'softfpa', 'fpe', 'fpe2', 'fpe3', 'fpa', 'fpa10', 'fpa11',
  6104. 'arm7500fe', 'softvfp', 'softvfp+vfp', 'vfp', 'vfp10', 'vfp10-r0',
  6105. 'vfp9', 'vfpxd', 'vfpv2', 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16',
  6106. 'vfpv3-d16-fp16', 'vfpv3xd', 'vfpv3xd-d16', 'vfpv4', 'vfpv4-d16',
  6107. 'fpv4-sp-d16', 'fpv5-sp-d16', 'fpv5-d16', 'fp-armv8', 'arm1020t',
  6108. 'arm1020e', 'arm1136jf-s', 'maverick', 'neon', 'neon-vfpv3',
  6109. 'neon-fp16', 'neon-vfpv4', 'neon-fp-armv8', 'crypto-neon-fp-armv8',
  6110. 'neon-fp-armv8.1' and 'crypto-neon-fp-armv8.1'.
  6111. In addition to determining which instructions are assembled, this
  6112. option also affects the way in which the '.double' assembler
  6113. directive behaves when assembling little-endian code.
  6114. The default is dependent on the processor selected. For
  6115. Architecture 5 or later, the default is to assemble for VFP
  6116. instructions; for earlier architectures the default is to assemble
  6117. for FPA instructions.
  6118. '-mfp16-format=FORMAT'
  6119. This option specifies the half-precision floating point format to
  6120. use when assembling floating point numbers emitted by the
  6121. '.float16' directive. The following format options are recognized:
  6122. 'ieee', 'alternative'. If 'ieee' is specified then the IEEE
  6123. 754-2008 half-precision floating point format is used, if
  6124. 'alternative' is specified then the Arm alternative half-precision
  6125. format is used. If this option is set on the command line then the
  6126. format is fixed and cannot be changed with the 'float16_format'
  6127. directive. If this value is not set then the IEEE 754-2008 format
  6128. is used until the format is explicitly set with the
  6129. 'float16_format' directive.
  6130. '-mthumb'
  6131. This option specifies that the assembler should start assembling
  6132. Thumb instructions; that is, it should behave as though the file
  6133. starts with a '.code 16' directive.
  6134. '-mthumb-interwork'
  6135. This option specifies that the output generated by the assembler
  6136. should be marked as supporting interworking. It also affects the
  6137. behaviour of the 'ADR' and 'ADRL' pseudo opcodes.
  6138. '-mimplicit-it=never'
  6139. '-mimplicit-it=always'
  6140. '-mimplicit-it=arm'
  6141. '-mimplicit-it=thumb'
  6142. The '-mimplicit-it' option controls the behavior of the assembler
  6143. when conditional instructions are not enclosed in IT blocks. There
  6144. are four possible behaviors. If 'never' is specified, such
  6145. constructs cause a warning in ARM code and an error in Thumb-2
  6146. code. If 'always' is specified, such constructs are accepted in
  6147. both ARM and Thumb-2 code, where the IT instruction is added
  6148. implicitly. If 'arm' is specified, such constructs are accepted in
  6149. ARM code and cause an error in Thumb-2 code. If 'thumb' is
  6150. specified, such constructs cause a warning in ARM code and are
  6151. accepted in Thumb-2 code. If you omit this option, the behavior is
  6152. equivalent to '-mimplicit-it=arm'.
  6153. '-mapcs-26'
  6154. '-mapcs-32'
  6155. These options specify that the output generated by the assembler
  6156. should be marked as supporting the indicated version of the Arm
  6157. Procedure. Calling Standard.
  6158. '-matpcs'
  6159. This option specifies that the output generated by the assembler
  6160. should be marked as supporting the Arm/Thumb Procedure Calling
  6161. Standard. If enabled this option will cause the assembler to
  6162. create an empty debugging section in the object file called
  6163. .arm.atpcs. Debuggers can use this to determine the ABI being used
  6164. by.
  6165. '-mapcs-float'
  6166. This indicates the floating point variant of the APCS should be
  6167. used. In this variant floating point arguments are passed in FP
  6168. registers rather than integer registers.
  6169. '-mapcs-reentrant'
  6170. This indicates that the reentrant variant of the APCS should be
  6171. used. This variant supports position independent code.
  6172. '-mfloat-abi=ABI'
  6173. This option specifies that the output generated by the assembler
  6174. should be marked as using specified floating point ABI. The
  6175. following values are recognized: 'soft', 'softfp' and 'hard'.
  6176. '-meabi=VER'
  6177. This option specifies which EABI version the produced object files
  6178. should conform to. The following values are recognized: 'gnu', '4'
  6179. and '5'.
  6180. '-EB'
  6181. This option specifies that the output generated by the assembler
  6182. should be marked as being encoded for a big-endian processor.
  6183. Note: If a program is being built for a system with big-endian data
  6184. and little-endian instructions then it should be assembled with the
  6185. '-EB' option, (all of it, code and data) and then linked with the
  6186. '--be8' option. This will reverse the endianness of the
  6187. instructions back to little-endian, but leave the data as
  6188. big-endian.
  6189. '-EL'
  6190. This option specifies that the output generated by the assembler
  6191. should be marked as being encoded for a little-endian processor.
  6192. '-k'
  6193. This option specifies that the output of the assembler should be
  6194. marked as position-independent code (PIC).
  6195. '--fix-v4bx'
  6196. Allow 'BX' instructions in ARMv4 code. This is intended for use
  6197. with the linker option of the same name.
  6198. '-mwarn-deprecated'
  6199. '-mno-warn-deprecated'
  6200. Enable or disable warnings about using deprecated options or
  6201. features. The default is to warn.
  6202. '-mccs'
  6203. Turns on CodeComposer Studio assembly syntax compatibility mode.
  6204. '-mwarn-syms'
  6205. '-mno-warn-syms'
  6206. Enable or disable warnings about symbols that match the names of
  6207. ARM instructions. The default is to warn.
  6208. 
  6209. File: as.info, Node: ARM Syntax, Next: ARM Floating Point, Prev: ARM Options, Up: ARM-Dependent
  6210. 9.4.2 Syntax
  6211. ------------
  6212. * Menu:
  6213. * ARM-Instruction-Set:: Instruction Set
  6214. * ARM-Chars:: Special Characters
  6215. * ARM-Regs:: Register Names
  6216. * ARM-Relocations:: Relocations
  6217. * ARM-Neon-Alignment:: NEON Alignment Specifiers
  6218. 
  6219. File: as.info, Node: ARM-Instruction-Set, Next: ARM-Chars, Up: ARM Syntax
  6220. 9.4.2.1 Instruction Set Syntax
  6221. ..............................
  6222. Two slightly different syntaxes are support for ARM and THUMB
  6223. instructions. The default, 'divided', uses the old style where ARM and
  6224. THUMB instructions had their own, separate syntaxes. The new, 'unified'
  6225. syntax, which can be selected via the '.syntax' directive, and has the
  6226. following main features:
  6227. * Immediate operands do not require a '#' prefix.
  6228. * The 'IT' instruction may appear, and if it does it is validated
  6229. against subsequent conditional affixes. In ARM mode it does not
  6230. generate machine code, in THUMB mode it does.
  6231. * For ARM instructions the conditional affixes always appear at the
  6232. end of the instruction. For THUMB instructions conditional affixes
  6233. can be used, but only inside the scope of an 'IT' instruction.
  6234. * All of the instructions new to the V6T2 architecture (and later)
  6235. are available. (Only a few such instructions can be written in the
  6236. 'divided' syntax).
  6237. * The '.N' and '.W' suffixes are recognized and honored.
  6238. * All instructions set the flags if and only if they have an 's'
  6239. affix.
  6240. 
  6241. File: as.info, Node: ARM-Chars, Next: ARM-Regs, Prev: ARM-Instruction-Set, Up: ARM Syntax
  6242. 9.4.2.2 Special Characters
  6243. ..........................
  6244. The presence of a '@' anywhere on a line indicates the start of a
  6245. comment that extends to the end of that line.
  6246. If a '#' appears as the first character of a line then the whole line
  6247. is treated as a comment, but in this case the line could also be a
  6248. logical line number directive (*note Comments::) or a preprocessor
  6249. control command (*note Preprocessing::).
  6250. The ';' character can be used instead of a newline to separate
  6251. statements.
  6252. Either '#' or '$' can be used to indicate immediate operands.
  6253. *TODO* Explain about /data modifier on symbols.
  6254. 
  6255. File: as.info, Node: ARM-Regs, Next: ARM-Relocations, Prev: ARM-Chars, Up: ARM Syntax
  6256. 9.4.2.3 Register Names
  6257. ......................
  6258. *TODO* Explain about ARM register naming, and the predefined names.
  6259. 
  6260. File: as.info, Node: ARM-Relocations, Next: ARM-Neon-Alignment, Prev: ARM-Regs, Up: ARM Syntax
  6261. 9.4.2.4 ARM relocation generation
  6262. .................................
  6263. Specific data relocations can be generated by putting the relocation
  6264. name in parentheses after the symbol name. For example:
  6265. .word foo(TARGET1)
  6266. This will generate an 'R_ARM_TARGET1' relocation against the symbol
  6267. FOO. The following relocations are supported: 'GOT', 'GOTOFF',
  6268. 'TARGET1', 'TARGET2', 'SBREL', 'TLSGD', 'TLSLDM', 'TLSLDO', 'TLSDESC',
  6269. 'TLSCALL', 'GOTTPOFF', 'GOT_PREL' and 'TPOFF'.
  6270. For compatibility with older toolchains the assembler also accepts
  6271. '(PLT)' after branch targets. On legacy targets this will generate the
  6272. deprecated 'R_ARM_PLT32' relocation. On EABI targets it will encode
  6273. either the 'R_ARM_CALL' or 'R_ARM_JUMP24' relocation, as appropriate.
  6274. Relocations for 'MOVW' and 'MOVT' instructions can be generated by
  6275. prefixing the value with '#:lower16:' and '#:upper16' respectively. For
  6276. example to load the 32-bit address of foo into r0:
  6277. MOVW r0, #:lower16:foo
  6278. MOVT r0, #:upper16:foo
  6279. Relocations 'R_ARM_THM_ALU_ABS_G0_NC', 'R_ARM_THM_ALU_ABS_G1_NC',
  6280. 'R_ARM_THM_ALU_ABS_G2_NC' and 'R_ARM_THM_ALU_ABS_G3_NC' can be generated
  6281. by prefixing the value with '#:lower0_7:#', '#:lower8_15:#',
  6282. '#:upper0_7:#' and '#:upper8_15:#' respectively. For example to load
  6283. the 32-bit address of foo into r0:
  6284. MOVS r0, #:upper8_15:#foo
  6285. LSLS r0, r0, #8
  6286. ADDS r0, #:upper0_7:#foo
  6287. LSLS r0, r0, #8
  6288. ADDS r0, #:lower8_15:#foo
  6289. LSLS r0, r0, #8
  6290. ADDS r0, #:lower0_7:#foo
  6291. 
  6292. File: as.info, Node: ARM-Neon-Alignment, Prev: ARM-Relocations, Up: ARM Syntax
  6293. 9.4.2.5 NEON Alignment Specifiers
  6294. .................................
  6295. Some NEON load/store instructions allow an optional address alignment
  6296. qualifier. The ARM documentation specifies that this is indicated by '@
  6297. ALIGN'. However GAS already interprets the '@' character as a "line
  6298. comment" start, so ': ALIGN' is used instead. For example:
  6299. vld1.8 {q0}, [r0, :128]
  6300. 
  6301. File: as.info, Node: ARM Floating Point, Next: ARM Directives, Prev: ARM Syntax, Up: ARM-Dependent
  6302. 9.4.3 Floating Point
  6303. --------------------
  6304. The ARM family uses IEEE floating-point numbers.
  6305. 
  6306. File: as.info, Node: ARM Directives, Next: ARM Opcodes, Prev: ARM Floating Point, Up: ARM-Dependent
  6307. 9.4.4 ARM Machine Directives
  6308. ----------------------------
  6309. '.align EXPRESSION [, EXPRESSION]'
  6310. This is the generic .ALIGN directive. For the ARM however if the
  6311. first argument is zero (ie no alignment is needed) the assembler
  6312. will behave as if the argument had been 2 (ie pad to the next four
  6313. byte boundary). This is for compatibility with ARM's own
  6314. assembler.
  6315. '.arch NAME'
  6316. Select the target architecture. Valid values for NAME are the same
  6317. as for the '-march' command-line option without the instruction set
  6318. extension.
  6319. Specifying '.arch' clears any previously selected architecture
  6320. extensions.
  6321. '.arch_extension NAME'
  6322. Add or remove an architecture extension to the target architecture.
  6323. Valid values for NAME are the same as those accepted as
  6324. architectural extensions by the '-mcpu' and '-march' command-line
  6325. options.
  6326. '.arch_extension' may be used multiple times to add or remove
  6327. extensions incrementally to the architecture being compiled for.
  6328. '.arm'
  6329. This performs the same action as .CODE 32.
  6330. '.bss'
  6331. This directive switches to the '.bss' section.
  6332. '.cantunwind'
  6333. Prevents unwinding through the current function. No personality
  6334. routine or exception table data is required or permitted.
  6335. '.code [16|32]'
  6336. This directive selects the instruction set being generated. The
  6337. value 16 selects Thumb, with the value 32 selecting ARM.
  6338. '.cpu NAME'
  6339. Select the target processor. Valid values for NAME are the same as
  6340. for the '-mcpu' command-line option without the instruction set
  6341. extension.
  6342. Specifying '.cpu' clears any previously selected architecture
  6343. extensions.
  6344. 'NAME .dn REGISTER NAME [.TYPE] [[INDEX]]'
  6345. 'NAME .qn REGISTER NAME [.TYPE] [[INDEX]]'
  6346. The 'dn' and 'qn' directives are used to create typed and/or
  6347. indexed register aliases for use in Advanced SIMD Extension (Neon)
  6348. instructions. The former should be used to create aliases of
  6349. double-precision registers, and the latter to create aliases of
  6350. quad-precision registers.
  6351. If these directives are used to create typed aliases, those aliases
  6352. can be used in Neon instructions instead of writing types after the
  6353. mnemonic or after each operand. For example:
  6354. x .dn d2.f32
  6355. y .dn d3.f32
  6356. z .dn d4.f32[1]
  6357. vmul x,y,z
  6358. This is equivalent to writing the following:
  6359. vmul.f32 d2,d3,d4[1]
  6360. Aliases created using 'dn' or 'qn' can be destroyed using 'unreq'.
  6361. '.eabi_attribute TAG, VALUE'
  6362. Set the EABI object attribute TAG to VALUE.
  6363. The TAG is either an attribute number, or one of the following:
  6364. 'Tag_CPU_raw_name', 'Tag_CPU_name', 'Tag_CPU_arch',
  6365. 'Tag_CPU_arch_profile', 'Tag_ARM_ISA_use', 'Tag_THUMB_ISA_use',
  6366. 'Tag_FP_arch', 'Tag_WMMX_arch', 'Tag_Advanced_SIMD_arch',
  6367. 'Tag_MVE_arch', 'Tag_PCS_config', 'Tag_ABI_PCS_R9_use',
  6368. 'Tag_ABI_PCS_RW_data', 'Tag_ABI_PCS_RO_data',
  6369. 'Tag_ABI_PCS_GOT_use', 'Tag_ABI_PCS_wchar_t',
  6370. 'Tag_ABI_FP_rounding', 'Tag_ABI_FP_denormal',
  6371. 'Tag_ABI_FP_exceptions', 'Tag_ABI_FP_user_exceptions',
  6372. 'Tag_ABI_FP_number_model', 'Tag_ABI_align_needed',
  6373. 'Tag_ABI_align_preserved', 'Tag_ABI_enum_size',
  6374. 'Tag_ABI_HardFP_use', 'Tag_ABI_VFP_args', 'Tag_ABI_WMMX_args',
  6375. 'Tag_ABI_optimization_goals', 'Tag_ABI_FP_optimization_goals',
  6376. 'Tag_compatibility', 'Tag_CPU_unaligned_access',
  6377. 'Tag_FP_HP_extension', 'Tag_ABI_FP_16bit_format',
  6378. 'Tag_MPextension_use', 'Tag_DIV_use', 'Tag_nodefaults',
  6379. 'Tag_also_compatible_with', 'Tag_conformance', 'Tag_T2EE_use',
  6380. 'Tag_Virtualization_use'
  6381. The VALUE is either a 'number', '"string"', or 'number, "string"'
  6382. depending on the tag.
  6383. Note - the following legacy values are also accepted by TAG:
  6384. 'Tag_VFP_arch', 'Tag_ABI_align8_needed',
  6385. 'Tag_ABI_align8_preserved', 'Tag_VFP_HP_extension',
  6386. '.even'
  6387. This directive aligns to an even-numbered address.
  6388. '.extend EXPRESSION [, EXPRESSION]*'
  6389. '.ldouble EXPRESSION [, EXPRESSION]*'
  6390. These directives write 12byte long double floating-point values to
  6391. the output section. These are not compatible with current ARM
  6392. processors or ABIs.
  6393. '.float16 VALUE [,...,VALUE_N]'
  6394. Place the half precision floating point representation of one or
  6395. more floating-point values into the current section. The exact
  6396. format of the encoding is specified by '.float16_format'. If the
  6397. format has not been explicitly set yet (either via the
  6398. '.float16_format' directive or the command line option) then the
  6399. IEEE 754-2008 format is used.
  6400. '.float16_format FORMAT'
  6401. Set the format to use when encoding float16 values emitted by the
  6402. '.float16' directive. Once the format has been set it cannot be
  6403. changed. 'format' should be one of the following: 'ieee' (encode
  6404. in the IEEE 754-2008 half precision format) or 'alternative'
  6405. (encode in the Arm alternative half precision format).
  6406. '.fnend'
  6407. Marks the end of a function with an unwind table entry. The unwind
  6408. index table entry is created when this directive is processed.
  6409. If no personality routine has been specified then standard
  6410. personality routine 0 or 1 will be used, depending on the number of
  6411. unwind opcodes required.
  6412. '.fnstart'
  6413. Marks the start of a function with an unwind table entry.
  6414. '.force_thumb'
  6415. This directive forces the selection of Thumb instructions, even if
  6416. the target processor does not support those instructions
  6417. '.fpu NAME'
  6418. Select the floating-point unit to assemble for. Valid values for
  6419. NAME are the same as for the '-mfpu' command-line option.
  6420. '.handlerdata'
  6421. Marks the end of the current function, and the start of the
  6422. exception table entry for that function. Anything between this
  6423. directive and the '.fnend' directive will be added to the exception
  6424. table entry.
  6425. Must be preceded by a '.personality' or '.personalityindex'
  6426. directive.
  6427. '.inst OPCODE [ , ... ]'
  6428. '.inst.n OPCODE [ , ... ]'
  6429. '.inst.w OPCODE [ , ... ]'
  6430. Generates the instruction corresponding to the numerical value
  6431. OPCODE. '.inst.n' and '.inst.w' allow the Thumb instruction size
  6432. to be specified explicitly, overriding the normal encoding rules.
  6433. '.ldouble EXPRESSION [, EXPRESSION]*'
  6434. See '.extend'.
  6435. '.ltorg'
  6436. This directive causes the current contents of the literal pool to
  6437. be dumped into the current section (which is assumed to be the
  6438. .text section) at the current location (aligned to a word
  6439. boundary). 'GAS' maintains a separate literal pool for each
  6440. section and each sub-section. The '.ltorg' directive will only
  6441. affect the literal pool of the current section and sub-section. At
  6442. the end of assembly all remaining, un-empty literal pools will
  6443. automatically be dumped.
  6444. Note - older versions of 'GAS' would dump the current literal pool
  6445. any time a section change occurred. This is no longer done, since
  6446. it prevents accurate control of the placement of literal pools.
  6447. '.movsp REG [, #OFFSET]'
  6448. Tell the unwinder that REG contains an offset from the current
  6449. stack pointer. If OFFSET is not specified then it is assumed to be
  6450. zero.
  6451. '.object_arch NAME'
  6452. Override the architecture recorded in the EABI object attribute
  6453. section. Valid values for NAME are the same as for the '.arch'
  6454. directive. Typically this is useful when code uses runtime
  6455. detection of CPU features.
  6456. '.packed EXPRESSION [, EXPRESSION]*'
  6457. This directive writes 12-byte packed floating-point values to the
  6458. output section. These are not compatible with current ARM
  6459. processors or ABIs.
  6460. '.pad #COUNT'
  6461. Generate unwinder annotations for a stack adjustment of COUNT
  6462. bytes. A positive value indicates the function prologue allocated
  6463. stack space by decrementing the stack pointer.
  6464. '.personality NAME'
  6465. Sets the personality routine for the current function to NAME.
  6466. '.personalityindex INDEX'
  6467. Sets the personality routine for the current function to the EABI
  6468. standard routine number INDEX
  6469. '.pool'
  6470. This is a synonym for .ltorg.
  6471. 'NAME .req REGISTER NAME'
  6472. This creates an alias for REGISTER NAME called NAME. For example:
  6473. foo .req r0
  6474. '.save REGLIST'
  6475. Generate unwinder annotations to restore the registers in REGLIST.
  6476. The format of REGLIST is the same as the corresponding
  6477. store-multiple instruction.
  6478. _core registers_
  6479. .save {r4, r5, r6, lr}
  6480. stmfd sp!, {r4, r5, r6, lr}
  6481. _FPA registers_
  6482. .save f4, 2
  6483. sfmfd f4, 2, [sp]!
  6484. _VFP registers_
  6485. .save {d8, d9, d10}
  6486. fstmdx sp!, {d8, d9, d10}
  6487. _iWMMXt registers_
  6488. .save {wr10, wr11}
  6489. wstrd wr11, [sp, #-8]!
  6490. wstrd wr10, [sp, #-8]!
  6491. or
  6492. .save wr11
  6493. wstrd wr11, [sp, #-8]!
  6494. .save wr10
  6495. wstrd wr10, [sp, #-8]!
  6496. '.setfp FPREG, SPREG [, #OFFSET]'
  6497. Make all unwinder annotations relative to a frame pointer. Without
  6498. this the unwinder will use offsets from the stack pointer.
  6499. The syntax of this directive is the same as the 'add' or 'mov'
  6500. instruction used to set the frame pointer. SPREG must be either
  6501. 'sp' or mentioned in a previous '.movsp' directive.
  6502. .movsp ip
  6503. mov ip, sp
  6504. ...
  6505. .setfp fp, ip, #4
  6506. add fp, ip, #4
  6507. '.secrel32 EXPRESSION [, EXPRESSION]*'
  6508. This directive emits relocations that evaluate to the
  6509. section-relative offset of each expression's symbol. This
  6510. directive is only supported for PE targets.
  6511. '.syntax [unified | divided]'
  6512. This directive sets the Instruction Set Syntax as described in the
  6513. *note ARM-Instruction-Set:: section.
  6514. '.thumb'
  6515. This performs the same action as .CODE 16.
  6516. '.thumb_func'
  6517. This directive specifies that the following symbol is the name of a
  6518. Thumb encoded function. This information is necessary in order to
  6519. allow the assembler and linker to generate correct code for
  6520. interworking between Arm and Thumb instructions and should be used
  6521. even if interworking is not going to be performed. The presence of
  6522. this directive also implies '.thumb'
  6523. This directive is not necessary when generating EABI objects. On
  6524. these targets the encoding is implicit when generating Thumb code.
  6525. '.thumb_set'
  6526. This performs the equivalent of a '.set' directive in that it
  6527. creates a symbol which is an alias for another symbol (possibly not
  6528. yet defined). This directive also has the added property in that
  6529. it marks the aliased symbol as being a thumb function entry point,
  6530. in the same way that the '.thumb_func' directive does.
  6531. '.tlsdescseq TLS-VARIABLE'
  6532. This directive is used to annotate parts of an inlined TLS
  6533. descriptor trampoline. Normally the trampoline is provided by the
  6534. linker, and this directive is not needed.
  6535. '.unreq ALIAS-NAME'
  6536. This undefines a register alias which was previously defined using
  6537. the 'req', 'dn' or 'qn' directives. For example:
  6538. foo .req r0
  6539. .unreq foo
  6540. An error occurs if the name is undefined. Note - this pseudo op
  6541. can be used to delete builtin in register name aliases (eg 'r0').
  6542. This should only be done if it is really necessary.
  6543. '.unwind_raw OFFSET, BYTE1, ...'
  6544. Insert one of more arbitrary unwind opcode bytes, which are known
  6545. to adjust the stack pointer by OFFSET bytes.
  6546. For example '.unwind_raw 4, 0xb1, 0x01' is equivalent to '.save
  6547. {r0}'
  6548. '.vsave VFP-REGLIST'
  6549. Generate unwinder annotations to restore the VFP registers in
  6550. VFP-REGLIST using FLDMD. Also works for VFPv3 registers that are to
  6551. be restored using VLDM. The format of VFP-REGLIST is the same as
  6552. the corresponding store-multiple instruction.
  6553. _VFP registers_
  6554. .vsave {d8, d9, d10}
  6555. fstmdd sp!, {d8, d9, d10}
  6556. _VFPv3 registers_
  6557. .vsave {d15, d16, d17}
  6558. vstm sp!, {d15, d16, d17}
  6559. Since FLDMX and FSTMX are now deprecated, this directive should be
  6560. used in favour of '.save' for saving VFP registers for ARMv6 and
  6561. above.
  6562. 
  6563. File: as.info, Node: ARM Opcodes, Next: ARM Mapping Symbols, Prev: ARM Directives, Up: ARM-Dependent
  6564. 9.4.5 Opcodes
  6565. -------------
  6566. 'as' implements all the standard ARM opcodes. It also implements
  6567. several pseudo opcodes, including several synthetic load instructions.
  6568. 'NOP'
  6569. nop
  6570. This pseudo op will always evaluate to a legal ARM instruction that
  6571. does nothing. Currently it will evaluate to MOV r0, r0.
  6572. 'LDR'
  6573. ldr <register> , = <expression>
  6574. If expression evaluates to a numeric constant then a MOV or MVN
  6575. instruction will be used in place of the LDR instruction, if the
  6576. constant can be generated by either of these instructions.
  6577. Otherwise the constant will be placed into the nearest literal pool
  6578. (if it not already there) and a PC relative LDR instruction will be
  6579. generated.
  6580. 'ADR'
  6581. adr <register> <label>
  6582. This instruction will load the address of LABEL into the indicated
  6583. register. The instruction will evaluate to a PC relative ADD or
  6584. SUB instruction depending upon where the label is located. If the
  6585. label is out of range, or if it is not defined in the same file
  6586. (and section) as the ADR instruction, then an error will be
  6587. generated. This instruction will not make use of the literal pool.
  6588. If LABEL is a thumb function symbol, and thumb interworking has
  6589. been enabled via the '-mthumb-interwork' option then the bottom bit
  6590. of the value stored into REGISTER will be set. This allows the
  6591. following sequence to work as expected:
  6592. adr r0, thumb_function
  6593. blx r0
  6594. 'ADRL'
  6595. adrl <register> <label>
  6596. This instruction will load the address of LABEL into the indicated
  6597. register. The instruction will evaluate to one or two PC relative
  6598. ADD or SUB instructions depending upon where the label is located.
  6599. If a second instruction is not needed a NOP instruction will be
  6600. generated in its place, so that this instruction is always 8 bytes
  6601. long.
  6602. If the label is out of range, or if it is not defined in the same
  6603. file (and section) as the ADRL instruction, then an error will be
  6604. generated. This instruction will not make use of the literal pool.
  6605. If LABEL is a thumb function symbol, and thumb interworking has
  6606. been enabled via the '-mthumb-interwork' option then the bottom bit
  6607. of the value stored into REGISTER will be set.
  6608. For information on the ARM or Thumb instruction sets, see 'ARM
  6609. Software Development Toolkit Reference Manual', Advanced RISC Machines
  6610. Ltd.
  6611. 
  6612. File: as.info, Node: ARM Mapping Symbols, Next: ARM Unwinding Tutorial, Prev: ARM Opcodes, Up: ARM-Dependent
  6613. 9.4.6 Mapping Symbols
  6614. ---------------------
  6615. The ARM ELF specification requires that special symbols be inserted into
  6616. object files to mark certain features:
  6617. '$a'
  6618. At the start of a region of code containing ARM instructions.
  6619. '$t'
  6620. At the start of a region of code containing THUMB instructions.
  6621. '$d'
  6622. At the start of a region of data.
  6623. The assembler will automatically insert these symbols for you - there
  6624. is no need to code them yourself. Support for tagging symbols ($b, $f,
  6625. $p and $m) which is also mentioned in the current ARM ELF specification
  6626. is not implemented. This is because they have been dropped from the new
  6627. EABI and so tools cannot rely upon their presence.
  6628. 
  6629. File: as.info, Node: ARM Unwinding Tutorial, Prev: ARM Mapping Symbols, Up: ARM-Dependent
  6630. 9.4.7 Unwinding
  6631. ---------------
  6632. The ABI for the ARM Architecture specifies a standard format for
  6633. exception unwind information. This information is used when an
  6634. exception is thrown to determine where control should be transferred.
  6635. In particular, the unwind information is used to determine which
  6636. function called the function that threw the exception, and which
  6637. function called that one, and so forth. This information is also used
  6638. to restore the values of callee-saved registers in the function catching
  6639. the exception.
  6640. If you are writing functions in assembly code, and those functions
  6641. call other functions that throw exceptions, you must use assembly pseudo
  6642. ops to ensure that appropriate exception unwind information is
  6643. generated. Otherwise, if one of the functions called by your assembly
  6644. code throws an exception, the run-time library will be unable to unwind
  6645. the stack through your assembly code and your program will not behave
  6646. correctly.
  6647. To illustrate the use of these pseudo ops, we will examine the code
  6648. that G++ generates for the following C++ input:
  6649. void callee (int *);
  6650. int
  6651. caller ()
  6652. {
  6653. int i;
  6654. callee (&i);
  6655. return i;
  6656. }
  6657. This example does not show how to throw or catch an exception from
  6658. assembly code. That is a much more complex operation and should always
  6659. be done in a high-level language, such as C++, that directly supports
  6660. exceptions.
  6661. The code generated by one particular version of G++ when compiling
  6662. the example above is:
  6663. _Z6callerv:
  6664. .fnstart
  6665. .LFB2:
  6666. @ Function supports interworking.
  6667. @ args = 0, pretend = 0, frame = 8
  6668. @ frame_needed = 1, uses_anonymous_args = 0
  6669. stmfd sp!, {fp, lr}
  6670. .save {fp, lr}
  6671. .LCFI0:
  6672. .setfp fp, sp, #4
  6673. add fp, sp, #4
  6674. .LCFI1:
  6675. .pad #8
  6676. sub sp, sp, #8
  6677. .LCFI2:
  6678. sub r3, fp, #8
  6679. mov r0, r3
  6680. bl _Z6calleePi
  6681. ldr r3, [fp, #-8]
  6682. mov r0, r3
  6683. sub sp, fp, #4
  6684. ldmfd sp!, {fp, lr}
  6685. bx lr
  6686. .LFE2:
  6687. .fnend
  6688. Of course, the sequence of instructions varies based on the options
  6689. you pass to GCC and on the version of GCC in use. The exact
  6690. instructions are not important since we are focusing on the pseudo ops
  6691. that are used to generate unwind information.
  6692. An important assumption made by the unwinder is that the stack frame
  6693. does not change during the body of the function. In particular, since
  6694. we assume that the assembly code does not itself throw an exception, the
  6695. only point where an exception can be thrown is from a call, such as the
  6696. 'bl' instruction above. At each call site, the same saved registers
  6697. (including 'lr', which indicates the return address) must be located in
  6698. the same locations relative to the frame pointer.
  6699. The '.fnstart' (*note .fnstart pseudo op: arm_fnstart.) pseudo op
  6700. appears immediately before the first instruction of the function while
  6701. the '.fnend' (*note .fnend pseudo op: arm_fnend.) pseudo op appears
  6702. immediately after the last instruction of the function. These pseudo
  6703. ops specify the range of the function.
  6704. Only the order of the other pseudos ops (e.g., '.setfp' or '.pad')
  6705. matters; their exact locations are irrelevant. In the example above,
  6706. the compiler emits the pseudo ops with particular instructions. That
  6707. makes it easier to understand the code, but it is not required for
  6708. correctness. It would work just as well to emit all of the pseudo ops
  6709. other than '.fnend' in the same order, but immediately after '.fnstart'.
  6710. The '.save' (*note .save pseudo op: arm_save.) pseudo op indicates
  6711. registers that have been saved to the stack so that they can be restored
  6712. before the function returns. The argument to the '.save' pseudo op is a
  6713. list of registers to save. If a register is "callee-saved" (as
  6714. specified by the ABI) and is modified by the function you are writing,
  6715. then your code must save the value before it is modified and restore the
  6716. original value before the function returns. If an exception is thrown,
  6717. the run-time library restores the values of these registers from their
  6718. locations on the stack before returning control to the exception
  6719. handler. (Of course, if an exception is not thrown, the function that
  6720. contains the '.save' pseudo op restores these registers in the function
  6721. epilogue, as is done with the 'ldmfd' instruction above.)
  6722. You do not have to save callee-saved registers at the very beginning
  6723. of the function and you do not need to use the '.save' pseudo op
  6724. immediately following the point at which the registers are saved.
  6725. However, if you modify a callee-saved register, you must save it on the
  6726. stack before modifying it and before calling any functions which might
  6727. throw an exception. And, you must use the '.save' pseudo op to indicate
  6728. that you have done so.
  6729. The '.pad' (*note .pad: arm_pad.) pseudo op indicates a modification
  6730. of the stack pointer that does not save any registers. The argument is
  6731. the number of bytes (in decimal) that are subtracted from the stack
  6732. pointer. (On ARM CPUs, the stack grows downwards, so subtracting from
  6733. the stack pointer increases the size of the stack.)
  6734. The '.setfp' (*note .setfp pseudo op: arm_setfp.) pseudo op indicates
  6735. the register that contains the frame pointer. The first argument is the
  6736. register that is set, which is typically 'fp'. The second argument
  6737. indicates the register from which the frame pointer takes its value.
  6738. The third argument, if present, is the value (in decimal) added to the
  6739. register specified by the second argument to compute the value of the
  6740. frame pointer. You should not modify the frame pointer in the body of
  6741. the function.
  6742. If you do not use a frame pointer, then you should not use the
  6743. '.setfp' pseudo op. If you do not use a frame pointer, then you should
  6744. avoid modifying the stack pointer outside of the function prologue.
  6745. Otherwise, the run-time library will be unable to find saved registers
  6746. when it is unwinding the stack.
  6747. The pseudo ops described above are sufficient for writing assembly
  6748. code that calls functions which may throw exceptions. If you need to
  6749. know more about the object-file format used to represent unwind
  6750. information, you may consult the 'Exception Handling ABI for the ARM
  6751. Architecture' available from <http://infocenter.arm.com>.
  6752. 
  6753. File: as.info, Node: AVR-Dependent, Next: Blackfin-Dependent, Prev: ARM-Dependent, Up: Machine Dependencies
  6754. 9.5 AVR Dependent Features
  6755. ==========================
  6756. * Menu:
  6757. * AVR Options:: Options
  6758. * AVR Syntax:: Syntax
  6759. * AVR Opcodes:: Opcodes
  6760. * AVR Pseudo Instructions:: Pseudo Instructions
  6761. 
  6762. File: as.info, Node: AVR Options, Next: AVR Syntax, Up: AVR-Dependent
  6763. 9.5.1 Options
  6764. -------------
  6765. '-mmcu=MCU'
  6766. Specify ATMEL AVR instruction set or MCU type.
  6767. Instruction set avr1 is for the minimal AVR core, not supported by
  6768. the C compiler, only for assembler programs (MCU types: at90s1200,
  6769. attiny11, attiny12, attiny15, attiny28).
  6770. Instruction set avr2 (default) is for the classic AVR core with up
  6771. to 8K program memory space (MCU types: at90s2313, at90s2323,
  6772. at90s2333, at90s2343, attiny22, attiny26, at90s4414, at90s4433,
  6773. at90s4434, at90s8515, at90c8534, at90s8535).
  6774. Instruction set avr25 is for the classic AVR core with up to 8K
  6775. program memory space plus the MOVW instruction (MCU types:
  6776. attiny13, attiny13a, attiny2313, attiny2313a, attiny24, attiny24a,
  6777. attiny4313, attiny44, attiny44a, attiny84, attiny84a, attiny25,
  6778. attiny45, attiny85, attiny261, attiny261a, attiny461, attiny461a,
  6779. attiny861, attiny861a, attiny87, attiny43u, attiny48, attiny88,
  6780. attiny828, at86rf401, ata6289, ata5272).
  6781. Instruction set avr3 is for the classic AVR core with up to 128K
  6782. program memory space (MCU types: at43usb355, at76c711).
  6783. Instruction set avr31 is for the classic AVR core with exactly 128K
  6784. program memory space (MCU types: atmega103, at43usb320).
  6785. Instruction set avr35 is for classic AVR core plus MOVW, CALL, and
  6786. JMP instructions (MCU types: attiny167, attiny1634, at90usb82,
  6787. at90usb162, atmega8u2, atmega16u2, atmega32u2, ata5505).
  6788. Instruction set avr4 is for the enhanced AVR core with up to 8K
  6789. program memory space (MCU types: atmega48, atmega48a, atmega48pa,
  6790. atmega48p, atmega8, atmega8a, atmega88, atmega88a, atmega88p,
  6791. atmega88pa, atmega8515, atmega8535, atmega8hva, at90pwm1, at90pwm2,
  6792. at90pwm2b, at90pwm3, at90pwm3b, at90pwm81, ata6285, ata6286).
  6793. Instruction set avr5 is for the enhanced AVR core with up to 128K
  6794. program memory space (MCU types: at90pwm161, atmega16, atmega16a,
  6795. atmega161, atmega162, atmega163, atmega164a, atmega164p,
  6796. atmega164pa, atmega165, atmega165a, atmega165p, atmega165pa,
  6797. atmega168, atmega168a, atmega168p, atmega168pa, atmega169,
  6798. atmega169a, atmega169p, atmega169pa, atmega32, atmega323,
  6799. atmega324a, atmega324p, atmega324pa, atmega325, atmega325a,
  6800. atmega32, atmega32a, atmega323, atmega324a, atmega324p,
  6801. atmega324pa, atmega325, atmega325a, atmega325p, atmega325p,
  6802. atmega325pa, atmega3250, atmega3250a, atmega3250p, atmega3250pa,
  6803. atmega328, atmega328p, atmega329, atmega329a, atmega329p,
  6804. atmega329pa, atmega3290a, atmega3290p, atmega3290pa, atmega406,
  6805. atmega64, atmega64a, atmega64rfr2, atmega644rfr2, atmega640,
  6806. atmega644, atmega644a, atmega644p, atmega644pa, atmega645,
  6807. atmega645a, atmega645p, atmega6450, atmega6450a, atmega6450p,
  6808. atmega649, atmega649a, atmega649p, atmega6490, atmega6490a,
  6809. atmega6490p, atmega16hva, atmega16hva2, atmega16hvb,
  6810. atmega16hvbrevb, atmega32hvb, atmega32hvbrevb, atmega64hve,
  6811. at90can32, at90can64, at90pwm161, at90pwm216, at90pwm316,
  6812. atmega32c1, atmega64c1, atmega16m1, atmega32m1, atmega64m1,
  6813. atmega16u4, atmega32u4, atmega32u6, at90usb646, at90usb647, at94k,
  6814. at90scr100, ata5790, ata5795).
  6815. Instruction set avr51 is for the enhanced AVR core with exactly
  6816. 128K program memory space (MCU types: atmega128, atmega128a,
  6817. atmega1280, atmega1281, atmega1284, atmega1284p, atmega128rfa1,
  6818. atmega128rfr2, atmega1284rfr2, at90can128, at90usb1286,
  6819. at90usb1287, m3000).
  6820. Instruction set avr6 is for the enhanced AVR core with a 3-byte PC
  6821. (MCU types: atmega2560, atmega2561, atmega256rfr2, atmega2564rfr2).
  6822. Instruction set avrxmega2 is for the XMEGA AVR core with 8K to 64K
  6823. program memory space and less than 64K data space (MCU types:
  6824. atxmega16a4, atxmega16a4u, atxmega16c4, atxmega16d4, atxmega16x1,
  6825. atxmega32a4, atxmega32a4u, atxmega32c4, atxmega32d4, atxmega16e5,
  6826. atxmega8e5, atxmega32e5, atxmega32x1).
  6827. Instruction set avrxmega3 is for the XMEGA AVR core with up to 64K
  6828. of combined program memory and RAM, and with program memory visible
  6829. in the RAM address space (MCU types: attiny212, attiny214,
  6830. attiny412, attiny414, attiny416, attiny417, attiny814, attiny816,
  6831. attiny817, attiny1614, attiny1616, attiny1617, attiny3214,
  6832. attiny3216, attiny3217).
  6833. Instruction set avrxmega4 is for the XMEGA AVR core with up to 64K
  6834. program memory space and less than 64K data space (MCU types:
  6835. atxmega64a3, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3,
  6836. atxmega64c3, atxmega64d3, atxmega64d4).
  6837. Instruction set avrxmega5 is for the XMEGA AVR core with up to 64K
  6838. program memory space and greater than 64K data space (MCU types:
  6839. atxmega64a1, atxmega64a1u).
  6840. Instruction set avrxmega6 is for the XMEGA AVR core with larger
  6841. than 64K program memory space and less than 64K data space (MCU
  6842. types: atxmega128a3, atxmega128a3u, atxmega128c3, atxmega128d3,
  6843. atxmega128d4, atxmega192a3, atxmega192a3u, atxmega128b1,
  6844. atxmega128b3, atxmega192c3, atxmega192d3, atxmega256a3,
  6845. atxmega256a3u, atxmega256a3b, atxmega256a3bu, atxmega256c3,
  6846. atxmega256d3, atxmega384c3, atxmega256d3).
  6847. Instruction set avrxmega7 is for the XMEGA AVR core with larger
  6848. than 64K program memory space and greater than 64K data space (MCU
  6849. types: atxmega128a1, atxmega128a1u, atxmega128a4u).
  6850. Instruction set avrtiny is for the ATtiny4/5/9/10/20/40
  6851. microcontrollers.
  6852. '-mall-opcodes'
  6853. Accept all AVR opcodes, even if not supported by '-mmcu'.
  6854. '-mno-skip-bug'
  6855. This option disable warnings for skipping two-word instructions.
  6856. '-mno-wrap'
  6857. This option reject 'rjmp/rcall' instructions with 8K wrap-around.
  6858. '-mrmw'
  6859. Accept Read-Modify-Write ('XCH,LAC,LAS,LAT') instructions.
  6860. '-mlink-relax'
  6861. Enable support for link-time relaxation. This is now on by default
  6862. and this flag no longer has any effect.
  6863. '-mno-link-relax'
  6864. Disable support for link-time relaxation. The assembler will
  6865. resolve relocations when it can, and may be able to better compress
  6866. some debug information.
  6867. '-mgcc-isr'
  6868. Enable the '__gcc_isr' pseudo instruction.
  6869. 
  6870. File: as.info, Node: AVR Syntax, Next: AVR Opcodes, Prev: AVR Options, Up: AVR-Dependent
  6871. 9.5.2 Syntax
  6872. ------------
  6873. * Menu:
  6874. * AVR-Chars:: Special Characters
  6875. * AVR-Regs:: Register Names
  6876. * AVR-Modifiers:: Relocatable Expression Modifiers
  6877. 
  6878. File: as.info, Node: AVR-Chars, Next: AVR-Regs, Up: AVR Syntax
  6879. 9.5.2.1 Special Characters
  6880. ..........................
  6881. The presence of a ';' anywhere on a line indicates the start of a
  6882. comment that extends to the end of that line.
  6883. If a '#' appears as the first character of a line, the whole line is
  6884. treated as a comment, but in this case the line can also be a logical
  6885. line number directive (*note Comments::) or a preprocessor control
  6886. command (*note Preprocessing::).
  6887. The '$' character can be used instead of a newline to separate
  6888. statements.
  6889. 
  6890. File: as.info, Node: AVR-Regs, Next: AVR-Modifiers, Prev: AVR-Chars, Up: AVR Syntax
  6891. 9.5.2.2 Register Names
  6892. ......................
  6893. The AVR has 32 x 8-bit general purpose working registers 'r0', 'r1', ...
  6894. 'r31'. Six of the 32 registers can be used as three 16-bit indirect
  6895. address register pointers for Data Space addressing. One of the these
  6896. address pointers can also be used as an address pointer for look up
  6897. tables in Flash program memory. These added function registers are the
  6898. 16-bit 'X', 'Y' and 'Z' - registers.
  6899. X = r26:r27
  6900. Y = r28:r29
  6901. Z = r30:r31
  6902. 
  6903. File: as.info, Node: AVR-Modifiers, Prev: AVR-Regs, Up: AVR Syntax
  6904. 9.5.2.3 Relocatable Expression Modifiers
  6905. ........................................
  6906. The assembler supports several modifiers when using relocatable
  6907. addresses in AVR instruction operands. The general syntax is the
  6908. following:
  6909. modifier(relocatable-expression)
  6910. 'lo8'
  6911. This modifier allows you to use bits 0 through 7 of an address
  6912. expression as 8 bit relocatable expression.
  6913. 'hi8'
  6914. This modifier allows you to use bits 7 through 15 of an address
  6915. expression as 8 bit relocatable expression. This is useful with,
  6916. for example, the AVR 'ldi' instruction and 'lo8' modifier.
  6917. For example
  6918. ldi r26, lo8(sym+10)
  6919. ldi r27, hi8(sym+10)
  6920. 'hh8'
  6921. This modifier allows you to use bits 16 through 23 of an address
  6922. expression as 8 bit relocatable expression. Also, can be useful
  6923. for loading 32 bit constants.
  6924. 'hlo8'
  6925. Synonym of 'hh8'.
  6926. 'hhi8'
  6927. This modifier allows you to use bits 24 through 31 of an expression
  6928. as 8 bit expression. This is useful with, for example, the AVR
  6929. 'ldi' instruction and 'lo8', 'hi8', 'hlo8', 'hhi8', modifier.
  6930. For example
  6931. ldi r26, lo8(285774925)
  6932. ldi r27, hi8(285774925)
  6933. ldi r28, hlo8(285774925)
  6934. ldi r29, hhi8(285774925)
  6935. ; r29,r28,r27,r26 = 285774925
  6936. 'pm_lo8'
  6937. This modifier allows you to use bits 0 through 7 of an address
  6938. expression as 8 bit relocatable expression. This modifier useful
  6939. for addressing data or code from Flash/Program memory. The using
  6940. of 'pm_lo8' similar to 'lo8'.
  6941. 'pm_hi8'
  6942. This modifier allows you to use bits 8 through 15 of an address
  6943. expression as 8 bit relocatable expression. This modifier useful
  6944. for addressing data or code from Flash/Program memory.
  6945. 'pm_hh8'
  6946. This modifier allows you to use bits 15 through 23 of an address
  6947. expression as 8 bit relocatable expression. This modifier useful
  6948. for addressing data or code from Flash/Program memory.
  6949. 
  6950. File: as.info, Node: AVR Opcodes, Next: AVR Pseudo Instructions, Prev: AVR Syntax, Up: AVR-Dependent
  6951. 9.5.3 Opcodes
  6952. -------------
  6953. For detailed information on the AVR machine instruction set, see
  6954. <www.atmel.com/products/AVR>.
  6955. 'as' implements all the standard AVR opcodes. The following table
  6956. summarizes the AVR opcodes, and their arguments.
  6957. Legend:
  6958. r any register
  6959. d 'ldi' register (r16-r31)
  6960. v 'movw' even register (r0, r2, ..., r28, r30)
  6961. a 'fmul' register (r16-r23)
  6962. w 'adiw' register (r24,r26,r28,r30)
  6963. e pointer registers (X,Y,Z)
  6964. b base pointer register and displacement ([YZ]+disp)
  6965. z Z pointer register (for [e]lpm Rd,Z[+])
  6966. M immediate value from 0 to 255
  6967. n immediate value from 0 to 255 ( n = ~M ). Relocation impossible
  6968. s immediate value from 0 to 7
  6969. P Port address value from 0 to 63. (in, out)
  6970. p Port address value from 0 to 31. (cbi, sbi, sbic, sbis)
  6971. K immediate value from 0 to 63 (used in 'adiw', 'sbiw')
  6972. i immediate value
  6973. l signed pc relative offset from -64 to 63
  6974. L signed pc relative offset from -2048 to 2047
  6975. h absolute code address (call, jmp)
  6976. S immediate value from 0 to 7 (S = s << 4)
  6977. ? use this opcode entry if no parameters, else use next opcode entry
  6978. 1001010010001000 clc
  6979. 1001010011011000 clh
  6980. 1001010011111000 cli
  6981. 1001010010101000 cln
  6982. 1001010011001000 cls
  6983. 1001010011101000 clt
  6984. 1001010010111000 clv
  6985. 1001010010011000 clz
  6986. 1001010000001000 sec
  6987. 1001010001011000 seh
  6988. 1001010001111000 sei
  6989. 1001010000101000 sen
  6990. 1001010001001000 ses
  6991. 1001010001101000 set
  6992. 1001010000111000 sev
  6993. 1001010000011000 sez
  6994. 100101001SSS1000 bclr S
  6995. 100101000SSS1000 bset S
  6996. 1001010100001001 icall
  6997. 1001010000001001 ijmp
  6998. 1001010111001000 lpm ?
  6999. 1001000ddddd010+ lpm r,z
  7000. 1001010111011000 elpm ?
  7001. 1001000ddddd011+ elpm r,z
  7002. 0000000000000000 nop
  7003. 1001010100001000 ret
  7004. 1001010100011000 reti
  7005. 1001010110001000 sleep
  7006. 1001010110011000 break
  7007. 1001010110101000 wdr
  7008. 1001010111101000 spm
  7009. 000111rdddddrrrr adc r,r
  7010. 000011rdddddrrrr add r,r
  7011. 001000rdddddrrrr and r,r
  7012. 000101rdddddrrrr cp r,r
  7013. 000001rdddddrrrr cpc r,r
  7014. 000100rdddddrrrr cpse r,r
  7015. 001001rdddddrrrr eor r,r
  7016. 001011rdddddrrrr mov r,r
  7017. 100111rdddddrrrr mul r,r
  7018. 001010rdddddrrrr or r,r
  7019. 000010rdddddrrrr sbc r,r
  7020. 000110rdddddrrrr sub r,r
  7021. 001001rdddddrrrr clr r
  7022. 000011rdddddrrrr lsl r
  7023. 000111rdddddrrrr rol r
  7024. 001000rdddddrrrr tst r
  7025. 0111KKKKddddKKKK andi d,M
  7026. 0111KKKKddddKKKK cbr d,n
  7027. 1110KKKKddddKKKK ldi d,M
  7028. 11101111dddd1111 ser d
  7029. 0110KKKKddddKKKK ori d,M
  7030. 0110KKKKddddKKKK sbr d,M
  7031. 0011KKKKddddKKKK cpi d,M
  7032. 0100KKKKddddKKKK sbci d,M
  7033. 0101KKKKddddKKKK subi d,M
  7034. 1111110rrrrr0sss sbrc r,s
  7035. 1111111rrrrr0sss sbrs r,s
  7036. 1111100ddddd0sss bld r,s
  7037. 1111101ddddd0sss bst r,s
  7038. 10110PPdddddPPPP in r,P
  7039. 10111PPrrrrrPPPP out P,r
  7040. 10010110KKddKKKK adiw w,K
  7041. 10010111KKddKKKK sbiw w,K
  7042. 10011000pppppsss cbi p,s
  7043. 10011010pppppsss sbi p,s
  7044. 10011001pppppsss sbic p,s
  7045. 10011011pppppsss sbis p,s
  7046. 111101lllllll000 brcc l
  7047. 111100lllllll000 brcs l
  7048. 111100lllllll001 breq l
  7049. 111101lllllll100 brge l
  7050. 111101lllllll101 brhc l
  7051. 111100lllllll101 brhs l
  7052. 111101lllllll111 brid l
  7053. 111100lllllll111 brie l
  7054. 111100lllllll000 brlo l
  7055. 111100lllllll100 brlt l
  7056. 111100lllllll010 brmi l
  7057. 111101lllllll001 brne l
  7058. 111101lllllll010 brpl l
  7059. 111101lllllll000 brsh l
  7060. 111101lllllll110 brtc l
  7061. 111100lllllll110 brts l
  7062. 111101lllllll011 brvc l
  7063. 111100lllllll011 brvs l
  7064. 111101lllllllsss brbc s,l
  7065. 111100lllllllsss brbs s,l
  7066. 1101LLLLLLLLLLLL rcall L
  7067. 1100LLLLLLLLLLLL rjmp L
  7068. 1001010hhhhh111h call h
  7069. 1001010hhhhh110h jmp h
  7070. 1001010rrrrr0101 asr r
  7071. 1001010rrrrr0000 com r
  7072. 1001010rrrrr1010 dec r
  7073. 1001010rrrrr0011 inc r
  7074. 1001010rrrrr0110 lsr r
  7075. 1001010rrrrr0001 neg r
  7076. 1001000rrrrr1111 pop r
  7077. 1001001rrrrr1111 push r
  7078. 1001010rrrrr0111 ror r
  7079. 1001010rrrrr0010 swap r
  7080. 00000001ddddrrrr movw v,v
  7081. 00000010ddddrrrr muls d,d
  7082. 000000110ddd0rrr mulsu a,a
  7083. 000000110ddd1rrr fmul a,a
  7084. 000000111ddd0rrr fmuls a,a
  7085. 000000111ddd1rrr fmulsu a,a
  7086. 1001001ddddd0000 sts i,r
  7087. 1001000ddddd0000 lds r,i
  7088. 10o0oo0dddddbooo ldd r,b
  7089. 100!000dddddee-+ ld r,e
  7090. 10o0oo1rrrrrbooo std b,r
  7091. 100!001rrrrree-+ st e,r
  7092. 1001010100011001 eicall
  7093. 1001010000011001 eijmp
  7094. 
  7095. File: as.info, Node: AVR Pseudo Instructions, Prev: AVR Opcodes, Up: AVR-Dependent
  7096. 9.5.4 Pseudo Instructions
  7097. -------------------------
  7098. The only available pseudo-instruction '__gcc_isr' can be activated by
  7099. option '-mgcc-isr'.
  7100. '__gcc_isr 1'
  7101. Emit code chunk to be used in avr-gcc ISR prologue. It will expand
  7102. to at most six 1-word instructions, all optional: push of
  7103. 'tmp_reg', push of 'SREG', push and clear of 'zero_reg', push of
  7104. REG.
  7105. '__gcc_isr 2'
  7106. Emit code chunk to be used in an avr-gcc ISR epilogue. It will
  7107. expand to at most five 1-word instructions, all optional: pop of
  7108. REG, pop of 'zero_reg', pop of 'SREG', pop of 'tmp_reg'.
  7109. '__gcc_isr 0, REG'
  7110. Finish avr-gcc ISR function. Scan code since the last prologue for
  7111. usage of: 'SREG', 'tmp_reg', 'zero_reg'. Prologue chunk and
  7112. epilogue chunks will be replaced by appropriate code to save /
  7113. restore 'SREG', 'tmp_reg', 'zero_reg' and REG.
  7114. Example input:
  7115. __vector1:
  7116. __gcc_isr 1
  7117. lds r24, var
  7118. inc r24
  7119. sts var, r24
  7120. __gcc_isr 2
  7121. reti
  7122. __gcc_isr 0, r24
  7123. Example output:
  7124. 00000000 <__vector1>:
  7125. 0: 8f 93 push r24
  7126. 2: 8f b7 in r24, 0x3f
  7127. 4: 8f 93 push r24
  7128. 6: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <var>
  7129. a: 83 95 inc r24
  7130. c: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <var>
  7131. 10: 8f 91 pop r24
  7132. 12: 8f bf out 0x3f, r24
  7133. 14: 8f 91 pop r24
  7134. 16: 18 95 reti
  7135. 
  7136. File: as.info, Node: Blackfin-Dependent, Next: BPF-Dependent, Prev: AVR-Dependent, Up: Machine Dependencies
  7137. 9.6 Blackfin Dependent Features
  7138. ===============================
  7139. * Menu:
  7140. * Blackfin Options:: Blackfin Options
  7141. * Blackfin Syntax:: Blackfin Syntax
  7142. * Blackfin Directives:: Blackfin Directives
  7143. 
  7144. File: as.info, Node: Blackfin Options, Next: Blackfin Syntax, Up: Blackfin-Dependent
  7145. 9.6.1 Options
  7146. -------------
  7147. '-mcpu=PROCESSOR[-SIREVISION]'
  7148. This option specifies the target processor. The optional
  7149. SIREVISION is not used in assembler. It's here such that GCC can
  7150. easily pass down its '-mcpu=' option. The assembler will issue an
  7151. error message if an attempt is made to assemble an instruction
  7152. which will not execute on the target processor. The following
  7153. processor names are recognized: 'bf504', 'bf506', 'bf512', 'bf514',
  7154. 'bf516', 'bf518', 'bf522', 'bf523', 'bf524', 'bf525', 'bf526',
  7155. 'bf527', 'bf531', 'bf532', 'bf533', 'bf534', 'bf535' (not
  7156. implemented yet), 'bf536', 'bf537', 'bf538', 'bf539', 'bf542',
  7157. 'bf542m', 'bf544', 'bf544m', 'bf547', 'bf547m', 'bf548', 'bf548m',
  7158. 'bf549', 'bf549m', 'bf561', and 'bf592'.
  7159. '-mfdpic'
  7160. Assemble for the FDPIC ABI.
  7161. '-mno-fdpic'
  7162. '-mnopic'
  7163. Disable -mfdpic.
  7164. 
  7165. File: as.info, Node: Blackfin Syntax, Next: Blackfin Directives, Prev: Blackfin Options, Up: Blackfin-Dependent
  7166. 9.6.2 Syntax
  7167. ------------
  7168. 'Special Characters'
  7169. Assembler input is free format and may appear anywhere on the line.
  7170. One instruction may extend across multiple lines or more than one
  7171. instruction may appear on the same line. White space (space, tab,
  7172. comments or newline) may appear anywhere between tokens. A token
  7173. must not have embedded spaces. Tokens include numbers, register
  7174. names, keywords, user identifiers, and also some multicharacter
  7175. special symbols like "+=", "/*" or "||".
  7176. Comments are introduced by the '#' character and extend to the end
  7177. of the current line. If the '#' appears as the first character of
  7178. a line, the whole line is treated as a comment, but in this case
  7179. the line can also be a logical line number directive (*note
  7180. Comments::) or a preprocessor control command (*note
  7181. Preprocessing::).
  7182. 'Instruction Delimiting'
  7183. A semicolon must terminate every instruction. Sometimes a complete
  7184. instruction will consist of more than one operation. There are two
  7185. cases where this occurs. The first is when two general operations
  7186. are combined. Normally a comma separates the different parts, as
  7187. in
  7188. a0= r3.h * r2.l, a1 = r3.l * r2.h ;
  7189. The second case occurs when a general instruction is combined with
  7190. one or two memory references for joint issue. The latter portions
  7191. are set off by a "||" token.
  7192. a0 = r3.h * r2.l || r1 = [p3++] || r4 = [i2++];
  7193. Multiple instructions can occur on the same line. Each must be
  7194. terminated by a semicolon character.
  7195. 'Register Names'
  7196. The assembler treats register names and instruction keywords in a
  7197. case insensitive manner. User identifiers are case sensitive.
  7198. Thus, R3.l, R3.L, r3.l and r3.L are all equivalent input to the
  7199. assembler.
  7200. Register names are reserved and may not be used as program
  7201. identifiers.
  7202. Some operations (such as "Move Register") require a register pair.
  7203. Register pairs are always data registers and are denoted using a
  7204. colon, eg., R3:2. The larger number must be written firsts. Note
  7205. that the hardware only supports odd-even pairs, eg., R7:6, R5:4,
  7206. R3:2, and R1:0.
  7207. Some instructions (such as -SP (Push Multiple)) require a group of
  7208. adjacent registers. Adjacent registers are denoted in the syntax
  7209. by the range enclosed in parentheses and separated by a colon, eg.,
  7210. (R7:3). Again, the larger number appears first.
  7211. Portions of a particular register may be individually specified.
  7212. This is written with a dot (".") following the register name and
  7213. then a letter denoting the desired portion. For 32-bit registers,
  7214. ".H" denotes the most significant ("High") portion. ".L" denotes
  7215. the least-significant portion. The subdivisions of the 40-bit
  7216. registers are described later.
  7217. 'Accumulators'
  7218. The set of 40-bit registers A1 and A0 that normally contain data
  7219. that is being manipulated. Each accumulator can be accessed in
  7220. four ways.
  7221. 'one 40-bit register'
  7222. The register will be referred to as A1 or A0.
  7223. 'one 32-bit register'
  7224. The registers are designated as A1.W or A0.W.
  7225. 'two 16-bit registers'
  7226. The registers are designated as A1.H, A1.L, A0.H or A0.L.
  7227. 'one 8-bit register'
  7228. The registers are designated as A1.X or A0.X for the bits that
  7229. extend beyond bit 31.
  7230. 'Data Registers'
  7231. The set of 32-bit registers (R0, R1, R2, R3, R4, R5, R6 and R7)
  7232. that normally contain data for manipulation. These are abbreviated
  7233. as D-register or Dreg. Data registers can be accessed as 32-bit
  7234. registers or as two independent 16-bit registers. The least
  7235. significant 16 bits of each register is called the "low" half and
  7236. is designated with ".L" following the register name. The most
  7237. significant 16 bits are called the "high" half and is designated
  7238. with ".H" following the name.
  7239. R7.L, r2.h, r4.L, R0.H
  7240. 'Pointer Registers'
  7241. The set of 32-bit registers (P0, P1, P2, P3, P4, P5, SP and FP)
  7242. that normally contain byte addresses of data structures. These are
  7243. abbreviated as P-register or Preg.
  7244. p2, p5, fp, sp
  7245. 'Stack Pointer SP'
  7246. The stack pointer contains the 32-bit address of the last occupied
  7247. byte location in the stack. The stack grows by decrementing the
  7248. stack pointer.
  7249. 'Frame Pointer FP'
  7250. The frame pointer contains the 32-bit address of the previous frame
  7251. pointer in the stack. It is located at the top of a frame.
  7252. 'Loop Top'
  7253. LT0 and LT1. These registers contain the 32-bit address of the top
  7254. of a zero overhead loop.
  7255. 'Loop Count'
  7256. LC0 and LC1. These registers contain the 32-bit counter of the
  7257. zero overhead loop executions.
  7258. 'Loop Bottom'
  7259. LB0 and LB1. These registers contain the 32-bit address of the
  7260. bottom of a zero overhead loop.
  7261. 'Index Registers'
  7262. The set of 32-bit registers (I0, I1, I2, I3) that normally contain
  7263. byte addresses of data structures. Abbreviated I-register or Ireg.
  7264. 'Modify Registers'
  7265. The set of 32-bit registers (M0, M1, M2, M3) that normally contain
  7266. offset values that are added and subtracted to one of the index
  7267. registers. Abbreviated as Mreg.
  7268. 'Length Registers'
  7269. The set of 32-bit registers (L0, L1, L2, L3) that normally contain
  7270. the length in bytes of the circular buffer. Abbreviated as Lreg.
  7271. Clear the Lreg to disable circular addressing for the corresponding
  7272. Ireg.
  7273. 'Base Registers'
  7274. The set of 32-bit registers (B0, B1, B2, B3) that normally contain
  7275. the base address in bytes of the circular buffer. Abbreviated as
  7276. Breg.
  7277. 'Floating Point'
  7278. The Blackfin family has no hardware floating point but the .float
  7279. directive generates ieee floating point numbers for use with
  7280. software floating point libraries.
  7281. 'Blackfin Opcodes'
  7282. For detailed information on the Blackfin machine instruction set,
  7283. see the Blackfin Processor Instruction Set Reference.
  7284. 
  7285. File: as.info, Node: Blackfin Directives, Prev: Blackfin Syntax, Up: Blackfin-Dependent
  7286. 9.6.3 Directives
  7287. ----------------
  7288. The following directives are provided for compatibility with the VDSP
  7289. assembler.
  7290. '.byte2'
  7291. Initializes a two byte data object.
  7292. This maps to the '.short' directive.
  7293. '.byte4'
  7294. Initializes a four byte data object.
  7295. This maps to the '.int' directive.
  7296. '.db'
  7297. Initializes a single byte data object.
  7298. This directive is a synonym for '.byte'.
  7299. '.dw'
  7300. Initializes a two byte data object.
  7301. This directive is a synonym for '.byte2'.
  7302. '.dd'
  7303. Initializes a four byte data object.
  7304. This directive is a synonym for '.byte4'.
  7305. '.var'
  7306. Define and initialize a 32 bit data object.
  7307. 
  7308. File: as.info, Node: BPF-Dependent, Next: CR16-Dependent, Prev: Blackfin-Dependent, Up: Machine Dependencies
  7309. 9.7 BPF Dependent Features
  7310. ==========================
  7311. * Menu:
  7312. * BPF Options:: Options
  7313. * BPF Syntax:: Syntax
  7314. * BPF Directives:: Machine Directives
  7315. * BPF Opcodes:: Opcodes
  7316. 
  7317. File: as.info, Node: BPF Options, Next: BPF Syntax, Up: BPF-Dependent
  7318. 9.7.1 Options
  7319. -------------
  7320. '-EB'
  7321. This option specifies that the assembler should emit big-endian
  7322. eBPF.
  7323. '-EL'
  7324. This option specifies that the assembler should emit little-endian
  7325. eBPF.
  7326. Note that if no endianness option is specified in the command line,
  7327. the host endianness is used.
  7328. 
  7329. File: as.info, Node: BPF Syntax, Next: BPF Directives, Prev: BPF Options, Up: BPF-Dependent
  7330. 9.7.2 Syntax
  7331. ------------
  7332. * Menu:
  7333. * BPF-Chars:: Special Characters
  7334. * BPF-Regs:: Register Names
  7335. * BPF-Pseudo-Maps:: Pseudo map fds
  7336. 
  7337. File: as.info, Node: BPF-Chars, Next: BPF-Regs, Up: BPF Syntax
  7338. 9.7.2.1 Special Characters
  7339. ..........................
  7340. The presence of a ';' on a line indicates the start of a comment that
  7341. extends to the end of the current line. If a '#' appears as the first
  7342. character of a line, the whole line is treated as a comment.
  7343. Statements and assembly directives are separated by newlines.
  7344. 
  7345. File: as.info, Node: BPF-Regs, Next: BPF-Pseudo-Maps, Prev: BPF-Chars, Up: BPF Syntax
  7346. 9.7.2.2 Register Names
  7347. ......................
  7348. The eBPF processor provides ten general-purpose 64-bit registers, which
  7349. are read-write, and a read-only frame pointer register:
  7350. '%r0 .. %r9'
  7351. General-purpose registers.
  7352. '%r10'
  7353. Frame pointer register.
  7354. Some registers have additional names, to reflect their role in the
  7355. eBPF ABI:
  7356. '%a'
  7357. This is '%r0'.
  7358. '%ctx'
  7359. This is '%r6'.
  7360. '%fp'
  7361. This is '%r10'.
  7362. 
  7363. File: as.info, Node: BPF-Pseudo-Maps, Prev: BPF-Regs, Up: BPF Syntax
  7364. 9.7.2.3 Pseudo Maps
  7365. ...................
  7366. The 'LDDW' instruction can take a literal pseudo map file descriptor as
  7367. its second argument. This uses the syntax '%map_fd(N)' where 'N' is a
  7368. signed number.
  7369. For example, to load the address of the pseudo map with file
  7370. descriptor '2' in register 'r1' we would do:
  7371. lddw %r1, %map_fd(2)
  7372. 
  7373. File: as.info, Node: BPF Directives, Next: BPF Opcodes, Prev: BPF Syntax, Up: BPF-Dependent
  7374. 9.7.3 Machine Directives
  7375. ------------------------
  7376. The BPF version of 'as' supports the following additional machine
  7377. directives:
  7378. '.word'
  7379. The '.half' directive produces a 16 bit value.
  7380. '.word'
  7381. The '.word' directive produces a 32 bit value.
  7382. '.dword'
  7383. The '.dword' directive produces a 64 bit value.
  7384. 
  7385. File: as.info, Node: BPF Opcodes, Prev: BPF Directives, Up: BPF-Dependent
  7386. 9.7.4 Opcodes
  7387. -------------
  7388. In the instruction descriptions below the following field descriptors
  7389. are used:
  7390. '%d'
  7391. Destination general-purpose register whose role is to be
  7392. destination of an operation.
  7393. '%s'
  7394. Source general-purpose register whose role is to be the source of
  7395. an operation.
  7396. 'disp16'
  7397. 16-bit signed PC-relative offset, measured in number of 64-bit
  7398. words, minus one.
  7399. 'disp32'
  7400. 32-bit signed PC-relative offset, measured in number of 64-bit
  7401. words, minus one.
  7402. 'offset16'
  7403. Signed 16-bit immediate.
  7404. 'imm32'
  7405. Signed 32-bit immediate.
  7406. 'imm64'
  7407. Signed 64-bit immediate.
  7408. 9.7.4.1 Arithmetic instructions
  7409. ...............................
  7410. The destination register in these instructions act like an accumulator.
  7411. 'add %d, (%s|imm32)'
  7412. 64-bit arithmetic addition.
  7413. 'sub %d, (%s|imm32)'
  7414. 64-bit arithmetic subtraction.
  7415. 'mul %d, (%s|imm32)'
  7416. 64-bit arithmetic multiplication.
  7417. 'div %d, (%s|imm32)'
  7418. 64-bit arithmetic integer division.
  7419. 'mod %d, (%s|imm32)'
  7420. 64-bit integer remainder.
  7421. 'and %d, (%s|imm32)'
  7422. 64-bit bit-wise "and" operation.
  7423. 'or %d, (%s|imm32)'
  7424. 64-bit bit-wise "or" operation.
  7425. 'xor %d, (%s|imm32)'
  7426. 64-bit bit-wise exclusive-or operation.
  7427. 'lsh %d, (%s|imm32)'
  7428. 64-bit left shift, by '%s' or 'imm32' bits.
  7429. 'rsh %d, (%s|imm32)'
  7430. 64-bit right logical shift, by '%s' or 'imm32' bits.
  7431. 'arsh %d, (%s|imm32)'
  7432. 64-bit right arithmetic shift, by '%s' or 'imm32' bits.
  7433. 'neg %d'
  7434. 64-bit arithmetic negation.
  7435. 'mov %d, (%s|imm32)'
  7436. Move the 64-bit value of '%s' in '%d', or load 'imm32' in '%d'.
  7437. 9.7.4.2 32-bit arithmetic instructions
  7438. ......................................
  7439. The destination register in these instructions act as an accumulator.
  7440. 'add32 %d, (%s|imm32)'
  7441. 32-bit arithmetic addition.
  7442. 'sub32 %d, (%s|imm32)'
  7443. 32-bit arithmetic subtraction.
  7444. 'mul32 %d, (%s|imm32)'
  7445. 32-bit arithmetic multiplication.
  7446. 'div32 %d, (%s|imm32)'
  7447. 32-bit arithmetic integer division.
  7448. 'mod32 %d, (%s|imm32)'
  7449. 32-bit integer remainder.
  7450. 'and32 %d, (%s|imm32)'
  7451. 32-bit bit-wise "and" operation.
  7452. 'or32 %d, (%s|imm32)'
  7453. 32-bit bit-wise "or" operation.
  7454. 'xor32 %d, (%s|imm32)'
  7455. 32-bit bit-wise exclusive-or operation.
  7456. 'lsh32 %d, (%s|imm32)'
  7457. 32-bit left shift, by '%s' or 'imm32' bits.
  7458. 'rsh32 %d, (%s|imm32)'
  7459. 32-bit right logical shift, by '%s' or 'imm32' bits.
  7460. 'arsh32 %d, (%s|imm32)'
  7461. 32-bit right arithmetic shift, by '%s' or 'imm32' bits.
  7462. 'neg32 %d'
  7463. 32-bit arithmetic negation.
  7464. 'mov32 %d, (%s|imm32)'
  7465. Move the 32-bit value of '%s' in '%d', or load 'imm32' in '%d'.
  7466. 9.7.4.3 Endianness conversion instructions
  7467. ..........................................
  7468. 'endle %d, (8|16|32)'
  7469. Convert the 8-bit, 16-bit or 32-bit value in '%d' to little-endian.
  7470. 'endbe %d, (8|16|32)'
  7471. Convert the 8-bit, 16-bit or 32-bit value in '%d' to big-endian.
  7472. 9.7.4.4 64-bit load and pseudo maps
  7473. ...................................
  7474. 'lddw %d, imm64'
  7475. Load the given signed 64-bit immediate, or pseudo map descriptor,
  7476. to the destination register '%d'.
  7477. 'lddw %d, %map_fd(N)'
  7478. Load the address of the given pseudo map fd _N_ to the destination
  7479. register '%d'.
  7480. 9.7.4.5 Load instructions for socket filters
  7481. ............................................
  7482. The following instructions are intended to be used in socket filters,
  7483. and are therefore not general-purpose: they make assumptions on the
  7484. contents of several registers. See the file
  7485. 'Documentation/networking/filter.txt' in the Linux kernel source tree
  7486. for more information.
  7487. Absolute loads:
  7488. 'ldabsdw imm32'
  7489. Absolute 64-bit load.
  7490. 'ldabsw imm32'
  7491. Absolute 32-bit load.
  7492. 'ldabsh imm32'
  7493. Absolute 16-bit load.
  7494. 'ldabsb imm32'
  7495. Absolute 8-bit load.
  7496. Indirect loads:
  7497. 'ldinddw %s, imm32'
  7498. Indirect 64-bit load.
  7499. 'ldindw %s, imm32'
  7500. Indirect 32-bit load.
  7501. 'ldindh %s, imm32'
  7502. Indirect 16-bit load.
  7503. 'ldindb %s, imm32'
  7504. Indirect 8-bit load.
  7505. 9.7.4.6 Generic load/store instructions
  7506. .......................................
  7507. General-purpose load and store instructions are provided for several
  7508. word sizes.
  7509. Load to register instructions:
  7510. 'ldxdw %d, [%s+offset16]'
  7511. Generic 64-bit load.
  7512. 'ldxw %d, [%s+offset16]'
  7513. Generic 32-bit load.
  7514. 'ldxh %d, [%s+offset16]'
  7515. Generic 16-bit load.
  7516. 'ldxb %d, [%s+offset16]'
  7517. Generic 8-bit load.
  7518. Store from register instructions:
  7519. 'stxdw [%d+offset16], %s'
  7520. Generic 64-bit store.
  7521. 'stxw [%d+offset16], %s'
  7522. Generic 32-bit store.
  7523. 'stxh [%d+offset16], %s'
  7524. Generic 16-bit store.
  7525. 'stxb [%d+offset16], %s'
  7526. Generic 8-bit store.
  7527. Store from immediates instructions:
  7528. 'stddw [%d+offset16], imm32'
  7529. Store immediate as 64-bit.
  7530. 'stdw [%d+offset16], imm32'
  7531. Store immediate as 32-bit.
  7532. 'stdh [%d+offset16], imm32'
  7533. Store immediate as 16-bit.
  7534. 'stdb [%d+offset16], imm32'
  7535. Store immediate as 8-bit.
  7536. 9.7.4.7 Jump instructions
  7537. .........................
  7538. eBPF provides the following compare-and-jump instructions, which compare
  7539. the values of the two given registers, or the values of a register and
  7540. an immediate, and perform a branch in case the comparison holds true.
  7541. 'ja %d,(%s|imm32),disp16'
  7542. Jump-always.
  7543. 'jeq %d,(%s|imm32),disp16'
  7544. Jump if equal.
  7545. 'jgt %d,(%s|imm32),disp16'
  7546. Jump if greater.
  7547. 'jge %d,(%s|imm32),disp16'
  7548. Jump if greater or equal.
  7549. 'jlt %d,(%s|imm32),disp16'
  7550. Jump if lesser.
  7551. 'jle %d,(%s|imm32),disp16'
  7552. Jump if lesser or equal.
  7553. 'jset %d,(%s|imm32),disp16'
  7554. Jump if signed equal.
  7555. 'jne %d,(%s|imm32),disp16'
  7556. Jump if not equal.
  7557. 'jsgt %d,(%s|imm32),disp16'
  7558. Jump if signed greater.
  7559. 'jsge %d,(%s|imm32),disp16'
  7560. Jump if signed greater or equal.
  7561. 'jslt %d,(%s|imm32),disp16'
  7562. Jump if signed lesser.
  7563. 'jsle %d,(%s|imm32),disp16'
  7564. Jump if signed lesser or equal.
  7565. A call instruction is provided in order to perform calls to other
  7566. eBPF functions, or to external kernel helpers:
  7567. 'call (disp32|imm32)'
  7568. Jump and link to the offset _disp32_, or to the kernel helper
  7569. function identified by _imm32_.
  7570. Finally:
  7571. 'exit'
  7572. Terminate the eBPF program.
  7573. 9.7.4.8 Atomic instructions
  7574. ...........................
  7575. Atomic exchange-and-add instructions are provided in two flavors: one
  7576. for swapping 64-bit quantities and another for 32-bit quantities.
  7577. 'xadddw [%d+offset16],%s'
  7578. Exchange-and-add a 64-bit value at the specified location.
  7579. 'xaddw [%d+offset16],%s'
  7580. Exchange-and-add a 32-bit value at the specified location.
  7581. 
  7582. File: as.info, Node: CR16-Dependent, Next: CRIS-Dependent, Prev: BPF-Dependent, Up: Machine Dependencies
  7583. 9.8 CR16 Dependent Features
  7584. ===========================
  7585. * Menu:
  7586. * CR16 Operand Qualifiers:: CR16 Machine Operand Qualifiers
  7587. * CR16 Syntax:: Syntax for the CR16
  7588. 
  7589. File: as.info, Node: CR16 Operand Qualifiers, Next: CR16 Syntax, Up: CR16-Dependent
  7590. 9.8.1 CR16 Operand Qualifiers
  7591. -----------------------------
  7592. The National Semiconductor CR16 target of 'as' has a few machine
  7593. dependent operand qualifiers.
  7594. Operand expression type qualifier is an optional field in the
  7595. instruction operand, to determines the type of the expression field of
  7596. an operand. The '@' is required. CR16 architecture uses one of the
  7597. following expression qualifiers:
  7598. 's'
  7599. - 'Specifies expression operand type as small'
  7600. 'm'
  7601. - 'Specifies expression operand type as medium'
  7602. 'l'
  7603. - 'Specifies expression operand type as large'
  7604. 'c'
  7605. - 'Specifies the CR16 Assembler generates a relocation entry for
  7606. the operand, where pc has implied bit, the expression is adjusted
  7607. accordingly. The linker uses the relocation entry to update the
  7608. operand address at link time.'
  7609. 'got/GOT'
  7610. - 'Specifies the CR16 Assembler generates a relocation entry for
  7611. the operand, offset from Global Offset Table. The linker uses this
  7612. relocation entry to update the operand address at link time'
  7613. 'cgot/cGOT'
  7614. - 'Specifies the CompactRISC Assembler generates a relocation entry
  7615. for the operand, where pc has implied bit, the expression is
  7616. adjusted accordingly. The linker uses the relocation entry to
  7617. update the operand address at link time.'
  7618. CR16 target operand qualifiers and its size (in bits):
  7619. 'Immediate Operand: s'
  7620. 4 bits.
  7621. 'Immediate Operand: m'
  7622. 16 bits, for movb and movw instructions.
  7623. 'Immediate Operand: m'
  7624. 20 bits, movd instructions.
  7625. 'Immediate Operand: l'
  7626. 32 bits.
  7627. 'Absolute Operand: s'
  7628. Illegal specifier for this operand.
  7629. 'Absolute Operand: m'
  7630. 20 bits, movd instructions.
  7631. 'Displacement Operand: s'
  7632. 8 bits.
  7633. 'Displacement Operand: m'
  7634. 16 bits.
  7635. 'Displacement Operand: l'
  7636. 24 bits.
  7637. For example:
  7638. 1 movw $_myfun@c,r1
  7639. This loads the address of _myfun, shifted right by 1, into r1.
  7640. 2 movd $_myfun@c,(r2,r1)
  7641. This loads the address of _myfun, shifted right by 1, into register-pair r2-r1.
  7642. 3 _myfun_ptr:
  7643. .long _myfun@c
  7644. loadd _myfun_ptr, (r1,r0)
  7645. jal (r1,r0)
  7646. This .long directive, the address of _myfunc, shifted right by 1 at link time.
  7647. 4 loadd _data1@GOT(r12), (r1,r0)
  7648. This loads the address of _data1, into global offset table (ie GOT) and its offset value from GOT loads into register-pair r2-r1.
  7649. 5 loadd _myfunc@cGOT(r12), (r1,r0)
  7650. 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.
  7651. 
  7652. File: as.info, Node: CR16 Syntax, Prev: CR16 Operand Qualifiers, Up: CR16-Dependent
  7653. 9.8.2 CR16 Syntax
  7654. -----------------
  7655. * Menu:
  7656. * CR16-Chars:: Special Characters
  7657. 
  7658. File: as.info, Node: CR16-Chars, Up: CR16 Syntax
  7659. 9.8.2.1 Special Characters
  7660. ..........................
  7661. The presence of a '#' on a line indicates the start of a comment that
  7662. extends to the end of the current line. If the '#' appears as the first
  7663. character of a line, the whole line is treated as a comment, but in this
  7664. case the line can also be a logical line number directive (*note
  7665. Comments::) or a preprocessor control command (*note Preprocessing::).
  7666. The ';' character can be used to separate statements on the same
  7667. line.
  7668. 
  7669. File: as.info, Node: CRIS-Dependent, Next: C-SKY-Dependent, Prev: CR16-Dependent, Up: Machine Dependencies
  7670. 9.9 CRIS Dependent Features
  7671. ===========================
  7672. * Menu:
  7673. * CRIS-Opts:: Command-line Options
  7674. * CRIS-Expand:: Instruction expansion
  7675. * CRIS-Symbols:: Symbols
  7676. * CRIS-Syntax:: Syntax
  7677. 
  7678. File: as.info, Node: CRIS-Opts, Next: CRIS-Expand, Up: CRIS-Dependent
  7679. 9.9.1 Command-line Options
  7680. --------------------------
  7681. The CRIS version of 'as' has these machine-dependent command-line
  7682. options.
  7683. The format of the generated object files can be either ELF or a.out,
  7684. specified by the command-line options '--emulation=crisaout' and
  7685. '--emulation=criself'. The default is ELF (criself), unless 'as' has
  7686. been configured specifically for a.out by using the configuration name
  7687. 'cris-axis-aout'.
  7688. There are two different link-incompatible ELF object file variants
  7689. for CRIS, for use in environments where symbols are expected to be
  7690. prefixed by a leading '_' character and for environments without such a
  7691. symbol prefix. The variant used for GNU/Linux port has no symbol
  7692. prefix. Which variant to produce is specified by either of the options
  7693. '--underscore' and '--no-underscore'. The default is '--underscore'.
  7694. Since symbols in CRIS a.out objects are expected to have a '_' prefix,
  7695. specifying '--no-underscore' when generating a.out objects is an error.
  7696. Besides the object format difference, the effect of this option is to
  7697. parse register names differently (*note crisnous::). The
  7698. '--no-underscore' option makes a '$' register prefix mandatory.
  7699. The option '--pic' must be passed to 'as' in order to recognize the
  7700. symbol syntax used for ELF (SVR4 PIC) position-independent-code (*note
  7701. crispic::). This will also affect expansion of instructions. The
  7702. expansion with '--pic' will use PC-relative rather than (slightly
  7703. faster) absolute addresses in those expansions. This option is only
  7704. valid when generating ELF format object files.
  7705. The option '--march=ARCHITECTURE' specifies the recognized
  7706. instruction set and recognized register names. It also controls the
  7707. architecture type of the object file. Valid values for ARCHITECTURE
  7708. are:
  7709. 'v0_v10'
  7710. All instructions and register names for any architecture variant in
  7711. the set v0...v10 are recognized. This is the default if the target
  7712. is configured as cris-*.
  7713. 'v10'
  7714. Only instructions and register names for CRIS v10 (as found in
  7715. ETRAX 100 LX) are recognized. This is the default if the target is
  7716. configured as crisv10-*.
  7717. 'v32'
  7718. Only instructions and register names for CRIS v32 (code name
  7719. Guinness) are recognized. This is the default if the target is
  7720. configured as crisv32-*. This value implies '--no-mul-bug-abort'.
  7721. (A subsequent '--mul-bug-abort' will turn it back on.)
  7722. 'common_v10_v32'
  7723. Only instructions with register names and addressing modes with
  7724. opcodes common to the v10 and v32 are recognized.
  7725. When '-N' is specified, 'as' will emit a warning when a 16-bit branch
  7726. instruction is expanded into a 32-bit multiple-instruction construct
  7727. (*note CRIS-Expand::).
  7728. Some versions of the CRIS v10, for example in the Etrax 100 LX,
  7729. contain a bug that causes destabilizing memory accesses when a multiply
  7730. instruction is executed with certain values in the first operand just
  7731. before a cache-miss. When the '--mul-bug-abort' command-line option is
  7732. active (the default value), 'as' will refuse to assemble a file
  7733. containing a multiply instruction at a dangerous offset, one that could
  7734. be the last on a cache-line, or is in a section with insufficient
  7735. alignment. This placement checking does not catch any case where the
  7736. multiply instruction is dangerously placed because it is located in a
  7737. delay-slot. The '--mul-bug-abort' command-line option turns off the
  7738. checking.
  7739. 
  7740. File: as.info, Node: CRIS-Expand, Next: CRIS-Symbols, Prev: CRIS-Opts, Up: CRIS-Dependent
  7741. 9.9.2 Instruction expansion
  7742. ---------------------------
  7743. 'as' will silently choose an instruction that fits the operand size for
  7744. '[register+constant]' operands. For example, the offset '127' in
  7745. 'move.d [r3+127],r4' fits in an instruction using a signed-byte offset.
  7746. Similarly, 'move.d [r2+32767],r1' will generate an instruction using a
  7747. 16-bit offset. For symbolic expressions and constants that do not fit
  7748. in 16 bits including the sign bit, a 32-bit offset is generated.
  7749. For branches, 'as' will expand from a 16-bit branch instruction into
  7750. a sequence of instructions that can reach a full 32-bit address. Since
  7751. this does not correspond to a single instruction, such expansions can
  7752. optionally be warned about. *Note CRIS-Opts::.
  7753. If the operand is found to fit the range, a 'lapc' mnemonic will
  7754. translate to a 'lapcq' instruction. Use 'lapc.d' to force the 32-bit
  7755. 'lapc' instruction.
  7756. Similarly, the 'addo' mnemonic will translate to the shortest fitting
  7757. instruction of 'addoq', 'addo.w' and 'addo.d', when used with a operand
  7758. that is a constant known at assembly time.
  7759. 
  7760. File: as.info, Node: CRIS-Symbols, Next: CRIS-Syntax, Prev: CRIS-Expand, Up: CRIS-Dependent
  7761. 9.9.3 Symbols
  7762. -------------
  7763. Some symbols are defined by the assembler. They're intended to be used
  7764. in conditional assembly, for example:
  7765. .if ..asm.arch.cris.v32
  7766. CODE FOR CRIS V32
  7767. .elseif ..asm.arch.cris.common_v10_v32
  7768. CODE COMMON TO CRIS V32 AND CRIS V10
  7769. .elseif ..asm.arch.cris.v10 | ..asm.arch.cris.any_v0_v10
  7770. CODE FOR V10
  7771. .else
  7772. .error "Code needs to be added here."
  7773. .endif
  7774. These symbols are defined in the assembler, reflecting command-line
  7775. options, either when specified or the default. They are always defined,
  7776. to 0 or 1.
  7777. '..asm.arch.cris.any_v0_v10'
  7778. This symbol is non-zero when '--march=v0_v10' is specified or the
  7779. default.
  7780. '..asm.arch.cris.common_v10_v32'
  7781. Set according to the option '--march=common_v10_v32'.
  7782. '..asm.arch.cris.v10'
  7783. Reflects the option '--march=v10'.
  7784. '..asm.arch.cris.v32'
  7785. Corresponds to '--march=v10'.
  7786. Speaking of symbols, when a symbol is used in code, it can have a
  7787. suffix modifying its value for use in position-independent code. *Note
  7788. CRIS-Pic::.
  7789. 
  7790. File: as.info, Node: CRIS-Syntax, Prev: CRIS-Symbols, Up: CRIS-Dependent
  7791. 9.9.4 Syntax
  7792. ------------
  7793. There are different aspects of the CRIS assembly syntax.
  7794. * Menu:
  7795. * CRIS-Chars:: Special Characters
  7796. * CRIS-Pic:: Position-Independent Code Symbols
  7797. * CRIS-Regs:: Register Names
  7798. * CRIS-Pseudos:: Assembler Directives
  7799. 
  7800. File: as.info, Node: CRIS-Chars, Next: CRIS-Pic, Up: CRIS-Syntax
  7801. 9.9.4.1 Special Characters
  7802. ..........................
  7803. The character '#' is a line comment character. It starts a comment if
  7804. and only if it is placed at the beginning of a line.
  7805. A ';' character starts a comment anywhere on the line, causing all
  7806. characters up to the end of the line to be ignored.
  7807. A '@' character is handled as a line separator equivalent to a
  7808. logical new-line character (except in a comment), so separate
  7809. instructions can be specified on a single line.
  7810. 
  7811. File: as.info, Node: CRIS-Pic, Next: CRIS-Regs, Prev: CRIS-Chars, Up: CRIS-Syntax
  7812. 9.9.4.2 Symbols in position-independent code
  7813. ............................................
  7814. When generating position-independent code (SVR4 PIC) for use in
  7815. cris-axis-linux-gnu or crisv32-axis-linux-gnu shared libraries, symbol
  7816. suffixes are used to specify what kind of run-time symbol lookup will be
  7817. used, expressed in the object as different _relocation types_. Usually,
  7818. all absolute symbol values must be located in a table, the _global
  7819. offset table_, leaving the code position-independent; independent of
  7820. values of global symbols and independent of the address of the code.
  7821. The suffix modifies the value of the symbol, into for example an index
  7822. into the global offset table where the real symbol value is entered, or
  7823. a PC-relative value, or a value relative to the start of the global
  7824. offset table. All symbol suffixes start with the character ':' (omitted
  7825. in the list below). Every symbol use in code or a read-only section
  7826. must therefore have a PIC suffix to enable a useful shared library to be
  7827. created. Usually, these constructs must not be used with an additive
  7828. constant offset as is usually allowed, i.e. no 4 as in 'symbol + 4' is
  7829. allowed. This restriction is checked at link-time, not at
  7830. assembly-time.
  7831. 'GOT'
  7832. Attaching this suffix to a symbol in an instruction causes the
  7833. symbol to be entered into the global offset table. The value is a
  7834. 32-bit index for that symbol into the global offset table. The
  7835. name of the corresponding relocation is 'R_CRIS_32_GOT'. Example:
  7836. 'move.d [$r0+extsym:GOT],$r9'
  7837. 'GOT16'
  7838. Same as for 'GOT', but the value is a 16-bit index into the global
  7839. offset table. The corresponding relocation is 'R_CRIS_16_GOT'.
  7840. Example: 'move.d [$r0+asymbol:GOT16],$r10'
  7841. 'PLT'
  7842. This suffix is used for function symbols. It causes a _procedure
  7843. linkage table_, an array of code stubs, to be created at the time
  7844. the shared object is created or linked against, together with a
  7845. global offset table entry. The value is a pc-relative offset to
  7846. the corresponding stub code in the procedure linkage table. This
  7847. arrangement causes the run-time symbol resolver to be called to
  7848. look up and set the value of the symbol the first time the function
  7849. is called (at latest; depending environment variables). It is only
  7850. safe to leave the symbol unresolved this way if all references are
  7851. function calls. The name of the relocation is
  7852. 'R_CRIS_32_PLT_PCREL'. Example: 'add.d fnname:PLT,$pc'
  7853. 'PLTG'
  7854. Like PLT, but the value is relative to the beginning of the global
  7855. offset table. The relocation is 'R_CRIS_32_PLT_GOTREL'. Example:
  7856. 'move.d fnname:PLTG,$r3'
  7857. 'GOTPLT'
  7858. Similar to 'PLT', but the value of the symbol is a 32-bit index
  7859. into the global offset table. This is somewhat of a mix between
  7860. the effect of the 'GOT' and the 'PLT' suffix; the difference to
  7861. 'GOT' is that there will be a procedure linkage table entry
  7862. created, and that the symbol is assumed to be a function entry and
  7863. will be resolved by the run-time resolver as with 'PLT'. The
  7864. relocation is 'R_CRIS_32_GOTPLT'. Example: 'jsr
  7865. [$r0+fnname:GOTPLT]'
  7866. 'GOTPLT16'
  7867. A variant of 'GOTPLT' giving a 16-bit value. Its relocation name
  7868. is 'R_CRIS_16_GOTPLT'. Example: 'jsr [$r0+fnname:GOTPLT16]'
  7869. 'GOTOFF'
  7870. This suffix must only be attached to a local symbol, but may be
  7871. used in an expression adding an offset. The value is the address
  7872. of the symbol relative to the start of the global offset table.
  7873. The relocation name is 'R_CRIS_32_GOTREL'. Example: 'move.d
  7874. [$r0+localsym:GOTOFF],r3'
  7875. 
  7876. File: as.info, Node: CRIS-Regs, Next: CRIS-Pseudos, Prev: CRIS-Pic, Up: CRIS-Syntax
  7877. 9.9.4.3 Register names
  7878. ......................
  7879. A '$' character may always prefix a general or special register name in
  7880. an instruction operand but is mandatory when the option
  7881. '--no-underscore' is specified or when the '.syntax register_prefix'
  7882. directive is in effect (*note crisnous::). Register names are
  7883. case-insensitive.
  7884. 
  7885. File: as.info, Node: CRIS-Pseudos, Prev: CRIS-Regs, Up: CRIS-Syntax
  7886. 9.9.4.4 Assembler Directives
  7887. ............................
  7888. There are a few CRIS-specific pseudo-directives in addition to the
  7889. generic ones. *Note Pseudo Ops::. Constants emitted by
  7890. pseudo-directives are in little-endian order for CRIS. There is no
  7891. support for floating-point-specific directives for CRIS.
  7892. '.dword EXPRESSIONS'
  7893. The '.dword' directive is a synonym for '.int', expecting zero or
  7894. more EXPRESSIONS, separated by commas. For each expression, a
  7895. 32-bit little-endian constant is emitted.
  7896. '.syntax ARGUMENT'
  7897. The '.syntax' directive takes as ARGUMENT one of the following
  7898. case-sensitive choices.
  7899. 'no_register_prefix'
  7900. The '.syntax no_register_prefix' directive makes a '$'
  7901. character prefix on all registers optional. It overrides a
  7902. previous setting, including the corresponding effect of the
  7903. option '--no-underscore'. If this directive is used when
  7904. ordinary symbols do not have a '_' character prefix, care must
  7905. be taken to avoid ambiguities whether an operand is a register
  7906. or a symbol; using symbols with names the same as general or
  7907. special registers then invoke undefined behavior.
  7908. 'register_prefix'
  7909. This directive makes a '$' character prefix on all registers
  7910. mandatory. It overrides a previous setting, including the
  7911. corresponding effect of the option '--underscore'.
  7912. 'leading_underscore'
  7913. This is an assertion directive, emitting an error if the
  7914. '--no-underscore' option is in effect.
  7915. 'no_leading_underscore'
  7916. This is the opposite of the '.syntax leading_underscore'
  7917. directive and emits an error if the option '--underscore' is
  7918. in effect.
  7919. '.arch ARGUMENT'
  7920. This is an assertion directive, giving an error if the specified
  7921. ARGUMENT is not the same as the specified or default value for the
  7922. '--march=ARCHITECTURE' option (*note march-option::).
  7923. 
  7924. File: as.info, Node: C-SKY-Dependent, Next: D10V-Dependent, Prev: CRIS-Dependent, Up: Machine Dependencies
  7925. 9.10 C-SKY Dependent Features
  7926. =============================
  7927. * Menu:
  7928. * C-SKY Options:: Options
  7929. * C-SKY Syntax:: Syntax
  7930. 
  7931. File: as.info, Node: C-SKY Options, Next: C-SKY Syntax, Up: C-SKY-Dependent
  7932. 9.10.1 Options
  7933. --------------
  7934. '-march=ARCHNAME'
  7935. Assemble for architecture ARCHNAME. The '--help' option lists
  7936. valid values for ARCHNAME.
  7937. '-mcpu=CPUNAME'
  7938. Assemble for architecture CPUNAME. The '--help' option lists valid
  7939. values for CPUNAME.
  7940. '-EL'
  7941. '-mlittle-endian'
  7942. Generate little-endian output.
  7943. '-EB'
  7944. '-mbig-endian'
  7945. Generate big-endian output.
  7946. '-fpic'
  7947. '-pic'
  7948. Generate position-independent code.
  7949. '-mljump'
  7950. '-mno-ljump'
  7951. Enable/disable transformation of the short branch instructions
  7952. 'jbf', 'jbt', and 'jbr' to 'jmpi'. This option is for V2
  7953. processors only. It is ignored on CK801 and CK802 targets, which
  7954. do not support the 'jmpi' instruction, and is enabled by default
  7955. for other processors.
  7956. '-mbranch-stub'
  7957. '-mno-branch-stub'
  7958. Pass through 'R_CKCORE_PCREL_IMM26BY2' relocations for 'bsr'
  7959. instructions to the linker.
  7960. This option is only available for bare-metal C-SKY V2 ELF targets,
  7961. where it is enabled by default. It cannot be used in code that
  7962. will be dynamically linked against shared libraries.
  7963. '-force2bsr'
  7964. '-mforce2bsr'
  7965. '-no-force2bsr'
  7966. '-mno-force2bsr'
  7967. Enable/disable transformation of 'jbsr' instructions to 'bsr'.
  7968. This option is always enabled (and '-mno-force2bsr' is ignored) for
  7969. CK801/CK802 targets. It is also always enabled when
  7970. '-mbranch-stub' is in effect.
  7971. '-jsri2bsr'
  7972. '-mjsri2bsr'
  7973. '-no-jsri2bsr'
  7974. '-mno-jsri2bsr'
  7975. Enable/disable transformation of 'jsri' instructions to 'bsr'.
  7976. This option is enabled by default.
  7977. '-mnolrw'
  7978. '-mno-lrw'
  7979. Enable/disable transformation of 'lrw' instructions into a
  7980. 'movih'/'ori' pair.
  7981. '-melrw'
  7982. '-mno-elrw'
  7983. Enable/disable extended 'lrw' instructions. This option is enabled
  7984. by default for CK800-series processors.
  7985. '-mlaf'
  7986. '-mliterals-after-func'
  7987. '-mno-laf'
  7988. '-mno-literals-after-func'
  7989. Enable/disable placement of literal pools after each function.
  7990. '-mlabr'
  7991. '-mliterals-after-br'
  7992. '-mno-labr'
  7993. '-mnoliterals-after-br'
  7994. Enable/disable placement of literal pools after unconditional
  7995. branches. This option is enabled by default.
  7996. '-mistack'
  7997. '-mno-istack'
  7998. Enable/disable interrupt stack instructions. This option is
  7999. enabled by default on CK801, CK802, and CK802 processors.
  8000. The following options explicitly enable certain optional
  8001. instructions. These features are also enabled implicitly by using
  8002. '-mcpu=' to specify a processor that supports it.
  8003. '-mhard-float'
  8004. Enable hard float instructions.
  8005. '-mmp'
  8006. Enable multiprocessor instructions.
  8007. '-mcp'
  8008. Enable coprocessor instructions.
  8009. '-mcache'
  8010. Enable cache prefetch instruction.
  8011. '-msecurity'
  8012. Enable C-SKY security instructions.
  8013. '-mtrust'
  8014. Enable C-SKY trust instructions.
  8015. '-mdsp'
  8016. Enable DSP instructions.
  8017. '-medsp'
  8018. Enable enhanced DSP instructions.
  8019. '-mvdsp'
  8020. Enable vector DSP instructions.
  8021. 
  8022. File: as.info, Node: C-SKY Syntax, Prev: C-SKY Options, Up: C-SKY-Dependent
  8023. 9.10.2 Syntax
  8024. -------------
  8025. 'as' implements the standard C-SKY assembler syntax documented in the
  8026. 'C-SKY V2 CPU Applications Binary Interface Standards Manual'.
  8027. 
  8028. File: as.info, Node: D10V-Dependent, Next: D30V-Dependent, Prev: C-SKY-Dependent, Up: Machine Dependencies
  8029. 9.11 D10V Dependent Features
  8030. ============================
  8031. * Menu:
  8032. * D10V-Opts:: D10V Options
  8033. * D10V-Syntax:: Syntax
  8034. * D10V-Float:: Floating Point
  8035. * D10V-Opcodes:: Opcodes
  8036. 
  8037. File: as.info, Node: D10V-Opts, Next: D10V-Syntax, Up: D10V-Dependent
  8038. 9.11.1 D10V Options
  8039. -------------------
  8040. The Mitsubishi D10V version of 'as' has a few machine dependent options.
  8041. '-O'
  8042. The D10V can often execute two sub-instructions in parallel. When
  8043. this option is used, 'as' will attempt to optimize its output by
  8044. detecting when instructions can be executed in parallel.
  8045. '--nowarnswap'
  8046. To optimize execution performance, 'as' will sometimes swap the
  8047. order of instructions. Normally this generates a warning. When
  8048. this option is used, no warning will be generated when instructions
  8049. are swapped.
  8050. '--gstabs-packing'
  8051. '--no-gstabs-packing'
  8052. 'as' packs adjacent short instructions into a single packed
  8053. instruction. '--no-gstabs-packing' turns instruction packing off
  8054. if '--gstabs' is specified as well; '--gstabs-packing' (the
  8055. default) turns instruction packing on even when '--gstabs' is
  8056. specified.
  8057. 
  8058. File: as.info, Node: D10V-Syntax, Next: D10V-Float, Prev: D10V-Opts, Up: D10V-Dependent
  8059. 9.11.2 Syntax
  8060. -------------
  8061. The D10V syntax is based on the syntax in Mitsubishi's D10V architecture
  8062. manual. The differences are detailed below.
  8063. * Menu:
  8064. * D10V-Size:: Size Modifiers
  8065. * D10V-Subs:: Sub-Instructions
  8066. * D10V-Chars:: Special Characters
  8067. * D10V-Regs:: Register Names
  8068. * D10V-Addressing:: Addressing Modes
  8069. * D10V-Word:: @WORD Modifier
  8070. 
  8071. File: as.info, Node: D10V-Size, Next: D10V-Subs, Up: D10V-Syntax
  8072. 9.11.2.1 Size Modifiers
  8073. .......................
  8074. The D10V version of 'as' uses the instruction names in the D10V
  8075. Architecture Manual. However, the names in the manual are sometimes
  8076. ambiguous. There are instruction names that can assemble to a short or
  8077. long form opcode. How does the assembler pick the correct form? 'as'
  8078. will always pick the smallest form if it can. When dealing with a
  8079. symbol that is not defined yet when a line is being assembled, it will
  8080. always use the long form. If you need to force the assembler to use
  8081. either the short or long form of the instruction, you can append either
  8082. '.s' (short) or '.l' (long) to it. For example, if you are writing an
  8083. assembly program and you want to do a branch to a symbol that is defined
  8084. later in your program, you can write 'bra.s foo'. Objdump and GDB will
  8085. always append '.s' or '.l' to instructions which have both short and
  8086. long forms.
  8087. 
  8088. File: as.info, Node: D10V-Subs, Next: D10V-Chars, Prev: D10V-Size, Up: D10V-Syntax
  8089. 9.11.2.2 Sub-Instructions
  8090. .........................
  8091. The D10V assembler takes as input a series of instructions, either
  8092. one-per-line, or in the special two-per-line format described in the
  8093. next section. Some of these instructions will be short-form or
  8094. sub-instructions. These sub-instructions can be packed into a single
  8095. instruction. The assembler will do this automatically. It will also
  8096. detect when it should not pack instructions. For example, when a label
  8097. is defined, the next instruction will never be packaged with the
  8098. previous one. Whenever a branch and link instruction is called, it will
  8099. not be packaged with the next instruction so the return address will be
  8100. valid. Nops are automatically inserted when necessary.
  8101. If you do not want the assembler automatically making these
  8102. decisions, you can control the packaging and execution type (parallel or
  8103. sequential) with the special execution symbols described in the next
  8104. section.
  8105. 
  8106. File: as.info, Node: D10V-Chars, Next: D10V-Regs, Prev: D10V-Subs, Up: D10V-Syntax
  8107. 9.11.2.3 Special Characters
  8108. ...........................
  8109. A semicolon (';') can be used anywhere on a line to start a comment that
  8110. extends to the end of the line.
  8111. If a '#' appears as the first character of a line, the whole line is
  8112. treated as a comment, but in this case the line could also be a logical
  8113. line number directive (*note Comments::) or a preprocessor control
  8114. command (*note Preprocessing::).
  8115. Sub-instructions may be executed in order, in reverse-order, or in
  8116. parallel. Instructions listed in the standard one-per-line format will
  8117. be executed sequentially. To specify the executing order, use the
  8118. following symbols:
  8119. '->'
  8120. Sequential with instruction on the left first.
  8121. '<-'
  8122. Sequential with instruction on the right first.
  8123. '||'
  8124. Parallel
  8125. The D10V syntax allows either one instruction per line, one
  8126. instruction per line with the execution symbol, or two instructions per
  8127. line. For example
  8128. 'abs a1 -> abs r0'
  8129. Execute these sequentially. The instruction on the right is in the
  8130. right container and is executed second.
  8131. 'abs r0 <- abs a1'
  8132. Execute these reverse-sequentially. The instruction on the right
  8133. is in the right container, and is executed first.
  8134. 'ld2w r2,@r8+ || mac a0,r0,r7'
  8135. Execute these in parallel.
  8136. 'ld2w r2,@r8+ ||'
  8137. 'mac a0,r0,r7'
  8138. Two-line format. Execute these in parallel.
  8139. 'ld2w r2,@r8+'
  8140. 'mac a0,r0,r7'
  8141. Two-line format. Execute these sequentially. Assembler will put
  8142. them in the proper containers.
  8143. 'ld2w r2,@r8+ ->'
  8144. 'mac a0,r0,r7'
  8145. Two-line format. Execute these sequentially. Same as above but
  8146. second instruction will always go into right container.
  8147. Since '$' has no special meaning, you may use it in symbol names.
  8148. 
  8149. File: as.info, Node: D10V-Regs, Next: D10V-Addressing, Prev: D10V-Chars, Up: D10V-Syntax
  8150. 9.11.2.4 Register Names
  8151. .......................
  8152. You can use the predefined symbols 'r0' through 'r15' to refer to the
  8153. D10V registers. You can also use 'sp' as an alias for 'r15'. The
  8154. accumulators are 'a0' and 'a1'. There are special register-pair names
  8155. that may optionally be used in opcodes that require even-numbered
  8156. registers. Register names are not case sensitive.
  8157. Register Pairs
  8158. 'r0-r1'
  8159. 'r2-r3'
  8160. 'r4-r5'
  8161. 'r6-r7'
  8162. 'r8-r9'
  8163. 'r10-r11'
  8164. 'r12-r13'
  8165. 'r14-r15'
  8166. The D10V also has predefined symbols for these control registers and
  8167. status bits:
  8168. 'psw'
  8169. Processor Status Word
  8170. 'bpsw'
  8171. Backup Processor Status Word
  8172. 'pc'
  8173. Program Counter
  8174. 'bpc'
  8175. Backup Program Counter
  8176. 'rpt_c'
  8177. Repeat Count
  8178. 'rpt_s'
  8179. Repeat Start address
  8180. 'rpt_e'
  8181. Repeat End address
  8182. 'mod_s'
  8183. Modulo Start address
  8184. 'mod_e'
  8185. Modulo End address
  8186. 'iba'
  8187. Instruction Break Address
  8188. 'f0'
  8189. Flag 0
  8190. 'f1'
  8191. Flag 1
  8192. 'c'
  8193. Carry flag
  8194. 
  8195. File: as.info, Node: D10V-Addressing, Next: D10V-Word, Prev: D10V-Regs, Up: D10V-Syntax
  8196. 9.11.2.5 Addressing Modes
  8197. .........................
  8198. 'as' understands the following addressing modes for the D10V. 'RN' in
  8199. the following refers to any of the numbered registers, but _not_ the
  8200. control registers.
  8201. 'RN'
  8202. Register direct
  8203. '@RN'
  8204. Register indirect
  8205. '@RN+'
  8206. Register indirect with post-increment
  8207. '@RN-'
  8208. Register indirect with post-decrement
  8209. '@-SP'
  8210. Register indirect with pre-decrement
  8211. '@(DISP, RN)'
  8212. Register indirect with displacement
  8213. 'ADDR'
  8214. PC relative address (for branch or rep).
  8215. '#IMM'
  8216. Immediate data (the '#' is optional and ignored)
  8217. 
  8218. File: as.info, Node: D10V-Word, Prev: D10V-Addressing, Up: D10V-Syntax
  8219. 9.11.2.6 @WORD Modifier
  8220. .......................
  8221. Any symbol followed by '@word' will be replaced by the symbol's value
  8222. shifted right by 2. This is used in situations such as loading a
  8223. register with the address of a function (or any other code fragment).
  8224. For example, if you want to load a register with the location of the
  8225. function 'main' then jump to that function, you could do it as follows:
  8226. ldi r2, main@word
  8227. jmp r2
  8228. 
  8229. File: as.info, Node: D10V-Float, Next: D10V-Opcodes, Prev: D10V-Syntax, Up: D10V-Dependent
  8230. 9.11.3 Floating Point
  8231. ---------------------
  8232. The D10V has no hardware floating point, but the '.float' and '.double'
  8233. directives generates IEEE floating-point numbers for compatibility with
  8234. other development tools.
  8235. 
  8236. File: as.info, Node: D10V-Opcodes, Prev: D10V-Float, Up: D10V-Dependent
  8237. 9.11.4 Opcodes
  8238. --------------
  8239. For detailed information on the D10V machine instruction set, see 'D10V
  8240. Architecture: A VLIW Microprocessor for Multimedia Applications'
  8241. (Mitsubishi Electric Corp.). 'as' implements all the standard D10V
  8242. opcodes. The only changes are those described in the section on size
  8243. modifiers
  8244. 
  8245. File: as.info, Node: D30V-Dependent, Next: Epiphany-Dependent, Prev: D10V-Dependent, Up: Machine Dependencies
  8246. 9.12 D30V Dependent Features
  8247. ============================
  8248. * Menu:
  8249. * D30V-Opts:: D30V Options
  8250. * D30V-Syntax:: Syntax
  8251. * D30V-Float:: Floating Point
  8252. * D30V-Opcodes:: Opcodes
  8253. 
  8254. File: as.info, Node: D30V-Opts, Next: D30V-Syntax, Up: D30V-Dependent
  8255. 9.12.1 D30V Options
  8256. -------------------
  8257. The Mitsubishi D30V version of 'as' has a few machine dependent options.
  8258. '-O'
  8259. The D30V can often execute two sub-instructions in parallel. When
  8260. this option is used, 'as' will attempt to optimize its output by
  8261. detecting when instructions can be executed in parallel.
  8262. '-n'
  8263. When this option is used, 'as' will issue a warning every time it
  8264. adds a nop instruction.
  8265. '-N'
  8266. When this option is used, 'as' will issue a warning if it needs to
  8267. insert a nop after a 32-bit multiply before a load or 16-bit
  8268. multiply instruction.
  8269. 
  8270. File: as.info, Node: D30V-Syntax, Next: D30V-Float, Prev: D30V-Opts, Up: D30V-Dependent
  8271. 9.12.2 Syntax
  8272. -------------
  8273. The D30V syntax is based on the syntax in Mitsubishi's D30V architecture
  8274. manual. The differences are detailed below.
  8275. * Menu:
  8276. * D30V-Size:: Size Modifiers
  8277. * D30V-Subs:: Sub-Instructions
  8278. * D30V-Chars:: Special Characters
  8279. * D30V-Guarded:: Guarded Execution
  8280. * D30V-Regs:: Register Names
  8281. * D30V-Addressing:: Addressing Modes
  8282. 
  8283. File: as.info, Node: D30V-Size, Next: D30V-Subs, Up: D30V-Syntax
  8284. 9.12.2.1 Size Modifiers
  8285. .......................
  8286. The D30V version of 'as' uses the instruction names in the D30V
  8287. Architecture Manual. However, the names in the manual are sometimes
  8288. ambiguous. There are instruction names that can assemble to a short or
  8289. long form opcode. How does the assembler pick the correct form? 'as'
  8290. will always pick the smallest form if it can. When dealing with a
  8291. symbol that is not defined yet when a line is being assembled, it will
  8292. always use the long form. If you need to force the assembler to use
  8293. either the short or long form of the instruction, you can append either
  8294. '.s' (short) or '.l' (long) to it. For example, if you are writing an
  8295. assembly program and you want to do a branch to a symbol that is defined
  8296. later in your program, you can write 'bra.s foo'. Objdump and GDB will
  8297. always append '.s' or '.l' to instructions which have both short and
  8298. long forms.
  8299. 
  8300. File: as.info, Node: D30V-Subs, Next: D30V-Chars, Prev: D30V-Size, Up: D30V-Syntax
  8301. 9.12.2.2 Sub-Instructions
  8302. .........................
  8303. The D30V assembler takes as input a series of instructions, either
  8304. one-per-line, or in the special two-per-line format described in the
  8305. next section. Some of these instructions will be short-form or
  8306. sub-instructions. These sub-instructions can be packed into a single
  8307. instruction. The assembler will do this automatically. It will also
  8308. detect when it should not pack instructions. For example, when a label
  8309. is defined, the next instruction will never be packaged with the
  8310. previous one. Whenever a branch and link instruction is called, it will
  8311. not be packaged with the next instruction so the return address will be
  8312. valid. Nops are automatically inserted when necessary.
  8313. If you do not want the assembler automatically making these
  8314. decisions, you can control the packaging and execution type (parallel or
  8315. sequential) with the special execution symbols described in the next
  8316. section.
  8317. 
  8318. File: as.info, Node: D30V-Chars, Next: D30V-Guarded, Prev: D30V-Subs, Up: D30V-Syntax
  8319. 9.12.2.3 Special Characters
  8320. ...........................
  8321. A semicolon (';') can be used anywhere on a line to start a comment that
  8322. extends to the end of the line.
  8323. If a '#' appears as the first character of a line, the whole line is
  8324. treated as a comment, but in this case the line could also be a logical
  8325. line number directive (*note Comments::) or a preprocessor control
  8326. command (*note Preprocessing::).
  8327. Sub-instructions may be executed in order, in reverse-order, or in
  8328. parallel. Instructions listed in the standard one-per-line format will
  8329. be executed sequentially unless you use the '-O' option.
  8330. To specify the executing order, use the following symbols:
  8331. '->'
  8332. Sequential with instruction on the left first.
  8333. '<-'
  8334. Sequential with instruction on the right first.
  8335. '||'
  8336. Parallel
  8337. The D30V syntax allows either one instruction per line, one
  8338. instruction per line with the execution symbol, or two instructions per
  8339. line. For example
  8340. 'abs r2,r3 -> abs r4,r5'
  8341. Execute these sequentially. The instruction on the right is in the
  8342. right container and is executed second.
  8343. 'abs r2,r3 <- abs r4,r5'
  8344. Execute these reverse-sequentially. The instruction on the right
  8345. is in the right container, and is executed first.
  8346. 'abs r2,r3 || abs r4,r5'
  8347. Execute these in parallel.
  8348. 'ldw r2,@(r3,r4) ||'
  8349. 'mulx r6,r8,r9'
  8350. Two-line format. Execute these in parallel.
  8351. 'mulx a0,r8,r9'
  8352. 'stw r2,@(r3,r4)'
  8353. Two-line format. Execute these sequentially unless '-O' option is
  8354. used. If the '-O' option is used, the assembler will determine if
  8355. the instructions could be done in parallel (the above two
  8356. instructions can be done in parallel), and if so, emit them as
  8357. parallel instructions. The assembler will put them in the proper
  8358. containers. In the above example, the assembler will put the 'stw'
  8359. instruction in left container and the 'mulx' instruction in the
  8360. right container.
  8361. 'stw r2,@(r3,r4) ->'
  8362. 'mulx a0,r8,r9'
  8363. Two-line format. Execute the 'stw' instruction followed by the
  8364. 'mulx' instruction sequentially. The first instruction goes in the
  8365. left container and the second instruction goes into right
  8366. container. The assembler will give an error if the machine
  8367. ordering constraints are violated.
  8368. 'stw r2,@(r3,r4) <-'
  8369. 'mulx a0,r8,r9'
  8370. Same as previous example, except that the 'mulx' instruction is
  8371. executed before the 'stw' instruction.
  8372. Since '$' has no special meaning, you may use it in symbol names.
  8373. 
  8374. File: as.info, Node: D30V-Guarded, Next: D30V-Regs, Prev: D30V-Chars, Up: D30V-Syntax
  8375. 9.12.2.4 Guarded Execution
  8376. ..........................
  8377. 'as' supports the full range of guarded execution directives for each
  8378. instruction. Just append the directive after the instruction proper.
  8379. The directives are:
  8380. '/tx'
  8381. Execute the instruction if flag f0 is true.
  8382. '/fx'
  8383. Execute the instruction if flag f0 is false.
  8384. '/xt'
  8385. Execute the instruction if flag f1 is true.
  8386. '/xf'
  8387. Execute the instruction if flag f1 is false.
  8388. '/tt'
  8389. Execute the instruction if both flags f0 and f1 are true.
  8390. '/tf'
  8391. Execute the instruction if flag f0 is true and flag f1 is false.
  8392. 
  8393. File: as.info, Node: D30V-Regs, Next: D30V-Addressing, Prev: D30V-Guarded, Up: D30V-Syntax
  8394. 9.12.2.5 Register Names
  8395. .......................
  8396. You can use the predefined symbols 'r0' through 'r63' to refer to the
  8397. D30V registers. You can also use 'sp' as an alias for 'r63' and 'link'
  8398. as an alias for 'r62'. The accumulators are 'a0' and 'a1'.
  8399. The D30V also has predefined symbols for these control registers and
  8400. status bits:
  8401. 'psw'
  8402. Processor Status Word
  8403. 'bpsw'
  8404. Backup Processor Status Word
  8405. 'pc'
  8406. Program Counter
  8407. 'bpc'
  8408. Backup Program Counter
  8409. 'rpt_c'
  8410. Repeat Count
  8411. 'rpt_s'
  8412. Repeat Start address
  8413. 'rpt_e'
  8414. Repeat End address
  8415. 'mod_s'
  8416. Modulo Start address
  8417. 'mod_e'
  8418. Modulo End address
  8419. 'iba'
  8420. Instruction Break Address
  8421. 'f0'
  8422. Flag 0
  8423. 'f1'
  8424. Flag 1
  8425. 'f2'
  8426. Flag 2
  8427. 'f3'
  8428. Flag 3
  8429. 'f4'
  8430. Flag 4
  8431. 'f5'
  8432. Flag 5
  8433. 'f6'
  8434. Flag 6
  8435. 'f7'
  8436. Flag 7
  8437. 's'
  8438. Same as flag 4 (saturation flag)
  8439. 'v'
  8440. Same as flag 5 (overflow flag)
  8441. 'va'
  8442. Same as flag 6 (sticky overflow flag)
  8443. 'c'
  8444. Same as flag 7 (carry/borrow flag)
  8445. 'b'
  8446. Same as flag 7 (carry/borrow flag)
  8447. 
  8448. File: as.info, Node: D30V-Addressing, Prev: D30V-Regs, Up: D30V-Syntax
  8449. 9.12.2.6 Addressing Modes
  8450. .........................
  8451. 'as' understands the following addressing modes for the D30V. 'RN' in
  8452. the following refers to any of the numbered registers, but _not_ the
  8453. control registers.
  8454. 'RN'
  8455. Register direct
  8456. '@RN'
  8457. Register indirect
  8458. '@RN+'
  8459. Register indirect with post-increment
  8460. '@RN-'
  8461. Register indirect with post-decrement
  8462. '@-SP'
  8463. Register indirect with pre-decrement
  8464. '@(DISP, RN)'
  8465. Register indirect with displacement
  8466. 'ADDR'
  8467. PC relative address (for branch or rep).
  8468. '#IMM'
  8469. Immediate data (the '#' is optional and ignored)
  8470. 
  8471. File: as.info, Node: D30V-Float, Next: D30V-Opcodes, Prev: D30V-Syntax, Up: D30V-Dependent
  8472. 9.12.3 Floating Point
  8473. ---------------------
  8474. The D30V has no hardware floating point, but the '.float' and '.double'
  8475. directives generates IEEE floating-point numbers for compatibility with
  8476. other development tools.
  8477. 
  8478. File: as.info, Node: D30V-Opcodes, Prev: D30V-Float, Up: D30V-Dependent
  8479. 9.12.4 Opcodes
  8480. --------------
  8481. For detailed information on the D30V machine instruction set, see 'D30V
  8482. Architecture: A VLIW Microprocessor for Multimedia Applications'
  8483. (Mitsubishi Electric Corp.). 'as' implements all the standard D30V
  8484. opcodes. The only changes are those described in the section on size
  8485. modifiers
  8486. 
  8487. File: as.info, Node: Epiphany-Dependent, Next: H8/300-Dependent, Prev: D30V-Dependent, Up: Machine Dependencies
  8488. 9.13 Epiphany Dependent Features
  8489. ================================
  8490. * Menu:
  8491. * Epiphany Options:: Options
  8492. * Epiphany Syntax:: Epiphany Syntax
  8493. 
  8494. File: as.info, Node: Epiphany Options, Next: Epiphany Syntax, Up: Epiphany-Dependent
  8495. 9.13.1 Options
  8496. --------------
  8497. 'as' has two additional command-line options for the Epiphany
  8498. architecture.
  8499. '-mepiphany'
  8500. Specifies that the both 32 and 16 bit instructions are allowed.
  8501. This is the default behavior.
  8502. '-mepiphany16'
  8503. Restricts the permitted instructions to just the 16 bit set.
  8504. 
  8505. File: as.info, Node: Epiphany Syntax, Prev: Epiphany Options, Up: Epiphany-Dependent
  8506. 9.13.2 Epiphany Syntax
  8507. ----------------------
  8508. * Menu:
  8509. * Epiphany-Chars:: Special Characters
  8510. 
  8511. File: as.info, Node: Epiphany-Chars, Up: Epiphany Syntax
  8512. 9.13.2.1 Special Characters
  8513. ...........................
  8514. The presence of a ';' on a line indicates the start of a comment that
  8515. extends to the end of the current line.
  8516. If a '#' appears as the first character of a line then the whole line
  8517. is treated as a comment, but in this case the line could also be a
  8518. logical line number directive (*note Comments::) or a preprocessor
  8519. control command (*note Preprocessing::).
  8520. The '`' character can be used to separate statements on the same
  8521. line.
  8522. 
  8523. File: as.info, Node: H8/300-Dependent, Next: HPPA-Dependent, Prev: Epiphany-Dependent, Up: Machine Dependencies
  8524. 9.14 H8/300 Dependent Features
  8525. ==============================
  8526. * Menu:
  8527. * H8/300 Options:: Options
  8528. * H8/300 Syntax:: Syntax
  8529. * H8/300 Floating Point:: Floating Point
  8530. * H8/300 Directives:: H8/300 Machine Directives
  8531. * H8/300 Opcodes:: Opcodes
  8532. 
  8533. File: as.info, Node: H8/300 Options, Next: H8/300 Syntax, Up: H8/300-Dependent
  8534. 9.14.1 Options
  8535. --------------
  8536. The Renesas H8/300 version of 'as' has one machine-dependent option:
  8537. '-h-tick-hex'
  8538. Support H'00 style hex constants in addition to 0x00 style.
  8539. '-mach=NAME'
  8540. Sets the H8300 machine variant. The following machine names are
  8541. recognised: 'h8300h', 'h8300hn', 'h8300s', 'h8300sn', 'h8300sx' and
  8542. 'h8300sxn'.
  8543. 
  8544. File: as.info, Node: H8/300 Syntax, Next: H8/300 Floating Point, Prev: H8/300 Options, Up: H8/300-Dependent
  8545. 9.14.2 Syntax
  8546. -------------
  8547. * Menu:
  8548. * H8/300-Chars:: Special Characters
  8549. * H8/300-Regs:: Register Names
  8550. * H8/300-Addressing:: Addressing Modes
  8551. 
  8552. File: as.info, Node: H8/300-Chars, Next: H8/300-Regs, Up: H8/300 Syntax
  8553. 9.14.2.1 Special Characters
  8554. ...........................
  8555. ';' is the line comment character.
  8556. '$' can be used instead of a newline to separate statements.
  8557. Therefore _you may not use '$' in symbol names_ on the H8/300.
  8558. 
  8559. File: as.info, Node: H8/300-Regs, Next: H8/300-Addressing, Prev: H8/300-Chars, Up: H8/300 Syntax
  8560. 9.14.2.2 Register Names
  8561. .......................
  8562. You can use predefined symbols of the form 'rNh' and 'rNl' to refer to
  8563. the H8/300 registers as sixteen 8-bit general-purpose registers. N is a
  8564. digit from '0' to '7'); for instance, both 'r0h' and 'r7l' are valid
  8565. register names.
  8566. You can also use the eight predefined symbols 'rN' to refer to the
  8567. H8/300 registers as 16-bit registers (you must use this form for
  8568. addressing).
  8569. On the H8/300H, you can also use the eight predefined symbols 'erN'
  8570. ('er0' ... 'er7') to refer to the 32-bit general purpose registers.
  8571. The two control registers are called 'pc' (program counter; a 16-bit
  8572. register, except on the H8/300H where it is 24 bits) and 'ccr'
  8573. (condition code register; an 8-bit register). 'r7' is used as the stack
  8574. pointer, and can also be called 'sp'.
  8575. 
  8576. File: as.info, Node: H8/300-Addressing, Prev: H8/300-Regs, Up: H8/300 Syntax
  8577. 9.14.2.3 Addressing Modes
  8578. .........................
  8579. as understands the following addressing modes for the H8/300:
  8580. 'rN'
  8581. Register direct
  8582. '@rN'
  8583. Register indirect
  8584. '@(D, rN)'
  8585. '@(D:16, rN)'
  8586. '@(D:24, rN)'
  8587. Register indirect: 16-bit or 24-bit displacement D from register N.
  8588. (24-bit displacements are only meaningful on the H8/300H.)
  8589. '@rN+'
  8590. Register indirect with post-increment
  8591. '@-rN'
  8592. Register indirect with pre-decrement
  8593. '@AA'
  8594. '@AA:8'
  8595. '@AA:16'
  8596. '@AA:24'
  8597. Absolute address 'aa'. (The address size ':24' only makes sense on
  8598. the H8/300H.)
  8599. '#XX'
  8600. '#XX:8'
  8601. '#XX:16'
  8602. '#XX:32'
  8603. Immediate data XX. You may specify the ':8', ':16', or ':32' for
  8604. clarity, if you wish; but 'as' neither requires this nor uses
  8605. it--the data size required is taken from context.
  8606. '@@AA'
  8607. '@@AA:8'
  8608. Memory indirect. You may specify the ':8' for clarity, if you
  8609. wish; but 'as' neither requires this nor uses it.
  8610. 
  8611. File: as.info, Node: H8/300 Floating Point, Next: H8/300 Directives, Prev: H8/300 Syntax, Up: H8/300-Dependent
  8612. 9.14.3 Floating Point
  8613. ---------------------
  8614. The H8/300 family has no hardware floating point, but the '.float'
  8615. directive generates IEEE floating-point numbers for compatibility with
  8616. other development tools.
  8617. 
  8618. File: as.info, Node: H8/300 Directives, Next: H8/300 Opcodes, Prev: H8/300 Floating Point, Up: H8/300-Dependent
  8619. 9.14.4 H8/300 Machine Directives
  8620. --------------------------------
  8621. 'as' has the following machine-dependent directives for the H8/300:
  8622. '.h8300h'
  8623. Recognize and emit additional instructions for the H8/300H variant,
  8624. and also make '.int' emit 32-bit numbers rather than the usual
  8625. (16-bit) for the H8/300 family.
  8626. '.h8300s'
  8627. Recognize and emit additional instructions for the H8S variant, and
  8628. also make '.int' emit 32-bit numbers rather than the usual (16-bit)
  8629. for the H8/300 family.
  8630. '.h8300hn'
  8631. Recognize and emit additional instructions for the H8/300H variant
  8632. in normal mode, and also make '.int' emit 32-bit numbers rather
  8633. than the usual (16-bit) for the H8/300 family.
  8634. '.h8300sn'
  8635. Recognize and emit additional instructions for the H8S variant in
  8636. normal mode, and also make '.int' emit 32-bit numbers rather than
  8637. the usual (16-bit) for the H8/300 family.
  8638. On the H8/300 family (including the H8/300H) '.word' directives
  8639. generate 16-bit numbers.
  8640. 
  8641. File: as.info, Node: H8/300 Opcodes, Prev: H8/300 Directives, Up: H8/300-Dependent
  8642. 9.14.5 Opcodes
  8643. --------------
  8644. For detailed information on the H8/300 machine instruction set, see
  8645. 'H8/300 Series Programming Manual'. For information specific to the
  8646. H8/300H, see 'H8/300H Series Programming Manual' (Renesas).
  8647. 'as' implements all the standard H8/300 opcodes. No additional
  8648. pseudo-instructions are needed on this family.
  8649. The following table summarizes the H8/300 opcodes, and their
  8650. arguments. Entries marked '*' are opcodes used only on the H8/300H.
  8651. Legend:
  8652. Rs source register
  8653. Rd destination register
  8654. abs absolute address
  8655. imm immediate data
  8656. disp:N N-bit displacement from a register
  8657. pcrel:N N-bit displacement relative to program counter
  8658. add.b #imm,rd * andc #imm,ccr
  8659. add.b rs,rd band #imm,rd
  8660. add.w rs,rd band #imm,@rd
  8661. * add.w #imm,rd band #imm,@abs:8
  8662. * add.l rs,rd bra pcrel:8
  8663. * add.l #imm,rd * bra pcrel:16
  8664. adds #imm,rd bt pcrel:8
  8665. addx #imm,rd * bt pcrel:16
  8666. addx rs,rd brn pcrel:8
  8667. and.b #imm,rd * brn pcrel:16
  8668. and.b rs,rd bf pcrel:8
  8669. * and.w rs,rd * bf pcrel:16
  8670. * and.w #imm,rd bhi pcrel:8
  8671. * and.l #imm,rd * bhi pcrel:16
  8672. * and.l rs,rd bls pcrel:8
  8673. * bls pcrel:16 bld #imm,rd
  8674. bcc pcrel:8 bld #imm,@rd
  8675. * bcc pcrel:16 bld #imm,@abs:8
  8676. bhs pcrel:8 bnot #imm,rd
  8677. * bhs pcrel:16 bnot #imm,@rd
  8678. bcs pcrel:8 bnot #imm,@abs:8
  8679. * bcs pcrel:16 bnot rs,rd
  8680. blo pcrel:8 bnot rs,@rd
  8681. * blo pcrel:16 bnot rs,@abs:8
  8682. bne pcrel:8 bor #imm,rd
  8683. * bne pcrel:16 bor #imm,@rd
  8684. beq pcrel:8 bor #imm,@abs:8
  8685. * beq pcrel:16 bset #imm,rd
  8686. bvc pcrel:8 bset #imm,@rd
  8687. * bvc pcrel:16 bset #imm,@abs:8
  8688. bvs pcrel:8 bset rs,rd
  8689. * bvs pcrel:16 bset rs,@rd
  8690. bpl pcrel:8 bset rs,@abs:8
  8691. * bpl pcrel:16 bsr pcrel:8
  8692. bmi pcrel:8 bsr pcrel:16
  8693. * bmi pcrel:16 bst #imm,rd
  8694. bge pcrel:8 bst #imm,@rd
  8695. * bge pcrel:16 bst #imm,@abs:8
  8696. blt pcrel:8 btst #imm,rd
  8697. * blt pcrel:16 btst #imm,@rd
  8698. bgt pcrel:8 btst #imm,@abs:8
  8699. * bgt pcrel:16 btst rs,rd
  8700. ble pcrel:8 btst rs,@rd
  8701. * ble pcrel:16 btst rs,@abs:8
  8702. bclr #imm,rd bxor #imm,rd
  8703. bclr #imm,@rd bxor #imm,@rd
  8704. bclr #imm,@abs:8 bxor #imm,@abs:8
  8705. bclr rs,rd cmp.b #imm,rd
  8706. bclr rs,@rd cmp.b rs,rd
  8707. bclr rs,@abs:8 cmp.w rs,rd
  8708. biand #imm,rd cmp.w rs,rd
  8709. biand #imm,@rd * cmp.w #imm,rd
  8710. biand #imm,@abs:8 * cmp.l #imm,rd
  8711. bild #imm,rd * cmp.l rs,rd
  8712. bild #imm,@rd daa rs
  8713. bild #imm,@abs:8 das rs
  8714. bior #imm,rd dec.b rs
  8715. bior #imm,@rd * dec.w #imm,rd
  8716. bior #imm,@abs:8 * dec.l #imm,rd
  8717. bist #imm,rd divxu.b rs,rd
  8718. bist #imm,@rd * divxu.w rs,rd
  8719. bist #imm,@abs:8 * divxs.b rs,rd
  8720. bixor #imm,rd * divxs.w rs,rd
  8721. bixor #imm,@rd eepmov
  8722. bixor #imm,@abs:8 * eepmovw
  8723. * exts.w rd mov.w rs,@abs:16
  8724. * exts.l rd * mov.l #imm,rd
  8725. * extu.w rd * mov.l rs,rd
  8726. * extu.l rd * mov.l @rs,rd
  8727. inc rs * mov.l @(disp:16,rs),rd
  8728. * inc.w #imm,rd * mov.l @(disp:24,rs),rd
  8729. * inc.l #imm,rd * mov.l @rs+,rd
  8730. jmp @rs * mov.l @abs:16,rd
  8731. jmp abs * mov.l @abs:24,rd
  8732. jmp @@abs:8 * mov.l rs,@rd
  8733. jsr @rs * mov.l rs,@(disp:16,rd)
  8734. jsr abs * mov.l rs,@(disp:24,rd)
  8735. jsr @@abs:8 * mov.l rs,@-rd
  8736. ldc #imm,ccr * mov.l rs,@abs:16
  8737. ldc rs,ccr * mov.l rs,@abs:24
  8738. * ldc @abs:16,ccr movfpe @abs:16,rd
  8739. * ldc @abs:24,ccr movtpe rs,@abs:16
  8740. * ldc @(disp:16,rs),ccr mulxu.b rs,rd
  8741. * ldc @(disp:24,rs),ccr * mulxu.w rs,rd
  8742. * ldc @rs+,ccr * mulxs.b rs,rd
  8743. * ldc @rs,ccr * mulxs.w rs,rd
  8744. * mov.b @(disp:24,rs),rd neg.b rs
  8745. * mov.b rs,@(disp:24,rd) * neg.w rs
  8746. mov.b @abs:16,rd * neg.l rs
  8747. mov.b rs,rd nop
  8748. mov.b @abs:8,rd not.b rs
  8749. mov.b rs,@abs:8 * not.w rs
  8750. mov.b rs,rd * not.l rs
  8751. mov.b #imm,rd or.b #imm,rd
  8752. mov.b @rs,rd or.b rs,rd
  8753. mov.b @(disp:16,rs),rd * or.w #imm,rd
  8754. mov.b @rs+,rd * or.w rs,rd
  8755. mov.b @abs:8,rd * or.l #imm,rd
  8756. mov.b rs,@rd * or.l rs,rd
  8757. mov.b rs,@(disp:16,rd) orc #imm,ccr
  8758. mov.b rs,@-rd pop.w rs
  8759. mov.b rs,@abs:8 * pop.l rs
  8760. mov.w rs,@rd push.w rs
  8761. * mov.w @(disp:24,rs),rd * push.l rs
  8762. * mov.w rs,@(disp:24,rd) rotl.b rs
  8763. * mov.w @abs:24,rd * rotl.w rs
  8764. * mov.w rs,@abs:24 * rotl.l rs
  8765. mov.w rs,rd rotr.b rs
  8766. mov.w #imm,rd * rotr.w rs
  8767. mov.w @rs,rd * rotr.l rs
  8768. mov.w @(disp:16,rs),rd rotxl.b rs
  8769. mov.w @rs+,rd * rotxl.w rs
  8770. mov.w @abs:16,rd * rotxl.l rs
  8771. mov.w rs,@(disp:16,rd) rotxr.b rs
  8772. mov.w rs,@-rd * rotxr.w rs
  8773. * rotxr.l rs * stc ccr,@(disp:24,rd)
  8774. bpt * stc ccr,@-rd
  8775. rte * stc ccr,@abs:16
  8776. rts * stc ccr,@abs:24
  8777. shal.b rs sub.b rs,rd
  8778. * shal.w rs sub.w rs,rd
  8779. * shal.l rs * sub.w #imm,rd
  8780. shar.b rs * sub.l rs,rd
  8781. * shar.w rs * sub.l #imm,rd
  8782. * shar.l rs subs #imm,rd
  8783. shll.b rs subx #imm,rd
  8784. * shll.w rs subx rs,rd
  8785. * shll.l rs * trapa #imm
  8786. shlr.b rs xor #imm,rd
  8787. * shlr.w rs xor rs,rd
  8788. * shlr.l rs * xor.w #imm,rd
  8789. sleep * xor.w rs,rd
  8790. stc ccr,rd * xor.l #imm,rd
  8791. * stc ccr,@rs * xor.l rs,rd
  8792. * stc ccr,@(disp:16,rd) xorc #imm,ccr
  8793. Four H8/300 instructions ('add', 'cmp', 'mov', 'sub') are defined
  8794. with variants using the suffixes '.b', '.w', and '.l' to specify the
  8795. size of a memory operand. 'as' supports these suffixes, but does not
  8796. require them; since one of the operands is always a register, 'as' can
  8797. deduce the correct size.
  8798. For example, since 'r0' refers to a 16-bit register,
  8799. mov r0,@foo
  8800. is equivalent to
  8801. mov.w r0,@foo
  8802. If you use the size suffixes, 'as' issues a warning when the suffix
  8803. and the register size do not match.
  8804. 
  8805. File: as.info, Node: HPPA-Dependent, Next: i386-Dependent, Prev: H8/300-Dependent, Up: Machine Dependencies
  8806. 9.15 HPPA Dependent Features
  8807. ============================
  8808. * Menu:
  8809. * HPPA Notes:: Notes
  8810. * HPPA Options:: Options
  8811. * HPPA Syntax:: Syntax
  8812. * HPPA Floating Point:: Floating Point
  8813. * HPPA Directives:: HPPA Machine Directives
  8814. * HPPA Opcodes:: Opcodes
  8815. 
  8816. File: as.info, Node: HPPA Notes, Next: HPPA Options, Up: HPPA-Dependent
  8817. 9.15.1 Notes
  8818. ------------
  8819. As a back end for GNU CC 'as' has been thoroughly tested and should work
  8820. extremely well. We have tested it only minimally on hand written
  8821. assembly code and no one has tested it much on the assembly output from
  8822. the HP compilers.
  8823. The format of the debugging sections has changed since the original
  8824. 'as' port (version 1.3X) was released; therefore, you must rebuild all
  8825. HPPA objects and libraries with the new assembler so that you can debug
  8826. the final executable.
  8827. The HPPA 'as' port generates a small subset of the relocations
  8828. available in the SOM and ELF object file formats. Additional relocation
  8829. support will be added as it becomes necessary.
  8830. 
  8831. File: as.info, Node: HPPA Options, Next: HPPA Syntax, Prev: HPPA Notes, Up: HPPA-Dependent
  8832. 9.15.2 Options
  8833. --------------
  8834. 'as' has no machine-dependent command-line options for the HPPA.
  8835. 
  8836. File: as.info, Node: HPPA Syntax, Next: HPPA Floating Point, Prev: HPPA Options, Up: HPPA-Dependent
  8837. 9.15.3 Syntax
  8838. -------------
  8839. The assembler syntax closely follows the HPPA instruction set reference
  8840. manual; assembler directives and general syntax closely follow the HPPA
  8841. assembly language reference manual, with a few noteworthy differences.
  8842. First, a colon may immediately follow a label definition. This is
  8843. simply for compatibility with how most assembly language programmers
  8844. write code.
  8845. Some obscure expression parsing problems may affect hand written code
  8846. which uses the 'spop' instructions, or code which makes significant use
  8847. of the '!' line separator.
  8848. 'as' is much less forgiving about missing arguments and other similar
  8849. oversights than the HP assembler. 'as' notifies you of missing
  8850. arguments as syntax errors; this is regarded as a feature, not a bug.
  8851. Finally, 'as' allows you to use an external symbol without explicitly
  8852. importing the symbol. _Warning:_ in the future this will be an error
  8853. for HPPA targets.
  8854. Special characters for HPPA targets include:
  8855. ';' is the line comment character.
  8856. '!' can be used instead of a newline to separate statements.
  8857. Since '$' has no special meaning, you may use it in symbol names.
  8858. 
  8859. File: as.info, Node: HPPA Floating Point, Next: HPPA Directives, Prev: HPPA Syntax, Up: HPPA-Dependent
  8860. 9.15.4 Floating Point
  8861. ---------------------
  8862. The HPPA family uses IEEE floating-point numbers.
  8863. 
  8864. File: as.info, Node: HPPA Directives, Next: HPPA Opcodes, Prev: HPPA Floating Point, Up: HPPA-Dependent
  8865. 9.15.5 HPPA Assembler Directives
  8866. --------------------------------
  8867. 'as' for the HPPA supports many additional directives for compatibility
  8868. with the native assembler. This section describes them only briefly.
  8869. For detailed information on HPPA-specific assembler directives, see
  8870. 'HP9000 Series 800 Assembly Language Reference Manual' (HP 92432-90001).
  8871. 'as' does _not_ support the following assembler directives described
  8872. in the HP manual:
  8873. .endm .liston
  8874. .enter .locct
  8875. .leave .macro
  8876. .listoff
  8877. Beyond those implemented for compatibility, 'as' supports one
  8878. additional assembler directive for the HPPA: '.param'. It conveys
  8879. register argument locations for static functions. Its syntax closely
  8880. follows the '.export' directive.
  8881. These are the additional directives in 'as' for the HPPA:
  8882. '.block N'
  8883. '.blockz N'
  8884. Reserve N bytes of storage, and initialize them to zero.
  8885. '.call'
  8886. Mark the beginning of a procedure call. Only the special case with
  8887. _no arguments_ is allowed.
  8888. '.callinfo [ PARAM=VALUE, ... ] [ FLAG, ... ]'
  8889. Specify a number of parameters and flags that define the
  8890. environment for a procedure.
  8891. PARAM may be any of 'frame' (frame size), 'entry_gr' (end of
  8892. general register range), 'entry_fr' (end of float register range),
  8893. 'entry_sr' (end of space register range).
  8894. The values for FLAG are 'calls' or 'caller' (proc has subroutines),
  8895. 'no_calls' (proc does not call subroutines), 'save_rp' (preserve
  8896. return pointer), 'save_sp' (proc preserves stack pointer),
  8897. 'no_unwind' (do not unwind this proc), 'hpux_int' (proc is
  8898. interrupt routine).
  8899. '.code'
  8900. Assemble into the standard section called '$TEXT$', subsection
  8901. '$CODE$'.
  8902. '.copyright "STRING"'
  8903. In the SOM object format, insert STRING into the object code,
  8904. marked as a copyright string.
  8905. '.copyright "STRING"'
  8906. In the ELF object format, insert STRING into the object code,
  8907. marked as a version string.
  8908. '.enter'
  8909. Not yet supported; the assembler rejects programs containing this
  8910. directive.
  8911. '.entry'
  8912. Mark the beginning of a procedure.
  8913. '.exit'
  8914. Mark the end of a procedure.
  8915. '.export NAME [ ,TYP ] [ ,PARAM=R ]'
  8916. Make a procedure NAME available to callers. TYP, if present, must
  8917. be one of 'absolute', 'code' (ELF only, not SOM), 'data', 'entry',
  8918. 'data', 'entry', 'millicode', 'plabel', 'pri_prog', or 'sec_prog'.
  8919. PARAM, if present, provides either relocation information for the
  8920. procedure arguments and result, or a privilege level. PARAM may be
  8921. 'argwN' (where N ranges from '0' to '3', and indicates one of four
  8922. one-word arguments); 'rtnval' (the procedure's result); or
  8923. 'priv_lev' (privilege level). For arguments or the result, R
  8924. specifies how to relocate, and must be one of 'no' (not
  8925. relocatable), 'gr' (argument is in general register), 'fr' (in
  8926. floating point register), or 'fu' (upper half of float register).
  8927. For 'priv_lev', R is an integer.
  8928. '.half N'
  8929. Define a two-byte integer constant N; synonym for the portable 'as'
  8930. directive '.short'.
  8931. '.import NAME [ ,TYP ]'
  8932. Converse of '.export'; make a procedure available to call. The
  8933. arguments use the same conventions as the first two arguments for
  8934. '.export'.
  8935. '.label NAME'
  8936. Define NAME as a label for the current assembly location.
  8937. '.leave'
  8938. Not yet supported; the assembler rejects programs containing this
  8939. directive.
  8940. '.origin LC'
  8941. Advance location counter to LC. Synonym for the 'as' portable
  8942. directive '.org'.
  8943. '.param NAME [ ,TYP ] [ ,PARAM=R ]'
  8944. Similar to '.export', but used for static procedures.
  8945. '.proc'
  8946. Use preceding the first statement of a procedure.
  8947. '.procend'
  8948. Use following the last statement of a procedure.
  8949. 'LABEL .reg EXPR'
  8950. Synonym for '.equ'; define LABEL with the absolute expression EXPR
  8951. as its value.
  8952. '.space SECNAME [ ,PARAMS ]'
  8953. Switch to section SECNAME, creating a new section by that name if
  8954. necessary. You may only use PARAMS when creating a new section,
  8955. not when switching to an existing one. SECNAME may identify a
  8956. section by number rather than by name.
  8957. If specified, the list PARAMS declares attributes of the section,
  8958. identified by keywords. The keywords recognized are 'spnum=EXP'
  8959. (identify this section by the number EXP, an absolute expression),
  8960. 'sort=EXP' (order sections according to this sort key when linking;
  8961. EXP is an absolute expression), 'unloadable' (section contains no
  8962. loadable data), 'notdefined' (this section defined elsewhere), and
  8963. 'private' (data in this section not available to other programs).
  8964. '.spnum SECNAM'
  8965. Allocate four bytes of storage, and initialize them with the
  8966. section number of the section named SECNAM. (You can define the
  8967. section number with the HPPA '.space' directive.)
  8968. '.string "STR"'
  8969. Copy the characters in the string STR to the object file. *Note
  8970. Strings: Strings, for information on escape sequences you can use
  8971. in 'as' strings.
  8972. _Warning!_ The HPPA version of '.string' differs from the usual
  8973. 'as' definition: it does _not_ write a zero byte after copying STR.
  8974. '.stringz "STR"'
  8975. Like '.string', but appends a zero byte after copying STR to object
  8976. file.
  8977. '.subspa NAME [ ,PARAMS ]'
  8978. '.nsubspa NAME [ ,PARAMS ]'
  8979. Similar to '.space', but selects a subsection NAME within the
  8980. current section. You may only specify PARAMS when you create a
  8981. subsection (in the first instance of '.subspa' for this NAME).
  8982. If specified, the list PARAMS declares attributes of the
  8983. subsection, identified by keywords. The keywords recognized are
  8984. 'quad=EXPR' ("quadrant" for this subsection), 'align=EXPR'
  8985. (alignment for beginning of this subsection; a power of two),
  8986. 'access=EXPR' (value for "access rights" field), 'sort=EXPR'
  8987. (sorting order for this subspace in link), 'code_only' (subsection
  8988. contains only code), 'unloadable' (subsection cannot be loaded into
  8989. memory), 'comdat' (subsection is comdat), 'common' (subsection is
  8990. common block), 'dup_comm' (subsection may have duplicate names), or
  8991. 'zero' (subsection is all zeros, do not write in object file).
  8992. '.nsubspa' always creates a new subspace with the given name, even
  8993. if one with the same name already exists.
  8994. 'comdat', 'common' and 'dup_comm' can be used to implement various
  8995. flavors of one-only support when using the SOM linker. The SOM
  8996. linker only supports specific combinations of these flags. The
  8997. details are not documented. A brief description is provided here.
  8998. 'comdat' provides a form of linkonce support. It is useful for
  8999. both code and data subspaces. A 'comdat' subspace has a key symbol
  9000. marked by the 'is_comdat' flag or 'ST_COMDAT'. Only the first
  9001. subspace for any given key is selected. The key symbol becomes
  9002. universal in shared links. This is similar to the behavior of
  9003. 'secondary_def' symbols.
  9004. 'common' provides Fortran named common support. It is only useful
  9005. for data subspaces. Symbols with the flag 'is_common' retain this
  9006. flag in shared links. Referencing a 'is_common' symbol in a shared
  9007. library from outside the library doesn't work. Thus, 'is_common'
  9008. symbols must be output whenever they are needed.
  9009. 'common' and 'dup_comm' together provide Cobol common support. The
  9010. subspaces in this case must all be the same length. Otherwise,
  9011. this support is similar to the Fortran common support.
  9012. 'dup_comm' by itself provides a type of one-only support for code.
  9013. Only the first 'dup_comm' subspace is selected. There is a rather
  9014. complex algorithm to compare subspaces. Code symbols marked with
  9015. the 'dup_common' flag are hidden. This support was intended for
  9016. "C++ duplicate inlines".
  9017. A simplified technique is used to mark the flags of symbols based
  9018. on the flags of their subspace. A symbol with the scope
  9019. SS_UNIVERSAL and type ST_ENTRY, ST_CODE or ST_DATA is marked with
  9020. the corresponding settings of 'comdat', 'common' and 'dup_comm'
  9021. from the subspace, respectively. This avoids having to introduce
  9022. additional directives to mark these symbols. The HP assembler sets
  9023. 'is_common' from 'common'. However, it doesn't set the
  9024. 'dup_common' from 'dup_comm'. It doesn't have 'comdat' support.
  9025. '.version "STR"'
  9026. Write STR as version identifier in object code.
  9027. 
  9028. File: as.info, Node: HPPA Opcodes, Prev: HPPA Directives, Up: HPPA-Dependent
  9029. 9.15.6 Opcodes
  9030. --------------
  9031. For detailed information on the HPPA machine instruction set, see
  9032. 'PA-RISC Architecture and Instruction Set Reference Manual' (HP
  9033. 09740-90039).
  9034. 
  9035. File: as.info, Node: i386-Dependent, Next: IA-64-Dependent, Prev: HPPA-Dependent, Up: Machine Dependencies
  9036. 9.16 80386 Dependent Features
  9037. =============================
  9038. The i386 version 'as' supports both the original Intel 386 architecture
  9039. in both 16 and 32-bit mode as well as AMD x86-64 architecture extending
  9040. the Intel architecture to 64-bits.
  9041. * Menu:
  9042. * i386-Options:: Options
  9043. * i386-Directives:: X86 specific directives
  9044. * i386-Syntax:: Syntactical considerations
  9045. * i386-Mnemonics:: Instruction Naming
  9046. * i386-Regs:: Register Naming
  9047. * i386-Prefixes:: Instruction Prefixes
  9048. * i386-Memory:: Memory References
  9049. * i386-Jumps:: Handling of Jump Instructions
  9050. * i386-Float:: Floating Point
  9051. * i386-SIMD:: Intel's MMX and AMD's 3DNow! SIMD Operations
  9052. * i386-LWP:: AMD's Lightweight Profiling Instructions
  9053. * i386-BMI:: Bit Manipulation Instruction
  9054. * i386-TBM:: AMD's Trailing Bit Manipulation Instructions
  9055. * i386-16bit:: Writing 16-bit Code
  9056. * i386-Arch:: Specifying an x86 CPU architecture
  9057. * i386-Bugs:: AT&T Syntax bugs
  9058. * i386-Notes:: Notes
  9059. 
  9060. File: as.info, Node: i386-Options, Next: i386-Directives, Up: i386-Dependent
  9061. 9.16.1 Options
  9062. --------------
  9063. The i386 version of 'as' has a few machine dependent options:
  9064. '--32 | --x32 | --64'
  9065. Select the word size, either 32 bits or 64 bits. '--32' implies
  9066. Intel i386 architecture, while '--x32' and '--64' imply AMD x86-64
  9067. architecture with 32-bit or 64-bit word-size respectively.
  9068. These options are only available with the ELF object file format,
  9069. and require that the necessary BFD support has been included (on a
  9070. 32-bit platform you have to add -enable-64-bit-bfd to configure
  9071. enable 64-bit usage and use x86-64 as target platform).
  9072. '-n'
  9073. By default, x86 GAS replaces multiple nop instructions used for
  9074. alignment within code sections with multi-byte nop instructions
  9075. such as leal 0(%esi,1),%esi. This switch disables the optimization
  9076. if a single byte nop (0x90) is explicitly specified as the fill
  9077. byte for alignment.
  9078. '--divide'
  9079. On SVR4-derived platforms, the character '/' is treated as a
  9080. comment character, which means that it cannot be used in
  9081. expressions. The '--divide' option turns '/' into a normal
  9082. character. This does not disable '/' at the beginning of a line
  9083. starting a comment, or affect using '#' for starting a comment.
  9084. '-march=CPU[+EXTENSION...]'
  9085. This option specifies the target processor. The assembler will
  9086. issue an error message if an attempt is made to assemble an
  9087. instruction which will not execute on the target processor. The
  9088. following processor names are recognized: 'i8086', 'i186', 'i286',
  9089. 'i386', 'i486', 'i586', 'i686', 'pentium', 'pentiumpro',
  9090. 'pentiumii', 'pentiumiii', 'pentium4', 'prescott', 'nocona',
  9091. 'core', 'core2', 'corei7', 'l1om', 'k1om', 'iamcu', 'k6', 'k6_2',
  9092. 'athlon', 'opteron', 'k8', 'amdfam10', 'bdver1', 'bdver2',
  9093. 'bdver3', 'bdver4', 'znver1', 'znver2', 'btver1', 'btver2',
  9094. 'generic32' and 'generic64'.
  9095. In addition to the basic instruction set, the assembler can be told
  9096. to accept various extension mnemonics. For example,
  9097. '-march=i686+sse4+vmx' extends I686 with SSE4 and VMX. The
  9098. following extensions are currently supported: '8087', '287', '387',
  9099. '687', 'no87', 'no287', 'no387', 'no687', 'cmov', 'nocmov', 'fxsr',
  9100. 'nofxsr', 'mmx', 'nommx', 'sse', 'sse2', 'sse3', 'ssse3', 'sse4.1',
  9101. 'sse4.2', 'sse4', 'nosse', 'nosse2', 'nosse3', 'nossse3',
  9102. 'nosse4.1', 'nosse4.2', 'nosse4', 'avx', 'avx2', 'noavx', 'noavx2',
  9103. 'adx', 'rdseed', 'prfchw', 'smap', 'mpx', 'sha', 'rdpid',
  9104. 'ptwrite', 'cet', 'gfni', 'vaes', 'vpclmulqdq', 'prefetchwt1',
  9105. 'clflushopt', 'se1', 'clwb', 'movdiri', 'movdir64b', 'enqcmd',
  9106. 'avx512f', 'avx512cd', 'avx512er', 'avx512pf', 'avx512vl',
  9107. 'avx512bw', 'avx512dq', 'avx512ifma', 'avx512vbmi',
  9108. 'avx512_4fmaps', 'avx512_4vnniw', 'avx512_vpopcntdq',
  9109. 'avx512_vbmi2', 'avx512_vnni', 'avx512_bitalg', 'avx512_bf16',
  9110. 'noavx512f', 'noavx512cd', 'noavx512er', 'noavx512pf',
  9111. 'noavx512vl', 'noavx512bw', 'noavx512dq', 'noavx512ifma',
  9112. 'noavx512vbmi', 'noavx512_4fmaps', 'noavx512_4vnniw',
  9113. 'noavx512_vpopcntdq', 'noavx512_vbmi2', 'noavx512_vnni',
  9114. 'noavx512_bitalg', 'noavx512_vp2intersect', 'noavx512_bf16',
  9115. 'noenqcmd', 'vmx', 'vmfunc', 'smx', 'xsave', 'xsaveopt', 'xsavec',
  9116. 'xsaves', 'aes', 'pclmul', 'fsgsbase', 'rdrnd', 'f16c', 'bmi2',
  9117. 'fma', 'movbe', 'ept', 'lzcnt', 'hle', 'rtm', 'invpcid', 'clflush',
  9118. 'mwaitx', 'clzero', 'wbnoinvd', 'pconfig', 'waitpkg', 'cldemote',
  9119. 'rdpru', 'mcommit', 'lwp', 'fma4', 'xop', 'cx16', 'syscall',
  9120. 'rdtscp', '3dnow', '3dnowa', 'sse4a', 'sse5', 'svme', 'abm' and
  9121. 'padlock'. Note that rather than extending a basic instruction
  9122. set, the extension mnemonics starting with 'no' revoke the
  9123. respective functionality.
  9124. When the '.arch' directive is used with '-march', the '.arch'
  9125. directive will take precedent.
  9126. '-mtune=CPU'
  9127. This option specifies a processor to optimize for. When used in
  9128. conjunction with the '-march' option, only instructions of the
  9129. processor specified by the '-march' option will be generated.
  9130. Valid CPU values are identical to the processor list of
  9131. '-march=CPU'.
  9132. '-msse2avx'
  9133. This option specifies that the assembler should encode SSE
  9134. instructions with VEX prefix.
  9135. '-msse-check=NONE'
  9136. '-msse-check=WARNING'
  9137. '-msse-check=ERROR'
  9138. These options control if the assembler should check SSE
  9139. instructions. '-msse-check=NONE' will make the assembler not to
  9140. check SSE instructions, which is the default.
  9141. '-msse-check=WARNING' will make the assembler issue a warning for
  9142. any SSE instruction. '-msse-check=ERROR' will make the assembler
  9143. issue an error for any SSE instruction.
  9144. '-mavxscalar=128'
  9145. '-mavxscalar=256'
  9146. These options control how the assembler should encode scalar AVX
  9147. instructions. '-mavxscalar=128' will encode scalar AVX
  9148. instructions with 128bit vector length, which is the default.
  9149. '-mavxscalar=256' will encode scalar AVX instructions with 256bit
  9150. vector length.
  9151. WARNING: Don't use this for production code - due to CPU errata the
  9152. resulting code may not work on certain models.
  9153. '-mvexwig=0'
  9154. '-mvexwig=1'
  9155. These options control how the assembler should encode VEX.W-ignored
  9156. (WIG) VEX instructions. '-mvexwig=0' will encode WIG VEX
  9157. instructions with vex.w = 0, which is the default. '-mvexwig=1'
  9158. will encode WIG EVEX instructions with vex.w = 1.
  9159. WARNING: Don't use this for production code - due to CPU errata the
  9160. resulting code may not work on certain models.
  9161. '-mevexlig=128'
  9162. '-mevexlig=256'
  9163. '-mevexlig=512'
  9164. These options control how the assembler should encode
  9165. length-ignored (LIG) EVEX instructions. '-mevexlig=128' will
  9166. encode LIG EVEX instructions with 128bit vector length, which is
  9167. the default. '-mevexlig=256' and '-mevexlig=512' will encode LIG
  9168. EVEX instructions with 256bit and 512bit vector length,
  9169. respectively.
  9170. '-mevexwig=0'
  9171. '-mevexwig=1'
  9172. These options control how the assembler should encode w-ignored
  9173. (WIG) EVEX instructions. '-mevexwig=0' will encode WIG EVEX
  9174. instructions with evex.w = 0, which is the default. '-mevexwig=1'
  9175. will encode WIG EVEX instructions with evex.w = 1.
  9176. '-mmnemonic=ATT'
  9177. '-mmnemonic=INTEL'
  9178. This option specifies instruction mnemonic for matching
  9179. instructions. The '.att_mnemonic' and '.intel_mnemonic' directives
  9180. will take precedent.
  9181. '-msyntax=ATT'
  9182. '-msyntax=INTEL'
  9183. This option specifies instruction syntax when processing
  9184. instructions. The '.att_syntax' and '.intel_syntax' directives
  9185. will take precedent.
  9186. '-mnaked-reg'
  9187. This option specifies that registers don't require a '%' prefix.
  9188. The '.att_syntax' and '.intel_syntax' directives will take
  9189. precedent.
  9190. '-madd-bnd-prefix'
  9191. This option forces the assembler to add BND prefix to all branches,
  9192. even if such prefix was not explicitly specified in the source
  9193. code.
  9194. '-mno-shared'
  9195. On ELF target, the assembler normally optimizes out non-PLT
  9196. relocations against defined non-weak global branch targets with
  9197. default visibility. The '-mshared' option tells the assembler to
  9198. generate code which may go into a shared library where all non-weak
  9199. global branch targets with default visibility can be preempted.
  9200. The resulting code is slightly bigger. This option only affects
  9201. the handling of branch instructions.
  9202. '-mbig-obj'
  9203. On x86-64 PE/COFF target this option forces the use of big object
  9204. file format, which allows more than 32768 sections.
  9205. '-momit-lock-prefix=NO'
  9206. '-momit-lock-prefix=YES'
  9207. These options control how the assembler should encode lock prefix.
  9208. This option is intended as a workaround for processors, that fail
  9209. on lock prefix. This option can only be safely used with
  9210. single-core, single-thread computers '-momit-lock-prefix=YES' will
  9211. omit all lock prefixes. '-momit-lock-prefix=NO' will encode lock
  9212. prefix as usual, which is the default.
  9213. '-mfence-as-lock-add=NO'
  9214. '-mfence-as-lock-add=YES'
  9215. These options control how the assembler should encode lfence,
  9216. mfence and sfence. '-mfence-as-lock-add=YES' will encode lfence,
  9217. mfence and sfence as 'lock addl $0x0, (%rsp)' in 64-bit mode and
  9218. 'lock addl $0x0, (%esp)' in 32-bit mode. '-mfence-as-lock-add=NO'
  9219. will encode lfence, mfence and sfence as usual, which is the
  9220. default.
  9221. '-mrelax-relocations=NO'
  9222. '-mrelax-relocations=YES'
  9223. These options control whether the assembler should generate relax
  9224. relocations, R_386_GOT32X, in 32-bit mode, or R_X86_64_GOTPCRELX
  9225. and R_X86_64_REX_GOTPCRELX, in 64-bit mode.
  9226. '-mrelax-relocations=YES' will generate relax relocations.
  9227. '-mrelax-relocations=NO' will not generate relax relocations. The
  9228. default can be controlled by a configure option
  9229. '--enable-x86-relax-relocations'.
  9230. '-malign-branch-boundary=NUM'
  9231. This option controls how the assembler should align branches with
  9232. segment prefixes or NOP. NUM must be a power of 2. It should be 0
  9233. or no less than 16. Branches will be aligned within NUM byte
  9234. boundary. '-malign-branch-boundary=0', which is the default,
  9235. doesn't align branches.
  9236. '-malign-branch=TYPE[+TYPE...]'
  9237. This option specifies types of branches to align. TYPE is
  9238. combination of 'jcc', which aligns conditional jumps, 'fused',
  9239. which aligns fused conditional jumps, 'jmp', which aligns
  9240. unconditional jumps, 'call' which aligns calls, 'ret', which aligns
  9241. rets, 'indirect', which aligns indirect jumps and calls. The
  9242. default is '-malign-branch=jcc+fused+jmp'.
  9243. '-malign-branch-prefix-size=NUM'
  9244. This option specifies the maximum number of prefixes on an
  9245. instruction to align branches. NUM should be between 0 and 5. The
  9246. default NUM is 5.
  9247. '-mbranches-within-32B-boundaries'
  9248. This option aligns conditional jumps, fused conditional jumps and
  9249. unconditional jumps within 32 byte boundary with up to 5 segment
  9250. prefixes on an instruction. It is equivalent to
  9251. '-malign-branch-boundary=32' '-malign-branch=jcc+fused+jmp'
  9252. '-malign-branch-prefix-size=5'. The default doesn't align
  9253. branches.
  9254. '-mx86-used-note=NO'
  9255. '-mx86-used-note=YES'
  9256. These options control whether the assembler should generate
  9257. GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_FEATURE_2_USED GNU
  9258. property notes. The default can be controlled by the
  9259. '--enable-x86-used-note' configure option.
  9260. '-mevexrcig=RNE'
  9261. '-mevexrcig=RD'
  9262. '-mevexrcig=RU'
  9263. '-mevexrcig=RZ'
  9264. These options control how the assembler should encode SAE-only EVEX
  9265. instructions. '-mevexrcig=RNE' will encode RC bits of EVEX
  9266. instruction with 00, which is the default. '-mevexrcig=RD',
  9267. '-mevexrcig=RU' and '-mevexrcig=RZ' will encode SAE-only EVEX
  9268. instructions with 01, 10 and 11 RC bits, respectively.
  9269. '-mamd64'
  9270. '-mintel64'
  9271. This option specifies that the assembler should accept only AMD64
  9272. or Intel64 ISA in 64-bit mode. The default is to accept common,
  9273. Intel64 only and AMD64 ISAs.
  9274. '-O0 | -O | -O1 | -O2 | -Os'
  9275. Optimize instruction encoding with smaller instruction size. '-O'
  9276. and '-O1' encode 64-bit register load instructions with 64-bit
  9277. immediate as 32-bit register load instructions with 31-bit or
  9278. 32-bits immediates, encode 64-bit register clearing instructions
  9279. with 32-bit register clearing instructions, encode 256-bit/512-bit
  9280. VEX/EVEX vector register clearing instructions with 128-bit VEX
  9281. vector register clearing instructions, encode 128-bit/256-bit EVEX
  9282. vector register load/store instructions with VEX vector register
  9283. load/store instructions, and encode 128-bit/256-bit EVEX packed
  9284. integer logical instructions with 128-bit/256-bit VEX packed
  9285. integer logical.
  9286. '-O2' includes '-O1' optimization plus encodes 256-bit/512-bit EVEX
  9287. vector register clearing instructions with 128-bit EVEX vector
  9288. register clearing instructions. In 64-bit mode VEX encoded
  9289. instructions with commutative source operands will also have their
  9290. source operands swapped if this allows using the 2-byte VEX prefix
  9291. form instead of the 3-byte one. Certain forms of AND as well as OR
  9292. with the same (register) operand specified twice will also be
  9293. changed to TEST.
  9294. '-Os' includes '-O2' optimization plus encodes 16-bit, 32-bit and
  9295. 64-bit register tests with immediate as 8-bit register test with
  9296. immediate. '-O0' turns off this optimization.
  9297. 
  9298. File: as.info, Node: i386-Directives, Next: i386-Syntax, Prev: i386-Options, Up: i386-Dependent
  9299. 9.16.2 x86 specific Directives
  9300. ------------------------------
  9301. '.lcomm SYMBOL , LENGTH[, ALIGNMENT]'
  9302. Reserve LENGTH (an absolute expression) bytes for a local common
  9303. denoted by SYMBOL. The section and value of SYMBOL are those of
  9304. the new local common. The addresses are allocated in the bss
  9305. section, so that at run-time the bytes start off zeroed. Since
  9306. SYMBOL is not declared global, it is normally not visible to 'ld'.
  9307. The optional third parameter, ALIGNMENT, specifies the desired
  9308. alignment of the symbol in the bss section.
  9309. This directive is only available for COFF based x86 targets.
  9310. '.largecomm SYMBOL , LENGTH[, ALIGNMENT]'
  9311. This directive behaves in the same way as the 'comm' directive
  9312. except that the data is placed into the .LBSS section instead of
  9313. the .BSS section *note Comm::.
  9314. The directive is intended to be used for data which requires a
  9315. large amount of space, and it is only available for ELF based
  9316. x86_64 targets.
  9317. '.value EXPRESSION [, EXPRESSION]'
  9318. This directive behaves in the same way as the '.short' directive,
  9319. taking a series of comma separated expressions and storing them as
  9320. two-byte wide values into the current section.
  9321. 
  9322. File: as.info, Node: i386-Syntax, Next: i386-Mnemonics, Prev: i386-Directives, Up: i386-Dependent
  9323. 9.16.3 i386 Syntactical Considerations
  9324. --------------------------------------
  9325. * Menu:
  9326. * i386-Variations:: AT&T Syntax versus Intel Syntax
  9327. * i386-Chars:: Special Characters
  9328. 
  9329. File: as.info, Node: i386-Variations, Next: i386-Chars, Up: i386-Syntax
  9330. 9.16.3.1 AT&T Syntax versus Intel Syntax
  9331. ........................................
  9332. 'as' now supports assembly using Intel assembler syntax.
  9333. '.intel_syntax' selects Intel mode, and '.att_syntax' switches back to
  9334. the usual AT&T mode for compatibility with the output of 'gcc'. Either
  9335. of these directives may have an optional argument, 'prefix', or
  9336. 'noprefix' specifying whether registers require a '%' prefix. AT&T
  9337. System V/386 assembler syntax is quite different from Intel syntax. We
  9338. mention these differences because almost all 80386 documents use Intel
  9339. syntax. Notable differences between the two syntaxes are:
  9340. * AT&T immediate operands are preceded by '$'; Intel immediate
  9341. operands are undelimited (Intel 'push 4' is AT&T 'pushl $4'). AT&T
  9342. register operands are preceded by '%'; Intel register operands are
  9343. undelimited. AT&T absolute (as opposed to PC relative) jump/call
  9344. operands are prefixed by '*'; they are undelimited in Intel syntax.
  9345. * AT&T and Intel syntax use the opposite order for source and
  9346. destination operands. Intel 'add eax, 4' is 'addl $4, %eax'. The
  9347. 'source, dest' convention is maintained for compatibility with
  9348. previous Unix assemblers. Note that 'bound', 'invlpga', and
  9349. instructions with 2 immediate operands, such as the 'enter'
  9350. instruction, do _not_ have reversed order. *note i386-Bugs::.
  9351. * In AT&T syntax the size of memory operands is determined from the
  9352. last character of the instruction mnemonic. Mnemonic suffixes of
  9353. 'b', 'w', 'l' and 'q' specify byte (8-bit), word (16-bit), long
  9354. (32-bit) and quadruple word (64-bit) memory references. Mnemonic
  9355. suffixes of 'x', 'y' and 'z' specify xmm (128-bit vector), ymm
  9356. (256-bit vector) and zmm (512-bit vector) memory references, only
  9357. when there's no other way to disambiguate an instruction. Intel
  9358. syntax accomplishes this by prefixing memory operands (_not_ the
  9359. instruction mnemonics) with 'byte ptr', 'word ptr', 'dword ptr',
  9360. 'qword ptr', 'xmmword ptr', 'ymmword ptr' and 'zmmword ptr'. Thus,
  9361. Intel syntax 'mov al, byte ptr FOO' is 'movb FOO, %al' in AT&T
  9362. syntax. In Intel syntax, 'fword ptr', 'tbyte ptr' and 'oword ptr'
  9363. specify 48-bit, 80-bit and 128-bit memory references.
  9364. In 64-bit code, 'movabs' can be used to encode the 'mov'
  9365. instruction with the 64-bit displacement or immediate operand.
  9366. * Immediate form long jumps and calls are 'lcall/ljmp $SECTION,
  9367. $OFFSET' in AT&T syntax; the Intel syntax is 'call/jmp far
  9368. SECTION:OFFSET'. Also, the far return instruction is 'lret
  9369. $STACK-ADJUST' in AT&T syntax; Intel syntax is 'ret far
  9370. STACK-ADJUST'.
  9371. * The AT&T assembler does not provide support for multiple section
  9372. programs. Unix style systems expect all programs to be single
  9373. sections.
  9374. 
  9375. File: as.info, Node: i386-Chars, Prev: i386-Variations, Up: i386-Syntax
  9376. 9.16.3.2 Special Characters
  9377. ...........................
  9378. The presence of a '#' appearing anywhere on a line indicates the start
  9379. of a comment that extends to the end of that line.
  9380. If a '#' appears as the first character of a line then the whole line
  9381. is treated as a comment, but in this case the line can also be a logical
  9382. line number directive (*note Comments::) or a preprocessor control
  9383. command (*note Preprocessing::).
  9384. If the '--divide' command-line option has not been specified then the
  9385. '/' character appearing anywhere on a line also introduces a line
  9386. comment.
  9387. The ';' character can be used to separate statements on the same
  9388. line.
  9389. 
  9390. File: as.info, Node: i386-Mnemonics, Next: i386-Regs, Prev: i386-Syntax, Up: i386-Dependent
  9391. 9.16.4 i386-Mnemonics
  9392. ---------------------
  9393. 9.16.4.1 Instruction Naming
  9394. ...........................
  9395. Instruction mnemonics are suffixed with one character modifiers which
  9396. specify the size of operands. The letters 'b', 'w', 'l' and 'q' specify
  9397. byte, word, long and quadruple word operands. If no suffix is specified
  9398. by an instruction then 'as' tries to fill in the missing suffix based on
  9399. the destination register operand (the last one by convention). Thus,
  9400. 'mov %ax, %bx' is equivalent to 'movw %ax, %bx'; also, 'mov $1, %bx' is
  9401. equivalent to 'movw $1, bx'. Note that this is incompatible with the
  9402. AT&T Unix assembler which assumes that a missing mnemonic suffix implies
  9403. long operand size. (This incompatibility does not affect compiler
  9404. output since compilers always explicitly specify the mnemonic suffix.)
  9405. Almost all instructions have the same names in AT&T and Intel format.
  9406. There are a few exceptions. The sign extend and zero extend
  9407. instructions need two sizes to specify them. They need a size to
  9408. sign/zero extend _from_ and a size to zero extend _to_. This is
  9409. accomplished by using two instruction mnemonic suffixes in AT&T syntax.
  9410. Base names for sign extend and zero extend are 'movs...' and 'movz...'
  9411. in AT&T syntax ('movsx' and 'movzx' in Intel syntax). The instruction
  9412. mnemonic suffixes are tacked on to this base name, the _from_ suffix
  9413. before the _to_ suffix. Thus, 'movsbl %al, %edx' is AT&T syntax for
  9414. "move sign extend _from_ %al _to_ %edx." Possible suffixes, thus, are
  9415. 'bl' (from byte to long), 'bw' (from byte to word), 'wl' (from word to
  9416. long), 'bq' (from byte to quadruple word), 'wq' (from word to quadruple
  9417. word), and 'lq' (from long to quadruple word).
  9418. Different encoding options can be specified via pseudo prefixes:
  9419. * '{disp8}' - prefer 8-bit displacement.
  9420. * '{disp32}' - prefer 32-bit displacement.
  9421. * '{load}' - prefer load-form instruction.
  9422. * '{store}' - prefer store-form instruction.
  9423. * '{vex}' - encode with VEX prefix.
  9424. * '{vex3}' - encode with 3-byte VEX prefix.
  9425. * '{evex}' - encode with EVEX prefix.
  9426. * '{rex}' - prefer REX prefix for integer and legacy vector
  9427. instructions (x86-64 only). Note that this differs from the 'rex'
  9428. prefix which generates REX prefix unconditionally.
  9429. * '{nooptimize}' - disable instruction size optimization.
  9430. The Intel-syntax conversion instructions
  9431. * 'cbw' -- sign-extend byte in '%al' to word in '%ax',
  9432. * 'cwde' -- sign-extend word in '%ax' to long in '%eax',
  9433. * 'cwd' -- sign-extend word in '%ax' to long in '%dx:%ax',
  9434. * 'cdq' -- sign-extend dword in '%eax' to quad in '%edx:%eax',
  9435. * 'cdqe' -- sign-extend dword in '%eax' to quad in '%rax' (x86-64
  9436. only),
  9437. * 'cqo' -- sign-extend quad in '%rax' to octuple in '%rdx:%rax'
  9438. (x86-64 only),
  9439. are called 'cbtw', 'cwtl', 'cwtd', 'cltd', 'cltq', and 'cqto' in AT&T
  9440. naming. 'as' accepts either naming for these instructions.
  9441. Far call/jump instructions are 'lcall' and 'ljmp' in AT&T syntax, but
  9442. are 'call far' and 'jump far' in Intel convention.
  9443. 9.16.4.2 AT&T Mnemonic versus Intel Mnemonic
  9444. ............................................
  9445. 'as' supports assembly using Intel mnemonic. '.intel_mnemonic' selects
  9446. Intel mnemonic with Intel syntax, and '.att_mnemonic' switches back to
  9447. the usual AT&T mnemonic with AT&T syntax for compatibility with the
  9448. output of 'gcc'. Several x87 instructions, 'fadd', 'fdiv', 'fdivp',
  9449. 'fdivr', 'fdivrp', 'fmul', 'fsub', 'fsubp', 'fsubr' and 'fsubrp', are
  9450. implemented in AT&T System V/386 assembler with different mnemonics from
  9451. those in Intel IA32 specification. 'gcc' generates those instructions
  9452. with AT&T mnemonic.
  9453. 
  9454. File: as.info, Node: i386-Regs, Next: i386-Prefixes, Prev: i386-Mnemonics, Up: i386-Dependent
  9455. 9.16.5 Register Naming
  9456. ----------------------
  9457. Register operands are always prefixed with '%'. The 80386 registers
  9458. consist of
  9459. * the 8 32-bit registers '%eax' (the accumulator), '%ebx', '%ecx',
  9460. '%edx', '%edi', '%esi', '%ebp' (the frame pointer), and '%esp' (the
  9461. stack pointer).
  9462. * the 8 16-bit low-ends of these: '%ax', '%bx', '%cx', '%dx', '%di',
  9463. '%si', '%bp', and '%sp'.
  9464. * the 8 8-bit registers: '%ah', '%al', '%bh', '%bl', '%ch', '%cl',
  9465. '%dh', and '%dl' (These are the high-bytes and low-bytes of '%ax',
  9466. '%bx', '%cx', and '%dx')
  9467. * the 6 section registers '%cs' (code section), '%ds' (data section),
  9468. '%ss' (stack section), '%es', '%fs', and '%gs'.
  9469. * the 5 processor control registers '%cr0', '%cr2', '%cr3', '%cr4',
  9470. and '%cr8'.
  9471. * the 6 debug registers '%db0', '%db1', '%db2', '%db3', '%db6', and
  9472. '%db7'.
  9473. * the 2 test registers '%tr6' and '%tr7'.
  9474. * the 8 floating point register stack '%st' or equivalently '%st(0)',
  9475. '%st(1)', '%st(2)', '%st(3)', '%st(4)', '%st(5)', '%st(6)', and
  9476. '%st(7)'. These registers are overloaded by 8 MMX registers
  9477. '%mm0', '%mm1', '%mm2', '%mm3', '%mm4', '%mm5', '%mm6' and '%mm7'.
  9478. * the 8 128-bit SSE registers registers '%xmm0', '%xmm1', '%xmm2',
  9479. '%xmm3', '%xmm4', '%xmm5', '%xmm6' and '%xmm7'.
  9480. The AMD x86-64 architecture extends the register set by:
  9481. * enhancing the 8 32-bit registers to 64-bit: '%rax' (the
  9482. accumulator), '%rbx', '%rcx', '%rdx', '%rdi', '%rsi', '%rbp' (the
  9483. frame pointer), '%rsp' (the stack pointer)
  9484. * the 8 extended registers '%r8'-'%r15'.
  9485. * the 8 32-bit low ends of the extended registers: '%r8d'-'%r15d'.
  9486. * the 8 16-bit low ends of the extended registers: '%r8w'-'%r15w'.
  9487. * the 8 8-bit low ends of the extended registers: '%r8b'-'%r15b'.
  9488. * the 4 8-bit registers: '%sil', '%dil', '%bpl', '%spl'.
  9489. * the 8 debug registers: '%db8'-'%db15'.
  9490. * the 8 128-bit SSE registers: '%xmm8'-'%xmm15'.
  9491. With the AVX extensions more registers were made available:
  9492. * the 16 256-bit SSE '%ymm0'-'%ymm15' (only the first 8 available in
  9493. 32-bit mode). The bottom 128 bits are overlaid with the
  9494. 'xmm0'-'xmm15' registers.
  9495. The AVX2 extensions made in 64-bit mode more registers available:
  9496. * the 16 128-bit registers '%xmm16'-'%xmm31' and the 16 256-bit
  9497. registers '%ymm16'-'%ymm31'.
  9498. The AVX512 extensions added the following registers:
  9499. * the 32 512-bit registers '%zmm0'-'%zmm31' (only the first 8
  9500. available in 32-bit mode). The bottom 128 bits are overlaid with
  9501. the '%xmm0'-'%xmm31' registers and the first 256 bits are overlaid
  9502. with the '%ymm0'-'%ymm31' registers.
  9503. * the 8 mask registers '%k0'-'%k7'.
  9504. 
  9505. File: as.info, Node: i386-Prefixes, Next: i386-Memory, Prev: i386-Regs, Up: i386-Dependent
  9506. 9.16.6 Instruction Prefixes
  9507. ---------------------------
  9508. Instruction prefixes are used to modify the following instruction. They
  9509. are used to repeat string instructions, to provide section overrides, to
  9510. perform bus lock operations, and to change operand and address sizes.
  9511. (Most instructions that normally operate on 32-bit operands will use
  9512. 16-bit operands if the instruction has an "operand size" prefix.)
  9513. Instruction prefixes are best written on the same line as the
  9514. instruction they act upon. For example, the 'scas' (scan string)
  9515. instruction is repeated with:
  9516. repne scas %es:(%edi),%al
  9517. You may also place prefixes on the lines immediately preceding the
  9518. instruction, but this circumvents checks that 'as' does with prefixes,
  9519. and will not work with all prefixes.
  9520. Here is a list of instruction prefixes:
  9521. * Section override prefixes 'cs', 'ds', 'ss', 'es', 'fs', 'gs'.
  9522. These are automatically added by specifying using the
  9523. SECTION:MEMORY-OPERAND form for memory references.
  9524. * Operand/Address size prefixes 'data16' and 'addr16' change 32-bit
  9525. operands/addresses into 16-bit operands/addresses, while 'data32'
  9526. and 'addr32' change 16-bit ones (in a '.code16' section) into
  9527. 32-bit operands/addresses. These prefixes _must_ appear on the
  9528. same line of code as the instruction they modify. For example, in
  9529. a 16-bit '.code16' section, you might write:
  9530. addr32 jmpl *(%ebx)
  9531. * The bus lock prefix 'lock' inhibits interrupts during execution of
  9532. the instruction it precedes. (This is only valid with certain
  9533. instructions; see a 80386 manual for details).
  9534. * The wait for coprocessor prefix 'wait' waits for the coprocessor to
  9535. complete the current instruction. This should never be needed for
  9536. the 80386/80387 combination.
  9537. * The 'rep', 'repe', and 'repne' prefixes are added to string
  9538. instructions to make them repeat '%ecx' times ('%cx' times if the
  9539. current address size is 16-bits).
  9540. * The 'rex' family of prefixes is used by x86-64 to encode extensions
  9541. to i386 instruction set. The 'rex' prefix has four bits -- an
  9542. operand size overwrite ('64') used to change operand size from
  9543. 32-bit to 64-bit and X, Y and Z extensions bits used to extend the
  9544. register set.
  9545. You may write the 'rex' prefixes directly. The 'rex64xyz'
  9546. instruction emits 'rex' prefix with all the bits set. By omitting
  9547. the '64', 'x', 'y' or 'z' you may write other prefixes as well.
  9548. Normally, there is no need to write the prefixes explicitly, since
  9549. gas will automatically generate them based on the instruction
  9550. operands.
  9551. 
  9552. File: as.info, Node: i386-Memory, Next: i386-Jumps, Prev: i386-Prefixes, Up: i386-Dependent
  9553. 9.16.7 Memory References
  9554. ------------------------
  9555. An Intel syntax indirect memory reference of the form
  9556. SECTION:[BASE + INDEX*SCALE + DISP]
  9557. is translated into the AT&T syntax
  9558. SECTION:DISP(BASE, INDEX, SCALE)
  9559. where BASE and INDEX are the optional 32-bit base and index registers,
  9560. DISP is the optional displacement, and SCALE, taking the values 1, 2, 4,
  9561. and 8, multiplies INDEX to calculate the address of the operand. If no
  9562. SCALE is specified, SCALE is taken to be 1. SECTION specifies the
  9563. optional section register for the memory operand, and may override the
  9564. default section register (see a 80386 manual for section register
  9565. defaults). Note that section overrides in AT&T syntax _must_ be
  9566. preceded by a '%'. If you specify a section override which coincides
  9567. with the default section register, 'as' does _not_ output any section
  9568. register override prefixes to assemble the given instruction. Thus,
  9569. section overrides can be specified to emphasize which section register
  9570. is used for a given memory operand.
  9571. Here are some examples of Intel and AT&T style memory references:
  9572. AT&T: '-4(%ebp)', Intel: '[ebp - 4]'
  9573. BASE is '%ebp'; DISP is '-4'. SECTION is missing, and the default
  9574. section is used ('%ss' for addressing with '%ebp' as the base
  9575. register). INDEX, SCALE are both missing.
  9576. AT&T: 'foo(,%eax,4)', Intel: '[foo + eax*4]'
  9577. INDEX is '%eax' (scaled by a SCALE 4); DISP is 'foo'. All other
  9578. fields are missing. The section register here defaults to '%ds'.
  9579. AT&T: 'foo(,1)'; Intel '[foo]'
  9580. This uses the value pointed to by 'foo' as a memory operand. Note
  9581. that BASE and INDEX are both missing, but there is only _one_ ','.
  9582. This is a syntactic exception.
  9583. AT&T: '%gs:foo'; Intel 'gs:foo'
  9584. This selects the contents of the variable 'foo' with section
  9585. register SECTION being '%gs'.
  9586. Absolute (as opposed to PC relative) call and jump operands must be
  9587. prefixed with '*'. If no '*' is specified, 'as' always chooses PC
  9588. relative addressing for jump/call labels.
  9589. Any instruction that has a memory operand, but no register operand,
  9590. _must_ specify its size (byte, word, long, or quadruple) with an
  9591. instruction mnemonic suffix ('b', 'w', 'l' or 'q', respectively).
  9592. The x86-64 architecture adds an RIP (instruction pointer relative)
  9593. addressing. This addressing mode is specified by using 'rip' as a base
  9594. register. Only constant offsets are valid. For example:
  9595. AT&T: '1234(%rip)', Intel: '[rip + 1234]'
  9596. Points to the address 1234 bytes past the end of the current
  9597. instruction.
  9598. AT&T: 'symbol(%rip)', Intel: '[rip + symbol]'
  9599. Points to the 'symbol' in RIP relative way, this is shorter than
  9600. the default absolute addressing.
  9601. Other addressing modes remain unchanged in x86-64 architecture,
  9602. except registers used are 64-bit instead of 32-bit.
  9603. 
  9604. File: as.info, Node: i386-Jumps, Next: i386-Float, Prev: i386-Memory, Up: i386-Dependent
  9605. 9.16.8 Handling of Jump Instructions
  9606. ------------------------------------
  9607. Jump instructions are always optimized to use the smallest possible
  9608. displacements. This is accomplished by using byte (8-bit) displacement
  9609. jumps whenever the target is sufficiently close. If a byte displacement
  9610. is insufficient a long displacement is used. We do not support word
  9611. (16-bit) displacement jumps in 32-bit mode (i.e. prefixing the jump
  9612. instruction with the 'data16' instruction prefix), since the 80386
  9613. insists upon masking '%eip' to 16 bits after the word displacement is
  9614. added. (See also *note i386-Arch::)
  9615. Note that the 'jcxz', 'jecxz', 'loop', 'loopz', 'loope', 'loopnz' and
  9616. 'loopne' instructions only come in byte displacements, so that if you
  9617. use these instructions ('gcc' does not use them) you may get an error
  9618. message (and incorrect code). The AT&T 80386 assembler tries to get
  9619. around this problem by expanding 'jcxz foo' to
  9620. jcxz cx_zero
  9621. jmp cx_nonzero
  9622. cx_zero: jmp foo
  9623. cx_nonzero:
  9624. 
  9625. File: as.info, Node: i386-Float, Next: i386-SIMD, Prev: i386-Jumps, Up: i386-Dependent
  9626. 9.16.9 Floating Point
  9627. ---------------------
  9628. All 80387 floating point types except packed BCD are supported. (BCD
  9629. support may be added without much difficulty). These data types are
  9630. 16-, 32-, and 64- bit integers, and single (32-bit), double (64-bit),
  9631. and extended (80-bit) precision floating point. Each supported type has
  9632. an instruction mnemonic suffix and a constructor associated with it.
  9633. Instruction mnemonic suffixes specify the operand's data type.
  9634. Constructors build these data types into memory.
  9635. * Floating point constructors are '.float' or '.single', '.double',
  9636. and '.tfloat' for 32-, 64-, and 80-bit formats. These correspond
  9637. to instruction mnemonic suffixes 's', 'l', and 't'. 't' stands for
  9638. 80-bit (ten byte) real. The 80387 only supports this format via
  9639. the 'fldt' (load 80-bit real to stack top) and 'fstpt' (store
  9640. 80-bit real and pop stack) instructions.
  9641. * Integer constructors are '.word', '.long' or '.int', and '.quad'
  9642. for the 16-, 32-, and 64-bit integer formats. The corresponding
  9643. instruction mnemonic suffixes are 's' (single), 'l' (long), and 'q'
  9644. (quad). As with the 80-bit real format, the 64-bit 'q' format is
  9645. only present in the 'fildq' (load quad integer to stack top) and
  9646. 'fistpq' (store quad integer and pop stack) instructions.
  9647. Register to register operations should not use instruction mnemonic
  9648. suffixes. 'fstl %st, %st(1)' will give a warning, and be assembled as
  9649. if you wrote 'fst %st, %st(1)', since all register to register
  9650. operations use 80-bit floating point operands. (Contrast this with
  9651. 'fstl %st, mem', which converts '%st' from 80-bit to 64-bit floating
  9652. point format, then stores the result in the 4 byte location 'mem')
  9653. 
  9654. File: as.info, Node: i386-SIMD, Next: i386-LWP, Prev: i386-Float, Up: i386-Dependent
  9655. 9.16.10 Intel's MMX and AMD's 3DNow! SIMD Operations
  9656. ----------------------------------------------------
  9657. 'as' supports Intel's MMX instruction set (SIMD instructions for integer
  9658. data), available on Intel's Pentium MMX processors and Pentium II
  9659. processors, AMD's K6 and K6-2 processors, Cyrix' M2 processor, and
  9660. probably others. It also supports AMD's 3DNow! instruction set (SIMD
  9661. instructions for 32-bit floating point data) available on AMD's K6-2
  9662. processor and possibly others in the future.
  9663. Currently, 'as' does not support Intel's floating point SIMD, Katmai
  9664. (KNI).
  9665. The eight 64-bit MMX operands, also used by 3DNow!, are called
  9666. '%mm0', '%mm1', ... '%mm7'. They contain eight 8-bit integers, four
  9667. 16-bit integers, two 32-bit integers, one 64-bit integer, or two 32-bit
  9668. floating point values. The MMX registers cannot be used at the same
  9669. time as the floating point stack.
  9670. See Intel and AMD documentation, keeping in mind that the operand
  9671. order in instructions is reversed from the Intel syntax.
  9672. 
  9673. File: as.info, Node: i386-LWP, Next: i386-BMI, Prev: i386-SIMD, Up: i386-Dependent
  9674. 9.16.11 AMD's Lightweight Profiling Instructions
  9675. ------------------------------------------------
  9676. 'as' supports AMD's Lightweight Profiling (LWP) instruction set,
  9677. available on AMD's Family 15h (Orochi) processors.
  9678. LWP enables applications to collect and manage performance data, and
  9679. react to performance events. The collection of performance data
  9680. requires no context switches. LWP runs in the context of a thread and
  9681. so several counters can be used independently across multiple threads.
  9682. LWP can be used in both 64-bit and legacy 32-bit modes.
  9683. For detailed information on the LWP instruction set, see the 'AMD
  9684. Lightweight Profiling Specification' available at Lightweight Profiling
  9685. Specification (http://developer.amd.com/cpu/LWP).
  9686. 
  9687. File: as.info, Node: i386-BMI, Next: i386-TBM, Prev: i386-LWP, Up: i386-Dependent
  9688. 9.16.12 Bit Manipulation Instructions
  9689. -------------------------------------
  9690. 'as' supports the Bit Manipulation (BMI) instruction set.
  9691. BMI instructions provide several instructions implementing individual
  9692. bit manipulation operations such as isolation, masking, setting, or
  9693. resetting.
  9694. 
  9695. File: as.info, Node: i386-TBM, Next: i386-16bit, Prev: i386-BMI, Up: i386-Dependent
  9696. 9.16.13 AMD's Trailing Bit Manipulation Instructions
  9697. ----------------------------------------------------
  9698. 'as' supports AMD's Trailing Bit Manipulation (TBM) instruction set,
  9699. available on AMD's BDVER2 processors (Trinity and Viperfish).
  9700. TBM instructions provide instructions implementing individual bit
  9701. manipulation operations such as isolating, masking, setting, resetting,
  9702. complementing, and operations on trailing zeros and ones.
  9703. 
  9704. File: as.info, Node: i386-16bit, Next: i386-Arch, Prev: i386-TBM, Up: i386-Dependent
  9705. 9.16.14 Writing 16-bit Code
  9706. ---------------------------
  9707. While 'as' normally writes only "pure" 32-bit i386 code or 64-bit x86-64
  9708. code depending on the default configuration, it also supports writing
  9709. code to run in real mode or in 16-bit protected mode code segments. To
  9710. do this, put a '.code16' or '.code16gcc' directive before the assembly
  9711. language instructions to be run in 16-bit mode. You can switch 'as' to
  9712. writing 32-bit code with the '.code32' directive or 64-bit code with the
  9713. '.code64' directive.
  9714. '.code16gcc' provides experimental support for generating 16-bit code
  9715. from gcc, and differs from '.code16' in that 'call', 'ret', 'enter',
  9716. 'leave', 'push', 'pop', 'pusha', 'popa', 'pushf', and 'popf'
  9717. instructions default to 32-bit size. This is so that the stack pointer
  9718. is manipulated in the same way over function calls, allowing access to
  9719. function parameters at the same stack offsets as in 32-bit mode.
  9720. '.code16gcc' also automatically adds address size prefixes where
  9721. necessary to use the 32-bit addressing modes that gcc generates.
  9722. The code which 'as' generates in 16-bit mode will not necessarily run
  9723. on a 16-bit pre-80386 processor. To write code that runs on such a
  9724. processor, you must refrain from using _any_ 32-bit constructs which
  9725. require 'as' to output address or operand size prefixes.
  9726. Note that writing 16-bit code instructions by explicitly specifying a
  9727. prefix or an instruction mnemonic suffix within a 32-bit code section
  9728. generates different machine instructions than those generated for a
  9729. 16-bit code segment. In a 32-bit code section, the following code
  9730. generates the machine opcode bytes '66 6a 04', which pushes the value
  9731. '4' onto the stack, decrementing '%esp' by 2.
  9732. pushw $4
  9733. The same code in a 16-bit code section would generate the machine
  9734. opcode bytes '6a 04' (i.e., without the operand size prefix), which is
  9735. correct since the processor default operand size is assumed to be 16
  9736. bits in a 16-bit code section.
  9737. 
  9738. File: as.info, Node: i386-Arch, Next: i386-Bugs, Prev: i386-16bit, Up: i386-Dependent
  9739. 9.16.15 Specifying CPU Architecture
  9740. -----------------------------------
  9741. 'as' may be told to assemble for a particular CPU (sub-)architecture
  9742. with the '.arch CPU_TYPE' directive. This directive enables a warning
  9743. when gas detects an instruction that is not supported on the CPU
  9744. specified. The choices for CPU_TYPE are:
  9745. 'i8086' 'i186' 'i286' 'i386'
  9746. 'i486' 'i586' 'i686' 'pentium'
  9747. 'pentiumpro' 'pentiumii' 'pentiumiii' 'pentium4'
  9748. 'prescott' 'nocona' 'core' 'core2'
  9749. 'corei7' 'l1om' 'k1om' 'iamcu'
  9750. 'k6' 'k6_2' 'athlon' 'k8'
  9751. 'amdfam10' 'bdver1' 'bdver2' 'bdver3'
  9752. 'bdver4' 'znver1' 'znver2' 'btver1'
  9753. 'btver2' 'generic32' 'generic64'
  9754. '.cmov' '.fxsr' '.mmx'
  9755. '.sse' '.sse2' '.sse3'
  9756. '.ssse3' '.sse4.1' '.sse4.2' '.sse4'
  9757. '.avx' '.vmx' '.smx' '.ept'
  9758. '.clflush' '.movbe' '.xsave' '.xsaveopt'
  9759. '.aes' '.pclmul' '.fma' '.fsgsbase'
  9760. '.rdrnd' '.f16c' '.avx2' '.bmi2'
  9761. '.lzcnt' '.invpcid' '.vmfunc' '.hle'
  9762. '.rtm' '.adx' '.rdseed' '.prfchw'
  9763. '.smap' '.mpx' '.sha' '.prefetchwt1'
  9764. '.clflushopt' '.xsavec' '.xsaves' '.se1'
  9765. '.avx512f' '.avx512cd' '.avx512er' '.avx512pf'
  9766. '.avx512vl' '.avx512bw' '.avx512dq' '.avx512ifma'
  9767. '.avx512vbmi' '.avx512_4fmaps''.avx512_4vnniw'
  9768. '.avx512_vpopcntdq''.avx512_vbmi2''.avx512_vnni'
  9769. '.avx512_bitalg''.avx512_bf16''.avx512_vp2intersect'
  9770. '.clwb' '.rdpid' '.ptwrite'
  9771. '.ibt'
  9772. '.wbnoinvd' '.pconfig' '.waitpkg' '.cldemote'
  9773. '.shstk' '.gfni' '.vaes' '.vpclmulqdq'
  9774. '.movdiri' '.movdir64b' '.enqcmd'
  9775. '.3dnow' '.3dnowa' '.sse4a' '.sse5'
  9776. '.syscall' '.rdtscp' '.svme' '.abm'
  9777. '.lwp' '.fma4' '.xop' '.cx16'
  9778. '.padlock' '.clzero' '.mwaitx' '.rdpru'
  9779. '.mcommit'
  9780. Apart from the warning, there are only two other effects on 'as'
  9781. operation; Firstly, if you specify a CPU other than 'i486', then shift
  9782. by one instructions such as 'sarl $1, %eax' will automatically use a two
  9783. byte opcode sequence. The larger three byte opcode sequence is used on
  9784. the 486 (and when no architecture is specified) because it executes
  9785. faster on the 486. Note that you can explicitly request the two byte
  9786. opcode by writing 'sarl %eax'. Secondly, if you specify 'i8086',
  9787. 'i186', or 'i286', _and_ '.code16' or '.code16gcc' then byte offset
  9788. conditional jumps will be promoted when necessary to a two instruction
  9789. sequence consisting of a conditional jump of the opposite sense around
  9790. an unconditional jump to the target.
  9791. Following the CPU architecture (but not a sub-architecture, which are
  9792. those starting with a dot), you may specify 'jumps' or 'nojumps' to
  9793. control automatic promotion of conditional jumps. 'jumps' is the
  9794. default, and enables jump promotion; All external jumps will be of the
  9795. long variety, and file-local jumps will be promoted as necessary.
  9796. (*note i386-Jumps::) 'nojumps' leaves external conditional jumps as byte
  9797. offset jumps, and warns about file-local conditional jumps that 'as'
  9798. promotes. Unconditional jumps are treated as for 'jumps'.
  9799. For example
  9800. .arch i8086,nojumps
  9801. 
  9802. File: as.info, Node: i386-Bugs, Next: i386-Notes, Prev: i386-Arch, Up: i386-Dependent
  9803. 9.16.16 AT&T Syntax bugs
  9804. ------------------------
  9805. The UnixWare assembler, and probably other AT&T derived ix86 Unix
  9806. assemblers, generate floating point instructions with reversed source
  9807. and destination registers in certain cases. Unfortunately, gcc and
  9808. possibly many other programs use this reversed syntax, so we're stuck
  9809. with it.
  9810. For example
  9811. fsub %st,%st(3)
  9812. results in '%st(3)' being updated to '%st - %st(3)' rather than the
  9813. expected '%st(3) - %st'. This happens with all the non-commutative
  9814. arithmetic floating point operations with two register operands where
  9815. the source register is '%st' and the destination register is '%st(i)'.
  9816. 
  9817. File: as.info, Node: i386-Notes, Prev: i386-Bugs, Up: i386-Dependent
  9818. 9.16.17 Notes
  9819. -------------
  9820. There is some trickery concerning the 'mul' and 'imul' instructions that
  9821. deserves mention. The 16-, 32-, 64- and 128-bit expanding multiplies
  9822. (base opcode '0xf6'; extension 4 for 'mul' and 5 for 'imul') can be
  9823. output only in the one operand form. Thus, 'imul %ebx, %eax' does _not_
  9824. select the expanding multiply; the expanding multiply would clobber the
  9825. '%edx' register, and this would confuse 'gcc' output. Use 'imul %ebx'
  9826. to get the 64-bit product in '%edx:%eax'.
  9827. We have added a two operand form of 'imul' when the first operand is
  9828. an immediate mode expression and the second operand is a register. This
  9829. is just a shorthand, so that, multiplying '%eax' by 69, for example, can
  9830. be done with 'imul $69, %eax' rather than 'imul $69, %eax, %eax'.
  9831. 
  9832. File: as.info, Node: IA-64-Dependent, Next: IP2K-Dependent, Prev: i386-Dependent, Up: Machine Dependencies
  9833. 9.17 IA-64 Dependent Features
  9834. =============================
  9835. * Menu:
  9836. * IA-64 Options:: Options
  9837. * IA-64 Syntax:: Syntax
  9838. * IA-64 Opcodes:: Opcodes
  9839. 
  9840. File: as.info, Node: IA-64 Options, Next: IA-64 Syntax, Up: IA-64-Dependent
  9841. 9.17.1 Options
  9842. --------------
  9843. '-mconstant-gp'
  9844. This option instructs the assembler to mark the resulting object
  9845. file as using the "constant GP" model. With this model, it is
  9846. assumed that the entire program uses a single global pointer (GP)
  9847. value. Note that this option does not in any fashion affect the
  9848. machine code emitted by the assembler. All it does is turn on the
  9849. EF_IA_64_CONS_GP flag in the ELF file header.
  9850. '-mauto-pic'
  9851. This option instructs the assembler to mark the resulting object
  9852. file as using the "constant GP without function descriptor" data
  9853. model. This model is like the "constant GP" model, except that it
  9854. additionally does away with function descriptors. What this means
  9855. is that the address of a function refers directly to the function's
  9856. code entry-point. Normally, such an address would refer to a
  9857. function descriptor, which contains both the code entry-point and
  9858. the GP-value needed by the function. Note that this option does
  9859. not in any fashion affect the machine code emitted by the
  9860. assembler. All it does is turn on the EF_IA_64_NOFUNCDESC_CONS_GP
  9861. flag in the ELF file header.
  9862. '-milp32'
  9863. '-milp64'
  9864. '-mlp64'
  9865. '-mp64'
  9866. These options select the data model. The assembler defaults to
  9867. '-mlp64' (LP64 data model).
  9868. '-mle'
  9869. '-mbe'
  9870. These options select the byte order. The '-mle' option selects
  9871. little-endian byte order (default) and '-mbe' selects big-endian
  9872. byte order. Note that IA-64 machine code always uses little-endian
  9873. byte order.
  9874. '-mtune=itanium1'
  9875. '-mtune=itanium2'
  9876. Tune for a particular IA-64 CPU, ITANIUM1 or ITANIUM2. The default
  9877. is ITANIUM2.
  9878. '-munwind-check=warning'
  9879. '-munwind-check=error'
  9880. These options control what the assembler will do when performing
  9881. consistency checks on unwind directives. '-munwind-check=warning'
  9882. will make the assembler issue a warning when an unwind directive
  9883. check fails. This is the default. '-munwind-check=error' will
  9884. make the assembler issue an error when an unwind directive check
  9885. fails.
  9886. '-mhint.b=ok'
  9887. '-mhint.b=warning'
  9888. '-mhint.b=error'
  9889. These options control what the assembler will do when the 'hint.b'
  9890. instruction is used. '-mhint.b=ok' will make the assembler accept
  9891. 'hint.b'. '-mint.b=warning' will make the assembler issue a
  9892. warning when 'hint.b' is used. '-mhint.b=error' will make the
  9893. assembler treat 'hint.b' as an error, which is the default.
  9894. '-x'
  9895. '-xexplicit'
  9896. These options turn on dependency violation checking.
  9897. '-xauto'
  9898. This option instructs the assembler to automatically insert stop
  9899. bits where necessary to remove dependency violations. This is the
  9900. default mode.
  9901. '-xnone'
  9902. This option turns off dependency violation checking.
  9903. '-xdebug'
  9904. This turns on debug output intended to help tracking down bugs in
  9905. the dependency violation checker.
  9906. '-xdebugn'
  9907. This is a shortcut for -xnone -xdebug.
  9908. '-xdebugx'
  9909. This is a shortcut for -xexplicit -xdebug.
  9910. 
  9911. File: as.info, Node: IA-64 Syntax, Next: IA-64 Opcodes, Prev: IA-64 Options, Up: IA-64-Dependent
  9912. 9.17.2 Syntax
  9913. -------------
  9914. The assembler syntax closely follows the IA-64 Assembly Language
  9915. Reference Guide.
  9916. * Menu:
  9917. * IA-64-Chars:: Special Characters
  9918. * IA-64-Regs:: Register Names
  9919. * IA-64-Bits:: Bit Names
  9920. * IA-64-Relocs:: Relocations
  9921. 
  9922. File: as.info, Node: IA-64-Chars, Next: IA-64-Regs, Up: IA-64 Syntax
  9923. 9.17.2.1 Special Characters
  9924. ...........................
  9925. '//' is the line comment token.
  9926. ';' can be used instead of a newline to separate statements.
  9927. 
  9928. File: as.info, Node: IA-64-Regs, Next: IA-64-Bits, Prev: IA-64-Chars, Up: IA-64 Syntax
  9929. 9.17.2.2 Register Names
  9930. .......................
  9931. The 128 integer registers are referred to as 'rN'. The 128
  9932. floating-point registers are referred to as 'fN'. The 128 application
  9933. registers are referred to as 'arN'. The 128 control registers are
  9934. referred to as 'crN'. The 64 one-bit predicate registers are referred
  9935. to as 'pN'. The 8 branch registers are referred to as 'bN'. In
  9936. addition, the assembler defines a number of aliases: 'gp' ('r1'), 'sp'
  9937. ('r12'), 'rp' ('b0'), 'ret0' ('r8'), 'ret1' ('r9'), 'ret2' ('r10'),
  9938. 'ret3' ('r9'), 'fargN' ('f8+N'), and 'fretN' ('f8+N').
  9939. For convenience, the assembler also defines aliases for all named
  9940. application and control registers. For example, 'ar.bsp' refers to the
  9941. register backing store pointer ('ar17'). Similarly, 'cr.eoi' refers to
  9942. the end-of-interrupt register ('cr67').
  9943. 
  9944. File: as.info, Node: IA-64-Bits, Next: IA-64-Relocs, Prev: IA-64-Regs, Up: IA-64 Syntax
  9945. 9.17.2.3 IA-64 Processor-Status-Register (PSR) Bit Names
  9946. ........................................................
  9947. The assembler defines bit masks for each of the bits in the IA-64
  9948. processor status register. For example, 'psr.ic' corresponds to a value
  9949. of 0x2000. These masks are primarily intended for use with the
  9950. 'ssm'/'sum' and 'rsm'/'rum' instructions, but they can be used anywhere
  9951. else where an integer constant is expected.
  9952. 
  9953. File: as.info, Node: IA-64-Relocs, Prev: IA-64-Bits, Up: IA-64 Syntax
  9954. 9.17.2.4 Relocations
  9955. ....................
  9956. In addition to the standard IA-64 relocations, the following relocations
  9957. are implemented by 'as':
  9958. '@slotcount(V)'
  9959. Convert the address offset V into a slot count. This pseudo
  9960. function is available only on VMS. The expression V must be known
  9961. at assembly time: it can't reference undefined symbols or symbols
  9962. in different sections.
  9963. 
  9964. File: as.info, Node: IA-64 Opcodes, Prev: IA-64 Syntax, Up: IA-64-Dependent
  9965. 9.17.3 Opcodes
  9966. --------------
  9967. For detailed information on the IA-64 machine instruction set, see the
  9968. IA-64 Architecture Handbook
  9969. (http://developer.intel.com/design/itanium/arch_spec.htm).
  9970. 
  9971. File: as.info, Node: IP2K-Dependent, Next: LM32-Dependent, Prev: IA-64-Dependent, Up: Machine Dependencies
  9972. 9.18 IP2K Dependent Features
  9973. ============================
  9974. * Menu:
  9975. * IP2K-Opts:: IP2K Options
  9976. * IP2K-Syntax:: IP2K Syntax
  9977. 
  9978. File: as.info, Node: IP2K-Opts, Next: IP2K-Syntax, Up: IP2K-Dependent
  9979. 9.18.1 IP2K Options
  9980. -------------------
  9981. The Ubicom IP2K version of 'as' has a few machine dependent options:
  9982. '-mip2022ext'
  9983. 'as' can assemble the extended IP2022 instructions, but it will
  9984. only do so if this is specifically allowed via this command line
  9985. option.
  9986. '-mip2022'
  9987. This option restores the assembler's default behaviour of not
  9988. permitting the extended IP2022 instructions to be assembled.
  9989. 
  9990. File: as.info, Node: IP2K-Syntax, Prev: IP2K-Opts, Up: IP2K-Dependent
  9991. 9.18.2 IP2K Syntax
  9992. ------------------
  9993. * Menu:
  9994. * IP2K-Chars:: Special Characters
  9995. 
  9996. File: as.info, Node: IP2K-Chars, Up: IP2K-Syntax
  9997. 9.18.2.1 Special Characters
  9998. ...........................
  9999. The presence of a ';' on a line indicates the start of a comment that
  10000. extends to the end of the current line.
  10001. If a '#' appears as the first character of a line, the whole line is
  10002. treated as a comment, but in this case the line can also be a logical
  10003. line number directive (*note Comments::) or a preprocessor control
  10004. command (*note Preprocessing::).
  10005. The IP2K assembler does not currently support a line separator
  10006. character.
  10007. 
  10008. File: as.info, Node: LM32-Dependent, Next: M32C-Dependent, Prev: IP2K-Dependent, Up: Machine Dependencies
  10009. 9.19 LM32 Dependent Features
  10010. ============================
  10011. * Menu:
  10012. * LM32 Options:: Options
  10013. * LM32 Syntax:: Syntax
  10014. * LM32 Opcodes:: Opcodes
  10015. 
  10016. File: as.info, Node: LM32 Options, Next: LM32 Syntax, Up: LM32-Dependent
  10017. 9.19.1 Options
  10018. --------------
  10019. '-mmultiply-enabled'
  10020. Enable multiply instructions.
  10021. '-mdivide-enabled'
  10022. Enable divide instructions.
  10023. '-mbarrel-shift-enabled'
  10024. Enable barrel-shift instructions.
  10025. '-msign-extend-enabled'
  10026. Enable sign extend instructions.
  10027. '-muser-enabled'
  10028. Enable user defined instructions.
  10029. '-micache-enabled'
  10030. Enable instruction cache related CSRs.
  10031. '-mdcache-enabled'
  10032. Enable data cache related CSRs.
  10033. '-mbreak-enabled'
  10034. Enable break instructions.
  10035. '-mall-enabled'
  10036. Enable all instructions and CSRs.
  10037. 
  10038. File: as.info, Node: LM32 Syntax, Next: LM32 Opcodes, Prev: LM32 Options, Up: LM32-Dependent
  10039. 9.19.2 Syntax
  10040. -------------
  10041. * Menu:
  10042. * LM32-Regs:: Register Names
  10043. * LM32-Modifiers:: Relocatable Expression Modifiers
  10044. * LM32-Chars:: Special Characters
  10045. 
  10046. File: as.info, Node: LM32-Regs, Next: LM32-Modifiers, Up: LM32 Syntax
  10047. 9.19.2.1 Register Names
  10048. .......................
  10049. LM32 has 32 x 32-bit general purpose registers 'r0', 'r1', ... 'r31'.
  10050. The following aliases are defined: 'gp' - 'r26', 'fp' - 'r27', 'sp' -
  10051. 'r28', 'ra' - 'r29', 'ea' - 'r30', 'ba' - 'r31'.
  10052. LM32 has the following Control and Status Registers (CSRs).
  10053. 'IE'
  10054. Interrupt enable.
  10055. 'IM'
  10056. Interrupt mask.
  10057. 'IP'
  10058. Interrupt pending.
  10059. 'ICC'
  10060. Instruction cache control.
  10061. 'DCC'
  10062. Data cache control.
  10063. 'CC'
  10064. Cycle counter.
  10065. 'CFG'
  10066. Configuration.
  10067. 'EBA'
  10068. Exception base address.
  10069. 'DC'
  10070. Debug control.
  10071. 'DEBA'
  10072. Debug exception base address.
  10073. 'JTX'
  10074. JTAG transmit.
  10075. 'JRX'
  10076. JTAG receive.
  10077. 'BP0'
  10078. Breakpoint 0.
  10079. 'BP1'
  10080. Breakpoint 1.
  10081. 'BP2'
  10082. Breakpoint 2.
  10083. 'BP3'
  10084. Breakpoint 3.
  10085. 'WP0'
  10086. Watchpoint 0.
  10087. 'WP1'
  10088. Watchpoint 1.
  10089. 'WP2'
  10090. Watchpoint 2.
  10091. 'WP3'
  10092. Watchpoint 3.
  10093. 
  10094. File: as.info, Node: LM32-Modifiers, Next: LM32-Chars, Prev: LM32-Regs, Up: LM32 Syntax
  10095. 9.19.2.2 Relocatable Expression Modifiers
  10096. .........................................
  10097. The assembler supports several modifiers when using relocatable
  10098. addresses in LM32 instruction operands. The general syntax is the
  10099. following:
  10100. modifier(relocatable-expression)
  10101. 'lo'
  10102. This modifier allows you to use bits 0 through 15 of an address
  10103. expression as 16 bit relocatable expression.
  10104. 'hi'
  10105. This modifier allows you to use bits 16 through 23 of an address
  10106. expression as 16 bit relocatable expression.
  10107. For example
  10108. ori r4, r4, lo(sym+10)
  10109. orhi r4, r4, hi(sym+10)
  10110. 'gp'
  10111. This modified creates a 16-bit relocatable expression that is the
  10112. offset of the symbol from the global pointer.
  10113. mva r4, gp(sym)
  10114. 'got'
  10115. This modifier places a symbol in the GOT and creates a 16-bit
  10116. relocatable expression that is the offset into the GOT of this
  10117. symbol.
  10118. lw r4, (gp+got(sym))
  10119. 'gotofflo16'
  10120. This modifier allows you to use the bits 0 through 15 of an address
  10121. which is an offset from the GOT.
  10122. 'gotoffhi16'
  10123. This modifier allows you to use the bits 16 through 31 of an
  10124. address which is an offset from the GOT.
  10125. orhi r4, r4, gotoffhi16(lsym)
  10126. addi r4, r4, gotofflo16(lsym)
  10127. 
  10128. File: as.info, Node: LM32-Chars, Prev: LM32-Modifiers, Up: LM32 Syntax
  10129. 9.19.2.3 Special Characters
  10130. ...........................
  10131. The presence of a '#' on a line indicates the start of a comment that
  10132. extends to the end of the current line. Note that if a line starts with
  10133. a '#' character then it can also be a logical line number directive
  10134. (*note Comments::) or a preprocessor control command (*note
  10135. Preprocessing::).
  10136. A semicolon (';') can be used to separate multiple statements on the
  10137. same line.
  10138. 
  10139. File: as.info, Node: LM32 Opcodes, Prev: LM32 Syntax, Up: LM32-Dependent
  10140. 9.19.3 Opcodes
  10141. --------------
  10142. For detailed information on the LM32 machine instruction set, see
  10143. <http://www.latticesemi.com/products/intellectualproperty/ipcores/mico32/>.
  10144. 'as' implements all the standard LM32 opcodes.
  10145. 
  10146. File: as.info, Node: M32C-Dependent, Next: M32R-Dependent, Prev: LM32-Dependent, Up: Machine Dependencies
  10147. 9.20 M32C Dependent Features
  10148. ============================
  10149. 'as' can assemble code for several different members of the Renesas M32C
  10150. family. Normally the default is to assemble code for the M16C
  10151. microprocessor. The '-m32c' option may be used to change the default to
  10152. the M32C microprocessor.
  10153. * Menu:
  10154. * M32C-Opts:: M32C Options
  10155. * M32C-Syntax:: M32C Syntax
  10156. 
  10157. File: as.info, Node: M32C-Opts, Next: M32C-Syntax, Up: M32C-Dependent
  10158. 9.20.1 M32C Options
  10159. -------------------
  10160. The Renesas M32C version of 'as' has these machine-dependent options:
  10161. '-m32c'
  10162. Assemble M32C instructions.
  10163. '-m16c'
  10164. Assemble M16C instructions (default).
  10165. '-relax'
  10166. Enable support for link-time relaxations.
  10167. '-h-tick-hex'
  10168. Support H'00 style hex constants in addition to 0x00 style.
  10169. 
  10170. File: as.info, Node: M32C-Syntax, Prev: M32C-Opts, Up: M32C-Dependent
  10171. 9.20.2 M32C Syntax
  10172. ------------------
  10173. * Menu:
  10174. * M32C-Modifiers:: Symbolic Operand Modifiers
  10175. * M32C-Chars:: Special Characters
  10176. 
  10177. File: as.info, Node: M32C-Modifiers, Next: M32C-Chars, Up: M32C-Syntax
  10178. 9.20.2.1 Symbolic Operand Modifiers
  10179. ...................................
  10180. The assembler supports several modifiers when using symbol addresses in
  10181. M32C instruction operands. The general syntax is the following:
  10182. %modifier(symbol)
  10183. '%dsp8'
  10184. '%dsp16'
  10185. These modifiers override the assembler's assumptions about how big
  10186. a symbol's address is. Normally, when it sees an operand like
  10187. 'sym[a0]' it assumes 'sym' may require the widest displacement
  10188. field (16 bits for '-m16c', 24 bits for '-m32c'). These modifiers
  10189. tell it to assume the address will fit in an 8 or 16 bit
  10190. (respectively) unsigned displacement. Note that, of course, if it
  10191. doesn't actually fit you will get linker errors. Example:
  10192. mov.w %dsp8(sym)[a0],r1
  10193. mov.b #0,%dsp8(sym)[a0]
  10194. '%hi8'
  10195. This modifier allows you to load bits 16 through 23 of a 24 bit
  10196. address into an 8 bit register. This is useful with, for example,
  10197. the M16C 'smovf' instruction, which expects a 20 bit address in
  10198. 'r1h' and 'a0'. Example:
  10199. mov.b #%hi8(sym),r1h
  10200. mov.w #%lo16(sym),a0
  10201. smovf.b
  10202. '%lo16'
  10203. Likewise, this modifier allows you to load bits 0 through 15 of a
  10204. 24 bit address into a 16 bit register.
  10205. '%hi16'
  10206. This modifier allows you to load bits 16 through 31 of a 32 bit
  10207. address into a 16 bit register. While the M32C family only has 24
  10208. bits of address space, it does support addresses in pairs of 16 bit
  10209. registers (like 'a1a0' for the 'lde' instruction). This modifier
  10210. is for loading the upper half in such cases. Example:
  10211. mov.w #%hi16(sym),a1
  10212. mov.w #%lo16(sym),a0
  10213. ...
  10214. lde.w [a1a0],r1
  10215. 
  10216. File: as.info, Node: M32C-Chars, Prev: M32C-Modifiers, Up: M32C-Syntax
  10217. 9.20.2.2 Special Characters
  10218. ...........................
  10219. The presence of a ';' character on a line indicates the start of a
  10220. comment that extends to the end of that line.
  10221. If a '#' appears as the first character of a line, the whole line is
  10222. treated as a comment, but in this case the line can also be a logical
  10223. line number directive (*note Comments::) or a preprocessor control
  10224. command (*note Preprocessing::).
  10225. The '|' character can be used to separate statements on the same
  10226. line.
  10227. 
  10228. File: as.info, Node: M32R-Dependent, Next: M68K-Dependent, Prev: M32C-Dependent, Up: Machine Dependencies
  10229. 9.21 M32R Dependent Features
  10230. ============================
  10231. * Menu:
  10232. * M32R-Opts:: M32R Options
  10233. * M32R-Directives:: M32R Directives
  10234. * M32R-Warnings:: M32R Warnings
  10235. 
  10236. File: as.info, Node: M32R-Opts, Next: M32R-Directives, Up: M32R-Dependent
  10237. 9.21.1 M32R Options
  10238. -------------------
  10239. The Renesas M32R version of 'as' has a few machine dependent options:
  10240. '-m32rx'
  10241. 'as' can assemble code for several different members of the Renesas
  10242. M32R family. Normally the default is to assemble code for the M32R
  10243. microprocessor. This option may be used to change the default to
  10244. the M32RX microprocessor, which adds some more instructions to the
  10245. basic M32R instruction set, and some additional parameters to some
  10246. of the original instructions.
  10247. '-m32r2'
  10248. This option changes the target processor to the M32R2
  10249. microprocessor.
  10250. '-m32r'
  10251. This option can be used to restore the assembler's default
  10252. behaviour of assembling for the M32R microprocessor. This can be
  10253. useful if the default has been changed by a previous command-line
  10254. option.
  10255. '-little'
  10256. This option tells the assembler to produce little-endian code and
  10257. data. The default is dependent upon how the toolchain was
  10258. configured.
  10259. '-EL'
  10260. This is a synonym for _-little_.
  10261. '-big'
  10262. This option tells the assembler to produce big-endian code and
  10263. data.
  10264. '-EB'
  10265. This is a synonym for _-big_.
  10266. '-KPIC'
  10267. This option specifies that the output of the assembler should be
  10268. marked as position-independent code (PIC).
  10269. '-parallel'
  10270. This option tells the assembler to attempts to combine two
  10271. sequential instructions into a single, parallel instruction, where
  10272. it is legal to do so.
  10273. '-no-parallel'
  10274. This option disables a previously enabled _-parallel_ option.
  10275. '-no-bitinst'
  10276. This option disables the support for the extended bit-field
  10277. instructions provided by the M32R2. If this support needs to be
  10278. re-enabled the _-bitinst_ switch can be used to restore it.
  10279. '-O'
  10280. This option tells the assembler to attempt to optimize the
  10281. instructions that it produces. This includes filling delay slots
  10282. and converting sequential instructions into parallel ones. This
  10283. option implies _-parallel_.
  10284. '-warn-explicit-parallel-conflicts'
  10285. Instructs 'as' to produce warning messages when questionable
  10286. parallel instructions are encountered. This option is enabled by
  10287. default, but 'gcc' disables it when it invokes 'as' directly.
  10288. Questionable instructions are those whose behaviour would be
  10289. different if they were executed sequentially. For example the code
  10290. fragment 'mv r1, r2 || mv r3, r1' produces a different result from
  10291. 'mv r1, r2 \n mv r3, r1' since the former moves r1 into r3 and then
  10292. r2 into r1, whereas the later moves r2 into r1 and r3.
  10293. '-Wp'
  10294. This is a shorter synonym for the
  10295. _-warn-explicit-parallel-conflicts_ option.
  10296. '-no-warn-explicit-parallel-conflicts'
  10297. Instructs 'as' not to produce warning messages when questionable
  10298. parallel instructions are encountered.
  10299. '-Wnp'
  10300. This is a shorter synonym for the
  10301. _-no-warn-explicit-parallel-conflicts_ option.
  10302. '-ignore-parallel-conflicts'
  10303. This option tells the assembler's to stop checking parallel
  10304. instructions for constraint violations. This ability is provided
  10305. for hardware vendors testing chip designs and should not be used
  10306. under normal circumstances.
  10307. '-no-ignore-parallel-conflicts'
  10308. This option restores the assembler's default behaviour of checking
  10309. parallel instructions to detect constraint violations.
  10310. '-Ip'
  10311. This is a shorter synonym for the _-ignore-parallel-conflicts_
  10312. option.
  10313. '-nIp'
  10314. This is a shorter synonym for the _-no-ignore-parallel-conflicts_
  10315. option.
  10316. '-warn-unmatched-high'
  10317. This option tells the assembler to produce a warning message if a
  10318. '.high' pseudo op is encountered without a matching '.low' pseudo
  10319. op. The presence of such an unmatched pseudo op usually indicates
  10320. a programming error.
  10321. '-no-warn-unmatched-high'
  10322. Disables a previously enabled _-warn-unmatched-high_ option.
  10323. '-Wuh'
  10324. This is a shorter synonym for the _-warn-unmatched-high_ option.
  10325. '-Wnuh'
  10326. This is a shorter synonym for the _-no-warn-unmatched-high_ option.
  10327. 
  10328. File: as.info, Node: M32R-Directives, Next: M32R-Warnings, Prev: M32R-Opts, Up: M32R-Dependent
  10329. 9.21.2 M32R Directives
  10330. ----------------------
  10331. The Renesas M32R version of 'as' has a few architecture specific
  10332. directives:
  10333. 'low EXPRESSION'
  10334. The 'low' directive computes the value of its expression and places
  10335. the lower 16-bits of the result into the immediate-field of the
  10336. instruction. For example:
  10337. or3 r0, r0, #low(0x12345678) ; compute r0 = r0 | 0x5678
  10338. add3, r0, r0, #low(fred) ; compute r0 = r0 + low 16-bits of address of fred
  10339. 'high EXPRESSION'
  10340. The 'high' directive computes the value of its expression and
  10341. places the upper 16-bits of the result into the immediate-field of
  10342. the instruction. For example:
  10343. seth r0, #high(0x12345678) ; compute r0 = 0x12340000
  10344. seth, r0, #high(fred) ; compute r0 = upper 16-bits of address of fred
  10345. 'shigh EXPRESSION'
  10346. The 'shigh' directive is very similar to the 'high' directive. It
  10347. also computes the value of its expression and places the upper
  10348. 16-bits of the result into the immediate-field of the instruction.
  10349. The difference is that 'shigh' also checks to see if the lower
  10350. 16-bits could be interpreted as a signed number, and if so it
  10351. assumes that a borrow will occur from the upper-16 bits. To
  10352. compensate for this the 'shigh' directive pre-biases the upper 16
  10353. bit value by adding one to it. For example:
  10354. For example:
  10355. seth r0, #shigh(0x12345678) ; compute r0 = 0x12340000
  10356. seth r0, #shigh(0x00008000) ; compute r0 = 0x00010000
  10357. In the second example the lower 16-bits are 0x8000. If these are
  10358. treated as a signed value and sign extended to 32-bits then the
  10359. value becomes 0xffff8000. If this value is then added to
  10360. 0x00010000 then the result is 0x00008000.
  10361. This behaviour is to allow for the different semantics of the 'or3'
  10362. and 'add3' instructions. The 'or3' instruction treats its 16-bit
  10363. immediate argument as unsigned whereas the 'add3' treats its 16-bit
  10364. immediate as a signed value. So for example:
  10365. seth r0, #shigh(0x00008000)
  10366. add3 r0, r0, #low(0x00008000)
  10367. Produces the correct result in r0, whereas:
  10368. seth r0, #shigh(0x00008000)
  10369. or3 r0, r0, #low(0x00008000)
  10370. Stores 0xffff8000 into r0.
  10371. Note - the 'shigh' directive does not know where in the assembly
  10372. source code the lower 16-bits of the value are going set, so it
  10373. cannot check to make sure that an 'or3' instruction is being used
  10374. rather than an 'add3' instruction. It is up to the programmer to
  10375. make sure that correct directives are used.
  10376. '.m32r'
  10377. The directive performs a similar thing as the _-m32r_ command line
  10378. option. It tells the assembler to only accept M32R instructions
  10379. from now on. An instructions from later M32R architectures are
  10380. refused.
  10381. '.m32rx'
  10382. The directive performs a similar thing as the _-m32rx_ command line
  10383. option. It tells the assembler to start accepting the extra
  10384. instructions in the M32RX ISA as well as the ordinary M32R ISA.
  10385. '.m32r2'
  10386. The directive performs a similar thing as the _-m32r2_ command line
  10387. option. It tells the assembler to start accepting the extra
  10388. instructions in the M32R2 ISA as well as the ordinary M32R ISA.
  10389. '.little'
  10390. The directive performs a similar thing as the _-little_ command
  10391. line option. It tells the assembler to start producing
  10392. little-endian code and data. This option should be used with care
  10393. as producing mixed-endian binary files is fraught with danger.
  10394. '.big'
  10395. The directive performs a similar thing as the _-big_ command line
  10396. option. It tells the assembler to start producing big-endian code
  10397. and data. This option should be used with care as producing
  10398. mixed-endian binary files is fraught with danger.
  10399. 
  10400. File: as.info, Node: M32R-Warnings, Prev: M32R-Directives, Up: M32R-Dependent
  10401. 9.21.3 M32R Warnings
  10402. --------------------
  10403. There are several warning and error messages that can be produced by
  10404. 'as' which are specific to the M32R:
  10405. 'output of 1st instruction is the same as an input to 2nd instruction - is this intentional ?'
  10406. This message is only produced if warnings for explicit parallel
  10407. conflicts have been enabled. It indicates that the assembler has
  10408. encountered a parallel instruction in which the destination
  10409. register of the left hand instruction is used as an input register
  10410. in the right hand instruction. For example in this code fragment
  10411. 'mv r1, r2 || neg r3, r1' register r1 is the destination of the
  10412. move instruction and the input to the neg instruction.
  10413. 'output of 2nd instruction is the same as an input to 1st instruction - is this intentional ?'
  10414. This message is only produced if warnings for explicit parallel
  10415. conflicts have been enabled. It indicates that the assembler has
  10416. encountered a parallel instruction in which the destination
  10417. register of the right hand instruction is used as an input register
  10418. in the left hand instruction. For example in this code fragment
  10419. 'mv r1, r2 || neg r2, r3' register r2 is the destination of the neg
  10420. instruction and the input to the move instruction.
  10421. 'instruction '...' is for the M32RX only'
  10422. This message is produced when the assembler encounters an
  10423. instruction which is only supported by the M32Rx processor, and the
  10424. '-m32rx' command-line flag has not been specified to allow assembly
  10425. of such instructions.
  10426. 'unknown instruction '...''
  10427. This message is produced when the assembler encounters an
  10428. instruction which it does not recognize.
  10429. 'only the NOP instruction can be issued in parallel on the m32r'
  10430. This message is produced when the assembler encounters a parallel
  10431. instruction which does not involve a NOP instruction and the
  10432. '-m32rx' command-line flag has not been specified. Only the M32Rx
  10433. processor is able to execute two instructions in parallel.
  10434. 'instruction '...' cannot be executed in parallel.'
  10435. This message is produced when the assembler encounters a parallel
  10436. instruction which is made up of one or two instructions which
  10437. cannot be executed in parallel.
  10438. 'Instructions share the same execution pipeline'
  10439. This message is produced when the assembler encounters a parallel
  10440. instruction whose components both use the same execution pipeline.
  10441. 'Instructions write to the same destination register.'
  10442. This message is produced when the assembler encounters a parallel
  10443. instruction where both components attempt to modify the same
  10444. register. For example these code fragments will produce this
  10445. message: 'mv r1, r2 || neg r1, r3' 'jl r0 || mv r14, r1' 'st r2,
  10446. @-r1 || mv r1, r3' 'mv r1, r2 || ld r0, @r1+' 'cmp r1, r2 || addx
  10447. r3, r4' (Both write to the condition bit)
  10448. 
  10449. File: as.info, Node: M68K-Dependent, Next: M68HC11-Dependent, Prev: M32R-Dependent, Up: Machine Dependencies
  10450. 9.22 M680x0 Dependent Features
  10451. ==============================
  10452. * Menu:
  10453. * M68K-Opts:: M680x0 Options
  10454. * M68K-Syntax:: Syntax
  10455. * M68K-Moto-Syntax:: Motorola Syntax
  10456. * M68K-Float:: Floating Point
  10457. * M68K-Directives:: 680x0 Machine Directives
  10458. * M68K-opcodes:: Opcodes
  10459. 
  10460. File: as.info, Node: M68K-Opts, Next: M68K-Syntax, Up: M68K-Dependent
  10461. 9.22.1 M680x0 Options
  10462. ---------------------
  10463. The Motorola 680x0 version of 'as' has a few machine dependent options:
  10464. '-march=ARCHITECTURE'
  10465. This option specifies a target architecture. The following
  10466. architectures are recognized: '68000', '68010', '68020', '68030',
  10467. '68040', '68060', 'cpu32', 'isaa', 'isaaplus', 'isab', 'isac' and
  10468. 'cfv4e'.
  10469. '-mcpu=CPU'
  10470. This option specifies a target cpu. When used in conjunction with
  10471. the '-march' option, the cpu must be within the specified
  10472. architecture. Also, the generic features of the architecture are
  10473. used for instruction generation, rather than those of the specific
  10474. chip.
  10475. '-m[no-]68851'
  10476. '-m[no-]68881'
  10477. '-m[no-]div'
  10478. '-m[no-]usp'
  10479. '-m[no-]float'
  10480. '-m[no-]mac'
  10481. '-m[no-]emac'
  10482. Enable or disable various architecture specific features. If a
  10483. chip or architecture by default supports an option (for instance
  10484. '-march=isaaplus' includes the '-mdiv' option), explicitly
  10485. disabling the option will override the default.
  10486. '-l'
  10487. You can use the '-l' option to shorten the size of references to
  10488. undefined symbols. If you do not use the '-l' option, references
  10489. to undefined symbols are wide enough for a full 'long' (32 bits).
  10490. (Since 'as' cannot know where these symbols end up, 'as' can only
  10491. allocate space for the linker to fill in later. Since 'as' does
  10492. not know how far away these symbols are, it allocates as much space
  10493. as it can.) If you use this option, the references are only one
  10494. word wide (16 bits). This may be useful if you want the object
  10495. file to be as small as possible, and you know that the relevant
  10496. symbols are always less than 17 bits away.
  10497. '--register-prefix-optional'
  10498. For some configurations, especially those where the compiler
  10499. normally does not prepend an underscore to the names of user
  10500. variables, the assembler requires a '%' before any use of a
  10501. register name. This is intended to let the assembler distinguish
  10502. between C variables and functions named 'a0' through 'a7', and so
  10503. on. The '%' is always accepted, but is not required for certain
  10504. configurations, notably 'sun3'. The '--register-prefix-optional'
  10505. option may be used to permit omitting the '%' even for
  10506. configurations for which it is normally required. If this is done,
  10507. it will generally be impossible to refer to C variables and
  10508. functions with the same names as register names.
  10509. '--bitwise-or'
  10510. Normally the character '|' is treated as a comment character, which
  10511. means that it can not be used in expressions. The '--bitwise-or'
  10512. option turns '|' into a normal character. In this mode, you must
  10513. either use C style comments, or start comments with a '#' character
  10514. at the beginning of a line.
  10515. '--base-size-default-16 --base-size-default-32'
  10516. If you use an addressing mode with a base register without
  10517. specifying the size, 'as' will normally use the full 32 bit value.
  10518. For example, the addressing mode '%a0@(%d0)' is equivalent to
  10519. '%a0@(%d0:l)'. You may use the '--base-size-default-16' option to
  10520. tell 'as' to default to using the 16 bit value. In this case,
  10521. '%a0@(%d0)' is equivalent to '%a0@(%d0:w)'. You may use the
  10522. '--base-size-default-32' option to restore the default behaviour.
  10523. '--disp-size-default-16 --disp-size-default-32'
  10524. If you use an addressing mode with a displacement, and the value of
  10525. the displacement is not known, 'as' will normally assume that the
  10526. value is 32 bits. For example, if the symbol 'disp' has not been
  10527. defined, 'as' will assemble the addressing mode '%a0@(disp,%d0)' as
  10528. though 'disp' is a 32 bit value. You may use the
  10529. '--disp-size-default-16' option to tell 'as' to instead assume that
  10530. the displacement is 16 bits. In this case, 'as' will assemble
  10531. '%a0@(disp,%d0)' as though 'disp' is a 16 bit value. You may use
  10532. the '--disp-size-default-32' option to restore the default
  10533. behaviour.
  10534. '--pcrel'
  10535. Always keep branches PC-relative. In the M680x0 architecture all
  10536. branches are defined as PC-relative. However, on some processors
  10537. they are limited to word displacements maximum. When 'as' needs a
  10538. long branch that is not available, it normally emits an absolute
  10539. jump instead. This option disables this substitution. When this
  10540. option is given and no long branches are available, only word
  10541. branches will be emitted. An error message will be generated if a
  10542. word branch cannot reach its target. This option has no effect on
  10543. 68020 and other processors that have long branches. *note Branch
  10544. Improvement: M68K-Branch.
  10545. '-m68000'
  10546. 'as' can assemble code for several different members of the
  10547. Motorola 680x0 family. The default depends upon how 'as' was
  10548. configured when it was built; normally, the default is to assemble
  10549. code for the 68020 microprocessor. The following options may be
  10550. used to change the default. These options control which
  10551. instructions and addressing modes are permitted. The members of
  10552. the 680x0 family are very similar. For detailed information about
  10553. the differences, see the Motorola manuals.
  10554. '-m68000'
  10555. '-m68ec000'
  10556. '-m68hc000'
  10557. '-m68hc001'
  10558. '-m68008'
  10559. '-m68302'
  10560. '-m68306'
  10561. '-m68307'
  10562. '-m68322'
  10563. '-m68356'
  10564. Assemble for the 68000. '-m68008', '-m68302', and so on are
  10565. synonyms for '-m68000', since the chips are the same from the
  10566. point of view of the assembler.
  10567. '-m68010'
  10568. Assemble for the 68010.
  10569. '-m68020'
  10570. '-m68ec020'
  10571. Assemble for the 68020. This is normally the default.
  10572. '-m68030'
  10573. '-m68ec030'
  10574. Assemble for the 68030.
  10575. '-m68040'
  10576. '-m68ec040'
  10577. Assemble for the 68040.
  10578. '-m68060'
  10579. '-m68ec060'
  10580. Assemble for the 68060.
  10581. '-mcpu32'
  10582. '-m68330'
  10583. '-m68331'
  10584. '-m68332'
  10585. '-m68333'
  10586. '-m68334'
  10587. '-m68336'
  10588. '-m68340'
  10589. '-m68341'
  10590. '-m68349'
  10591. '-m68360'
  10592. Assemble for the CPU32 family of chips.
  10593. '-m5200'
  10594. '-m5202'
  10595. '-m5204'
  10596. '-m5206'
  10597. '-m5206e'
  10598. '-m521x'
  10599. '-m5249'
  10600. '-m528x'
  10601. '-m5307'
  10602. '-m5407'
  10603. '-m547x'
  10604. '-m548x'
  10605. '-mcfv4'
  10606. '-mcfv4e'
  10607. Assemble for the ColdFire family of chips.
  10608. '-m68881'
  10609. '-m68882'
  10610. Assemble 68881 floating point instructions. This is the
  10611. default for the 68020, 68030, and the CPU32. The 68040 and
  10612. 68060 always support floating point instructions.
  10613. '-mno-68881'
  10614. Do not assemble 68881 floating point instructions. This is
  10615. the default for 68000 and the 68010. The 68040 and 68060
  10616. always support floating point instructions, even if this
  10617. option is used.
  10618. '-m68851'
  10619. Assemble 68851 MMU instructions. This is the default for the
  10620. 68020, 68030, and 68060. The 68040 accepts a somewhat
  10621. different set of MMU instructions; '-m68851' and '-m68040'
  10622. should not be used together.
  10623. '-mno-68851'
  10624. Do not assemble 68851 MMU instructions. This is the default
  10625. for the 68000, 68010, and the CPU32. The 68040 accepts a
  10626. somewhat different set of MMU instructions.
  10627. 
  10628. File: as.info, Node: M68K-Syntax, Next: M68K-Moto-Syntax, Prev: M68K-Opts, Up: M68K-Dependent
  10629. 9.22.2 Syntax
  10630. -------------
  10631. This syntax for the Motorola 680x0 was developed at MIT.
  10632. The 680x0 version of 'as' uses instructions names and syntax
  10633. compatible with the Sun assembler. Intervening periods are ignored; for
  10634. example, 'movl' is equivalent to 'mov.l'.
  10635. In the following table APC stands for any of the address registers
  10636. ('%a0' through '%a7'), the program counter ('%pc'), the zero-address
  10637. relative to the program counter ('%zpc'), a suppressed address register
  10638. ('%za0' through '%za7'), or it may be omitted entirely. The use of SIZE
  10639. means one of 'w' or 'l', and it may be omitted, along with the leading
  10640. colon, unless a scale is also specified. The use of SCALE means one of
  10641. '1', '2', '4', or '8', and it may always be omitted along with the
  10642. leading colon.
  10643. The following addressing modes are understood:
  10644. "Immediate"
  10645. '#NUMBER'
  10646. "Data Register"
  10647. '%d0' through '%d7'
  10648. "Address Register"
  10649. '%a0' through '%a7'
  10650. '%a7' is also known as '%sp', i.e., the Stack Pointer. '%a6' is
  10651. also known as '%fp', the Frame Pointer.
  10652. "Address Register Indirect"
  10653. '%a0@' through '%a7@'
  10654. "Address Register Postincrement"
  10655. '%a0@+' through '%a7@+'
  10656. "Address Register Predecrement"
  10657. '%a0@-' through '%a7@-'
  10658. "Indirect Plus Offset"
  10659. 'APC@(NUMBER)'
  10660. "Index"
  10661. 'APC@(NUMBER,REGISTER:SIZE:SCALE)'
  10662. The NUMBER may be omitted.
  10663. "Postindex"
  10664. 'APC@(NUMBER)@(ONUMBER,REGISTER:SIZE:SCALE)'
  10665. The ONUMBER or the REGISTER, but not both, may be omitted.
  10666. "Preindex"
  10667. 'APC@(NUMBER,REGISTER:SIZE:SCALE)@(ONUMBER)'
  10668. The NUMBER may be omitted. Omitting the REGISTER produces the
  10669. Postindex addressing mode.
  10670. "Absolute"
  10671. 'SYMBOL', or 'DIGITS', optionally followed by ':b', ':w', or ':l'.
  10672. 
  10673. File: as.info, Node: M68K-Moto-Syntax, Next: M68K-Float, Prev: M68K-Syntax, Up: M68K-Dependent
  10674. 9.22.3 Motorola Syntax
  10675. ----------------------
  10676. The standard Motorola syntax for this chip differs from the syntax
  10677. already discussed (*note Syntax: M68K-Syntax.). 'as' can accept
  10678. Motorola syntax for operands, even if MIT syntax is used for other
  10679. operands in the same instruction. The two kinds of syntax are fully
  10680. compatible.
  10681. In the following table APC stands for any of the address registers
  10682. ('%a0' through '%a7'), the program counter ('%pc'), the zero-address
  10683. relative to the program counter ('%zpc'), or a suppressed address
  10684. register ('%za0' through '%za7'). The use of SIZE means one of 'w' or
  10685. 'l', and it may always be omitted along with the leading dot. The use
  10686. of SCALE means one of '1', '2', '4', or '8', and it may always be
  10687. omitted along with the leading asterisk.
  10688. The following additional addressing modes are understood:
  10689. "Address Register Indirect"
  10690. '(%a0)' through '(%a7)'
  10691. '%a7' is also known as '%sp', i.e., the Stack Pointer. '%a6' is
  10692. also known as '%fp', the Frame Pointer.
  10693. "Address Register Postincrement"
  10694. '(%a0)+' through '(%a7)+'
  10695. "Address Register Predecrement"
  10696. '-(%a0)' through '-(%a7)'
  10697. "Indirect Plus Offset"
  10698. 'NUMBER(%A0)' through 'NUMBER(%A7)', or 'NUMBER(%PC)'.
  10699. The NUMBER may also appear within the parentheses, as in
  10700. '(NUMBER,%A0)'. When used with the PC, the NUMBER may be omitted
  10701. (with an address register, omitting the NUMBER produces Address
  10702. Register Indirect mode).
  10703. "Index"
  10704. 'NUMBER(APC,REGISTER.SIZE*SCALE)'
  10705. The NUMBER may be omitted, or it may appear within the parentheses.
  10706. The APC may be omitted. The REGISTER and the APC may appear in
  10707. either order. If both APC and REGISTER are address registers, and
  10708. the SIZE and SCALE are omitted, then the first register is taken as
  10709. the base register, and the second as the index register.
  10710. "Postindex"
  10711. '([NUMBER,APC],REGISTER.SIZE*SCALE,ONUMBER)'
  10712. The ONUMBER, or the REGISTER, or both, may be omitted. Either the
  10713. NUMBER or the APC may be omitted, but not both.
  10714. "Preindex"
  10715. '([NUMBER,APC,REGISTER.SIZE*SCALE],ONUMBER)'
  10716. The NUMBER, or the APC, or the REGISTER, or any two of them, may be
  10717. omitted. The ONUMBER may be omitted. The REGISTER and the APC may
  10718. appear in either order. If both APC and REGISTER are address
  10719. registers, and the SIZE and SCALE are omitted, then the first
  10720. register is taken as the base register, and the second as the index
  10721. register.
  10722. 
  10723. File: as.info, Node: M68K-Float, Next: M68K-Directives, Prev: M68K-Moto-Syntax, Up: M68K-Dependent
  10724. 9.22.4 Floating Point
  10725. ---------------------
  10726. Packed decimal (P) format floating literals are not supported. Feel
  10727. free to add the code!
  10728. The floating point formats generated by directives are these.
  10729. '.float'
  10730. 'Single' precision floating point constants.
  10731. '.double'
  10732. 'Double' precision floating point constants.
  10733. '.extend'
  10734. '.ldouble'
  10735. 'Extended' precision ('long double') floating point constants.
  10736. 
  10737. File: as.info, Node: M68K-Directives, Next: M68K-opcodes, Prev: M68K-Float, Up: M68K-Dependent
  10738. 9.22.5 680x0 Machine Directives
  10739. -------------------------------
  10740. In order to be compatible with the Sun assembler the 680x0 assembler
  10741. understands the following directives.
  10742. '.data1'
  10743. This directive is identical to a '.data 1' directive.
  10744. '.data2'
  10745. This directive is identical to a '.data 2' directive.
  10746. '.even'
  10747. This directive is a special case of the '.align' directive; it
  10748. aligns the output to an even byte boundary.
  10749. '.skip'
  10750. This directive is identical to a '.space' directive.
  10751. '.arch NAME'
  10752. Select the target architecture and extension features. Valid
  10753. values for NAME are the same as for the '-march' command-line
  10754. option. This directive cannot be specified after any instructions
  10755. have been assembled. If it is given multiple times, or in
  10756. conjunction with the '-march' option, all uses must be for the same
  10757. architecture and extension set.
  10758. '.cpu NAME'
  10759. Select the target cpu. Valid values for NAME are the same as for
  10760. the '-mcpu' command-line option. This directive cannot be
  10761. specified after any instructions have been assembled. If it is
  10762. given multiple times, or in conjunction with the '-mopt' option,
  10763. all uses must be for the same cpu.
  10764. 
  10765. File: as.info, Node: M68K-opcodes, Prev: M68K-Directives, Up: M68K-Dependent
  10766. 9.22.6 Opcodes
  10767. --------------
  10768. * Menu:
  10769. * M68K-Branch:: Branch Improvement
  10770. * M68K-Chars:: Special Characters
  10771. 
  10772. File: as.info, Node: M68K-Branch, Next: M68K-Chars, Up: M68K-opcodes
  10773. 9.22.6.1 Branch Improvement
  10774. ...........................
  10775. Certain pseudo opcodes are permitted for branch instructions. They
  10776. expand to the shortest branch instruction that reach the target.
  10777. Generally these mnemonics are made by substituting 'j' for 'b' at the
  10778. start of a Motorola mnemonic.
  10779. The following table summarizes the pseudo-operations. A '*' flags
  10780. cases that are more fully described after the table:
  10781. Displacement
  10782. +------------------------------------------------------------
  10783. | 68020 68000/10, not PC-relative OK
  10784. Pseudo-Op |BYTE WORD LONG ABSOLUTE LONG JUMP **
  10785. +------------------------------------------------------------
  10786. jbsr |bsrs bsrw bsrl jsr
  10787. jra |bras braw bral jmp
  10788. * jXX |bXXs bXXw bXXl bNXs;jmp
  10789. * dbXX | N/A dbXXw dbXX;bras;bral dbXX;bras;jmp
  10790. fjXX | N/A fbXXw fbXXl N/A
  10791. XX: condition
  10792. NX: negative of condition XX
  10793. '*'--see full description below
  10794. '**'--this expansion mode is disallowed by '--pcrel'
  10795. 'jbsr'
  10796. 'jra'
  10797. These are the simplest jump pseudo-operations; they always map to
  10798. one particular machine instruction, depending on the displacement
  10799. to the branch target. This instruction will be a byte or word
  10800. branch is that is sufficient. Otherwise, a long branch will be
  10801. emitted if available. If no long branches are available and the
  10802. '--pcrel' option is not given, an absolute long jump will be
  10803. emitted instead. If no long branches are available, the '--pcrel'
  10804. option is given, and a word branch cannot reach the target, an
  10805. error message is generated.
  10806. In addition to standard branch operands, 'as' allows these
  10807. pseudo-operations to have all operands that are allowed for jsr and
  10808. jmp, substituting these instructions if the operand given is not
  10809. valid for a branch instruction.
  10810. 'jXX'
  10811. Here, 'jXX' stands for an entire family of pseudo-operations, where
  10812. XX is a conditional branch or condition-code test. The full list
  10813. of pseudo-ops in this family is:
  10814. jhi jls jcc jcs jne jeq jvc
  10815. jvs jpl jmi jge jlt jgt jle
  10816. Usually, each of these pseudo-operations expands to a single branch
  10817. instruction. However, if a word branch is not sufficient, no long
  10818. branches are available, and the '--pcrel' option is not given, 'as'
  10819. issues a longer code fragment in terms of NX, the opposite
  10820. condition to XX. For example, under these conditions:
  10821. jXX foo
  10822. gives
  10823. bNXs oof
  10824. jmp foo
  10825. oof:
  10826. 'dbXX'
  10827. The full family of pseudo-operations covered here is
  10828. dbhi dbls dbcc dbcs dbne dbeq dbvc
  10829. dbvs dbpl dbmi dbge dblt dbgt dble
  10830. dbf dbra dbt
  10831. Motorola 'dbXX' instructions allow word displacements only. When a
  10832. word displacement is sufficient, each of these pseudo-operations
  10833. expands to the corresponding Motorola instruction. When a word
  10834. displacement is not sufficient and long branches are available,
  10835. when the source reads 'dbXX foo', 'as' emits
  10836. dbXX oo1
  10837. bras oo2
  10838. oo1:bral foo
  10839. oo2:
  10840. If, however, long branches are not available and the '--pcrel'
  10841. option is not given, 'as' emits
  10842. dbXX oo1
  10843. bras oo2
  10844. oo1:jmp foo
  10845. oo2:
  10846. 'fjXX'
  10847. This family includes
  10848. fjne fjeq fjge fjlt fjgt fjle fjf
  10849. fjt fjgl fjgle fjnge fjngl fjngle fjngt
  10850. fjnle fjnlt fjoge fjogl fjogt fjole fjolt
  10851. fjor fjseq fjsf fjsne fjst fjueq fjuge
  10852. fjugt fjule fjult fjun
  10853. Each of these pseudo-operations always expands to a single Motorola
  10854. coprocessor branch instruction, word or long. All Motorola
  10855. coprocessor branch instructions allow both word and long
  10856. displacements.
  10857. 
  10858. File: as.info, Node: M68K-Chars, Prev: M68K-Branch, Up: M68K-opcodes
  10859. 9.22.6.2 Special Characters
  10860. ...........................
  10861. Line comments are introduced by the '|' character appearing anywhere on
  10862. a line, unless the '--bitwise-or' command-line option has been
  10863. specified.
  10864. An asterisk ('*') as the first character on a line marks the start of
  10865. a line comment as well.
  10866. A hash character ('#') as the first character on a line also marks
  10867. the start of a line comment, but in this case it could also be a logical
  10868. line number directive (*note Comments::) or a preprocessor control
  10869. command (*note Preprocessing::). If the hash character appears
  10870. elsewhere on a line it is used to introduce an immediate value. (This
  10871. is for compatibility with Sun's assembler).
  10872. Multiple statements on the same line can appear if they are separated
  10873. by the ';' character.
  10874. 
  10875. File: as.info, Node: M68HC11-Dependent, Next: S12Z-Dependent, Prev: M68K-Dependent, Up: Machine Dependencies
  10876. 9.23 M68HC11 and M68HC12 Dependent Features
  10877. ===========================================
  10878. * Menu:
  10879. * M68HC11-Opts:: M68HC11 and M68HC12 Options
  10880. * M68HC11-Syntax:: Syntax
  10881. * M68HC11-Modifiers:: Symbolic Operand Modifiers
  10882. * M68HC11-Directives:: Assembler Directives
  10883. * M68HC11-Float:: Floating Point
  10884. * M68HC11-opcodes:: Opcodes
  10885. 
  10886. File: as.info, Node: M68HC11-Opts, Next: M68HC11-Syntax, Up: M68HC11-Dependent
  10887. 9.23.1 M68HC11 and M68HC12 Options
  10888. ----------------------------------
  10889. The Motorola 68HC11 and 68HC12 version of 'as' have a few machine
  10890. dependent options.
  10891. '-m68hc11'
  10892. This option switches the assembler into the M68HC11 mode. In this
  10893. mode, the assembler only accepts 68HC11 operands and mnemonics. It
  10894. produces code for the 68HC11.
  10895. '-m68hc12'
  10896. This option switches the assembler into the M68HC12 mode. In this
  10897. mode, the assembler also accepts 68HC12 operands and mnemonics. It
  10898. produces code for the 68HC12. A few 68HC11 instructions are
  10899. replaced by some 68HC12 instructions as recommended by Motorola
  10900. specifications.
  10901. '-m68hcs12'
  10902. This option switches the assembler into the M68HCS12 mode. This
  10903. mode is similar to '-m68hc12' but specifies to assemble for the
  10904. 68HCS12 series. The only difference is on the assembling of the
  10905. 'movb' and 'movw' instruction when a PC-relative operand is used.
  10906. '-mm9s12x'
  10907. This option switches the assembler into the M9S12X mode. This mode
  10908. is similar to '-m68hc12' but specifies to assemble for the S12X
  10909. series which is a superset of the HCS12.
  10910. '-mm9s12xg'
  10911. This option switches the assembler into the XGATE mode for the RISC
  10912. co-processor featured on some S12X-family chips.
  10913. '--xgate-ramoffset'
  10914. This option instructs the linker to offset RAM addresses from S12X
  10915. address space into XGATE address space.
  10916. '-mshort'
  10917. This option controls the ABI and indicates to use a 16-bit integer
  10918. ABI. It has no effect on the assembled instructions. This is the
  10919. default.
  10920. '-mlong'
  10921. This option controls the ABI and indicates to use a 32-bit integer
  10922. ABI.
  10923. '-mshort-double'
  10924. This option controls the ABI and indicates to use a 32-bit float
  10925. ABI. This is the default.
  10926. '-mlong-double'
  10927. This option controls the ABI and indicates to use a 64-bit float
  10928. ABI.
  10929. '--strict-direct-mode'
  10930. You can use the '--strict-direct-mode' option to disable the
  10931. automatic translation of direct page mode addressing into extended
  10932. mode when the instruction does not support direct mode. For
  10933. example, the 'clr' instruction does not support direct page mode
  10934. addressing. When it is used with the direct page mode, 'as' will
  10935. ignore it and generate an absolute addressing. This option
  10936. prevents 'as' from doing this, and the wrong usage of the direct
  10937. page mode will raise an error.
  10938. '--short-branches'
  10939. The '--short-branches' option turns off the translation of relative
  10940. branches into absolute branches when the branch offset is out of
  10941. range. By default 'as' transforms the relative branch ('bsr',
  10942. 'bgt', 'bge', 'beq', 'bne', 'ble', 'blt', 'bhi', 'bcc', 'bls',
  10943. 'bcs', 'bmi', 'bvs', 'bvs', 'bra') into an absolute branch when the
  10944. offset is out of the -128 .. 127 range. In that case, the 'bsr'
  10945. instruction is translated into a 'jsr', the 'bra' instruction is
  10946. translated into a 'jmp' and the conditional branches instructions
  10947. are inverted and followed by a 'jmp'. This option disables these
  10948. translations and 'as' will generate an error if a relative branch
  10949. is out of range. This option does not affect the optimization
  10950. associated to the 'jbra', 'jbsr' and 'jbXX' pseudo opcodes.
  10951. '--force-long-branches'
  10952. The '--force-long-branches' option forces the translation of
  10953. relative branches into absolute branches. This option does not
  10954. affect the optimization associated to the 'jbra', 'jbsr' and 'jbXX'
  10955. pseudo opcodes.
  10956. '--print-insn-syntax'
  10957. You can use the '--print-insn-syntax' option to obtain the syntax
  10958. description of the instruction when an error is detected.
  10959. '--print-opcodes'
  10960. The '--print-opcodes' option prints the list of all the
  10961. instructions with their syntax. The first item of each line
  10962. represents the instruction name and the rest of the line indicates
  10963. the possible operands for that instruction. The list is printed in
  10964. alphabetical order. Once the list is printed 'as' exits.
  10965. '--generate-example'
  10966. The '--generate-example' option is similar to '--print-opcodes' but
  10967. it generates an example for each instruction instead.
  10968. 
  10969. File: as.info, Node: M68HC11-Syntax, Next: M68HC11-Modifiers, Prev: M68HC11-Opts, Up: M68HC11-Dependent
  10970. 9.23.2 Syntax
  10971. -------------
  10972. In the M68HC11 syntax, the instruction name comes first and it may be
  10973. followed by one or several operands (up to three). Operands are
  10974. separated by comma (','). In the normal mode, 'as' will complain if too
  10975. many operands are specified for a given instruction. In the MRI mode
  10976. (turned on with '-M' option), it will treat them as comments. Example:
  10977. inx
  10978. lda #23
  10979. bset 2,x #4
  10980. brclr *bot #8 foo
  10981. The presence of a ';' character or a '!' character anywhere on a line
  10982. indicates the start of a comment that extends to the end of that line.
  10983. A '*' or a '#' character at the start of a line also introduces a
  10984. line comment, but these characters do not work elsewhere on the line.
  10985. If the first character of the line is a '#' then as well as starting a
  10986. comment, the line could also be logical line number directive (*note
  10987. Comments::) or a preprocessor control command (*note Preprocessing::).
  10988. The M68HC11 assembler does not currently support a line separator
  10989. character.
  10990. The following addressing modes are understood for 68HC11 and 68HC12:
  10991. "Immediate"
  10992. '#NUMBER'
  10993. "Address Register"
  10994. 'NUMBER,X', 'NUMBER,Y'
  10995. The NUMBER may be omitted in which case 0 is assumed.
  10996. "Direct Addressing mode"
  10997. '*SYMBOL', or '*DIGITS'
  10998. "Absolute"
  10999. 'SYMBOL', or 'DIGITS'
  11000. The M68HC12 has other more complex addressing modes. All of them are
  11001. supported and they are represented below:
  11002. "Constant Offset Indexed Addressing Mode"
  11003. 'NUMBER,REG'
  11004. The NUMBER may be omitted in which case 0 is assumed. The register
  11005. can be either 'X', 'Y', 'SP' or 'PC'. The assembler will use the
  11006. smaller post-byte definition according to the constant value (5-bit
  11007. constant offset, 9-bit constant offset or 16-bit constant offset).
  11008. If the constant is not known by the assembler it will use the
  11009. 16-bit constant offset post-byte and the value will be resolved at
  11010. link time.
  11011. "Offset Indexed Indirect"
  11012. '[NUMBER,REG]'
  11013. The register can be either 'X', 'Y', 'SP' or 'PC'.
  11014. "Auto Pre-Increment/Pre-Decrement/Post-Increment/Post-Decrement"
  11015. 'NUMBER,-REG' 'NUMBER,+REG' 'NUMBER,REG-' 'NUMBER,REG+'
  11016. The number must be in the range '-8'..'+8' and must not be 0. The
  11017. register can be either 'X', 'Y', 'SP' or 'PC'.
  11018. "Accumulator Offset"
  11019. 'ACC,REG'
  11020. The accumulator register can be either 'A', 'B' or 'D'. The
  11021. register can be either 'X', 'Y', 'SP' or 'PC'.
  11022. "Accumulator D offset indexed-indirect"
  11023. '[D,REG]'
  11024. The register can be either 'X', 'Y', 'SP' or 'PC'.
  11025. For example:
  11026. ldab 1024,sp
  11027. ldd [10,x]
  11028. orab 3,+x
  11029. stab -2,y-
  11030. ldx a,pc
  11031. sty [d,sp]
  11032. 
  11033. File: as.info, Node: M68HC11-Modifiers, Next: M68HC11-Directives, Prev: M68HC11-Syntax, Up: M68HC11-Dependent
  11034. 9.23.3 Symbolic Operand Modifiers
  11035. ---------------------------------
  11036. The assembler supports several modifiers when using symbol addresses in
  11037. 68HC11 and 68HC12 instruction operands. The general syntax is the
  11038. following:
  11039. %modifier(symbol)
  11040. '%addr'
  11041. This modifier indicates to the assembler and linker to use the
  11042. 16-bit physical address corresponding to the symbol. This is
  11043. intended to be used on memory window systems to map a symbol in the
  11044. memory bank window. If the symbol is in a memory expansion part,
  11045. the physical address corresponds to the symbol address within the
  11046. memory bank window. If the symbol is not in a memory expansion
  11047. part, this is the symbol address (using or not using the %addr
  11048. modifier has no effect in that case).
  11049. '%page'
  11050. This modifier indicates to use the memory page number corresponding
  11051. to the symbol. If the symbol is in a memory expansion part, its
  11052. page number is computed by the linker as a number used to map the
  11053. page containing the symbol in the memory bank window. If the
  11054. symbol is not in a memory expansion part, the page number is 0.
  11055. '%hi'
  11056. This modifier indicates to use the 8-bit high part of the physical
  11057. address of the symbol.
  11058. '%lo'
  11059. This modifier indicates to use the 8-bit low part of the physical
  11060. address of the symbol.
  11061. For example a 68HC12 call to a function 'foo_example' stored in
  11062. memory expansion part could be written as follows:
  11063. call %addr(foo_example),%page(foo_example)
  11064. and this is equivalent to
  11065. call foo_example
  11066. And for 68HC11 it could be written as follows:
  11067. ldab #%page(foo_example)
  11068. stab _page_switch
  11069. jsr %addr(foo_example)
  11070. 
  11071. File: as.info, Node: M68HC11-Directives, Next: M68HC11-Float, Prev: M68HC11-Modifiers, Up: M68HC11-Dependent
  11072. 9.23.4 Assembler Directives
  11073. ---------------------------
  11074. The 68HC11 and 68HC12 version of 'as' have the following specific
  11075. assembler directives:
  11076. '.relax'
  11077. The relax directive is used by the 'GNU Compiler' to emit a
  11078. specific relocation to mark a group of instructions for linker
  11079. relaxation. The sequence of instructions within the group must be
  11080. known to the linker so that relaxation can be performed.
  11081. '.mode [mshort|mlong|mshort-double|mlong-double]'
  11082. This directive specifies the ABI. It overrides the '-mshort',
  11083. '-mlong', '-mshort-double' and '-mlong-double' options.
  11084. '.far SYMBOL'
  11085. This directive marks the symbol as a 'far' symbol meaning that it
  11086. uses a 'call/rtc' calling convention as opposed to 'jsr/rts'.
  11087. During a final link, the linker will identify references to the
  11088. 'far' symbol and will verify the proper calling convention.
  11089. '.interrupt SYMBOL'
  11090. This directive marks the symbol as an interrupt entry point. This
  11091. information is then used by the debugger to correctly unwind the
  11092. frame across interrupts.
  11093. '.xrefb SYMBOL'
  11094. This directive is defined for compatibility with the 'Specification
  11095. for Motorola 8 and 16-Bit Assembly Language Input Standard' and is
  11096. ignored.
  11097. 
  11098. File: as.info, Node: M68HC11-Float, Next: M68HC11-opcodes, Prev: M68HC11-Directives, Up: M68HC11-Dependent
  11099. 9.23.5 Floating Point
  11100. ---------------------
  11101. Packed decimal (P) format floating literals are not supported. Feel
  11102. free to add the code!
  11103. The floating point formats generated by directives are these.
  11104. '.float'
  11105. 'Single' precision floating point constants.
  11106. '.double'
  11107. 'Double' precision floating point constants.
  11108. '.extend'
  11109. '.ldouble'
  11110. 'Extended' precision ('long double') floating point constants.
  11111. 
  11112. File: as.info, Node: M68HC11-opcodes, Prev: M68HC11-Float, Up: M68HC11-Dependent
  11113. 9.23.6 Opcodes
  11114. --------------
  11115. * Menu:
  11116. * M68HC11-Branch:: Branch Improvement
  11117. 
  11118. File: as.info, Node: M68HC11-Branch, Up: M68HC11-opcodes
  11119. 9.23.6.1 Branch Improvement
  11120. ...........................
  11121. Certain pseudo opcodes are permitted for branch instructions. They
  11122. expand to the shortest branch instruction that reach the target.
  11123. Generally these mnemonics are made by prepending 'j' to the start of
  11124. Motorola mnemonic. These pseudo opcodes are not affected by the
  11125. '--short-branches' or '--force-long-branches' options.
  11126. The following table summarizes the pseudo-operations.
  11127. Displacement Width
  11128. +-------------------------------------------------------------+
  11129. | Options |
  11130. | --short-branches --force-long-branches |
  11131. +--------------------------+----------------------------------+
  11132. Op |BYTE WORD | BYTE WORD |
  11133. +--------------------------+----------------------------------+
  11134. bsr | bsr <pc-rel> <error> | jsr <abs> |
  11135. bra | bra <pc-rel> <error> | jmp <abs> |
  11136. jbsr | bsr <pc-rel> jsr <abs> | bsr <pc-rel> jsr <abs> |
  11137. jbra | bra <pc-rel> jmp <abs> | bra <pc-rel> jmp <abs> |
  11138. bXX | bXX <pc-rel> <error> | bNX +3; jmp <abs> |
  11139. jbXX | bXX <pc-rel> bNX +3; | bXX <pc-rel> bNX +3; jmp <abs> |
  11140. | jmp <abs> | |
  11141. +--------------------------+----------------------------------+
  11142. XX: condition
  11143. NX: negative of condition XX
  11144. 'jbsr'
  11145. 'jbra'
  11146. These are the simplest jump pseudo-operations; they always map to
  11147. one particular machine instruction, depending on the displacement
  11148. to the branch target.
  11149. 'jbXX'
  11150. Here, 'jbXX' stands for an entire family of pseudo-operations,
  11151. where XX is a conditional branch or condition-code test. The full
  11152. list of pseudo-ops in this family is:
  11153. jbcc jbeq jbge jbgt jbhi jbvs jbpl jblo
  11154. jbcs jbne jblt jble jbls jbvc jbmi
  11155. For the cases of non-PC relative displacements and long
  11156. displacements, 'as' issues a longer code fragment in terms of NX,
  11157. the opposite condition to XX. For example, for the non-PC relative
  11158. case:
  11159. jbXX foo
  11160. gives
  11161. bNXs oof
  11162. jmp foo
  11163. oof:
  11164. 
  11165. File: as.info, Node: S12Z-Dependent, Next: Meta-Dependent, Prev: M68HC11-Dependent, Up: Machine Dependencies
  11166. 9.24 S12Z Dependent Features
  11167. ============================
  11168. The Freescale S12Z version of 'as' has a few machine dependent features.
  11169. * Menu:
  11170. * S12Z Options:: S12Z Options
  11171. * S12Z Syntax:: Syntax
  11172. 
  11173. File: as.info, Node: S12Z Options, Next: S12Z Syntax, Up: S12Z-Dependent
  11174. 9.24.1 S12Z Options
  11175. -------------------
  11176. The S12Z version of 'as' recognizes the following options:
  11177. '-mreg-prefix=PREFIX'
  11178. You can use the '-mreg-prefix=PFX' option to indicate that the
  11179. assembler should expect all register names to be prefixed with the
  11180. string PFX.
  11181. For an explanation of what this means and why it might be needed,
  11182. see *note S12Z Register Notation::.
  11183. '-mdollar-hex'
  11184. The '-mdollar-hex' option affects the way that literal hexadecimal
  11185. constants are represented. When this option is specified, the
  11186. assembler will consider the '$' character as the start of a
  11187. hexadecimal integer constant. Without this option, the standard
  11188. value of '0x' is expected.
  11189. If you use this option, then you cannot have symbol names starting
  11190. with '$'. '-mdollar-hex' is implied if the '--traditional-format'
  11191. (*note traditional-format::) is used.
  11192. 
  11193. File: as.info, Node: S12Z Syntax, Prev: S12Z Options, Up: S12Z-Dependent
  11194. 9.24.2 Syntax
  11195. -------------
  11196. * Menu:
  11197. * S12Z Syntax Overview:: General description
  11198. * S12Z Addressing Modes:: Operands and their semantics
  11199. * S12Z Register Notation:: How to refer to registers
  11200. 
  11201. File: as.info, Node: S12Z Syntax Overview, Next: S12Z Addressing Modes, Up: S12Z Syntax
  11202. 9.24.2.1 Overview
  11203. .................
  11204. In the S12Z syntax, the instruction name comes first and it may be
  11205. followed by one, or by several operands. In most cases the maximum
  11206. number of operands is three. Operands are separated by a comma (',').
  11207. A comma however does not act as a separator if it appears within
  11208. parentheses ('()') or within square brackets ('[]'). 'as' will complain
  11209. if too many, too few or inappropriate operands are specified for a given
  11210. instruction.
  11211. Some instructions accept and (in certain situations require) a suffix
  11212. indicating the size of the operand. The suffix is separated from the
  11213. instruction name by a period ('.') and may be one of 'b', 'w', 'p' or
  11214. 'l' indicating 'byte' (a single byte), 'word' (2 bytes), 'pointer' (3
  11215. bytes) or 'long' (4 bytes) respectively.
  11216. Example:
  11217. bset.b 0xA98, #5
  11218. mov.b #6, 0x2409
  11219. ld d0, #4
  11220. mov.l (d0, x), 0x2409
  11221. inc d0
  11222. cmp d0, #12
  11223. blt *-4
  11224. lea x, 0x2409
  11225. st y, (1, x)
  11226. The presence of a ';' character anywhere on a line indicates the
  11227. start of a comment that extends to the end of that line.
  11228. A '*' or a '#' character at the start of a line also introduces a
  11229. line comment, but these characters do not work elsewhere on the line.
  11230. If the first character of the line is a '#' then as well as starting a
  11231. comment, the line could also be logical line number directive (*note
  11232. Comments::) or a preprocessor control command (*note Preprocessing::).
  11233. The S12Z assembler does not currently support a line separator
  11234. character.
  11235. 
  11236. File: as.info, Node: S12Z Addressing Modes, Next: S12Z Register Notation, Prev: S12Z Syntax Overview, Up: S12Z Syntax
  11237. 9.24.2.2 Addressing Modes
  11238. .........................
  11239. The following addressing modes are understood for the S12Z.
  11240. "Immediate"
  11241. '#NUMBER'
  11242. "Immediate Bit Field"
  11243. '#WIDTH:OFFSET'
  11244. Bit field instructions in the immediate mode require the width and
  11245. offset to be specified. The WIDTH parameter specifies the number
  11246. of bits in the field. It should be a number in the range [1,32].
  11247. OFFSET determines the position within the field where the operation
  11248. should start. It should be a number in the range [0,31].
  11249. "Relative"
  11250. '*SYMBOL', or '*[+-]DIGITS'
  11251. Program counter relative addresses have a width of 15 bits. Thus,
  11252. they must be within the range [-32768, 32767].
  11253. "Register"
  11254. 'REG'
  11255. Some instructions accept a register as an operand. In general, REG
  11256. may be a data register ('D0', 'D1' ... 'D7'), the 'X' register or
  11257. the 'Y' register.
  11258. A few instructions accept as an argument the stack pointer register
  11259. ('S'), and/or the program counter ('P').
  11260. Some very special instructions accept arguments which refer to the
  11261. condition code register. For these arguments the syntax is 'CCR',
  11262. 'CCH' or 'CCL' which refer to the complete condition code register,
  11263. the condition code register high byte and the condition code
  11264. register low byte respectively.
  11265. "Absolute Direct"
  11266. 'SYMBOL', or 'DIGITS'
  11267. "Absolute Indirect"
  11268. '[SYMBOL', or 'DIGITS]'
  11269. "Constant Offset Indexed"
  11270. '(NUMBER,REG)'
  11271. REG may be either 'X', 'Y', 'S' or 'P' or one of the data registers
  11272. 'D0', 'D1' ... 'D7'. If any of the registers 'D2' ... 'D5' are
  11273. specified, then the register value is treated as a signed value.
  11274. Otherwise it is treated as unsigned. NUMBER may be any integer in
  11275. the range [-8388608,8388607].
  11276. "Offset Indexed Indirect"
  11277. '[NUMBER,REG]'
  11278. REG may be either 'X', 'Y', 'S' or 'P'. NUMBER may be any integer
  11279. in the range [-8388608,8388607].
  11280. "Auto Pre-Increment/Pre-Decrement/Post-Increment/Post-Decrement"
  11281. '-REG', '+REG', 'REG-' or 'REG+'
  11282. This addressing mode is typically used to access a value at an
  11283. address, and simultaneously to increment/decrement the register
  11284. pointing to that address. Thus REG may be any of the 24 bit
  11285. registers 'X', 'Y', or 'S'. Pre-increment and post-decrement are
  11286. not available for register 'S' (only post-increment and
  11287. pre-decrement are available).
  11288. "Register Offset Direct"
  11289. '(DATA-REG,REG)'
  11290. REG can be either 'X', 'Y', or 'S'. DATA-REG must be one of the
  11291. data registers 'D0', 'D1' ... 'D7'. If any of the registers 'D2'
  11292. ... 'D5' are specified, then the register value is treated as a
  11293. signed value. Otherwise it is treated as unsigned.
  11294. "Register Offset Indirect"
  11295. '[DATA-REG,REG]'
  11296. REG can be either 'X' or 'Y'. DATA-REG must be one of the data
  11297. registers 'D0', 'D1' ... 'D7'. If any of the registers 'D2' ...
  11298. 'D5' are specified, then the register value is treated as a signed
  11299. value. Otherwise it is treated as unsigned.
  11300. For example:
  11301. trap #197 ;; Immediate mode
  11302. bra *+49 ;; Relative mode
  11303. bra .L0 ;; ditto
  11304. jmp 0xFE0034 ;; Absolute direct mode
  11305. jmp [0xFD0012] ;; Absolute indirect mode
  11306. inc.b (4,x) ;; Constant offset indexed mode
  11307. jsr (45, d0) ;; ditto
  11308. dec.w [4,y] ;; Constant offset indexed indirect mode
  11309. clr.p (-s) ;; Pre-decrement mode
  11310. neg.l (d0, s) ;; Register offset direct mode
  11311. com.b [d1, x] ;; Register offset indirect mode
  11312. psh cch ;; Register mode
  11313. 
  11314. File: as.info, Node: S12Z Register Notation, Prev: S12Z Addressing Modes, Up: S12Z Syntax
  11315. 9.24.2.3 Register Notation
  11316. ..........................
  11317. Without a register prefix (*note S12Z Options::), S12Z assembler code is
  11318. expected in the traditional format like this:
  11319. lea s, (-2,s)
  11320. st d2, (0,s)
  11321. ld x, symbol
  11322. tfr d2, d6
  11323. cmp d6, #1532
  11324. However, if 'as' is started with (for example) '-mreg-prefix=%' then all
  11325. register names must be prefixed with '%' as follows:
  11326. lea %s, (-2,%s)
  11327. st %d2, (0,%s)
  11328. ld %x, symbol
  11329. tfr %d2, %d6
  11330. cmp %d6, #1532
  11331. The register prefix feature is intended to be used by compilers to
  11332. avoid ambiguity between symbols and register names. Consider the
  11333. following assembler instruction:
  11334. st d0, d1
  11335. The destination operand of this instruction could either refer to the
  11336. register 'D1', or it could refer to the symbol named "d1". If the
  11337. latter is intended then 'as' must be invoked with '-mreg-prefix=PFX' and
  11338. the code written as
  11339. st PFXd0, d1
  11340. where PFX is the chosen register prefix. For this reason, compiler
  11341. back-ends should choose a register prefix which cannot be confused with
  11342. a symbol name.
  11343. 
  11344. File: as.info, Node: Meta-Dependent, Next: MicroBlaze-Dependent, Prev: S12Z-Dependent, Up: Machine Dependencies
  11345. 9.25 Meta Dependent Features
  11346. ============================
  11347. * Menu:
  11348. * Meta Options:: Options
  11349. * Meta Syntax:: Meta Assembler Syntax
  11350. 
  11351. File: as.info, Node: Meta Options, Next: Meta Syntax, Up: Meta-Dependent
  11352. 9.25.1 Options
  11353. --------------
  11354. The Imagination Technologies Meta architecture is implemented in a
  11355. number of versions, with each new version adding new features such as
  11356. instructions and registers. For precise details of what instructions
  11357. each core supports, please see the chip's technical reference manual.
  11358. The following table lists all available Meta options.
  11359. '-mcpu=metac11'
  11360. Generate code for Meta 1.1.
  11361. '-mcpu=metac12'
  11362. Generate code for Meta 1.2.
  11363. '-mcpu=metac21'
  11364. Generate code for Meta 2.1.
  11365. '-mfpu=metac21'
  11366. Allow code to use FPU hardware of Meta 2.1.
  11367. 
  11368. File: as.info, Node: Meta Syntax, Prev: Meta Options, Up: Meta-Dependent
  11369. 9.25.2 Syntax
  11370. -------------
  11371. * Menu:
  11372. * Meta-Chars:: Special Characters
  11373. * Meta-Regs:: Register Names
  11374. 
  11375. File: as.info, Node: Meta-Chars, Next: Meta-Regs, Up: Meta Syntax
  11376. 9.25.2.1 Special Characters
  11377. ...........................
  11378. '!' is the line comment character.
  11379. You can use ';' instead of a newline to separate statements.
  11380. Since '$' has no special meaning, you may use it in symbol names.
  11381. 
  11382. File: as.info, Node: Meta-Regs, Prev: Meta-Chars, Up: Meta Syntax
  11383. 9.25.2.2 Register Names
  11384. .......................
  11385. Registers can be specified either using their mnemonic names, such as
  11386. 'D0Re0', or using the unit plus register number separated by a '.', such
  11387. as 'D0.0'.
  11388. 
  11389. File: as.info, Node: MicroBlaze-Dependent, Next: MIPS-Dependent, Prev: Meta-Dependent, Up: Machine Dependencies
  11390. 9.26 MicroBlaze Dependent Features
  11391. ==================================
  11392. The Xilinx MicroBlaze processor family includes several variants, all
  11393. using the same core instruction set. This chapter covers features of
  11394. the GNU assembler that are specific to the MicroBlaze architecture. For
  11395. details about the MicroBlaze instruction set, please see the 'MicroBlaze
  11396. Processor Reference Guide (UG081)' available at www.xilinx.com.
  11397. * Menu:
  11398. * MicroBlaze Directives:: Directives for MicroBlaze Processors.
  11399. * MicroBlaze Syntax:: Syntax for the MicroBlaze
  11400. 
  11401. File: as.info, Node: MicroBlaze Directives, Next: MicroBlaze Syntax, Up: MicroBlaze-Dependent
  11402. 9.26.1 Directives
  11403. -----------------
  11404. A number of assembler directives are available for MicroBlaze.
  11405. '.data8 EXPRESSION,...'
  11406. This directive is an alias for '.byte'. Each expression is
  11407. assembled into an eight-bit value.
  11408. '.data16 EXPRESSION,...'
  11409. This directive is an alias for '.hword'. Each expression is
  11410. assembled into an 16-bit value.
  11411. '.data32 EXPRESSION,...'
  11412. This directive is an alias for '.word'. Each expression is
  11413. assembled into an 32-bit value.
  11414. '.ent NAME[,LABEL]'
  11415. This directive is an alias for '.func' denoting the start of
  11416. function NAME at (optional) LABEL.
  11417. '.end NAME[,LABEL]'
  11418. This directive is an alias for '.endfunc' denoting the end of
  11419. function NAME.
  11420. '.gpword LABEL,...'
  11421. This directive is an alias for '.rva'. The resolved address of
  11422. LABEL is stored in the data section.
  11423. '.weakext LABEL'
  11424. Declare that LABEL is a weak external symbol.
  11425. '.rodata'
  11426. Switch to .rodata section. Equivalent to '.section .rodata'
  11427. '.sdata2'
  11428. Switch to .sdata2 section. Equivalent to '.section .sdata2'
  11429. '.sdata'
  11430. Switch to .sdata section. Equivalent to '.section .sdata'
  11431. '.bss'
  11432. Switch to .bss section. Equivalent to '.section .bss'
  11433. '.sbss'
  11434. Switch to .sbss section. Equivalent to '.section .sbss'
  11435. 
  11436. File: as.info, Node: MicroBlaze Syntax, Prev: MicroBlaze Directives, Up: MicroBlaze-Dependent
  11437. 9.26.2 Syntax for the MicroBlaze
  11438. --------------------------------
  11439. * Menu:
  11440. * MicroBlaze-Chars:: Special Characters
  11441. 
  11442. File: as.info, Node: MicroBlaze-Chars, Up: MicroBlaze Syntax
  11443. 9.26.2.1 Special Characters
  11444. ...........................
  11445. The presence of a '#' on a line indicates the start of a comment that
  11446. extends to the end of the current line.
  11447. If a '#' appears as the first character of a line, the whole line is
  11448. treated as a comment, but in this case the line can also be a logical
  11449. line number directive (*note Comments::) or a preprocessor control
  11450. command (*note Preprocessing::).
  11451. The ';' character can be used to separate statements on the same
  11452. line.
  11453. 
  11454. File: as.info, Node: MIPS-Dependent, Next: MMIX-Dependent, Prev: MicroBlaze-Dependent, Up: Machine Dependencies
  11455. 9.27 MIPS Dependent Features
  11456. ============================
  11457. GNU 'as' for MIPS architectures supports several different MIPS
  11458. processors, and MIPS ISA levels I through V, MIPS32, and MIPS64. For
  11459. information about the MIPS instruction set, see 'MIPS RISC
  11460. Architecture', by Kane and Heindrich (Prentice-Hall). For an overview
  11461. of MIPS assembly conventions, see "Appendix D: Assembly Language
  11462. Programming" in the same work.
  11463. * Menu:
  11464. * MIPS Options:: Assembler options
  11465. * MIPS Macros:: High-level assembly macros
  11466. * MIPS Symbol Sizes:: Directives to override the size of symbols
  11467. * MIPS Small Data:: Controlling the use of small data accesses
  11468. * MIPS ISA:: Directives to override the ISA level
  11469. * MIPS assembly options:: Directives to control code generation
  11470. * MIPS autoextend:: Directives for extending MIPS 16 bit instructions
  11471. * MIPS insn:: Directive to mark data as an instruction
  11472. * MIPS FP ABIs:: Marking which FP ABI is in use
  11473. * MIPS NaN Encodings:: Directives to record which NaN encoding is being used
  11474. * MIPS Option Stack:: Directives to save and restore options
  11475. * MIPS ASE Instruction Generation Overrides:: Directives to control
  11476. generation of MIPS ASE instructions
  11477. * MIPS Floating-Point:: Directives to override floating-point options
  11478. * MIPS Syntax:: MIPS specific syntactical considerations
  11479. 
  11480. File: as.info, Node: MIPS Options, Next: MIPS Macros, Up: MIPS-Dependent
  11481. 9.27.1 Assembler options
  11482. ------------------------
  11483. The MIPS configurations of GNU 'as' support these special options:
  11484. '-G NUM'
  11485. Set the "small data" limit to N bytes. The default limit is 8
  11486. bytes. *Note Controlling the use of small data accesses: MIPS
  11487. Small Data.
  11488. '-EB'
  11489. '-EL'
  11490. Any MIPS configuration of 'as' can select big-endian or
  11491. little-endian output at run time (unlike the other GNU development
  11492. tools, which must be configured for one or the other). Use '-EB'
  11493. to select big-endian output, and '-EL' for little-endian.
  11494. '-KPIC'
  11495. Generate SVR4-style PIC. This option tells the assembler to
  11496. generate SVR4-style position-independent macro expansions. It also
  11497. tells the assembler to mark the output file as PIC.
  11498. '-mvxworks-pic'
  11499. Generate VxWorks PIC. This option tells the assembler to generate
  11500. VxWorks-style position-independent macro expansions.
  11501. '-mips1'
  11502. '-mips2'
  11503. '-mips3'
  11504. '-mips4'
  11505. '-mips5'
  11506. '-mips32'
  11507. '-mips32r2'
  11508. '-mips32r3'
  11509. '-mips32r5'
  11510. '-mips32r6'
  11511. '-mips64'
  11512. '-mips64r2'
  11513. '-mips64r3'
  11514. '-mips64r5'
  11515. '-mips64r6'
  11516. Generate code for a particular MIPS Instruction Set Architecture
  11517. level. '-mips1' corresponds to the R2000 and R3000 processors,
  11518. '-mips2' to the R6000 processor, '-mips3' to the R4000 processor,
  11519. and '-mips4' to the R8000 and R10000 processors. '-mips5',
  11520. '-mips32', '-mips32r2', '-mips32r3', '-mips32r5', '-mips32r6',
  11521. '-mips64', '-mips64r2', '-mips64r3', '-mips64r5', and '-mips64r6'
  11522. correspond to generic MIPS V, MIPS32, MIPS32 Release 2, MIPS32
  11523. Release 3, MIPS32 Release 5, MIPS32 Release 6, MIPS64, and MIPS64
  11524. Release 2, MIPS64 Release 3, MIPS64 Release 5, and MIPS64 Release 6
  11525. ISA processors, respectively. You can also switch instruction sets
  11526. during the assembly; see *note Directives to override the ISA
  11527. level: MIPS ISA.
  11528. '-mgp32'
  11529. '-mfp32'
  11530. Some macros have different expansions for 32-bit and 64-bit
  11531. registers. The register sizes are normally inferred from the ISA
  11532. and ABI, but these flags force a certain group of registers to be
  11533. treated as 32 bits wide at all times. '-mgp32' controls the size
  11534. of general-purpose registers and '-mfp32' controls the size of
  11535. floating-point registers.
  11536. The '.set gp=32' and '.set fp=32' directives allow the size of
  11537. registers to be changed for parts of an object. The default value
  11538. is restored by '.set gp=default' and '.set fp=default'.
  11539. On some MIPS variants there is a 32-bit mode flag; when this flag
  11540. is set, 64-bit instructions generate a trap. Also, some 32-bit
  11541. OSes only save the 32-bit registers on a context switch, so it is
  11542. essential never to use the 64-bit registers.
  11543. '-mgp64'
  11544. '-mfp64'
  11545. Assume that 64-bit registers are available. This is provided in
  11546. the interests of symmetry with '-mgp32' and '-mfp32'.
  11547. The '.set gp=64' and '.set fp=64' directives allow the size of
  11548. registers to be changed for parts of an object. The default value
  11549. is restored by '.set gp=default' and '.set fp=default'.
  11550. '-mfpxx'
  11551. Make no assumptions about whether 32-bit or 64-bit floating-point
  11552. registers are available. This is provided to support having
  11553. modules compatible with either '-mfp32' or '-mfp64'. This option
  11554. can only be used with MIPS II and above.
  11555. The '.set fp=xx' directive allows a part of an object to be marked
  11556. as not making assumptions about 32-bit or 64-bit FP registers. The
  11557. default value is restored by '.set fp=default'.
  11558. '-modd-spreg'
  11559. '-mno-odd-spreg'
  11560. Enable use of floating-point operations on odd-numbered
  11561. single-precision registers when supported by the ISA. '-mfpxx'
  11562. implies '-mno-odd-spreg', otherwise the default is '-modd-spreg'
  11563. '-mips16'
  11564. '-no-mips16'
  11565. Generate code for the MIPS 16 processor. This is equivalent to
  11566. putting '.module mips16' at the start of the assembly file.
  11567. '-no-mips16' turns off this option.
  11568. '-mmips16e2'
  11569. '-mno-mips16e2'
  11570. Enable the use of MIPS16e2 instructions in MIPS16 mode. This is
  11571. equivalent to putting '.module mips16e2' at the start of the
  11572. assembly file. '-mno-mips16e2' turns off this option.
  11573. '-mmicromips'
  11574. '-mno-micromips'
  11575. Generate code for the microMIPS processor. This is equivalent to
  11576. putting '.module micromips' at the start of the assembly file.
  11577. '-mno-micromips' turns off this option. This is equivalent to
  11578. putting '.module nomicromips' at the start of the assembly file.
  11579. '-msmartmips'
  11580. '-mno-smartmips'
  11581. Enables the SmartMIPS extensions to the MIPS32 instruction set,
  11582. which provides a number of new instructions which target smartcard
  11583. and cryptographic applications. This is equivalent to putting
  11584. '.module smartmips' at the start of the assembly file.
  11585. '-mno-smartmips' turns off this option.
  11586. '-mips3d'
  11587. '-no-mips3d'
  11588. Generate code for the MIPS-3D Application Specific Extension. This
  11589. tells the assembler to accept MIPS-3D instructions. '-no-mips3d'
  11590. turns off this option.
  11591. '-mdmx'
  11592. '-no-mdmx'
  11593. Generate code for the MDMX Application Specific Extension. This
  11594. tells the assembler to accept MDMX instructions. '-no-mdmx' turns
  11595. off this option.
  11596. '-mdsp'
  11597. '-mno-dsp'
  11598. Generate code for the DSP Release 1 Application Specific Extension.
  11599. This tells the assembler to accept DSP Release 1 instructions.
  11600. '-mno-dsp' turns off this option.
  11601. '-mdspr2'
  11602. '-mno-dspr2'
  11603. Generate code for the DSP Release 2 Application Specific Extension.
  11604. This option implies '-mdsp'. This tells the assembler to accept
  11605. DSP Release 2 instructions. '-mno-dspr2' turns off this option.
  11606. '-mdspr3'
  11607. '-mno-dspr3'
  11608. Generate code for the DSP Release 3 Application Specific Extension.
  11609. This option implies '-mdsp' and '-mdspr2'. This tells the
  11610. assembler to accept DSP Release 3 instructions. '-mno-dspr3' turns
  11611. off this option.
  11612. '-mmt'
  11613. '-mno-mt'
  11614. Generate code for the MT Application Specific Extension. This
  11615. tells the assembler to accept MT instructions. '-mno-mt' turns off
  11616. this option.
  11617. '-mmcu'
  11618. '-mno-mcu'
  11619. Generate code for the MCU Application Specific Extension. This
  11620. tells the assembler to accept MCU instructions. '-mno-mcu' turns
  11621. off this option.
  11622. '-mmsa'
  11623. '-mno-msa'
  11624. Generate code for the MIPS SIMD Architecture Extension. This tells
  11625. the assembler to accept MSA instructions. '-mno-msa' turns off
  11626. this option.
  11627. '-mxpa'
  11628. '-mno-xpa'
  11629. Generate code for the MIPS eXtended Physical Address (XPA)
  11630. Extension. This tells the assembler to accept XPA instructions.
  11631. '-mno-xpa' turns off this option.
  11632. '-mvirt'
  11633. '-mno-virt'
  11634. Generate code for the Virtualization Application Specific
  11635. Extension. This tells the assembler to accept Virtualization
  11636. instructions. '-mno-virt' turns off this option.
  11637. '-mcrc'
  11638. '-mno-crc'
  11639. Generate code for the cyclic redundancy check (CRC) Application
  11640. Specific Extension. This tells the assembler to accept CRC
  11641. instructions. '-mno-crc' turns off this option.
  11642. '-mginv'
  11643. '-mno-ginv'
  11644. Generate code for the Global INValidate (GINV) Application Specific
  11645. Extension. This tells the assembler to accept GINV instructions.
  11646. '-mno-ginv' turns off this option.
  11647. '-mloongson-mmi'
  11648. '-mno-loongson-mmi'
  11649. Generate code for the Loongson MultiMedia extensions Instructions
  11650. (MMI) Application Specific Extension. This tells the assembler to
  11651. accept MMI instructions. '-mno-loongson-mmi' turns off this
  11652. option.
  11653. '-mloongson-cam'
  11654. '-mno-loongson-cam'
  11655. Generate code for the Loongson Content Address Memory (CAM)
  11656. Application Specific Extension. This tells the assembler to accept
  11657. CAM instructions. '-mno-loongson-cam' turns off this option.
  11658. '-mloongson-ext'
  11659. '-mno-loongson-ext'
  11660. Generate code for the Loongson EXTensions (EXT) instructions
  11661. Application Specific Extension. This tells the assembler to accept
  11662. EXT instructions. '-mno-loongson-ext' turns off this option.
  11663. '-mloongson-ext2'
  11664. '-mno-loongson-ext2'
  11665. Generate code for the Loongson EXTensions R2 (EXT2) instructions
  11666. Application Specific Extension. This tells the assembler to accept
  11667. EXT2 instructions. '-mno-loongson-ext2' turns off this option.
  11668. '-minsn32'
  11669. '-mno-insn32'
  11670. Only use 32-bit instruction encodings when generating code for the
  11671. microMIPS processor. This option inhibits the use of any 16-bit
  11672. instructions. This is equivalent to putting '.set insn32' at the
  11673. start of the assembly file. '-mno-insn32' turns off this option.
  11674. This is equivalent to putting '.set noinsn32' at the start of the
  11675. assembly file. By default '-mno-insn32' is selected, allowing all
  11676. instructions to be used.
  11677. '-mfix7000'
  11678. '-mno-fix7000'
  11679. Cause nops to be inserted if the read of the destination register
  11680. of an mfhi or mflo instruction occurs in the following two
  11681. instructions.
  11682. '-mfix-rm7000'
  11683. '-mno-fix-rm7000'
  11684. Cause nops to be inserted if a dmult or dmultu instruction is
  11685. followed by a load instruction.
  11686. '-mfix-loongson2f-jump'
  11687. '-mno-fix-loongson2f-jump'
  11688. Eliminate instruction fetch from outside 256M region to work around
  11689. the Loongson2F 'jump' instructions. Without it, under extreme
  11690. cases, the kernel may crash. The issue has been solved in latest
  11691. processor batches, but this fix has no side effect to them.
  11692. '-mfix-loongson2f-nop'
  11693. '-mno-fix-loongson2f-nop'
  11694. Replace nops by 'or at,at,zero' to work around the Loongson2F 'nop'
  11695. errata. Without it, under extreme cases, the CPU might deadlock.
  11696. The issue has been solved in later Loongson2F batches, but this fix
  11697. has no side effect to them.
  11698. '-mfix-loongson3-llsc'
  11699. '-mno-fix-loongson3-llsc'
  11700. Insert 'sync' before 'll' and 'lld' to work around Loongson3 LLSC
  11701. errata. Without it, under extrame cases, the CPU might deadlock.
  11702. The default can be controlled by the
  11703. '--enable-mips-fix-loongson3-llsc=[yes|no]' configure option.
  11704. '-mfix-vr4120'
  11705. '-mno-fix-vr4120'
  11706. Insert nops to work around certain VR4120 errata. This option is
  11707. intended to be used on GCC-generated code: it is not designed to
  11708. catch all problems in hand-written assembler code.
  11709. '-mfix-vr4130'
  11710. '-mno-fix-vr4130'
  11711. Insert nops to work around the VR4130 'mflo'/'mfhi' errata.
  11712. '-mfix-24k'
  11713. '-mno-fix-24k'
  11714. Insert nops to work around the 24K 'eret'/'deret' errata.
  11715. '-mfix-cn63xxp1'
  11716. '-mno-fix-cn63xxp1'
  11717. Replace 'pref' hints 0 - 4 and 6 - 24 with hint 28 to work around
  11718. certain CN63XXP1 errata.
  11719. '-mfix-r5900'
  11720. '-mno-fix-r5900'
  11721. Do not attempt to schedule the preceding instruction into the delay
  11722. slot of a branch instruction placed at the end of a short loop of
  11723. six instructions or fewer and always schedule a 'nop' instruction
  11724. there instead. The short loop bug under certain conditions causes
  11725. loops to execute only once or twice, due to a hardware bug in the
  11726. R5900 chip.
  11727. '-m4010'
  11728. '-no-m4010'
  11729. Generate code for the LSI R4010 chip. This tells the assembler to
  11730. accept the R4010-specific instructions ('addciu', 'ffc', etc.), and
  11731. to not schedule 'nop' instructions around accesses to the 'HI' and
  11732. 'LO' registers. '-no-m4010' turns off this option.
  11733. '-m4650'
  11734. '-no-m4650'
  11735. Generate code for the MIPS R4650 chip. This tells the assembler to
  11736. accept the 'mad' and 'madu' instruction, and to not schedule 'nop'
  11737. instructions around accesses to the 'HI' and 'LO' registers.
  11738. '-no-m4650' turns off this option.
  11739. '-m3900'
  11740. '-no-m3900'
  11741. '-m4100'
  11742. '-no-m4100'
  11743. For each option '-mNNNN', generate code for the MIPS RNNNN chip.
  11744. This tells the assembler to accept instructions specific to that
  11745. chip, and to schedule for that chip's hazards.
  11746. '-march=CPU'
  11747. Generate code for a particular MIPS CPU. It is exactly equivalent
  11748. to '-mCPU', except that there are more value of CPU understood.
  11749. Valid CPU value are:
  11750. 2000, 3000, 3900, 4000, 4010, 4100, 4111, vr4120, vr4130,
  11751. vr4181, 4300, 4400, 4600, 4650, 5000, rm5200, rm5230, rm5231,
  11752. rm5261, rm5721, vr5400, vr5500, 6000, rm7000, 8000, rm9000,
  11753. 10000, 12000, 14000, 16000, 4kc, 4km, 4kp, 4ksc, 4kec, 4kem,
  11754. 4kep, 4ksd, m4k, m4kp, m14k, m14kc, m14ke, m14kec, 24kc,
  11755. 24kf2_1, 24kf, 24kf1_1, 24kec, 24kef2_1, 24kef, 24kef1_1,
  11756. 34kc, 34kf2_1, 34kf, 34kf1_1, 34kn, 74kc, 74kf2_1, 74kf,
  11757. 74kf1_1, 74kf3_2, 1004kc, 1004kf2_1, 1004kf, 1004kf1_1,
  11758. interaptiv, interaptiv-mr2, m5100, m5101, p5600, 5kc, 5kf,
  11759. 20kc, 25kf, sb1, sb1a, i6400, i6500, p6600, loongson2e,
  11760. loongson2f, gs464, gs464e, gs264e, octeon, octeon+, octeon2,
  11761. octeon3, xlr, xlp
  11762. For compatibility reasons, 'Nx' and 'Bfx' are accepted as synonyms
  11763. for 'Nf1_1'. These values are deprecated.
  11764. '-mtune=CPU'
  11765. Schedule and tune for a particular MIPS CPU. Valid CPU values are
  11766. identical to '-march=CPU'.
  11767. '-mabi=ABI'
  11768. Record which ABI the source code uses. The recognized arguments
  11769. are: '32', 'n32', 'o64', '64' and 'eabi'.
  11770. '-msym32'
  11771. '-mno-sym32'
  11772. Equivalent to adding '.set sym32' or '.set nosym32' to the
  11773. beginning of the assembler input. *Note MIPS Symbol Sizes::.
  11774. '-nocpp'
  11775. This option is ignored. It is accepted for command-line
  11776. compatibility with other assemblers, which use it to turn off C
  11777. style preprocessing. With GNU 'as', there is no need for '-nocpp',
  11778. because the GNU assembler itself never runs the C preprocessor.
  11779. '-msoft-float'
  11780. '-mhard-float'
  11781. Disable or enable floating-point instructions. Note that by
  11782. default floating-point instructions are always allowed even with
  11783. CPU targets that don't have support for these instructions.
  11784. '-msingle-float'
  11785. '-mdouble-float'
  11786. Disable or enable double-precision floating-point operations. Note
  11787. that by default double-precision floating-point operations are
  11788. always allowed even with CPU targets that don't have support for
  11789. these operations.
  11790. '--construct-floats'
  11791. '--no-construct-floats'
  11792. The '--no-construct-floats' option disables the construction of
  11793. double width floating point constants by loading the two halves of
  11794. the value into the two single width floating point registers that
  11795. make up the double width register. This feature is useful if the
  11796. processor support the FR bit in its status register, and this bit
  11797. is known (by the programmer) to be set. This bit prevents the
  11798. aliasing of the double width register by the single width
  11799. registers.
  11800. By default '--construct-floats' is selected, allowing construction
  11801. of these floating point constants.
  11802. '--relax-branch'
  11803. '--no-relax-branch'
  11804. The '--relax-branch' option enables the relaxation of out-of-range
  11805. branches. Any branches whose target cannot be reached directly are
  11806. converted to a small instruction sequence including an
  11807. inverse-condition branch to the physically next instruction, and a
  11808. jump to the original target is inserted between the two
  11809. instructions. In PIC code the jump will involve further
  11810. instructions for address calculation.
  11811. The 'BC1ANY2F', 'BC1ANY2T', 'BC1ANY4F', 'BC1ANY4T', 'BPOSGE32' and
  11812. 'BPOSGE64' instructions are excluded from relaxation, because they
  11813. have no complementing counterparts. They could be relaxed with the
  11814. use of a longer sequence involving another branch, however this has
  11815. not been implemented and if their target turns out of reach, they
  11816. produce an error even if branch relaxation is enabled.
  11817. Also no MIPS16 branches are ever relaxed.
  11818. By default '--no-relax-branch' is selected, causing any
  11819. out-of-range branches to produce an error.
  11820. '-mignore-branch-isa'
  11821. '-mno-ignore-branch-isa'
  11822. Ignore branch checks for invalid transitions between ISA modes.
  11823. The semantics of branches does not provide for an ISA mode switch,
  11824. so in most cases the ISA mode a branch has been encoded for has to
  11825. be the same as the ISA mode of the branch's target label. If the
  11826. ISA modes do not match, then such a branch, if taken, will cause
  11827. the ISA mode to remain unchanged and instructions that follow will
  11828. be executed in the wrong ISA mode causing the program to misbehave
  11829. or crash.
  11830. In the case of the 'BAL' instruction it may be possible to relax it
  11831. to an equivalent 'JALX' instruction so that the ISA mode is
  11832. switched at the run time as required. For other branches no
  11833. relaxation is possible and therefore GAS has checks implemented
  11834. that verify in branch assembly that the two ISA modes match, and
  11835. report an error otherwise so that the problem with code can be
  11836. diagnosed at the assembly time rather than at the run time.
  11837. However some assembly code, including generated code produced by
  11838. some versions of GCC, may incorrectly include branches to data
  11839. labels, which appear to require a mode switch but are either dead
  11840. or immediately followed by valid instructions encoded for the same
  11841. ISA the branch has been encoded for. While not strictly correct at
  11842. the source level such code will execute as intended, so to help
  11843. with these cases '-mignore-branch-isa' is supported which disables
  11844. ISA mode checks for branches.
  11845. By default '-mno-ignore-branch-isa' is selected, causing any
  11846. invalid branch requiring a transition between ISA modes to produce
  11847. an error.
  11848. '-mnan=ENCODING'
  11849. This option indicates whether the source code uses the IEEE 2008
  11850. NaN encoding ('-mnan=2008') or the original MIPS encoding
  11851. ('-mnan=legacy'). It is equivalent to adding a '.nan' directive to
  11852. the beginning of the source file. *Note MIPS NaN Encodings::.
  11853. '-mnan=legacy' is the default if no '-mnan' option or '.nan'
  11854. directive is used.
  11855. '--trap'
  11856. '--no-break'
  11857. 'as' automatically macro expands certain division and
  11858. multiplication instructions to check for overflow and division by
  11859. zero. This option causes 'as' to generate code to take a trap
  11860. exception rather than a break exception when an error is detected.
  11861. The trap instructions are only supported at Instruction Set
  11862. Architecture level 2 and higher.
  11863. '--break'
  11864. '--no-trap'
  11865. Generate code to take a break exception rather than a trap
  11866. exception when an error is detected. This is the default.
  11867. '-mpdr'
  11868. '-mno-pdr'
  11869. Control generation of '.pdr' sections. Off by default on IRIX, on
  11870. elsewhere.
  11871. '-mshared'
  11872. '-mno-shared'
  11873. When generating code using the Unix calling conventions (selected
  11874. by '-KPIC' or '-mcall_shared'), gas will normally generate code
  11875. which can go into a shared library. The '-mno-shared' option tells
  11876. gas to generate code which uses the calling convention, but can not
  11877. go into a shared library. The resulting code is slightly more
  11878. efficient. This option only affects the handling of the '.cpload'
  11879. and '.cpsetup' pseudo-ops.
  11880. 
  11881. File: as.info, Node: MIPS Macros, Next: MIPS Symbol Sizes, Prev: MIPS Options, Up: MIPS-Dependent
  11882. 9.27.2 High-level assembly macros
  11883. ---------------------------------
  11884. MIPS assemblers have traditionally provided a wider range of
  11885. instructions than the MIPS architecture itself. These extra
  11886. instructions are usually referred to as "macro" instructions (1).
  11887. Some MIPS macro instructions extend an underlying architectural
  11888. instruction while others are entirely new. An example of the former
  11889. type is 'and', which allows the third operand to be either a register or
  11890. an arbitrary immediate value. Examples of the latter type include
  11891. 'bgt', which branches to the third operand when the first operand is
  11892. greater than the second operand, and 'ulh', which implements an
  11893. unaligned 2-byte load.
  11894. One of the most common extensions provided by macros is to expand
  11895. memory offsets to the full address range (32 or 64 bits) and to allow
  11896. symbolic offsets such as 'my_data + 4' to be used in place of integer
  11897. constants. For example, the architectural instruction 'lbu' allows only
  11898. a signed 16-bit offset, whereas the macro 'lbu' allows code such as 'lbu
  11899. $4,array+32769($5)'. The implementation of these symbolic offsets
  11900. depends on several factors, such as whether the assembler is generating
  11901. SVR4-style PIC (selected by '-KPIC', *note Assembler options: MIPS
  11902. Options.), the size of symbols (*note Directives to override the size of
  11903. symbols: MIPS Symbol Sizes.), and the small data limit (*note
  11904. Controlling the use of small data accesses: MIPS Small Data.).
  11905. Sometimes it is undesirable to have one assembly instruction expand
  11906. to several machine instructions. The directive '.set nomacro' tells the
  11907. assembler to warn when this happens. '.set macro' restores the default
  11908. behavior.
  11909. Some macro instructions need a temporary register to store
  11910. intermediate results. This register is usually '$1', also known as
  11911. '$at', but it can be changed to any core register REG using '.set
  11912. at=REG'. Note that '$at' always refers to '$1' regardless of which
  11913. register is being used as the temporary register.
  11914. Implicit uses of the temporary register in macros could interfere
  11915. with explicit uses in the assembly code. The assembler therefore warns
  11916. whenever it sees an explicit use of the temporary register. The
  11917. directive '.set noat' silences this warning while '.set at' restores the
  11918. default behavior. It is safe to use '.set noat' while '.set nomacro' is
  11919. in effect since single-instruction macros never need a temporary
  11920. register.
  11921. Note that while the GNU assembler provides these macros for
  11922. compatibility, it does not make any attempt to optimize them with the
  11923. surrounding code.
  11924. ---------- Footnotes ----------
  11925. (1) The term "macro" is somewhat overloaded here, since these macros
  11926. have no relation to those defined by '.macro', *note '.macro': Macro.
  11927. 
  11928. File: as.info, Node: MIPS Symbol Sizes, Next: MIPS Small Data, Prev: MIPS Macros, Up: MIPS-Dependent
  11929. 9.27.3 Directives to override the size of symbols
  11930. -------------------------------------------------
  11931. The n64 ABI allows symbols to have any 64-bit value. Although this
  11932. provides a great deal of flexibility, it means that some macros have
  11933. much longer expansions than their 32-bit counterparts. For example, the
  11934. non-PIC expansion of 'dla $4,sym' is usually:
  11935. lui $4,%highest(sym)
  11936. lui $1,%hi(sym)
  11937. daddiu $4,$4,%higher(sym)
  11938. daddiu $1,$1,%lo(sym)
  11939. dsll32 $4,$4,0
  11940. daddu $4,$4,$1
  11941. whereas the 32-bit expansion is simply:
  11942. lui $4,%hi(sym)
  11943. daddiu $4,$4,%lo(sym)
  11944. n64 code is sometimes constructed in such a way that all symbolic
  11945. constants are known to have 32-bit values, and in such cases, it's
  11946. preferable to use the 32-bit expansion instead of the 64-bit expansion.
  11947. You can use the '.set sym32' directive to tell the assembler that,
  11948. from this point on, all expressions of the form 'SYMBOL' or 'SYMBOL +
  11949. OFFSET' have 32-bit values. For example:
  11950. .set sym32
  11951. dla $4,sym
  11952. lw $4,sym+16
  11953. sw $4,sym+0x8000($4)
  11954. will cause the assembler to treat 'sym', 'sym+16' and 'sym+0x8000' as
  11955. 32-bit values. The handling of non-symbolic addresses is not affected.
  11956. The directive '.set nosym32' ends a '.set sym32' block and reverts to
  11957. the normal behavior. It is also possible to change the symbol size
  11958. using the command-line options '-msym32' and '-mno-sym32'.
  11959. These options and directives are always accepted, but at present,
  11960. they have no effect for anything other than n64.
  11961. 
  11962. File: as.info, Node: MIPS Small Data, Next: MIPS ISA, Prev: MIPS Symbol Sizes, Up: MIPS-Dependent
  11963. 9.27.4 Controlling the use of small data accesses
  11964. -------------------------------------------------
  11965. It often takes several instructions to load the address of a symbol.
  11966. For example, when 'addr' is a 32-bit symbol, the non-PIC expansion of
  11967. 'dla $4,addr' is usually:
  11968. lui $4,%hi(addr)
  11969. daddiu $4,$4,%lo(addr)
  11970. The sequence is much longer when 'addr' is a 64-bit symbol. *Note
  11971. Directives to override the size of symbols: MIPS Symbol Sizes.
  11972. In order to cut down on this overhead, most embedded MIPS systems set
  11973. aside a 64-kilobyte "small data" area and guarantee that all data of
  11974. size N and smaller will be placed in that area. The limit N is passed
  11975. to both the assembler and the linker using the command-line option '-G
  11976. N', *note Assembler options: MIPS Options. Note that the same value of
  11977. N must be used when linking and when assembling all input files to the
  11978. link; any inconsistency could cause a relocation overflow error.
  11979. The size of an object in the '.bss' section is set by the '.comm' or
  11980. '.lcomm' directive that defines it. The size of an external object may
  11981. be set with the '.extern' directive. For example, '.extern sym,4'
  11982. declares that the object at 'sym' is 4 bytes in length, while leaving
  11983. 'sym' otherwise undefined.
  11984. When no '-G' option is given, the default limit is 8 bytes. The
  11985. option '-G 0' prevents any data from being automatically classified as
  11986. small.
  11987. It is also possible to mark specific objects as small by putting them
  11988. in the special sections '.sdata' and '.sbss', which are "small"
  11989. counterparts of '.data' and '.bss' respectively. The toolchain will
  11990. treat such data as small regardless of the '-G' setting.
  11991. On startup, systems that support a small data area are expected to
  11992. initialize register '$28', also known as '$gp', in such a way that small
  11993. data can be accessed using a 16-bit offset from that register. For
  11994. example, when 'addr' is small data, the 'dla $4,addr' instruction above
  11995. is equivalent to:
  11996. daddiu $4,$28,%gp_rel(addr)
  11997. Small data is not supported for SVR4-style PIC.
  11998. 
  11999. File: as.info, Node: MIPS ISA, Next: MIPS assembly options, Prev: MIPS Small Data, Up: MIPS-Dependent
  12000. 9.27.5 Directives to override the ISA level
  12001. -------------------------------------------
  12002. GNU 'as' supports an additional directive to change the MIPS Instruction
  12003. Set Architecture level on the fly: '.set mipsN'. N should be a number
  12004. from 0 to 5, or 32, 32r2, 32r3, 32r5, 32r6, 64, 64r2, 64r3, 64r5 or
  12005. 64r6. The values other than 0 make the assembler accept instructions
  12006. for the corresponding ISA level, from that point on in the assembly.
  12007. '.set mipsN' affects not only which instructions are permitted, but also
  12008. how certain macros are expanded. '.set mips0' restores the ISA level to
  12009. its original level: either the level you selected with command-line
  12010. options, or the default for your configuration. You can use this
  12011. feature to permit specific MIPS III instructions while assembling in 32
  12012. bit mode. Use this directive with care!
  12013. The '.set arch=CPU' directive provides even finer control. It
  12014. changes the effective CPU target and allows the assembler to use
  12015. instructions specific to a particular CPU. All CPUs supported by the
  12016. '-march' command-line option are also selectable by this directive. The
  12017. original value is restored by '.set arch=default'.
  12018. The directive '.set mips16' puts the assembler into MIPS 16 mode, in
  12019. which it will assemble instructions for the MIPS 16 processor. Use
  12020. '.set nomips16' to return to normal 32 bit mode.
  12021. Traditional MIPS assemblers do not support this directive.
  12022. The directive '.set micromips' puts the assembler into microMIPS
  12023. mode, in which it will assemble instructions for the microMIPS
  12024. processor. Use '.set nomicromips' to return to normal 32 bit mode.
  12025. Traditional MIPS assemblers do not support this directive.
  12026. 
  12027. File: as.info, Node: MIPS assembly options, Next: MIPS autoextend, Prev: MIPS ISA, Up: MIPS-Dependent
  12028. 9.27.6 Directives to control code generation
  12029. --------------------------------------------
  12030. The '.module' directive allows command-line options to be set directly
  12031. from assembly. The format of the directive matches the '.set' directive
  12032. but only those options which are relevant to a whole module are
  12033. supported. The effect of a '.module' directive is the same as the
  12034. corresponding command-line option. Where '.set' directives support
  12035. returning to a default then the '.module' directives do not as they
  12036. define the defaults.
  12037. These module-level directives must appear first in assembly.
  12038. Traditional MIPS assemblers do not support this directive.
  12039. The directive '.set insn32' makes the assembler only use 32-bit
  12040. instruction encodings when generating code for the microMIPS processor.
  12041. This directive inhibits the use of any 16-bit instructions from that
  12042. point on in the assembly. The '.set noinsn32' directive allows 16-bit
  12043. instructions to be accepted.
  12044. Traditional MIPS assemblers do not support this directive.
  12045. 
  12046. File: as.info, Node: MIPS autoextend, Next: MIPS insn, Prev: MIPS assembly options, Up: MIPS-Dependent
  12047. 9.27.7 Directives for extending MIPS 16 bit instructions
  12048. --------------------------------------------------------
  12049. By default, MIPS 16 instructions are automatically extended to 32 bits
  12050. when necessary. The directive '.set noautoextend' will turn this off.
  12051. When '.set noautoextend' is in effect, any 32 bit instruction must be
  12052. explicitly extended with the '.e' modifier (e.g., 'li.e $4,1000'). The
  12053. directive '.set autoextend' may be used to once again automatically
  12054. extend instructions when necessary.
  12055. This directive is only meaningful when in MIPS 16 mode. Traditional
  12056. MIPS assemblers do not support this directive.
  12057. 
  12058. File: as.info, Node: MIPS insn, Next: MIPS FP ABIs, Prev: MIPS autoextend, Up: MIPS-Dependent
  12059. 9.27.8 Directive to mark data as an instruction
  12060. -----------------------------------------------
  12061. The '.insn' directive tells 'as' that the following data is actually
  12062. instructions. This makes a difference in MIPS 16 and microMIPS modes:
  12063. when loading the address of a label which precedes instructions, 'as'
  12064. automatically adds 1 to the value, so that jumping to the loaded address
  12065. will do the right thing.
  12066. The '.global' and '.globl' directives supported by 'as' will by
  12067. default mark the symbol as pointing to a region of data not code. This
  12068. means that, for example, any instructions following such a symbol will
  12069. not be disassembled by 'objdump' as it will regard them as data. To
  12070. change this behavior an optional section name can be placed after the
  12071. symbol name in the '.global' directive. If this section exists and is
  12072. known to be a code section, then the symbol will be marked as pointing
  12073. at code not data. Ie the syntax for the directive is:
  12074. '.global SYMBOL[ SECTION][, SYMBOL[ SECTION]] ...',
  12075. Here is a short example:
  12076. .global foo .text, bar, baz .data
  12077. foo:
  12078. nop
  12079. bar:
  12080. .word 0x0
  12081. baz:
  12082. .word 0x1
  12083. 
  12084. File: as.info, Node: MIPS FP ABIs, Next: MIPS NaN Encodings, Prev: MIPS insn, Up: MIPS-Dependent
  12085. 9.27.9 Directives to control the FP ABI
  12086. ---------------------------------------
  12087. * Menu:
  12088. * MIPS FP ABI History:: History of FP ABIs
  12089. * MIPS FP ABI Variants:: Supported FP ABIs
  12090. * MIPS FP ABI Selection:: Automatic selection of FP ABI
  12091. * MIPS FP ABI Compatibility:: Linking different FP ABI variants
  12092. 
  12093. File: as.info, Node: MIPS FP ABI History, Next: MIPS FP ABI Variants, Up: MIPS FP ABIs
  12094. 9.27.9.1 History of FP ABIs
  12095. ...........................
  12096. The MIPS ABIs support a variety of different floating-point extensions
  12097. where calling-convention and register sizes vary for floating-point
  12098. data. The extensions exist to support a wide variety of optional
  12099. architecture features. The resulting ABI variants are generally
  12100. incompatible with each other and must be tracked carefully.
  12101. Traditionally the use of an explicit '.gnu_attribute 4, N' directive
  12102. is used to indicate which ABI is in use by a specific module. It was
  12103. then left to the user to ensure that command-line options and the
  12104. selected ABI were compatible with some potential for inconsistencies.
  12105. 
  12106. File: as.info, Node: MIPS FP ABI Variants, Next: MIPS FP ABI Selection, Prev: MIPS FP ABI History, Up: MIPS FP ABIs
  12107. 9.27.9.2 Supported FP ABIs
  12108. ..........................
  12109. The supported floating-point ABI variants are:
  12110. '0 - No floating-point'
  12111. This variant is used to indicate that floating-point is not used
  12112. within the module at all and therefore has no impact on the ABI.
  12113. This is the default.
  12114. '1 - Double-precision'
  12115. This variant indicates that double-precision support is used. For
  12116. 64-bit ABIs this means that 64-bit wide floating-point registers
  12117. are required. For 32-bit ABIs this means that 32-bit wide
  12118. floating-point registers are required and double-precision
  12119. operations use pairs of registers.
  12120. '2 - Single-precision'
  12121. This variant indicates that single-precision support is used.
  12122. Double precision operations will be supported via soft-float
  12123. routines.
  12124. '3 - Soft-float'
  12125. This variant indicates that although floating-point support is used
  12126. all operations are emulated in software. This means the ABI is
  12127. modified to pass all floating-point data in general-purpose
  12128. registers.
  12129. '4 - Deprecated'
  12130. This variant existed as an initial attempt at supporting 64-bit
  12131. wide floating-point registers for O32 ABI on a MIPS32r2 CPU. This
  12132. has been superseded by 5, 6 and 7.
  12133. '5 - Double-precision 32-bit CPU, 32-bit or 64-bit FPU'
  12134. This variant is used by 32-bit ABIs to indicate that the
  12135. floating-point code in the module has been designed to operate
  12136. correctly with either 32-bit wide or 64-bit wide floating-point
  12137. registers. Double-precision support is used. Only O32 currently
  12138. supports this variant and requires a minimum architecture of MIPS
  12139. II.
  12140. '6 - Double-precision 32-bit FPU, 64-bit FPU'
  12141. This variant is used by 32-bit ABIs to indicate that the
  12142. floating-point code in the module requires 64-bit wide
  12143. floating-point registers. Double-precision support is used. Only
  12144. O32 currently supports this variant and requires a minimum
  12145. architecture of MIPS32r2.
  12146. '7 - Double-precision compat 32-bit FPU, 64-bit FPU'
  12147. This variant is used by 32-bit ABIs to indicate that the
  12148. floating-point code in the module requires 64-bit wide
  12149. floating-point registers. Double-precision support is used. This
  12150. differs from the previous ABI as it restricts use of odd-numbered
  12151. single-precision registers. Only O32 currently supports this
  12152. variant and requires a minimum architecture of MIPS32r2.
  12153. 
  12154. File: as.info, Node: MIPS FP ABI Selection, Next: MIPS FP ABI Compatibility, Prev: MIPS FP ABI Variants, Up: MIPS FP ABIs
  12155. 9.27.9.3 Automatic selection of FP ABI
  12156. ......................................
  12157. In order to simplify and add safety to the process of selecting the
  12158. correct floating-point ABI, the assembler will automatically infer the
  12159. correct '.gnu_attribute 4, N' directive based on command-line options
  12160. and '.module' overrides. Where an explicit '.gnu_attribute 4, N'
  12161. directive has been seen then a warning will be raised if it does not
  12162. match an inferred setting.
  12163. The floating-point ABI is inferred as follows. If '-msoft-float' has
  12164. been used the module will be marked as soft-float. If '-msingle-float'
  12165. has been used then the module will be marked as single-precision. The
  12166. remaining ABIs are then selected based on the FP register width.
  12167. Double-precision is selected if the width of GP and FP registers match
  12168. and the special double-precision variants for 32-bit ABIs are then
  12169. selected depending on '-mfpxx', '-mfp64' and '-mno-odd-spreg'.
  12170. 
  12171. File: as.info, Node: MIPS FP ABI Compatibility, Prev: MIPS FP ABI Selection, Up: MIPS FP ABIs
  12172. 9.27.9.4 Linking different FP ABI variants
  12173. ..........................................
  12174. Modules using the default FP ABI (no floating-point) can be linked with
  12175. any other (singular) FP ABI variant.
  12176. Special compatibility support exists for O32 with the four
  12177. double-precision FP ABI variants. The '-mfpxx' FP ABI is specifically
  12178. designed to be compatible with the standard double-precision ABI and the
  12179. '-mfp64' FP ABIs. This makes it desirable for O32 modules to be built
  12180. as '-mfpxx' to ensure the maximum compatibility with other modules
  12181. produced for more specific needs. The only FP ABIs which cannot be
  12182. linked together are the standard double-precision ABI and the full
  12183. '-mfp64' ABI with '-modd-spreg'.
  12184. 
  12185. File: as.info, Node: MIPS NaN Encodings, Next: MIPS Option Stack, Prev: MIPS FP ABIs, Up: MIPS-Dependent
  12186. 9.27.10 Directives to record which NaN encoding is being used
  12187. -------------------------------------------------------------
  12188. The IEEE 754 floating-point standard defines two types of not-a-number
  12189. (NaN) data: "signalling" NaNs and "quiet" NaNs. The original version of
  12190. the standard did not specify how these two types should be
  12191. distinguished. Most implementations followed the i387 model, in which
  12192. the first bit of the significand is set for quiet NaNs and clear for
  12193. signalling NaNs. However, the original MIPS implementation assigned the
  12194. opposite meaning to the bit, so that it was set for signalling NaNs and
  12195. clear for quiet NaNs.
  12196. The 2008 revision of the standard formally suggested the i387 choice
  12197. and as from Sep 2012 the current release of the MIPS architecture
  12198. therefore optionally supports that form. Code that uses one NaN
  12199. encoding would usually be incompatible with code that uses the other NaN
  12200. encoding, so MIPS ELF objects have a flag ('EF_MIPS_NAN2008') to record
  12201. which encoding is being used.
  12202. Assembly files can use the '.nan' directive to select between the two
  12203. encodings. '.nan 2008' says that the assembly file uses the IEEE
  12204. 754-2008 encoding while '.nan legacy' says that the file uses the
  12205. original MIPS encoding. If several '.nan' directives are given, the
  12206. final setting is the one that is used.
  12207. The command-line options '-mnan=legacy' and '-mnan=2008' can be used
  12208. instead of '.nan legacy' and '.nan 2008' respectively. However, any
  12209. '.nan' directive overrides the command-line setting.
  12210. '.nan legacy' is the default if no '.nan' directive or '-mnan' option
  12211. is given.
  12212. Note that GNU 'as' does not produce NaNs itself and therefore these
  12213. directives do not affect code generation. They simply control the
  12214. setting of the 'EF_MIPS_NAN2008' flag.
  12215. Traditional MIPS assemblers do not support these directives.
  12216. 
  12217. File: as.info, Node: MIPS Option Stack, Next: MIPS ASE Instruction Generation Overrides, Prev: MIPS NaN Encodings, Up: MIPS-Dependent
  12218. 9.27.11 Directives to save and restore options
  12219. ----------------------------------------------
  12220. The directives '.set push' and '.set pop' may be used to save and
  12221. restore the current settings for all the options which are controlled by
  12222. '.set'. The '.set push' directive saves the current settings on a
  12223. stack. The '.set pop' directive pops the stack and restores the
  12224. settings.
  12225. These directives can be useful inside an macro which must change an
  12226. option such as the ISA level or instruction reordering but does not want
  12227. to change the state of the code which invoked the macro.
  12228. Traditional MIPS assemblers do not support these directives.
  12229. 
  12230. File: as.info, Node: MIPS ASE Instruction Generation Overrides, Next: MIPS Floating-Point, Prev: MIPS Option Stack, Up: MIPS-Dependent
  12231. 9.27.12 Directives to control generation of MIPS ASE instructions
  12232. -----------------------------------------------------------------
  12233. The directive '.set mips3d' makes the assembler accept instructions from
  12234. the MIPS-3D Application Specific Extension from that point on in the
  12235. assembly. The '.set nomips3d' directive prevents MIPS-3D instructions
  12236. from being accepted.
  12237. The directive '.set smartmips' makes the assembler accept
  12238. instructions from the SmartMIPS Application Specific Extension to the
  12239. MIPS32 ISA from that point on in the assembly. The '.set nosmartmips'
  12240. directive prevents SmartMIPS instructions from being accepted.
  12241. The directive '.set mdmx' makes the assembler accept instructions
  12242. from the MDMX Application Specific Extension from that point on in the
  12243. assembly. The '.set nomdmx' directive prevents MDMX instructions from
  12244. being accepted.
  12245. The directive '.set dsp' makes the assembler accept instructions from
  12246. the DSP Release 1 Application Specific Extension from that point on in
  12247. the assembly. The '.set nodsp' directive prevents DSP Release 1
  12248. instructions from being accepted.
  12249. The directive '.set dspr2' makes the assembler accept instructions
  12250. from the DSP Release 2 Application Specific Extension from that point on
  12251. in the assembly. This directive implies '.set dsp'. The '.set nodspr2'
  12252. directive prevents DSP Release 2 instructions from being accepted.
  12253. The directive '.set dspr3' makes the assembler accept instructions
  12254. from the DSP Release 3 Application Specific Extension from that point on
  12255. in the assembly. This directive implies '.set dsp' and '.set dspr2'.
  12256. The '.set nodspr3' directive prevents DSP Release 3 instructions from
  12257. being accepted.
  12258. The directive '.set mt' makes the assembler accept instructions from
  12259. the MT Application Specific Extension from that point on in the
  12260. assembly. The '.set nomt' directive prevents MT instructions from being
  12261. accepted.
  12262. The directive '.set mcu' makes the assembler accept instructions from
  12263. the MCU Application Specific Extension from that point on in the
  12264. assembly. The '.set nomcu' directive prevents MCU instructions from
  12265. being accepted.
  12266. The directive '.set msa' makes the assembler accept instructions from
  12267. the MIPS SIMD Architecture Extension from that point on in the assembly.
  12268. The '.set nomsa' directive prevents MSA instructions from being
  12269. accepted.
  12270. The directive '.set virt' makes the assembler accept instructions
  12271. from the Virtualization Application Specific Extension from that point
  12272. on in the assembly. The '.set novirt' directive prevents Virtualization
  12273. instructions from being accepted.
  12274. The directive '.set xpa' makes the assembler accept instructions from
  12275. the XPA Extension from that point on in the assembly. The '.set noxpa'
  12276. directive prevents XPA instructions from being accepted.
  12277. The directive '.set mips16e2' makes the assembler accept instructions
  12278. from the MIPS16e2 Application Specific Extension from that point on in
  12279. the assembly, whenever in MIPS16 mode. The '.set nomips16e2' directive
  12280. prevents MIPS16e2 instructions from being accepted, in MIPS16 mode.
  12281. Neither directive affects the state of MIPS16 mode being active itself
  12282. which has separate controls.
  12283. The directive '.set crc' makes the assembler accept instructions from
  12284. the CRC Extension from that point on in the assembly. The '.set nocrc'
  12285. directive prevents CRC instructions from being accepted.
  12286. The directive '.set ginv' makes the assembler accept instructions
  12287. from the GINV Extension from that point on in the assembly. The '.set
  12288. noginv' directive prevents GINV instructions from being accepted.
  12289. The directive '.set loongson-mmi' makes the assembler accept
  12290. instructions from the MMI Extension from that point on in the assembly.
  12291. The '.set noloongson-mmi' directive prevents MMI instructions from being
  12292. accepted.
  12293. The directive '.set loongson-cam' makes the assembler accept
  12294. instructions from the Loongson CAM from that point on in the assembly.
  12295. The '.set noloongson-cam' directive prevents Loongson CAM instructions
  12296. from being accepted.
  12297. The directive '.set loongson-ext' makes the assembler accept
  12298. instructions from the Loongson EXT from that point on in the assembly.
  12299. The '.set noloongson-ext' directive prevents Loongson EXT instructions
  12300. from being accepted.
  12301. The directive '.set loongson-ext2' makes the assembler accept
  12302. instructions from the Loongson EXT2 from that point on in the assembly.
  12303. This directive implies '.set loognson-ext'. The '.set noloongson-ext2'
  12304. directive prevents Loongson EXT2 instructions from being accepted.
  12305. Traditional MIPS assemblers do not support these directives.
  12306. 
  12307. File: as.info, Node: MIPS Floating-Point, Next: MIPS Syntax, Prev: MIPS ASE Instruction Generation Overrides, Up: MIPS-Dependent
  12308. 9.27.13 Directives to override floating-point options
  12309. -----------------------------------------------------
  12310. The directives '.set softfloat' and '.set hardfloat' provide finer
  12311. control of disabling and enabling float-point instructions. These
  12312. directives always override the default (that hard-float instructions are
  12313. accepted) or the command-line options ('-msoft-float' and
  12314. '-mhard-float').
  12315. The directives '.set singlefloat' and '.set doublefloat' provide
  12316. finer control of disabling and enabling double-precision float-point
  12317. operations. These directives always override the default (that
  12318. double-precision operations are accepted) or the command-line options
  12319. ('-msingle-float' and '-mdouble-float').
  12320. Traditional MIPS assemblers do not support these directives.
  12321. 
  12322. File: as.info, Node: MIPS Syntax, Prev: MIPS Floating-Point, Up: MIPS-Dependent
  12323. 9.27.14 Syntactical considerations for the MIPS assembler
  12324. ---------------------------------------------------------
  12325. * Menu:
  12326. * MIPS-Chars:: Special Characters
  12327. 
  12328. File: as.info, Node: MIPS-Chars, Up: MIPS Syntax
  12329. 9.27.14.1 Special Characters
  12330. ............................
  12331. The presence of a '#' on a line indicates the start of a comment that
  12332. extends to the end of the current line.
  12333. If a '#' appears as the first character of a line, the whole line is
  12334. treated as a comment, but in this case the line can also be a logical
  12335. line number directive (*note Comments::) or a preprocessor control
  12336. command (*note Preprocessing::).
  12337. The ';' character can be used to separate statements on the same
  12338. line.
  12339. 
  12340. File: as.info, Node: MMIX-Dependent, Next: MSP430-Dependent, Prev: MIPS-Dependent, Up: Machine Dependencies
  12341. 9.28 MMIX Dependent Features
  12342. ============================
  12343. * Menu:
  12344. * MMIX-Opts:: Command-line Options
  12345. * MMIX-Expand:: Instruction expansion
  12346. * MMIX-Syntax:: Syntax
  12347. * MMIX-mmixal:: Differences to 'mmixal' syntax and semantics
  12348. 
  12349. File: as.info, Node: MMIX-Opts, Next: MMIX-Expand, Up: MMIX-Dependent
  12350. 9.28.1 Command-line Options
  12351. ---------------------------
  12352. The MMIX version of 'as' has some machine-dependent options.
  12353. When '--fixed-special-register-names' is specified, only the register
  12354. names specified in *note MMIX-Regs:: are recognized in the instructions
  12355. 'PUT' and 'GET'.
  12356. You can use the '--globalize-symbols' to make all symbols global.
  12357. This option is useful when splitting up a 'mmixal' program into several
  12358. files.
  12359. The '--gnu-syntax' turns off most syntax compatibility with 'mmixal'.
  12360. Its usability is currently doubtful.
  12361. The '--relax' option is not fully supported, but will eventually make
  12362. the object file prepared for linker relaxation.
  12363. If you want to avoid inadvertently calling a predefined symbol and
  12364. would rather get an error, for example when using 'as' with a compiler
  12365. or other machine-generated code, specify '--no-predefined-syms'. This
  12366. turns off built-in predefined definitions of all such symbols, including
  12367. rounding-mode symbols, segment symbols, 'BIT' symbols, and 'TRAP'
  12368. symbols used in 'mmix' "system calls". It also turns off predefined
  12369. special-register names, except when used in 'PUT' and 'GET'
  12370. instructions.
  12371. By default, some instructions are expanded to fit the size of the
  12372. operand or an external symbol (*note MMIX-Expand::). By passing
  12373. '--no-expand', no such expansion will be done, instead causing errors at
  12374. link time if the operand does not fit.
  12375. The 'mmixal' documentation (*note mmixsite::) specifies that global
  12376. registers allocated with the 'GREG' directive (*note MMIX-greg::) and
  12377. initialized to the same non-zero value, will refer to the same global
  12378. register. This isn't strictly enforceable in 'as' since the final
  12379. addresses aren't known until link-time, but it will do an effort unless
  12380. the '--no-merge-gregs' option is specified. (Register merging isn't yet
  12381. implemented in 'ld'.)
  12382. 'as' will warn every time it expands an instruction to fit an operand
  12383. unless the option '-x' is specified. It is believed that this behaviour
  12384. is more useful than just mimicking 'mmixal''s behaviour, in which
  12385. instructions are only expanded if the '-x' option is specified, and
  12386. assembly fails otherwise, when an instruction needs to be expanded. It
  12387. needs to be kept in mind that 'mmixal' is both an assembler and linker,
  12388. while 'as' will expand instructions that at link stage can be
  12389. contracted. (Though linker relaxation isn't yet implemented in 'ld'.)
  12390. The option '-x' also implies '--linker-allocated-gregs'.
  12391. If instruction expansion is enabled, 'as' can expand a 'PUSHJ'
  12392. instruction into a series of instructions. The shortest expansion is to
  12393. not expand it, but just mark the call as redirectable to a stub, which
  12394. 'ld' creates at link-time, but only if the original 'PUSHJ' instruction
  12395. is found not to reach the target. The stub consists of the necessary
  12396. instructions to form a jump to the target. This happens if 'as' can
  12397. assert that the 'PUSHJ' instruction can reach such a stub. The option
  12398. '--no-pushj-stubs' disables this shorter expansion, and the longer
  12399. series of instructions is then created at assembly-time. The option
  12400. '--no-stubs' is a synonym, intended for compatibility with future
  12401. releases, where generation of stubs for other instructions may be
  12402. implemented.
  12403. Usually a two-operand-expression (*note GREG-base::) without a
  12404. matching 'GREG' directive is treated as an error by 'as'. When the
  12405. option '--linker-allocated-gregs' is in effect, they are instead passed
  12406. through to the linker, which will allocate as many global registers as
  12407. is needed.
  12408. 
  12409. File: as.info, Node: MMIX-Expand, Next: MMIX-Syntax, Prev: MMIX-Opts, Up: MMIX-Dependent
  12410. 9.28.2 Instruction expansion
  12411. ----------------------------
  12412. When 'as' encounters an instruction with an operand that is either not
  12413. known or does not fit the operand size of the instruction, 'as' (and
  12414. 'ld') will expand the instruction into a sequence of instructions
  12415. semantically equivalent to the operand fitting the instruction.
  12416. Expansion will take place for the following instructions:
  12417. 'GETA'
  12418. Expands to a sequence of four instructions: 'SETL', 'INCML',
  12419. 'INCMH' and 'INCH'. The operand must be a multiple of four.
  12420. Conditional branches
  12421. A branch instruction is turned into a branch with the complemented
  12422. condition and prediction bit over five instructions; four
  12423. instructions setting '$255' to the operand value, which like with
  12424. 'GETA' must be a multiple of four, and a final 'GO $255,$255,0'.
  12425. 'PUSHJ'
  12426. Similar to expansion for conditional branches; four instructions
  12427. set '$255' to the operand value, followed by a 'PUSHGO
  12428. $255,$255,0'.
  12429. 'JMP'
  12430. Similar to conditional branches and 'PUSHJ'. The final instruction
  12431. is 'GO $255,$255,0'.
  12432. The linker 'ld' is expected to shrink these expansions for code
  12433. assembled with '--relax' (though not currently implemented).
  12434. 
  12435. File: as.info, Node: MMIX-Syntax, Next: MMIX-mmixal, Prev: MMIX-Expand, Up: MMIX-Dependent
  12436. 9.28.3 Syntax
  12437. -------------
  12438. The assembly syntax is supposed to be upward compatible with that
  12439. described in Sections 1.3 and 1.4 of 'The Art of Computer Programming,
  12440. Volume 1'. Draft versions of those chapters as well as other MMIX
  12441. information is located at
  12442. <http://www-cs-faculty.stanford.edu/~knuth/mmix-news.html>. Most code
  12443. examples from the mmixal package located there should work unmodified
  12444. when assembled and linked as single files, with a few noteworthy
  12445. exceptions (*note MMIX-mmixal::).
  12446. Before an instruction is emitted, the current location is aligned to
  12447. the next four-byte boundary. If a label is defined at the beginning of
  12448. the line, its value will be the aligned value.
  12449. In addition to the traditional hex-prefix '0x', a hexadecimal number
  12450. can also be specified by the prefix character '#'.
  12451. After all operands to an MMIX instruction or directive have been
  12452. specified, the rest of the line is ignored, treated as a comment.
  12453. * Menu:
  12454. * MMIX-Chars:: Special Characters
  12455. * MMIX-Symbols:: Symbols
  12456. * MMIX-Regs:: Register Names
  12457. * MMIX-Pseudos:: Assembler Directives
  12458. 
  12459. File: as.info, Node: MMIX-Chars, Next: MMIX-Symbols, Up: MMIX-Syntax
  12460. 9.28.3.1 Special Characters
  12461. ...........................
  12462. The characters '*' and '#' are line comment characters; each start a
  12463. comment at the beginning of a line, but only at the beginning of a line.
  12464. A '#' prefixes a hexadecimal number if found elsewhere on a line. If a
  12465. '#' appears at the start of a line the whole line is treated as a
  12466. comment, but the line can also act as a logical line number directive
  12467. (*note Comments::) or a preprocessor control command (*note
  12468. Preprocessing::).
  12469. Two other characters, '%' and '!', each start a comment anywhere on
  12470. the line. Thus you can't use the 'modulus' and 'not' operators in
  12471. expressions normally associated with these two characters.
  12472. A ';' is a line separator, treated as a new-line, so separate
  12473. instructions can be specified on a single line.
  12474. 
  12475. File: as.info, Node: MMIX-Symbols, Next: MMIX-Regs, Prev: MMIX-Chars, Up: MMIX-Syntax
  12476. 9.28.3.2 Symbols
  12477. ................
  12478. The character ':' is permitted in identifiers. There are two exceptions
  12479. to it being treated as any other symbol character: if a symbol begins
  12480. with ':', it means that the symbol is in the global namespace and that
  12481. the current prefix should not be prepended to that symbol (*note
  12482. MMIX-prefix::). The ':' is then not considered part of the symbol. For
  12483. a symbol in the label position (first on a line), a ':' at the end of a
  12484. symbol is silently stripped off. A label is permitted, but not
  12485. required, to be followed by a ':', as with many other assembly formats.
  12486. The character '@' in an expression, is a synonym for '.', the current
  12487. location.
  12488. In addition to the common forward and backward local symbol formats
  12489. (*note Symbol Names::), they can be specified with upper-case 'B' and
  12490. 'F', as in '8B' and '9F'. A local label defined for the current
  12491. position is written with a 'H' appended to the number:
  12492. 3H LDB $0,$1,2
  12493. This and traditional local-label formats cannot be mixed: a label
  12494. must be defined and referred to using the same format.
  12495. There's a minor caveat: just as for the ordinary local symbols, the
  12496. local symbols are translated into ordinary symbols using control
  12497. characters are to hide the ordinal number of the symbol. Unfortunately,
  12498. these symbols are not translated back in error messages. Thus you may
  12499. see confusing error messages when local symbols are used. Control
  12500. characters '\003' (control-C) and '\004' (control-D) are used for the
  12501. MMIX-specific local-symbol syntax.
  12502. The symbol 'Main' is handled specially; it is always global.
  12503. By defining the symbols '__.MMIX.start..text' and
  12504. '__.MMIX.start..data', the address of respectively the '.text' and
  12505. '.data' segments of the final program can be defined, though when
  12506. linking more than one object file, the code or data in the object file
  12507. containing the symbol is not guaranteed to be start at that position;
  12508. just the final executable. *Note MMIX-loc::.
  12509. 
  12510. File: as.info, Node: MMIX-Regs, Next: MMIX-Pseudos, Prev: MMIX-Symbols, Up: MMIX-Syntax
  12511. 9.28.3.3 Register names
  12512. .......................
  12513. Local and global registers are specified as '$0' to '$255'. The
  12514. recognized special register names are 'rJ', 'rA', 'rB', 'rC', 'rD',
  12515. 'rE', 'rF', 'rG', 'rH', 'rI', 'rK', 'rL', 'rM', 'rN', 'rO', 'rP', 'rQ',
  12516. 'rR', 'rS', 'rT', 'rU', 'rV', 'rW', 'rX', 'rY', 'rZ', 'rBB', 'rTT',
  12517. 'rWW', 'rXX', 'rYY' and 'rZZ'. A leading ':' is optional for special
  12518. register names.
  12519. Local and global symbols can be equated to register names and used in
  12520. place of ordinary registers.
  12521. Similarly for special registers, local and global symbols can be
  12522. used. Also, symbols equated from numbers and constant expressions are
  12523. allowed in place of a special register, except when either of the
  12524. options '--no-predefined-syms' and '--fixed-special-register-names' are
  12525. specified. Then only the special register names above are allowed for
  12526. the instructions having a special register operand; 'GET' and 'PUT'.
  12527. 
  12528. File: as.info, Node: MMIX-Pseudos, Prev: MMIX-Regs, Up: MMIX-Syntax
  12529. 9.28.3.4 Assembler Directives
  12530. .............................
  12531. 'LOC'
  12532. The 'LOC' directive sets the current location to the value of the
  12533. operand field, which may include changing sections. If the operand
  12534. is a constant, the section is set to either '.data' if the value is
  12535. '0x2000000000000000' or larger, else it is set to '.text'. Within
  12536. a section, the current location may only be changed to
  12537. monotonically higher addresses. A LOC expression must be a
  12538. previously defined symbol or a "pure" constant.
  12539. An example, which sets the label PREV to the current location, and
  12540. updates the current location to eight bytes forward:
  12541. prev LOC @+8
  12542. When a LOC has a constant as its operand, a symbol
  12543. '__.MMIX.start..text' or '__.MMIX.start..data' is defined depending
  12544. on the address as mentioned above. Each such symbol is interpreted
  12545. as special by the linker, locating the section at that address.
  12546. Note that if multiple files are linked, the first object file with
  12547. that section will be mapped to that address (not necessarily the
  12548. file with the LOC definition).
  12549. 'LOCAL'
  12550. Example:
  12551. LOCAL external_symbol
  12552. LOCAL 42
  12553. .local asymbol
  12554. This directive-operation generates a link-time assertion that the
  12555. operand does not correspond to a global register. The operand is
  12556. an expression that at link-time resolves to a register symbol or a
  12557. number. A number is treated as the register having that number.
  12558. There is one restriction on the use of this directive: the
  12559. pseudo-directive must be placed in a section with contents, code or
  12560. data.
  12561. 'IS'
  12562. The 'IS' directive:
  12563. asymbol IS an_expression
  12564. sets the symbol 'asymbol' to 'an_expression'. A symbol may not be
  12565. set more than once using this directive. Local labels may be set
  12566. using this directive, for example:
  12567. 5H IS @+4
  12568. 'GREG'
  12569. This directive reserves a global register, gives it an initial
  12570. value and optionally gives it a symbolic name. Some examples:
  12571. areg GREG
  12572. breg GREG data_value
  12573. GREG data_buffer
  12574. .greg creg, another_data_value
  12575. The symbolic register name can be used in place of a (non-special)
  12576. register. If a value isn't provided, it defaults to zero. Unless
  12577. the option '--no-merge-gregs' is specified, non-zero registers
  12578. allocated with this directive may be eliminated by 'as'; another
  12579. register with the same value used in its place. Any of the
  12580. instructions 'CSWAP', 'GO', 'LDA', 'LDBU', 'LDB', 'LDHT', 'LDOU',
  12581. 'LDO', 'LDSF', 'LDTU', 'LDT', 'LDUNC', 'LDVTS', 'LDWU', 'LDW',
  12582. 'PREGO', 'PRELD', 'PREST', 'PUSHGO', 'STBU', 'STB', 'STCO', 'STHT',
  12583. 'STOU', 'STSF', 'STTU', 'STT', 'STUNC', 'SYNCD', 'SYNCID', can have
  12584. a value nearby an initial value in place of its second and third
  12585. operands. Here, "nearby" is defined as within the range 0...255
  12586. from the initial value of such an allocated register.
  12587. buffer1 BYTE 0,0,0,0,0
  12588. buffer2 BYTE 0,0,0,0,0
  12589. ...
  12590. GREG buffer1
  12591. LDOU $42,buffer2
  12592. In the example above, the 'Y' field of the 'LDOUI' instruction
  12593. (LDOU with a constant Z) will be replaced with the global register
  12594. allocated for 'buffer1', and the 'Z' field will have the value 5,
  12595. the offset from 'buffer1' to 'buffer2'. The result is equivalent
  12596. to this code:
  12597. buffer1 BYTE 0,0,0,0,0
  12598. buffer2 BYTE 0,0,0,0,0
  12599. ...
  12600. tmpreg GREG buffer1
  12601. LDOU $42,tmpreg,(buffer2-buffer1)
  12602. Global registers allocated with this directive are allocated in
  12603. order higher-to-lower within a file. Other than that, the exact
  12604. order of register allocation and elimination is undefined. For
  12605. example, the order is undefined when more than one file with such
  12606. directives are linked together. With the options '-x' and
  12607. '--linker-allocated-gregs', 'GREG' directives for two-operand cases
  12608. like the one mentioned above can be omitted. Sufficient global
  12609. registers will then be allocated by the linker.
  12610. 'BYTE'
  12611. The 'BYTE' directive takes a series of operands separated by a
  12612. comma. If an operand is a string (*note Strings::), each character
  12613. of that string is emitted as a byte. Other operands must be
  12614. constant expressions without forward references, in the range
  12615. 0...255. If you need operands having expressions with forward
  12616. references, use '.byte' (*note Byte::). An operand can be omitted,
  12617. defaulting to a zero value.
  12618. 'WYDE'
  12619. 'TETRA'
  12620. 'OCTA'
  12621. The directives 'WYDE', 'TETRA' and 'OCTA' emit constants of two,
  12622. four and eight bytes size respectively. Before anything else
  12623. happens for the directive, the current location is aligned to the
  12624. respective constant-size boundary. If a label is defined at the
  12625. beginning of the line, its value will be that after the alignment.
  12626. A single operand can be omitted, defaulting to a zero value emitted
  12627. for the directive. Operands can be expressed as strings (*note
  12628. Strings::), in which case each character in the string is emitted
  12629. as a separate constant of the size indicated by the directive.
  12630. 'PREFIX'
  12631. The 'PREFIX' directive sets a symbol name prefix to be prepended to
  12632. all symbols (except local symbols, *note MMIX-Symbols::), that are
  12633. not prefixed with ':', until the next 'PREFIX' directive. Such
  12634. prefixes accumulate. For example,
  12635. PREFIX a
  12636. PREFIX b
  12637. c IS 0
  12638. defines a symbol 'abc' with the value 0.
  12639. 'BSPEC'
  12640. 'ESPEC'
  12641. A pair of 'BSPEC' and 'ESPEC' directives delimit a section of
  12642. special contents (without specified semantics). Example:
  12643. BSPEC 42
  12644. TETRA 1,2,3
  12645. ESPEC
  12646. The single operand to 'BSPEC' must be number in the range 0...255.
  12647. The 'BSPEC' number 80 is used by the GNU binutils implementation.
  12648. 
  12649. File: as.info, Node: MMIX-mmixal, Prev: MMIX-Syntax, Up: MMIX-Dependent
  12650. 9.28.4 Differences to 'mmixal'
  12651. ------------------------------
  12652. The binutils 'as' and 'ld' combination has a few differences in function
  12653. compared to 'mmixal' (*note mmixsite::).
  12654. The replacement of a symbol with a GREG-allocated register (*note
  12655. GREG-base::) is not handled the exactly same way in 'as' as in 'mmixal'.
  12656. This is apparent in the 'mmixal' example file 'inout.mms', where
  12657. different registers with different offsets, eventually yielding the same
  12658. address, are used in the first instruction. This type of difference
  12659. should however not affect the function of any program unless it has
  12660. specific assumptions about the allocated register number.
  12661. Line numbers (in the 'mmo' object format) are currently not
  12662. supported.
  12663. Expression operator precedence is not that of mmixal: operator
  12664. precedence is that of the C programming language. It's recommended to
  12665. use parentheses to explicitly specify wanted operator precedence
  12666. whenever more than one type of operators are used.
  12667. The serialize unary operator '&', the fractional division operator
  12668. '//', the logical not operator '!' and the modulus operator '%' are not
  12669. available.
  12670. Symbols are not global by default, unless the option
  12671. '--globalize-symbols' is passed. Use the '.global' directive to
  12672. globalize symbols (*note Global::).
  12673. Operand syntax is a bit stricter with 'as' than 'mmixal'. For
  12674. example, you can't say 'addu 1,2,3', instead you must write 'addu
  12675. $1,$2,3'.
  12676. You can't LOC to a lower address than those already visited (i.e.,
  12677. "backwards").
  12678. A LOC directive must come before any emitted code.
  12679. Predefined symbols are visible as file-local symbols after use. (In
  12680. the ELF file, that is--the linked mmo file has no notion of a file-local
  12681. symbol.)
  12682. Some mapping of constant expressions to sections in LOC expressions
  12683. is attempted, but that functionality is easily confused and should be
  12684. avoided unless compatibility with 'mmixal' is required. A LOC
  12685. expression to '0x2000000000000000' or higher, maps to the '.data'
  12686. section and lower addresses map to the '.text' section (*note
  12687. MMIX-loc::).
  12688. The code and data areas are each contiguous. Sparse programs with
  12689. far-away LOC directives will take up the same amount of space as a
  12690. contiguous program with zeros filled in the gaps between the LOC
  12691. directives. If you need sparse programs, you might try and get the
  12692. wanted effect with a linker script and splitting up the code parts into
  12693. sections (*note Section::). Assembly code for this, to be compatible
  12694. with 'mmixal', would look something like:
  12695. .if 0
  12696. LOC away_expression
  12697. .else
  12698. .section away,"ax"
  12699. .fi
  12700. 'as' will not execute the LOC directive and 'mmixal' ignores the
  12701. lines with '.'. This construct can be used generally to help
  12702. compatibility.
  12703. Symbols can't be defined twice-not even to the same value.
  12704. Instruction mnemonics are recognized case-insensitive, though the
  12705. 'IS' and 'GREG' pseudo-operations must be specified in upper-case
  12706. characters.
  12707. There's no unicode support.
  12708. The following is a list of programs in 'mmix.tar.gz', available at
  12709. <http://www-cs-faculty.stanford.edu/~knuth/mmix-news.html>, last checked
  12710. with the version dated 2001-08-25 (md5sum
  12711. c393470cfc86fac040487d22d2bf0172) that assemble with 'mmixal' but do not
  12712. assemble with 'as':
  12713. 'silly.mms'
  12714. LOC to a previous address.
  12715. 'sim.mms'
  12716. Redefines symbol 'Done'.
  12717. 'test.mms'
  12718. Uses the serial operator '&'.
  12719. 
  12720. File: as.info, Node: MSP430-Dependent, Next: NDS32-Dependent, Prev: MMIX-Dependent, Up: Machine Dependencies
  12721. 9.29 MSP 430 Dependent Features
  12722. ===============================
  12723. * Menu:
  12724. * MSP430 Options:: Options
  12725. * MSP430 Syntax:: Syntax
  12726. * MSP430 Floating Point:: Floating Point
  12727. * MSP430 Directives:: MSP 430 Machine Directives
  12728. * MSP430 Opcodes:: Opcodes
  12729. * MSP430 Profiling Capability:: Profiling Capability
  12730. 
  12731. File: as.info, Node: MSP430 Options, Next: MSP430 Syntax, Up: MSP430-Dependent
  12732. 9.29.1 Options
  12733. --------------
  12734. '-mmcu'
  12735. selects the mcu architecture. If the architecture is 430Xv2 then
  12736. this also enables NOP generation unless the '-mN' is also
  12737. specified.
  12738. '-mcpu'
  12739. selects the cpu architecture. If the architecture is 430Xv2 then
  12740. this also enables NOP generation unless the '-mN' is also
  12741. specified.
  12742. '-msilicon-errata=NAME[,NAME...]'
  12743. Implements a fixup for named silicon errata. Multiple silicon
  12744. errata can be specified by multiple uses of the '-msilicon-errata'
  12745. option and/or by including the errata names, separated by commas,
  12746. on an individual '-msilicon-errata' option. Errata names currently
  12747. recognised by the assembler are:
  12748. 'cpu4'
  12749. 'PUSH #4' and 'PUSH #8' need longer encodings on the MSP430.
  12750. This option is enabled by default, and cannot be disabled.
  12751. 'cpu8'
  12752. Do not set the 'SP' to an odd value.
  12753. 'cpu11'
  12754. Do not update the 'SR' and the 'PC' in the same instruction.
  12755. 'cpu12'
  12756. Do not use the 'PC' in a 'CMP' or 'BIT' instruction.
  12757. 'cpu13'
  12758. Do not use an arithmetic instruction to modify the 'SR'.
  12759. 'cpu19'
  12760. Insert 'NOP' after 'CPUOFF'.
  12761. '-msilicon-errata-warn=NAME[,NAME...]'
  12762. Like the '-msilicon-errata' option except that instead of fixing
  12763. the specified errata, a warning message is issued instead. This
  12764. option can be used alongside '-msilicon-errata' to generate
  12765. messages whenever a problem is fixed, or on its own in order to
  12766. inspect code for potential problems.
  12767. '-mP'
  12768. enables polymorph instructions handler.
  12769. '-mQ'
  12770. enables relaxation at assembly time. DANGEROUS!
  12771. '-ml'
  12772. indicates that the input uses the large code model.
  12773. '-mn'
  12774. enables the generation of a NOP instruction following any
  12775. instruction that might change the interrupts enabled/disabled
  12776. state. The pipelined nature of the MSP430 core means that any
  12777. instruction that changes the interrupt state ('EINT', 'DINT', 'BIC
  12778. #8, SR', 'BIS #8, SR' or 'MOV.W <>, SR') must be followed by a NOP
  12779. instruction in order to ensure the correct processing of
  12780. interrupts. By default it is up to the programmer to supply these
  12781. NOP instructions, but this command-line option enables the
  12782. automatic insertion by the assembler, if they are missing.
  12783. '-mN'
  12784. disables the generation of a NOP instruction following any
  12785. instruction that might change the interrupts enabled/disabled
  12786. state. This is the default behaviour.
  12787. '-my'
  12788. tells the assembler to generate a warning message if a NOP does not
  12789. immediately follow an instruction that enables or disables
  12790. interrupts. This is the default.
  12791. Note that this option can be stacked with the '-mn' option so that
  12792. the assembler will both warn about missing NOP instructions and
  12793. then insert them automatically.
  12794. '-mY'
  12795. disables warnings about missing NOP instructions.
  12796. '-md'
  12797. mark the object file as one that requires data to copied from ROM
  12798. to RAM at execution startup. Disabled by default.
  12799. '-mdata-region=REGION'
  12800. Select the region data will be placed in. Region placement is
  12801. performed by the compiler and linker. The only effect this option
  12802. will have on the assembler is that if UPPER or EITHER is selected,
  12803. then the symbols to initialise high data and bss will be defined.
  12804. Valid REGION values are:
  12805. 'none'
  12806. 'lower'
  12807. 'upper'
  12808. 'either'
  12809. 
  12810. File: as.info, Node: MSP430 Syntax, Next: MSP430 Floating Point, Prev: MSP430 Options, Up: MSP430-Dependent
  12811. 9.29.2 Syntax
  12812. -------------
  12813. * Menu:
  12814. * MSP430-Macros:: Macros
  12815. * MSP430-Chars:: Special Characters
  12816. * MSP430-Regs:: Register Names
  12817. * MSP430-Ext:: Assembler Extensions
  12818. 
  12819. File: as.info, Node: MSP430-Macros, Next: MSP430-Chars, Up: MSP430 Syntax
  12820. 9.29.2.1 Macros
  12821. ...............
  12822. The macro syntax used on the MSP 430 is like that described in the MSP
  12823. 430 Family Assembler Specification. Normal 'as' macros should still
  12824. work.
  12825. Additional built-in macros are:
  12826. 'llo(exp)'
  12827. Extracts least significant word from 32-bit expression 'exp'.
  12828. 'lhi(exp)'
  12829. Extracts most significant word from 32-bit expression 'exp'.
  12830. 'hlo(exp)'
  12831. Extracts 3rd word from 64-bit expression 'exp'.
  12832. 'hhi(exp)'
  12833. Extracts 4rd word from 64-bit expression 'exp'.
  12834. They normally being used as an immediate source operand.
  12835. mov #llo(1), r10 ; == mov #1, r10
  12836. mov #lhi(1), r10 ; == mov #0, r10
  12837. 
  12838. File: as.info, Node: MSP430-Chars, Next: MSP430-Regs, Prev: MSP430-Macros, Up: MSP430 Syntax
  12839. 9.29.2.2 Special Characters
  12840. ...........................
  12841. A semicolon (';') appearing anywhere on a line starts a comment that
  12842. extends to the end of that line.
  12843. If a '#' appears as the first character of a line then the whole line
  12844. is treated as a comment, but it can also be a logical line number
  12845. directive (*note Comments::) or a preprocessor control command (*note
  12846. Preprocessing::).
  12847. Multiple statements can appear on the same line provided that they
  12848. are separated by the '{' character.
  12849. The character '$' in jump instructions indicates current location and
  12850. implemented only for TI syntax compatibility.
  12851. 
  12852. File: as.info, Node: MSP430-Regs, Next: MSP430-Ext, Prev: MSP430-Chars, Up: MSP430 Syntax
  12853. 9.29.2.3 Register Names
  12854. .......................
  12855. General-purpose registers are represented by predefined symbols of the
  12856. form 'rN' (for global registers), where N represents a number between
  12857. '0' and '15'. The leading letters may be in either upper or lower case;
  12858. for example, 'r13' and 'R7' are both valid register names.
  12859. Register names 'PC', 'SP' and 'SR' cannot be used as register names
  12860. and will be treated as variables. Use 'r0', 'r1', and 'r2' instead.
  12861. 
  12862. File: as.info, Node: MSP430-Ext, Prev: MSP430-Regs, Up: MSP430 Syntax
  12863. 9.29.2.4 Assembler Extensions
  12864. .............................
  12865. '@rN'
  12866. As destination operand being treated as '0(rn)'
  12867. '0(rN)'
  12868. As source operand being treated as '@rn'
  12869. 'jCOND +N'
  12870. Skips next N bytes followed by jump instruction and equivalent to
  12871. 'jCOND $+N+2'
  12872. Also, there are some instructions, which cannot be found in other
  12873. assemblers. These are branch instructions, which has different opcodes
  12874. upon jump distance. They all got PC relative addressing mode.
  12875. 'beq label'
  12876. A polymorph instruction which is 'jeq label' in case if jump
  12877. distance within allowed range for cpu's jump instruction. If not,
  12878. this unrolls into a sequence of
  12879. jne $+6
  12880. br label
  12881. 'bne label'
  12882. A polymorph instruction which is 'jne label' or 'jeq +4; br label'
  12883. 'blt label'
  12884. A polymorph instruction which is 'jl label' or 'jge +4; br label'
  12885. 'bltn label'
  12886. A polymorph instruction which is 'jn label' or 'jn +2; jmp +4; br
  12887. label'
  12888. 'bltu label'
  12889. A polymorph instruction which is 'jlo label' or 'jhs +2; br label'
  12890. 'bge label'
  12891. A polymorph instruction which is 'jge label' or 'jl +4; br label'
  12892. 'bgeu label'
  12893. A polymorph instruction which is 'jhs label' or 'jlo +4; br label'
  12894. 'bgt label'
  12895. A polymorph instruction which is 'jeq +2; jge label' or 'jeq +6; jl
  12896. +4; br label'
  12897. 'bgtu label'
  12898. A polymorph instruction which is 'jeq +2; jhs label' or 'jeq +6;
  12899. jlo +4; br label'
  12900. 'bleu label'
  12901. A polymorph instruction which is 'jeq label; jlo label' or 'jeq +2;
  12902. jhs +4; br label'
  12903. 'ble label'
  12904. A polymorph instruction which is 'jeq label; jl label' or 'jeq +2;
  12905. jge +4; br label'
  12906. 'jump label'
  12907. A polymorph instruction which is 'jmp label' or 'br label'
  12908. 
  12909. File: as.info, Node: MSP430 Floating Point, Next: MSP430 Directives, Prev: MSP430 Syntax, Up: MSP430-Dependent
  12910. 9.29.3 Floating Point
  12911. ---------------------
  12912. The MSP 430 family uses IEEE 32-bit floating-point numbers.
  12913. 
  12914. File: as.info, Node: MSP430 Directives, Next: MSP430 Opcodes, Prev: MSP430 Floating Point, Up: MSP430-Dependent
  12915. 9.29.4 MSP 430 Machine Directives
  12916. ---------------------------------
  12917. '.file'
  12918. This directive is ignored; it is accepted for compatibility with
  12919. other MSP 430 assemblers.
  12920. _Warning:_ in other versions of the GNU assembler, '.file' is
  12921. used for the directive called '.app-file' in the MSP 430
  12922. support.
  12923. '.line'
  12924. This directive is ignored; it is accepted for compatibility with
  12925. other MSP 430 assemblers.
  12926. '.arch'
  12927. Sets the target microcontroller in the same way as the '-mmcu'
  12928. command-line option.
  12929. '.cpu'
  12930. Sets the target architecture in the same way as the '-mcpu'
  12931. command-line option.
  12932. '.profiler'
  12933. This directive instructs assembler to add new profile entry to the
  12934. object file.
  12935. '.refsym'
  12936. This directive instructs assembler to add an undefined reference to
  12937. the symbol following the directive. The maximum symbol name length
  12938. is 1023 characters. No relocation is created for this symbol; it
  12939. will exist purely for pulling in object files from archives. Note
  12940. that this reloc is not sufficient to prevent garbage collection;
  12941. use a KEEP() directive in the linker file to preserve such objects.
  12942. '.mspabi_attribute'
  12943. This directive tells the assembler what the MSPABI build attributes
  12944. for this file are. This is used for validating the command line
  12945. options passed to the assembler against the options the original
  12946. source file was compiled with. The expected format is:
  12947. '.mspabi_attribute tag_name, tag_value' For example, to set the tag
  12948. 'OFBA_MSPABI_Tag_ISA' to 'MSP430X': '.mspabi_attribute 4, 2'
  12949. See the 'MSP430 EABI, document slaa534' for the details on tag
  12950. names and values.
  12951. 
  12952. File: as.info, Node: MSP430 Opcodes, Next: MSP430 Profiling Capability, Prev: MSP430 Directives, Up: MSP430-Dependent
  12953. 9.29.5 Opcodes
  12954. --------------
  12955. 'as' implements all the standard MSP 430 opcodes. No additional
  12956. pseudo-instructions are needed on this family.
  12957. For information on the 430 machine instruction set, see 'MSP430
  12958. User's Manual, document slau049d', Texas Instrument, Inc.
  12959. 
  12960. File: as.info, Node: MSP430 Profiling Capability, Prev: MSP430 Opcodes, Up: MSP430-Dependent
  12961. 9.29.6 Profiling Capability
  12962. ---------------------------
  12963. It is a performance hit to use gcc's profiling approach for this tiny
  12964. target. Even more - jtag hardware facility does not perform any
  12965. profiling functions. However we've got gdb's built-in simulator where
  12966. we can do anything.
  12967. We define new section '.profiler' which holds all profiling
  12968. information. We define new pseudo operation '.profiler' which will
  12969. instruct assembler to add new profile entry to the object file. Profile
  12970. should take place at the present address.
  12971. Pseudo operation format:
  12972. '.profiler flags,function_to_profile [, cycle_corrector, extra]'
  12973. where:
  12974. 'flags' is a combination of the following characters:
  12975. 's'
  12976. function entry
  12977. 'x'
  12978. function exit
  12979. 'i'
  12980. function is in init section
  12981. 'f'
  12982. function is in fini section
  12983. 'l'
  12984. library call
  12985. 'c'
  12986. libc standard call
  12987. 'd'
  12988. stack value demand
  12989. 'I'
  12990. interrupt service routine
  12991. 'P'
  12992. prologue start
  12993. 'p'
  12994. prologue end
  12995. 'E'
  12996. epilogue start
  12997. 'e'
  12998. epilogue end
  12999. 'j'
  13000. long jump / sjlj unwind
  13001. 'a'
  13002. an arbitrary code fragment
  13003. 't'
  13004. extra parameter saved (a constant value like frame size)
  13005. 'function_to_profile'
  13006. a function address
  13007. 'cycle_corrector'
  13008. a value which should be added to the cycle counter, zero if
  13009. omitted.
  13010. 'extra'
  13011. any extra parameter, zero if omitted.
  13012. For example:
  13013. .global fxx
  13014. .type fxx,@function
  13015. fxx:
  13016. .LFrameOffset_fxx=0x08
  13017. .profiler "scdP", fxx ; function entry.
  13018. ; we also demand stack value to be saved
  13019. push r11
  13020. push r10
  13021. push r9
  13022. push r8
  13023. .profiler "cdpt",fxx,0, .LFrameOffset_fxx ; check stack value at this point
  13024. ; (this is a prologue end)
  13025. ; note, that spare var filled with
  13026. ; the farme size
  13027. mov r15,r8
  13028. ...
  13029. .profiler cdE,fxx ; check stack
  13030. pop r8
  13031. pop r9
  13032. pop r10
  13033. pop r11
  13034. .profiler xcde,fxx,3 ; exit adds 3 to the cycle counter
  13035. ret ; cause 'ret' insn takes 3 cycles
  13036. 
  13037. File: as.info, Node: NDS32-Dependent, Next: NiosII-Dependent, Prev: MSP430-Dependent, Up: Machine Dependencies
  13038. 9.30 NDS32 Dependent Features
  13039. =============================
  13040. The NDS32 processors family includes high-performance and low-power
  13041. 32-bit processors for high-end to low-end. GNU 'as' for NDS32
  13042. architectures supports NDS32 ISA version 3. For detail about NDS32
  13043. instruction set, please see the AndeStar ISA User Manual which is
  13044. available at http://www.andestech.com/en/index/index.htm
  13045. * Menu:
  13046. * NDS32 Options:: Assembler options
  13047. * NDS32 Syntax:: High-level assembly macros
  13048. 
  13049. File: as.info, Node: NDS32 Options, Next: NDS32 Syntax, Up: NDS32-Dependent
  13050. 9.30.1 NDS32 Options
  13051. --------------------
  13052. The NDS32 configurations of GNU 'as' support these special options:
  13053. '-O1'
  13054. Optimize for performance.
  13055. '-Os'
  13056. Optimize for space.
  13057. '-EL'
  13058. Produce little endian data output.
  13059. '-EB'
  13060. Produce little endian data output.
  13061. '-mpic'
  13062. Generate PIC.
  13063. '-mno-fp-as-gp-relax'
  13064. Suppress fp-as-gp relaxation for this file.
  13065. '-mb2bb-relax'
  13066. Back-to-back branch optimization.
  13067. '-mno-all-relax'
  13068. Suppress all relaxation for this file.
  13069. '-march=<arch name>'
  13070. Assemble for architecture <arch name> which could be v3, v3j, v3m,
  13071. v3f, v3s, v2, v2j, v2f, v2s.
  13072. '-mbaseline=<baseline>'
  13073. Assemble for baseline <baseline> which could be v2, v3, v3m.
  13074. '-mfpu-freg=FREG'
  13075. Specify a FPU configuration.
  13076. '0 8 SP / 4 DP registers'
  13077. '1 16 SP / 8 DP registers'
  13078. '2 32 SP / 16 DP registers'
  13079. '3 32 SP / 32 DP registers'
  13080. '-mabi=ABI'
  13081. Specify a abi version <abi> could be v1, v2, v2fp, v2fpp.
  13082. '-m[no-]mac'
  13083. Enable/Disable Multiply instructions support.
  13084. '-m[no-]div'
  13085. Enable/Disable Divide instructions support.
  13086. '-m[no-]16bit-ext'
  13087. Enable/Disable 16-bit extension
  13088. '-m[no-]dx-regs'
  13089. Enable/Disable d0/d1 registers
  13090. '-m[no-]perf-ext'
  13091. Enable/Disable Performance extension
  13092. '-m[no-]perf2-ext'
  13093. Enable/Disable Performance extension 2
  13094. '-m[no-]string-ext'
  13095. Enable/Disable String extension
  13096. '-m[no-]reduced-regs'
  13097. Enable/Disable Reduced Register configuration (GPR16) option
  13098. '-m[no-]audio-isa-ext'
  13099. Enable/Disable AUDIO ISA extension
  13100. '-m[no-]fpu-sp-ext'
  13101. Enable/Disable FPU SP extension
  13102. '-m[no-]fpu-dp-ext'
  13103. Enable/Disable FPU DP extension
  13104. '-m[no-]fpu-fma'
  13105. Enable/Disable FPU fused-multiply-add instructions
  13106. '-mall-ext'
  13107. Turn on all extensions and instructions support
  13108. 
  13109. File: as.info, Node: NDS32 Syntax, Prev: NDS32 Options, Up: NDS32-Dependent
  13110. 9.30.2 Syntax
  13111. -------------
  13112. * Menu:
  13113. * NDS32-Chars:: Special Characters
  13114. * NDS32-Regs:: Register Names
  13115. * NDS32-Ops:: Pseudo Instructions
  13116. 
  13117. File: as.info, Node: NDS32-Chars, Next: NDS32-Regs, Up: NDS32 Syntax
  13118. 9.30.2.1 Special Characters
  13119. ...........................
  13120. Use '#' at column 1 and '!' anywhere in the line except inside quotes.
  13121. Multiple instructions in a line are allowed though not recommended
  13122. and should be separated by ';'.
  13123. Assembler is not case-sensitive in general except user defined label.
  13124. For example, 'jral F1' is different from 'jral f1' while it is the same
  13125. as 'JRAL F1'.
  13126. 
  13127. File: as.info, Node: NDS32-Regs, Next: NDS32-Ops, Prev: NDS32-Chars, Up: NDS32 Syntax
  13128. 9.30.2.2 Register Names
  13129. .......................
  13130. 'General purpose registers (GPR)'
  13131. There are 32 32-bit general purpose registers $r0 to $r31.
  13132. 'Accumulators d0 and d1'
  13133. 64-bit accumulators: $d0.hi, $d0.lo, $d1.hi, and $d1.lo.
  13134. 'Assembler reserved register $ta'
  13135. Register $ta ($r15) is reserved for assembler using.
  13136. 'Operating system reserved registers $p0 and $p1'
  13137. Registers $p0 ($r26) and $p1 ($r27) are used by operating system as
  13138. scratch registers.
  13139. 'Frame pointer $fp'
  13140. Register $r28 is regarded as the frame pointer.
  13141. 'Global pointer'
  13142. Register $r29 is regarded as the global pointer.
  13143. 'Link pointer'
  13144. Register $r30 is regarded as the link pointer.
  13145. 'Stack pointer'
  13146. Register $r31 is regarded as the stack pointer.
  13147. 
  13148. File: as.info, Node: NDS32-Ops, Prev: NDS32-Regs, Up: NDS32 Syntax
  13149. 9.30.2.3 Pseudo Instructions
  13150. ............................
  13151. 'li rt5,imm32'
  13152. load 32-bit integer into register rt5. 'sethi rt5,hi20(imm32)' and
  13153. then 'ori rt5,reg,lo12(imm32)'.
  13154. 'la rt5,var'
  13155. Load 32-bit address of var into register rt5. 'sethi
  13156. rt5,hi20(var)' and then 'ori reg,rt5,lo12(var)'
  13157. 'l.[bhw] rt5,var'
  13158. Load value of var into register rt5. 'sethi $ta,hi20(var)' and
  13159. then 'l[bhw]i rt5,[$ta+lo12(var)]'
  13160. 'l.[bh]s rt5,var'
  13161. Load value of var into register rt5. 'sethi $ta,hi20(var)' and
  13162. then 'l[bh]si rt5,[$ta+lo12(var)]'
  13163. 'l.[bhw]p rt5,var,inc'
  13164. Load value of var into register rt5 and increment $ta by amount
  13165. inc. 'la $ta,var' and then 'l[bhw]i.bi rt5,[$ta],inc'
  13166. 'l.[bhw]pc rt5,inc'
  13167. Continue loading value of var into register rt5 and increment $ta
  13168. by amount inc. 'l[bhw]i.bi rt5,[$ta],inc.'
  13169. 'l.[bh]sp rt5,var,inc'
  13170. Load value of var into register rt5 and increment $ta by amount
  13171. inc. 'la $ta,var' and then 'l[bh]si.bi rt5,[$ta],inc'
  13172. 'l.[bh]spc rt5,inc'
  13173. Continue loading value of var into register rt5 and increment $ta
  13174. by amount inc. 'l[bh]si.bi rt5,[$ta],inc.'
  13175. 's.[bhw] rt5,var'
  13176. Store register rt5 to var. 'sethi $ta,hi20(var)' and then 's[bhw]i
  13177. rt5,[$ta+lo12(var)]'
  13178. 's.[bhw]p rt5,var,inc'
  13179. Store register rt5 to var and increment $ta by amount inc. 'la
  13180. $ta,var' and then 's[bhw]i.bi rt5,[$ta],inc'
  13181. 's.[bhw]pc rt5,inc'
  13182. Continue storing register rt5 to var and increment $ta by amount
  13183. inc. 's[bhw]i.bi rt5,[$ta],inc.'
  13184. 'not rt5,ra5'
  13185. Alias of 'nor rt5,ra5,ra5'.
  13186. 'neg rt5,ra5'
  13187. Alias of 'subri rt5,ra5,0'.
  13188. 'br rb5'
  13189. Depending on how it is assembled, it is translated into 'r5 rb5' or
  13190. 'jr rb5'.
  13191. 'b label'
  13192. Branch to label depending on how it is assembled, it is translated
  13193. into 'j8 label', 'j label', or "'la $ta,label' 'br $ta'".
  13194. 'bral rb5'
  13195. Alias of jral br5 depending on how it is assembled, it is
  13196. translated into 'jral5 rb5' or 'jral rb5'.
  13197. 'bal fname'
  13198. Alias of jal fname depending on how it is assembled, it is
  13199. translated into 'jal fname' or "'la $ta,fname' 'bral $ta'".
  13200. 'call fname'
  13201. Call function fname same as 'jal fname'.
  13202. 'move rt5,ra5'
  13203. For 16-bit, this is 'mov55 rt5,ra5'. For no 16-bit, this is 'ori
  13204. rt5,ra5,0'.
  13205. 'move rt5,var'
  13206. This is the same as 'l.w rt5,var'.
  13207. 'move rt5,imm32'
  13208. This is the same as 'li rt5,imm32'.
  13209. 'pushm ra5,rb5'
  13210. Push contents of registers from ra5 to rb5 into stack.
  13211. 'push ra5'
  13212. Push content of register ra5 into stack. (same 'pushm ra5,ra5').
  13213. 'push.d var'
  13214. Push value of double-word variable var into stack.
  13215. 'push.w var'
  13216. Push value of word variable var into stack.
  13217. 'push.h var'
  13218. Push value of half-word variable var into stack.
  13219. 'push.b var'
  13220. Push value of byte variable var into stack.
  13221. 'pusha var'
  13222. Push 32-bit address of variable var into stack.
  13223. 'pushi imm32'
  13224. Push 32-bit immediate value into stack.
  13225. 'popm ra5,rb5'
  13226. Pop top of stack values into registers ra5 to rb5.
  13227. 'pop rt5'
  13228. Pop top of stack value into register. (same as 'popm rt5,rt5'.)
  13229. 'pop.d var,ra5'
  13230. Pop value of double-word variable var from stack using register ra5
  13231. as 2nd scratch register. (1st is $ta)
  13232. 'pop.w var,ra5'
  13233. Pop value of word variable var from stack using register ra5.
  13234. 'pop.h var,ra5'
  13235. Pop value of half-word variable var from stack using register ra5.
  13236. 'pop.b var,ra5'
  13237. Pop value of byte variable var from stack using register ra5.
  13238. 
  13239. File: as.info, Node: NiosII-Dependent, Next: NS32K-Dependent, Prev: NDS32-Dependent, Up: Machine Dependencies
  13240. 9.31 Nios II Dependent Features
  13241. ===============================
  13242. * Menu:
  13243. * Nios II Options:: Options
  13244. * Nios II Syntax:: Syntax
  13245. * Nios II Relocations:: Relocations
  13246. * Nios II Directives:: Nios II Machine Directives
  13247. * Nios II Opcodes:: Opcodes
  13248. 
  13249. File: as.info, Node: Nios II Options, Next: Nios II Syntax, Up: NiosII-Dependent
  13250. 9.31.1 Options
  13251. --------------
  13252. '-relax-section'
  13253. Replace identified out-of-range branches with PC-relative 'jmp'
  13254. sequences when possible. The generated code sequences are suitable
  13255. for use in position-independent code, but there is a practical
  13256. limit on the extended branch range because of the length of the
  13257. sequences. This option is the default.
  13258. '-relax-all'
  13259. Replace branch instructions not determinable to be in range and all
  13260. call instructions with 'jmp' and 'callr' sequences (respectively).
  13261. This option generates absolute relocations against the target
  13262. symbols and is not appropriate for position-independent code.
  13263. '-no-relax'
  13264. Do not replace any branches or calls.
  13265. '-EB'
  13266. Generate big-endian output.
  13267. '-EL'
  13268. Generate little-endian output. This is the default.
  13269. '-march=ARCHITECTURE'
  13270. This option specifies the target architecture. The assembler
  13271. issues an error message if an attempt is made to assemble an
  13272. instruction which will not execute on the target architecture. The
  13273. following architecture names are recognized: 'r1', 'r2'. The
  13274. default is 'r1'.
  13275. 
  13276. File: as.info, Node: Nios II Syntax, Next: Nios II Relocations, Prev: Nios II Options, Up: NiosII-Dependent
  13277. 9.31.2 Syntax
  13278. -------------
  13279. * Menu:
  13280. * Nios II Chars:: Special Characters
  13281. 
  13282. File: as.info, Node: Nios II Chars, Up: Nios II Syntax
  13283. 9.31.2.1 Special Characters
  13284. ...........................
  13285. '#' is the line comment character. ';' is the line separator character.
  13286. 
  13287. File: as.info, Node: Nios II Relocations, Next: Nios II Directives, Prev: Nios II Syntax, Up: NiosII-Dependent
  13288. 9.31.3 Nios II Machine Relocations
  13289. ----------------------------------
  13290. '%hiadj(EXPRESSION)'
  13291. Extract the upper 16 bits of EXPRESSION and add one if the 15th bit
  13292. is set.
  13293. The value of '%hiadj(EXPRESSION)' is:
  13294. ((EXPRESSION >> 16) & 0xffff) + ((EXPRESSION >> 15) & 0x01)
  13295. The '%hiadj' relocation is intended to be used with the 'addi',
  13296. 'ld' or 'st' instructions along with a '%lo', in order to load a
  13297. 32-bit constant.
  13298. movhi r2, %hiadj(symbol)
  13299. addi r2, r2, %lo(symbol)
  13300. '%hi(EXPRESSION)'
  13301. Extract the upper 16 bits of EXPRESSION.
  13302. '%lo(EXPRESSION)'
  13303. Extract the lower 16 bits of EXPRESSION.
  13304. '%gprel(EXPRESSION)'
  13305. Subtract the value of the symbol '_gp' from EXPRESSION.
  13306. The intention of the '%gprel' relocation is to have a fast small
  13307. area of memory which only takes a 16-bit immediate to access.
  13308. .section .sdata
  13309. fastint:
  13310. .int 123
  13311. .section .text
  13312. ldw r4, %gprel(fastint)(gp)
  13313. '%call(EXPRESSION)'
  13314. '%call_lo(EXPRESSION)'
  13315. '%call_hiadj(EXPRESSION)'
  13316. '%got(EXPRESSION)'
  13317. '%got_lo(EXPRESSION)'
  13318. '%got_hiadj(EXPRESSION)'
  13319. '%gotoff(EXPRESSION)'
  13320. '%gotoff_lo(EXPRESSION)'
  13321. '%gotoff_hiadj(EXPRESSION)'
  13322. '%tls_gd(EXPRESSION)'
  13323. '%tls_ie(EXPRESSION)'
  13324. '%tls_le(EXPRESSION)'
  13325. '%tls_ldm(EXPRESSION)'
  13326. '%tls_ldo(EXPRESSION)'
  13327. These relocations support the ABI for Linux Systems documented in
  13328. the 'Nios II Processor Reference Handbook'.
  13329. 
  13330. File: as.info, Node: Nios II Directives, Next: Nios II Opcodes, Prev: Nios II Relocations, Up: NiosII-Dependent
  13331. 9.31.4 Nios II Machine Directives
  13332. ---------------------------------
  13333. '.align EXPRESSION [, EXPRESSION]'
  13334. This is the generic '.align' directive, however this aligns to a
  13335. power of two.
  13336. '.half EXPRESSION'
  13337. Create an aligned constant 2 bytes in size.
  13338. '.word EXPRESSION'
  13339. Create an aligned constant 4 bytes in size.
  13340. '.dword EXPRESSION'
  13341. Create an aligned constant 8 bytes in size.
  13342. '.2byte EXPRESSION'
  13343. Create an unaligned constant 2 bytes in size.
  13344. '.4byte EXPRESSION'
  13345. Create an unaligned constant 4 bytes in size.
  13346. '.8byte EXPRESSION'
  13347. Create an unaligned constant 8 bytes in size.
  13348. '.16byte EXPRESSION'
  13349. Create an unaligned constant 16 bytes in size.
  13350. '.set noat'
  13351. Allows assembly code to use 'at' register without warning. Macro
  13352. or relaxation expansions generate warnings.
  13353. '.set at'
  13354. Assembly code using 'at' register generates warnings, and macro
  13355. expansion and relaxation are enabled.
  13356. '.set nobreak'
  13357. Allows assembly code to use 'ba' and 'bt' registers without
  13358. warning.
  13359. '.set break'
  13360. Turns warnings back on for using 'ba' and 'bt' registers.
  13361. '.set norelax'
  13362. Do not replace any branches or calls.
  13363. '.set relaxsection'
  13364. Replace identified out-of-range branches with 'jmp' sequences
  13365. (default).
  13366. '.set relaxsection'
  13367. Replace all branch and call instructions with 'jmp' and 'callr'
  13368. sequences.
  13369. '.set ...'
  13370. All other '.set' are the normal use.
  13371. 
  13372. File: as.info, Node: Nios II Opcodes, Prev: Nios II Directives, Up: NiosII-Dependent
  13373. 9.31.5 Opcodes
  13374. --------------
  13375. 'as' implements all the standard Nios II opcodes documented in the 'Nios
  13376. II Processor Reference Handbook', including the assembler
  13377. pseudo-instructions.
  13378. 
  13379. File: as.info, Node: NS32K-Dependent, Next: OpenRISC-Dependent, Prev: NiosII-Dependent, Up: Machine Dependencies
  13380. 9.32 NS32K Dependent Features
  13381. =============================
  13382. * Menu:
  13383. * NS32K Syntax:: Syntax
  13384. 
  13385. File: as.info, Node: NS32K Syntax, Up: NS32K-Dependent
  13386. 9.32.1 Syntax
  13387. -------------
  13388. * Menu:
  13389. * NS32K-Chars:: Special Characters
  13390. 
  13391. File: as.info, Node: NS32K-Chars, Up: NS32K Syntax
  13392. 9.32.1.1 Special Characters
  13393. ...........................
  13394. The presence of a '#' appearing anywhere on a line indicates the start
  13395. of a comment that extends to the end of that line.
  13396. If a '#' appears as the first character of a line then the whole line
  13397. is treated as a comment, but in this case the line can also be a logical
  13398. line number directive (*note Comments::) or a preprocessor control
  13399. command (*note Preprocessing::).
  13400. If Sequent compatibility has been configured into the assembler then
  13401. the '|' character appearing as the first character on a line will also
  13402. indicate the start of a line comment.
  13403. The ';' character can be used to separate statements on the same
  13404. line.
  13405. 
  13406. File: as.info, Node: OpenRISC-Dependent, Next: PDP-11-Dependent, Prev: NS32K-Dependent, Up: Machine Dependencies
  13407. 9.33 OPENRISC Dependent Features
  13408. ================================
  13409. * Menu:
  13410. * OpenRISC-Syntax:: Syntax
  13411. * OpenRISC-Float:: Floating Point
  13412. * OpenRISC-Directives:: OpenRISC Machine Directives
  13413. * OpenRISC-Opcodes:: Opcodes
  13414. 
  13415. File: as.info, Node: OpenRISC-Syntax, Next: OpenRISC-Float, Up: OpenRISC-Dependent
  13416. 9.33.1 OpenRISC Syntax
  13417. ----------------------
  13418. The assembler syntax follows the OpenRISC 1000 Architecture Manual.
  13419. * Menu:
  13420. * OpenRISC-Chars:: Special Characters
  13421. * OpenRISC-Regs:: Register Names
  13422. * OpenRISC-Relocs:: Relocations
  13423. 
  13424. File: as.info, Node: OpenRISC-Chars, Next: OpenRISC-Regs, Up: OpenRISC-Syntax
  13425. 9.33.1.1 Special Characters
  13426. ...........................
  13427. A '#' character appearing anywhere on a line indicates the start of a
  13428. comment that extends to the end of that line.
  13429. ';' can be used instead of a newline to separate statements.
  13430. 
  13431. File: as.info, Node: OpenRISC-Regs, Next: OpenRISC-Relocs, Prev: OpenRISC-Chars, Up: OpenRISC-Syntax
  13432. 9.33.1.2 Register Names
  13433. .......................
  13434. The OpenRISC register file contains 32 general pupose registers.
  13435. * The 32 general purpose registers are referred to as 'rN'.
  13436. * The stack pointer register 'r1' can be referenced using the alias
  13437. 'sp'.
  13438. * The frame pointer register 'r2' can be referenced using the alias
  13439. 'fp'.
  13440. * The link register 'r9' can be referenced using the alias 'lr'.
  13441. Floating point operations use the same general purpose registers.
  13442. The instructions 'lf.itof.s' (single precision) and 'lf.itof.d' (double
  13443. precision) can be used to convert integer values to floating point.
  13444. Likewise, instructions 'lf.ftoi.s' (single precision) and 'lf.ftoi.d'
  13445. (double precision) can be used to convert floating point to integer.
  13446. OpenRISC also contains privileged special purpose registers (SPRs).
  13447. The SPRs are accessed using the 'l.mfspr' and 'l.mtspr' instructions.
  13448. 
  13449. File: as.info, Node: OpenRISC-Relocs, Prev: OpenRISC-Regs, Up: OpenRISC-Syntax
  13450. 9.33.1.3 Relocations
  13451. ....................
  13452. ELF relocations are available as defined in the OpenRISC architecture
  13453. specification.
  13454. 'R_OR1K_HI_16_IN_INSN' is obtained using 'hi' and
  13455. 'R_OR1K_LO_16_IN_INSN' and 'R_OR1K_SLO16' are obtained using 'lo'. For
  13456. signed offsets 'R_OR1K_AHI16' is obtained from 'ha'. For example:
  13457. l.movhi r5, hi(symbol)
  13458. l.ori r5, r5, lo(symbol)
  13459. l.movhi r5, ha(symbol)
  13460. l.addi r5, r5, lo(symbol)
  13461. These "high" mnemonics extract bits 31:16 of their operand, and the
  13462. "low" mnemonics extract bits 15:0 of their operand.
  13463. The PC relative relocation 'R_OR1K_GOTPC_HI16' can be obtained by
  13464. enclosing an operand inside of 'gotpchi'. Likewise, the
  13465. 'R_OR1K_GOTPC_LO16' relocation can be obtained using 'gotpclo'. These
  13466. are mostly used when assembling PIC code. For example, the standard PIC
  13467. sequence on OpenRISC to get the base of the global offset table, PC
  13468. relative, into a register, can be performed as:
  13469. l.jal 0x8
  13470. l.movhi r17, gotpchi(_GLOBAL_OFFSET_TABLE_-4)
  13471. l.ori r17, r17, gotpclo(_GLOBAL_OFFSET_TABLE_+0)
  13472. l.add r17, r17, r9
  13473. Several relocations exist to allow the link editor to perform GOT
  13474. data references. The 'R_OR1K_GOT16' relocation can obtained by
  13475. enclosing an operand inside of 'got'. For example, assuming the GOT
  13476. base is in register 'r17'.
  13477. l.lwz r19, got(a)(r17)
  13478. l.lwz r21, 0(r19)
  13479. Also, several relocations exist for local GOT references. The
  13480. 'R_OR1K_GOTOFF_AHI16' relocation can obtained by enclosing an operand
  13481. inside of 'gotoffha'. Likewise, 'R_OR1K_GOTOFF_LO16' and
  13482. 'R_OR1K_GOTOFF_SLO16' can be obtained by enclosing an operand inside of
  13483. 'gotofflo'. For example, assuming the GOT base is in register 'rl7':
  13484. l.movhi r19, gotoffha(symbol)
  13485. l.add r19, r19, r17
  13486. l.lwz r19, gotofflo(symbol)(r19)
  13487. The above PC relative relocations use a 'l.jal' (jump) instruction
  13488. and reading of the link register to load the PC. OpenRISC also supports
  13489. page offset PC relative locations without a jump instruction using the
  13490. 'l.adrp' instruction. By default the 'l.adrp' instruction will create
  13491. an 'R_OR1K_PCREL_PG21' relocation. Likewise, 'BFD_RELOC_OR1K_LO13' and
  13492. 'BFD_RELOC_OR1K_SLO13' can be obtained by enclosing an operand inside of
  13493. 'po'. For example:
  13494. l.adrp r3, symbol
  13495. l.ori r4, r3, po(symbol)
  13496. l.lbz r5, po(symbol)(r3)
  13497. l.sb po(symbol)(r3), r6
  13498. Likewise the page offset relocations can be used with GOT references.
  13499. The relocation 'R_OR1K_GOT_PG21' can be obtained by enclosing an
  13500. 'l.adrp' immediate operand inside of 'got'. Likewise, 'R_OR1K_GOT_LO13'
  13501. can be obtained by enclosing an operand inside of 'gotpo'. For example
  13502. to load the value of a GOT symbol into register 'r5' we can do:
  13503. l.adrp r17, got(_GLOBAL_OFFSET_TABLE_)
  13504. l.lwz r5, gotpo(symbol)(r17)
  13505. There are many relocations that can be requested for access to thread
  13506. local storage variables. All of the OpenRISC TLS mnemonics are
  13507. supported:
  13508. * 'R_OR1K_TLS_GD_HI16' is requested using 'tlsgdhi'.
  13509. * 'R_OR1K_TLS_GD_LO16' is requested using 'tlsgdlo'.
  13510. * 'R_OR1K_TLS_GD_PG21' is requested using 'tldgd'.
  13511. * 'R_OR1K_TLS_GD_LO13' is requested using 'tlsgdpo'.
  13512. * 'R_OR1K_TLS_LDM_HI16' is requested using 'tlsldmhi'.
  13513. * 'R_OR1K_TLS_LDM_LO16' is requested using 'tlsldmlo'.
  13514. * 'R_OR1K_TLS_LDM_PG21' is requested using 'tldldm'.
  13515. * 'R_OR1K_TLS_LDM_LO13' is requested using 'tlsldmpo'.
  13516. * 'R_OR1K_TLS_LDO_HI16' is requested using 'dtpoffhi'.
  13517. * 'R_OR1K_TLS_LDO_LO16' is requested using 'dtpofflo'.
  13518. * 'R_OR1K_TLS_IE_HI16' is requested using 'gottpoffhi'.
  13519. * 'R_OR1K_TLS_IE_AHI16' is requested using 'gottpoffha'.
  13520. * 'R_OR1K_TLS_IE_LO16' is requested using 'gottpofflo'.
  13521. * 'R_OR1K_TLS_IE_PG21' is requested using 'gottp'.
  13522. * 'R_OR1K_TLS_IE_LO13' is requested using 'gottppo'.
  13523. * 'R_OR1K_TLS_LE_HI16' is requested using 'tpoffhi'.
  13524. * 'R_OR1K_TLS_LE_AHI16' is requested using 'tpoffha'.
  13525. * 'R_OR1K_TLS_LE_LO16' is requested using 'tpofflo'.
  13526. * 'R_OR1K_TLS_LE_SLO16' also is requested using 'tpofflo' depending
  13527. on the instruction format.
  13528. Here are some example TLS model sequences.
  13529. First, General Dynamic:
  13530. l.movhi r17, tlsgdhi(symbol)
  13531. l.ori r17, r17, tlsgdlo(symbol)
  13532. l.add r17, r17, r16
  13533. l.or r3, r17, r17
  13534. l.jal plt(__tls_get_addr)
  13535. l.nop
  13536. Initial Exec:
  13537. l.movhi r17, gottpoffhi(symbol)
  13538. l.add r17, r17, r16
  13539. l.lwz r17, gottpofflo(symbol)(r17)
  13540. l.add r17, r17, r10
  13541. l.lbs r17, 0(r17)
  13542. And finally, Local Exec:
  13543. l.movhi r17, tpoffha(symbol)
  13544. l.add r17, r17, r10
  13545. l.addi r17, r17, tpofflo(symbol)
  13546. l.lbs r17, 0(r17)
  13547. 
  13548. File: as.info, Node: OpenRISC-Float, Next: OpenRISC-Directives, Prev: OpenRISC-Syntax, Up: OpenRISC-Dependent
  13549. 9.33.2 Floating Point
  13550. ---------------------
  13551. OpenRISC uses IEEE floating-point numbers.
  13552. 
  13553. File: as.info, Node: OpenRISC-Directives, Next: OpenRISC-Opcodes, Prev: OpenRISC-Float, Up: OpenRISC-Dependent
  13554. 9.33.3 OpenRISC Machine Directives
  13555. ----------------------------------
  13556. The OpenRISC version of 'as' supports the following additional machine
  13557. directives:
  13558. '.align'
  13559. This must be followed by the desired alignment in bytes.
  13560. '.word'
  13561. On the OpenRISC, the '.word' directive produces a 32 bit value.
  13562. '.nodelay'
  13563. On the OpenRISC, the '.nodelay' directive sets a flag in elf
  13564. binaries indicating that the binary is generated catering for no
  13565. delay slots.
  13566. '.proc'
  13567. This directive is ignored. Any text following it on the same line
  13568. is also ignored.
  13569. '.endproc'
  13570. This directive is ignored. Any text following it on the same line
  13571. is also ignored.
  13572. 
  13573. File: as.info, Node: OpenRISC-Opcodes, Prev: OpenRISC-Directives, Up: OpenRISC-Dependent
  13574. 9.33.4 Opcodes
  13575. --------------
  13576. For detailed information on the OpenRISC machine instruction set, see
  13577. <http://www.openrisc.io/architecture/>.
  13578. 'as' implements all the standard OpenRISC opcodes.
  13579. 
  13580. File: as.info, Node: PDP-11-Dependent, Next: PJ-Dependent, Prev: OpenRISC-Dependent, Up: Machine Dependencies
  13581. 9.34 PDP-11 Dependent Features
  13582. ==============================
  13583. * Menu:
  13584. * PDP-11-Options:: Options
  13585. * PDP-11-Pseudos:: Assembler Directives
  13586. * PDP-11-Syntax:: DEC Syntax versus BSD Syntax
  13587. * PDP-11-Mnemonics:: Instruction Naming
  13588. * PDP-11-Synthetic:: Synthetic Instructions
  13589. 
  13590. File: as.info, Node: PDP-11-Options, Next: PDP-11-Pseudos, Up: PDP-11-Dependent
  13591. 9.34.1 Options
  13592. --------------
  13593. The PDP-11 version of 'as' has a rich set of machine dependent options.
  13594. 9.34.1.1 Code Generation Options
  13595. ................................
  13596. '-mpic | -mno-pic'
  13597. Generate position-independent (or position-dependent) code.
  13598. The default is to generate position-independent code.
  13599. 9.34.1.2 Instruction Set Extension Options
  13600. ..........................................
  13601. These options enables or disables the use of extensions over the base
  13602. line instruction set as introduced by the first PDP-11 CPU: the KA11.
  13603. Most options come in two variants: a '-m'EXTENSION that enables
  13604. EXTENSION, and a '-mno-'EXTENSION that disables EXTENSION.
  13605. The default is to enable all extensions.
  13606. '-mall | -mall-extensions'
  13607. Enable all instruction set extensions.
  13608. '-mno-extensions'
  13609. Disable all instruction set extensions.
  13610. '-mcis | -mno-cis'
  13611. Enable (or disable) the use of the commercial instruction set,
  13612. which consists of these instructions: 'ADDNI', 'ADDN', 'ADDPI',
  13613. 'ADDP', 'ASHNI', 'ASHN', 'ASHPI', 'ASHP', 'CMPCI', 'CMPC', 'CMPNI',
  13614. 'CMPN', 'CMPPI', 'CMPP', 'CVTLNI', 'CVTLN', 'CVTLPI', 'CVTLP',
  13615. 'CVTNLI', 'CVTNL', 'CVTNPI', 'CVTNP', 'CVTPLI', 'CVTPL', 'CVTPNI',
  13616. 'CVTPN', 'DIVPI', 'DIVP', 'L2DR', 'L3DR', 'LOCCI', 'LOCC', 'MATCI',
  13617. 'MATC', 'MOVCI', 'MOVC', 'MOVRCI', 'MOVRC', 'MOVTCI', 'MOVTC',
  13618. 'MULPI', 'MULP', 'SCANCI', 'SCANC', 'SKPCI', 'SKPC', 'SPANCI',
  13619. 'SPANC', 'SUBNI', 'SUBN', 'SUBPI', and 'SUBP'.
  13620. '-mcsm | -mno-csm'
  13621. Enable (or disable) the use of the 'CSM' instruction.
  13622. '-meis | -mno-eis'
  13623. Enable (or disable) the use of the extended instruction set, which
  13624. consists of these instructions: 'ASHC', 'ASH', 'DIV', 'MARK',
  13625. 'MUL', 'RTT', 'SOB' 'SXT', and 'XOR'.
  13626. '-mfis | -mkev11'
  13627. '-mno-fis | -mno-kev11'
  13628. Enable (or disable) the use of the KEV11 floating-point
  13629. instructions: 'FADD', 'FDIV', 'FMUL', and 'FSUB'.
  13630. '-mfpp | -mfpu | -mfp-11'
  13631. '-mno-fpp | -mno-fpu | -mno-fp-11'
  13632. Enable (or disable) the use of FP-11 floating-point instructions:
  13633. 'ABSF', 'ADDF', 'CFCC', 'CLRF', 'CMPF', 'DIVF', 'LDCFF', 'LDCIF',
  13634. 'LDEXP', 'LDF', 'LDFPS', 'MODF', 'MULF', 'NEGF', 'SETD', 'SETF',
  13635. 'SETI', 'SETL', 'STCFF', 'STCFI', 'STEXP', 'STF', 'STFPS', 'STST',
  13636. 'SUBF', and 'TSTF'.
  13637. '-mlimited-eis | -mno-limited-eis'
  13638. Enable (or disable) the use of the limited extended instruction
  13639. set: 'MARK', 'RTT', 'SOB', 'SXT', and 'XOR'.
  13640. The -mno-limited-eis options also implies -mno-eis.
  13641. '-mmfpt | -mno-mfpt'
  13642. Enable (or disable) the use of the 'MFPT' instruction.
  13643. '-mmultiproc | -mno-multiproc'
  13644. Enable (or disable) the use of multiprocessor instructions:
  13645. 'TSTSET' and 'WRTLCK'.
  13646. '-mmxps | -mno-mxps'
  13647. Enable (or disable) the use of the 'MFPS' and 'MTPS' instructions.
  13648. '-mspl | -mno-spl'
  13649. Enable (or disable) the use of the 'SPL' instruction.
  13650. Enable (or disable) the use of the microcode instructions: 'LDUB',
  13651. 'MED', and 'XFC'.
  13652. 9.34.1.3 CPU Model Options
  13653. ..........................
  13654. These options enable the instruction set extensions supported by a
  13655. particular CPU, and disables all other extensions.
  13656. '-mka11'
  13657. KA11 CPU. Base line instruction set only.
  13658. '-mkb11'
  13659. KB11 CPU. Enable extended instruction set and 'SPL'.
  13660. '-mkd11a'
  13661. KD11-A CPU. Enable limited extended instruction set.
  13662. '-mkd11b'
  13663. KD11-B CPU. Base line instruction set only.
  13664. '-mkd11d'
  13665. KD11-D CPU. Base line instruction set only.
  13666. '-mkd11e'
  13667. KD11-E CPU. Enable extended instruction set, 'MFPS', and 'MTPS'.
  13668. '-mkd11f | -mkd11h | -mkd11q'
  13669. KD11-F, KD11-H, or KD11-Q CPU. Enable limited extended instruction
  13670. set, 'MFPS', and 'MTPS'.
  13671. '-mkd11k'
  13672. KD11-K CPU. Enable extended instruction set, 'LDUB', 'MED', 'MFPS',
  13673. 'MFPT', 'MTPS', and 'XFC'.
  13674. '-mkd11z'
  13675. KD11-Z CPU. Enable extended instruction set, 'CSM', 'MFPS', 'MFPT',
  13676. 'MTPS', and 'SPL'.
  13677. '-mf11'
  13678. F11 CPU. Enable extended instruction set, 'MFPS', 'MFPT', and
  13679. 'MTPS'.
  13680. '-mj11'
  13681. J11 CPU. Enable extended instruction set, 'CSM', 'MFPS', 'MFPT',
  13682. 'MTPS', 'SPL', 'TSTSET', and 'WRTLCK'.
  13683. '-mt11'
  13684. T11 CPU. Enable limited extended instruction set, 'MFPS', and
  13685. 'MTPS'.
  13686. 9.34.1.4 Machine Model Options
  13687. ..............................
  13688. These options enable the instruction set extensions supported by a
  13689. particular machine model, and disables all other extensions.
  13690. '-m11/03'
  13691. Same as '-mkd11f'.
  13692. '-m11/04'
  13693. Same as '-mkd11d'.
  13694. '-m11/05 | -m11/10'
  13695. Same as '-mkd11b'.
  13696. '-m11/15 | -m11/20'
  13697. Same as '-mka11'.
  13698. '-m11/21'
  13699. Same as '-mt11'.
  13700. '-m11/23 | -m11/24'
  13701. Same as '-mf11'.
  13702. '-m11/34'
  13703. Same as '-mkd11e'.
  13704. '-m11/34a'
  13705. Ame as '-mkd11e' '-mfpp'.
  13706. '-m11/35 | -m11/40'
  13707. Same as '-mkd11a'.
  13708. '-m11/44'
  13709. Same as '-mkd11z'.
  13710. '-m11/45 | -m11/50 | -m11/55 | -m11/70'
  13711. Same as '-mkb11'.
  13712. '-m11/53 | -m11/73 | -m11/83 | -m11/84 | -m11/93 | -m11/94'
  13713. Same as '-mj11'.
  13714. '-m11/60'
  13715. Same as '-mkd11k'.
  13716. 
  13717. File: as.info, Node: PDP-11-Pseudos, Next: PDP-11-Syntax, Prev: PDP-11-Options, Up: PDP-11-Dependent
  13718. 9.34.2 Assembler Directives
  13719. ---------------------------
  13720. The PDP-11 version of 'as' has a few machine dependent assembler
  13721. directives.
  13722. '.bss'
  13723. Switch to the 'bss' section.
  13724. '.even'
  13725. Align the location counter to an even number.
  13726. 
  13727. File: as.info, Node: PDP-11-Syntax, Next: PDP-11-Mnemonics, Prev: PDP-11-Pseudos, Up: PDP-11-Dependent
  13728. 9.34.3 PDP-11 Assembly Language Syntax
  13729. --------------------------------------
  13730. 'as' supports both DEC syntax and BSD syntax. The only difference is
  13731. that in DEC syntax, a '#' character is used to denote an immediate
  13732. constants, while in BSD syntax the character for this purpose is '$'.
  13733. general-purpose registers are named 'r0' through 'r7'. Mnemonic
  13734. alternatives for 'r6' and 'r7' are 'sp' and 'pc', respectively.
  13735. Floating-point registers are named 'ac0' through 'ac3', or
  13736. alternatively 'fr0' through 'fr3'.
  13737. Comments are started with a '#' or a '/' character, and extend to the
  13738. end of the line. (FIXME: clash with immediates?)
  13739. Multiple statements on the same line can be separated by the ';'
  13740. character.
  13741. 
  13742. File: as.info, Node: PDP-11-Mnemonics, Next: PDP-11-Synthetic, Prev: PDP-11-Syntax, Up: PDP-11-Dependent
  13743. 9.34.4 Instruction Naming
  13744. -------------------------
  13745. Some instructions have alternative names.
  13746. 'BCC'
  13747. 'BHIS'
  13748. 'BCS'
  13749. 'BLO'
  13750. 'L2DR'
  13751. 'L2D'
  13752. 'L3DR'
  13753. 'L3D'
  13754. 'SYS'
  13755. 'TRAP'
  13756. 
  13757. File: as.info, Node: PDP-11-Synthetic, Prev: PDP-11-Mnemonics, Up: PDP-11-Dependent
  13758. 9.34.5 Synthetic Instructions
  13759. -----------------------------
  13760. The 'JBR' and 'J'CC synthetic instructions are not supported yet.
  13761. 
  13762. File: as.info, Node: PJ-Dependent, Next: PPC-Dependent, Prev: PDP-11-Dependent, Up: Machine Dependencies
  13763. 9.35 picoJava Dependent Features
  13764. ================================
  13765. * Menu:
  13766. * PJ Options:: Options
  13767. * PJ Syntax:: PJ Syntax
  13768. 
  13769. File: as.info, Node: PJ Options, Next: PJ Syntax, Up: PJ-Dependent
  13770. 9.35.1 Options
  13771. --------------
  13772. 'as' has two additional command-line options for the picoJava
  13773. architecture.
  13774. '-ml'
  13775. This option selects little endian data output.
  13776. '-mb'
  13777. This option selects big endian data output.
  13778. 
  13779. File: as.info, Node: PJ Syntax, Prev: PJ Options, Up: PJ-Dependent
  13780. 9.35.2 PJ Syntax
  13781. ----------------
  13782. * Menu:
  13783. * PJ-Chars:: Special Characters
  13784. 
  13785. File: as.info, Node: PJ-Chars, Up: PJ Syntax
  13786. 9.35.2.1 Special Characters
  13787. ...........................
  13788. The presence of a '!' or '/' on a line indicates the start of a comment
  13789. that extends to the end of the current line.
  13790. If a '#' appears as the first character of a line then the whole line
  13791. is treated as a comment, but in this case the line could also be a
  13792. logical line number directive (*note Comments::) or a preprocessor
  13793. control command (*note Preprocessing::).
  13794. The ';' character can be used to separate statements on the same
  13795. line.
  13796. 
  13797. File: as.info, Node: PPC-Dependent, Next: PRU-Dependent, Prev: PJ-Dependent, Up: Machine Dependencies
  13798. 9.36 PowerPC Dependent Features
  13799. ===============================
  13800. * Menu:
  13801. * PowerPC-Opts:: Options
  13802. * PowerPC-Pseudo:: PowerPC Assembler Directives
  13803. * PowerPC-Syntax:: PowerPC Syntax
  13804. 
  13805. File: as.info, Node: PowerPC-Opts, Next: PowerPC-Pseudo, Up: PPC-Dependent
  13806. 9.36.1 Options
  13807. --------------
  13808. The PowerPC chip family includes several successive levels, using the
  13809. same core instruction set, but including a few additional instructions
  13810. at each level. There are exceptions to this however. For details on
  13811. what instructions each variant supports, please see the chip's
  13812. architecture reference manual.
  13813. The following table lists all available PowerPC options.
  13814. '-a32'
  13815. Generate ELF32 or XCOFF32.
  13816. '-a64'
  13817. Generate ELF64 or XCOFF64.
  13818. '-K PIC'
  13819. Set EF_PPC_RELOCATABLE_LIB in ELF flags.
  13820. '-mpwrx | -mpwr2'
  13821. Generate code for POWER/2 (RIOS2).
  13822. '-mpwr'
  13823. Generate code for POWER (RIOS1)
  13824. '-m601'
  13825. Generate code for PowerPC 601.
  13826. '-mppc, -mppc32, -m603, -m604'
  13827. Generate code for PowerPC 603/604.
  13828. '-m403, -m405'
  13829. Generate code for PowerPC 403/405.
  13830. '-m440'
  13831. Generate code for PowerPC 440. BookE and some 405 instructions.
  13832. '-m464'
  13833. Generate code for PowerPC 464.
  13834. '-m476'
  13835. Generate code for PowerPC 476.
  13836. '-m7400, -m7410, -m7450, -m7455'
  13837. Generate code for PowerPC 7400/7410/7450/7455.
  13838. '-m750cl, -mgekko, -mbroadway'
  13839. Generate code for PowerPC 750CL/Gekko/Broadway.
  13840. '-m821, -m850, -m860'
  13841. Generate code for PowerPC 821/850/860.
  13842. '-mppc64, -m620'
  13843. Generate code for PowerPC 620/625/630.
  13844. '-me500, -me500x2'
  13845. Generate code for Motorola e500 core complex.
  13846. '-me500mc'
  13847. Generate code for Freescale e500mc core complex.
  13848. '-me500mc64'
  13849. Generate code for Freescale e500mc64 core complex.
  13850. '-me5500'
  13851. Generate code for Freescale e5500 core complex.
  13852. '-me6500'
  13853. Generate code for Freescale e6500 core complex.
  13854. '-mspe'
  13855. Generate code for Motorola SPE instructions.
  13856. '-mspe2'
  13857. Generate code for Freescale SPE2 instructions.
  13858. '-mtitan'
  13859. Generate code for AppliedMicro Titan core complex.
  13860. '-mppc64bridge'
  13861. Generate code for PowerPC 64, including bridge insns.
  13862. '-mbooke'
  13863. Generate code for 32-bit BookE.
  13864. '-ma2'
  13865. Generate code for A2 architecture.
  13866. '-me300'
  13867. Generate code for PowerPC e300 family.
  13868. '-maltivec'
  13869. Generate code for processors with AltiVec instructions.
  13870. '-mvle'
  13871. Generate code for Freescale PowerPC VLE instructions.
  13872. '-mvsx'
  13873. Generate code for processors with Vector-Scalar (VSX) instructions.
  13874. '-mhtm'
  13875. Generate code for processors with Hardware Transactional Memory
  13876. instructions.
  13877. '-mpower4, -mpwr4'
  13878. Generate code for Power4 architecture.
  13879. '-mpower5, -mpwr5, -mpwr5x'
  13880. Generate code for Power5 architecture.
  13881. '-mpower6, -mpwr6'
  13882. Generate code for Power6 architecture.
  13883. '-mpower7, -mpwr7'
  13884. Generate code for Power7 architecture.
  13885. '-mpower8, -mpwr8'
  13886. Generate code for Power8 architecture.
  13887. '-mpower9, -mpwr9'
  13888. Generate code for Power9 architecture.
  13889. '-mcell'
  13890. '-mcell'
  13891. Generate code for Cell Broadband Engine architecture.
  13892. '-mcom'
  13893. Generate code Power/PowerPC common instructions.
  13894. '-many'
  13895. Generate code for any architecture (PWR/PWRX/PPC).
  13896. '-mregnames'
  13897. Allow symbolic names for registers.
  13898. '-mno-regnames'
  13899. Do not allow symbolic names for registers.
  13900. '-mrelocatable'
  13901. Support for GCC's -mrelocatable option.
  13902. '-mrelocatable-lib'
  13903. Support for GCC's -mrelocatable-lib option.
  13904. '-memb'
  13905. Set PPC_EMB bit in ELF flags.
  13906. '-mlittle, -mlittle-endian, -le'
  13907. Generate code for a little endian machine.
  13908. '-mbig, -mbig-endian, -be'
  13909. Generate code for a big endian machine.
  13910. '-msolaris'
  13911. Generate code for Solaris.
  13912. '-mno-solaris'
  13913. Do not generate code for Solaris.
  13914. '-nops=COUNT'
  13915. If an alignment directive inserts more than COUNT nops, put a
  13916. branch at the beginning to skip execution of the nops.
  13917. 
  13918. File: as.info, Node: PowerPC-Pseudo, Next: PowerPC-Syntax, Prev: PowerPC-Opts, Up: PPC-Dependent
  13919. 9.36.2 PowerPC Assembler Directives
  13920. -----------------------------------
  13921. A number of assembler directives are available for PowerPC. The
  13922. following table is far from complete.
  13923. '.machine "string"'
  13924. This directive allows you to change the machine for which code is
  13925. generated. '"string"' may be any of the -m cpu selection options
  13926. (without the -m) enclosed in double quotes, '"push"', or '"pop"'.
  13927. '.machine "push"' saves the currently selected cpu, which may be
  13928. restored with '.machine "pop"'.
  13929. 
  13930. File: as.info, Node: PowerPC-Syntax, Prev: PowerPC-Pseudo, Up: PPC-Dependent
  13931. 9.36.3 PowerPC Syntax
  13932. ---------------------
  13933. * Menu:
  13934. * PowerPC-Chars:: Special Characters
  13935. 
  13936. File: as.info, Node: PowerPC-Chars, Up: PowerPC-Syntax
  13937. 9.36.3.1 Special Characters
  13938. ...........................
  13939. The presence of a '#' on a line indicates the start of a comment that
  13940. extends to the end of the current line.
  13941. If a '#' appears as the first character of a line then the whole line
  13942. is treated as a comment, but in this case the line could also be a
  13943. logical line number directive (*note Comments::) or a preprocessor
  13944. control command (*note Preprocessing::).
  13945. If the assembler has been configured for the ppc-*-solaris* target
  13946. then the '!' character also acts as a line comment character. This can
  13947. be disabled via the '-mno-solaris' command-line option.
  13948. The ';' character can be used to separate statements on the same
  13949. line.
  13950. 
  13951. File: as.info, Node: PRU-Dependent, Next: RISC-V-Dependent, Prev: PPC-Dependent, Up: Machine Dependencies
  13952. 9.37 PRU Dependent Features
  13953. ===========================
  13954. * Menu:
  13955. * PRU Options:: Options
  13956. * PRU Syntax:: Syntax
  13957. * PRU Relocations:: Relocations
  13958. * PRU Directives:: PRU Machine Directives
  13959. * PRU Opcodes:: Opcodes
  13960. 
  13961. File: as.info, Node: PRU Options, Next: PRU Syntax, Up: PRU-Dependent
  13962. 9.37.1 Options
  13963. --------------
  13964. '-mlink-relax'
  13965. Assume that LD would optimize LDI32 instructions by checking the
  13966. upper 16 bits of the EXPRESSION. If they are all zeros, then LD
  13967. would shorten the LDI32 instruction to a single LDI. In such case
  13968. 'as' will output DIFF relocations for diff expressions.
  13969. '-mno-link-relax'
  13970. Assume that LD would not optimize LDI32 instructions. As a
  13971. consequence, DIFF relocations will not be emitted.
  13972. '-mno-warn-regname-label'
  13973. Do not warn if a label name matches a register name. Usually
  13974. assembler programmers will want this warning to be emitted. C
  13975. compilers may want to turn this off.
  13976. 
  13977. File: as.info, Node: PRU Syntax, Next: PRU Relocations, Prev: PRU Options, Up: PRU-Dependent
  13978. 9.37.2 Syntax
  13979. -------------
  13980. * Menu:
  13981. * PRU Chars:: Special Characters
  13982. 
  13983. File: as.info, Node: PRU Chars, Up: PRU Syntax
  13984. 9.37.2.1 Special Characters
  13985. ...........................
  13986. '#' and ';' are the line comment characters.
  13987. 
  13988. File: as.info, Node: PRU Relocations, Next: PRU Directives, Prev: PRU Syntax, Up: PRU-Dependent
  13989. 9.37.3 PRU Machine Relocations
  13990. ------------------------------
  13991. '%pmem(EXPRESSION)'
  13992. Convert EXPRESSION from byte-address to a word-address. In other
  13993. words, shift right by two.
  13994. '%label(EXPRESSION)'
  13995. Mark the given operand as a label. This is useful if you need to
  13996. jump to a label that matches a register name.
  13997. r1:
  13998. jmp r1 ; Will jump to register R1
  13999. jmp %label(r1) ; Will jump to label r1
  14000. 
  14001. File: as.info, Node: PRU Directives, Next: PRU Opcodes, Prev: PRU Relocations, Up: PRU-Dependent
  14002. 9.37.4 PRU Machine Directives
  14003. -----------------------------
  14004. '.align EXPRESSION [, EXPRESSION]'
  14005. This is the generic '.align' directive, however this aligns to a
  14006. power of two.
  14007. '.word EXPRESSION'
  14008. Create an aligned constant 4 bytes in size.
  14009. '.dword EXPRESSION'
  14010. Create an aligned constant 8 bytes in size.
  14011. '.2byte EXPRESSION'
  14012. Create an unaligned constant 2 bytes in size.
  14013. '.4byte EXPRESSION'
  14014. Create an unaligned constant 4 bytes in size.
  14015. '.8byte EXPRESSION'
  14016. Create an unaligned constant 8 bytes in size.
  14017. '.16byte EXPRESSION'
  14018. Create an unaligned constant 16 bytes in size.
  14019. '.set no_warn_regname_label'
  14020. Do not output warnings when a label name matches a register name.
  14021. Equivalent to passing the '-mno-warn-regname-label' command-line
  14022. option.
  14023. 
  14024. File: as.info, Node: PRU Opcodes, Prev: PRU Directives, Up: PRU-Dependent
  14025. 9.37.5 Opcodes
  14026. --------------
  14027. 'as' implements all the standard PRU core V3 opcodes in the original
  14028. pasm assembler. Older cores are not supported by 'as'.
  14029. GAS also implements the LDI32 pseudo instruction for loading a 32-bit
  14030. immediate value into a register.
  14031. ldi32 sp, __stack_top
  14032. ldi32 r14, 0x12345678
  14033. 
  14034. File: as.info, Node: RISC-V-Dependent, Next: RL78-Dependent, Prev: PRU-Dependent, Up: Machine Dependencies
  14035. 9.38 RISC-V Dependent Features
  14036. ==============================
  14037. * Menu:
  14038. * RISC-V-Options:: RISC-V Options
  14039. * RISC-V-Directives:: RISC-V Directives
  14040. * RISC-V-Formats:: RISC-V Instruction Formats
  14041. * RISC-V-ATTRIBUTE:: RISC-V Object Attribute
  14042. 
  14043. File: as.info, Node: RISC-V-Options, Next: RISC-V-Directives, Up: RISC-V-Dependent
  14044. 9.38.1 RISC-V Options
  14045. ---------------------
  14046. The following table lists all available RISC-V specific options.
  14047. '-fpic'
  14048. '-fPIC'
  14049. Generate position-independent code
  14050. '-fno-pic'
  14051. Don't generate position-independent code (default)
  14052. '-march=ISA'
  14053. Select the base isa, as specified by ISA. For example
  14054. -march=rv32ima.
  14055. '-mabi=ABI'
  14056. Selects the ABI, which is either "ilp32" or "lp64", optionally
  14057. followed by "f", "d", or "q" to indicate single-precision,
  14058. double-precision, or quad-precision floating-point calling
  14059. convention, or none to indicate the soft-float calling convention.
  14060. Also, "ilp32" can optionally be followed by "e" to indicate the RVE
  14061. ABI, which is always soft-float.
  14062. '-mrelax'
  14063. Take advantage of linker relaxations to reduce the number of
  14064. instructions required to materialize symbol addresses. (default)
  14065. '-mno-relax'
  14066. Don't do linker relaxations.
  14067. 
  14068. File: as.info, Node: RISC-V-Directives, Next: RISC-V-Formats, Prev: RISC-V-Options, Up: RISC-V-Dependent
  14069. 9.38.2 RISC-V Directives
  14070. ------------------------
  14071. The following table lists all available RISC-V specific directives.
  14072. '.align SIZE-LOG-2'
  14073. Align to the given boundary, with the size given as log2 the number
  14074. of bytes to align to.
  14075. '.half VALUE'
  14076. '.word VALUE'
  14077. '.dword VALUE'
  14078. Emits a half-word, word, or double-word value at the current
  14079. position.
  14080. '.dtprelword VALUE'
  14081. '.dtpreldword VALUE'
  14082. Emits a DTP-relative word (or double-word) at the current position.
  14083. This is meant to be used by the compiler in shared libraries for
  14084. DWARF debug info for thread local variables.
  14085. '.bss'
  14086. Sets the current section to the BSS section.
  14087. '.uleb128 VALUE'
  14088. '.sleb128 VALUE'
  14089. Emits a signed or unsigned LEB128 value at the current position.
  14090. This only accepts constant expressions, because symbol addresses
  14091. can change with relaxation, and we don't support relocations to
  14092. modify LEB128 values at link time.
  14093. '.option ARGUMENT'
  14094. Modifies RISC-V specific assembler options inline with the assembly
  14095. code. This is used when particular instruction sequences must be
  14096. assembled with a specific set of options. For example, since we
  14097. relax addressing sequences to shorter GP-relative sequences when
  14098. possible the initial load of GP must not be relaxed and should be
  14099. emitted as something like
  14100. .option push
  14101. .option norelax
  14102. la gp, __global_pointer$
  14103. .option pop
  14104. in order to produce after linker relaxation the expected
  14105. auipc gp, %pcrel_hi(__global_pointer$)
  14106. addi gp, gp, %pcrel_lo(__global_pointer$)
  14107. instead of just
  14108. addi gp, gp, 0
  14109. It's not expected that options are changed in this manner during
  14110. regular use, but there are a handful of esoteric cases like the one
  14111. above where users need to disable particular features of the
  14112. assembler for particular code sequences. The complete list of
  14113. option arguments is shown below:
  14114. 'push'
  14115. 'pop'
  14116. Pushes or pops the current option stack. These should be used
  14117. whenever changing an option in line with assembly code in
  14118. order to ensure the user's command-line options are respected
  14119. for the bulk of the file being assembled.
  14120. 'rvc'
  14121. 'norvc'
  14122. Enables or disables the generation of compressed instructions.
  14123. Instructions are opportunistically compressed by the RISC-V
  14124. assembler when possible, but sometimes this behavior is not
  14125. desirable.
  14126. 'pic'
  14127. 'nopic'
  14128. Enables or disables position-independent code generation.
  14129. Unless you really know what you're doing, this should only be
  14130. at the top of a file.
  14131. 'relax'
  14132. 'norelax'
  14133. Enables or disables relaxation. The RISC-V assembler and
  14134. linker opportunistically relax some code sequences, but
  14135. sometimes this behavior is not desirable.
  14136. '.insn VALUE'
  14137. '.insn VALUE'
  14138. This directive permits the numeric representation of an
  14139. instructions and makes the assembler insert the operands according
  14140. to one of the instruction formats for '.insn' (*note
  14141. RISC-V-Formats::). For example, the instruction 'add a0, a1, a2'
  14142. could be written as '.insn r 0x33, 0, 0, a0, a1, a2'.
  14143. '.attribute TAG, VALUE'
  14144. Set the object attribute TAG to VALUE.
  14145. The TAG is either an attribute number, or one of the following:
  14146. 'Tag_RISCV_arch', 'Tag_RISCV_stack_align',
  14147. 'Tag_RISCV_unaligned_access', 'Tag_RISCV_priv_spec',
  14148. 'Tag_RISCV_priv_spec_minor', 'Tag_RISCV_priv_spec_revision'.
  14149. 
  14150. File: as.info, Node: RISC-V-Formats, Next: RISC-V-ATTRIBUTE, Prev: RISC-V-Directives, Up: RISC-V-Dependent
  14151. 9.38.3 Instruction Formats
  14152. --------------------------
  14153. The RISC-V Instruction Set Manual Volume I: User-Level ISA lists 12
  14154. instruction formats where some of the formats have multiple variants.
  14155. For the '.insn' pseudo directive the assembler recognizes some of the
  14156. formats. Typically, the most general variant of the instruction format
  14157. is used by the '.insn' directive.
  14158. The following table lists the abbreviations used in the table of
  14159. instruction formats:
  14160. opcode Unsigned immediate or opcode name for 7-bits opcode.
  14161. opcode2 Unsigned immediate or opcode name for 2-bits opcode.
  14162. func7 Unsigned immediate for 7-bits function code.
  14163. func6 Unsigned immediate for 6-bits function code.
  14164. func4 Unsigned immediate for 4-bits function code.
  14165. func3 Unsigned immediate for 3-bits function code.
  14166. func2 Unsigned immediate for 2-bits function code.
  14167. rd Destination register number for operand x, can be GPR or FPR.
  14168. rd' Destination register number for operand x,
  14169. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14170. rs1 First source register number for operand x, can be GPR or FPR.
  14171. rs1' First source register number for operand x,
  14172. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14173. rs2 Second source register number for operand x, can be GPR or FPR.
  14174. rs2' Second source register number for operand x,
  14175. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14176. simm12 Sign-extended 12-bit immediate for operand x.
  14177. simm20 Sign-extended 20-bit immediate for operand x.
  14178. simm6 Sign-extended 6-bit immediate for operand x.
  14179. uimm8 Unsigned 8-bit immediate for operand x.
  14180. symbol Symbol or lable reference for operand x.
  14181. The following table lists all available opcode name:
  14182. 'C0'
  14183. 'C1'
  14184. 'C2'
  14185. Opcode space for compressed instructions.
  14186. 'LOAD'
  14187. Opcode space for load instructions.
  14188. 'LOAD_FP'
  14189. Opcode space for floating-point load instructions.
  14190. 'STORE'
  14191. Opcode space for store instructions.
  14192. 'STORE_FP'
  14193. Opcode space for floating-point store instructions.
  14194. 'AUIPC'
  14195. Opcode space for auipc instruction.
  14196. 'LUI'
  14197. Opcode space for lui instruction.
  14198. 'BRANCH'
  14199. Opcode space for branch instructions.
  14200. 'JAL'
  14201. Opcode space for jal instruction.
  14202. 'JALR'
  14203. Opcode space for jalr instruction.
  14204. 'OP'
  14205. Opcode space for ALU instructions.
  14206. 'OP_32'
  14207. Opcode space for 32-bits ALU instructions.
  14208. 'OP_IMM'
  14209. Opcode space for ALU with immediate instructions.
  14210. 'OP_IMM_32'
  14211. Opcode space for 32-bits ALU with immediate instructions.
  14212. 'OP_FP'
  14213. Opcode space for floating-point operation instructions.
  14214. 'MADD'
  14215. Opcode space for madd instruction.
  14216. 'MSUB'
  14217. Opcode space for msub instruction.
  14218. 'NMADD'
  14219. Opcode space for nmadd instruction.
  14220. 'NMSUB'
  14221. Opcode space for msub instruction.
  14222. 'AMO'
  14223. Opcode space for atomic memory operation instructions.
  14224. 'MISC_MEM'
  14225. Opcode space for misc instructions.
  14226. 'SYSTEM'
  14227. Opcode space for system instructions.
  14228. 'CUSTOM_0'
  14229. 'CUSTOM_1'
  14230. 'CUSTOM_2'
  14231. 'CUSTOM_3'
  14232. Opcode space for customize instructions.
  14233. An instruction is two or four bytes in length and must be aligned on
  14234. a 2 byte boundary. The first two bits of the instruction specify the
  14235. length of the instruction, 00, 01 and 10 indicates a two byte
  14236. instruction, 11 indicates a four byte instruction.
  14237. The following table lists the RISC-V instruction formats that are
  14238. available with the '.insn' pseudo directive:
  14239. 'R type: .insn r opcode, func3, func7, rd, rs1, rs2'
  14240. +-------+-----+-----+-------+----+-------------+
  14241. | func7 | rs2 | rs1 | func3 | rd | opcode |
  14242. +-------+-----+-----+-------+----+-------------+
  14243. 31 25 20 15 12 7 0
  14244. 'R type with 4 register operands: .insn r opcode, func3, func2, rd, rs1, rs2, rs3'
  14245. 'R4 type: .insn r4 opcode, func3, func2, rd, rs1, rs2, rs3'
  14246. +-----+-------+-----+-----+-------+----+-------------+
  14247. | rs3 | func2 | rs2 | rs1 | func3 | rd | opcode |
  14248. +-----+-------+-----+-----+-------+----+-------------+
  14249. 31 27 25 20 15 12 7 0
  14250. 'I type: .insn i opcode, func3, rd, rs1, simm12'
  14251. +-------------+-----+-------+----+-------------+
  14252. | simm12 | rs1 | func3 | rd | opcode |
  14253. +-------------+-----+-------+----+-------------+
  14254. 31 20 15 12 7 0
  14255. 'S type: .insn s opcode, func3, rd, rs1, simm12'
  14256. +--------------+-----+-----+-------+-------------+-------------+
  14257. | simm12[11:5] | rs2 | rs1 | func3 | simm12[4:0] | opcode |
  14258. +--------------+-----+-----+-------+-------------+-------------+
  14259. 31 25 20 15 12 7 0
  14260. 'SB type: .insn sb opcode, func3, rd, rs1, symbol'
  14261. 'SB type: .insn sb opcode, func3, rd, simm12(rs1)'
  14262. 'B type: .insn s opcode, func3, rd, rs1, symbol'
  14263. 'B type: .insn s opcode, func3, rd, simm12(rs1)'
  14264. +------------+--------------+-----+-----+-------+-------------+-------------+--------+
  14265. | simm12[12] | simm12[10:5] | rs2 | rs1 | func3 | simm12[4:1] | simm12[11]] | opcode |
  14266. +------------+--------------+-----+-----+-------+-------------+-------------+--------+
  14267. 31 30 25 20 15 12 7 0
  14268. 'U type: .insn u opcode, rd, simm20'
  14269. +---------------------------+----+-------------+
  14270. | simm20 | rd | opcode |
  14271. +---------------------------+----+-------------+
  14272. 31 12 7 0
  14273. 'UJ type: .insn uj opcode, rd, symbol'
  14274. 'J type: .insn j opcode, rd, symbol'
  14275. +------------+--------------+------------+---------------+----+-------------+
  14276. | simm20[20] | simm20[10:1] | simm20[11] | simm20[19:12] | rd | opcode |
  14277. +------------+--------------+------------+---------------+----+-------------+
  14278. 31 30 21 20 12 7 0
  14279. 'CR type: .insn cr opcode2, func4, rd, rs2'
  14280. +---------+--------+-----+---------+
  14281. | func4 | rd/rs1 | rs2 | opcode2 |
  14282. +---------+--------+-----+---------+
  14283. 15 12 7 2 0
  14284. 'CI type: .insn ci opcode2, func3, rd, simm6'
  14285. +---------+-----+--------+-----+---------+
  14286. | func3 | imm | rd/rs1 | imm | opcode2 |
  14287. +---------+-----+--------+-----+---------+
  14288. 15 13 12 7 2 0
  14289. 'CIW type: .insn ciw opcode2, func3, rd, uimm8'
  14290. +---------+--------------+-----+---------+
  14291. | func3 | imm | rd' | opcode2 |
  14292. +---------+--------------+-----+---------+
  14293. 15 13 7 2 0
  14294. 'CA type: .insn ca opcode2, func6, func2, rd, rs2'
  14295. +---------+----------+-------+------+--------+
  14296. | func6 | rd'/rs1' | func2 | rs2' | opcode |
  14297. +---------+----------+-------+------+--------+
  14298. 15 10 7 5 2 0
  14299. 'CB type: .insn cb opcode2, func3, rs1, symbol'
  14300. +---------+--------+------+--------+---------+
  14301. | func3 | offset | rs1' | offset | opcode2 |
  14302. +---------+--------+------+--------+---------+
  14303. 15 13 10 7 2 0
  14304. 'CJ type: .insn cj opcode2, symbol'
  14305. +---------+--------------------+---------+
  14306. | func3 | jump target | opcode2 |
  14307. +---------+--------------------+---------+
  14308. 15 13 7 2 0
  14309. For the complete list of all instruction format variants see The
  14310. RISC-V Instruction Set Manual Volume I: User-Level ISA.
  14311. 
  14312. File: as.info, Node: RISC-V-ATTRIBUTE, Prev: RISC-V-Formats, Up: RISC-V-Dependent
  14313. 9.38.4 RISC-V Object Attribute
  14314. ------------------------------
  14315. RISC-V attributes have a string value if the tag number is odd and an
  14316. integer value if the tag number is even.
  14317. Tag_RISCV_stack_align (4)
  14318. Tag_RISCV_strict_align records the N-byte stack alignment for this
  14319. object. The default value is 16 for RV32I or RV64I, and 4 for
  14320. RV32E.
  14321. The smallest value will be used if object files with different
  14322. Tag_RISCV_stack_align values are merged.
  14323. Tag_RISCV_arch (5)
  14324. Tag_RISCV_arch contains a string for the target architecture taken
  14325. from the option '-march'. Different architectures will be
  14326. integrated into a superset when object files are merged.
  14327. Note that the version information of the target architecture must
  14328. be presented explicitly in the attribute and abbreviations must be
  14329. expanded. The version information, if not given by '-march', must
  14330. be in accordance with the default specified by the tool. For
  14331. example, the architecture 'RV32I' has to be recorded in the
  14332. attribute as 'RV32I2P0' in which '2P0' stands for the default
  14333. version of its base ISA. On the other hand, the architecture
  14334. 'RV32G' has to be presented as 'RV32I2P0_M2P0_A2P0_F2P0_D2P0' in
  14335. which the abbreviation 'G' is expanded to the 'IMAFD' combination
  14336. with default versions of the standard extensions.
  14337. Tag_RISCV_unaligned_access (6)
  14338. Tag_RISCV_unaligned_access is 0 for files that do not allow any
  14339. unaligned memory accesses, and 1 for files that do allow unaligned
  14340. memory accesses.
  14341. Tag_RISCV_priv_spec (8)
  14342. Tag_RISCV_priv_spec_minor (10)
  14343. Tag_RISCV_priv_spec_revision (12)
  14344. Tag_RISCV_priv_spec contains the major/minor/revision version
  14345. information of the privileged specification. It will report errors
  14346. if object files of different privileged specification versions are
  14347. merged.
  14348. 
  14349. File: as.info, Node: RL78-Dependent, Next: RX-Dependent, Prev: RISC-V-Dependent, Up: Machine Dependencies
  14350. 9.39 RL78 Dependent Features
  14351. ============================
  14352. * Menu:
  14353. * RL78-Opts:: RL78 Assembler Command-line Options
  14354. * RL78-Modifiers:: Symbolic Operand Modifiers
  14355. * RL78-Directives:: Assembler Directives
  14356. * RL78-Syntax:: Syntax
  14357. 
  14358. File: as.info, Node: RL78-Opts, Next: RL78-Modifiers, Up: RL78-Dependent
  14359. 9.39.1 RL78 Options
  14360. -------------------
  14361. 'relax'
  14362. Enable support for link-time relaxation.
  14363. 'norelax'
  14364. Disable support for link-time relaxation (default).
  14365. 'mg10'
  14366. Mark the generated binary as targeting the G10 variant of the RL78
  14367. architecture.
  14368. 'mg13'
  14369. Mark the generated binary as targeting the G13 variant of the RL78
  14370. architecture.
  14371. 'mg14'
  14372. 'mrl78'
  14373. Mark the generated binary as targeting the G14 variant of the RL78
  14374. architecture. This is the default.
  14375. 'm32bit-doubles'
  14376. Mark the generated binary as one that uses 32-bits to hold the
  14377. 'double' floating point type. This is the default.
  14378. 'm64bit-doubles'
  14379. Mark the generated binary as one that uses 64-bits to hold the
  14380. 'double' floating point type.
  14381. 
  14382. File: as.info, Node: RL78-Modifiers, Next: RL78-Directives, Prev: RL78-Opts, Up: RL78-Dependent
  14383. 9.39.2 Symbolic Operand Modifiers
  14384. ---------------------------------
  14385. The RL78 has three modifiers that adjust the relocations used by the
  14386. linker:
  14387. '%lo16()'
  14388. When loading a 20-bit (or wider) address into registers, this
  14389. modifier selects the 16 least significant bits.
  14390. movw ax,#%lo16(_sym)
  14391. '%hi16()'
  14392. When loading a 20-bit (or wider) address into registers, this
  14393. modifier selects the 16 most significant bits.
  14394. movw ax,#%hi16(_sym)
  14395. '%hi8()'
  14396. When loading a 20-bit (or wider) address into registers, this
  14397. modifier selects the 8 bits that would go into CS or ES (i.e. bits
  14398. 23..16).
  14399. mov es, #%hi8(_sym)
  14400. 
  14401. File: as.info, Node: RL78-Directives, Next: RL78-Syntax, Prev: RL78-Modifiers, Up: RL78-Dependent
  14402. 9.39.3 Assembler Directives
  14403. ---------------------------
  14404. In addition to the common directives, the RL78 adds these:
  14405. '.double'
  14406. Output a constant in "double" format, which is either a 32-bit or a
  14407. 64-bit floating point value, depending upon the setting of the
  14408. '-m32bit-doubles'|'-m64bit-doubles' command-line option.
  14409. '.bss'
  14410. Select the BSS section.
  14411. '.3byte'
  14412. Output a constant value in a three byte format.
  14413. '.int'
  14414. '.word'
  14415. Output a constant value in a four byte format.
  14416. 
  14417. File: as.info, Node: RL78-Syntax, Prev: RL78-Directives, Up: RL78-Dependent
  14418. 9.39.4 Syntax for the RL78
  14419. --------------------------
  14420. * Menu:
  14421. * RL78-Chars:: Special Characters
  14422. 
  14423. File: as.info, Node: RL78-Chars, Up: RL78-Syntax
  14424. 9.39.4.1 Special Characters
  14425. ...........................
  14426. The presence of a ';' appearing anywhere on a line indicates the start
  14427. of a comment that extends to the end of that line.
  14428. If a '#' appears as the first character of a line then the whole line
  14429. is treated as a comment, but in this case the line can also be a logical
  14430. line number directive (*note Comments::) or a preprocessor control
  14431. command (*note Preprocessing::).
  14432. The '|' character can be used to separate statements on the same
  14433. line.
  14434. 
  14435. File: as.info, Node: RX-Dependent, Next: S/390-Dependent, Prev: RL78-Dependent, Up: Machine Dependencies
  14436. 9.40 RX Dependent Features
  14437. ==========================
  14438. * Menu:
  14439. * RX-Opts:: RX Assembler Command-line Options
  14440. * RX-Modifiers:: Symbolic Operand Modifiers
  14441. * RX-Directives:: Assembler Directives
  14442. * RX-Float:: Floating Point
  14443. * RX-Syntax:: Syntax
  14444. 
  14445. File: as.info, Node: RX-Opts, Next: RX-Modifiers, Up: RX-Dependent
  14446. 9.40.1 RX Options
  14447. -----------------
  14448. The Renesas RX port of 'as' has a few target specific command-line
  14449. options:
  14450. '-m32bit-doubles'
  14451. This option controls the ABI and indicates to use a 32-bit float
  14452. ABI. It has no effect on the assembled instructions, but it does
  14453. influence the behaviour of the '.double' pseudo-op. This is the
  14454. default.
  14455. '-m64bit-doubles'
  14456. This option controls the ABI and indicates to use a 64-bit float
  14457. ABI. It has no effect on the assembled instructions, but it does
  14458. influence the behaviour of the '.double' pseudo-op.
  14459. '-mbig-endian'
  14460. This option controls the ABI and indicates to use a big-endian data
  14461. ABI. It has no effect on the assembled instructions, but it does
  14462. influence the behaviour of the '.short', '.hword', '.int', '.word',
  14463. '.long', '.quad' and '.octa' pseudo-ops.
  14464. '-mlittle-endian'
  14465. This option controls the ABI and indicates to use a little-endian
  14466. data ABI. It has no effect on the assembled instructions, but it
  14467. does influence the behaviour of the '.short', '.hword', '.int',
  14468. '.word', '.long', '.quad' and '.octa' pseudo-ops. This is the
  14469. default.
  14470. '-muse-conventional-section-names'
  14471. This option controls the default names given to the code (.text),
  14472. initialised data (.data) and uninitialised data sections (.bss).
  14473. '-muse-renesas-section-names'
  14474. This option controls the default names given to the code (.P),
  14475. initialised data (.D_1) and uninitialised data sections (.B_1).
  14476. This is the default.
  14477. '-msmall-data-limit'
  14478. This option tells the assembler that the small data limit feature
  14479. of the RX port of GCC is being used. This results in the assembler
  14480. generating an undefined reference to a symbol called '__gp' for use
  14481. by the relocations that are needed to support the small data limit
  14482. feature. This option is not enabled by default as it would
  14483. otherwise pollute the symbol table.
  14484. '-mpid'
  14485. This option tells the assembler that the position independent data
  14486. of the RX port of GCC is being used. This results in the assembler
  14487. generating an undefined reference to a symbol called '__pid_base',
  14488. and also setting the RX_PID flag bit in the e_flags field of the
  14489. ELF header of the object file.
  14490. '-mint-register=NUM'
  14491. This option tells the assembler how many registers have been
  14492. reserved for use by interrupt handlers. This is needed in order to
  14493. compute the correct values for the '%gpreg' and '%pidreg' meta
  14494. registers.
  14495. '-mgcc-abi'
  14496. This option tells the assembler that the old GCC ABI is being used
  14497. by the assembled code. With this version of the ABI function
  14498. arguments that are passed on the stack are aligned to a 32-bit
  14499. boundary.
  14500. '-mrx-abi'
  14501. This option tells the assembler that the official RX ABI is being
  14502. used by the assembled code. With this version of the ABI function
  14503. arguments that are passed on the stack are aligned to their natural
  14504. alignments. This option is the default.
  14505. '-mcpu=NAME'
  14506. This option tells the assembler the target CPU type. Currently the
  14507. 'rx100', 'rx200', 'rx600', 'rx610', 'rxv2', 'rxv3' and 'rxv3-dfpu'
  14508. are recognised as valid cpu names. Attempting to assemble an
  14509. instructionnot supported by the indicated cpu type will result in
  14510. an error message being generated.
  14511. '-mno-allow-string-insns'
  14512. This option tells the assembler to mark the object file that it is
  14513. building as one that does not use the string instructions 'SMOVF',
  14514. 'SCMPU', 'SMOVB', 'SMOVU', 'SUNTIL' 'SWHILE' or the 'RMPA'
  14515. instruction. In addition the mark tells the linker to complain if
  14516. an attempt is made to link the binary with another one that does
  14517. use any of these instructions.
  14518. Note - the inverse of this option, '-mallow-string-insns', is not
  14519. needed. The assembler automatically detects the use of the the
  14520. instructions in the source code and labels the resulting object
  14521. file appropriately. If no string instructions are detected then
  14522. the object file is labelled as being one that can be linked with
  14523. either string-using or string-banned object files.
  14524. 
  14525. File: as.info, Node: RX-Modifiers, Next: RX-Directives, Prev: RX-Opts, Up: RX-Dependent
  14526. 9.40.2 Symbolic Operand Modifiers
  14527. ---------------------------------
  14528. The assembler supports one modifier when using symbol addresses in RX
  14529. instruction operands. The general syntax is the following:
  14530. %gp(symbol)
  14531. The modifier returns the offset from the __GP symbol to the specified
  14532. symbol as a 16-bit value. The intent is that this offset should be used
  14533. in a register+offset move instruction when generating references to
  14534. small data. Ie, like this:
  14535. mov.W %gp(_foo)[%gpreg], r1
  14536. The assembler also supports two meta register names which can be used
  14537. to refer to registers whose values may not be known to the programmer.
  14538. These meta register names are:
  14539. '%gpreg'
  14540. The small data address register.
  14541. '%pidreg'
  14542. The PID base address register.
  14543. Both registers normally have the value r13, but this can change if
  14544. some registers have been reserved for use by interrupt handlers or if
  14545. both the small data limit and position independent data features are
  14546. being used at the same time.
  14547. 
  14548. File: as.info, Node: RX-Directives, Next: RX-Float, Prev: RX-Modifiers, Up: RX-Dependent
  14549. 9.40.3 Assembler Directives
  14550. ---------------------------
  14551. The RX version of 'as' has the following specific assembler directives:
  14552. '.3byte'
  14553. Inserts a 3-byte value into the output file at the current
  14554. location.
  14555. '.fetchalign'
  14556. If the next opcode following this directive spans a fetch line
  14557. boundary (8 byte boundary), the opcode is aligned to that boundary.
  14558. If the next opcode does not span a fetch line, this directive has
  14559. no effect. Note that one or more labels may be between this
  14560. directive and the opcode; those labels are aligned as well. Any
  14561. inserted bytes due to alignment will form a NOP opcode.
  14562. 
  14563. File: as.info, Node: RX-Float, Next: RX-Syntax, Prev: RX-Directives, Up: RX-Dependent
  14564. 9.40.4 Floating Point
  14565. ---------------------
  14566. The floating point formats generated by directives are these.
  14567. '.float'
  14568. 'Single' precision (32-bit) floating point constants.
  14569. '.double'
  14570. If the '-m64bit-doubles' command-line option has been specified
  14571. then then 'double' directive generates 'double' precision (64-bit)
  14572. floating point constants, otherwise it generates 'single' precision
  14573. (32-bit) floating point constants. To force the generation of
  14574. 64-bit floating point constants used the 'dc.d' directive instead.
  14575. 
  14576. File: as.info, Node: RX-Syntax, Prev: RX-Float, Up: RX-Dependent
  14577. 9.40.5 Syntax for the RX
  14578. ------------------------
  14579. * Menu:
  14580. * RX-Chars:: Special Characters
  14581. 
  14582. File: as.info, Node: RX-Chars, Up: RX-Syntax
  14583. 9.40.5.1 Special Characters
  14584. ...........................
  14585. The presence of a ';' appearing anywhere on a line indicates the start
  14586. of a comment that extends to the end of that line.
  14587. If a '#' appears as the first character of a line then the whole line
  14588. is treated as a comment, but in this case the line can also be a logical
  14589. line number directive (*note Comments::) or a preprocessor control
  14590. command (*note Preprocessing::).
  14591. The '!' character can be used to separate statements on the same
  14592. line.
  14593. 
  14594. File: as.info, Node: S/390-Dependent, Next: SCORE-Dependent, Prev: RX-Dependent, Up: Machine Dependencies
  14595. 9.41 IBM S/390 Dependent Features
  14596. =================================
  14597. The s390 version of 'as' supports two architectures modes and eleven
  14598. chip levels. The architecture modes are the Enterprise System
  14599. Architecture (ESA) and the newer z/Architecture mode. The chip levels
  14600. are g5 (or arch3), g6, z900 (or arch5), z990 (or arch6), z9-109, z9-ec
  14601. (or arch7), z10 (or arch8), z196 (or arch9), zEC12 (or arch10), z13 (or
  14602. arch11), z14 (or arch12), and z15 (or arch13).
  14603. * Menu:
  14604. * s390 Options:: Command-line Options.
  14605. * s390 Characters:: Special Characters.
  14606. * s390 Syntax:: Assembler Instruction syntax.
  14607. * s390 Directives:: Assembler Directives.
  14608. * s390 Floating Point:: Floating Point.
  14609. 
  14610. File: as.info, Node: s390 Options, Next: s390 Characters, Up: S/390-Dependent
  14611. 9.41.1 Options
  14612. --------------
  14613. The following table lists all available s390 specific options:
  14614. '-m31 | -m64'
  14615. Select 31- or 64-bit ABI implying a word size of 32- or 64-bit.
  14616. These options are only available with the ELF object file format,
  14617. and require that the necessary BFD support has been included (on a
  14618. 31-bit platform you must add -enable-64-bit-bfd on the call to the
  14619. configure script to enable 64-bit usage and use s390x as target
  14620. platform).
  14621. '-mesa | -mzarch'
  14622. Select the architecture mode, either the Enterprise System
  14623. Architecture (esa) mode or the z/Architecture mode (zarch).
  14624. The 64-bit instructions are only available with the z/Architecture
  14625. mode. The combination of '-m64' and '-mesa' results in a warning
  14626. message.
  14627. '-march=CPU'
  14628. This option specifies the target processor. The following
  14629. processor names are recognized: 'g5' (or 'arch3'), 'g6', 'z900' (or
  14630. 'arch5'), 'z990' (or 'arch6'), 'z9-109', 'z9-ec' (or 'arch7'),
  14631. 'z10' (or 'arch8'), 'z196' (or 'arch9'), 'zEC12' (or 'arch10'),
  14632. 'z13' (or 'arch11'), 'z14' (or 'arch12'), and 'z15' (or 'arch13').
  14633. Assembling an instruction that is not supported on the target
  14634. processor results in an error message.
  14635. The processor names starting with 'arch' refer to the edition
  14636. number in the Principle of Operations manual. They can be used as
  14637. alternate processor names and have been added for compatibility
  14638. with the IBM XL compiler.
  14639. 'arch3', 'g5' and 'g6' cannot be used with the '-mzarch' option
  14640. since the z/Architecture mode is not supported on these processor
  14641. levels.
  14642. There is no 'arch4' option supported. 'arch4' matches
  14643. '-march=arch5 -mesa'.
  14644. '-mregnames'
  14645. Allow symbolic names for registers.
  14646. '-mno-regnames'
  14647. Do not allow symbolic names for registers.
  14648. '-mwarn-areg-zero'
  14649. Warn whenever the operand for a base or index register has been
  14650. specified but evaluates to zero. This can indicate the misuse of
  14651. general purpose register 0 as an address register.
  14652. 
  14653. File: as.info, Node: s390 Characters, Next: s390 Syntax, Prev: s390 Options, Up: S/390-Dependent
  14654. 9.41.2 Special Characters
  14655. -------------------------
  14656. '#' is the line comment character.
  14657. If a '#' appears as the first character of a line then the whole line
  14658. is treated as a comment, but in this case the line could also be a
  14659. logical line number directive (*note Comments::) or a preprocessor
  14660. control command (*note Preprocessing::).
  14661. The ';' character can be used instead of a newline to separate
  14662. statements.
  14663. 
  14664. File: as.info, Node: s390 Syntax, Next: s390 Directives, Prev: s390 Characters, Up: S/390-Dependent
  14665. 9.41.3 Instruction syntax
  14666. -------------------------
  14667. The assembler syntax closely follows the syntax outlined in Enterprise
  14668. Systems Architecture/390 Principles of Operation (SA22-7201) and the
  14669. z/Architecture Principles of Operation (SA22-7832).
  14670. Each instruction has two major parts, the instruction mnemonic and
  14671. the instruction operands. The instruction format varies.
  14672. * Menu:
  14673. * s390 Register:: Register Naming
  14674. * s390 Mnemonics:: Instruction Mnemonics
  14675. * s390 Operands:: Instruction Operands
  14676. * s390 Formats:: Instruction Formats
  14677. * s390 Aliases:: Instruction Aliases
  14678. * s390 Operand Modifier:: Instruction Operand Modifier
  14679. * s390 Instruction Marker:: Instruction Marker
  14680. * s390 Literal Pool Entries:: Literal Pool Entries
  14681. 
  14682. File: as.info, Node: s390 Register, Next: s390 Mnemonics, Up: s390 Syntax
  14683. 9.41.3.1 Register naming
  14684. ........................
  14685. The 'as' recognizes a number of predefined symbols for the various
  14686. processor registers. A register specification in one of the instruction
  14687. formats is an unsigned integer between 0 and 15. The specific
  14688. instruction and the position of the register in the instruction format
  14689. denotes the type of the register. The register symbols are prefixed
  14690. with '%':
  14691. %rN the 16 general purpose registers, 0 <= N <= 15
  14692. %fN the 16 floating point registers, 0 <= N <= 15
  14693. %aN the 16 access registers, 0 <= N <= 15
  14694. %cN the 16 control registers, 0 <= N <= 15
  14695. %lit an alias for the general purpose register %r13
  14696. %sp an alias for the general purpose register %r15
  14697. 
  14698. File: as.info, Node: s390 Mnemonics, Next: s390 Operands, Prev: s390 Register, Up: s390 Syntax
  14699. 9.41.3.2 Instruction Mnemonics
  14700. ..............................
  14701. All instructions documented in the Principles of Operation are supported
  14702. with the mnemonic and order of operands as described. The instruction
  14703. mnemonic identifies the instruction format (*note s390 Formats::) and
  14704. the specific operation code for the instruction. For example, the 'lr'
  14705. mnemonic denotes the instruction format 'RR' with the operation code
  14706. '0x18'.
  14707. The definition of the various mnemonics follows a scheme, where the
  14708. first character usually hint at the type of the instruction:
  14709. a add instruction, for example 'al' for add logical 32-bit
  14710. b branch instruction, for example 'bc' for branch on condition
  14711. c compare or convert instruction, for example 'cr' for compare
  14712. register 32-bit
  14713. d divide instruction, for example 'dlr' devide logical register
  14714. 64-bit to 32-bit
  14715. i insert instruction, for example 'ic' insert character
  14716. l load instruction, for example 'ltr' load and test register
  14717. mv move instruction, for example 'mvc' move character
  14718. m multiply instruction, for example 'mh' multiply halfword
  14719. n and instruction, for example 'ni' and immediate
  14720. o or instruction, for example 'oc' or character
  14721. sla, sll shift left single instruction
  14722. sra, srl shift right single instruction
  14723. st store instruction, for example 'stm' store multiple
  14724. s subtract instruction, for example 'slr' subtract
  14725. logical 32-bit
  14726. t test or translate instruction, of example 'tm' test under mask
  14727. x exclusive or instruction, for example 'xc' exclusive or
  14728. character
  14729. Certain characters at the end of the mnemonic may describe a property
  14730. of the instruction:
  14731. c the instruction uses a 8-bit character operand
  14732. f the instruction extends a 32-bit operand to 64 bit
  14733. g the operands are treated as 64-bit values
  14734. h the operand uses a 16-bit halfword operand
  14735. i the instruction uses an immediate operand
  14736. l the instruction uses unsigned, logical operands
  14737. m the instruction uses a mask or operates on multiple values
  14738. r if r is the last character, the instruction operates on registers
  14739. y the instruction uses 20-bit displacements
  14740. There are many exceptions to the scheme outlined in the above lists,
  14741. in particular for the privileged instructions. For non-privileged
  14742. instruction it works quite well, for example the instruction 'clgfr' c:
  14743. compare instruction, l: unsigned operands, g: 64-bit operands, f: 32- to
  14744. 64-bit extension, r: register operands. The instruction compares an
  14745. 64-bit value in a register with the zero extended 32-bit value from a
  14746. second register. For a complete list of all mnemonics see appendix B in
  14747. the Principles of Operation.
  14748. 
  14749. File: as.info, Node: s390 Operands, Next: s390 Formats, Prev: s390 Mnemonics, Up: s390 Syntax
  14750. 9.41.3.3 Instruction Operands
  14751. .............................
  14752. Instruction operands can be grouped into three classes, operands located
  14753. in registers, immediate operands, and operands in storage.
  14754. A register operand can be located in general, floating-point, access,
  14755. or control register. The register is identified by a four-bit field.
  14756. The field containing the register operand is called the R field.
  14757. Immediate operands are contained within the instruction and can have
  14758. 8, 16 or 32 bits. The field containing the immediate operand is called
  14759. the I field. Dependent on the instruction the I field is either signed
  14760. or unsigned.
  14761. A storage operand consists of an address and a length. The address
  14762. of a storage operands can be specified in any of these ways:
  14763. * The content of a single general R
  14764. * The sum of the content of a general register called the base
  14765. register B plus the content of a displacement field D
  14766. * The sum of the contents of two general registers called the index
  14767. register X and the base register B plus the content of a
  14768. displacement field
  14769. * The sum of the current instruction address and a 32-bit signed
  14770. immediate field multiplied by two.
  14771. The length of a storage operand can be:
  14772. * Implied by the instruction
  14773. * Specified by a bitmask
  14774. * Specified by a four-bit or eight-bit length field L
  14775. * Specified by the content of a general register
  14776. The notation for storage operand addresses formed from multiple
  14777. fields is as follows:
  14778. 'Dn(Bn)'
  14779. the address for operand number n is formed from the content of
  14780. general register Bn called the base register and the displacement
  14781. field Dn.
  14782. 'Dn(Xn,Bn)'
  14783. the address for operand number n is formed from the content of
  14784. general register Xn called the index register, general register Bn
  14785. called the base register and the displacement field Dn.
  14786. 'Dn(Ln,Bn)'
  14787. the address for operand number n is formed from the content of
  14788. general register Bn called the base register and the displacement
  14789. field Dn. The length of the operand n is specified by the field
  14790. Ln.
  14791. The base registers Bn and the index registers Xn of a storage operand
  14792. can be skipped. If Bn and Xn are skipped, a zero will be stored to the
  14793. operand field. The notation changes as follows:
  14794. full notation short notation
  14795. ----------------------------------------------
  14796. Dn(0,Bn) Dn(Bn)
  14797. Dn(0,0) Dn
  14798. Dn(0) Dn
  14799. Dn(Ln,0) Dn(Ln)
  14800. 
  14801. File: as.info, Node: s390 Formats, Next: s390 Aliases, Prev: s390 Operands, Up: s390 Syntax
  14802. 9.41.3.4 Instruction Formats
  14803. ............................
  14804. The Principles of Operation manuals lists 26 instruction formats where
  14805. some of the formats have multiple variants. For the '.insn' pseudo
  14806. directive the assembler recognizes some of the formats. Typically, the
  14807. most general variant of the instruction format is used by the '.insn'
  14808. directive.
  14809. The following table lists the abbreviations used in the table of
  14810. instruction formats:
  14811. OpCode / OpCd Part of the op code.
  14812. Bx Base register number for operand x.
  14813. Dx Displacement for operand x.
  14814. DLx Displacement lower 12 bits for operand x.
  14815. DHx Displacement higher 8-bits for operand x.
  14816. Rx Register number for operand x.
  14817. Xx Index register number for operand x.
  14818. Ix Signed immediate for operand x.
  14819. Ux Unsigned immediate for operand x.
  14820. An instruction is two, four, or six bytes in length and must be
  14821. aligned on a 2 byte boundary. The first two bits of the instruction
  14822. specify the length of the instruction, 00 indicates a two byte
  14823. instruction, 01 and 10 indicates a four byte instruction, and 11
  14824. indicates a six byte instruction.
  14825. The following table lists the s390 instruction formats that are
  14826. available with the '.insn' pseudo directive:
  14827. 'E format'
  14828. +-------------+
  14829. | OpCode |
  14830. +-------------+
  14831. 0 15
  14832. 'RI format: <insn> R1,I2'
  14833. +--------+----+----+------------------+
  14834. | OpCode | R1 |OpCd| I2 |
  14835. +--------+----+----+------------------+
  14836. 0 8 12 16 31
  14837. 'RIE format: <insn> R1,R3,I2'
  14838. +--------+----+----+------------------+--------+--------+
  14839. | OpCode | R1 | R3 | I2 |////////| OpCode |
  14840. +--------+----+----+------------------+--------+--------+
  14841. 0 8 12 16 32 40 47
  14842. 'RIL format: <insn> R1,I2'
  14843. +--------+----+----+------------------------------------+
  14844. | OpCode | R1 |OpCd| I2 |
  14845. +--------+----+----+------------------------------------+
  14846. 0 8 12 16 47
  14847. 'RILU format: <insn> R1,U2'
  14848. +--------+----+----+------------------------------------+
  14849. | OpCode | R1 |OpCd| U2 |
  14850. +--------+----+----+------------------------------------+
  14851. 0 8 12 16 47
  14852. 'RIS format: <insn> R1,I2,M3,D4(B4)'
  14853. +--------+----+----+----+-------------+--------+--------+
  14854. | OpCode | R1 | M3 | B4 | D4 | I2 | Opcode |
  14855. +--------+----+----+----+-------------+--------+--------+
  14856. 0 8 12 16 20 32 36 47
  14857. 'RR format: <insn> R1,R2'
  14858. +--------+----+----+
  14859. | OpCode | R1 | R2 |
  14860. +--------+----+----+
  14861. 0 8 12 15
  14862. 'RRE format: <insn> R1,R2'
  14863. +------------------+--------+----+----+
  14864. | OpCode |////////| R1 | R2 |
  14865. +------------------+--------+----+----+
  14866. 0 16 24 28 31
  14867. 'RRF format: <insn> R1,R2,R3,M4'
  14868. +------------------+----+----+----+----+
  14869. | OpCode | R3 | M4 | R1 | R2 |
  14870. +------------------+----+----+----+----+
  14871. 0 16 20 24 28 31
  14872. 'RRS format: <insn> R1,R2,M3,D4(B4)'
  14873. +--------+----+----+----+-------------+----+----+--------+
  14874. | OpCode | R1 | R3 | B4 | D4 | M3 |////| OpCode |
  14875. +--------+----+----+----+-------------+----+----+--------+
  14876. 0 8 12 16 20 32 36 40 47
  14877. 'RS format: <insn> R1,R3,D2(B2)'
  14878. +--------+----+----+----+-------------+
  14879. | OpCode | R1 | R3 | B2 | D2 |
  14880. +--------+----+----+----+-------------+
  14881. 0 8 12 16 20 31
  14882. 'RSE format: <insn> R1,R3,D2(B2)'
  14883. +--------+----+----+----+-------------+--------+--------+
  14884. | OpCode | R1 | R3 | B2 | D2 |////////| OpCode |
  14885. +--------+----+----+----+-------------+--------+--------+
  14886. 0 8 12 16 20 32 40 47
  14887. 'RSI format: <insn> R1,R3,I2'
  14888. +--------+----+----+------------------------------------+
  14889. | OpCode | R1 | R3 | I2 |
  14890. +--------+----+----+------------------------------------+
  14891. 0 8 12 16 47
  14892. 'RSY format: <insn> R1,R3,D2(B2)'
  14893. +--------+----+----+----+-------------+--------+--------+
  14894. | OpCode | R1 | R3 | B2 | DL2 | DH2 | OpCode |
  14895. +--------+----+----+----+-------------+--------+--------+
  14896. 0 8 12 16 20 32 40 47
  14897. 'RX format: <insn> R1,D2(X2,B2)'
  14898. +--------+----+----+----+-------------+
  14899. | OpCode | R1 | X2 | B2 | D2 |
  14900. +--------+----+----+----+-------------+
  14901. 0 8 12 16 20 31
  14902. 'RXE format: <insn> R1,D2(X2,B2)'
  14903. +--------+----+----+----+-------------+--------+--------+
  14904. | OpCode | R1 | X2 | B2 | D2 |////////| OpCode |
  14905. +--------+----+----+----+-------------+--------+--------+
  14906. 0 8 12 16 20 32 40 47
  14907. 'RXF format: <insn> R1,R3,D2(X2,B2)'
  14908. +--------+----+----+----+-------------+----+---+--------+
  14909. | OpCode | R3 | X2 | B2 | D2 | R1 |///| OpCode |
  14910. +--------+----+----+----+-------------+----+---+--------+
  14911. 0 8 12 16 20 32 36 40 47
  14912. 'RXY format: <insn> R1,D2(X2,B2)'
  14913. +--------+----+----+----+-------------+--------+--------+
  14914. | OpCode | R1 | X2 | B2 | DL2 | DH2 | OpCode |
  14915. +--------+----+----+----+-------------+--------+--------+
  14916. 0 8 12 16 20 32 36 40 47
  14917. 'S format: <insn> D2(B2)'
  14918. +------------------+----+-------------+
  14919. | OpCode | B2 | D2 |
  14920. +------------------+----+-------------+
  14921. 0 16 20 31
  14922. 'SI format: <insn> D1(B1),I2'
  14923. +--------+---------+----+-------------+
  14924. | OpCode | I2 | B1 | D1 |
  14925. +--------+---------+----+-------------+
  14926. 0 8 16 20 31
  14927. 'SIY format: <insn> D1(B1),U2'
  14928. +--------+---------+----+-------------+--------+--------+
  14929. | OpCode | I2 | B1 | DL1 | DH1 | OpCode |
  14930. +--------+---------+----+-------------+--------+--------+
  14931. 0 8 16 20 32 36 40 47
  14932. 'SIL format: <insn> D1(B1),I2'
  14933. +------------------+----+-------------+-----------------+
  14934. | OpCode | B1 | D1 | I2 |
  14935. +------------------+----+-------------+-----------------+
  14936. 0 16 20 32 47
  14937. 'SS format: <insn> D1(R1,B1),D2(B3),R3'
  14938. +--------+----+----+----+-------------+----+------------+
  14939. | OpCode | R1 | R3 | B1 | D1 | B2 | D2 |
  14940. +--------+----+----+----+-------------+----+------------+
  14941. 0 8 12 16 20 32 36 47
  14942. 'SSE format: <insn> D1(B1),D2(B2)'
  14943. +------------------+----+-------------+----+------------+
  14944. | OpCode | B1 | D1 | B2 | D2 |
  14945. +------------------+----+-------------+----+------------+
  14946. 0 8 12 16 20 32 36 47
  14947. 'SSF format: <insn> D1(B1),D2(B2),R3'
  14948. +--------+----+----+----+-------------+----+------------+
  14949. | OpCode | R3 |OpCd| B1 | D1 | B2 | D2 |
  14950. +--------+----+----+----+-------------+----+------------+
  14951. 0 8 12 16 20 32 36 47
  14952. For the complete list of all instruction format variants see the
  14953. Principles of Operation manuals.
  14954. 
  14955. File: as.info, Node: s390 Aliases, Next: s390 Operand Modifier, Prev: s390 Formats, Up: s390 Syntax
  14956. 9.41.3.5 Instruction Aliases
  14957. ............................
  14958. A specific bit pattern can have multiple mnemonics, for example the bit
  14959. pattern '0xa7000000' has the mnemonics 'tmh' and 'tmlh'. In addition,
  14960. there are a number of mnemonics recognized by 'as' that are not present
  14961. in the Principles of Operation. These are the short forms of the branch
  14962. instructions, where the condition code mask operand is encoded in the
  14963. mnemonic. This is relevant for the branch instructions, the compare and
  14964. branch instructions, and the compare and trap instructions.
  14965. For the branch instructions there are 20 condition code strings that
  14966. can be used as part of the mnemonic in place of a mask operand in the
  14967. instruction format:
  14968. instruction short form
  14969. ----------------------------------------------
  14970. bcr M1,R2 b<m>r R2
  14971. bc M1,D2(X2,B2) b<m> D2(X2,B2)
  14972. brc M1,I2 j<m> I2
  14973. brcl M1,I2 jg<m> I2
  14974. In the mnemonic for a branch instruction the condition code string
  14975. <m> can be any of the following:
  14976. o jump on overflow / if ones
  14977. h jump on A high
  14978. p jump on plus
  14979. nle jump on not low or equal
  14980. l jump on A low
  14981. m jump on minus
  14982. nhe jump on not high or equal
  14983. lh jump on low or high
  14984. ne jump on A not equal B
  14985. nz jump on not zero / if not zeros
  14986. e jump on A equal B
  14987. z jump on zero / if zeroes
  14988. nlh jump on not low or high
  14989. he jump on high or equal
  14990. nl jump on A not low
  14991. nm jump on not minus / if not mixed
  14992. le jump on low or equal
  14993. nh jump on A not high
  14994. np jump on not plus
  14995. no jump on not overflow / if not ones
  14996. For the compare and branch, and compare and trap instructions there
  14997. are 12 condition code strings that can be used as part of the mnemonic
  14998. in place of a mask operand in the instruction format:
  14999. instruction short form
  15000. ------------------------------------------------------------
  15001. crb R1,R2,M3,D4(B4) crb<m> R1,R2,D4(B4)
  15002. cgrb R1,R2,M3,D4(B4) cgrb<m> R1,R2,D4(B4)
  15003. crj R1,R2,M3,I4 crj<m> R1,R2,I4
  15004. cgrj R1,R2,M3,I4 cgrj<m> R1,R2,I4
  15005. cib R1,I2,M3,D4(B4) cib<m> R1,I2,D4(B4)
  15006. cgib R1,I2,M3,D4(B4) cgib<m> R1,I2,D4(B4)
  15007. cij R1,I2,M3,I4 cij<m> R1,I2,I4
  15008. cgij R1,I2,M3,I4 cgij<m> R1,I2,I4
  15009. crt R1,R2,M3 crt<m> R1,R2
  15010. cgrt R1,R2,M3 cgrt<m> R1,R2
  15011. cit R1,I2,M3 cit<m> R1,I2
  15012. cgit R1,I2,M3 cgit<m> R1,I2
  15013. clrb R1,R2,M3,D4(B4) clrb<m> R1,R2,D4(B4)
  15014. clgrb R1,R2,M3,D4(B4) clgrb<m> R1,R2,D4(B4)
  15015. clrj R1,R2,M3,I4 clrj<m> R1,R2,I4
  15016. clgrj R1,R2,M3,I4 clgrj<m> R1,R2,I4
  15017. clib R1,I2,M3,D4(B4) clib<m> R1,I2,D4(B4)
  15018. clgib R1,I2,M3,D4(B4) clgib<m> R1,I2,D4(B4)
  15019. clij R1,I2,M3,I4 clij<m> R1,I2,I4
  15020. clgij R1,I2,M3,I4 clgij<m> R1,I2,I4
  15021. clrt R1,R2,M3 clrt<m> R1,R2
  15022. clgrt R1,R2,M3 clgrt<m> R1,R2
  15023. clfit R1,I2,M3 clfit<m> R1,I2
  15024. clgit R1,I2,M3 clgit<m> R1,I2
  15025. In the mnemonic for a compare and branch and compare and trap
  15026. instruction the condition code string <m> can be any of the following:
  15027. h jump on A high
  15028. nle jump on not low or equal
  15029. l jump on A low
  15030. nhe jump on not high or equal
  15031. ne jump on A not equal B
  15032. lh jump on low or high
  15033. e jump on A equal B
  15034. nlh jump on not low or high
  15035. nl jump on A not low
  15036. he jump on high or equal
  15037. nh jump on A not high
  15038. le jump on low or equal
  15039. 
  15040. File: as.info, Node: s390 Operand Modifier, Next: s390 Instruction Marker, Prev: s390 Aliases, Up: s390 Syntax
  15041. 9.41.3.6 Instruction Operand Modifier
  15042. .....................................
  15043. If a symbol modifier is attached to a symbol in an expression for an
  15044. instruction operand field, the symbol term is replaced with a reference
  15045. to an object in the global offset table (GOT) or the procedure linkage
  15046. table (PLT). The following expressions are allowed: 'symbol@modifier +
  15047. constant', 'symbol@modifier + label + constant', and 'symbol@modifier -
  15048. label + constant'. The term 'symbol' is the symbol that will be entered
  15049. into the GOT or PLT, 'label' is a local label, and 'constant' is an
  15050. arbitrary expression that the assembler can evaluate to a constant
  15051. value.
  15052. The term '(symbol + constant1)@modifier +/- label + constant2' is
  15053. also accepted but a warning message is printed and the term is converted
  15054. to 'symbol@modifier +/- label + constant1 + constant2'.
  15055. '@got'
  15056. '@got12'
  15057. The @got modifier can be used for displacement fields, 16-bit
  15058. immediate fields and 32-bit pc-relative immediate fields. The
  15059. @got12 modifier is synonym to @got. The symbol is added to the
  15060. GOT. For displacement fields and 16-bit immediate fields the symbol
  15061. term is replaced with the offset from the start of the GOT to the
  15062. GOT slot for the symbol. For a 32-bit pc-relative field the
  15063. pc-relative offset to the GOT slot from the current instruction
  15064. address is used.
  15065. '@gotent'
  15066. The @gotent modifier can be used for 32-bit pc-relative immediate
  15067. fields. The symbol is added to the GOT and the symbol term is
  15068. replaced with the pc-relative offset from the current instruction
  15069. to the GOT slot for the symbol.
  15070. '@gotoff'
  15071. The @gotoff modifier can be used for 16-bit immediate fields. The
  15072. symbol term is replaced with the offset from the start of the GOT
  15073. to the address of the symbol.
  15074. '@gotplt'
  15075. The @gotplt modifier can be used for displacement fields, 16-bit
  15076. immediate fields, and 32-bit pc-relative immediate fields. A
  15077. procedure linkage table entry is generated for the symbol and a
  15078. jump slot for the symbol is added to the GOT. For displacement
  15079. fields and 16-bit immediate fields the symbol term is replaced with
  15080. the offset from the start of the GOT to the jump slot for the
  15081. symbol. For a 32-bit pc-relative field the pc-relative offset to
  15082. the jump slot from the current instruction address is used.
  15083. '@plt'
  15084. The @plt modifier can be used for 16-bit and 32-bit pc-relative
  15085. immediate fields. A procedure linkage table entry is generated for
  15086. the symbol. The symbol term is replaced with the relative offset
  15087. from the current instruction to the PLT entry for the symbol.
  15088. '@pltoff'
  15089. The @pltoff modifier can be used for 16-bit immediate fields. The
  15090. symbol term is replaced with the offset from the start of the PLT
  15091. to the address of the symbol.
  15092. '@gotntpoff'
  15093. The @gotntpoff modifier can be used for displacement fields. The
  15094. symbol is added to the static TLS block and the negated offset to
  15095. the symbol in the static TLS block is added to the GOT. The symbol
  15096. term is replaced with the offset to the GOT slot from the start of
  15097. the GOT.
  15098. '@indntpoff'
  15099. The @indntpoff modifier can be used for 32-bit pc-relative
  15100. immediate fields. The symbol is added to the static TLS block and
  15101. the negated offset to the symbol in the static TLS block is added
  15102. to the GOT. The symbol term is replaced with the pc-relative offset
  15103. to the GOT slot from the current instruction address.
  15104. For more information about the thread local storage modifiers
  15105. 'gotntpoff' and 'indntpoff' see the ELF extension documentation 'ELF
  15106. Handling For Thread-Local Storage'.
  15107. 
  15108. File: as.info, Node: s390 Instruction Marker, Next: s390 Literal Pool Entries, Prev: s390 Operand Modifier, Up: s390 Syntax
  15109. 9.41.3.7 Instruction Marker
  15110. ...........................
  15111. The thread local storage instruction markers are used by the linker to
  15112. perform code optimization.
  15113. ':tls_load'
  15114. The :tls_load marker is used to flag the load instruction in the
  15115. initial exec TLS model that retrieves the offset from the thread
  15116. pointer to a thread local storage variable from the GOT.
  15117. ':tls_gdcall'
  15118. The :tls_gdcall marker is used to flag the branch-and-save
  15119. instruction to the __tls_get_offset function in the global dynamic
  15120. TLS model.
  15121. ':tls_ldcall'
  15122. The :tls_ldcall marker is used to flag the branch-and-save
  15123. instruction to the __tls_get_offset function in the local dynamic
  15124. TLS model.
  15125. For more information about the thread local storage instruction
  15126. marker and the linker optimizations see the ELF extension documentation
  15127. 'ELF Handling For Thread-Local Storage'.
  15128. 
  15129. File: as.info, Node: s390 Literal Pool Entries, Prev: s390 Instruction Marker, Up: s390 Syntax
  15130. 9.41.3.8 Literal Pool Entries
  15131. .............................
  15132. A literal pool is a collection of values. To access the values a
  15133. pointer to the literal pool is loaded to a register, the literal pool
  15134. register. Usually, register %r13 is used as the literal pool register
  15135. (*note s390 Register::). Literal pool entries are created by adding the
  15136. suffix :lit1, :lit2, :lit4, or :lit8 to the end of an expression for an
  15137. instruction operand. The expression is added to the literal pool and
  15138. the operand is replaced with the offset to the literal in the literal
  15139. pool.
  15140. ':lit1'
  15141. The literal pool entry is created as an 8-bit value. An operand
  15142. modifier must not be used for the original expression.
  15143. ':lit2'
  15144. The literal pool entry is created as a 16 bit value. The operand
  15145. modifier @got may be used in the original expression. The term
  15146. 'x@got:lit2' will put the got offset for the global symbol x to the
  15147. literal pool as 16 bit value.
  15148. ':lit4'
  15149. The literal pool entry is created as a 32-bit value. The operand
  15150. modifier @got and @plt may be used in the original expression. The
  15151. term 'x@got:lit4' will put the got offset for the global symbol x
  15152. to the literal pool as a 32-bit value. The term 'x@plt:lit4' will
  15153. put the plt offset for the global symbol x to the literal pool as a
  15154. 32-bit value.
  15155. ':lit8'
  15156. The literal pool entry is created as a 64-bit value. The operand
  15157. modifier @got and @plt may be used in the original expression. The
  15158. term 'x@got:lit8' will put the got offset for the global symbol x
  15159. to the literal pool as a 64-bit value. The term 'x@plt:lit8' will
  15160. put the plt offset for the global symbol x to the literal pool as a
  15161. 64-bit value.
  15162. The assembler directive '.ltorg' is used to emit all literal pool
  15163. entries to the current position.
  15164. 
  15165. File: as.info, Node: s390 Directives, Next: s390 Floating Point, Prev: s390 Syntax, Up: S/390-Dependent
  15166. 9.41.4 Assembler Directives
  15167. ---------------------------
  15168. 'as' for s390 supports all of the standard ELF assembler directives as
  15169. outlined in the main part of this document. Some directives have been
  15170. extended and there are some additional directives, which are only
  15171. available for the s390 'as'.
  15172. '.insn'
  15173. This directive permits the numeric representation of an
  15174. instructions and makes the assembler insert the operands according
  15175. to one of the instructions formats for '.insn' (*note s390
  15176. Formats::). For example, the instruction 'l %r1,24(%r15)' could be
  15177. written as '.insn rx,0x58000000,%r1,24(%r15)'.
  15178. '.short'
  15179. '.long'
  15180. '.quad'
  15181. This directive places one or more 16-bit (.short), 32-bit (.long),
  15182. or 64-bit (.quad) values into the current section. If an ELF or
  15183. TLS modifier is used only the following expressions are allowed:
  15184. 'symbol@modifier + constant', 'symbol@modifier + label + constant',
  15185. and 'symbol@modifier - label + constant'. The following modifiers
  15186. are available:
  15187. '@got'
  15188. '@got12'
  15189. The @got modifier can be used for .short, .long and .quad.
  15190. The @got12 modifier is synonym to @got. The symbol is added
  15191. to the GOT. The symbol term is replaced with offset from the
  15192. start of the GOT to the GOT slot for the symbol.
  15193. '@gotoff'
  15194. The @gotoff modifier can be used for .short, .long and .quad.
  15195. The symbol term is replaced with the offset from the start of
  15196. the GOT to the address of the symbol.
  15197. '@gotplt'
  15198. The @gotplt modifier can be used for .long and .quad. A
  15199. procedure linkage table entry is generated for the symbol and
  15200. a jump slot for the symbol is added to the GOT. The symbol
  15201. term is replaced with the offset from the start of the GOT to
  15202. the jump slot for the symbol.
  15203. '@plt'
  15204. The @plt modifier can be used for .long and .quad. A
  15205. procedure linkage table entry us generated for the symbol.
  15206. The symbol term is replaced with the address of the PLT entry
  15207. for the symbol.
  15208. '@pltoff'
  15209. The @pltoff modifier can be used for .short, .long and .quad.
  15210. The symbol term is replaced with the offset from the start of
  15211. the PLT to the address of the symbol.
  15212. '@tlsgd'
  15213. '@tlsldm'
  15214. The @tlsgd and @tlsldm modifier can be used for .long and
  15215. .quad. A tls_index structure for the symbol is added to the
  15216. GOT. The symbol term is replaced with the offset from the
  15217. start of the GOT to the tls_index structure.
  15218. '@gotntpoff'
  15219. '@indntpoff'
  15220. The @gotntpoff and @indntpoff modifier can be used for .long
  15221. and .quad. The symbol is added to the static TLS block and
  15222. the negated offset to the symbol in the static TLS block is
  15223. added to the GOT. For @gotntpoff the symbol term is replaced
  15224. with the offset from the start of the GOT to the GOT slot, for
  15225. @indntpoff the symbol term is replaced with the address of the
  15226. GOT slot.
  15227. '@dtpoff'
  15228. The @dtpoff modifier can be used for .long and .quad. The
  15229. symbol term is replaced with the offset of the symbol relative
  15230. to the start of the TLS block it is contained in.
  15231. '@ntpoff'
  15232. The @ntpoff modifier can be used for .long and .quad. The
  15233. symbol term is replaced with the offset of the symbol relative
  15234. to the TCB pointer.
  15235. For more information about the thread local storage modifiers see
  15236. the ELF extension documentation 'ELF Handling For Thread-Local
  15237. Storage'.
  15238. '.ltorg'
  15239. This directive causes the current contents of the literal pool to
  15240. be dumped to the current location (*note s390 Literal Pool
  15241. Entries::).
  15242. '.machine STRING[+EXTENSION]...'
  15243. This directive allows changing the machine for which code is
  15244. generated. 'string' may be any of the '-march=' selection options,
  15245. or 'push', or 'pop'. '.machine push' saves the currently selected
  15246. cpu, which may be restored with '.machine pop'. Be aware that the
  15247. cpu string has to be put into double quotes in case it contains
  15248. characters not appropriate for identifiers. So you have to write
  15249. '"z9-109"' instead of just 'z9-109'. Extensions can be specified
  15250. after the cpu name, separated by plus characters. Valid extensions
  15251. are: 'htm', 'nohtm', 'vx', 'novx'. They extend the basic
  15252. instruction set with features from a higher cpu level, or remove
  15253. support for a feature from the given cpu level.
  15254. Example: 'z13+nohtm' allows all instructions of the z13 cpu except
  15255. instructions from the HTM facility.
  15256. '.machinemode string'
  15257. This directive allows to change the architecture mode for which
  15258. code is being generated. 'string' may be 'esa', 'zarch',
  15259. 'zarch_nohighgprs', 'push', or 'pop'. '.machinemode
  15260. zarch_nohighgprs' can be used to prevent the 'highgprs' flag from
  15261. being set in the ELF header of the output file. This is useful in
  15262. situations where the code is gated with a runtime check which makes
  15263. sure that the code is only executed on kernels providing the
  15264. 'highgprs' feature. '.machinemode push' saves the currently
  15265. selected mode, which may be restored with '.machinemode pop'.
  15266. 
  15267. File: as.info, Node: s390 Floating Point, Prev: s390 Directives, Up: S/390-Dependent
  15268. 9.41.5 Floating Point
  15269. ---------------------
  15270. The assembler recognizes both the IEEE floating-point instruction and
  15271. the hexadecimal floating-point instructions. The floating-point
  15272. constructors '.float', '.single', and '.double' always emit the IEEE
  15273. format. To assemble hexadecimal floating-point constants the '.long'
  15274. and '.quad' directives must be used.
  15275. 
  15276. File: as.info, Node: SCORE-Dependent, Next: SH-Dependent, Prev: S/390-Dependent, Up: Machine Dependencies
  15277. 9.42 SCORE Dependent Features
  15278. =============================
  15279. * Menu:
  15280. * SCORE-Opts:: Assembler options
  15281. * SCORE-Pseudo:: SCORE Assembler Directives
  15282. * SCORE-Syntax:: Syntax
  15283. 
  15284. File: as.info, Node: SCORE-Opts, Next: SCORE-Pseudo, Up: SCORE-Dependent
  15285. 9.42.1 Options
  15286. --------------
  15287. The following table lists all available SCORE options.
  15288. '-G NUM'
  15289. This option sets the largest size of an object that can be
  15290. referenced implicitly with the 'gp' register. The default value is
  15291. 8.
  15292. '-EB'
  15293. Assemble code for a big-endian cpu
  15294. '-EL'
  15295. Assemble code for a little-endian cpu
  15296. '-FIXDD'
  15297. Assemble code for fix data dependency
  15298. '-NWARN'
  15299. Assemble code for no warning message for fix data dependency
  15300. '-SCORE5'
  15301. Assemble code for target is SCORE5
  15302. '-SCORE5U'
  15303. Assemble code for target is SCORE5U
  15304. '-SCORE7'
  15305. Assemble code for target is SCORE7, this is default setting
  15306. '-SCORE3'
  15307. Assemble code for target is SCORE3
  15308. '-march=score7'
  15309. Assemble code for target is SCORE7, this is default setting
  15310. '-march=score3'
  15311. Assemble code for target is SCORE3
  15312. '-USE_R1'
  15313. Assemble code for no warning message when using temp register r1
  15314. '-KPIC'
  15315. Generate code for PIC. This option tells the assembler to generate
  15316. score position-independent macro expansions. It also tells the
  15317. assembler to mark the output file as PIC.
  15318. '-O0'
  15319. Assembler will not perform any optimizations
  15320. '-V'
  15321. Sunplus release version
  15322. 
  15323. File: as.info, Node: SCORE-Pseudo, Next: SCORE-Syntax, Prev: SCORE-Opts, Up: SCORE-Dependent
  15324. 9.42.2 SCORE Assembler Directives
  15325. ---------------------------------
  15326. A number of assembler directives are available for SCORE. The following
  15327. table is far from complete.
  15328. '.set nwarn'
  15329. Let the assembler not to generate warnings if the source machine
  15330. language instructions happen data dependency.
  15331. '.set fixdd'
  15332. Let the assembler to insert bubbles (32 bit nop instruction / 16
  15333. bit nop! Instruction) if the source machine language instructions
  15334. happen data dependency.
  15335. '.set nofixdd'
  15336. Let the assembler to generate warnings if the source machine
  15337. language instructions happen data dependency. (Default)
  15338. '.set r1'
  15339. Let the assembler not to generate warnings if the source program
  15340. uses r1. allow user to use r1
  15341. 'set nor1'
  15342. Let the assembler to generate warnings if the source program uses
  15343. r1. (Default)
  15344. '.sdata'
  15345. Tell the assembler to add subsequent data into the sdata section
  15346. '.rdata'
  15347. Tell the assembler to add subsequent data into the rdata section
  15348. '.frame "frame-register", "offset", "return-pc-register"'
  15349. Describe a stack frame. "frame-register" is the frame register,
  15350. "offset" is the distance from the frame register to the virtual
  15351. frame pointer, "return-pc-register" is the return program register.
  15352. You must use ".ent" before ".frame" and only one ".frame" can be
  15353. used per ".ent".
  15354. '.mask "bitmask", "frameoffset"'
  15355. Indicate which of the integer registers are saved in the current
  15356. function's stack frame, this is for the debugger to explain the
  15357. frame chain.
  15358. '.ent "proc-name"'
  15359. Set the beginning of the procedure "proc_name". Use this directive
  15360. when you want to generate information for the debugger.
  15361. '.end proc-name'
  15362. Set the end of a procedure. Use this directive to generate
  15363. information for the debugger.
  15364. '.bss'
  15365. Switch the destination of following statements into the bss
  15366. section, which is used for data that is uninitialized anywhere.
  15367. 
  15368. File: as.info, Node: SCORE-Syntax, Prev: SCORE-Pseudo, Up: SCORE-Dependent
  15369. 9.42.3 SCORE Syntax
  15370. -------------------
  15371. * Menu:
  15372. * SCORE-Chars:: Special Characters
  15373. 
  15374. File: as.info, Node: SCORE-Chars, Up: SCORE-Syntax
  15375. 9.42.3.1 Special Characters
  15376. ...........................
  15377. The presence of a '#' appearing anywhere on a line indicates the start
  15378. of a comment that extends to the end of that line.
  15379. If a '#' appears as the first character of a line then the whole line
  15380. is treated as a comment, but in this case the line can also be a logical
  15381. line number directive (*note Comments::) or a preprocessor control
  15382. command (*note Preprocessing::).
  15383. The ';' character can be used to separate statements on the same
  15384. line.
  15385. 
  15386. File: as.info, Node: SH-Dependent, Next: Sparc-Dependent, Prev: SCORE-Dependent, Up: Machine Dependencies
  15387. 9.43 Renesas / SuperH SH Dependent Features
  15388. ===========================================
  15389. * Menu:
  15390. * SH Options:: Options
  15391. * SH Syntax:: Syntax
  15392. * SH Floating Point:: Floating Point
  15393. * SH Directives:: SH Machine Directives
  15394. * SH Opcodes:: Opcodes
  15395. 
  15396. File: as.info, Node: SH Options, Next: SH Syntax, Up: SH-Dependent
  15397. 9.43.1 Options
  15398. --------------
  15399. 'as' has following command-line options for the Renesas (formerly
  15400. Hitachi) / SuperH SH family.
  15401. '--little'
  15402. Generate little endian code.
  15403. '--big'
  15404. Generate big endian code.
  15405. '--relax'
  15406. Alter jump instructions for long displacements.
  15407. '--small'
  15408. Align sections to 4 byte boundaries, not 16.
  15409. '--dsp'
  15410. Enable sh-dsp insns, and disable sh3e / sh4 insns.
  15411. '--renesas'
  15412. Disable optimization with section symbol for compatibility with
  15413. Renesas assembler.
  15414. '--allow-reg-prefix'
  15415. Allow '$' as a register name prefix.
  15416. '--fdpic'
  15417. Generate an FDPIC object file.
  15418. '--isa=sh4 | sh4a'
  15419. Specify the sh4 or sh4a instruction set.
  15420. '--isa=dsp'
  15421. Enable sh-dsp insns, and disable sh3e / sh4 insns.
  15422. '--isa=fp'
  15423. Enable sh2e, sh3e, sh4, and sh4a insn sets.
  15424. '--isa=all'
  15425. Enable sh1, sh2, sh2e, sh3, sh3e, sh4, sh4a, and sh-dsp insn sets.
  15426. '-h-tick-hex'
  15427. Support H'00 style hex constants in addition to 0x00 style.
  15428. 
  15429. File: as.info, Node: SH Syntax, Next: SH Floating Point, Prev: SH Options, Up: SH-Dependent
  15430. 9.43.2 Syntax
  15431. -------------
  15432. * Menu:
  15433. * SH-Chars:: Special Characters
  15434. * SH-Regs:: Register Names
  15435. * SH-Addressing:: Addressing Modes
  15436. 
  15437. File: as.info, Node: SH-Chars, Next: SH-Regs, Up: SH Syntax
  15438. 9.43.2.1 Special Characters
  15439. ...........................
  15440. '!' is the line comment character.
  15441. You can use ';' instead of a newline to separate statements.
  15442. If a '#' appears as the first character of a line then the whole line
  15443. is treated as a comment, but in this case the line could also be a
  15444. logical line number directive (*note Comments::) or a preprocessor
  15445. control command (*note Preprocessing::).
  15446. Since '$' has no special meaning, you may use it in symbol names.
  15447. 
  15448. File: as.info, Node: SH-Regs, Next: SH-Addressing, Prev: SH-Chars, Up: SH Syntax
  15449. 9.43.2.2 Register Names
  15450. .......................
  15451. You can use the predefined symbols 'r0', 'r1', 'r2', 'r3', 'r4', 'r5',
  15452. 'r6', 'r7', 'r8', 'r9', 'r10', 'r11', 'r12', 'r13', 'r14', and 'r15' to
  15453. refer to the SH registers.
  15454. The SH also has these control registers:
  15455. 'pr'
  15456. procedure register (holds return address)
  15457. 'pc'
  15458. program counter
  15459. 'mach'
  15460. 'macl'
  15461. high and low multiply accumulator registers
  15462. 'sr'
  15463. status register
  15464. 'gbr'
  15465. global base register
  15466. 'vbr'
  15467. vector base register (for interrupt vectors)
  15468. 
  15469. File: as.info, Node: SH-Addressing, Prev: SH-Regs, Up: SH Syntax
  15470. 9.43.2.3 Addressing Modes
  15471. .........................
  15472. 'as' understands the following addressing modes for the SH. 'RN' in the
  15473. following refers to any of the numbered registers, but _not_ the control
  15474. registers.
  15475. 'RN'
  15476. Register direct
  15477. '@RN'
  15478. Register indirect
  15479. '@-RN'
  15480. Register indirect with pre-decrement
  15481. '@RN+'
  15482. Register indirect with post-increment
  15483. '@(DISP, RN)'
  15484. Register indirect with displacement
  15485. '@(R0, RN)'
  15486. Register indexed
  15487. '@(DISP, GBR)'
  15488. 'GBR' offset
  15489. '@(R0, GBR)'
  15490. GBR indexed
  15491. 'ADDR'
  15492. '@(DISP, PC)'
  15493. PC relative address (for branch or for addressing memory). The
  15494. 'as' implementation allows you to use the simpler form ADDR
  15495. anywhere a PC relative address is called for; the alternate form is
  15496. supported for compatibility with other assemblers.
  15497. '#IMM'
  15498. Immediate data
  15499. 
  15500. File: as.info, Node: SH Floating Point, Next: SH Directives, Prev: SH Syntax, Up: SH-Dependent
  15501. 9.43.3 Floating Point
  15502. ---------------------
  15503. SH2E, SH3E and SH4 groups have on-chip floating-point unit (FPU). Other
  15504. SH groups can use '.float' directive to generate IEEE floating-point
  15505. numbers.
  15506. SH2E and SH3E support single-precision floating point calculations as
  15507. well as entirely PCAPI compatible emulation of double-precision floating
  15508. point calculations. SH2E and SH3E instructions are a subset of the
  15509. floating point calculations conforming to the IEEE754 standard.
  15510. In addition to single-precision and double-precision floating-point
  15511. operation capability, the on-chip FPU of SH4 has a 128-bit graphic
  15512. engine that enables 32-bit floating-point data to be processed 128 bits
  15513. at a time. It also supports 4 * 4 array operations and inner product
  15514. operations. Also, a superscalar architecture is employed that enables
  15515. simultaneous execution of two instructions (including FPU instructions),
  15516. providing performance of up to twice that of conventional architectures
  15517. at the same frequency.
  15518. 
  15519. File: as.info, Node: SH Directives, Next: SH Opcodes, Prev: SH Floating Point, Up: SH-Dependent
  15520. 9.43.4 SH Machine Directives
  15521. ----------------------------
  15522. 'uaword'
  15523. 'ualong'
  15524. 'uaquad'
  15525. 'as' will issue a warning when a misaligned '.word', '.long', or
  15526. '.quad' directive is used. You may use '.uaword', '.ualong', or
  15527. '.uaquad' to indicate that the value is intentionally misaligned.
  15528. 
  15529. File: as.info, Node: SH Opcodes, Prev: SH Directives, Up: SH-Dependent
  15530. 9.43.5 Opcodes
  15531. --------------
  15532. For detailed information on the SH machine instruction set, see
  15533. 'SH-Microcomputer User's Manual' (Renesas) or 'SH-4 32-bit CPU Core
  15534. Architecture' (SuperH) and 'SuperH (SH) 64-Bit RISC Series' (SuperH).
  15535. 'as' implements all the standard SH opcodes. No additional
  15536. pseudo-instructions are needed on this family. Note, however, that
  15537. because 'as' supports a simpler form of PC-relative addressing, you may
  15538. simply write (for example)
  15539. mov.l bar,r0
  15540. where other assemblers might require an explicit displacement to 'bar'
  15541. from the program counter:
  15542. mov.l @(DISP, PC)
  15543. Here is a summary of SH opcodes:
  15544. Legend:
  15545. Rn a numbered register
  15546. Rm another numbered register
  15547. #imm immediate data
  15548. disp displacement
  15549. disp8 8-bit displacement
  15550. disp12 12-bit displacement
  15551. add #imm,Rn lds.l @Rn+,PR
  15552. add Rm,Rn mac.w @Rm+,@Rn+
  15553. addc Rm,Rn mov #imm,Rn
  15554. addv Rm,Rn mov Rm,Rn
  15555. and #imm,R0 mov.b Rm,@(R0,Rn)
  15556. and Rm,Rn mov.b Rm,@-Rn
  15557. and.b #imm,@(R0,GBR) mov.b Rm,@Rn
  15558. bf disp8 mov.b @(disp,Rm),R0
  15559. bra disp12 mov.b @(disp,GBR),R0
  15560. bsr disp12 mov.b @(R0,Rm),Rn
  15561. bt disp8 mov.b @Rm+,Rn
  15562. clrmac mov.b @Rm,Rn
  15563. clrt mov.b R0,@(disp,Rm)
  15564. cmp/eq #imm,R0 mov.b R0,@(disp,GBR)
  15565. cmp/eq Rm,Rn mov.l Rm,@(disp,Rn)
  15566. cmp/ge Rm,Rn mov.l Rm,@(R0,Rn)
  15567. cmp/gt Rm,Rn mov.l Rm,@-Rn
  15568. cmp/hi Rm,Rn mov.l Rm,@Rn
  15569. cmp/hs Rm,Rn mov.l @(disp,Rn),Rm
  15570. cmp/pl Rn mov.l @(disp,GBR),R0
  15571. cmp/pz Rn mov.l @(disp,PC),Rn
  15572. cmp/str Rm,Rn mov.l @(R0,Rm),Rn
  15573. div0s Rm,Rn mov.l @Rm+,Rn
  15574. div0u mov.l @Rm,Rn
  15575. div1 Rm,Rn mov.l R0,@(disp,GBR)
  15576. exts.b Rm,Rn mov.w Rm,@(R0,Rn)
  15577. exts.w Rm,Rn mov.w Rm,@-Rn
  15578. extu.b Rm,Rn mov.w Rm,@Rn
  15579. extu.w Rm,Rn mov.w @(disp,Rm),R0
  15580. jmp @Rn mov.w @(disp,GBR),R0
  15581. jsr @Rn mov.w @(disp,PC),Rn
  15582. ldc Rn,GBR mov.w @(R0,Rm),Rn
  15583. ldc Rn,SR mov.w @Rm+,Rn
  15584. ldc Rn,VBR mov.w @Rm,Rn
  15585. ldc.l @Rn+,GBR mov.w R0,@(disp,Rm)
  15586. ldc.l @Rn+,SR mov.w R0,@(disp,GBR)
  15587. ldc.l @Rn+,VBR mova @(disp,PC),R0
  15588. lds Rn,MACH movt Rn
  15589. lds Rn,MACL muls Rm,Rn
  15590. lds Rn,PR mulu Rm,Rn
  15591. lds.l @Rn+,MACH neg Rm,Rn
  15592. lds.l @Rn+,MACL negc Rm,Rn
  15593. nop stc VBR,Rn
  15594. not Rm,Rn stc.l GBR,@-Rn
  15595. or #imm,R0 stc.l SR,@-Rn
  15596. or Rm,Rn stc.l VBR,@-Rn
  15597. or.b #imm,@(R0,GBR) sts MACH,Rn
  15598. rotcl Rn sts MACL,Rn
  15599. rotcr Rn sts PR,Rn
  15600. rotl Rn sts.l MACH,@-Rn
  15601. rotr Rn sts.l MACL,@-Rn
  15602. rte sts.l PR,@-Rn
  15603. rts sub Rm,Rn
  15604. sett subc Rm,Rn
  15605. shal Rn subv Rm,Rn
  15606. shar Rn swap.b Rm,Rn
  15607. shll Rn swap.w Rm,Rn
  15608. shll16 Rn tas.b @Rn
  15609. shll2 Rn trapa #imm
  15610. shll8 Rn tst #imm,R0
  15611. shlr Rn tst Rm,Rn
  15612. shlr16 Rn tst.b #imm,@(R0,GBR)
  15613. shlr2 Rn xor #imm,R0
  15614. shlr8 Rn xor Rm,Rn
  15615. sleep xor.b #imm,@(R0,GBR)
  15616. stc GBR,Rn xtrct Rm,Rn
  15617. stc SR,Rn
  15618. 
  15619. File: as.info, Node: Sparc-Dependent, Next: TIC54X-Dependent, Prev: SH-Dependent, Up: Machine Dependencies
  15620. 9.44 SPARC Dependent Features
  15621. =============================
  15622. * Menu:
  15623. * Sparc-Opts:: Options
  15624. * Sparc-Aligned-Data:: Option to enforce aligned data
  15625. * Sparc-Syntax:: Syntax
  15626. * Sparc-Float:: Floating Point
  15627. * Sparc-Directives:: Sparc Machine Directives
  15628. 
  15629. File: as.info, Node: Sparc-Opts, Next: Sparc-Aligned-Data, Up: Sparc-Dependent
  15630. 9.44.1 Options
  15631. --------------
  15632. The SPARC chip family includes several successive versions, using the
  15633. same core instruction set, but including a few additional instructions
  15634. at each version. There are exceptions to this however. For details on
  15635. what instructions each variant supports, please see the chip's
  15636. architecture reference manual.
  15637. By default, 'as' assumes the core instruction set (SPARC v6), but
  15638. "bumps" the architecture level as needed: it switches to successively
  15639. higher architectures as it encounters instructions that only exist in
  15640. the higher levels.
  15641. If not configured for SPARC v9 ('sparc64-*-*') GAS will not bump past
  15642. sparclite by default, an option must be passed to enable the v9
  15643. instructions.
  15644. GAS treats sparclite as being compatible with v8, unless an
  15645. architecture is explicitly requested. SPARC v9 is always incompatible
  15646. with sparclite.
  15647. '-Av6 | -Av7 | -Av8 | -Aleon | -Asparclet | -Asparclite'
  15648. '-Av8plus | -Av8plusa | -Av8plusb | -Av8plusc | -Av8plusd |'
  15649. '-Av8plusv | -Av8plusm | -Av8plusm8'
  15650. '-Av9 | -Av9a | -Av9b | -Av9c | -Av9d | -Av9e | -Av9v | -Av9m | -Av9m8'
  15651. '-Asparc | -Asparcvis | -Asparcvis2 | -Asparcfmaf | -Asparcima'
  15652. '-Asparcvis3 | -Asparcvis3r | -Asparc5 | -Asparc6'
  15653. Use one of the '-A' options to select one of the SPARC
  15654. architectures explicitly. If you select an architecture
  15655. explicitly, 'as' reports a fatal error if it encounters an
  15656. instruction or feature requiring an incompatible or higher level.
  15657. '-Av8plus', '-Av8plusa', '-Av8plusb', '-Av8plusc', '-Av8plusd', and
  15658. '-Av8plusv' select a 32 bit environment.
  15659. '-Av9', '-Av9a', '-Av9b', '-Av9c', '-Av9d', '-Av9e', '-Av9v' and
  15660. '-Av9m' select a 64 bit environment and are not available unless
  15661. GAS is explicitly configured with 64 bit environment support.
  15662. '-Av8plusa' and '-Av9a' enable the SPARC V9 instruction set with
  15663. UltraSPARC VIS 1.0 extensions.
  15664. '-Av8plusb' and '-Av9b' enable the UltraSPARC VIS 2.0 instructions,
  15665. as well as the instructions enabled by '-Av8plusa' and '-Av9a'.
  15666. '-Av8plusc' and '-Av9c' enable the UltraSPARC Niagara instructions,
  15667. as well as the instructions enabled by '-Av8plusb' and '-Av9b'.
  15668. '-Av8plusd' and '-Av9d' enable the floating point fused
  15669. multiply-add, VIS 3.0, and HPC extension instructions, as well as
  15670. the instructions enabled by '-Av8plusc' and '-Av9c'.
  15671. '-Av8pluse' and '-Av9e' enable the cryptographic instructions, as
  15672. well as the instructions enabled by '-Av8plusd' and '-Av9d'.
  15673. '-Av8plusv' and '-Av9v' enable floating point unfused multiply-add,
  15674. and integer multiply-add, as well as the instructions enabled by
  15675. '-Av8pluse' and '-Av9e'.
  15676. '-Av8plusm' and '-Av9m' enable the VIS 4.0, subtract extended,
  15677. xmpmul, xmontmul and xmontsqr instructions, as well as the
  15678. instructions enabled by '-Av8plusv' and '-Av9v'.
  15679. '-Av8plusm8' and '-Av9m8' enable the instructions introduced in the
  15680. Oracle SPARC Architecture 2017 and the M8 processor, as well as the
  15681. instructions enabled by '-Av8plusm' and '-Av9m'.
  15682. '-Asparc' specifies a v9 environment. It is equivalent to '-Av9'
  15683. if the word size is 64-bit, and '-Av8plus' otherwise.
  15684. '-Asparcvis' specifies a v9a environment. It is equivalent to
  15685. '-Av9a' if the word size is 64-bit, and '-Av8plusa' otherwise.
  15686. '-Asparcvis2' specifies a v9b environment. It is equivalent to
  15687. '-Av9b' if the word size is 64-bit, and '-Av8plusb' otherwise.
  15688. '-Asparcfmaf' specifies a v9b environment with the floating point
  15689. fused multiply-add instructions enabled.
  15690. '-Asparcima' specifies a v9b environment with the integer
  15691. multiply-add instructions enabled.
  15692. '-Asparcvis3' specifies a v9b environment with the VIS 3.0, HPC ,
  15693. and floating point fused multiply-add instructions enabled.
  15694. '-Asparcvis3r' specifies a v9b environment with the VIS 3.0, HPC,
  15695. and floating point unfused multiply-add instructions enabled.
  15696. '-Asparc5' is equivalent to '-Av9m'.
  15697. '-Asparc6' is equivalent to '-Av9m8'.
  15698. '-xarch=v8plus | -xarch=v8plusa | -xarch=v8plusb | -xarch=v8plusc'
  15699. '-xarch=v8plusd | -xarch=v8plusv | -xarch=v8plusm |'
  15700. '-xarch=v8plusm8 | -xarch=v9 | -xarch=v9a | -xarch=v9b'
  15701. '-xarch=v9c | -xarch=v9d | -xarch=v9e | -xarch=v9v'
  15702. '-xarch=v9m | -xarch=v9m8'
  15703. '-xarch=sparc | -xarch=sparcvis | -xarch=sparcvis2'
  15704. '-xarch=sparcfmaf | -xarch=sparcima | -xarch=sparcvis3'
  15705. '-xarch=sparcvis3r | -xarch=sparc5 | -xarch=sparc6'
  15706. For compatibility with the SunOS v9 assembler. These options are
  15707. equivalent to -Av8plus, -Av8plusa, -Av8plusb, -Av8plusc, -Av8plusd,
  15708. -Av8plusv, -Av8plusm, -Av8plusm8, -Av9, -Av9a, -Av9b, -Av9c, -Av9d,
  15709. -Av9e, -Av9v, -Av9m, -Av9m8, -Asparc, -Asparcvis, -Asparcvis2,
  15710. -Asparcfmaf, -Asparcima, -Asparcvis3, -Asparcvis3r, -Asparc5 and
  15711. -Asparc6 respectively.
  15712. '-bump'
  15713. Warn whenever it is necessary to switch to another level. If an
  15714. architecture level is explicitly requested, GAS will not issue
  15715. warnings until that level is reached, and will then bump the level
  15716. as required (except between incompatible levels).
  15717. '-32 | -64'
  15718. Select the word size, either 32 bits or 64 bits. These options are
  15719. only available with the ELF object file format, and require that
  15720. the necessary BFD support has been included.
  15721. '--dcti-couples-detect'
  15722. Warn if a DCTI (delayed control transfer instruction) couple is
  15723. found when generating code for a variant of the SPARC architecture
  15724. in which the execution of the couple is unpredictable, or very
  15725. slow. This is disabled by default.
  15726. 
  15727. File: as.info, Node: Sparc-Aligned-Data, Next: Sparc-Syntax, Prev: Sparc-Opts, Up: Sparc-Dependent
  15728. 9.44.2 Enforcing aligned data
  15729. -----------------------------
  15730. SPARC GAS normally permits data to be misaligned. For example, it
  15731. permits the '.long' pseudo-op to be used on a byte boundary. However,
  15732. the native SunOS assemblers issue an error when they see misaligned
  15733. data.
  15734. You can use the '--enforce-aligned-data' option to make SPARC GAS
  15735. also issue an error about misaligned data, just as the SunOS assemblers
  15736. do.
  15737. The '--enforce-aligned-data' option is not the default because gcc
  15738. issues misaligned data pseudo-ops when it initializes certain packed
  15739. data structures (structures defined using the 'packed' attribute). You
  15740. may have to assemble with GAS in order to initialize packed data
  15741. structures in your own code.
  15742. 
  15743. File: as.info, Node: Sparc-Syntax, Next: Sparc-Float, Prev: Sparc-Aligned-Data, Up: Sparc-Dependent
  15744. 9.44.3 Sparc Syntax
  15745. -------------------
  15746. The assembler syntax closely follows The Sparc Architecture Manual,
  15747. versions 8 and 9, as well as most extensions defined by Sun for their
  15748. UltraSPARC and Niagara line of processors.
  15749. * Menu:
  15750. * Sparc-Chars:: Special Characters
  15751. * Sparc-Regs:: Register Names
  15752. * Sparc-Constants:: Constant Names
  15753. * Sparc-Relocs:: Relocations
  15754. * Sparc-Size-Translations:: Size Translations
  15755. 
  15756. File: as.info, Node: Sparc-Chars, Next: Sparc-Regs, Up: Sparc-Syntax
  15757. 9.44.3.1 Special Characters
  15758. ...........................
  15759. A '!' character appearing anywhere on a line indicates the start of a
  15760. comment that extends to the end of that line.
  15761. If a '#' appears as the first character of a line then the whole line
  15762. is treated as a comment, but in this case the line could also be a
  15763. logical line number directive (*note Comments::) or a preprocessor
  15764. control command (*note Preprocessing::).
  15765. ';' can be used instead of a newline to separate statements.
  15766. 
  15767. File: as.info, Node: Sparc-Regs, Next: Sparc-Constants, Prev: Sparc-Chars, Up: Sparc-Syntax
  15768. 9.44.3.2 Register Names
  15769. .......................
  15770. The Sparc integer register file is broken down into global, outgoing,
  15771. local, and incoming.
  15772. * The 8 global registers are referred to as '%gN'.
  15773. * The 8 outgoing registers are referred to as '%oN'.
  15774. * The 8 local registers are referred to as '%lN'.
  15775. * The 8 incoming registers are referred to as '%iN'.
  15776. * The frame pointer register '%i6' can be referenced using the alias
  15777. '%fp'.
  15778. * The stack pointer register '%o6' can be referenced using the alias
  15779. '%sp'.
  15780. Floating point registers are simply referred to as '%fN'. When
  15781. assembling for pre-V9, only 32 floating point registers are available.
  15782. For V9 and later there are 64, but there are restrictions when
  15783. referencing the upper 32 registers. They can only be accessed as double
  15784. or quad, and thus only even or quad numbered accesses are allowed. For
  15785. example, '%f34' is a legal floating point register, but '%f35' is not.
  15786. Floating point registers accessed as double can also be referred
  15787. using the '%dN' notation, where N is even. Similarly, floating point
  15788. registers accessed as quad can be referred using the '%qN' notation,
  15789. where N is a multiple of 4. For example, '%f4' can be denoted as both
  15790. '%d4' and '%q4'. On the other hand, '%f2' can be denoted as '%d2' but
  15791. not as '%q2'.
  15792. Certain V9 instructions allow access to ancillary state registers.
  15793. Most simply they can be referred to as '%asrN' where N can be from 16 to
  15794. 31. However, there are some aliases defined to reference ASR registers
  15795. defined for various UltraSPARC processors:
  15796. * The tick compare register is referred to as '%tick_cmpr'.
  15797. * The system tick register is referred to as '%stick'. An alias,
  15798. '%sys_tick', exists but is deprecated and should not be used by new
  15799. software.
  15800. * The system tick compare register is referred to as '%stick_cmpr'.
  15801. An alias, '%sys_tick_cmpr', exists but is deprecated and should not
  15802. be used by new software.
  15803. * The software interrupt register is referred to as '%softint'.
  15804. * The set software interrupt register is referred to as
  15805. '%set_softint'. The mnemonic '%softint_set' is provided as an
  15806. alias.
  15807. * The clear software interrupt register is referred to as
  15808. '%clear_softint'. The mnemonic '%softint_clear' is provided as an
  15809. alias.
  15810. * The performance instrumentation counters register is referred to as
  15811. '%pic'.
  15812. * The performance control register is referred to as '%pcr'.
  15813. * The graphics status register is referred to as '%gsr'.
  15814. * The V9 dispatch control register is referred to as '%dcr'.
  15815. Various V9 branch and conditional move instructions allow
  15816. specification of which set of integer condition codes to test. These
  15817. are referred to as '%xcc' and '%icc'.
  15818. Additionally, GAS supports the so-called "natural" condition codes;
  15819. these are referred to as '%ncc' and reference to '%icc' if the word size
  15820. is 32, '%xcc' if the word size is 64.
  15821. In V9, there are 4 sets of floating point condition codes which are
  15822. referred to as '%fccN'.
  15823. Several special privileged and non-privileged registers exist:
  15824. * The V9 address space identifier register is referred to as '%asi'.
  15825. * The V9 restorable windows register is referred to as '%canrestore'.
  15826. * The V9 savable windows register is referred to as '%cansave'.
  15827. * The V9 clean windows register is referred to as '%cleanwin'.
  15828. * The V9 current window pointer register is referred to as '%cwp'.
  15829. * The floating-point queue register is referred to as '%fq'.
  15830. * The V8 co-processor queue register is referred to as '%cq'.
  15831. * The floating point status register is referred to as '%fsr'.
  15832. * The other windows register is referred to as '%otherwin'.
  15833. * The V9 program counter register is referred to as '%pc'.
  15834. * The V9 next program counter register is referred to as '%npc'.
  15835. * The V9 processor interrupt level register is referred to as '%pil'.
  15836. * The V9 processor state register is referred to as '%pstate'.
  15837. * The trap base address register is referred to as '%tba'.
  15838. * The V9 tick register is referred to as '%tick'.
  15839. * The V9 trap level is referred to as '%tl'.
  15840. * The V9 trap program counter is referred to as '%tpc'.
  15841. * The V9 trap next program counter is referred to as '%tnpc'.
  15842. * The V9 trap state is referred to as '%tstate'.
  15843. * The V9 trap type is referred to as '%tt'.
  15844. * The V9 condition codes is referred to as '%ccr'.
  15845. * The V9 floating-point registers state is referred to as '%fprs'.
  15846. * The V9 version register is referred to as '%ver'.
  15847. * The V9 window state register is referred to as '%wstate'.
  15848. * The Y register is referred to as '%y'.
  15849. * The V8 window invalid mask register is referred to as '%wim'.
  15850. * The V8 processor state register is referred to as '%psr'.
  15851. * The V9 global register level register is referred to as '%gl'.
  15852. Several special register names exist for hypervisor mode code:
  15853. * The hyperprivileged processor state register is referred to as
  15854. '%hpstate'.
  15855. * The hyperprivileged trap state register is referred to as
  15856. '%htstate'.
  15857. * The hyperprivileged interrupt pending register is referred to as
  15858. '%hintp'.
  15859. * The hyperprivileged trap base address register is referred to as
  15860. '%htba'.
  15861. * The hyperprivileged implementation version register is referred to
  15862. as '%hver'.
  15863. * The hyperprivileged system tick offset register is referred to as
  15864. '%hstick_offset'. Note that there is no '%hstick' register, the
  15865. normal '%stick' is used.
  15866. * The hyperprivileged system tick enable register is referred to as
  15867. '%hstick_enable'.
  15868. * The hyperprivileged system tick compare register is referred to as
  15869. '%hstick_cmpr'.
  15870. 
  15871. File: as.info, Node: Sparc-Constants, Next: Sparc-Relocs, Prev: Sparc-Regs, Up: Sparc-Syntax
  15872. 9.44.3.3 Constants
  15873. ..................
  15874. Several Sparc instructions take an immediate operand field for which
  15875. mnemonic names exist. Two such examples are 'membar' and 'prefetch'.
  15876. Another example are the set of V9 memory access instruction that allow
  15877. specification of an address space identifier.
  15878. The 'membar' instruction specifies a memory barrier that is the
  15879. defined by the operand which is a bitmask. The supported mask mnemonics
  15880. are:
  15881. * '#Sync' requests that all operations (including nonmemory reference
  15882. operations) appearing prior to the 'membar' must have been
  15883. performed and the effects of any exceptions become visible before
  15884. any instructions after the 'membar' may be initiated. This
  15885. corresponds to 'membar' cmask field bit 2.
  15886. * '#MemIssue' requests that all memory reference operations appearing
  15887. prior to the 'membar' must have been performed before any memory
  15888. operation after the 'membar' may be initiated. This corresponds to
  15889. 'membar' cmask field bit 1.
  15890. * '#Lookaside' requests that a store appearing prior to the 'membar'
  15891. must complete before any load following the 'membar' referencing
  15892. the same address can be initiated. This corresponds to 'membar'
  15893. cmask field bit 0.
  15894. * '#StoreStore' defines that the effects of all stores appearing
  15895. prior to the 'membar' instruction must be visible to all processors
  15896. before the effect of any stores following the 'membar'. Equivalent
  15897. to the deprecated 'stbar' instruction. This corresponds to
  15898. 'membar' mmask field bit 3.
  15899. * '#LoadStore' defines all loads appearing prior to the 'membar'
  15900. instruction must have been performed before the effect of any
  15901. stores following the 'membar' is visible to any other processor.
  15902. This corresponds to 'membar' mmask field bit 2.
  15903. * '#StoreLoad' defines that the effects of all stores appearing prior
  15904. to the 'membar' instruction must be visible to all processors
  15905. before loads following the 'membar' may be performed. This
  15906. corresponds to 'membar' mmask field bit 1.
  15907. * '#LoadLoad' defines that all loads appearing prior to the 'membar'
  15908. instruction must have been performed before any loads following the
  15909. 'membar' may be performed. This corresponds to 'membar' mmask
  15910. field bit 0.
  15911. These values can be ored together, for example:
  15912. membar #Sync
  15913. membar #StoreLoad | #LoadLoad
  15914. membar #StoreLoad | #StoreStore
  15915. The 'prefetch' and 'prefetcha' instructions take a prefetch function
  15916. code. The following prefetch function code constant mnemonics are
  15917. available:
  15918. * '#n_reads' requests a prefetch for several reads, and corresponds
  15919. to a prefetch function code of 0.
  15920. '#one_read' requests a prefetch for one read, and corresponds to a
  15921. prefetch function code of 1.
  15922. '#n_writes' requests a prefetch for several writes (and possibly
  15923. reads), and corresponds to a prefetch function code of 2.
  15924. '#one_write' requests a prefetch for one write, and corresponds to
  15925. a prefetch function code of 3.
  15926. '#page' requests a prefetch page, and corresponds to a prefetch
  15927. function code of 4.
  15928. '#invalidate' requests a prefetch invalidate, and corresponds to a
  15929. prefetch function code of 16.
  15930. '#unified' requests a prefetch to the nearest unified cache, and
  15931. corresponds to a prefetch function code of 17.
  15932. '#n_reads_strong' requests a strong prefetch for several reads, and
  15933. corresponds to a prefetch function code of 20.
  15934. '#one_read_strong' requests a strong prefetch for one read, and
  15935. corresponds to a prefetch function code of 21.
  15936. '#n_writes_strong' requests a strong prefetch for several writes,
  15937. and corresponds to a prefetch function code of 22.
  15938. '#one_write_strong' requests a strong prefetch for one write, and
  15939. corresponds to a prefetch function code of 23.
  15940. Onle one prefetch code may be specified. Here are some examples:
  15941. prefetch [%l0 + %l2], #one_read
  15942. prefetch [%g2 + 8], #n_writes
  15943. prefetcha [%g1] 0x8, #unified
  15944. prefetcha [%o0 + 0x10] %asi, #n_reads
  15945. The actual behavior of a given prefetch function code is processor
  15946. specific. If a processor does not implement a given prefetch
  15947. function code, it will treat the prefetch instruction as a nop.
  15948. For instructions that accept an immediate address space identifier,
  15949. 'as' provides many mnemonics corresponding to V9 defined as well as
  15950. UltraSPARC and Niagara extended values. For example, '#ASI_P' and
  15951. '#ASI_BLK_INIT_QUAD_LDD_AIUS'. See the V9 and processor specific
  15952. manuals for details.
  15953. 
  15954. File: as.info, Node: Sparc-Relocs, Next: Sparc-Size-Translations, Prev: Sparc-Constants, Up: Sparc-Syntax
  15955. 9.44.3.4 Relocations
  15956. ....................
  15957. ELF relocations are available as defined in the 32-bit and 64-bit Sparc
  15958. ELF specifications.
  15959. 'R_SPARC_HI22' is obtained using '%hi' and 'R_SPARC_LO10' is obtained
  15960. using '%lo'. Likewise 'R_SPARC_HIX22' is obtained from '%hix' and
  15961. 'R_SPARC_LOX10' is obtained using '%lox'. For example:
  15962. sethi %hi(symbol), %g1
  15963. or %g1, %lo(symbol), %g1
  15964. sethi %hix(symbol), %g1
  15965. xor %g1, %lox(symbol), %g1
  15966. These "high" mnemonics extract bits 31:10 of their operand, and the
  15967. "low" mnemonics extract bits 9:0 of their operand.
  15968. V9 code model relocations can be requested as follows:
  15969. * 'R_SPARC_HH22' is requested using '%hh'. It can also be generated
  15970. using '%uhi'.
  15971. * 'R_SPARC_HM10' is requested using '%hm'. It can also be generated
  15972. using '%ulo'.
  15973. * 'R_SPARC_LM22' is requested using '%lm'.
  15974. * 'R_SPARC_H44' is requested using '%h44'.
  15975. * 'R_SPARC_M44' is requested using '%m44'.
  15976. * 'R_SPARC_L44' is requested using '%l44' or '%l34'.
  15977. * 'R_SPARC_H34' is requested using '%h34'.
  15978. The '%l34' generates a 'R_SPARC_L44' relocation because it calculates
  15979. the necessary value, and therefore no explicit 'R_SPARC_L34' relocation
  15980. needed to be created for this purpose.
  15981. The '%h34' and '%l34' relocations are used for the abs34 code model.
  15982. Here is an example abs34 address generation sequence:
  15983. sethi %h34(symbol), %g1
  15984. sllx %g1, 2, %g1
  15985. or %g1, %l34(symbol), %g1
  15986. The PC relative relocation 'R_SPARC_PC22' can be obtained by
  15987. enclosing an operand inside of '%pc22'. Likewise, the 'R_SPARC_PC10'
  15988. relocation can be obtained using '%pc10'. These are mostly used when
  15989. assembling PIC code. For example, the standard PIC sequence on Sparc to
  15990. get the base of the global offset table, PC relative, into a register,
  15991. can be performed as:
  15992. sethi %pc22(_GLOBAL_OFFSET_TABLE_-4), %l7
  15993. add %l7, %pc10(_GLOBAL_OFFSET_TABLE_+4), %l7
  15994. Several relocations exist to allow the link editor to potentially
  15995. optimize GOT data references. The 'R_SPARC_GOTDATA_OP_HIX22' relocation
  15996. can obtained by enclosing an operand inside of '%gdop_hix22'. The
  15997. 'R_SPARC_GOTDATA_OP_LOX10' relocation can obtained by enclosing an
  15998. operand inside of '%gdop_lox10'. Likewise, 'R_SPARC_GOTDATA_OP' can be
  15999. obtained by enclosing an operand inside of '%gdop'. For example,
  16000. assuming the GOT base is in register '%l7':
  16001. sethi %gdop_hix22(symbol), %l1
  16002. xor %l1, %gdop_lox10(symbol), %l1
  16003. ld [%l7 + %l1], %l2, %gdop(symbol)
  16004. There are many relocations that can be requested for access to thread
  16005. local storage variables. All of the Sparc TLS mnemonics are supported:
  16006. * 'R_SPARC_TLS_GD_HI22' is requested using '%tgd_hi22'.
  16007. * 'R_SPARC_TLS_GD_LO10' is requested using '%tgd_lo10'.
  16008. * 'R_SPARC_TLS_GD_ADD' is requested using '%tgd_add'.
  16009. * 'R_SPARC_TLS_GD_CALL' is requested using '%tgd_call'.
  16010. * 'R_SPARC_TLS_LDM_HI22' is requested using '%tldm_hi22'.
  16011. * 'R_SPARC_TLS_LDM_LO10' is requested using '%tldm_lo10'.
  16012. * 'R_SPARC_TLS_LDM_ADD' is requested using '%tldm_add'.
  16013. * 'R_SPARC_TLS_LDM_CALL' is requested using '%tldm_call'.
  16014. * 'R_SPARC_TLS_LDO_HIX22' is requested using '%tldo_hix22'.
  16015. * 'R_SPARC_TLS_LDO_LOX10' is requested using '%tldo_lox10'.
  16016. * 'R_SPARC_TLS_LDO_ADD' is requested using '%tldo_add'.
  16017. * 'R_SPARC_TLS_IE_HI22' is requested using '%tie_hi22'.
  16018. * 'R_SPARC_TLS_IE_LO10' is requested using '%tie_lo10'.
  16019. * 'R_SPARC_TLS_IE_LD' is requested using '%tie_ld'.
  16020. * 'R_SPARC_TLS_IE_LDX' is requested using '%tie_ldx'.
  16021. * 'R_SPARC_TLS_IE_ADD' is requested using '%tie_add'.
  16022. * 'R_SPARC_TLS_LE_HIX22' is requested using '%tle_hix22'.
  16023. * 'R_SPARC_TLS_LE_LOX10' is requested using '%tle_lox10'.
  16024. Here are some example TLS model sequences.
  16025. First, General Dynamic:
  16026. sethi %tgd_hi22(symbol), %l1
  16027. add %l1, %tgd_lo10(symbol), %l1
  16028. add %l7, %l1, %o0, %tgd_add(symbol)
  16029. call __tls_get_addr, %tgd_call(symbol)
  16030. nop
  16031. Local Dynamic:
  16032. sethi %tldm_hi22(symbol), %l1
  16033. add %l1, %tldm_lo10(symbol), %l1
  16034. add %l7, %l1, %o0, %tldm_add(symbol)
  16035. call __tls_get_addr, %tldm_call(symbol)
  16036. nop
  16037. sethi %tldo_hix22(symbol), %l1
  16038. xor %l1, %tldo_lox10(symbol), %l1
  16039. add %o0, %l1, %l1, %tldo_add(symbol)
  16040. Initial Exec:
  16041. sethi %tie_hi22(symbol), %l1
  16042. add %l1, %tie_lo10(symbol), %l1
  16043. ld [%l7 + %l1], %o0, %tie_ld(symbol)
  16044. add %g7, %o0, %o0, %tie_add(symbol)
  16045. sethi %tie_hi22(symbol), %l1
  16046. add %l1, %tie_lo10(symbol), %l1
  16047. ldx [%l7 + %l1], %o0, %tie_ldx(symbol)
  16048. add %g7, %o0, %o0, %tie_add(symbol)
  16049. And finally, Local Exec:
  16050. sethi %tle_hix22(symbol), %l1
  16051. add %l1, %tle_lox10(symbol), %l1
  16052. add %g7, %l1, %l1
  16053. When assembling for 64-bit, and a secondary constant addend is
  16054. specified in an address expression that would normally generate an
  16055. 'R_SPARC_LO10' relocation, the assembler will emit an 'R_SPARC_OLO10'
  16056. instead.
  16057. 
  16058. File: as.info, Node: Sparc-Size-Translations, Prev: Sparc-Relocs, Up: Sparc-Syntax
  16059. 9.44.3.5 Size Translations
  16060. ..........................
  16061. Often it is desirable to write code in an operand size agnostic manner.
  16062. 'as' provides support for this via operand size opcode translations.
  16063. Translations are supported for loads, stores, shifts, compare-and-swap
  16064. atomics, and the 'clr' synthetic instruction.
  16065. If generating 32-bit code, 'as' will generate the 32-bit opcode.
  16066. Whereas if 64-bit code is being generated, the 64-bit opcode will be
  16067. emitted. For example 'ldn' will be transformed into 'ld' for 32-bit
  16068. code and 'ldx' for 64-bit code.
  16069. Here is an example meant to demonstrate all the supported opcode
  16070. translations:
  16071. ldn [%o0], %o1
  16072. ldna [%o0] %asi, %o2
  16073. stn %o1, [%o0]
  16074. stna %o2, [%o0] %asi
  16075. slln %o3, 3, %o3
  16076. srln %o4, 8, %o4
  16077. sran %o5, 12, %o5
  16078. casn [%o0], %o1, %o2
  16079. casna [%o0] %asi, %o1, %o2
  16080. clrn %g1
  16081. In 32-bit mode 'as' will emit:
  16082. ld [%o0], %o1
  16083. lda [%o0] %asi, %o2
  16084. st %o1, [%o0]
  16085. sta %o2, [%o0] %asi
  16086. sll %o3, 3, %o3
  16087. srl %o4, 8, %o4
  16088. sra %o5, 12, %o5
  16089. cas [%o0], %o1, %o2
  16090. casa [%o0] %asi, %o1, %o2
  16091. clr %g1
  16092. And in 64-bit mode 'as' will emit:
  16093. ldx [%o0], %o1
  16094. ldxa [%o0] %asi, %o2
  16095. stx %o1, [%o0]
  16096. stxa %o2, [%o0] %asi
  16097. sllx %o3, 3, %o3
  16098. srlx %o4, 8, %o4
  16099. srax %o5, 12, %o5
  16100. casx [%o0], %o1, %o2
  16101. casxa [%o0] %asi, %o1, %o2
  16102. clrx %g1
  16103. Finally, the '.nword' translating directive is supported as well. It
  16104. is documented in the section on Sparc machine directives.
  16105. 
  16106. File: as.info, Node: Sparc-Float, Next: Sparc-Directives, Prev: Sparc-Syntax, Up: Sparc-Dependent
  16107. 9.44.4 Floating Point
  16108. ---------------------
  16109. The Sparc uses IEEE floating-point numbers.
  16110. 
  16111. File: as.info, Node: Sparc-Directives, Prev: Sparc-Float, Up: Sparc-Dependent
  16112. 9.44.5 Sparc Machine Directives
  16113. -------------------------------
  16114. The Sparc version of 'as' supports the following additional machine
  16115. directives:
  16116. '.align'
  16117. This must be followed by the desired alignment in bytes.
  16118. '.common'
  16119. This must be followed by a symbol name, a positive number, and
  16120. '"bss"'. This behaves somewhat like '.comm', but the syntax is
  16121. different.
  16122. '.half'
  16123. This is functionally identical to '.short'.
  16124. '.nword'
  16125. On the Sparc, the '.nword' directive produces native word sized
  16126. value, ie. if assembling with -32 it is equivalent to '.word', if
  16127. assembling with -64 it is equivalent to '.xword'.
  16128. '.proc'
  16129. This directive is ignored. Any text following it on the same line
  16130. is also ignored.
  16131. '.register'
  16132. This directive declares use of a global application or system
  16133. register. It must be followed by a register name %g2, %g3, %g6 or
  16134. %g7, comma and the symbol name for that register. If symbol name
  16135. is '#scratch', it is a scratch register, if it is '#ignore', it
  16136. just suppresses any errors about using undeclared global register,
  16137. but does not emit any information about it into the object file.
  16138. This can be useful e.g. if you save the register before use and
  16139. restore it after.
  16140. '.reserve'
  16141. This must be followed by a symbol name, a positive number, and
  16142. '"bss"'. This behaves somewhat like '.lcomm', but the syntax is
  16143. different.
  16144. '.seg'
  16145. This must be followed by '"text"', '"data"', or '"data1"'. It
  16146. behaves like '.text', '.data', or '.data 1'.
  16147. '.skip'
  16148. This is functionally identical to the '.space' directive.
  16149. '.word'
  16150. On the Sparc, the '.word' directive produces 32 bit values, instead
  16151. of the 16 bit values it produces on many other machines.
  16152. '.xword'
  16153. On the Sparc V9 processor, the '.xword' directive produces 64 bit
  16154. values.
  16155. 
  16156. File: as.info, Node: TIC54X-Dependent, Next: TIC6X-Dependent, Prev: Sparc-Dependent, Up: Machine Dependencies
  16157. 9.45 TIC54X Dependent Features
  16158. ==============================
  16159. * Menu:
  16160. * TIC54X-Opts:: Command-line Options
  16161. * TIC54X-Block:: Blocking
  16162. * TIC54X-Env:: Environment Settings
  16163. * TIC54X-Constants:: Constants Syntax
  16164. * TIC54X-Subsyms:: String Substitution
  16165. * TIC54X-Locals:: Local Label Syntax
  16166. * TIC54X-Builtins:: Builtin Assembler Math Functions
  16167. * TIC54X-Ext:: Extended Addressing Support
  16168. * TIC54X-Directives:: Directives
  16169. * TIC54X-Macros:: Macro Features
  16170. * TIC54X-MMRegs:: Memory-mapped Registers
  16171. * TIC54X-Syntax:: Syntax
  16172. 
  16173. File: as.info, Node: TIC54X-Opts, Next: TIC54X-Block, Up: TIC54X-Dependent
  16174. 9.45.1 Options
  16175. --------------
  16176. The TMS320C54X version of 'as' has a few machine-dependent options.
  16177. You can use the '-mfar-mode' option to enable extended addressing
  16178. mode. All addresses will be assumed to be > 16 bits, and the
  16179. appropriate relocation types will be used. This option is equivalent to
  16180. using the '.far_mode' directive in the assembly code. If you do not use
  16181. the '-mfar-mode' option, all references will be assumed to be 16 bits.
  16182. This option may be abbreviated to '-mf'.
  16183. You can use the '-mcpu' option to specify a particular CPU. This
  16184. option is equivalent to using the '.version' directive in the assembly
  16185. code. For recognized CPU codes, see *Note '.version':
  16186. TIC54X-Directives. The default CPU version is '542'.
  16187. You can use the '-merrors-to-file' option to redirect error output to
  16188. a file (this provided for those deficient environments which don't
  16189. provide adequate output redirection). This option may be abbreviated to
  16190. '-me'.
  16191. 
  16192. File: as.info, Node: TIC54X-Block, Next: TIC54X-Env, Prev: TIC54X-Opts, Up: TIC54X-Dependent
  16193. 9.45.2 Blocking
  16194. ---------------
  16195. A blocked section or memory block is guaranteed not to cross the
  16196. blocking boundary (usually a page, or 128 words) if it is smaller than
  16197. the blocking size, or to start on a page boundary if it is larger than
  16198. the blocking size.
  16199. 
  16200. File: as.info, Node: TIC54X-Env, Next: TIC54X-Constants, Prev: TIC54X-Block, Up: TIC54X-Dependent
  16201. 9.45.3 Environment Settings
  16202. ---------------------------
  16203. 'C54XDSP_DIR' and 'A_DIR' are semicolon-separated paths which are added
  16204. to the list of directories normally searched for source and include
  16205. files. 'C54XDSP_DIR' will override 'A_DIR'.
  16206. 
  16207. File: as.info, Node: TIC54X-Constants, Next: TIC54X-Subsyms, Prev: TIC54X-Env, Up: TIC54X-Dependent
  16208. 9.45.4 Constants Syntax
  16209. -----------------------
  16210. The TIC54X version of 'as' allows the following additional constant
  16211. formats, using a suffix to indicate the radix:
  16212. Binary 000000B, 011000b
  16213. Octal 10Q, 224q
  16214. Hexadecimal 45h, 0FH
  16215. 
  16216. File: as.info, Node: TIC54X-Subsyms, Next: TIC54X-Locals, Prev: TIC54X-Constants, Up: TIC54X-Dependent
  16217. 9.45.5 String Substitution
  16218. --------------------------
  16219. A subset of allowable symbols (which we'll call subsyms) may be assigned
  16220. arbitrary string values. This is roughly equivalent to C preprocessor
  16221. #define macros. When 'as' encounters one of these symbols, the symbol
  16222. is replaced in the input stream by its string value. Subsym names
  16223. *must* begin with a letter.
  16224. Subsyms may be defined using the '.asg' and '.eval' directives (*Note
  16225. '.asg': TIC54X-Directives, *Note '.eval': TIC54X-Directives.
  16226. Expansion is recursive until a previously encountered symbol is seen,
  16227. at which point substitution stops.
  16228. In this example, x is replaced with SYM2; SYM2 is replaced with SYM1,
  16229. and SYM1 is replaced with x. At this point, x has already been
  16230. encountered and the substitution stops.
  16231. .asg "x",SYM1
  16232. .asg "SYM1",SYM2
  16233. .asg "SYM2",x
  16234. add x,a ; final code assembled is "add x, a"
  16235. Macro parameters are converted to subsyms; a side effect of this is
  16236. the normal 'as' '\ARG' dereferencing syntax is unnecessary. Subsyms
  16237. defined within a macro will have global scope, unless the '.var'
  16238. directive is used to identify the subsym as a local macro variable *note
  16239. '.var': TIC54X-Directives.
  16240. Substitution may be forced in situations where replacement might be
  16241. ambiguous by placing colons on either side of the subsym. The following
  16242. code:
  16243. .eval "10",x
  16244. LAB:X: add #x, a
  16245. When assembled becomes:
  16246. LAB10 add #10, a
  16247. Smaller parts of the string assigned to a subsym may be accessed with
  16248. the following syntax:
  16249. ':SYMBOL(CHAR_INDEX):'
  16250. Evaluates to a single-character string, the character at
  16251. CHAR_INDEX.
  16252. ':SYMBOL(START,LENGTH):'
  16253. Evaluates to a substring of SYMBOL beginning at START with length
  16254. LENGTH.
  16255. 
  16256. File: as.info, Node: TIC54X-Locals, Next: TIC54X-Builtins, Prev: TIC54X-Subsyms, Up: TIC54X-Dependent
  16257. 9.45.6 Local Labels
  16258. -------------------
  16259. Local labels may be defined in two ways:
  16260. * $N, where N is a decimal number between 0 and 9
  16261. * LABEL?, where LABEL is any legal symbol name.
  16262. Local labels thus defined may be redefined or automatically
  16263. generated. The scope of a local label is based on when it may be
  16264. undefined or reset. This happens when one of the following situations
  16265. is encountered:
  16266. * .newblock directive *note '.newblock': TIC54X-Directives.
  16267. * The current section is changed (.sect, .text, or .data)
  16268. * Entering or leaving an included file
  16269. * The macro scope where the label was defined is exited
  16270. 
  16271. File: as.info, Node: TIC54X-Builtins, Next: TIC54X-Ext, Prev: TIC54X-Locals, Up: TIC54X-Dependent
  16272. 9.45.7 Math Builtins
  16273. --------------------
  16274. The following built-in functions may be used to generate a
  16275. floating-point value. All return a floating-point value except '$cvi',
  16276. '$int', and '$sgn', which return an integer value.
  16277. '$acos(EXPR)'
  16278. Returns the floating point arccosine of EXPR.
  16279. '$asin(EXPR)'
  16280. Returns the floating point arcsine of EXPR.
  16281. '$atan(EXPR)'
  16282. Returns the floating point arctangent of EXPR.
  16283. '$atan2(EXPR1,EXPR2)'
  16284. Returns the floating point arctangent of EXPR1 / EXPR2.
  16285. '$ceil(EXPR)'
  16286. Returns the smallest integer not less than EXPR as floating point.
  16287. '$cosh(EXPR)'
  16288. Returns the floating point hyperbolic cosine of EXPR.
  16289. '$cos(EXPR)'
  16290. Returns the floating point cosine of EXPR.
  16291. '$cvf(EXPR)'
  16292. Returns the integer value EXPR converted to floating-point.
  16293. '$cvi(EXPR)'
  16294. Returns the floating point value EXPR converted to integer.
  16295. '$exp(EXPR)'
  16296. Returns the floating point value e ^ EXPR.
  16297. '$fabs(EXPR)'
  16298. Returns the floating point absolute value of EXPR.
  16299. '$floor(EXPR)'
  16300. Returns the largest integer that is not greater than EXPR as
  16301. floating point.
  16302. '$fmod(EXPR1,EXPR2)'
  16303. Returns the floating point remainder of EXPR1 / EXPR2.
  16304. '$int(EXPR)'
  16305. Returns 1 if EXPR evaluates to an integer, zero otherwise.
  16306. '$ldexp(EXPR1,EXPR2)'
  16307. Returns the floating point value EXPR1 * 2 ^ EXPR2.
  16308. '$log10(EXPR)'
  16309. Returns the base 10 logarithm of EXPR.
  16310. '$log(EXPR)'
  16311. Returns the natural logarithm of EXPR.
  16312. '$max(EXPR1,EXPR2)'
  16313. Returns the floating point maximum of EXPR1 and EXPR2.
  16314. '$min(EXPR1,EXPR2)'
  16315. Returns the floating point minimum of EXPR1 and EXPR2.
  16316. '$pow(EXPR1,EXPR2)'
  16317. Returns the floating point value EXPR1 ^ EXPR2.
  16318. '$round(EXPR)'
  16319. Returns the nearest integer to EXPR as a floating point number.
  16320. '$sgn(EXPR)'
  16321. Returns -1, 0, or 1 based on the sign of EXPR.
  16322. '$sin(EXPR)'
  16323. Returns the floating point sine of EXPR.
  16324. '$sinh(EXPR)'
  16325. Returns the floating point hyperbolic sine of EXPR.
  16326. '$sqrt(EXPR)'
  16327. Returns the floating point square root of EXPR.
  16328. '$tan(EXPR)'
  16329. Returns the floating point tangent of EXPR.
  16330. '$tanh(EXPR)'
  16331. Returns the floating point hyperbolic tangent of EXPR.
  16332. '$trunc(EXPR)'
  16333. Returns the integer value of EXPR truncated towards zero as
  16334. floating point.
  16335. 
  16336. File: as.info, Node: TIC54X-Ext, Next: TIC54X-Directives, Prev: TIC54X-Builtins, Up: TIC54X-Dependent
  16337. 9.45.8 Extended Addressing
  16338. --------------------------
  16339. The 'LDX' pseudo-op is provided for loading the extended addressing bits
  16340. of a label or address. For example, if an address '_label' resides in
  16341. extended program memory, the value of '_label' may be loaded as follows:
  16342. ldx #_label,16,a ; loads extended bits of _label
  16343. or #_label,a ; loads lower 16 bits of _label
  16344. bacc a ; full address is in accumulator A
  16345. 
  16346. File: as.info, Node: TIC54X-Directives, Next: TIC54X-Macros, Prev: TIC54X-Ext, Up: TIC54X-Dependent
  16347. 9.45.9 Directives
  16348. -----------------
  16349. '.align [SIZE]'
  16350. '.even'
  16351. Align the section program counter on the next boundary, based on
  16352. SIZE. SIZE may be any power of 2. '.even' is equivalent to
  16353. '.align' with a SIZE of 2.
  16354. '1'
  16355. Align SPC to word boundary
  16356. '2'
  16357. Align SPC to longword boundary (same as .even)
  16358. '128'
  16359. Align SPC to page boundary
  16360. '.asg STRING, NAME'
  16361. Assign NAME the string STRING. String replacement is performed on
  16362. STRING before assignment.
  16363. '.eval STRING, NAME'
  16364. Evaluate the contents of string STRING and assign the result as a
  16365. string to the subsym NAME. String replacement is performed on
  16366. STRING before assignment.
  16367. '.bss SYMBOL, SIZE [, [BLOCKING_FLAG] [,ALIGNMENT_FLAG]]'
  16368. Reserve space for SYMBOL in the .bss section. SIZE is in words.
  16369. If present, BLOCKING_FLAG indicates the allocated space should be
  16370. aligned on a page boundary if it would otherwise cross a page
  16371. boundary. If present, ALIGNMENT_FLAG causes the assembler to
  16372. allocate SIZE on a long word boundary.
  16373. '.byte VALUE [,...,VALUE_N]'
  16374. '.ubyte VALUE [,...,VALUE_N]'
  16375. '.char VALUE [,...,VALUE_N]'
  16376. '.uchar VALUE [,...,VALUE_N]'
  16377. Place one or more bytes into consecutive words of the current
  16378. section. The upper 8 bits of each word is zero-filled. If a label
  16379. is used, it points to the word allocated for the first byte
  16380. encountered.
  16381. '.clink ["SECTION_NAME"]'
  16382. Set STYP_CLINK flag for this section, which indicates to the linker
  16383. that if no symbols from this section are referenced, the section
  16384. should not be included in the link. If SECTION_NAME is omitted,
  16385. the current section is used.
  16386. '.c_mode'
  16387. TBD.
  16388. '.copy "FILENAME" | FILENAME'
  16389. '.include "FILENAME" | FILENAME'
  16390. Read source statements from FILENAME. The normal include search
  16391. path is used. Normally .copy will cause statements from the
  16392. included file to be printed in the assembly listing and .include
  16393. will not, but this distinction is not currently implemented.
  16394. '.data'
  16395. Begin assembling code into the .data section.
  16396. '.double VALUE [,...,VALUE_N]'
  16397. '.ldouble VALUE [,...,VALUE_N]'
  16398. '.float VALUE [,...,VALUE_N]'
  16399. '.xfloat VALUE [,...,VALUE_N]'
  16400. Place an IEEE single-precision floating-point representation of one
  16401. or more floating-point values into the current section. All but
  16402. '.xfloat' align the result on a longword boundary. Values are
  16403. stored most-significant word first.
  16404. '.drlist'
  16405. '.drnolist'
  16406. Control printing of directives to the listing file. Ignored.
  16407. '.emsg STRING'
  16408. '.mmsg STRING'
  16409. '.wmsg STRING'
  16410. Emit a user-defined error, message, or warning, respectively.
  16411. '.far_mode'
  16412. Use extended addressing when assembling statements. This should
  16413. appear only once per file, and is equivalent to the -mfar-mode
  16414. option *note '-mfar-mode': TIC54X-Opts.
  16415. '.fclist'
  16416. '.fcnolist'
  16417. Control printing of false conditional blocks to the listing file.
  16418. '.field VALUE [,SIZE]'
  16419. Initialize a bitfield of SIZE bits in the current section. If
  16420. VALUE is relocatable, then SIZE must be 16. SIZE defaults to 16
  16421. bits. If VALUE does not fit into SIZE bits, the value will be
  16422. truncated. Successive '.field' directives will pack starting at
  16423. the current word, filling the most significant bits first, and
  16424. aligning to the start of the next word if the field size does not
  16425. fit into the space remaining in the current word. A '.align'
  16426. directive with an operand of 1 will force the next '.field'
  16427. directive to begin packing into a new word. If a label is used, it
  16428. points to the word that contains the specified field.
  16429. '.global SYMBOL [,...,SYMBOL_N]'
  16430. '.def SYMBOL [,...,SYMBOL_N]'
  16431. '.ref SYMBOL [,...,SYMBOL_N]'
  16432. '.def' nominally identifies a symbol defined in the current file
  16433. and available to other files. '.ref' identifies a symbol used in
  16434. the current file but defined elsewhere. Both map to the standard
  16435. '.global' directive.
  16436. '.half VALUE [,...,VALUE_N]'
  16437. '.uhalf VALUE [,...,VALUE_N]'
  16438. '.short VALUE [,...,VALUE_N]'
  16439. '.ushort VALUE [,...,VALUE_N]'
  16440. '.int VALUE [,...,VALUE_N]'
  16441. '.uint VALUE [,...,VALUE_N]'
  16442. '.word VALUE [,...,VALUE_N]'
  16443. '.uword VALUE [,...,VALUE_N]'
  16444. Place one or more values into consecutive words of the current
  16445. section. If a label is used, it points to the word allocated for
  16446. the first value encountered.
  16447. '.label SYMBOL'
  16448. Define a special SYMBOL to refer to the load time address of the
  16449. current section program counter.
  16450. '.length'
  16451. '.width'
  16452. Set the page length and width of the output listing file. Ignored.
  16453. '.list'
  16454. '.nolist'
  16455. Control whether the source listing is printed. Ignored.
  16456. '.long VALUE [,...,VALUE_N]'
  16457. '.ulong VALUE [,...,VALUE_N]'
  16458. '.xlong VALUE [,...,VALUE_N]'
  16459. Place one or more 32-bit values into consecutive words in the
  16460. current section. The most significant word is stored first.
  16461. '.long' and '.ulong' align the result on a longword boundary;
  16462. 'xlong' does not.
  16463. '.loop [COUNT]'
  16464. '.break [CONDITION]'
  16465. '.endloop'
  16466. Repeatedly assemble a block of code. '.loop' begins the block, and
  16467. '.endloop' marks its termination. COUNT defaults to 1024, and
  16468. indicates the number of times the block should be repeated.
  16469. '.break' terminates the loop so that assembly begins after the
  16470. '.endloop' directive. The optional CONDITION will cause the loop
  16471. to terminate only if it evaluates to zero.
  16472. 'MACRO_NAME .macro [PARAM1][,...PARAM_N]'
  16473. '[.mexit]'
  16474. '.endm'
  16475. See the section on macros for more explanation (*Note
  16476. TIC54X-Macros::.
  16477. '.mlib "FILENAME" | FILENAME'
  16478. Load the macro library FILENAME. FILENAME must be an archived
  16479. library (BFD ar-compatible) of text files, expected to contain only
  16480. macro definitions. The standard include search path is used.
  16481. '.mlist'
  16482. '.mnolist'
  16483. Control whether to include macro and loop block expansions in the
  16484. listing output. Ignored.
  16485. '.mmregs'
  16486. Define global symbolic names for the 'c54x registers. Supposedly
  16487. equivalent to executing '.set' directives for each register with
  16488. its memory-mapped value, but in reality is provided only for
  16489. compatibility and does nothing.
  16490. '.newblock'
  16491. This directive resets any TIC54X local labels currently defined.
  16492. Normal 'as' local labels are unaffected.
  16493. '.option OPTION_LIST'
  16494. Set listing options. Ignored.
  16495. '.sblock "SECTION_NAME" | SECTION_NAME [,"NAME_N" | NAME_N]'
  16496. Designate SECTION_NAME for blocking. Blocking guarantees that a
  16497. section will start on a page boundary (128 words) if it would
  16498. otherwise cross a page boundary. Only initialized sections may be
  16499. designated with this directive. See also *Note TIC54X-Block::.
  16500. '.sect "SECTION_NAME"'
  16501. Define a named initialized section and make it the current section.
  16502. 'SYMBOL .set "VALUE"'
  16503. 'SYMBOL .equ "VALUE"'
  16504. Equate a constant VALUE to a SYMBOL, which is placed in the symbol
  16505. table. SYMBOL may not be previously defined.
  16506. '.space SIZE_IN_BITS'
  16507. '.bes SIZE_IN_BITS'
  16508. Reserve the given number of bits in the current section and
  16509. zero-fill them. If a label is used with '.space', it points to the
  16510. *first* word reserved. With '.bes', the label points to the *last*
  16511. word reserved.
  16512. '.sslist'
  16513. '.ssnolist'
  16514. Controls the inclusion of subsym replacement in the listing output.
  16515. Ignored.
  16516. '.string "STRING" [,...,"STRING_N"]'
  16517. '.pstring "STRING" [,...,"STRING_N"]'
  16518. Place 8-bit characters from STRING into the current section.
  16519. '.string' zero-fills the upper 8 bits of each word, while
  16520. '.pstring' puts two characters into each word, filling the
  16521. most-significant bits first. Unused space is zero-filled. If a
  16522. label is used, it points to the first word initialized.
  16523. '[STAG] .struct [OFFSET]'
  16524. '[NAME_1] element [COUNT_1]'
  16525. '[NAME_2] element [COUNT_2]'
  16526. '[TNAME] .tag STAGX [TCOUNT]'
  16527. '...'
  16528. '[NAME_N] element [COUNT_N]'
  16529. '[SSIZE] .endstruct'
  16530. 'LABEL .tag [STAG]'
  16531. Assign symbolic offsets to the elements of a structure. STAG
  16532. defines a symbol to use to reference the structure. OFFSET
  16533. indicates a starting value to use for the first element
  16534. encountered; otherwise it defaults to zero. Each element can have
  16535. a named offset, NAME, which is a symbol assigned the value of the
  16536. element's offset into the structure. If STAG is missing, these
  16537. become global symbols. COUNT adjusts the offset that many times,
  16538. as if 'element' were an array. 'element' may be one of '.byte',
  16539. '.word', '.long', '.float', or any equivalent of those, and the
  16540. structure offset is adjusted accordingly. '.field' and '.string'
  16541. are also allowed; the size of '.field' is one bit, and '.string' is
  16542. considered to be one word in size. Only element descriptors,
  16543. structure/union tags, '.align' and conditional assembly directives
  16544. are allowed within '.struct'/'.endstruct'. '.align' aligns member
  16545. offsets to word boundaries only. SSIZE, if provided, will always
  16546. be assigned the size of the structure.
  16547. The '.tag' directive, in addition to being used to define a
  16548. structure/union element within a structure, may be used to apply a
  16549. structure to a symbol. Once applied to LABEL, the individual
  16550. structure elements may be applied to LABEL to produce the desired
  16551. offsets using LABEL as the structure base.
  16552. '.tab'
  16553. Set the tab size in the output listing. Ignored.
  16554. '[UTAG] .union'
  16555. '[NAME_1] element [COUNT_1]'
  16556. '[NAME_2] element [COUNT_2]'
  16557. '[TNAME] .tag UTAGX[,TCOUNT]'
  16558. '...'
  16559. '[NAME_N] element [COUNT_N]'
  16560. '[USIZE] .endstruct'
  16561. 'LABEL .tag [UTAG]'
  16562. Similar to '.struct', but the offset after each element is reset to
  16563. zero, and the USIZE is set to the maximum of all defined elements.
  16564. Starting offset for the union is always zero.
  16565. '[SYMBOL] .usect "SECTION_NAME", SIZE, [,[BLOCKING_FLAG] [,ALIGNMENT_FLAG]]'
  16566. Reserve space for variables in a named, uninitialized section
  16567. (similar to .bss). '.usect' allows definitions sections
  16568. independent of .bss. SYMBOL points to the first location reserved
  16569. by this allocation. The symbol may be used as a variable name.
  16570. SIZE is the allocated size in words. BLOCKING_FLAG indicates
  16571. whether to block this section on a page boundary (128 words) (*note
  16572. TIC54X-Block::). ALIGNMENT FLAG indicates whether the section
  16573. should be longword-aligned.
  16574. '.var SYM[,..., SYM_N]'
  16575. Define a subsym to be a local variable within a macro. See *Note
  16576. TIC54X-Macros::.
  16577. '.version VERSION'
  16578. Set which processor to build instructions for. Though the
  16579. following values are accepted, the op is ignored.
  16580. '541'
  16581. '542'
  16582. '543'
  16583. '545'
  16584. '545LP'
  16585. '546LP'
  16586. '548'
  16587. '549'
  16588. 
  16589. File: as.info, Node: TIC54X-Macros, Next: TIC54X-MMRegs, Prev: TIC54X-Directives, Up: TIC54X-Dependent
  16590. 9.45.10 Macros
  16591. --------------
  16592. Macros do not require explicit dereferencing of arguments (i.e., \ARG).
  16593. During macro expansion, the macro parameters are converted to
  16594. subsyms. If the number of arguments passed the macro invocation exceeds
  16595. the number of parameters defined, the last parameter is assigned the
  16596. string equivalent of all remaining arguments. If fewer arguments are
  16597. given than parameters, the missing parameters are assigned empty
  16598. strings. To include a comma in an argument, you must enclose the
  16599. argument in quotes.
  16600. The following built-in subsym functions allow examination of the
  16601. string value of subsyms (or ordinary strings). The arguments are
  16602. strings unless otherwise indicated (subsyms passed as args will be
  16603. replaced by the strings they represent).
  16604. '$symlen(STR)'
  16605. Returns the length of STR.
  16606. '$symcmp(STR1,STR2)'
  16607. Returns 0 if STR1 == STR2, non-zero otherwise.
  16608. '$firstch(STR,CH)'
  16609. Returns index of the first occurrence of character constant CH in
  16610. STR.
  16611. '$lastch(STR,CH)'
  16612. Returns index of the last occurrence of character constant CH in
  16613. STR.
  16614. '$isdefed(SYMBOL)'
  16615. Returns zero if the symbol SYMBOL is not in the symbol table,
  16616. non-zero otherwise.
  16617. '$ismember(SYMBOL,LIST)'
  16618. Assign the first member of comma-separated string LIST to SYMBOL;
  16619. LIST is reassigned the remainder of the list. Returns zero if LIST
  16620. is a null string. Both arguments must be subsyms.
  16621. '$iscons(EXPR)'
  16622. Returns 1 if string EXPR is binary, 2 if octal, 3 if hexadecimal, 4
  16623. if a character, 5 if decimal, and zero if not an integer.
  16624. '$isname(NAME)'
  16625. Returns 1 if NAME is a valid symbol name, zero otherwise.
  16626. '$isreg(REG)'
  16627. Returns 1 if REG is a valid predefined register name (AR0-AR7
  16628. only).
  16629. '$structsz(STAG)'
  16630. Returns the size of the structure or union represented by STAG.
  16631. '$structacc(STAG)'
  16632. Returns the reference point of the structure or union represented
  16633. by STAG. Always returns zero.
  16634. 
  16635. File: as.info, Node: TIC54X-MMRegs, Next: TIC54X-Syntax, Prev: TIC54X-Macros, Up: TIC54X-Dependent
  16636. 9.45.11 Memory-mapped Registers
  16637. -------------------------------
  16638. The following symbols are recognized as memory-mapped registers:
  16639. 
  16640. File: as.info, Node: TIC54X-Syntax, Prev: TIC54X-MMRegs, Up: TIC54X-Dependent
  16641. 9.45.12 TIC54X Syntax
  16642. ---------------------
  16643. * Menu:
  16644. * TIC54X-Chars:: Special Characters
  16645. 
  16646. File: as.info, Node: TIC54X-Chars, Up: TIC54X-Syntax
  16647. 9.45.12.1 Special Characters
  16648. ............................
  16649. The presence of a ';' appearing anywhere on a line indicates the start
  16650. of a comment that extends to the end of that line.
  16651. If a '#' appears as the first character of a line then the whole line
  16652. is treated as a comment, but in this case the line can also be a logical
  16653. line number directive (*note Comments::) or a preprocessor control
  16654. command (*note Preprocessing::).
  16655. The presence of an asterisk ('*') at the start of a line also
  16656. indicates a comment that extends to the end of that line.
  16657. The TIC54X assembler does not currently support a line separator
  16658. character.
  16659. 
  16660. File: as.info, Node: TIC6X-Dependent, Next: TILE-Gx-Dependent, Prev: TIC54X-Dependent, Up: Machine Dependencies
  16661. 9.46 TIC6X Dependent Features
  16662. =============================
  16663. * Menu:
  16664. * TIC6X Options:: Options
  16665. * TIC6X Syntax:: Syntax
  16666. * TIC6X Directives:: Directives
  16667. 
  16668. File: as.info, Node: TIC6X Options, Next: TIC6X Syntax, Up: TIC6X-Dependent
  16669. 9.46.1 TIC6X Options
  16670. --------------------
  16671. '-march=ARCH'
  16672. Enable (only) instructions from architecture ARCH. By default, all
  16673. instructions are permitted.
  16674. The following values of ARCH are accepted: 'c62x', 'c64x', 'c64x+',
  16675. 'c67x', 'c67x+', 'c674x'.
  16676. '-mdsbt'
  16677. '-mno-dsbt'
  16678. The '-mdsbt' option causes the assembler to generate the
  16679. 'Tag_ABI_DSBT' attribute with a value of 1, indicating that the
  16680. code is using DSBT addressing. The '-mno-dsbt' option, the
  16681. default, causes the tag to have a value of 0, indicating that the
  16682. code does not use DSBT addressing. The linker will emit a warning
  16683. if objects of different type (DSBT and non-DSBT) are linked
  16684. together.
  16685. '-mpid=no'
  16686. '-mpid=near'
  16687. '-mpid=far'
  16688. The '-mpid=' option causes the assembler to generate the
  16689. 'Tag_ABI_PID' attribute with a value indicating the form of data
  16690. addressing used by the code. '-mpid=no', the default, indicates
  16691. position-dependent data addressing, '-mpid=near' indicates
  16692. position-independent addressing with GOT accesses using near DP
  16693. addressing, and '-mpid=far' indicates position-independent
  16694. addressing with GOT accesses using far DP addressing. The linker
  16695. will emit a warning if objects built with different settings of
  16696. this option are linked together.
  16697. '-mpic'
  16698. '-mno-pic'
  16699. The '-mpic' option causes the assembler to generate the
  16700. 'Tag_ABI_PIC' attribute with a value of 1, indicating that the code
  16701. is using position-independent code addressing, The '-mno-pic'
  16702. option, the default, causes the tag to have a value of 0,
  16703. indicating position-dependent code addressing. The linker will
  16704. emit a warning if objects of different type (position-dependent and
  16705. position-independent) are linked together.
  16706. '-mbig-endian'
  16707. '-mlittle-endian'
  16708. Generate code for the specified endianness. The default is
  16709. little-endian.
  16710. 
  16711. File: as.info, Node: TIC6X Syntax, Next: TIC6X Directives, Prev: TIC6X Options, Up: TIC6X-Dependent
  16712. 9.46.2 TIC6X Syntax
  16713. -------------------
  16714. The presence of a ';' on a line indicates the start of a comment that
  16715. extends to the end of the current line. If a '#' or '*' appears as the
  16716. first character of a line, the whole line is treated as a comment. Note
  16717. that if a line starts with a '#' character then it can also be a logical
  16718. line number directive (*note Comments::) or a preprocessor control
  16719. command (*note Preprocessing::).
  16720. The '@' character can be used instead of a newline to separate
  16721. statements.
  16722. Instruction, register and functional unit names are case-insensitive.
  16723. 'as' requires fully-specified functional unit names, such as '.S1',
  16724. '.L1X' or '.D1T2', on all instructions using a functional unit.
  16725. For some instructions, there may be syntactic ambiguity between
  16726. register or functional unit names and the names of labels or other
  16727. symbols. To avoid this, enclose the ambiguous symbol name in
  16728. parentheses; register and functional unit names may not be enclosed in
  16729. parentheses.
  16730. 
  16731. File: as.info, Node: TIC6X Directives, Prev: TIC6X Syntax, Up: TIC6X-Dependent
  16732. 9.46.3 TIC6X Directives
  16733. -----------------------
  16734. Directives controlling the set of instructions accepted by the assembler
  16735. have effect for instructions between the directive and any subsequent
  16736. directive overriding it.
  16737. '.arch ARCH'
  16738. This has the same effect as '-march=ARCH'.
  16739. '.cantunwind'
  16740. Prevents unwinding through the current function. No personality
  16741. routine or exception table data is required or permitted.
  16742. If this is not specified then frame unwinding information will be
  16743. constructed from CFI directives. *note CFI directives::.
  16744. '.c6xabi_attribute TAG, VALUE'
  16745. Set the C6000 EABI build attribute TAG to VALUE.
  16746. The TAG is either an attribute number or one of 'Tag_ISA',
  16747. 'Tag_ABI_wchar_t', 'Tag_ABI_stack_align_needed',
  16748. 'Tag_ABI_stack_align_preserved', 'Tag_ABI_DSBT', 'Tag_ABI_PID',
  16749. 'Tag_ABI_PIC', 'TAG_ABI_array_object_alignment',
  16750. 'TAG_ABI_array_object_align_expected', 'Tag_ABI_compatibility' and
  16751. 'Tag_ABI_conformance'. The VALUE is either a 'number', '"string"',
  16752. or 'number, "string"' depending on the tag.
  16753. '.ehtype SYMBOL'
  16754. Output an exception type table reference to SYMBOL.
  16755. '.endp'
  16756. Marks the end of and exception table or function. If preceded by a
  16757. '.handlerdata' directive then this also switched back to the
  16758. previous text section.
  16759. '.handlerdata'
  16760. Marks the end of the current function, and the start of the
  16761. exception table entry for that function. Anything between this
  16762. directive and the '.endp' directive will be added to the exception
  16763. table entry.
  16764. Must be preceded by a CFI block containing a '.cfi_lsda' directive.
  16765. '.nocmp'
  16766. Disallow use of C64x+ compact instructions in the current text
  16767. section.
  16768. '.personalityindex INDEX'
  16769. Sets the personality routine for the current function to the ABI
  16770. specified compact routine number INDEX
  16771. '.personality NAME'
  16772. Sets the personality routine for the current function to NAME.
  16773. '.scomm SYMBOL, SIZE, ALIGN'
  16774. Like '.comm', creating a common symbol SYMBOL with size SIZE and
  16775. alignment ALIGN, but unlike when using '.comm', this symbol will be
  16776. placed into the small BSS section by the linker.
  16777. 
  16778. File: as.info, Node: TILE-Gx-Dependent, Next: TILEPro-Dependent, Prev: TIC6X-Dependent, Up: Machine Dependencies
  16779. 9.47 TILE-Gx Dependent Features
  16780. ===============================
  16781. * Menu:
  16782. * TILE-Gx Options:: TILE-Gx Options
  16783. * TILE-Gx Syntax:: TILE-Gx Syntax
  16784. * TILE-Gx Directives:: TILE-Gx Directives
  16785. 
  16786. File: as.info, Node: TILE-Gx Options, Next: TILE-Gx Syntax, Up: TILE-Gx-Dependent
  16787. 9.47.1 Options
  16788. --------------
  16789. The following table lists all available TILE-Gx specific options:
  16790. '-m32 | -m64'
  16791. Select the word size, either 32 bits or 64 bits.
  16792. '-EB | -EL'
  16793. Select the endianness, either big-endian (-EB) or little-endian
  16794. (-EL).
  16795. 
  16796. File: as.info, Node: TILE-Gx Syntax, Next: TILE-Gx Directives, Prev: TILE-Gx Options, Up: TILE-Gx-Dependent
  16797. 9.47.2 Syntax
  16798. -------------
  16799. Block comments are delimited by '/*' and '*/'. End of line comments may
  16800. be introduced by '#'.
  16801. Instructions consist of a leading opcode or macro name followed by
  16802. whitespace and an optional comma-separated list of operands:
  16803. OPCODE [OPERAND, ...]
  16804. Instructions must be separated by a newline or semicolon.
  16805. There are two ways to write code: either write naked instructions,
  16806. which the assembler is free to combine into VLIW bundles, or specify the
  16807. VLIW bundles explicitly.
  16808. Bundles are specified using curly braces:
  16809. { ADD r3,r4,r5 ; ADD r7,r8,r9 ; LW r10,r11 }
  16810. A bundle can span multiple lines. If you want to put multiple
  16811. instructions on a line, whether in a bundle or not, you need to separate
  16812. them with semicolons as in this example.
  16813. A bundle may contain one or more instructions, up to the limit
  16814. specified by the ISA (currently three). If fewer instructions are
  16815. specified than the hardware supports in a bundle, the assembler inserts
  16816. 'fnop' instructions automatically.
  16817. The assembler will prefer to preserve the ordering of instructions
  16818. within the bundle, putting the first instruction in a lower-numbered
  16819. pipeline than the next one, etc. This fact, combined with the optional
  16820. use of explicit 'fnop' or 'nop' instructions, allows precise control
  16821. over which pipeline executes each instruction.
  16822. If the instructions cannot be bundled in the listed order, the
  16823. assembler will automatically try to find a valid pipeline assignment.
  16824. If there is no way to bundle the instructions together, the assembler
  16825. reports an error.
  16826. The assembler does not yet auto-bundle (automatically combine
  16827. multiple instructions into one bundle), but it reserves the right to do
  16828. so in the future. If you want to force an instruction to run by itself,
  16829. put it in a bundle explicitly with curly braces and use 'nop'
  16830. instructions (not 'fnop') to fill the remaining pipeline slots in that
  16831. bundle.
  16832. * Menu:
  16833. * TILE-Gx Opcodes:: Opcode Naming Conventions.
  16834. * TILE-Gx Registers:: Register Naming.
  16835. * TILE-Gx Modifiers:: Symbolic Operand Modifiers.
  16836. 
  16837. File: as.info, Node: TILE-Gx Opcodes, Next: TILE-Gx Registers, Up: TILE-Gx Syntax
  16838. 9.47.2.1 Opcode Names
  16839. .....................
  16840. For a complete list of opcodes and descriptions of their semantics, see
  16841. 'TILE-Gx Instruction Set Architecture', available upon request at
  16842. www.tilera.com.
  16843. 
  16844. File: as.info, Node: TILE-Gx Registers, Next: TILE-Gx Modifiers, Prev: TILE-Gx Opcodes, Up: TILE-Gx Syntax
  16845. 9.47.2.2 Register Names
  16846. .......................
  16847. General-purpose registers are represented by predefined symbols of the
  16848. form 'rN', where N represents a number between '0' and '63'. However,
  16849. the following registers have canonical names that must be used instead:
  16850. 'r54'
  16851. sp
  16852. 'r55'
  16853. lr
  16854. 'r56'
  16855. sn
  16856. 'r57'
  16857. idn0
  16858. 'r58'
  16859. idn1
  16860. 'r59'
  16861. udn0
  16862. 'r60'
  16863. udn1
  16864. 'r61'
  16865. udn2
  16866. 'r62'
  16867. udn3
  16868. 'r63'
  16869. zero
  16870. The assembler will emit a warning if a numeric name is used instead
  16871. of the non-numeric name. The '.no_require_canonical_reg_names'
  16872. assembler pseudo-op turns off this warning.
  16873. '.require_canonical_reg_names' turns it back on.
  16874. 
  16875. File: as.info, Node: TILE-Gx Modifiers, Prev: TILE-Gx Registers, Up: TILE-Gx Syntax
  16876. 9.47.2.3 Symbolic Operand Modifiers
  16877. ...................................
  16878. The assembler supports several modifiers when using symbol addresses in
  16879. TILE-Gx instruction operands. The general syntax is the following:
  16880. modifier(symbol)
  16881. The following modifiers are supported:
  16882. 'hw0'
  16883. This modifier is used to load bits 0-15 of the symbol's address.
  16884. 'hw1'
  16885. This modifier is used to load bits 16-31 of the symbol's address.
  16886. 'hw2'
  16887. This modifier is used to load bits 32-47 of the symbol's address.
  16888. 'hw3'
  16889. This modifier is used to load bits 48-63 of the symbol's address.
  16890. 'hw0_last'
  16891. This modifier yields the same value as 'hw0', but it also checks
  16892. that the value does not overflow.
  16893. 'hw1_last'
  16894. This modifier yields the same value as 'hw1', but it also checks
  16895. that the value does not overflow.
  16896. 'hw2_last'
  16897. This modifier yields the same value as 'hw2', but it also checks
  16898. that the value does not overflow.
  16899. A 48-bit symbolic value is constructed by using the following
  16900. idiom:
  16901. moveli r0, hw2_last(sym)
  16902. shl16insli r0, r0, hw1(sym)
  16903. shl16insli r0, r0, hw0(sym)
  16904. 'hw0_got'
  16905. This modifier is used to load bits 0-15 of the symbol's offset in
  16906. the GOT entry corresponding to the symbol.
  16907. 'hw0_last_got'
  16908. This modifier yields the same value as 'hw0_got', but it also
  16909. checks that the value does not overflow.
  16910. 'hw1_last_got'
  16911. This modifier is used to load bits 16-31 of the symbol's offset in
  16912. the GOT entry corresponding to the symbol, and it also checks that
  16913. the value does not overflow.
  16914. 'plt'
  16915. This modifier is used for function symbols. It causes a _procedure
  16916. linkage table_, an array of code stubs, to be created at the time
  16917. the shared object is created or linked against, together with a
  16918. global offset table entry. The value is a pc-relative offset to
  16919. the corresponding stub code in the procedure linkage table. This
  16920. arrangement causes the run-time symbol resolver to be called to
  16921. look up and set the value of the symbol the first time the function
  16922. is called (at latest; depending environment variables). It is only
  16923. safe to leave the symbol unresolved this way if all references are
  16924. function calls.
  16925. 'hw0_plt'
  16926. This modifier is used to load bits 0-15 of the pc-relative address
  16927. of a plt entry.
  16928. 'hw1_plt'
  16929. This modifier is used to load bits 16-31 of the pc-relative address
  16930. of a plt entry.
  16931. 'hw1_last_plt'
  16932. This modifier yields the same value as 'hw1_plt', but it also
  16933. checks that the value does not overflow.
  16934. 'hw2_last_plt'
  16935. This modifier is used to load bits 32-47 of the pc-relative address
  16936. of a plt entry, and it also checks that the value does not
  16937. overflow.
  16938. 'hw0_tls_gd'
  16939. This modifier is used to load bits 0-15 of the offset of the GOT
  16940. entry of the symbol's TLS descriptor, to be used for
  16941. general-dynamic TLS accesses.
  16942. 'hw0_last_tls_gd'
  16943. This modifier yields the same value as 'hw0_tls_gd', but it also
  16944. checks that the value does not overflow.
  16945. 'hw1_last_tls_gd'
  16946. This modifier is used to load bits 16-31 of the offset of the GOT
  16947. entry of the symbol's TLS descriptor, to be used for
  16948. general-dynamic TLS accesses. It also checks that the value does
  16949. not overflow.
  16950. 'hw0_tls_ie'
  16951. This modifier is used to load bits 0-15 of the offset of the GOT
  16952. entry containing the offset of the symbol's address from the TCB,
  16953. to be used for initial-exec TLS accesses.
  16954. 'hw0_last_tls_ie'
  16955. This modifier yields the same value as 'hw0_tls_ie', but it also
  16956. checks that the value does not overflow.
  16957. 'hw1_last_tls_ie'
  16958. This modifier is used to load bits 16-31 of the offset of the GOT
  16959. entry containing the offset of the symbol's address from the TCB,
  16960. to be used for initial-exec TLS accesses. It also checks that the
  16961. value does not overflow.
  16962. 'hw0_tls_le'
  16963. This modifier is used to load bits 0-15 of the offset of the
  16964. symbol's address from the TCB, to be used for local-exec TLS
  16965. accesses.
  16966. 'hw0_last_tls_le'
  16967. This modifier yields the same value as 'hw0_tls_le', but it also
  16968. checks that the value does not overflow.
  16969. 'hw1_last_tls_le'
  16970. This modifier is used to load bits 16-31 of the offset of the
  16971. symbol's address from the TCB, to be used for local-exec TLS
  16972. accesses. It also checks that the value does not overflow.
  16973. 'tls_gd_call'
  16974. This modifier is used to tag an instruction as the "call" part of a
  16975. calling sequence for a TLS GD reference of its operand.
  16976. 'tls_gd_add'
  16977. This modifier is used to tag an instruction as the "add" part of a
  16978. calling sequence for a TLS GD reference of its operand.
  16979. 'tls_ie_load'
  16980. This modifier is used to tag an instruction as the "load" part of a
  16981. calling sequence for a TLS IE reference of its operand.
  16982. 
  16983. File: as.info, Node: TILE-Gx Directives, Prev: TILE-Gx Syntax, Up: TILE-Gx-Dependent
  16984. 9.47.3 TILE-Gx Directives
  16985. -------------------------
  16986. '.align EXPRESSION [, EXPRESSION]'
  16987. This is the generic .ALIGN directive. The first argument is the
  16988. requested alignment in bytes.
  16989. '.allow_suspicious_bundles'
  16990. Turns on error checking for combinations of instructions in a
  16991. bundle that probably indicate a programming error. This is on by
  16992. default.
  16993. '.no_allow_suspicious_bundles'
  16994. Turns off error checking for combinations of instructions in a
  16995. bundle that probably indicate a programming error.
  16996. '.require_canonical_reg_names'
  16997. Require that canonical register names be used, and emit a warning
  16998. if the numeric names are used. This is on by default.
  16999. '.no_require_canonical_reg_names'
  17000. Permit the use of numeric names for registers that have canonical
  17001. names.
  17002. 
  17003. File: as.info, Node: TILEPro-Dependent, Next: V850-Dependent, Prev: TILE-Gx-Dependent, Up: Machine Dependencies
  17004. 9.48 TILEPro Dependent Features
  17005. ===============================
  17006. * Menu:
  17007. * TILEPro Options:: TILEPro Options
  17008. * TILEPro Syntax:: TILEPro Syntax
  17009. * TILEPro Directives:: TILEPro Directives
  17010. 
  17011. File: as.info, Node: TILEPro Options, Next: TILEPro Syntax, Up: TILEPro-Dependent
  17012. 9.48.1 Options
  17013. --------------
  17014. 'as' has no machine-dependent command-line options for TILEPro.
  17015. 
  17016. File: as.info, Node: TILEPro Syntax, Next: TILEPro Directives, Prev: TILEPro Options, Up: TILEPro-Dependent
  17017. 9.48.2 Syntax
  17018. -------------
  17019. Block comments are delimited by '/*' and '*/'. End of line comments may
  17020. be introduced by '#'.
  17021. Instructions consist of a leading opcode or macro name followed by
  17022. whitespace and an optional comma-separated list of operands:
  17023. OPCODE [OPERAND, ...]
  17024. Instructions must be separated by a newline or semicolon.
  17025. There are two ways to write code: either write naked instructions,
  17026. which the assembler is free to combine into VLIW bundles, or specify the
  17027. VLIW bundles explicitly.
  17028. Bundles are specified using curly braces:
  17029. { ADD r3,r4,r5 ; ADD r7,r8,r9 ; LW r10,r11 }
  17030. A bundle can span multiple lines. If you want to put multiple
  17031. instructions on a line, whether in a bundle or not, you need to separate
  17032. them with semicolons as in this example.
  17033. A bundle may contain one or more instructions, up to the limit
  17034. specified by the ISA (currently three). If fewer instructions are
  17035. specified than the hardware supports in a bundle, the assembler inserts
  17036. 'fnop' instructions automatically.
  17037. The assembler will prefer to preserve the ordering of instructions
  17038. within the bundle, putting the first instruction in a lower-numbered
  17039. pipeline than the next one, etc. This fact, combined with the optional
  17040. use of explicit 'fnop' or 'nop' instructions, allows precise control
  17041. over which pipeline executes each instruction.
  17042. If the instructions cannot be bundled in the listed order, the
  17043. assembler will automatically try to find a valid pipeline assignment.
  17044. If there is no way to bundle the instructions together, the assembler
  17045. reports an error.
  17046. The assembler does not yet auto-bundle (automatically combine
  17047. multiple instructions into one bundle), but it reserves the right to do
  17048. so in the future. If you want to force an instruction to run by itself,
  17049. put it in a bundle explicitly with curly braces and use 'nop'
  17050. instructions (not 'fnop') to fill the remaining pipeline slots in that
  17051. bundle.
  17052. * Menu:
  17053. * TILEPro Opcodes:: Opcode Naming Conventions.
  17054. * TILEPro Registers:: Register Naming.
  17055. * TILEPro Modifiers:: Symbolic Operand Modifiers.
  17056. 
  17057. File: as.info, Node: TILEPro Opcodes, Next: TILEPro Registers, Up: TILEPro Syntax
  17058. 9.48.2.1 Opcode Names
  17059. .....................
  17060. For a complete list of opcodes and descriptions of their semantics, see
  17061. 'TILE Processor User Architecture Manual', available upon request at
  17062. www.tilera.com.
  17063. 
  17064. File: as.info, Node: TILEPro Registers, Next: TILEPro Modifiers, Prev: TILEPro Opcodes, Up: TILEPro Syntax
  17065. 9.48.2.2 Register Names
  17066. .......................
  17067. General-purpose registers are represented by predefined symbols of the
  17068. form 'rN', where N represents a number between '0' and '63'. However,
  17069. the following registers have canonical names that must be used instead:
  17070. 'r54'
  17071. sp
  17072. 'r55'
  17073. lr
  17074. 'r56'
  17075. sn
  17076. 'r57'
  17077. idn0
  17078. 'r58'
  17079. idn1
  17080. 'r59'
  17081. udn0
  17082. 'r60'
  17083. udn1
  17084. 'r61'
  17085. udn2
  17086. 'r62'
  17087. udn3
  17088. 'r63'
  17089. zero
  17090. The assembler will emit a warning if a numeric name is used instead
  17091. of the canonical name. The '.no_require_canonical_reg_names' assembler
  17092. pseudo-op turns off this warning. '.require_canonical_reg_names' turns
  17093. it back on.
  17094. 
  17095. File: as.info, Node: TILEPro Modifiers, Prev: TILEPro Registers, Up: TILEPro Syntax
  17096. 9.48.2.3 Symbolic Operand Modifiers
  17097. ...................................
  17098. The assembler supports several modifiers when using symbol addresses in
  17099. TILEPro instruction operands. The general syntax is the following:
  17100. modifier(symbol)
  17101. The following modifiers are supported:
  17102. 'lo16'
  17103. This modifier is used to load the low 16 bits of the symbol's
  17104. address, sign-extended to a 32-bit value (sign-extension allows it
  17105. to be range-checked against signed 16 bit immediate operands
  17106. without complaint).
  17107. 'hi16'
  17108. This modifier is used to load the high 16 bits of the symbol's
  17109. address, also sign-extended to a 32-bit value.
  17110. 'ha16'
  17111. 'ha16(N)' is identical to 'hi16(N)', except if 'lo16(N)' is
  17112. negative it adds one to the 'hi16(N)' value. This way 'lo16' and
  17113. 'ha16' can be added to create any 32-bit value using 'auli'. For
  17114. example, here is how you move an arbitrary 32-bit address into r3:
  17115. moveli r3, lo16(sym)
  17116. auli r3, r3, ha16(sym)
  17117. 'got'
  17118. This modifier is used to load the offset of the GOT entry
  17119. corresponding to the symbol.
  17120. 'got_lo16'
  17121. This modifier is used to load the sign-extended low 16 bits of the
  17122. offset of the GOT entry corresponding to the symbol.
  17123. 'got_hi16'
  17124. This modifier is used to load the sign-extended high 16 bits of the
  17125. offset of the GOT entry corresponding to the symbol.
  17126. 'got_ha16'
  17127. This modifier is like 'got_hi16', but it adds one if 'got_lo16' of
  17128. the input value is negative.
  17129. 'plt'
  17130. This modifier is used for function symbols. It causes a _procedure
  17131. linkage table_, an array of code stubs, to be created at the time
  17132. the shared object is created or linked against, together with a
  17133. global offset table entry. The value is a pc-relative offset to
  17134. the corresponding stub code in the procedure linkage table. This
  17135. arrangement causes the run-time symbol resolver to be called to
  17136. look up and set the value of the symbol the first time the function
  17137. is called (at latest; depending environment variables). It is only
  17138. safe to leave the symbol unresolved this way if all references are
  17139. function calls.
  17140. 'tls_gd'
  17141. This modifier is used to load the offset of the GOT entry of the
  17142. symbol's TLS descriptor, to be used for general-dynamic TLS
  17143. accesses.
  17144. 'tls_gd_lo16'
  17145. This modifier is used to load the sign-extended low 16 bits of the
  17146. offset of the GOT entry of the symbol's TLS descriptor, to be used
  17147. for general dynamic TLS accesses.
  17148. 'tls_gd_hi16'
  17149. This modifier is used to load the sign-extended high 16 bits of the
  17150. offset of the GOT entry of the symbol's TLS descriptor, to be used
  17151. for general dynamic TLS accesses.
  17152. 'tls_gd_ha16'
  17153. This modifier is like 'tls_gd_hi16', but it adds one to the value
  17154. if 'tls_gd_lo16' of the input value is negative.
  17155. 'tls_ie'
  17156. This modifier is used to load the offset of the GOT entry
  17157. containing the offset of the symbol's address from the TCB, to be
  17158. used for initial-exec TLS accesses.
  17159. 'tls_ie_lo16'
  17160. This modifier is used to load the low 16 bits of the offset of the
  17161. GOT entry containing the offset of the symbol's address from the
  17162. TCB, to be used for initial-exec TLS accesses.
  17163. 'tls_ie_hi16'
  17164. This modifier is used to load the high 16 bits of the offset of the
  17165. GOT entry containing the offset of the symbol's address from the
  17166. TCB, to be used for initial-exec TLS accesses.
  17167. 'tls_ie_ha16'
  17168. This modifier is like 'tls_ie_hi16', but it adds one to the value
  17169. if 'tls_ie_lo16' of the input value is negative.
  17170. 'tls_le'
  17171. This modifier is used to load the offset of the symbol's address
  17172. from the TCB, to be used for local-exec TLS accesses.
  17173. 'tls_le_lo16'
  17174. This modifier is used to load the low 16 bits of the offset of the
  17175. symbol's address from the TCB, to be used for local-exec TLS
  17176. accesses.
  17177. 'tls_le_hi16'
  17178. This modifier is used to load the high 16 bits of the offset of the
  17179. symbol's address from the TCB, to be used for local-exec TLS
  17180. accesses.
  17181. 'tls_le_ha16'
  17182. This modifier is like 'tls_le_hi16', but it adds one to the value
  17183. if 'tls_le_lo16' of the input value is negative.
  17184. 'tls_gd_call'
  17185. This modifier is used to tag an instruction as the "call" part of a
  17186. calling sequence for a TLS GD reference of its operand.
  17187. 'tls_gd_add'
  17188. This modifier is used to tag an instruction as the "add" part of a
  17189. calling sequence for a TLS GD reference of its operand.
  17190. 'tls_ie_load'
  17191. This modifier is used to tag an instruction as the "load" part of a
  17192. calling sequence for a TLS IE reference of its operand.
  17193. 
  17194. File: as.info, Node: TILEPro Directives, Prev: TILEPro Syntax, Up: TILEPro-Dependent
  17195. 9.48.3 TILEPro Directives
  17196. -------------------------
  17197. '.align EXPRESSION [, EXPRESSION]'
  17198. This is the generic .ALIGN directive. The first argument is the
  17199. requested alignment in bytes.
  17200. '.allow_suspicious_bundles'
  17201. Turns on error checking for combinations of instructions in a
  17202. bundle that probably indicate a programming error. This is on by
  17203. default.
  17204. '.no_allow_suspicious_bundles'
  17205. Turns off error checking for combinations of instructions in a
  17206. bundle that probably indicate a programming error.
  17207. '.require_canonical_reg_names'
  17208. Require that canonical register names be used, and emit a warning
  17209. if the numeric names are used. This is on by default.
  17210. '.no_require_canonical_reg_names'
  17211. Permit the use of numeric names for registers that have canonical
  17212. names.
  17213. 
  17214. File: as.info, Node: V850-Dependent, Next: Vax-Dependent, Prev: TILEPro-Dependent, Up: Machine Dependencies
  17215. 9.49 v850 Dependent Features
  17216. ============================
  17217. * Menu:
  17218. * V850 Options:: Options
  17219. * V850 Syntax:: Syntax
  17220. * V850 Floating Point:: Floating Point
  17221. * V850 Directives:: V850 Machine Directives
  17222. * V850 Opcodes:: Opcodes
  17223. 
  17224. File: as.info, Node: V850 Options, Next: V850 Syntax, Up: V850-Dependent
  17225. 9.49.1 Options
  17226. --------------
  17227. 'as' supports the following additional command-line options for the V850
  17228. processor family:
  17229. '-wsigned_overflow'
  17230. Causes warnings to be produced when signed immediate values
  17231. overflow the space available for then within their opcodes. By
  17232. default this option is disabled as it is possible to receive
  17233. spurious warnings due to using exact bit patterns as immediate
  17234. constants.
  17235. '-wunsigned_overflow'
  17236. Causes warnings to be produced when unsigned immediate values
  17237. overflow the space available for then within their opcodes. By
  17238. default this option is disabled as it is possible to receive
  17239. spurious warnings due to using exact bit patterns as immediate
  17240. constants.
  17241. '-mv850'
  17242. Specifies that the assembled code should be marked as being
  17243. targeted at the V850 processor. This allows the linker to detect
  17244. attempts to link such code with code assembled for other
  17245. processors.
  17246. '-mv850e'
  17247. Specifies that the assembled code should be marked as being
  17248. targeted at the V850E processor. This allows the linker to detect
  17249. attempts to link such code with code assembled for other
  17250. processors.
  17251. '-mv850e1'
  17252. Specifies that the assembled code should be marked as being
  17253. targeted at the V850E1 processor. This allows the linker to detect
  17254. attempts to link such code with code assembled for other
  17255. processors.
  17256. '-mv850any'
  17257. Specifies that the assembled code should be marked as being
  17258. targeted at the V850 processor but support instructions that are
  17259. specific to the extended variants of the process. This allows the
  17260. production of binaries that contain target specific code, but which
  17261. are also intended to be used in a generic fashion. For example
  17262. libgcc.a contains generic routines used by the code produced by GCC
  17263. for all versions of the v850 architecture, together with support
  17264. routines only used by the V850E architecture.
  17265. '-mv850e2'
  17266. Specifies that the assembled code should be marked as being
  17267. targeted at the V850E2 processor. This allows the linker to detect
  17268. attempts to link such code with code assembled for other
  17269. processors.
  17270. '-mv850e2v3'
  17271. Specifies that the assembled code should be marked as being
  17272. targeted at the V850E2V3 processor. This allows the linker to
  17273. detect attempts to link such code with code assembled for other
  17274. processors.
  17275. '-mv850e2v4'
  17276. This is an alias for '-mv850e3v5'.
  17277. '-mv850e3v5'
  17278. Specifies that the assembled code should be marked as being
  17279. targeted at the V850E3V5 processor. This allows the linker to
  17280. detect attempts to link such code with code assembled for other
  17281. processors.
  17282. '-mrelax'
  17283. Enables relaxation. This allows the .longcall and .longjump pseudo
  17284. ops to be used in the assembler source code. These ops label
  17285. sections of code which are either a long function call or a long
  17286. branch. The assembler will then flag these sections of code and
  17287. the linker will attempt to relax them.
  17288. '-mgcc-abi'
  17289. Marks the generated object file as supporting the old GCC ABI.
  17290. '-mrh850-abi'
  17291. Marks the generated object file as supporting the RH850 ABI. This
  17292. is the default.
  17293. '-m8byte-align'
  17294. Marks the generated object file as supporting a maximum 64-bits of
  17295. alignment for variables defined in the source code.
  17296. '-m4byte-align'
  17297. Marks the generated object file as supporting a maximum 32-bits of
  17298. alignment for variables defined in the source code. This is the
  17299. default.
  17300. '-msoft-float'
  17301. Marks the generated object file as not using any floating point
  17302. instructions - and hence can be linked with other V850 binaries
  17303. that do or do not use floating point. This is the default for
  17304. binaries for architectures earlier than the 'e2v3'.
  17305. '-mhard-float'
  17306. Marks the generated object file as one that uses floating point
  17307. instructions - and hence can only be linked with other V850
  17308. binaries that use the same kind of floating point instructions, or
  17309. with binaries that do not use floating point at all. This is the
  17310. default for binaries the 'e2v3' and later architectures.
  17311. 
  17312. File: as.info, Node: V850 Syntax, Next: V850 Floating Point, Prev: V850 Options, Up: V850-Dependent
  17313. 9.49.2 Syntax
  17314. -------------
  17315. * Menu:
  17316. * V850-Chars:: Special Characters
  17317. * V850-Regs:: Register Names
  17318. 
  17319. File: as.info, Node: V850-Chars, Next: V850-Regs, Up: V850 Syntax
  17320. 9.49.2.1 Special Characters
  17321. ...........................
  17322. '#' is the line comment character. If a '#' appears as the first
  17323. character of a line, the whole line is treated as a comment, but in this
  17324. case the line can also be a logical line number directive (*note
  17325. Comments::) or a preprocessor control command (*note Preprocessing::).
  17326. Two dashes ('--') can also be used to start a line comment.
  17327. The ';' character can be used to separate statements on the same
  17328. line.
  17329. 
  17330. File: as.info, Node: V850-Regs, Prev: V850-Chars, Up: V850 Syntax
  17331. 9.49.2.2 Register Names
  17332. .......................
  17333. 'as' supports the following names for registers:
  17334. 'general register 0'
  17335. r0, zero
  17336. 'general register 1'
  17337. r1
  17338. 'general register 2'
  17339. r2, hp
  17340. 'general register 3'
  17341. r3, sp
  17342. 'general register 4'
  17343. r4, gp
  17344. 'general register 5'
  17345. r5, tp
  17346. 'general register 6'
  17347. r6
  17348. 'general register 7'
  17349. r7
  17350. 'general register 8'
  17351. r8
  17352. 'general register 9'
  17353. r9
  17354. 'general register 10'
  17355. r10
  17356. 'general register 11'
  17357. r11
  17358. 'general register 12'
  17359. r12
  17360. 'general register 13'
  17361. r13
  17362. 'general register 14'
  17363. r14
  17364. 'general register 15'
  17365. r15
  17366. 'general register 16'
  17367. r16
  17368. 'general register 17'
  17369. r17
  17370. 'general register 18'
  17371. r18
  17372. 'general register 19'
  17373. r19
  17374. 'general register 20'
  17375. r20
  17376. 'general register 21'
  17377. r21
  17378. 'general register 22'
  17379. r22
  17380. 'general register 23'
  17381. r23
  17382. 'general register 24'
  17383. r24
  17384. 'general register 25'
  17385. r25
  17386. 'general register 26'
  17387. r26
  17388. 'general register 27'
  17389. r27
  17390. 'general register 28'
  17391. r28
  17392. 'general register 29'
  17393. r29
  17394. 'general register 30'
  17395. r30, ep
  17396. 'general register 31'
  17397. r31, lp
  17398. 'system register 0'
  17399. eipc
  17400. 'system register 1'
  17401. eipsw
  17402. 'system register 2'
  17403. fepc
  17404. 'system register 3'
  17405. fepsw
  17406. 'system register 4'
  17407. ecr
  17408. 'system register 5'
  17409. psw
  17410. 'system register 16'
  17411. ctpc
  17412. 'system register 17'
  17413. ctpsw
  17414. 'system register 18'
  17415. dbpc
  17416. 'system register 19'
  17417. dbpsw
  17418. 'system register 20'
  17419. ctbp
  17420. 
  17421. File: as.info, Node: V850 Floating Point, Next: V850 Directives, Prev: V850 Syntax, Up: V850-Dependent
  17422. 9.49.3 Floating Point
  17423. ---------------------
  17424. The V850 family uses IEEE floating-point numbers.
  17425. 
  17426. File: as.info, Node: V850 Directives, Next: V850 Opcodes, Prev: V850 Floating Point, Up: V850-Dependent
  17427. 9.49.4 V850 Machine Directives
  17428. ------------------------------
  17429. '.offset <EXPRESSION>'
  17430. Moves the offset into the current section to the specified amount.
  17431. '.section "name", <type>'
  17432. This is an extension to the standard .section directive. It sets
  17433. the current section to be <type> and creates an alias for this
  17434. section called "name".
  17435. '.v850'
  17436. Specifies that the assembled code should be marked as being
  17437. targeted at the V850 processor. This allows the linker to detect
  17438. attempts to link such code with code assembled for other
  17439. processors.
  17440. '.v850e'
  17441. Specifies that the assembled code should be marked as being
  17442. targeted at the V850E processor. This allows the linker to detect
  17443. attempts to link such code with code assembled for other
  17444. processors.
  17445. '.v850e1'
  17446. Specifies that the assembled code should be marked as being
  17447. targeted at the V850E1 processor. This allows the linker to detect
  17448. attempts to link such code with code assembled for other
  17449. processors.
  17450. '.v850e2'
  17451. Specifies that the assembled code should be marked as being
  17452. targeted at the V850E2 processor. This allows the linker to detect
  17453. attempts to link such code with code assembled for other
  17454. processors.
  17455. '.v850e2v3'
  17456. Specifies that the assembled code should be marked as being
  17457. targeted at the V850E2V3 processor. This allows the linker to
  17458. detect attempts to link such code with code assembled for other
  17459. processors.
  17460. '.v850e2v4'
  17461. Specifies that the assembled code should be marked as being
  17462. targeted at the V850E3V5 processor. This allows the linker to
  17463. detect attempts to link such code with code assembled for other
  17464. processors.
  17465. '.v850e3v5'
  17466. Specifies that the assembled code should be marked as being
  17467. targeted at the V850E3V5 processor. This allows the linker to
  17468. detect attempts to link such code with code assembled for other
  17469. processors.
  17470. 
  17471. File: as.info, Node: V850 Opcodes, Prev: V850 Directives, Up: V850-Dependent
  17472. 9.49.5 Opcodes
  17473. --------------
  17474. 'as' implements all the standard V850 opcodes.
  17475. 'as' also implements the following pseudo ops:
  17476. 'hi0()'
  17477. Computes the higher 16 bits of the given expression and stores it
  17478. into the immediate operand field of the given instruction. For
  17479. example:
  17480. 'mulhi hi0(here - there), r5, r6'
  17481. computes the difference between the address of labels 'here' and
  17482. 'there', takes the upper 16 bits of this difference, shifts it down
  17483. 16 bits and then multiplies it by the lower 16 bits in register 5,
  17484. putting the result into register 6.
  17485. 'lo()'
  17486. Computes the lower 16 bits of the given expression and stores it
  17487. into the immediate operand field of the given instruction. For
  17488. example:
  17489. 'addi lo(here - there), r5, r6'
  17490. computes the difference between the address of labels 'here' and
  17491. 'there', takes the lower 16 bits of this difference and adds it to
  17492. register 5, putting the result into register 6.
  17493. 'hi()'
  17494. Computes the higher 16 bits of the given expression and then adds
  17495. the value of the most significant bit of the lower 16 bits of the
  17496. expression and stores the result into the immediate operand field
  17497. of the given instruction. For example the following code can be
  17498. used to compute the address of the label 'here' and store it into
  17499. register 6:
  17500. 'movhi hi(here), r0, r6' 'movea lo(here), r6, r6'
  17501. The reason for this special behaviour is that movea performs a sign
  17502. extension on its immediate operand. So for example if the address
  17503. of 'here' was 0xFFFFFFFF then without the special behaviour of the
  17504. hi() pseudo-op the movhi instruction would put 0xFFFF0000 into r6,
  17505. then the movea instruction would takes its immediate operand,
  17506. 0xFFFF, sign extend it to 32 bits, 0xFFFFFFFF, and then add it into
  17507. r6 giving 0xFFFEFFFF which is wrong (the fifth nibble is E). With
  17508. the hi() pseudo op adding in the top bit of the lo() pseudo op, the
  17509. movhi instruction actually stores 0 into r6 (0xFFFF + 1 = 0x0000),
  17510. so that the movea instruction stores 0xFFFFFFFF into r6 - the right
  17511. value.
  17512. 'hilo()'
  17513. Computes the 32 bit value of the given expression and stores it
  17514. into the immediate operand field of the given instruction (which
  17515. must be a mov instruction). For example:
  17516. 'mov hilo(here), r6'
  17517. computes the absolute address of label 'here' and puts the result
  17518. into register 6.
  17519. 'sdaoff()'
  17520. Computes the offset of the named variable from the start of the
  17521. Small Data Area (whose address is held in register 4, the GP
  17522. register) and stores the result as a 16 bit signed value in the
  17523. immediate operand field of the given instruction. For example:
  17524. 'ld.w sdaoff(_a_variable)[gp],r6'
  17525. loads the contents of the location pointed to by the label
  17526. '_a_variable' into register 6, provided that the label is located
  17527. somewhere within +/- 32K of the address held in the GP register.
  17528. [Note the linker assumes that the GP register contains a fixed
  17529. address set to the address of the label called '__gp'. This can
  17530. either be set up automatically by the linker, or specifically set
  17531. by using the '--defsym __gp=<value>' command-line option].
  17532. 'tdaoff()'
  17533. Computes the offset of the named variable from the start of the
  17534. Tiny Data Area (whose address is held in register 30, the EP
  17535. register) and stores the result as a 4,5, 7 or 8 bit unsigned value
  17536. in the immediate operand field of the given instruction. For
  17537. example:
  17538. 'sld.w tdaoff(_a_variable)[ep],r6'
  17539. loads the contents of the location pointed to by the label
  17540. '_a_variable' into register 6, provided that the label is located
  17541. somewhere within +256 bytes of the address held in the EP register.
  17542. [Note the linker assumes that the EP register contains a fixed
  17543. address set to the address of the label called '__ep'. This can
  17544. either be set up automatically by the linker, or specifically set
  17545. by using the '--defsym __ep=<value>' command-line option].
  17546. 'zdaoff()'
  17547. Computes the offset of the named variable from address 0 and stores
  17548. the result as a 16 bit signed value in the immediate operand field
  17549. of the given instruction. For example:
  17550. 'movea zdaoff(_a_variable),zero,r6'
  17551. puts the address of the label '_a_variable' into register 6,
  17552. assuming that the label is somewhere within the first 32K of
  17553. memory. (Strictly speaking it also possible to access the last 32K
  17554. of memory as well, as the offsets are signed).
  17555. 'ctoff()'
  17556. Computes the offset of the named variable from the start of the
  17557. Call Table Area (whose address is held in system register 20, the
  17558. CTBP register) and stores the result a 6 or 16 bit unsigned value
  17559. in the immediate field of then given instruction or piece of data.
  17560. For example:
  17561. 'callt ctoff(table_func1)'
  17562. will put the call the function whose address is held in the call
  17563. table at the location labeled 'table_func1'.
  17564. '.longcall name'
  17565. Indicates that the following sequence of instructions is a long
  17566. call to function 'name'. The linker will attempt to shorten this
  17567. call sequence if 'name' is within a 22bit offset of the call. Only
  17568. valid if the '-mrelax' command-line switch has been enabled.
  17569. '.longjump name'
  17570. Indicates that the following sequence of instructions is a long
  17571. jump to label 'name'. The linker will attempt to shorten this code
  17572. sequence if 'name' is within a 22bit offset of the jump. Only
  17573. valid if the '-mrelax' command-line switch has been enabled.
  17574. For information on the V850 instruction set, see 'V850 Family
  17575. 32-/16-Bit single-Chip Microcontroller Architecture Manual' from NEC.
  17576. Ltd.
  17577. 
  17578. File: as.info, Node: Vax-Dependent, Next: Visium-Dependent, Prev: V850-Dependent, Up: Machine Dependencies
  17579. 9.50 VAX Dependent Features
  17580. ===========================
  17581. * Menu:
  17582. * VAX-Opts:: VAX Command-Line Options
  17583. * VAX-float:: VAX Floating Point
  17584. * VAX-directives:: Vax Machine Directives
  17585. * VAX-opcodes:: VAX Opcodes
  17586. * VAX-branch:: VAX Branch Improvement
  17587. * VAX-operands:: VAX Operands
  17588. * VAX-no:: Not Supported on VAX
  17589. * VAX-Syntax:: VAX Syntax
  17590. 
  17591. File: as.info, Node: VAX-Opts, Next: VAX-float, Up: Vax-Dependent
  17592. 9.50.1 VAX Command-Line Options
  17593. -------------------------------
  17594. The Vax version of 'as' accepts any of the following options, gives a
  17595. warning message that the option was ignored and proceeds. These options
  17596. are for compatibility with scripts designed for other people's
  17597. assemblers.
  17598. '-D (Debug)'
  17599. '-S (Symbol Table)'
  17600. '-T (Token Trace)'
  17601. These are obsolete options used to debug old assemblers.
  17602. '-d (Displacement size for JUMPs)'
  17603. This option expects a number following the '-d'. Like options that
  17604. expect filenames, the number may immediately follow the '-d' (old
  17605. standard) or constitute the whole of the command-line argument that
  17606. follows '-d' (GNU standard).
  17607. '-V (Virtualize Interpass Temporary File)'
  17608. Some other assemblers use a temporary file. This option commanded
  17609. them to keep the information in active memory rather than in a disk
  17610. file. 'as' always does this, so this option is redundant.
  17611. '-J (JUMPify Longer Branches)'
  17612. Many 32-bit computers permit a variety of branch instructions to do
  17613. the same job. Some of these instructions are short (and fast) but
  17614. have a limited range; others are long (and slow) but can branch
  17615. anywhere in virtual memory. Often there are 3 flavors of branch:
  17616. short, medium and long. Some other assemblers would emit short and
  17617. medium branches, unless told by this option to emit short and long
  17618. branches.
  17619. '-t (Temporary File Directory)'
  17620. Some other assemblers may use a temporary file, and this option
  17621. takes a filename being the directory to site the temporary file.
  17622. Since 'as' does not use a temporary disk file, this option makes no
  17623. difference. '-t' needs exactly one filename.
  17624. The Vax version of the assembler accepts additional options when
  17625. compiled for VMS:
  17626. '-h N'
  17627. External symbol or section (used for global variables) names are
  17628. not case sensitive on VAX/VMS and always mapped to upper case.
  17629. This is contrary to the C language definition which explicitly
  17630. distinguishes upper and lower case. To implement a standard
  17631. conforming C compiler, names must be changed (mapped) to preserve
  17632. the case information. The default mapping is to convert all lower
  17633. case characters to uppercase and adding an underscore followed by a
  17634. 6 digit hex value, representing a 24 digit binary value. The one
  17635. digits in the binary value represent which characters are uppercase
  17636. in the original symbol name.
  17637. The '-h N' option determines how we map names. This takes several
  17638. values. No '-h' switch at all allows case hacking as described
  17639. above. A value of zero ('-h0') implies names should be upper case,
  17640. and inhibits the case hack. A value of 2 ('-h2') implies names
  17641. should be all lower case, with no case hack. A value of 3 ('-h3')
  17642. implies that case should be preserved. The value 1 is unused. The
  17643. '-H' option directs 'as' to display every mapped symbol during
  17644. assembly.
  17645. Symbols whose names include a dollar sign '$' are exceptions to the
  17646. general name mapping. These symbols are normally only used to
  17647. reference VMS library names. Such symbols are always mapped to
  17648. upper case.
  17649. '-+'
  17650. The '-+' option causes 'as' to truncate any symbol name larger than
  17651. 31 characters. The '-+' option also prevents some code following
  17652. the '_main' symbol normally added to make the object file
  17653. compatible with Vax-11 "C".
  17654. '-1'
  17655. This option is ignored for backward compatibility with 'as' version
  17656. 1.x.
  17657. '-H'
  17658. The '-H' option causes 'as' to print every symbol which was changed
  17659. by case mapping.
  17660. 
  17661. File: as.info, Node: VAX-float, Next: VAX-directives, Prev: VAX-Opts, Up: Vax-Dependent
  17662. 9.50.2 VAX Floating Point
  17663. -------------------------
  17664. Conversion of flonums to floating point is correct, and compatible with
  17665. previous assemblers. Rounding is towards zero if the remainder is
  17666. exactly half the least significant bit.
  17667. 'D', 'F', 'G' and 'H' floating point formats are understood.
  17668. Immediate floating literals (_e.g._ 'S`$6.9') are rendered
  17669. correctly. Again, rounding is towards zero in the boundary case.
  17670. The '.float' directive produces 'f' format numbers. The '.double'
  17671. directive produces 'd' format numbers.
  17672. 
  17673. File: as.info, Node: VAX-directives, Next: VAX-opcodes, Prev: VAX-float, Up: Vax-Dependent
  17674. 9.50.3 Vax Machine Directives
  17675. -----------------------------
  17676. The Vax version of the assembler supports four directives for generating
  17677. Vax floating point constants. They are described in the table below.
  17678. '.dfloat'
  17679. This expects zero or more flonums, separated by commas, and
  17680. assembles Vax 'd' format 64-bit floating point constants.
  17681. '.ffloat'
  17682. This expects zero or more flonums, separated by commas, and
  17683. assembles Vax 'f' format 32-bit floating point constants.
  17684. '.gfloat'
  17685. This expects zero or more flonums, separated by commas, and
  17686. assembles Vax 'g' format 64-bit floating point constants.
  17687. '.hfloat'
  17688. This expects zero or more flonums, separated by commas, and
  17689. assembles Vax 'h' format 128-bit floating point constants.
  17690. 
  17691. File: as.info, Node: VAX-opcodes, Next: VAX-branch, Prev: VAX-directives, Up: Vax-Dependent
  17692. 9.50.4 VAX Opcodes
  17693. ------------------
  17694. All DEC mnemonics are supported. Beware that 'case...' instructions
  17695. have exactly 3 operands. The dispatch table that follows the 'case...'
  17696. instruction should be made with '.word' statements. This is compatible
  17697. with all unix assemblers we know of.
  17698. 
  17699. File: as.info, Node: VAX-branch, Next: VAX-operands, Prev: VAX-opcodes, Up: Vax-Dependent
  17700. 9.50.5 VAX Branch Improvement
  17701. -----------------------------
  17702. Certain pseudo opcodes are permitted. They are for branch instructions.
  17703. They expand to the shortest branch instruction that reaches the target.
  17704. Generally these mnemonics are made by substituting 'j' for 'b' at the
  17705. start of a DEC mnemonic. This feature is included both for
  17706. compatibility and to help compilers. If you do not need this feature,
  17707. avoid these opcodes. Here are the mnemonics, and the code they can
  17708. expand into.
  17709. 'jbsb'
  17710. 'Jsb' is already an instruction mnemonic, so we chose 'jbsb'.
  17711. (byte displacement)
  17712. 'bsbb ...'
  17713. (word displacement)
  17714. 'bsbw ...'
  17715. (long displacement)
  17716. 'jsb ...'
  17717. 'jbr'
  17718. 'jr'
  17719. Unconditional branch.
  17720. (byte displacement)
  17721. 'brb ...'
  17722. (word displacement)
  17723. 'brw ...'
  17724. (long displacement)
  17725. 'jmp ...'
  17726. 'jCOND'
  17727. COND may be any one of the conditional branches 'neq', 'nequ',
  17728. 'eql', 'eqlu', 'gtr', 'geq', 'lss', 'gtru', 'lequ', 'vc', 'vs',
  17729. 'gequ', 'cc', 'lssu', 'cs'. COND may also be one of the bit tests
  17730. 'bs', 'bc', 'bss', 'bcs', 'bsc', 'bcc', 'bssi', 'bcci', 'lbs',
  17731. 'lbc'. NOTCOND is the opposite condition to COND.
  17732. (byte displacement)
  17733. 'bCOND ...'
  17734. (word displacement)
  17735. 'bNOTCOND foo ; brw ... ; foo:'
  17736. (long displacement)
  17737. 'bNOTCOND foo ; jmp ... ; foo:'
  17738. 'jacbX'
  17739. X may be one of 'b d f g h l w'.
  17740. (word displacement)
  17741. 'OPCODE ...'
  17742. (long displacement)
  17743. OPCODE ..., foo ;
  17744. brb bar ;
  17745. foo: jmp ... ;
  17746. bar:
  17747. 'jaobYYY'
  17748. YYY may be one of 'lss leq'.
  17749. 'jsobZZZ'
  17750. ZZZ may be one of 'geq gtr'.
  17751. (byte displacement)
  17752. 'OPCODE ...'
  17753. (word displacement)
  17754. OPCODE ..., foo ;
  17755. brb bar ;
  17756. foo: brw DESTINATION ;
  17757. bar:
  17758. (long displacement)
  17759. OPCODE ..., foo ;
  17760. brb bar ;
  17761. foo: jmp DESTINATION ;
  17762. bar:
  17763. 'aobleq'
  17764. 'aoblss'
  17765. 'sobgeq'
  17766. 'sobgtr'
  17767. (byte displacement)
  17768. 'OPCODE ...'
  17769. (word displacement)
  17770. OPCODE ..., foo ;
  17771. brb bar ;
  17772. foo: brw DESTINATION ;
  17773. bar:
  17774. (long displacement)
  17775. OPCODE ..., foo ;
  17776. brb bar ;
  17777. foo: jmp DESTINATION ;
  17778. bar:
  17779. 
  17780. File: as.info, Node: VAX-operands, Next: VAX-no, Prev: VAX-branch, Up: Vax-Dependent
  17781. 9.50.6 VAX Operands
  17782. -------------------
  17783. The immediate character is '$' for Unix compatibility, not '#' as DEC
  17784. writes it.
  17785. The indirect character is '*' for Unix compatibility, not '@' as DEC
  17786. writes it.
  17787. The displacement sizing character is '`' (an accent grave) for Unix
  17788. compatibility, not '^' as DEC writes it. The letter preceding '`' may
  17789. have either case. 'G' is not understood, but all other letters ('b i l
  17790. s w') are understood.
  17791. Register names understood are 'r0 r1 r2 ... r15 ap fp sp pc'. Upper
  17792. and lower case letters are equivalent.
  17793. For instance
  17794. tstb *w`$4(r5)
  17795. Any expression is permitted in an operand. Operands are comma
  17796. separated.
  17797. 
  17798. File: as.info, Node: VAX-no, Next: VAX-Syntax, Prev: VAX-operands, Up: Vax-Dependent
  17799. 9.50.7 Not Supported on VAX
  17800. ---------------------------
  17801. Vax bit fields can not be assembled with 'as'. Someone can add the
  17802. required code if they really need it.
  17803. 
  17804. File: as.info, Node: VAX-Syntax, Prev: VAX-no, Up: Vax-Dependent
  17805. 9.50.8 VAX Syntax
  17806. -----------------
  17807. * Menu:
  17808. * VAX-Chars:: Special Characters
  17809. 
  17810. File: as.info, Node: VAX-Chars, Up: VAX-Syntax
  17811. 9.50.8.1 Special Characters
  17812. ...........................
  17813. The presence of a '#' appearing anywhere on a line indicates the start
  17814. of a comment that extends to the end of that line.
  17815. If a '#' appears as the first character of a line then the whole line
  17816. is treated as a comment, but in this case the line can also be a logical
  17817. line number directive (*note Comments::) or a preprocessor control
  17818. command (*note Preprocessing::).
  17819. The ';' character can be used to separate statements on the same
  17820. line.
  17821. 
  17822. File: as.info, Node: Visium-Dependent, Next: WebAssembly-Dependent, Prev: Vax-Dependent, Up: Machine Dependencies
  17823. 9.51 Visium Dependent Features
  17824. ==============================
  17825. * Menu:
  17826. * Visium Options:: Options
  17827. * Visium Syntax:: Syntax
  17828. * Visium Opcodes:: Opcodes
  17829. 
  17830. File: as.info, Node: Visium Options, Next: Visium Syntax, Up: Visium-Dependent
  17831. 9.51.1 Options
  17832. --------------
  17833. The Visium assembler implements one machine-specific option:
  17834. '-mtune=ARCH'
  17835. This option specifies the target architecture. If an attempt is
  17836. made to assemble an instruction that will not execute on the target
  17837. architecture, the assembler will issue an error message.
  17838. The following names are recognized: 'mcm24' 'mcm' 'gr5' 'gr6'
  17839. 
  17840. File: as.info, Node: Visium Syntax, Next: Visium Opcodes, Prev: Visium Options, Up: Visium-Dependent
  17841. 9.51.2 Syntax
  17842. -------------
  17843. * Menu:
  17844. * Visium Characters:: Special Characters
  17845. * Visium Registers:: Register Names
  17846. 
  17847. File: as.info, Node: Visium Characters, Next: Visium Registers, Up: Visium Syntax
  17848. 9.51.2.1 Special Characters
  17849. ...........................
  17850. Line comments are introduced either by the '!' character or by the ';'
  17851. character appearing anywhere on a line.
  17852. A hash character ('#') as the first character on a line also marks
  17853. the start of a line comment, but in this case it could also be a logical
  17854. line number directive (*note Comments::) or a preprocessor control
  17855. command (*note Preprocessing::).
  17856. The Visium assembler does not currently support a line separator
  17857. character.
  17858. 
  17859. File: as.info, Node: Visium Registers, Prev: Visium Characters, Up: Visium Syntax
  17860. 9.51.2.2 Register Names
  17861. .......................
  17862. Registers can be specified either by using their canonical mnemonic
  17863. names or by using their alias if they have one, for example 'sp'.
  17864. 
  17865. File: as.info, Node: Visium Opcodes, Prev: Visium Syntax, Up: Visium-Dependent
  17866. 9.51.3 Opcodes
  17867. --------------
  17868. All the standard opcodes of the architecture are implemented, along with
  17869. the following three pseudo-instructions: 'cmp', 'cmpc', 'move'.
  17870. In addition, the following two illegal opcodes are implemented and
  17871. used by the simulation:
  17872. stop 5-bit immediate, SourceA
  17873. trace 5-bit immediate, SourceA
  17874. 
  17875. File: as.info, Node: WebAssembly-Dependent, Next: XGATE-Dependent, Prev: Visium-Dependent, Up: Machine Dependencies
  17876. 9.52 WebAssembly Dependent Features
  17877. ===================================
  17878. * Menu:
  17879. * WebAssembly-Notes:: Notes
  17880. * WebAssembly-Syntax:: Syntax
  17881. * WebAssembly-Floating-Point:: Floating Point
  17882. * WebAssembly-Opcodes:: Opcodes
  17883. * WebAssembly-module-layout:: Module Layout
  17884. 
  17885. File: as.info, Node: WebAssembly-Notes, Next: WebAssembly-Syntax, Up: WebAssembly-Dependent
  17886. 9.52.1 Notes
  17887. ------------
  17888. While WebAssembly provides its own module format for executables, this
  17889. documentation describes how to use 'as' to produce intermediate ELF
  17890. object format files.
  17891. 
  17892. File: as.info, Node: WebAssembly-Syntax, Next: WebAssembly-Floating-Point, Prev: WebAssembly-Notes, Up: WebAssembly-Dependent
  17893. 9.52.2 Syntax
  17894. -------------
  17895. The assembler syntax directly encodes sequences of opcodes as defined in
  17896. the WebAssembly binary encoding specification at
  17897. https://github.com/webassembly/spec/BinaryEncoding.md. Structured
  17898. sexp-style expressions are not supported as input.
  17899. * Menu:
  17900. * WebAssembly-Chars:: Special Characters
  17901. * WebAssembly-Relocs:: Relocations
  17902. * WebAssembly-Signatures:: Signatures
  17903. 
  17904. File: as.info, Node: WebAssembly-Chars, Next: WebAssembly-Relocs, Up: WebAssembly-Syntax
  17905. 9.52.2.1 Special Characters
  17906. ...........................
  17907. '#' and ';' are the line comment characters. Note that if '#' is the
  17908. first character on a line then it can also be a logical line number
  17909. directive (*note Comments::) or a preprocessor control command (*note
  17910. Preprocessing::).
  17911. 
  17912. File: as.info, Node: WebAssembly-Relocs, Next: WebAssembly-Signatures, Prev: WebAssembly-Chars, Up: WebAssembly-Syntax
  17913. 9.52.2.2 Relocations
  17914. ....................
  17915. Special relocations are available by using the '@PLT', '@GOT', or '@GOT'
  17916. suffixes after a constant expression, which correspond to the
  17917. R_ASMJS_LEB128_PLT, R_ASMJS_LEB128_GOT, and R_ASMJS_LEB128_GOT_CODE
  17918. relocations, respectively.
  17919. The '@PLT' suffix is followed by a symbol name in braces; the symbol
  17920. value is used to determine the function signature for which a PLT stub
  17921. is generated. Currently, the symbol _name_ is parsed from its last 'F'
  17922. character to determine the argument count of the function, which is also
  17923. necessary for generating a PLT stub.
  17924. 
  17925. File: as.info, Node: WebAssembly-Signatures, Prev: WebAssembly-Relocs, Up: WebAssembly-Syntax
  17926. 9.52.2.3 Signatures
  17927. ...................
  17928. Function signatures are specified with the 'signature' pseudo-opcode,
  17929. followed by a simple function signature imitating a C++-mangled function
  17930. type: 'F' followed by an optional 'v', then a sequence of 'i', 'l', 'f',
  17931. and 'd' characters to mark i32, i64, f32, and f64 parameters,
  17932. respectively; followed by a final 'E' to mark the end of the function
  17933. signature.
  17934. 
  17935. File: as.info, Node: WebAssembly-Floating-Point, Next: WebAssembly-Opcodes, Prev: WebAssembly-Syntax, Up: WebAssembly-Dependent
  17936. 9.52.3 Floating Point
  17937. ---------------------
  17938. WebAssembly uses little-endian IEEE floating-point numbers.
  17939. 
  17940. File: as.info, Node: WebAssembly-Opcodes, Next: WebAssembly-module-layout, Prev: WebAssembly-Floating-Point, Up: WebAssembly-Dependent
  17941. 9.52.4 Regular Opcodes
  17942. ----------------------
  17943. Ordinary instructions are encoded with the WebAssembly mnemonics as
  17944. listed at:
  17945. <https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md>.
  17946. Opcodes are written directly in the order in which they are encoded,
  17947. without going through an intermediate sexp-style expression as in the
  17948. 'was' format.
  17949. For "typed" opcodes (block, if, etc.), the type of the block is
  17950. specified in square brackets following the opcode: 'if[i]', 'if[]'.
  17951. 
  17952. File: as.info, Node: WebAssembly-module-layout, Prev: WebAssembly-Opcodes, Up: WebAssembly-Dependent
  17953. 9.52.5 WebAssembly Module Layout
  17954. --------------------------------
  17955. 'as' will only produce ELF output, not a valid WebAssembly module. It
  17956. is possible to make 'as' produce output in a single ELF section which
  17957. becomes a valid WebAssembly module, but a linker script to do so may be
  17958. preferrable, as it doesn't require running the entire module through the
  17959. assembler at once.
  17960. 
  17961. File: as.info, Node: XGATE-Dependent, Next: XSTORMY16-Dependent, Prev: WebAssembly-Dependent, Up: Machine Dependencies
  17962. 9.53 XGATE Dependent Features
  17963. =============================
  17964. * Menu:
  17965. * XGATE-Opts:: XGATE Options
  17966. * XGATE-Syntax:: Syntax
  17967. * XGATE-Directives:: Assembler Directives
  17968. * XGATE-Float:: Floating Point
  17969. * XGATE-opcodes:: Opcodes
  17970. 
  17971. File: as.info, Node: XGATE-Opts, Next: XGATE-Syntax, Up: XGATE-Dependent
  17972. 9.53.1 XGATE Options
  17973. --------------------
  17974. The Freescale XGATE version of 'as' has a few machine dependent options.
  17975. '-mshort'
  17976. This option controls the ABI and indicates to use a 16-bit integer
  17977. ABI. It has no effect on the assembled instructions. This is the
  17978. default.
  17979. '-mlong'
  17980. This option controls the ABI and indicates to use a 32-bit integer
  17981. ABI.
  17982. '-mshort-double'
  17983. This option controls the ABI and indicates to use a 32-bit float
  17984. ABI. This is the default.
  17985. '-mlong-double'
  17986. This option controls the ABI and indicates to use a 64-bit float
  17987. ABI.
  17988. '--print-insn-syntax'
  17989. You can use the '--print-insn-syntax' option to obtain the syntax
  17990. description of the instruction when an error is detected.
  17991. '--print-opcodes'
  17992. The '--print-opcodes' option prints the list of all the
  17993. instructions with their syntax. Once the list is printed 'as'
  17994. exits.
  17995. 
  17996. File: as.info, Node: XGATE-Syntax, Next: XGATE-Directives, Prev: XGATE-Opts, Up: XGATE-Dependent
  17997. 9.53.2 Syntax
  17998. -------------
  17999. In XGATE RISC syntax, the instruction name comes first and it may be
  18000. followed by up to three operands. Operands are separated by commas
  18001. (','). 'as' will complain if too many operands are specified for a
  18002. given instruction. The same will happen if you specified too few
  18003. operands.
  18004. nop
  18005. ldl #23
  18006. CMP R1, R2
  18007. The presence of a ';' character or a '!' character anywhere on a line
  18008. indicates the start of a comment that extends to the end of that line.
  18009. A '*' or a '#' character at the start of a line also introduces a
  18010. line comment, but these characters do not work elsewhere on the line.
  18011. If the first character of the line is a '#' then as well as starting a
  18012. comment, the line could also be logical line number directive (*note
  18013. Comments::) or a preprocessor control command (*note Preprocessing::).
  18014. The XGATE assembler does not currently support a line separator
  18015. character.
  18016. The following addressing modes are understood for XGATE:
  18017. "Inherent"
  18018. ''
  18019. "Immediate 3 Bit Wide"
  18020. '#NUMBER'
  18021. "Immediate 4 Bit Wide"
  18022. '#NUMBER'
  18023. "Immediate 8 Bit Wide"
  18024. '#NUMBER'
  18025. "Monadic Addressing"
  18026. 'REG'
  18027. "Dyadic Addressing"
  18028. 'REG, REG'
  18029. "Triadic Addressing"
  18030. 'REG, REG, REG'
  18031. "Relative Addressing 9 Bit Wide"
  18032. '*SYMBOL'
  18033. "Relative Addressing 10 Bit Wide"
  18034. '*SYMBOL'
  18035. "Index Register plus Immediate Offset"
  18036. 'REG, (REG, #NUMBER)'
  18037. "Index Register plus Register Offset"
  18038. 'REG, REG, REG'
  18039. "Index Register plus Register Offset with Post-increment"
  18040. 'REG, REG, REG+'
  18041. "Index Register plus Register Offset with Pre-decrement"
  18042. 'REG, REG, -REG'
  18043. The register can be either 'R0', 'R1', 'R2', 'R3', 'R4', 'R5', 'R6'
  18044. or 'R7'.
  18045. Convene macro opcodes to deal with 16-bit values have been added.
  18046. "Immediate 16 Bit Wide"
  18047. '#NUMBER', or '*SYMBOL'
  18048. For example:
  18049. ldw R1, #1024
  18050. ldw R3, timer
  18051. ldw R1, (R1, #0)
  18052. COM R1
  18053. stw R2, (R1, #0)
  18054. 
  18055. File: as.info, Node: XGATE-Directives, Next: XGATE-Float, Prev: XGATE-Syntax, Up: XGATE-Dependent
  18056. 9.53.3 Assembler Directives
  18057. ---------------------------
  18058. The XGATE version of 'as' have the following specific assembler
  18059. directives:
  18060. 
  18061. File: as.info, Node: XGATE-Float, Next: XGATE-opcodes, Prev: XGATE-Directives, Up: XGATE-Dependent
  18062. 9.53.4 Floating Point
  18063. ---------------------
  18064. Packed decimal (P) format floating literals are not supported(yet).
  18065. The floating point formats generated by directives are these.
  18066. '.float'
  18067. 'Single' precision floating point constants.
  18068. '.double'
  18069. 'Double' precision floating point constants.
  18070. '.extend'
  18071. '.ldouble'
  18072. 'Extended' precision ('long double') floating point constants.
  18073. 
  18074. File: as.info, Node: XGATE-opcodes, Prev: XGATE-Float, Up: XGATE-Dependent
  18075. 9.53.5 Opcodes
  18076. --------------
  18077. 
  18078. File: as.info, Node: XSTORMY16-Dependent, Next: Xtensa-Dependent, Prev: XGATE-Dependent, Up: Machine Dependencies
  18079. 9.54 XStormy16 Dependent Features
  18080. =================================
  18081. * Menu:
  18082. * XStormy16 Syntax:: Syntax
  18083. * XStormy16 Directives:: Machine Directives
  18084. * XStormy16 Opcodes:: Pseudo-Opcodes
  18085. 
  18086. File: as.info, Node: XStormy16 Syntax, Next: XStormy16 Directives, Up: XSTORMY16-Dependent
  18087. 9.54.1 Syntax
  18088. -------------
  18089. * Menu:
  18090. * XStormy16-Chars:: Special Characters
  18091. 
  18092. File: as.info, Node: XStormy16-Chars, Up: XStormy16 Syntax
  18093. 9.54.1.1 Special Characters
  18094. ...........................
  18095. '#' is the line comment character. If a '#' appears as the first
  18096. character of a line, the whole line is treated as a comment, but in this
  18097. case the line can also be a logical line number directive (*note
  18098. Comments::) or a preprocessor control command (*note Preprocessing::).
  18099. A semicolon (';') can be used to start a comment that extends from
  18100. wherever the character appears on the line up to the end of the line.
  18101. The '|' character can be used to separate statements on the same
  18102. line.
  18103. 
  18104. File: as.info, Node: XStormy16 Directives, Next: XStormy16 Opcodes, Prev: XStormy16 Syntax, Up: XSTORMY16-Dependent
  18105. 9.54.2 XStormy16 Machine Directives
  18106. -----------------------------------
  18107. '.16bit_pointers'
  18108. Like the '--16bit-pointers' command-line option this directive
  18109. indicates that the assembly code makes use of 16-bit pointers.
  18110. '.32bit_pointers'
  18111. Like the '--32bit-pointers' command-line option this directive
  18112. indicates that the assembly code makes use of 32-bit pointers.
  18113. '.no_pointers'
  18114. Like the '--no-pointers' command-line option this directive
  18115. indicates that the assembly code does not makes use pointers.
  18116. 
  18117. File: as.info, Node: XStormy16 Opcodes, Prev: XStormy16 Directives, Up: XSTORMY16-Dependent
  18118. 9.54.3 XStormy16 Pseudo-Opcodes
  18119. -------------------------------
  18120. 'as' implements all the standard XStormy16 opcodes.
  18121. 'as' also implements the following pseudo ops:
  18122. '@lo()'
  18123. Computes the lower 16 bits of the given expression and stores it
  18124. into the immediate operand field of the given instruction. For
  18125. example:
  18126. 'add r6, @lo(here - there)'
  18127. computes the difference between the address of labels 'here' and
  18128. 'there', takes the lower 16 bits of this difference and adds it to
  18129. register 6.
  18130. '@hi()'
  18131. Computes the higher 16 bits of the given expression and stores it
  18132. into the immediate operand field of the given instruction. For
  18133. example:
  18134. 'addc r7, @hi(here - there)'
  18135. computes the difference between the address of labels 'here' and
  18136. 'there', takes the upper 16 bits of this difference, shifts it down
  18137. 16 bits and then adds it, along with the carry bit, to the value in
  18138. register 7.
  18139. 
  18140. File: as.info, Node: Xtensa-Dependent, Next: Z80-Dependent, Prev: XSTORMY16-Dependent, Up: Machine Dependencies
  18141. 9.55 Xtensa Dependent Features
  18142. ==============================
  18143. This chapter covers features of the GNU assembler that are specific to
  18144. the Xtensa architecture. For details about the Xtensa instruction set,
  18145. please consult the 'Xtensa Instruction Set Architecture (ISA) Reference
  18146. Manual'.
  18147. * Menu:
  18148. * Xtensa Options:: Command-line Options.
  18149. * Xtensa Syntax:: Assembler Syntax for Xtensa Processors.
  18150. * Xtensa Optimizations:: Assembler Optimizations.
  18151. * Xtensa Relaxation:: Other Automatic Transformations.
  18152. * Xtensa Directives:: Directives for Xtensa Processors.
  18153. 
  18154. File: as.info, Node: Xtensa Options, Next: Xtensa Syntax, Up: Xtensa-Dependent
  18155. 9.55.1 Command-line Options
  18156. ---------------------------
  18157. '--text-section-literals | --no-text-section-literals'
  18158. Control the treatment of literal pools. The default is
  18159. '--no-text-section-literals', which places literals in separate
  18160. sections in the output file. This allows the literal pool to be
  18161. placed in a data RAM/ROM. With '--text-section-literals', the
  18162. literals are interspersed in the text section in order to keep them
  18163. as close as possible to their references. This may be necessary
  18164. for large assembly files, where the literals would otherwise be out
  18165. of range of the 'L32R' instructions in the text section. Literals
  18166. are grouped into pools following '.literal_position' directives or
  18167. preceding 'ENTRY' instructions. These options only affect literals
  18168. referenced via PC-relative 'L32R' instructions; literals for
  18169. absolute mode 'L32R' instructions are handled separately. *Note
  18170. literal: Literal Directive.
  18171. '--auto-litpools | --no-auto-litpools'
  18172. Control the treatment of literal pools. The default is
  18173. '--no-auto-litpools', which in the absence of
  18174. '--text-section-literals' places literals in separate sections in
  18175. the output file. This allows the literal pool to be placed in a
  18176. data RAM/ROM. With '--auto-litpools', the literals are interspersed
  18177. in the text section in order to keep them as close as possible to
  18178. their references, explicit '.literal_position' directives are not
  18179. required. This may be necessary for very large functions, where
  18180. single literal pool at the beginning of the function may not be
  18181. reachable by 'L32R' instructions at the end. These options only
  18182. affect literals referenced via PC-relative 'L32R' instructions;
  18183. literals for absolute mode 'L32R' instructions are handled
  18184. separately. When used together with '--text-section-literals',
  18185. '--auto-litpools' takes precedence. *Note literal: Literal
  18186. Directive.
  18187. '--absolute-literals | --no-absolute-literals'
  18188. Indicate to the assembler whether 'L32R' instructions use absolute
  18189. or PC-relative addressing. If the processor includes the absolute
  18190. addressing option, the default is to use absolute 'L32R'
  18191. relocations. Otherwise, only the PC-relative 'L32R' relocations
  18192. can be used.
  18193. '--target-align | --no-target-align'
  18194. Enable or disable automatic alignment to reduce branch penalties at
  18195. some expense in code size. *Note Automatic Instruction Alignment:
  18196. Xtensa Automatic Alignment. This optimization is enabled by
  18197. default. Note that the assembler will always align instructions
  18198. like 'LOOP' that have fixed alignment requirements.
  18199. '--longcalls | --no-longcalls'
  18200. Enable or disable transformation of call instructions to allow
  18201. calls across a greater range of addresses. *Note Function Call
  18202. Relaxation: Xtensa Call Relaxation. This option should be used
  18203. when call targets can potentially be out of range. It may degrade
  18204. both code size and performance, but the linker can generally
  18205. optimize away the unnecessary overhead when a call ends up within
  18206. range. The default is '--no-longcalls'.
  18207. '--transform | --no-transform'
  18208. Enable or disable all assembler transformations of Xtensa
  18209. instructions, including both relaxation and optimization. The
  18210. default is '--transform'; '--no-transform' should only be used in
  18211. the rare cases when the instructions must be exactly as specified
  18212. in the assembly source. Using '--no-transform' causes out of range
  18213. instruction operands to be errors.
  18214. '--rename-section OLDNAME=NEWNAME'
  18215. Rename the OLDNAME section to NEWNAME. This option can be used
  18216. multiple times to rename multiple sections.
  18217. '--trampolines | --no-trampolines'
  18218. Enable or disable transformation of jump instructions to allow
  18219. jumps across a greater range of addresses. *Note Jump Trampolines:
  18220. Xtensa Jump Relaxation. This option should be used when jump
  18221. targets can potentially be out of range. In the absence of such
  18222. jumps this option does not affect code size or performance. The
  18223. default is '--trampolines'.
  18224. 
  18225. File: as.info, Node: Xtensa Syntax, Next: Xtensa Optimizations, Prev: Xtensa Options, Up: Xtensa-Dependent
  18226. 9.55.2 Assembler Syntax
  18227. -----------------------
  18228. Block comments are delimited by '/*' and '*/'. End of line comments may
  18229. be introduced with either '#' or '//'.
  18230. If a '#' appears as the first character of a line then the whole line
  18231. is treated as a comment, but in this case the line could also be a
  18232. logical line number directive (*note Comments::) or a preprocessor
  18233. control command (*note Preprocessing::).
  18234. Instructions consist of a leading opcode or macro name followed by
  18235. whitespace and an optional comma-separated list of operands:
  18236. OPCODE [OPERAND, ...]
  18237. Instructions must be separated by a newline or semicolon (';').
  18238. FLIX instructions, which bundle multiple opcodes together in a single
  18239. instruction, are specified by enclosing the bundled opcodes inside
  18240. braces:
  18241. {
  18242. [FORMAT]
  18243. OPCODE0 [OPERANDS]
  18244. OPCODE1 [OPERANDS]
  18245. OPCODE2 [OPERANDS]
  18246. ...
  18247. }
  18248. The opcodes in a FLIX instruction are listed in the same order as the
  18249. corresponding instruction slots in the TIE format declaration.
  18250. Directives and labels are not allowed inside the braces of a FLIX
  18251. instruction. A particular TIE format name can optionally be specified
  18252. immediately after the opening brace, but this is usually unnecessary.
  18253. The assembler will automatically search for a format that can encode the
  18254. specified opcodes, so the format name need only be specified in rare
  18255. cases where there is more than one applicable format and where it
  18256. matters which of those formats is used. A FLIX instruction can also be
  18257. specified on a single line by separating the opcodes with semicolons:
  18258. { [FORMAT;] OPCODE0 [OPERANDS]; OPCODE1 [OPERANDS]; OPCODE2 [OPERANDS]; ... }
  18259. If an opcode can only be encoded in a FLIX instruction but is not
  18260. specified as part of a FLIX bundle, the assembler will choose the
  18261. smallest format where the opcode can be encoded and will fill unused
  18262. instruction slots with no-ops.
  18263. * Menu:
  18264. * Xtensa Opcodes:: Opcode Naming Conventions.
  18265. * Xtensa Registers:: Register Naming.
  18266. 
  18267. File: as.info, Node: Xtensa Opcodes, Next: Xtensa Registers, Up: Xtensa Syntax
  18268. 9.55.2.1 Opcode Names
  18269. .....................
  18270. See the 'Xtensa Instruction Set Architecture (ISA) Reference Manual' for
  18271. a complete list of opcodes and descriptions of their semantics.
  18272. If an opcode name is prefixed with an underscore character ('_'),
  18273. 'as' will not transform that instruction in any way. The underscore
  18274. prefix disables both optimization (*note Xtensa Optimizations: Xtensa
  18275. Optimizations.) and relaxation (*note Xtensa Relaxation: Xtensa
  18276. Relaxation.) for that particular instruction. Only use the underscore
  18277. prefix when it is essential to select the exact opcode produced by the
  18278. assembler. Using this feature unnecessarily makes the code less
  18279. efficient by disabling assembler optimization and less flexible by
  18280. disabling relaxation.
  18281. Note that this special handling of underscore prefixes only applies
  18282. to Xtensa opcodes, not to either built-in macros or user-defined macros.
  18283. When an underscore prefix is used with a macro (e.g., '_MOV'), it refers
  18284. to a different macro. The assembler generally provides built-in macros
  18285. both with and without the underscore prefix, where the underscore
  18286. versions behave as if the underscore carries through to the instructions
  18287. in the macros. For example, '_MOV' may expand to '_MOV.N'.
  18288. The underscore prefix only applies to individual instructions, not to
  18289. series of instructions. For example, if a series of instructions have
  18290. underscore prefixes, the assembler will not transform the individual
  18291. instructions, but it may insert other instructions between them (e.g.,
  18292. to align a 'LOOP' instruction). To prevent the assembler from modifying
  18293. a series of instructions as a whole, use the 'no-transform' directive.
  18294. *Note transform: Transform Directive.
  18295. 
  18296. File: as.info, Node: Xtensa Registers, Prev: Xtensa Opcodes, Up: Xtensa Syntax
  18297. 9.55.2.2 Register Names
  18298. .......................
  18299. The assembly syntax for a register file entry is the "short" name for a
  18300. TIE register file followed by the index into that register file. For
  18301. example, the general-purpose 'AR' register file has a short name of 'a',
  18302. so these registers are named 'a0'...'a15'. As a special feature, 'sp'
  18303. is also supported as a synonym for 'a1'. Additional registers may be
  18304. added by processor configuration options and by designer-defined TIE
  18305. extensions. An initial '$' character is optional in all register names.
  18306. 
  18307. File: as.info, Node: Xtensa Optimizations, Next: Xtensa Relaxation, Prev: Xtensa Syntax, Up: Xtensa-Dependent
  18308. 9.55.3 Xtensa Optimizations
  18309. ---------------------------
  18310. The optimizations currently supported by 'as' are generation of density
  18311. instructions where appropriate and automatic branch target alignment.
  18312. * Menu:
  18313. * Density Instructions:: Using Density Instructions.
  18314. * Xtensa Automatic Alignment:: Automatic Instruction Alignment.
  18315. 
  18316. File: as.info, Node: Density Instructions, Next: Xtensa Automatic Alignment, Up: Xtensa Optimizations
  18317. 9.55.3.1 Using Density Instructions
  18318. ...................................
  18319. The Xtensa instruction set has a code density option that provides
  18320. 16-bit versions of some of the most commonly used opcodes. Use of these
  18321. opcodes can significantly reduce code size. When possible, the
  18322. assembler automatically translates instructions from the core Xtensa
  18323. instruction set into equivalent instructions from the Xtensa code
  18324. density option. This translation can be disabled by using underscore
  18325. prefixes (*note Opcode Names: Xtensa Opcodes.), by using the
  18326. '--no-transform' command-line option (*note Command Line Options: Xtensa
  18327. Options.), or by using the 'no-transform' directive (*note transform:
  18328. Transform Directive.).
  18329. It is a good idea _not_ to use the density instructions directly.
  18330. The assembler will automatically select dense instructions where
  18331. possible. If you later need to use an Xtensa processor without the code
  18332. density option, the same assembly code will then work without
  18333. modification.
  18334. 
  18335. File: as.info, Node: Xtensa Automatic Alignment, Prev: Density Instructions, Up: Xtensa Optimizations
  18336. 9.55.3.2 Automatic Instruction Alignment
  18337. ........................................
  18338. The Xtensa assembler will automatically align certain instructions, both
  18339. to optimize performance and to satisfy architectural requirements.
  18340. As an optimization to improve performance, the assembler attempts to
  18341. align branch targets so they do not cross instruction fetch boundaries.
  18342. (Xtensa processors can be configured with either 32-bit or 64-bit
  18343. instruction fetch widths.) An instruction immediately following a call
  18344. is treated as a branch target in this context, because it will be the
  18345. target of a return from the call. This alignment has the potential to
  18346. reduce branch penalties at some expense in code size. This optimization
  18347. is enabled by default. You can disable it with the '--no-target-align'
  18348. command-line option (*note Command-line Options: Xtensa Options.).
  18349. The target alignment optimization is done without adding instructions
  18350. that could increase the execution time of the program. If there are
  18351. density instructions in the code preceding a target, the assembler can
  18352. change the target alignment by widening some of those instructions to
  18353. the equivalent 24-bit instructions. Extra bytes of padding can be
  18354. inserted immediately following unconditional jump and return
  18355. instructions. This approach is usually successful in aligning many, but
  18356. not all, branch targets.
  18357. The 'LOOP' family of instructions must be aligned such that the first
  18358. instruction in the loop body does not cross an instruction fetch
  18359. boundary (e.g., with a 32-bit fetch width, a 'LOOP' instruction must be
  18360. on either a 1 or 2 mod 4 byte boundary). The assembler knows about this
  18361. restriction and inserts the minimal number of 2 or 3 byte no-op
  18362. instructions to satisfy it. When no-op instructions are added, any
  18363. label immediately preceding the original loop will be moved in order to
  18364. refer to the loop instruction, not the newly generated no-op
  18365. instruction. To preserve binary compatibility across processors with
  18366. different fetch widths, the assembler conservatively assumes a 32-bit
  18367. fetch width when aligning 'LOOP' instructions (except if the first
  18368. instruction in the loop is a 64-bit instruction).
  18369. Previous versions of the assembler automatically aligned 'ENTRY'
  18370. instructions to 4-byte boundaries, but that alignment is now the
  18371. programmer's responsibility.
  18372. 
  18373. File: as.info, Node: Xtensa Relaxation, Next: Xtensa Directives, Prev: Xtensa Optimizations, Up: Xtensa-Dependent
  18374. 9.55.4 Xtensa Relaxation
  18375. ------------------------
  18376. When an instruction operand is outside the range allowed for that
  18377. particular instruction field, 'as' can transform the code to use a
  18378. functionally-equivalent instruction or sequence of instructions. This
  18379. process is known as "relaxation". This is typically done for branch
  18380. instructions because the distance of the branch targets is not known
  18381. until assembly-time. The Xtensa assembler offers branch relaxation and
  18382. also extends this concept to function calls, 'MOVI' instructions and
  18383. other instructions with immediate fields.
  18384. * Menu:
  18385. * Xtensa Branch Relaxation:: Relaxation of Branches.
  18386. * Xtensa Call Relaxation:: Relaxation of Function Calls.
  18387. * Xtensa Jump Relaxation:: Relaxation of Jumps.
  18388. * Xtensa Immediate Relaxation:: Relaxation of other Immediate Fields.
  18389. 
  18390. File: as.info, Node: Xtensa Branch Relaxation, Next: Xtensa Call Relaxation, Up: Xtensa Relaxation
  18391. 9.55.4.1 Conditional Branch Relaxation
  18392. ......................................
  18393. When the target of a branch is too far away from the branch itself,
  18394. i.e., when the offset from the branch to the target is too large to fit
  18395. in the immediate field of the branch instruction, it may be necessary to
  18396. replace the branch with a branch around a jump. For example,
  18397. beqz a2, L
  18398. may result in:
  18399. bnez.n a2, M
  18400. j L
  18401. M:
  18402. (The 'BNEZ.N' instruction would be used in this example only if the
  18403. density option is available. Otherwise, 'BNEZ' would be used.)
  18404. This relaxation works well because the unconditional jump instruction
  18405. has a much larger offset range than the various conditional branches.
  18406. However, an error will occur if a branch target is beyond the range of a
  18407. jump instruction. 'as' cannot relax unconditional jumps. Similarly, an
  18408. error will occur if the original input contains an unconditional jump to
  18409. a target that is out of range.
  18410. Branch relaxation is enabled by default. It can be disabled by using
  18411. underscore prefixes (*note Opcode Names: Xtensa Opcodes.), the
  18412. '--no-transform' command-line option (*note Command-line Options: Xtensa
  18413. Options.), or the 'no-transform' directive (*note transform: Transform
  18414. Directive.).
  18415. 
  18416. File: as.info, Node: Xtensa Call Relaxation, Next: Xtensa Jump Relaxation, Prev: Xtensa Branch Relaxation, Up: Xtensa Relaxation
  18417. 9.55.4.2 Function Call Relaxation
  18418. .................................
  18419. Function calls may require relaxation because the Xtensa immediate call
  18420. instructions ('CALL0', 'CALL4', 'CALL8' and 'CALL12') provide a
  18421. PC-relative offset of only 512 Kbytes in either direction. For larger
  18422. programs, it may be necessary to use indirect calls ('CALLX0', 'CALLX4',
  18423. 'CALLX8' and 'CALLX12') where the target address is specified in a
  18424. register. The Xtensa assembler can automatically relax immediate call
  18425. instructions into indirect call instructions. This relaxation is done
  18426. by loading the address of the called function into the callee's return
  18427. address register and then using a 'CALLX' instruction. So, for example:
  18428. call8 func
  18429. might be relaxed to:
  18430. .literal .L1, func
  18431. l32r a8, .L1
  18432. callx8 a8
  18433. Because the addresses of targets of function calls are not generally
  18434. known until link-time, the assembler must assume the worst and relax all
  18435. the calls to functions in other source files, not just those that really
  18436. will be out of range. The linker can recognize calls that were
  18437. unnecessarily relaxed, and it will remove the overhead introduced by the
  18438. assembler for those cases where direct calls are sufficient.
  18439. Call relaxation is disabled by default because it can have a negative
  18440. effect on both code size and performance, although the linker can
  18441. usually eliminate the unnecessary overhead. If a program is too large
  18442. and some of the calls are out of range, function call relaxation can be
  18443. enabled using the '--longcalls' command-line option or the 'longcalls'
  18444. directive (*note longcalls: Longcalls Directive.).
  18445. 
  18446. File: as.info, Node: Xtensa Jump Relaxation, Next: Xtensa Immediate Relaxation, Prev: Xtensa Call Relaxation, Up: Xtensa Relaxation
  18447. 9.55.4.3 Jump Relaxation
  18448. ........................
  18449. Jump instruction may require relaxation because the Xtensa jump
  18450. instruction ('J') provide a PC-relative offset of only 128 Kbytes in
  18451. either direction. One option is to use jump long ('J.L') instruction,
  18452. which depending on jump distance may be assembled as jump ('J') or
  18453. indirect jump ('JX'). However it needs a free register. When there's
  18454. no spare register it is possible to plant intermediate jump sites
  18455. (trampolines) between the jump instruction and its target. These sites
  18456. may be located in areas unreachable by normal code execution flow, in
  18457. that case they only contain intermediate jumps, or they may be inserted
  18458. in the middle of code block, in which case there's an additional jump
  18459. from the beginning of the trampoline to the instruction past its end.
  18460. So, for example:
  18461. j 1f
  18462. ...
  18463. retw
  18464. ...
  18465. mov a10, a2
  18466. call8 func
  18467. ...
  18468. 1:
  18469. ...
  18470. might be relaxed to:
  18471. j .L0_TR_1
  18472. ...
  18473. retw
  18474. .L0_TR_1:
  18475. j 1f
  18476. ...
  18477. mov a10, a2
  18478. call8 func
  18479. ...
  18480. 1:
  18481. ...
  18482. or to:
  18483. j .L0_TR_1
  18484. ...
  18485. retw
  18486. ...
  18487. mov a10, a2
  18488. j .L0_TR_0
  18489. .L0_TR_1:
  18490. j 1f
  18491. .L0_TR_0:
  18492. call8 func
  18493. ...
  18494. 1:
  18495. ...
  18496. The Xtensa assembler uses trampolines with jump around only when it
  18497. cannot find suitable unreachable trampoline. There may be multiple
  18498. trampolines between the jump instruction and its target.
  18499. This relaxation does not apply to jumps to undefined symbols,
  18500. assuming they will reach their targets once resolved.
  18501. Jump relaxation is enabled by default because it does not affect code
  18502. size or performance while the code itself is small. This relaxation may
  18503. be disabled completely with '--no-trampolines' or '--no-transform'
  18504. command-line options (*note Command-line Options: Xtensa Options.).
  18505. 
  18506. File: as.info, Node: Xtensa Immediate Relaxation, Prev: Xtensa Jump Relaxation, Up: Xtensa Relaxation
  18507. 9.55.4.4 Other Immediate Field Relaxation
  18508. .........................................
  18509. The assembler normally performs the following other relaxations. They
  18510. can be disabled by using underscore prefixes (*note Opcode Names: Xtensa
  18511. Opcodes.), the '--no-transform' command-line option (*note Command-line
  18512. Options: Xtensa Options.), or the 'no-transform' directive (*note
  18513. transform: Transform Directive.).
  18514. The 'MOVI' machine instruction can only materialize values in the
  18515. range from -2048 to 2047. Values outside this range are best
  18516. materialized with 'L32R' instructions. Thus:
  18517. movi a0, 100000
  18518. is assembled into the following machine code:
  18519. .literal .L1, 100000
  18520. l32r a0, .L1
  18521. The 'L8UI' machine instruction can only be used with immediate
  18522. offsets in the range from 0 to 255. The 'L16SI' and 'L16UI' machine
  18523. instructions can only be used with offsets from 0 to 510. The 'L32I'
  18524. machine instruction can only be used with offsets from 0 to 1020. A
  18525. load offset outside these ranges can be materialized with an 'L32R'
  18526. instruction if the destination register of the load is different than
  18527. the source address register. For example:
  18528. l32i a1, a0, 2040
  18529. is translated to:
  18530. .literal .L1, 2040
  18531. l32r a1, .L1
  18532. add a1, a0, a1
  18533. l32i a1, a1, 0
  18534. If the load destination and source address register are the same, an
  18535. out-of-range offset causes an error.
  18536. The Xtensa 'ADDI' instruction only allows immediate operands in the
  18537. range from -128 to 127. There are a number of alternate instruction
  18538. sequences for the 'ADDI' operation. First, if the immediate is 0, the
  18539. 'ADDI' will be turned into a 'MOV.N' instruction (or the equivalent 'OR'
  18540. instruction if the code density option is not available). If the 'ADDI'
  18541. immediate is outside of the range -128 to 127, but inside the range
  18542. -32896 to 32639, an 'ADDMI' instruction or 'ADDMI'/'ADDI' sequence will
  18543. be used. Finally, if the immediate is outside of this range and a free
  18544. register is available, an 'L32R'/'ADD' sequence will be used with a
  18545. literal allocated from the literal pool.
  18546. For example:
  18547. addi a5, a6, 0
  18548. addi a5, a6, 512
  18549. addi a5, a6, 513
  18550. addi a5, a6, 50000
  18551. is assembled into the following:
  18552. .literal .L1, 50000
  18553. mov.n a5, a6
  18554. addmi a5, a6, 0x200
  18555. addmi a5, a6, 0x200
  18556. addi a5, a5, 1
  18557. l32r a5, .L1
  18558. add a5, a6, a5
  18559. 
  18560. File: as.info, Node: Xtensa Directives, Prev: Xtensa Relaxation, Up: Xtensa-Dependent
  18561. 9.55.5 Directives
  18562. -----------------
  18563. The Xtensa assembler supports a region-based directive syntax:
  18564. .begin DIRECTIVE [OPTIONS]
  18565. ...
  18566. .end DIRECTIVE
  18567. All the Xtensa-specific directives that apply to a region of code use
  18568. this syntax.
  18569. The directive applies to code between the '.begin' and the '.end'.
  18570. The state of the option after the '.end' reverts to what it was before
  18571. the '.begin'. A nested '.begin'/'.end' region can further change the
  18572. state of the directive without having to be aware of its outer state.
  18573. For example, consider:
  18574. .begin no-transform
  18575. L: add a0, a1, a2
  18576. .begin transform
  18577. M: add a0, a1, a2
  18578. .end transform
  18579. N: add a0, a1, a2
  18580. .end no-transform
  18581. The 'ADD' opcodes at 'L' and 'N' in the outer 'no-transform' region
  18582. both result in 'ADD' machine instructions, but the assembler selects an
  18583. 'ADD.N' instruction for the 'ADD' at 'M' in the inner 'transform'
  18584. region.
  18585. The advantage of this style is that it works well inside macros which
  18586. can preserve the context of their callers.
  18587. The following directives are available:
  18588. * Menu:
  18589. * Schedule Directive:: Enable instruction scheduling.
  18590. * Longcalls Directive:: Use Indirect Calls for Greater Range.
  18591. * Transform Directive:: Disable All Assembler Transformations.
  18592. * Literal Directive:: Intermix Literals with Instructions.
  18593. * Literal Position Directive:: Specify Inline Literal Pool Locations.
  18594. * Literal Prefix Directive:: Specify Literal Section Name Prefix.
  18595. * Absolute Literals Directive:: Control PC-Relative vs. Absolute Literals.
  18596. 
  18597. File: as.info, Node: Schedule Directive, Next: Longcalls Directive, Up: Xtensa Directives
  18598. 9.55.5.1 schedule
  18599. .................
  18600. The 'schedule' directive is recognized only for compatibility with
  18601. Tensilica's assembler.
  18602. .begin [no-]schedule
  18603. .end [no-]schedule
  18604. This directive is ignored and has no effect on 'as'.
  18605. 
  18606. File: as.info, Node: Longcalls Directive, Next: Transform Directive, Prev: Schedule Directive, Up: Xtensa Directives
  18607. 9.55.5.2 longcalls
  18608. ..................
  18609. The 'longcalls' directive enables or disables function call relaxation.
  18610. *Note Function Call Relaxation: Xtensa Call Relaxation.
  18611. .begin [no-]longcalls
  18612. .end [no-]longcalls
  18613. Call relaxation is disabled by default unless the '--longcalls'
  18614. command-line option is specified. The 'longcalls' directive overrides
  18615. the default determined by the command-line options.
  18616. 
  18617. File: as.info, Node: Transform Directive, Next: Literal Directive, Prev: Longcalls Directive, Up: Xtensa Directives
  18618. 9.55.5.3 transform
  18619. ..................
  18620. This directive enables or disables all assembler transformation,
  18621. including relaxation (*note Xtensa Relaxation: Xtensa Relaxation.) and
  18622. optimization (*note Xtensa Optimizations: Xtensa Optimizations.).
  18623. .begin [no-]transform
  18624. .end [no-]transform
  18625. Transformations are enabled by default unless the '--no-transform'
  18626. option is used. The 'transform' directive overrides the default
  18627. determined by the command-line options. An underscore opcode prefix,
  18628. disabling transformation of that opcode, always takes precedence over
  18629. both directives and command-line flags.
  18630. 
  18631. File: as.info, Node: Literal Directive, Next: Literal Position Directive, Prev: Transform Directive, Up: Xtensa Directives
  18632. 9.55.5.4 literal
  18633. ................
  18634. The '.literal' directive is used to define literal pool data, i.e.,
  18635. read-only 32-bit data accessed via 'L32R' instructions.
  18636. .literal LABEL, VALUE[, VALUE...]
  18637. This directive is similar to the standard '.word' directive, except
  18638. that the actual location of the literal data is determined by the
  18639. assembler and linker, not by the position of the '.literal' directive.
  18640. Using this directive gives the assembler freedom to locate the literal
  18641. data in the most appropriate place and possibly to combine identical
  18642. literals. For example, the code:
  18643. entry sp, 40
  18644. .literal .L1, sym
  18645. l32r a4, .L1
  18646. can be used to load a pointer to the symbol 'sym' into register 'a4'.
  18647. The value of 'sym' will not be placed between the 'ENTRY' and 'L32R'
  18648. instructions; instead, the assembler puts the data in a literal pool.
  18649. Literal pools are placed by default in separate literal sections;
  18650. however, when using the '--text-section-literals' option (*note
  18651. Command-line Options: Xtensa Options.), the literal pools for
  18652. PC-relative mode 'L32R' instructions are placed in the current
  18653. section.(1) These text section literal pools are created automatically
  18654. before 'ENTRY' instructions and manually after '.literal_position'
  18655. directives (*note literal_position: Literal Position Directive.). If
  18656. there are no preceding 'ENTRY' instructions, explicit
  18657. '.literal_position' directives must be used to place the text section
  18658. literal pools; otherwise, 'as' will report an error.
  18659. When literals are placed in separate sections, the literal section
  18660. names are derived from the names of the sections where the literals are
  18661. defined. The base literal section names are '.literal' for PC-relative
  18662. mode 'L32R' instructions and '.lit4' for absolute mode 'L32R'
  18663. instructions (*note absolute-literals: Absolute Literals Directive.).
  18664. These base names are used for literals defined in the default '.text'
  18665. section. For literals defined in other sections or within the scope of
  18666. a 'literal_prefix' directive (*note literal_prefix: Literal Prefix
  18667. Directive.), the following rules determine the literal section name:
  18668. 1. If the current section is a member of a section group, the literal
  18669. section name includes the group name as a suffix to the base
  18670. '.literal' or '.lit4' name, with a period to separate the base name
  18671. and group name. The literal section is also made a member of the
  18672. group.
  18673. 2. If the current section name (or 'literal_prefix' value) begins with
  18674. "'.gnu.linkonce.KIND.'", the literal section name is formed by
  18675. replacing "'.KIND'" with the base '.literal' or '.lit4' name. For
  18676. example, for literals defined in a section named
  18677. '.gnu.linkonce.t.func', the literal section will be
  18678. '.gnu.linkonce.literal.func' or '.gnu.linkonce.lit4.func'.
  18679. 3. If the current section name (or 'literal_prefix' value) ends with
  18680. '.text', the literal section name is formed by replacing that
  18681. suffix with the base '.literal' or '.lit4' name. For example, for
  18682. literals defined in a section named '.iram0.text', the literal
  18683. section will be '.iram0.literal' or '.iram0.lit4'.
  18684. 4. If none of the preceding conditions apply, the literal section name
  18685. is formed by adding the base '.literal' or '.lit4' name as a suffix
  18686. to the current section name (or 'literal_prefix' value).
  18687. ---------- Footnotes ----------
  18688. (1) Literals for the '.init' and '.fini' sections are always placed
  18689. in separate sections, even when '--text-section-literals' is enabled.
  18690. 
  18691. File: as.info, Node: Literal Position Directive, Next: Literal Prefix Directive, Prev: Literal Directive, Up: Xtensa Directives
  18692. 9.55.5.5 literal_position
  18693. .........................
  18694. When using '--text-section-literals' to place literals inline in the
  18695. section being assembled, the '.literal_position' directive can be used
  18696. to mark a potential location for a literal pool.
  18697. .literal_position
  18698. The '.literal_position' directive is ignored when the
  18699. '--text-section-literals' option is not used or when 'L32R' instructions
  18700. use the absolute addressing mode.
  18701. The assembler will automatically place text section literal pools
  18702. before 'ENTRY' instructions, so the '.literal_position' directive is
  18703. only needed to specify some other location for a literal pool. You may
  18704. need to add an explicit jump instruction to skip over an inline literal
  18705. pool.
  18706. For example, an interrupt vector does not begin with an 'ENTRY'
  18707. instruction so the assembler will be unable to automatically find a good
  18708. place to put a literal pool. Moreover, the code for the interrupt
  18709. vector must be at a specific starting address, so the literal pool
  18710. cannot come before the start of the code. The literal pool for the
  18711. vector must be explicitly positioned in the middle of the vector (before
  18712. any uses of the literals, due to the negative offsets used by
  18713. PC-relative 'L32R' instructions). The '.literal_position' directive can
  18714. be used to do this. In the following code, the literal for 'M' will
  18715. automatically be aligned correctly and is placed after the unconditional
  18716. jump.
  18717. .global M
  18718. code_start:
  18719. j continue
  18720. .literal_position
  18721. .align 4
  18722. continue:
  18723. movi a4, M
  18724. 
  18725. File: as.info, Node: Literal Prefix Directive, Next: Absolute Literals Directive, Prev: Literal Position Directive, Up: Xtensa Directives
  18726. 9.55.5.6 literal_prefix
  18727. .......................
  18728. The 'literal_prefix' directive allows you to override the default
  18729. literal section names, which are derived from the names of the sections
  18730. where the literals are defined.
  18731. .begin literal_prefix [NAME]
  18732. .end literal_prefix
  18733. For literals defined within the delimited region, the literal section
  18734. names are derived from the NAME argument instead of the name of the
  18735. current section. The rules used to derive the literal section names do
  18736. not change. *Note literal: Literal Directive. If the NAME argument is
  18737. omitted, the literal sections revert to the defaults. This directive
  18738. has no effect when using the '--text-section-literals' option (*note
  18739. Command-line Options: Xtensa Options.).
  18740. 
  18741. File: as.info, Node: Absolute Literals Directive, Prev: Literal Prefix Directive, Up: Xtensa Directives
  18742. 9.55.5.7 absolute-literals
  18743. ..........................
  18744. The 'absolute-literals' and 'no-absolute-literals' directives control
  18745. the absolute vs. PC-relative mode for 'L32R' instructions. These are
  18746. relevant only for Xtensa configurations that include the absolute
  18747. addressing option for 'L32R' instructions.
  18748. .begin [no-]absolute-literals
  18749. .end [no-]absolute-literals
  18750. These directives do not change the 'L32R' mode--they only cause the
  18751. assembler to emit the appropriate kind of relocation for 'L32R'
  18752. instructions and to place the literal values in the appropriate section.
  18753. To change the 'L32R' mode, the program must write the 'LITBASE' special
  18754. register. It is the programmer's responsibility to keep track of the
  18755. mode and indicate to the assembler which mode is used in each region of
  18756. code.
  18757. If the Xtensa configuration includes the absolute 'L32R' addressing
  18758. option, the default is to assume absolute 'L32R' addressing unless the
  18759. '--no-absolute-literals' command-line option is specified. Otherwise,
  18760. the default is to assume PC-relative 'L32R' addressing. The
  18761. 'absolute-literals' directive can then be used to override the default
  18762. determined by the command-line options.
  18763. 
  18764. File: as.info, Node: Z80-Dependent, Next: Z8000-Dependent, Prev: Xtensa-Dependent, Up: Machine Dependencies
  18765. 9.56 Z80 Dependent Features
  18766. ===========================
  18767. * Menu:
  18768. * Z80 Options:: Options
  18769. * Z80 Syntax:: Syntax
  18770. * Z80 Floating Point:: Floating Point
  18771. * Z80 Directives:: Z80 Machine Directives
  18772. * Z80 Opcodes:: Opcodes
  18773. 
  18774. File: as.info, Node: Z80 Options, Next: Z80 Syntax, Up: Z80-Dependent
  18775. 9.56.1 Command-line Options
  18776. ---------------------------
  18777. '-z80'
  18778. Produce code for the Z80 processor. By default accepted
  18779. undocumented operations with halves of index registers ('IXL',
  18780. 'IXH', 'IYL', 'IYH') and instuction 'IN F,(C)'. Other useful
  18781. undocumented instructions produces warnings. Undocumented
  18782. instructions may not work on some CPUs, use them on your own risk.
  18783. '-r800'
  18784. Produce code for the R800 processor.
  18785. '-z180'
  18786. Produce code for the Z180 processor.
  18787. '-ez80'
  18788. Produce code for the eZ80 processor in Z80 memory mode by default.
  18789. '-ez80-adl'
  18790. Produce code for the eZ80 processor in ADL memory mode by default.
  18791. '-local-prefix=PREFIX'
  18792. Mark all labels with specified prefix as local. But such label can
  18793. be marked global explicitly in the code. This option do not change
  18794. default local label prefix '.L', it is just adds new one.
  18795. '-colonless'
  18796. Accept colonless labels. All names at line begin are treated as
  18797. labels.
  18798. '-sdcc'
  18799. Accept assembler code produced by SDCC.
  18800. '-fp-s=FORMAT'
  18801. Single precision floating point numbers format. Default: ieee754
  18802. (32 bit).
  18803. '-fp-d=FORMAT'
  18804. Double precision floating point numbers format. Default: ieee754
  18805. (64 bit).
  18806. '-strict'
  18807. Accept documented instructions only.
  18808. '-full'
  18809. Accept all known Z80 instructions.
  18810. '-with-inst=INST[,...]'
  18811. '-Wnins INST[,...]'
  18812. Enable specified undocumented instruction(s).
  18813. '-without-inst=INST[,...]'
  18814. '-Fins INST[,...]'
  18815. Disable specified undocumented instruction(s).
  18816. '-ignore-undocumented-instructions'
  18817. '-Wnud'
  18818. Silently assemble undocumented Z80-instructions that have been
  18819. adopted as documented R800-instructions .
  18820. '-ignore-unportable-instructions'
  18821. '-Wnup'
  18822. Silently assemble all undocumented Z80-instructions.
  18823. '-warn-undocumented-instructions'
  18824. '-Wud'
  18825. Issue warnings for undocumented Z80-instructions that work on R800,
  18826. do not assemble other undocumented instructions without warning.
  18827. '-warn-unportable-instructions'
  18828. '-Wup'
  18829. Issue warnings for other undocumented Z80-instructions, do not
  18830. treat any undocumented instructions as errors.
  18831. '-forbid-undocumented-instructions'
  18832. '-Fud'
  18833. Treat all undocumented z80-instructions as errors.
  18834. '-forbid-unportable-instructions'
  18835. '-Fup'
  18836. Treat undocumented z80-instructions that do not work on R800 as
  18837. errors.
  18838. Floating point numbers formats.
  18839. 'ieee754'
  18840. Single or double precision IEEE754 compatible format.
  18841. 'half'
  18842. Half precision IEEE754 compatible format (16 bits).
  18843. 'single'
  18844. Single precision IEEE754 compatible format (32 bits).
  18845. 'double'
  18846. Double precision IEEE754 compatible format (64 bits).
  18847. 'zeda32'
  18848. 32 bit floating point format from z80float library by Zeda.
  18849. 'math48'
  18850. 48 bit floating point format from Math48 package by Anders
  18851. Hejlsberg.
  18852. Known undocumented instructions.
  18853. 'idx-reg-halves'
  18854. All operations with halves of index registers ('IXL', 'IXH', 'IYL',
  18855. 'IYH').
  18856. 'sli'
  18857. 'SLI' or 'SLL' instruction. Same as 'SLA r; INC r'.
  18858. 'op-ii-ld'
  18859. Istructions like '<op> (<ii>+<d>),<r>'. For example: 'RL (IX+5),C'
  18860. 'in-f-c'
  18861. Instruction 'IN F,(C)'.
  18862. 'out-c-0'
  18863. Instruction 'OUT (C),0'
  18864. 
  18865. File: as.info, Node: Z80 Syntax, Next: Z80 Floating Point, Prev: Z80 Options, Up: Z80-Dependent
  18866. 9.56.2 Syntax
  18867. -------------
  18868. The assembler syntax closely follows the 'Z80 family CPU User Manual' by
  18869. Zilog. In expressions a single '=' may be used as "is equal to"
  18870. comparison operator.
  18871. Suffices can be used to indicate the radix of integer constants; 'H'
  18872. or 'h' for hexadecimal, 'D' or 'd' for decimal, 'Q', 'O', 'q' or 'o' for
  18873. octal, and 'B' for binary.
  18874. The suffix 'b' denotes a backreference to local label.
  18875. * Menu:
  18876. * Z80-Chars:: Special Characters
  18877. * Z80-Regs:: Register Names
  18878. * Z80-Case:: Case Sensitivity
  18879. * Z80-Labels:: Labels
  18880. 
  18881. File: as.info, Node: Z80-Chars, Next: Z80-Regs, Up: Z80 Syntax
  18882. 9.56.2.1 Special Characters
  18883. ...........................
  18884. The semicolon ';' is the line comment character;
  18885. If a '#' appears as the first character of a line then the whole line
  18886. is treated as a comment, but in this case the line could also be a
  18887. logical line number directive (*note Comments::) or a preprocessor
  18888. control command (*note Preprocessing::).
  18889. The Z80 assembler does not support a line separator character.
  18890. The dollar sign '$' can be used as a prefix for hexadecimal numbers
  18891. and as a symbol denoting the current location counter.
  18892. A backslash '\' is an ordinary character for the Z80 assembler.
  18893. The single quote ''' must be followed by a closing quote. If there
  18894. is one character in between, it is a character constant, otherwise it is
  18895. a string constant.
  18896. 
  18897. File: as.info, Node: Z80-Regs, Next: Z80-Case, Prev: Z80-Chars, Up: Z80 Syntax
  18898. 9.56.2.2 Register Names
  18899. .......................
  18900. The registers are referred to with the letters assigned to them by
  18901. Zilog. In addition 'as' recognizes 'ixl' and 'ixh' as the least and
  18902. most significant octet in 'ix', and similarly 'iyl' and 'iyh' as parts
  18903. of 'iy'.
  18904. 
  18905. File: as.info, Node: Z80-Case, Next: Z80-Labels, Prev: Z80-Regs, Up: Z80 Syntax
  18906. 9.56.2.3 Case Sensitivity
  18907. .........................
  18908. Upper and lower case are equivalent in register names, opcodes,
  18909. condition codes and assembler directives. The case of letters is
  18910. significant in labels and symbol names. The case is also important to
  18911. distinguish the suffix 'b' for a backward reference to a local label
  18912. from the suffix 'B' for a number in binary notation.
  18913. 
  18914. File: as.info, Node: Z80-Labels, Prev: Z80-Case, Up: Z80 Syntax
  18915. 9.56.2.4 Labels
  18916. ...............
  18917. Labels started by '.L' acts as local labels. You may specify custom
  18918. local label prefix by '-local-prefix' command-line option. Dollar,
  18919. forward and backward local labels are supported. By default, all labels
  18920. are followed by colon. Legacy code with colonless labels can be built
  18921. with '-colonless' command-line option specified. In this case all
  18922. tokens at line begin are treated as labels.
  18923. 
  18924. File: as.info, Node: Z80 Floating Point, Next: Z80 Directives, Prev: Z80 Syntax, Up: Z80-Dependent
  18925. 9.56.3 Floating Point
  18926. ---------------------
  18927. Floating-point numbers of following types are supported:
  18928. 'ieee754'
  18929. Supported half, single and double precision IEEE754 compatible
  18930. numbers.
  18931. 'zeda32'
  18932. 32 bit floating point numbers from z80float library by Zeda.
  18933. 'math48'
  18934. 48 bit floating point numbers from Math48 package by Anders
  18935. Hejlsberg.
  18936. 
  18937. File: as.info, Node: Z80 Directives, Next: Z80 Opcodes, Prev: Z80 Floating Point, Up: Z80-Dependent
  18938. 9.56.4 Z80 Assembler Directives
  18939. -------------------------------
  18940. 'as' for the Z80 supports some additional directives for compatibility
  18941. with other assemblers.
  18942. These are the additional directives in 'as' for the Z80:
  18943. 'assume ADL'='EXPRESSION'
  18944. Set ADL status for eZ80. Non-zero value enable compilation in ADL
  18945. mode else used Z80 mode. ADL and Z80 mode produces incompatible
  18946. object code. Mixing both of them within one binary may lead
  18947. problems with disassembler.
  18948. 'db EXPRESSION|STRING[,EXPRESSION|STRING...]'
  18949. 'defb EXPRESSION|STRING[,EXPRESSION|STRING...]'
  18950. 'defm STRING...]'
  18951. For each STRING the characters are copied to the object file, for
  18952. each other EXPRESSION the value is stored in one byte. A warning
  18953. is issued in case of an overflow. Backslash symbol in the strings
  18954. is generic symbol, it cannot be used as escape character (for this
  18955. purpose use '.ascii' or '.asciiz' directives).
  18956. 'dw EXPRESSION[,EXPRESSION...]'
  18957. 'defw EXPRESSION[,EXPRESSION...]'
  18958. For each EXPRESSION the value is stored in two bytes, ignoring
  18959. overflow.
  18960. 'd24 EXPRESSION[,EXPRESSION...]'
  18961. 'def24 EXPRESSION[,EXPRESSION...]'
  18962. For each EXPRESSION the value is stored in three bytes, ignoring
  18963. overflow.
  18964. 'd32 EXPRESSION[,EXPRESSION...]'
  18965. 'def32 EXPRESSION[,EXPRESSION...]'
  18966. For each EXPRESSION the value is stored in four bytes, ignoring
  18967. overflow.
  18968. 'ds COUNT[, VALUE]'
  18969. 'defs COUNT[, VALUE]'
  18970. Fill COUNT bytes in the object file with VALUE, if VALUE is omitted
  18971. it defaults to zero.
  18972. 'SYMBOL equ EXPRESSION'
  18973. 'SYMBOL defl EXPRESSION'
  18974. These directives set the value of SYMBOL to EXPRESSION. If 'equ'
  18975. is used, it is an error if SYMBOL is already defined. Symbols
  18976. defined with 'equ' are not protected from redefinition.
  18977. 'psect NAME'
  18978. A synonym for *Note Section::, no second argument should be given.
  18979. 
  18980. File: as.info, Node: Z80 Opcodes, Prev: Z80 Directives, Up: Z80-Dependent
  18981. 9.56.5 Opcodes
  18982. --------------
  18983. In line with common practice, Z80 mnemonics are used for the Z80, the
  18984. Z180, eZ80 and the R800.
  18985. In many instructions it is possible to use one of the half index
  18986. registers ('ixl','ixh','iyl','iyh') in stead of an 8-bit general purpose
  18987. register. This yields instructions that are documented on the eZ80 and
  18988. the R800, undocumented on the Z80 and unsupported on the Z180.
  18989. Similarly 'in f,(c)' is documented on the R800, undocumented on the Z80
  18990. and unsupported on the Z180 and the eZ80.
  18991. The assembler also supports the following undocumented
  18992. Z80-instructions, that have not been adopted in any other instruction
  18993. set:
  18994. 'out (c),0'
  18995. Sends zero to the port pointed to by register 'C'.
  18996. 'sli M'
  18997. Equivalent to 'M = (M<<1)+1', the operand M can be any operand that
  18998. is valid for 'sla'. One can use 'sll' as a synonym for 'sli'.
  18999. 'OP (ix+D), R'
  19000. This is equivalent to
  19001. ld R, (ix+D)
  19002. OPC R
  19003. ld (ix+D), R
  19004. The operation 'OPC' may be any of 'res B,', 'set B,', 'rl', 'rlc',
  19005. 'rr', 'rrc', 'sla', 'sli', 'sra' and 'srl', and the register 'R'
  19006. may be any of 'a', 'b', 'c', 'd', 'e', 'h' and 'l'.
  19007. 'OPC (iy+D), R'
  19008. As above, but with 'iy' instead of 'ix'.
  19009. The web site at <http://www.z80.info> is a good starting place to
  19010. find more information on programming the Z80.
  19011. You may enable or disable any of these instructions for any target
  19012. CPU even this instruction is not supported by any real CPU of this type.
  19013. Useful for custom CPU cores.
  19014. 
  19015. File: as.info, Node: Z8000-Dependent, Prev: Z80-Dependent, Up: Machine Dependencies
  19016. 9.57 Z8000 Dependent Features
  19017. =============================
  19018. The Z8000 as supports both members of the Z8000 family: the unsegmented
  19019. Z8002, with 16 bit addresses, and the segmented Z8001 with 24 bit
  19020. addresses.
  19021. When the assembler is in unsegmented mode (specified with the
  19022. 'unsegm' directive), an address takes up one word (16 bit) sized
  19023. register. When the assembler is in segmented mode (specified with the
  19024. 'segm' directive), a 24-bit address takes up a long (32 bit) register.
  19025. *Note Assembler Directives for the Z8000: Z8000 Directives, for a list
  19026. of other Z8000 specific assembler directives.
  19027. * Menu:
  19028. * Z8000 Options:: Command-line options for the Z8000
  19029. * Z8000 Syntax:: Assembler syntax for the Z8000
  19030. * Z8000 Directives:: Special directives for the Z8000
  19031. * Z8000 Opcodes:: Opcodes
  19032. 
  19033. File: as.info, Node: Z8000 Options, Next: Z8000 Syntax, Up: Z8000-Dependent
  19034. 9.57.1 Options
  19035. --------------
  19036. '-z8001'
  19037. Generate segmented code by default.
  19038. '-z8002'
  19039. Generate unsegmented code by default.
  19040. 
  19041. File: as.info, Node: Z8000 Syntax, Next: Z8000 Directives, Prev: Z8000 Options, Up: Z8000-Dependent
  19042. 9.57.2 Syntax
  19043. -------------
  19044. * Menu:
  19045. * Z8000-Chars:: Special Characters
  19046. * Z8000-Regs:: Register Names
  19047. * Z8000-Addressing:: Addressing Modes
  19048. 
  19049. File: as.info, Node: Z8000-Chars, Next: Z8000-Regs, Up: Z8000 Syntax
  19050. 9.57.2.1 Special Characters
  19051. ...........................
  19052. '!' is the line comment character.
  19053. If a '#' appears as the first character of a line then the whole line
  19054. is treated as a comment, but in this case the line could also be a
  19055. logical line number directive (*note Comments::) or a preprocessor
  19056. control command (*note Preprocessing::).
  19057. You can use ';' instead of a newline to separate statements.
  19058. 
  19059. File: as.info, Node: Z8000-Regs, Next: Z8000-Addressing, Prev: Z8000-Chars, Up: Z8000 Syntax
  19060. 9.57.2.2 Register Names
  19061. .......................
  19062. The Z8000 has sixteen 16 bit registers, numbered 0 to 15. You can refer
  19063. to different sized groups of registers by register number, with the
  19064. prefix 'r' for 16 bit registers, 'rr' for 32 bit registers and 'rq' for
  19065. 64 bit registers. You can also refer to the contents of the first eight
  19066. (of the sixteen 16 bit registers) by bytes. They are named 'rlN' and
  19067. 'rhN'.
  19068. _byte registers_
  19069. rl0 rh0 rl1 rh1 rl2 rh2 rl3 rh3
  19070. rl4 rh4 rl5 rh5 rl6 rh6 rl7 rh7
  19071. _word registers_
  19072. r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15
  19073. _long word registers_
  19074. rr0 rr2 rr4 rr6 rr8 rr10 rr12 rr14
  19075. _quad word registers_
  19076. rq0 rq4 rq8 rq12
  19077. 
  19078. File: as.info, Node: Z8000-Addressing, Prev: Z8000-Regs, Up: Z8000 Syntax
  19079. 9.57.2.3 Addressing Modes
  19080. .........................
  19081. as understands the following addressing modes for the Z8000:
  19082. 'rlN'
  19083. 'rhN'
  19084. 'rN'
  19085. 'rrN'
  19086. 'rqN'
  19087. Register direct: 8bit, 16bit, 32bit, and 64bit registers.
  19088. '@rN'
  19089. '@rrN'
  19090. Indirect register: @rrN in segmented mode, @rN in unsegmented mode.
  19091. 'ADDR'
  19092. Direct: the 16 bit or 24 bit address (depending on whether the
  19093. assembler is in segmented or unsegmented mode) of the operand is in
  19094. the instruction.
  19095. 'address(rN)'
  19096. Indexed: the 16 or 24 bit address is added to the 16 bit register
  19097. to produce the final address in memory of the operand.
  19098. 'rN(#IMM)'
  19099. 'rrN(#IMM)'
  19100. Base Address: the 16 or 24 bit register is added to the 16 bit sign
  19101. extended immediate displacement to produce the final address in
  19102. memory of the operand.
  19103. 'rN(rM)'
  19104. 'rrN(rM)'
  19105. Base Index: the 16 or 24 bit register rN or rrN is added to the
  19106. sign extended 16 bit index register rM to produce the final address
  19107. in memory of the operand.
  19108. '#XX'
  19109. Immediate data XX.
  19110. 
  19111. File: as.info, Node: Z8000 Directives, Next: Z8000 Opcodes, Prev: Z8000 Syntax, Up: Z8000-Dependent
  19112. 9.57.3 Assembler Directives for the Z8000
  19113. -----------------------------------------
  19114. The Z8000 port of as includes additional assembler directives, for
  19115. compatibility with other Z8000 assemblers. These do not begin with '.'
  19116. (unlike the ordinary as directives).
  19117. 'segm'
  19118. '.z8001'
  19119. Generate code for the segmented Z8001.
  19120. 'unsegm'
  19121. '.z8002'
  19122. Generate code for the unsegmented Z8002.
  19123. 'name'
  19124. Synonym for '.file'
  19125. 'global'
  19126. Synonym for '.global'
  19127. 'wval'
  19128. Synonym for '.word'
  19129. 'lval'
  19130. Synonym for '.long'
  19131. 'bval'
  19132. Synonym for '.byte'
  19133. 'sval'
  19134. Assemble a string. 'sval' expects one string literal, delimited by
  19135. single quotes. It assembles each byte of the string into
  19136. consecutive addresses. You can use the escape sequence '%XX'
  19137. (where XX represents a two-digit hexadecimal number) to represent
  19138. the character whose ASCII value is XX. Use this feature to
  19139. describe single quote and other characters that may not appear in
  19140. string literals as themselves. For example, the C statement
  19141. 'char *a = "he said \"it's 50% off\"";' is represented in Z8000
  19142. assembly language (shown with the assembler output in hex at the
  19143. left) as
  19144. 68652073 sval 'he said %22it%27s 50%25 off%22%00'
  19145. 61696420
  19146. 22697427
  19147. 73203530
  19148. 25206F66
  19149. 662200
  19150. 'rsect'
  19151. synonym for '.section'
  19152. 'block'
  19153. synonym for '.space'
  19154. 'even'
  19155. special case of '.align'; aligns output to even byte boundary.
  19156. 
  19157. File: as.info, Node: Z8000 Opcodes, Prev: Z8000 Directives, Up: Z8000-Dependent
  19158. 9.57.4 Opcodes
  19159. --------------
  19160. For detailed information on the Z8000 machine instruction set, see
  19161. 'Z8000 Technical Manual'.
  19162. The following table summarizes the opcodes and their arguments:
  19163. rs 16 bit source register
  19164. rd 16 bit destination register
  19165. rbs 8 bit source register
  19166. rbd 8 bit destination register
  19167. rrs 32 bit source register
  19168. rrd 32 bit destination register
  19169. rqs 64 bit source register
  19170. rqd 64 bit destination register
  19171. addr 16/24 bit address
  19172. imm immediate data
  19173. adc rd,rs clrb addr cpsir @rd,@rs,rr,cc
  19174. adcb rbd,rbs clrb addr(rd) cpsirb @rd,@rs,rr,cc
  19175. add rd,@rs clrb rbd dab rbd
  19176. add rd,addr com @rd dbjnz rbd,disp7
  19177. add rd,addr(rs) com addr dec @rd,imm4m1
  19178. add rd,imm16 com addr(rd) dec addr(rd),imm4m1
  19179. add rd,rs com rd dec addr,imm4m1
  19180. addb rbd,@rs comb @rd dec rd,imm4m1
  19181. addb rbd,addr comb addr decb @rd,imm4m1
  19182. addb rbd,addr(rs) comb addr(rd) decb addr(rd),imm4m1
  19183. addb rbd,imm8 comb rbd decb addr,imm4m1
  19184. addb rbd,rbs comflg flags decb rbd,imm4m1
  19185. addl rrd,@rs cp @rd,imm16 di i2
  19186. addl rrd,addr cp addr(rd),imm16 div rrd,@rs
  19187. addl rrd,addr(rs) cp addr,imm16 div rrd,addr
  19188. addl rrd,imm32 cp rd,@rs div rrd,addr(rs)
  19189. addl rrd,rrs cp rd,addr div rrd,imm16
  19190. and rd,@rs cp rd,addr(rs) div rrd,rs
  19191. and rd,addr cp rd,imm16 divl rqd,@rs
  19192. and rd,addr(rs) cp rd,rs divl rqd,addr
  19193. and rd,imm16 cpb @rd,imm8 divl rqd,addr(rs)
  19194. and rd,rs cpb addr(rd),imm8 divl rqd,imm32
  19195. andb rbd,@rs cpb addr,imm8 divl rqd,rrs
  19196. andb rbd,addr cpb rbd,@rs djnz rd,disp7
  19197. andb rbd,addr(rs) cpb rbd,addr ei i2
  19198. andb rbd,imm8 cpb rbd,addr(rs) ex rd,@rs
  19199. andb rbd,rbs cpb rbd,imm8 ex rd,addr
  19200. bit @rd,imm4 cpb rbd,rbs ex rd,addr(rs)
  19201. bit addr(rd),imm4 cpd rd,@rs,rr,cc ex rd,rs
  19202. bit addr,imm4 cpdb rbd,@rs,rr,cc exb rbd,@rs
  19203. bit rd,imm4 cpdr rd,@rs,rr,cc exb rbd,addr
  19204. bit rd,rs cpdrb rbd,@rs,rr,cc exb rbd,addr(rs)
  19205. bitb @rd,imm4 cpi rd,@rs,rr,cc exb rbd,rbs
  19206. bitb addr(rd),imm4 cpib rbd,@rs,rr,cc ext0e imm8
  19207. bitb addr,imm4 cpir rd,@rs,rr,cc ext0f imm8
  19208. bitb rbd,imm4 cpirb rbd,@rs,rr,cc ext8e imm8
  19209. bitb rbd,rs cpl rrd,@rs ext8f imm8
  19210. bpt cpl rrd,addr exts rrd
  19211. call @rd cpl rrd,addr(rs) extsb rd
  19212. call addr cpl rrd,imm32 extsl rqd
  19213. call addr(rd) cpl rrd,rrs halt
  19214. calr disp12 cpsd @rd,@rs,rr,cc in rd,@rs
  19215. clr @rd cpsdb @rd,@rs,rr,cc in rd,imm16
  19216. clr addr cpsdr @rd,@rs,rr,cc inb rbd,@rs
  19217. clr addr(rd) cpsdrb @rd,@rs,rr,cc inb rbd,imm16
  19218. clr rd cpsi @rd,@rs,rr,cc inc @rd,imm4m1
  19219. clrb @rd cpsib @rd,@rs,rr,cc inc addr(rd),imm4m1
  19220. inc addr,imm4m1 ldb rbd,rs(rx) mult rrd,addr(rs)
  19221. inc rd,imm4m1 ldb rd(imm16),rbs mult rrd,imm16
  19222. incb @rd,imm4m1 ldb rd(rx),rbs mult rrd,rs
  19223. incb addr(rd),imm4m1 ldctl ctrl,rs multl rqd,@rs
  19224. incb addr,imm4m1 ldctl rd,ctrl multl rqd,addr
  19225. incb rbd,imm4m1 ldd @rs,@rd,rr multl rqd,addr(rs)
  19226. ind @rd,@rs,ra lddb @rs,@rd,rr multl rqd,imm32
  19227. indb @rd,@rs,rba lddr @rs,@rd,rr multl rqd,rrs
  19228. inib @rd,@rs,ra lddrb @rs,@rd,rr neg @rd
  19229. inibr @rd,@rs,ra ldi @rd,@rs,rr neg addr
  19230. iret ldib @rd,@rs,rr neg addr(rd)
  19231. jp cc,@rd ldir @rd,@rs,rr neg rd
  19232. jp cc,addr ldirb @rd,@rs,rr negb @rd
  19233. jp cc,addr(rd) ldk rd,imm4 negb addr
  19234. jr cc,disp8 ldl @rd,rrs negb addr(rd)
  19235. ld @rd,imm16 ldl addr(rd),rrs negb rbd
  19236. ld @rd,rs ldl addr,rrs nop
  19237. ld addr(rd),imm16 ldl rd(imm16),rrs or rd,@rs
  19238. ld addr(rd),rs ldl rd(rx),rrs or rd,addr
  19239. ld addr,imm16 ldl rrd,@rs or rd,addr(rs)
  19240. ld addr,rs ldl rrd,addr or rd,imm16
  19241. ld rd(imm16),rs ldl rrd,addr(rs) or rd,rs
  19242. ld rd(rx),rs ldl rrd,imm32 orb rbd,@rs
  19243. ld rd,@rs ldl rrd,rrs orb rbd,addr
  19244. ld rd,addr ldl rrd,rs(imm16) orb rbd,addr(rs)
  19245. ld rd,addr(rs) ldl rrd,rs(rx) orb rbd,imm8
  19246. ld rd,imm16 ldm @rd,rs,n orb rbd,rbs
  19247. ld rd,rs ldm addr(rd),rs,n out @rd,rs
  19248. ld rd,rs(imm16) ldm addr,rs,n out imm16,rs
  19249. ld rd,rs(rx) ldm rd,@rs,n outb @rd,rbs
  19250. lda rd,addr ldm rd,addr(rs),n outb imm16,rbs
  19251. lda rd,addr(rs) ldm rd,addr,n outd @rd,@rs,ra
  19252. lda rd,rs(imm16) ldps @rs outdb @rd,@rs,rba
  19253. lda rd,rs(rx) ldps addr outib @rd,@rs,ra
  19254. ldar rd,disp16 ldps addr(rs) outibr @rd,@rs,ra
  19255. ldb @rd,imm8 ldr disp16,rs pop @rd,@rs
  19256. ldb @rd,rbs ldr rd,disp16 pop addr(rd),@rs
  19257. ldb addr(rd),imm8 ldrb disp16,rbs pop addr,@rs
  19258. ldb addr(rd),rbs ldrb rbd,disp16 pop rd,@rs
  19259. ldb addr,imm8 ldrl disp16,rrs popl @rd,@rs
  19260. ldb addr,rbs ldrl rrd,disp16 popl addr(rd),@rs
  19261. ldb rbd,@rs mbit popl addr,@rs
  19262. ldb rbd,addr mreq rd popl rrd,@rs
  19263. ldb rbd,addr(rs) mres push @rd,@rs
  19264. ldb rbd,imm8 mset push @rd,addr
  19265. ldb rbd,rbs mult rrd,@rs push @rd,addr(rs)
  19266. ldb rbd,rs(imm16) mult rrd,addr push @rd,imm16
  19267. push @rd,rs set addr,imm4 subl rrd,imm32
  19268. pushl @rd,@rs set rd,imm4 subl rrd,rrs
  19269. pushl @rd,addr set rd,rs tcc cc,rd
  19270. pushl @rd,addr(rs) setb @rd,imm4 tccb cc,rbd
  19271. pushl @rd,rrs setb addr(rd),imm4 test @rd
  19272. res @rd,imm4 setb addr,imm4 test addr
  19273. res addr(rd),imm4 setb rbd,imm4 test addr(rd)
  19274. res addr,imm4 setb rbd,rs test rd
  19275. res rd,imm4 setflg imm4 testb @rd
  19276. res rd,rs sinb rbd,imm16 testb addr
  19277. resb @rd,imm4 sinb rd,imm16 testb addr(rd)
  19278. resb addr(rd),imm4 sind @rd,@rs,ra testb rbd
  19279. resb addr,imm4 sindb @rd,@rs,rba testl @rd
  19280. resb rbd,imm4 sinib @rd,@rs,ra testl addr
  19281. resb rbd,rs sinibr @rd,@rs,ra testl addr(rd)
  19282. resflg imm4 sla rd,imm8 testl rrd
  19283. ret cc slab rbd,imm8 trdb @rd,@rs,rba
  19284. rl rd,imm1or2 slal rrd,imm8 trdrb @rd,@rs,rba
  19285. rlb rbd,imm1or2 sll rd,imm8 trib @rd,@rs,rbr
  19286. rlc rd,imm1or2 sllb rbd,imm8 trirb @rd,@rs,rbr
  19287. rlcb rbd,imm1or2 slll rrd,imm8 trtdrb @ra,@rb,rbr
  19288. rldb rbb,rba sout imm16,rs trtib @ra,@rb,rr
  19289. rr rd,imm1or2 soutb imm16,rbs trtirb @ra,@rb,rbr
  19290. rrb rbd,imm1or2 soutd @rd,@rs,ra trtrb @ra,@rb,rbr
  19291. rrc rd,imm1or2 soutdb @rd,@rs,rba tset @rd
  19292. rrcb rbd,imm1or2 soutib @rd,@rs,ra tset addr
  19293. rrdb rbb,rba soutibr @rd,@rs,ra tset addr(rd)
  19294. rsvd36 sra rd,imm8 tset rd
  19295. rsvd38 srab rbd,imm8 tsetb @rd
  19296. rsvd78 sral rrd,imm8 tsetb addr
  19297. rsvd7e srl rd,imm8 tsetb addr(rd)
  19298. rsvd9d srlb rbd,imm8 tsetb rbd
  19299. rsvd9f srll rrd,imm8 xor rd,@rs
  19300. rsvdb9 sub rd,@rs xor rd,addr
  19301. rsvdbf sub rd,addr xor rd,addr(rs)
  19302. sbc rd,rs sub rd,addr(rs) xor rd,imm16
  19303. sbcb rbd,rbs sub rd,imm16 xor rd,rs
  19304. sc imm8 sub rd,rs xorb rbd,@rs
  19305. sda rd,rs subb rbd,@rs xorb rbd,addr
  19306. sdab rbd,rs subb rbd,addr xorb rbd,addr(rs)
  19307. sdal rrd,rs subb rbd,addr(rs) xorb rbd,imm8
  19308. sdl rd,rs subb rbd,imm8 xorb rbd,rbs
  19309. sdlb rbd,rs subb rbd,rbs xorb rbd,rbs
  19310. sdll rrd,rs subl rrd,@rs
  19311. set @rd,imm4 subl rrd,addr
  19312. set addr(rd),imm4 subl rrd,addr(rs)
  19313. 
  19314. File: as.info, Node: Reporting Bugs, Next: Acknowledgements, Prev: Machine Dependencies, Up: Top
  19315. 10 Reporting Bugs
  19316. *****************
  19317. Your bug reports play an essential role in making 'as' reliable.
  19318. Reporting a bug may help you by bringing a solution to your problem,
  19319. or it may not. But in any case the principal function of a bug report
  19320. is to help the entire community by making the next version of 'as' work
  19321. better. Bug reports are your contribution to the maintenance of 'as'.
  19322. In order for a bug report to serve its purpose, you must include the
  19323. information that enables us to fix the bug.
  19324. * Menu:
  19325. * Bug Criteria:: Have you found a bug?
  19326. * Bug Reporting:: How to report bugs
  19327. 
  19328. File: as.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
  19329. 10.1 Have You Found a Bug?
  19330. ==========================
  19331. If you are not sure whether you have found a bug, here are some
  19332. guidelines:
  19333. * If the assembler gets a fatal signal, for any input whatever, that
  19334. is a 'as' bug. Reliable assemblers never crash.
  19335. * If 'as' produces an error message for valid input, that is a bug.
  19336. * If 'as' does not produce an error message for invalid input, that
  19337. is a bug. However, you should note that your idea of "invalid
  19338. input" might be our idea of "an extension" or "support for
  19339. traditional practice".
  19340. * If you are an experienced user of assemblers, your suggestions for
  19341. improvement of 'as' are welcome in any case.
  19342. 
  19343. File: as.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
  19344. 10.2 How to Report Bugs
  19345. =======================
  19346. A number of companies and individuals offer support for GNU products.
  19347. If you obtained 'as' from a support organization, we recommend you
  19348. contact that organization first.
  19349. You can find contact information for many support companies and
  19350. individuals in the file 'etc/SERVICE' in the GNU Emacs distribution.
  19351. In any event, we also recommend that you send bug reports for 'as' to
  19352. <http://www.sourceware.org/bugzilla/>.
  19353. The fundamental principle of reporting bugs usefully is this: *report
  19354. all the facts*. If you are not sure whether to state a fact or leave it
  19355. out, state it!
  19356. Often people omit facts because they think they know what causes the
  19357. problem and assume that some details do not matter. Thus, you might
  19358. assume that the name of a symbol you use in an example does not matter.
  19359. Well, probably it does not, but one cannot be sure. Perhaps the bug is
  19360. a stray memory reference which happens to fetch from the location where
  19361. that name is stored in memory; perhaps, if the name were different, the
  19362. contents of that location would fool the assembler into doing the right
  19363. thing despite the bug. Play it safe and give a specific, complete
  19364. example. That is the easiest thing for you to do, and the most helpful.
  19365. Keep in mind that the purpose of a bug report is to enable us to fix
  19366. the bug if it is new to us. Therefore, always write your bug reports on
  19367. the assumption that the bug has not been reported previously.
  19368. Sometimes people give a few sketchy facts and ask, "Does this ring a
  19369. bell?" This cannot help us fix a bug, so it is basically useless. We
  19370. respond by asking for enough details to enable us to investigate. You
  19371. might as well expedite matters by sending them to begin with.
  19372. To enable us to fix the bug, you should include all these things:
  19373. * The version of 'as'. 'as' announces it if you start it with the
  19374. '--version' argument.
  19375. Without this, we will not know whether there is any point in
  19376. looking for the bug in the current version of 'as'.
  19377. * Any patches you may have applied to the 'as' source.
  19378. * The type of machine you are using, and the operating system name
  19379. and version number.
  19380. * What compiler (and its version) was used to compile 'as'--e.g.
  19381. "'gcc-2.7'".
  19382. * The command arguments you gave the assembler to assemble your
  19383. example and observe the bug. To guarantee you will not omit
  19384. something important, list them all. A copy of the Makefile (or the
  19385. output from make) is sufficient.
  19386. If we were to try to guess the arguments, we would probably guess
  19387. wrong and then we might not encounter the bug.
  19388. * A complete input file that will reproduce the bug. If the bug is
  19389. observed when the assembler is invoked via a compiler, send the
  19390. assembler source, not the high level language source. Most
  19391. compilers will produce the assembler source when run with the '-S'
  19392. option. If you are using 'gcc', use the options '-v --save-temps';
  19393. this will save the assembler source in a file with an extension of
  19394. '.s', and also show you exactly how 'as' is being run.
  19395. * A description of what behavior you observe that you believe is
  19396. incorrect. For example, "It gets a fatal signal."
  19397. Of course, if the bug is that 'as' gets a fatal signal, then we
  19398. will certainly notice it. But if the bug is incorrect output, we
  19399. might not notice unless it is glaringly wrong. You might as well
  19400. not give us a chance to make a mistake.
  19401. Even if the problem you experience is a fatal signal, you should
  19402. still say so explicitly. Suppose something strange is going on,
  19403. such as, your copy of 'as' is out of sync, or you have encountered
  19404. a bug in the C library on your system. (This has happened!) Your
  19405. copy might crash and ours would not. If you told us to expect a
  19406. crash, then when ours fails to crash, we would know that the bug
  19407. was not happening for us. If you had not told us to expect a
  19408. crash, then we would not be able to draw any conclusion from our
  19409. observations.
  19410. * If you wish to suggest changes to the 'as' source, send us context
  19411. diffs, as generated by 'diff' with the '-u', '-c', or '-p' option.
  19412. Always send diffs from the old file to the new file. If you even
  19413. discuss something in the 'as' source, refer to it by context, not
  19414. by line number.
  19415. The line numbers in our development sources will not match those in
  19416. your sources. Your line numbers would convey no useful information
  19417. to us.
  19418. Here are some things that are not necessary:
  19419. * A description of the envelope of the bug.
  19420. Often people who encounter a bug spend a lot of time investigating
  19421. which changes to the input file will make the bug go away and which
  19422. changes will not affect it.
  19423. This is often time consuming and not very useful, because the way
  19424. we will find the bug is by running a single example under the
  19425. debugger with breakpoints, not by pure deduction from a series of
  19426. examples. We recommend that you save your time for something else.
  19427. Of course, if you can find a simpler example to report _instead_ of
  19428. the original one, that is a convenience for us. Errors in the
  19429. output will be easier to spot, running under the debugger will take
  19430. less time, and so on.
  19431. However, simplification is not vital; if you do not want to do
  19432. this, report the bug anyway and send us the entire test case you
  19433. used.
  19434. * A patch for the bug.
  19435. A patch for the bug does help us if it is a good one. But do not
  19436. omit the necessary information, such as the test case, on the
  19437. assumption that a patch is all we need. We might see problems with
  19438. your patch and decide to fix the problem another way, or we might
  19439. not understand it at all.
  19440. Sometimes with a program as complicated as 'as' it is very hard to
  19441. construct an example that will make the program follow a certain
  19442. path through the code. If you do not send us the example, we will
  19443. not be able to construct one, so we will not be able to verify that
  19444. the bug is fixed.
  19445. And if we cannot understand what bug you are trying to fix, or why
  19446. your patch should be an improvement, we will not install it. A
  19447. test case will help us to understand.
  19448. * A guess about what the bug is or what it depends on.
  19449. Such guesses are usually wrong. Even we cannot guess right about
  19450. such things without first using the debugger to find the facts.
  19451. 
  19452. File: as.info, Node: Acknowledgements, Next: GNU Free Documentation License, Prev: Reporting Bugs, Up: Top
  19453. 11 Acknowledgements
  19454. *******************
  19455. If you have contributed to GAS and your name isn't listed here, it is
  19456. not meant as a slight. We just don't know about it. Send mail to the
  19457. maintainer, and we'll correct the situation. Currently the maintainer
  19458. is Nick Clifton (email address 'nickc@redhat.com').
  19459. Dean Elsner wrote the original GNU assembler for the VAX.(1)
  19460. Jay Fenlason maintained GAS for a while, adding support for
  19461. GDB-specific debug information and the 68k series machines, most of the
  19462. preprocessing pass, and extensive changes in 'messages.c',
  19463. 'input-file.c', 'write.c'.
  19464. K. Richard Pixley maintained GAS for a while, adding various
  19465. enhancements and many bug fixes, including merging support for several
  19466. processors, breaking GAS up to handle multiple object file format back
  19467. ends (including heavy rewrite, testing, an integration of the coff and
  19468. b.out back ends), adding configuration including heavy testing and
  19469. verification of cross assemblers and file splits and renaming, converted
  19470. GAS to strictly ANSI C including full prototypes, added support for
  19471. m680[34]0 and cpu32, did considerable work on i960 including a COFF port
  19472. (including considerable amounts of reverse engineering), a SPARC opcode
  19473. file rewrite, DECstation, rs6000, and hp300hpux host ports, updated
  19474. "know" assertions and made them work, much other reorganization,
  19475. cleanup, and lint.
  19476. Ken Raeburn wrote the high-level BFD interface code to replace most
  19477. of the code in format-specific I/O modules.
  19478. The original VMS support was contributed by David L. Kashtan. Eric
  19479. Youngdale has done much work with it since.
  19480. The Intel 80386 machine description was written by Eliot Dresselhaus.
  19481. Minh Tran-Le at IntelliCorp contributed some AIX 386 support.
  19482. The Motorola 88k machine description was contributed by Devon Bowen
  19483. of Buffalo University and Torbjorn Granlund of the Swedish Institute of
  19484. Computer Science.
  19485. Keith Knowles at the Open Software Foundation wrote the original MIPS
  19486. back end ('tc-mips.c', 'tc-mips.h'), and contributed Rose format support
  19487. (which hasn't been merged in yet). Ralph Campbell worked with the MIPS
  19488. code to support a.out format.
  19489. Support for the Zilog Z8k and Renesas H8/300 processors (tc-z8k,
  19490. tc-h8300), and IEEE 695 object file format (obj-ieee), was written by
  19491. Steve Chamberlain of Cygnus Support. Steve also modified the COFF back
  19492. end to use BFD for some low-level operations, for use with the H8/300
  19493. and AMD 29k targets.
  19494. John Gilmore built the AMD 29000 support, added '.include' support,
  19495. and simplified the configuration of which versions accept which
  19496. directives. He updated the 68k machine description so that Motorola's
  19497. opcodes always produced fixed-size instructions (e.g., 'jsr'), while
  19498. synthetic instructions remained shrinkable ('jbsr'). John fixed many
  19499. bugs, including true tested cross-compilation support, and one bug in
  19500. relaxation that took a week and required the proverbial one-bit fix.
  19501. Ian Lance Taylor of Cygnus Support merged the Motorola and MIT syntax
  19502. for the 68k, completed support for some COFF targets (68k, i386 SVR3,
  19503. and SCO Unix), added support for MIPS ECOFF and ELF targets, wrote the
  19504. initial RS/6000 and PowerPC assembler, and made a few other minor
  19505. patches.
  19506. Steve Chamberlain made GAS able to generate listings.
  19507. Hewlett-Packard contributed support for the HP9000/300.
  19508. Jeff Law wrote GAS and BFD support for the native HPPA object format
  19509. (SOM) along with a fairly extensive HPPA testsuite (for both SOM and ELF
  19510. object formats). This work was supported by both the Center for
  19511. Software Science at the University of Utah and Cygnus Support.
  19512. Support for ELF format files has been worked on by Mark Eichin of
  19513. Cygnus Support (original, incomplete implementation for SPARC), Pete
  19514. Hoogenboom and Jeff Law at the University of Utah (HPPA mainly), Michael
  19515. Meissner of the Open Software Foundation (i386 mainly), and Ken Raeburn
  19516. of Cygnus Support (sparc, and some initial 64-bit support).
  19517. Linas Vepstas added GAS support for the ESA/390 "IBM 370"
  19518. architecture.
  19519. Richard Henderson rewrote the Alpha assembler. Klaus Kaempf wrote
  19520. GAS and BFD support for openVMS/Alpha.
  19521. Timothy Wall, Michael Hayes, and Greg Smart contributed to the
  19522. various tic* flavors.
  19523. David Heine, Sterling Augustine, Bob Wilson and John Ruttenberg from
  19524. Tensilica, Inc. added support for Xtensa processors.
  19525. Several engineers at Cygnus Support have also provided many small bug
  19526. fixes and configuration enhancements.
  19527. Jon Beniston added support for the Lattice Mico32 architecture.
  19528. Many others have contributed large or small bugfixes and
  19529. enhancements. If you have contributed significant work and are not
  19530. mentioned on this list, and want to be, let us know. Some of the
  19531. history has been lost; we are not intentionally leaving anyone out.
  19532. ---------- Footnotes ----------
  19533. (1) Any more details?
  19534. 
  19535. File: as.info, Node: GNU Free Documentation License, Next: AS Index, Prev: Acknowledgements, Up: Top
  19536. Appendix A GNU Free Documentation License
  19537. *****************************************
  19538. Version 1.3, 3 November 2008
  19539. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  19540. <http://fsf.org/>
  19541. Everyone is permitted to copy and distribute verbatim copies
  19542. of this license document, but changing it is not allowed.
  19543. 0. PREAMBLE
  19544. The purpose of this License is to make a manual, textbook, or other
  19545. functional and useful document "free" in the sense of freedom: to
  19546. assure everyone the effective freedom to copy and redistribute it,
  19547. with or without modifying it, either commercially or
  19548. noncommercially. Secondarily, this License preserves for the
  19549. author and publisher a way to get credit for their work, while not
  19550. being considered responsible for modifications made by others.
  19551. This License is a kind of "copyleft", which means that derivative
  19552. works of the document must themselves be free in the same sense.
  19553. It complements the GNU General Public License, which is a copyleft
  19554. license designed for free software.
  19555. We have designed this License in order to use it for manuals for
  19556. free software, because free software needs free documentation: a
  19557. free program should come with manuals providing the same freedoms
  19558. that the software does. But this License is not limited to
  19559. software manuals; it can be used for any textual work, regardless
  19560. of subject matter or whether it is published as a printed book. We
  19561. recommend this License principally for works whose purpose is
  19562. instruction or reference.
  19563. 1. APPLICABILITY AND DEFINITIONS
  19564. This License applies to any manual or other work, in any medium,
  19565. that contains a notice placed by the copyright holder saying it can
  19566. be distributed under the terms of this License. Such a notice
  19567. grants a world-wide, royalty-free license, unlimited in duration,
  19568. to use that work under the conditions stated herein. The
  19569. "Document", below, refers to any such manual or work. Any member
  19570. of the public is a licensee, and is addressed as "you". You accept
  19571. the license if you copy, modify or distribute the work in a way
  19572. requiring permission under copyright law.
  19573. A "Modified Version" of the Document means any work containing the
  19574. Document or a portion of it, either copied verbatim, or with
  19575. modifications and/or translated into another language.
  19576. A "Secondary Section" is a named appendix or a front-matter section
  19577. of the Document that deals exclusively with the relationship of the
  19578. publishers or authors of the Document to the Document's overall
  19579. subject (or to related matters) and contains nothing that could
  19580. fall directly within that overall subject. (Thus, if the Document
  19581. is in part a textbook of mathematics, a Secondary Section may not
  19582. explain any mathematics.) The relationship could be a matter of
  19583. historical connection with the subject or with related matters, or
  19584. of legal, commercial, philosophical, ethical or political position
  19585. regarding them.
  19586. The "Invariant Sections" are certain Secondary Sections whose
  19587. titles are designated, as being those of Invariant Sections, in the
  19588. notice that says that the Document is released under this License.
  19589. If a section does not fit the above definition of Secondary then it
  19590. is not allowed to be designated as Invariant. The Document may
  19591. contain zero Invariant Sections. If the Document does not identify
  19592. any Invariant Sections then there are none.
  19593. The "Cover Texts" are certain short passages of text that are
  19594. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  19595. that says that the Document is released under this License. A
  19596. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  19597. be at most 25 words.
  19598. A "Transparent" copy of the Document means a machine-readable copy,
  19599. represented in a format whose specification is available to the
  19600. general public, that is suitable for revising the document
  19601. straightforwardly with generic text editors or (for images composed
  19602. of pixels) generic paint programs or (for drawings) some widely
  19603. available drawing editor, and that is suitable for input to text
  19604. formatters or for automatic translation to a variety of formats
  19605. suitable for input to text formatters. A copy made in an otherwise
  19606. Transparent file format whose markup, or absence of markup, has
  19607. been arranged to thwart or discourage subsequent modification by
  19608. readers is not Transparent. An image format is not Transparent if
  19609. used for any substantial amount of text. A copy that is not
  19610. "Transparent" is called "Opaque".
  19611. Examples of suitable formats for Transparent copies include plain
  19612. ASCII without markup, Texinfo input format, LaTeX input format,
  19613. SGML or XML using a publicly available DTD, and standard-conforming
  19614. simple HTML, PostScript or PDF designed for human modification.
  19615. Examples of transparent image formats include PNG, XCF and JPG.
  19616. Opaque formats include proprietary formats that can be read and
  19617. edited only by proprietary word processors, SGML or XML for which
  19618. the DTD and/or processing tools are not generally available, and
  19619. the machine-generated HTML, PostScript or PDF produced by some word
  19620. processors for output purposes only.
  19621. The "Title Page" means, for a printed book, the title page itself,
  19622. plus such following pages as are needed to hold, legibly, the
  19623. material this License requires to appear in the title page. For
  19624. works in formats which do not have any title page as such, "Title
  19625. Page" means the text near the most prominent appearance of the
  19626. work's title, preceding the beginning of the body of the text.
  19627. The "publisher" means any person or entity that distributes copies
  19628. of the Document to the public.
  19629. A section "Entitled XYZ" means a named subunit of the Document
  19630. whose title either is precisely XYZ or contains XYZ in parentheses
  19631. following text that translates XYZ in another language. (Here XYZ
  19632. stands for a specific section name mentioned below, such as
  19633. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  19634. To "Preserve the Title" of such a section when you modify the
  19635. Document means that it remains a section "Entitled XYZ" according
  19636. to this definition.
  19637. The Document may include Warranty Disclaimers next to the notice
  19638. which states that this License applies to the Document. These
  19639. Warranty Disclaimers are considered to be included by reference in
  19640. this License, but only as regards disclaiming warranties: any other
  19641. implication that these Warranty Disclaimers may have is void and
  19642. has no effect on the meaning of this License.
  19643. 2. VERBATIM COPYING
  19644. You may copy and distribute the Document in any medium, either
  19645. commercially or noncommercially, provided that this License, the
  19646. copyright notices, and the license notice saying this License
  19647. applies to the Document are reproduced in all copies, and that you
  19648. add no other conditions whatsoever to those of this License. You
  19649. may not use technical measures to obstruct or control the reading
  19650. or further copying of the copies you make or distribute. However,
  19651. you may accept compensation in exchange for copies. If you
  19652. distribute a large enough number of copies you must also follow the
  19653. conditions in section 3.
  19654. You may also lend copies, under the same conditions stated above,
  19655. and you may publicly display copies.
  19656. 3. COPYING IN QUANTITY
  19657. If you publish printed copies (or copies in media that commonly
  19658. have printed covers) of the Document, numbering more than 100, and
  19659. the Document's license notice requires Cover Texts, you must
  19660. enclose the copies in covers that carry, clearly and legibly, all
  19661. these Cover Texts: Front-Cover Texts on the front cover, and
  19662. Back-Cover Texts on the back cover. Both covers must also clearly
  19663. and legibly identify you as the publisher of these copies. The
  19664. front cover must present the full title with all words of the title
  19665. equally prominent and visible. You may add other material on the
  19666. covers in addition. Copying with changes limited to the covers, as
  19667. long as they preserve the title of the Document and satisfy these
  19668. conditions, can be treated as verbatim copying in other respects.
  19669. If the required texts for either cover are too voluminous to fit
  19670. legibly, you should put the first ones listed (as many as fit
  19671. reasonably) on the actual cover, and continue the rest onto
  19672. adjacent pages.
  19673. If you publish or distribute Opaque copies of the Document
  19674. numbering more than 100, you must either include a machine-readable
  19675. Transparent copy along with each Opaque copy, or state in or with
  19676. each Opaque copy a computer-network location from which the general
  19677. network-using public has access to download using public-standard
  19678. network protocols a complete Transparent copy of the Document, free
  19679. of added material. If you use the latter option, you must take
  19680. reasonably prudent steps, when you begin distribution of Opaque
  19681. copies in quantity, to ensure that this Transparent copy will
  19682. remain thus accessible at the stated location until at least one
  19683. year after the last time you distribute an Opaque copy (directly or
  19684. through your agents or retailers) of that edition to the public.
  19685. It is requested, but not required, that you contact the authors of
  19686. the Document well before redistributing any large number of copies,
  19687. to give them a chance to provide you with an updated version of the
  19688. Document.
  19689. 4. MODIFICATIONS
  19690. You may copy and distribute a Modified Version of the Document
  19691. under the conditions of sections 2 and 3 above, provided that you
  19692. release the Modified Version under precisely this License, with the
  19693. Modified Version filling the role of the Document, thus licensing
  19694. distribution and modification of the Modified Version to whoever
  19695. possesses a copy of it. In addition, you must do these things in
  19696. the Modified Version:
  19697. A. Use in the Title Page (and on the covers, if any) a title
  19698. distinct from that of the Document, and from those of previous
  19699. versions (which should, if there were any, be listed in the
  19700. History section of the Document). You may use the same title
  19701. as a previous version if the original publisher of that
  19702. version gives permission.
  19703. B. List on the Title Page, as authors, one or more persons or
  19704. entities responsible for authorship of the modifications in
  19705. the Modified Version, together with at least five of the
  19706. principal authors of the Document (all of its principal
  19707. authors, if it has fewer than five), unless they release you
  19708. from this requirement.
  19709. C. State on the Title page the name of the publisher of the
  19710. Modified Version, as the publisher.
  19711. D. Preserve all the copyright notices of the Document.
  19712. E. Add an appropriate copyright notice for your modifications
  19713. adjacent to the other copyright notices.
  19714. F. Include, immediately after the copyright notices, a license
  19715. notice giving the public permission to use the Modified
  19716. Version under the terms of this License, in the form shown in
  19717. the Addendum below.
  19718. G. Preserve in that license notice the full lists of Invariant
  19719. Sections and required Cover Texts given in the Document's
  19720. license notice.
  19721. H. Include an unaltered copy of this License.
  19722. I. Preserve the section Entitled "History", Preserve its Title,
  19723. and add to it an item stating at least the title, year, new
  19724. authors, and publisher of the Modified Version as given on the
  19725. Title Page. If there is no section Entitled "History" in the
  19726. Document, create one stating the title, year, authors, and
  19727. publisher of the Document as given on its Title Page, then add
  19728. an item describing the Modified Version as stated in the
  19729. previous sentence.
  19730. J. Preserve the network location, if any, given in the Document
  19731. for public access to a Transparent copy of the Document, and
  19732. likewise the network locations given in the Document for
  19733. previous versions it was based on. These may be placed in the
  19734. "History" section. You may omit a network location for a work
  19735. that was published at least four years before the Document
  19736. itself, or if the original publisher of the version it refers
  19737. to gives permission.
  19738. K. For any section Entitled "Acknowledgements" or "Dedications",
  19739. Preserve the Title of the section, and preserve in the section
  19740. all the substance and tone of each of the contributor
  19741. acknowledgements and/or dedications given therein.
  19742. L. Preserve all the Invariant Sections of the Document, unaltered
  19743. in their text and in their titles. Section numbers or the
  19744. equivalent are not considered part of the section titles.
  19745. M. Delete any section Entitled "Endorsements". Such a section
  19746. may not be included in the Modified Version.
  19747. N. Do not retitle any existing section to be Entitled
  19748. "Endorsements" or to conflict in title with any Invariant
  19749. Section.
  19750. O. Preserve any Warranty Disclaimers.
  19751. If the Modified Version includes new front-matter sections or
  19752. appendices that qualify as Secondary Sections and contain no
  19753. material copied from the Document, you may at your option designate
  19754. some or all of these sections as invariant. To do this, add their
  19755. titles to the list of Invariant Sections in the Modified Version's
  19756. license notice. These titles must be distinct from any other
  19757. section titles.
  19758. You may add a section Entitled "Endorsements", provided it contains
  19759. nothing but endorsements of your Modified Version by various
  19760. parties--for example, statements of peer review or that the text
  19761. has been approved by an organization as the authoritative
  19762. definition of a standard.
  19763. You may add a passage of up to five words as a Front-Cover Text,
  19764. and a passage of up to 25 words as a Back-Cover Text, to the end of
  19765. the list of Cover Texts in the Modified Version. Only one passage
  19766. of Front-Cover Text and one of Back-Cover Text may be added by (or
  19767. through arrangements made by) any one entity. If the Document
  19768. already includes a cover text for the same cover, previously added
  19769. by you or by arrangement made by the same entity you are acting on
  19770. behalf of, you may not add another; but you may replace the old
  19771. one, on explicit permission from the previous publisher that added
  19772. the old one.
  19773. The author(s) and publisher(s) of the Document do not by this
  19774. License give permission to use their names for publicity for or to
  19775. assert or imply endorsement of any Modified Version.
  19776. 5. COMBINING DOCUMENTS
  19777. You may combine the Document with other documents released under
  19778. this License, under the terms defined in section 4 above for
  19779. modified versions, provided that you include in the combination all
  19780. of the Invariant Sections of all of the original documents,
  19781. unmodified, and list them all as Invariant Sections of your
  19782. combined work in its license notice, and that you preserve all
  19783. their Warranty Disclaimers.
  19784. The combined work need only contain one copy of this License, and
  19785. multiple identical Invariant Sections may be replaced with a single
  19786. copy. If there are multiple Invariant Sections with the same name
  19787. but different contents, make the title of each such section unique
  19788. by adding at the end of it, in parentheses, the name of the
  19789. original author or publisher of that section if known, or else a
  19790. unique number. Make the same adjustment to the section titles in
  19791. the list of Invariant Sections in the license notice of the
  19792. combined work.
  19793. In the combination, you must combine any sections Entitled
  19794. "History" in the various original documents, forming one section
  19795. Entitled "History"; likewise combine any sections Entitled
  19796. "Acknowledgements", and any sections Entitled "Dedications". You
  19797. must delete all sections Entitled "Endorsements."
  19798. 6. COLLECTIONS OF DOCUMENTS
  19799. You may make a collection consisting of the Document and other
  19800. documents released under this License, and replace the individual
  19801. copies of this License in the various documents with a single copy
  19802. that is included in the collection, provided that you follow the
  19803. rules of this License for verbatim copying of each of the documents
  19804. in all other respects.
  19805. You may extract a single document from such a collection, and
  19806. distribute it individually under this License, provided you insert
  19807. a copy of this License into the extracted document, and follow this
  19808. License in all other respects regarding verbatim copying of that
  19809. document.
  19810. 7. AGGREGATION WITH INDEPENDENT WORKS
  19811. A compilation of the Document or its derivatives with other
  19812. separate and independent documents or works, in or on a volume of a
  19813. storage or distribution medium, is called an "aggregate" if the
  19814. copyright resulting from the compilation is not used to limit the
  19815. legal rights of the compilation's users beyond what the individual
  19816. works permit. When the Document is included in an aggregate, this
  19817. License does not apply to the other works in the aggregate which
  19818. are not themselves derivative works of the Document.
  19819. If the Cover Text requirement of section 3 is applicable to these
  19820. copies of the Document, then if the Document is less than one half
  19821. of the entire aggregate, the Document's Cover Texts may be placed
  19822. on covers that bracket the Document within the aggregate, or the
  19823. electronic equivalent of covers if the Document is in electronic
  19824. form. Otherwise they must appear on printed covers that bracket
  19825. the whole aggregate.
  19826. 8. TRANSLATION
  19827. Translation is considered a kind of modification, so you may
  19828. distribute translations of the Document under the terms of section
  19829. 4. Replacing Invariant Sections with translations requires special
  19830. permission from their copyright holders, but you may include
  19831. translations of some or all Invariant Sections in addition to the
  19832. original versions of these Invariant Sections. You may include a
  19833. translation of this License, and all the license notices in the
  19834. Document, and any Warranty Disclaimers, provided that you also
  19835. include the original English version of this License and the
  19836. original versions of those notices and disclaimers. In case of a
  19837. disagreement between the translation and the original version of
  19838. this License or a notice or disclaimer, the original version will
  19839. prevail.
  19840. If a section in the Document is Entitled "Acknowledgements",
  19841. "Dedications", or "History", the requirement (section 4) to
  19842. Preserve its Title (section 1) will typically require changing the
  19843. actual title.
  19844. 9. TERMINATION
  19845. You may not copy, modify, sublicense, or distribute the Document
  19846. except as expressly provided under this License. Any attempt
  19847. otherwise to copy, modify, sublicense, or distribute it is void,
  19848. and will automatically terminate your rights under this License.
  19849. However, if you cease all violation of this License, then your
  19850. license from a particular copyright holder is reinstated (a)
  19851. provisionally, unless and until the copyright holder explicitly and
  19852. finally terminates your license, and (b) permanently, if the
  19853. copyright holder fails to notify you of the violation by some
  19854. reasonable means prior to 60 days after the cessation.
  19855. Moreover, your license from a particular copyright holder is
  19856. reinstated permanently if the copyright holder notifies you of the
  19857. violation by some reasonable means, this is the first time you have
  19858. received notice of violation of this License (for any work) from
  19859. that copyright holder, and you cure the violation prior to 30 days
  19860. after your receipt of the notice.
  19861. Termination of your rights under this section does not terminate
  19862. the licenses of parties who have received copies or rights from you
  19863. under this License. If your rights have been terminated and not
  19864. permanently reinstated, receipt of a copy of some or all of the
  19865. same material does not give you any rights to use it.
  19866. 10. FUTURE REVISIONS OF THIS LICENSE
  19867. The Free Software Foundation may publish new, revised versions of
  19868. the GNU Free Documentation License from time to time. Such new
  19869. versions will be similar in spirit to the present version, but may
  19870. differ in detail to address new problems or concerns. See
  19871. <http://www.gnu.org/copyleft/>.
  19872. Each version of the License is given a distinguishing version
  19873. number. If the Document specifies that a particular numbered
  19874. version of this License "or any later version" applies to it, you
  19875. have the option of following the terms and conditions either of
  19876. that specified version or of any later version that has been
  19877. published (not as a draft) by the Free Software Foundation. If the
  19878. Document does not specify a version number of this License, you may
  19879. choose any version ever published (not as a draft) by the Free
  19880. Software Foundation. If the Document specifies that a proxy can
  19881. decide which future versions of this License can be used, that
  19882. proxy's public statement of acceptance of a version permanently
  19883. authorizes you to choose that version for the Document.
  19884. 11. RELICENSING
  19885. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  19886. World Wide Web server that publishes copyrightable works and also
  19887. provides prominent facilities for anybody to edit those works. A
  19888. public wiki that anybody can edit is an example of such a server.
  19889. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  19890. site means any set of copyrightable works thus published on the MMC
  19891. site.
  19892. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  19893. license published by Creative Commons Corporation, a not-for-profit
  19894. corporation with a principal place of business in San Francisco,
  19895. California, as well as future copyleft versions of that license
  19896. published by that same organization.
  19897. "Incorporate" means to publish or republish a Document, in whole or
  19898. in part, as part of another Document.
  19899. An MMC is "eligible for relicensing" if it is licensed under this
  19900. License, and if all works that were first published under this
  19901. License somewhere other than this MMC, and subsequently
  19902. incorporated in whole or in part into the MMC, (1) had no cover
  19903. texts or invariant sections, and (2) were thus incorporated prior
  19904. to November 1, 2008.
  19905. The operator of an MMC Site may republish an MMC contained in the
  19906. site under CC-BY-SA on the same site at any time before August 1,
  19907. 2009, provided the MMC is eligible for relicensing.
  19908. ADDENDUM: How to use this License for your documents
  19909. ====================================================
  19910. To use this License in a document you have written, include a copy of
  19911. the License in the document and put the following copyright and license
  19912. notices just after the title page:
  19913. Copyright (C) YEAR YOUR NAME.
  19914. Permission is granted to copy, distribute and/or modify this document
  19915. under the terms of the GNU Free Documentation License, Version 1.3
  19916. or any later version published by the Free Software Foundation;
  19917. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  19918. Texts. A copy of the license is included in the section entitled ``GNU
  19919. Free Documentation License''.
  19920. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  19921. Texts, replace the "with...Texts." line with this:
  19922. with the Invariant Sections being LIST THEIR TITLES, with
  19923. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  19924. being LIST.
  19925. If you have Invariant Sections without Cover Texts, or some other
  19926. combination of the three, merge those two alternatives to suit the
  19927. situation.
  19928. If your document contains nontrivial examples of program code, we
  19929. recommend releasing these examples in parallel under your choice of free
  19930. software license, such as the GNU General Public License, to permit
  19931. their use in free software.
  19932. 
  19933. File: as.info, Node: AS Index, Prev: GNU Free Documentation License, Up: Top
  19934. AS Index
  19935. ********
  19936. �[index�]
  19937. * Menu:
  19938. * \" (doublequote character): Strings. (line 43)
  19939. * \b (backspace character): Strings. (line 15)
  19940. * \DDD (octal character code): Strings. (line 30)
  19941. * \f (formfeed character): Strings. (line 18)
  19942. * \n (newline character): Strings. (line 21)
  19943. * \r (carriage return character): Strings. (line 24)
  19944. * \t (tab): Strings. (line 27)
  19945. * \XD... (hex character code): Strings. (line 36)
  19946. * \\ (\ character): Strings. (line 40)
  19947. * #: Comments. (line 33)
  19948. * #APP: Preprocessing. (line 26)
  19949. * #NO_APP: Preprocessing. (line 26)
  19950. * $ in symbol names: D10V-Chars. (line 46)
  19951. * $ in symbol names <1>: D30V-Chars. (line 70)
  19952. * $ in symbol names <2>: Meta-Chars. (line 10)
  19953. * $ in symbol names <3>: SH-Chars. (line 15)
  19954. * $a: ARM Mapping Symbols.
  19955. (line 9)
  19956. * $acos math builtin, TIC54X: TIC54X-Builtins. (line 10)
  19957. * $asin math builtin, TIC54X: TIC54X-Builtins. (line 13)
  19958. * $atan math builtin, TIC54X: TIC54X-Builtins. (line 16)
  19959. * $atan2 math builtin, TIC54X: TIC54X-Builtins. (line 19)
  19960. * $ceil math builtin, TIC54X: TIC54X-Builtins. (line 22)
  19961. * $cos math builtin, TIC54X: TIC54X-Builtins. (line 28)
  19962. * $cosh math builtin, TIC54X: TIC54X-Builtins. (line 25)
  19963. * $cvf math builtin, TIC54X: TIC54X-Builtins. (line 31)
  19964. * $cvi math builtin, TIC54X: TIC54X-Builtins. (line 34)
  19965. * $d: AArch64 Mapping Symbols.
  19966. (line 12)
  19967. * $d <1>: ARM Mapping Symbols.
  19968. (line 15)
  19969. * $exp math builtin, TIC54X: TIC54X-Builtins. (line 37)
  19970. * $fabs math builtin, TIC54X: TIC54X-Builtins. (line 40)
  19971. * $firstch subsym builtin, TIC54X: TIC54X-Macros. (line 26)
  19972. * $floor math builtin, TIC54X: TIC54X-Builtins. (line 43)
  19973. * $fmod math builtin, TIC54X: TIC54X-Builtins. (line 47)
  19974. * $int math builtin, TIC54X: TIC54X-Builtins. (line 50)
  19975. * $iscons subsym builtin, TIC54X: TIC54X-Macros. (line 43)
  19976. * $isdefed subsym builtin, TIC54X: TIC54X-Macros. (line 34)
  19977. * $ismember subsym builtin, TIC54X: TIC54X-Macros. (line 38)
  19978. * $isname subsym builtin, TIC54X: TIC54X-Macros. (line 47)
  19979. * $isreg subsym builtin, TIC54X: TIC54X-Macros. (line 50)
  19980. * $lastch subsym builtin, TIC54X: TIC54X-Macros. (line 30)
  19981. * $ldexp math builtin, TIC54X: TIC54X-Builtins. (line 53)
  19982. * $log math builtin, TIC54X: TIC54X-Builtins. (line 59)
  19983. * $log10 math builtin, TIC54X: TIC54X-Builtins. (line 56)
  19984. * $max math builtin, TIC54X: TIC54X-Builtins. (line 62)
  19985. * $min math builtin, TIC54X: TIC54X-Builtins. (line 65)
  19986. * $pow math builtin, TIC54X: TIC54X-Builtins. (line 68)
  19987. * $round math builtin, TIC54X: TIC54X-Builtins. (line 71)
  19988. * $sgn math builtin, TIC54X: TIC54X-Builtins. (line 74)
  19989. * $sin math builtin, TIC54X: TIC54X-Builtins. (line 77)
  19990. * $sinh math builtin, TIC54X: TIC54X-Builtins. (line 80)
  19991. * $sqrt math builtin, TIC54X: TIC54X-Builtins. (line 83)
  19992. * $structacc subsym builtin, TIC54X: TIC54X-Macros. (line 57)
  19993. * $structsz subsym builtin, TIC54X: TIC54X-Macros. (line 54)
  19994. * $symcmp subsym builtin, TIC54X: TIC54X-Macros. (line 23)
  19995. * $symlen subsym builtin, TIC54X: TIC54X-Macros. (line 20)
  19996. * $t: ARM Mapping Symbols.
  19997. (line 12)
  19998. * $tan math builtin, TIC54X: TIC54X-Builtins. (line 86)
  19999. * $tanh math builtin, TIC54X: TIC54X-Builtins. (line 89)
  20000. * $trunc math builtin, TIC54X: TIC54X-Builtins. (line 92)
  20001. * $x: AArch64 Mapping Symbols.
  20002. (line 9)
  20003. * %gp: RX-Modifiers. (line 6)
  20004. * %gpreg: RX-Modifiers. (line 22)
  20005. * %pidreg: RX-Modifiers. (line 25)
  20006. * -+ option, VAX/VMS: VAX-Opts. (line 71)
  20007. * --: Command Line. (line 10)
  20008. * --32 option, i386: i386-Options. (line 8)
  20009. * --32 option, x86-64: i386-Options. (line 8)
  20010. * --64 option, i386: i386-Options. (line 8)
  20011. * --64 option, x86-64: i386-Options. (line 8)
  20012. * --absolute-literals: Xtensa Options. (line 39)
  20013. * --allow-reg-prefix: SH Options. (line 9)
  20014. * --alternate: alternate. (line 6)
  20015. * --auto-litpools: Xtensa Options. (line 22)
  20016. * --base-size-default-16: M68K-Opts. (line 66)
  20017. * --base-size-default-32: M68K-Opts. (line 66)
  20018. * --big: SH Options. (line 9)
  20019. * --bitwise-or option, M680x0: M68K-Opts. (line 59)
  20020. * --compress-debug-sections= option: Overview. (line 386)
  20021. * --disp-size-default-16: M68K-Opts. (line 75)
  20022. * --disp-size-default-32: M68K-Opts. (line 75)
  20023. * --divide option, i386: i386-Options. (line 25)
  20024. * --dsp: SH Options. (line 9)
  20025. * --emulation=crisaout command-line option, CRIS: CRIS-Opts. (line 9)
  20026. * --emulation=criself command-line option, CRIS: CRIS-Opts. (line 9)
  20027. * --enforce-aligned-data: Sparc-Aligned-Data. (line 11)
  20028. * --fatal-warnings: W. (line 16)
  20029. * --fdpic: SH Options. (line 31)
  20030. * --fix-v4bx command-line option, ARM: ARM Options. (line 370)
  20031. * --fixed-special-register-names command-line option, MMIX: MMIX-Opts.
  20032. (line 8)
  20033. * --force-long-branches: M68HC11-Opts. (line 81)
  20034. * --generate-example: M68HC11-Opts. (line 98)
  20035. * --globalize-symbols command-line option, MMIX: MMIX-Opts. (line 12)
  20036. * --gnu-syntax command-line option, MMIX: MMIX-Opts. (line 16)
  20037. * --linker-allocated-gregs command-line option, MMIX: MMIX-Opts.
  20038. (line 67)
  20039. * --listing-cont-lines: listing. (line 34)
  20040. * --listing-lhs-width: listing. (line 16)
  20041. * --listing-lhs-width2: listing. (line 21)
  20042. * --listing-rhs-width: listing. (line 28)
  20043. * --little: SH Options. (line 9)
  20044. * --longcalls: Xtensa Options. (line 53)
  20045. * --march=ARCHITECTURE command-line option, CRIS: CRIS-Opts. (line 34)
  20046. * --MD: MD. (line 6)
  20047. * --mul-bug-abort command-line option, CRIS: CRIS-Opts. (line 63)
  20048. * --no-absolute-literals: Xtensa Options. (line 39)
  20049. * --no-auto-litpools: Xtensa Options. (line 22)
  20050. * --no-expand command-line option, MMIX: MMIX-Opts. (line 31)
  20051. * --no-longcalls: Xtensa Options. (line 53)
  20052. * --no-merge-gregs command-line option, MMIX: MMIX-Opts. (line 36)
  20053. * --no-mul-bug-abort command-line option, CRIS: CRIS-Opts. (line 63)
  20054. * --no-pad-sections: no-pad-sections. (line 6)
  20055. * --no-predefined-syms command-line option, MMIX: MMIX-Opts. (line 22)
  20056. * --no-pushj-stubs command-line option, MMIX: MMIX-Opts. (line 54)
  20057. * --no-stubs command-line option, MMIX: MMIX-Opts. (line 54)
  20058. * --no-target-align: Xtensa Options. (line 46)
  20059. * --no-text-section-literals: Xtensa Options. (line 7)
  20060. * --no-trampolines: Xtensa Options. (line 74)
  20061. * --no-transform: Xtensa Options. (line 62)
  20062. * --no-underscore command-line option, CRIS: CRIS-Opts. (line 15)
  20063. * --no-warn: W. (line 11)
  20064. * --pcrel: M68K-Opts. (line 87)
  20065. * --pic command-line option, CRIS: CRIS-Opts. (line 27)
  20066. * --print-insn-syntax: M68HC11-Opts. (line 87)
  20067. * --print-insn-syntax <1>: XGATE-Opts. (line 25)
  20068. * --print-opcodes: M68HC11-Opts. (line 91)
  20069. * --print-opcodes <1>: XGATE-Opts. (line 29)
  20070. * --register-prefix-optional option, M680x0: M68K-Opts. (line 46)
  20071. * --relax: SH Options. (line 9)
  20072. * --relax command-line option, MMIX: MMIX-Opts. (line 19)
  20073. * --rename-section: Xtensa Options. (line 70)
  20074. * --renesas: SH Options. (line 9)
  20075. * --sectname-subst: Section. (line 71)
  20076. * --short-branches: M68HC11-Opts. (line 67)
  20077. * --small: SH Options. (line 9)
  20078. * --statistics: statistics. (line 6)
  20079. * --strict-direct-mode: M68HC11-Opts. (line 57)
  20080. * --target-align: Xtensa Options. (line 46)
  20081. * --text-section-literals: Xtensa Options. (line 7)
  20082. * --traditional-format: traditional-format. (line 6)
  20083. * --trampolines: Xtensa Options. (line 74)
  20084. * --transform: Xtensa Options. (line 62)
  20085. * --underscore command-line option, CRIS: CRIS-Opts. (line 15)
  20086. * --warn: W. (line 19)
  20087. * --x32 option, i386: i386-Options. (line 8)
  20088. * --x32 option, x86-64: i386-Options. (line 8)
  20089. * --xgate-ramoffset: M68HC11-Opts. (line 36)
  20090. * -1 option, VAX/VMS: VAX-Opts. (line 77)
  20091. * -32addr command-line option, Alpha: Alpha Options. (line 57)
  20092. * -a: a. (line 6)
  20093. * -ac: a. (line 6)
  20094. * -ad: a. (line 6)
  20095. * -ag: a. (line 6)
  20096. * -ah: a. (line 6)
  20097. * -al: a. (line 6)
  20098. * -Aleon: Sparc-Opts. (line 25)
  20099. * -an: a. (line 6)
  20100. * -as: a. (line 6)
  20101. * -Asparc: Sparc-Opts. (line 25)
  20102. * -Asparcfmaf: Sparc-Opts. (line 25)
  20103. * -Asparcima: Sparc-Opts. (line 25)
  20104. * -Asparclet: Sparc-Opts. (line 25)
  20105. * -Asparclite: Sparc-Opts. (line 25)
  20106. * -Asparcvis: Sparc-Opts. (line 25)
  20107. * -Asparcvis2: Sparc-Opts. (line 25)
  20108. * -Asparcvis3: Sparc-Opts. (line 25)
  20109. * -Asparcvis3r: Sparc-Opts. (line 25)
  20110. * -Av6: Sparc-Opts. (line 25)
  20111. * -Av7: Sparc-Opts. (line 25)
  20112. * -Av8: Sparc-Opts. (line 25)
  20113. * -Av9: Sparc-Opts. (line 25)
  20114. * -Av9a: Sparc-Opts. (line 25)
  20115. * -Av9b: Sparc-Opts. (line 25)
  20116. * -Av9c: Sparc-Opts. (line 25)
  20117. * -Av9d: Sparc-Opts. (line 25)
  20118. * -Av9e: Sparc-Opts. (line 25)
  20119. * -Av9m: Sparc-Opts. (line 25)
  20120. * -Av9v: Sparc-Opts. (line 25)
  20121. * -big option, M32R: M32R-Opts. (line 35)
  20122. * -colonless command-line option, Z80: Z80 Options. (line 30)
  20123. * -D: D. (line 6)
  20124. * -D, ignored on VAX: VAX-Opts. (line 11)
  20125. * -d, VAX option: VAX-Opts. (line 16)
  20126. * -eabi= command-line option, ARM: ARM Options. (line 346)
  20127. * -EB command-line option, AArch64: AArch64 Options. (line 6)
  20128. * -EB command-line option, ARC: ARC Options. (line 84)
  20129. * -EB command-line option, ARM: ARM Options. (line 351)
  20130. * -EB command-line option, BPF: BPF Options. (line 6)
  20131. * -EB option (MIPS): MIPS Options. (line 13)
  20132. * -EB option, M32R: M32R-Opts. (line 39)
  20133. * -EB option, TILE-Gx: TILE-Gx Options. (line 11)
  20134. * -EL command-line option, AArch64: AArch64 Options. (line 10)
  20135. * -EL command-line option, ARC: ARC Options. (line 88)
  20136. * -EL command-line option, ARM: ARM Options. (line 362)
  20137. * -EL command-line option, BPF: BPF Options. (line 10)
  20138. * -EL option (MIPS): MIPS Options. (line 13)
  20139. * -EL option, M32R: M32R-Opts. (line 32)
  20140. * -EL option, TILE-Gx: TILE-Gx Options. (line 11)
  20141. * -ez80 command-line option, Z80: Z80 Options. (line 19)
  20142. * -ez80-adl command-line option, Z80: Z80 Options. (line 22)
  20143. * -f: f. (line 6)
  20144. * -F command-line option, Alpha: Alpha Options. (line 57)
  20145. * -fno-pic option, RISC-V: RISC-V-Options. (line 12)
  20146. * -fp-d command-line option, Z80: Z80 Options. (line 41)
  20147. * -fp-s command-line option, Z80: Z80 Options. (line 37)
  20148. * -fpic option, RISC-V: RISC-V-Options. (line 8)
  20149. * -full command-line option, Z80: Z80 Options. (line 48)
  20150. * -g command-line option, Alpha: Alpha Options. (line 47)
  20151. * -G command-line option, Alpha: Alpha Options. (line 53)
  20152. * -G option (MIPS): MIPS Options. (line 8)
  20153. * -h option, VAX/VMS: VAX-Opts. (line 45)
  20154. * -H option, VAX/VMS: VAX-Opts. (line 81)
  20155. * -I PATH: I. (line 6)
  20156. * -ignore-parallel-conflicts option, M32RX: M32R-Opts. (line 87)
  20157. * -Ip option, M32RX: M32R-Opts. (line 97)
  20158. * -J, ignored on VAX: VAX-Opts. (line 27)
  20159. * -K: K. (line 6)
  20160. * -k command-line option, ARM: ARM Options. (line 366)
  20161. * -KPIC option, M32R: M32R-Opts. (line 42)
  20162. * -KPIC option, MIPS: MIPS Options. (line 21)
  20163. * -L: L. (line 6)
  20164. * -l option, M680x0: M68K-Opts. (line 34)
  20165. * -little option, M32R: M32R-Opts. (line 27)
  20166. * -local-prefix command-line option, Z80: Z80 Options. (line 25)
  20167. * -M: M. (line 6)
  20168. * -m11/03: PDP-11-Options. (line 140)
  20169. * -m11/04: PDP-11-Options. (line 143)
  20170. * -m11/05: PDP-11-Options. (line 146)
  20171. * -m11/10: PDP-11-Options. (line 146)
  20172. * -m11/15: PDP-11-Options. (line 149)
  20173. * -m11/20: PDP-11-Options. (line 149)
  20174. * -m11/21: PDP-11-Options. (line 152)
  20175. * -m11/23: PDP-11-Options. (line 155)
  20176. * -m11/24: PDP-11-Options. (line 155)
  20177. * -m11/34: PDP-11-Options. (line 158)
  20178. * -m11/34a: PDP-11-Options. (line 161)
  20179. * -m11/35: PDP-11-Options. (line 164)
  20180. * -m11/40: PDP-11-Options. (line 164)
  20181. * -m11/44: PDP-11-Options. (line 167)
  20182. * -m11/45: PDP-11-Options. (line 170)
  20183. * -m11/50: PDP-11-Options. (line 170)
  20184. * -m11/53: PDP-11-Options. (line 173)
  20185. * -m11/55: PDP-11-Options. (line 170)
  20186. * -m11/60: PDP-11-Options. (line 176)
  20187. * -m11/70: PDP-11-Options. (line 170)
  20188. * -m11/73: PDP-11-Options. (line 173)
  20189. * -m11/83: PDP-11-Options. (line 173)
  20190. * -m11/84: PDP-11-Options. (line 173)
  20191. * -m11/93: PDP-11-Options. (line 173)
  20192. * -m11/94: PDP-11-Options. (line 173)
  20193. * -m16c option, M16C: M32C-Opts. (line 12)
  20194. * -m31 option, s390: s390 Options. (line 8)
  20195. * -m32 option, TILE-Gx: TILE-Gx Options. (line 8)
  20196. * -m32bit-doubles: RX-Opts. (line 9)
  20197. * -m32c option, M32C: M32C-Opts. (line 9)
  20198. * -m32r option, M32R: M32R-Opts. (line 21)
  20199. * -m32rx option, M32R2: M32R-Opts. (line 17)
  20200. * -m32rx option, M32RX: M32R-Opts. (line 9)
  20201. * -m4byte-align command-line option, V850: V850 Options. (line 90)
  20202. * -m64 option, s390: s390 Options. (line 8)
  20203. * -m64 option, TILE-Gx: TILE-Gx Options. (line 8)
  20204. * -m64bit-doubles: RX-Opts. (line 15)
  20205. * -m68000 and related options: M68K-Opts. (line 99)
  20206. * -m68hc11: M68HC11-Opts. (line 9)
  20207. * -m68hc12: M68HC11-Opts. (line 14)
  20208. * -m68hcs12: M68HC11-Opts. (line 21)
  20209. * -m8byte-align command-line option, V850: V850 Options. (line 86)
  20210. * -mabi= command-line option, AArch64: AArch64 Options. (line 14)
  20211. * -mabi=ABI option, RISC-V: RISC-V-Options. (line 19)
  20212. * -madd-bnd-prefix option, i386: i386-Options. (line 154)
  20213. * -madd-bnd-prefix option, x86-64: i386-Options. (line 154)
  20214. * -malign-branch-boundary= option, i386: i386-Options. (line 200)
  20215. * -malign-branch-boundary= option, x86-64: i386-Options. (line 200)
  20216. * -malign-branch-prefix-size= option, i386: i386-Options. (line 215)
  20217. * -malign-branch-prefix-size= option, x86-64: i386-Options. (line 215)
  20218. * -malign-branch= option, i386: i386-Options. (line 207)
  20219. * -malign-branch= option, x86-64: i386-Options. (line 207)
  20220. * -mall: PDP-11-Options. (line 26)
  20221. * -mall-enabled command-line option, LM32: LM32 Options. (line 30)
  20222. * -mall-extensions: PDP-11-Options. (line 26)
  20223. * -mall-opcodes command-line option, AVR: AVR Options. (line 111)
  20224. * -mamd64 option, x86-64: i386-Options. (line 245)
  20225. * -mapcs-26 command-line option, ARM: ARM Options. (line 318)
  20226. * -mapcs-32 command-line option, ARM: ARM Options. (line 318)
  20227. * -mapcs-float command-line option, ARM: ARM Options. (line 332)
  20228. * -mapcs-reentrant command-line option, ARM: ARM Options. (line 337)
  20229. * -march= command-line option, AArch64: AArch64 Options. (line 42)
  20230. * -march= command-line option, ARM: ARM Options. (line 84)
  20231. * -march= command-line option, M680x0: M68K-Opts. (line 8)
  20232. * -march= command-line option, TIC6X: TIC6X Options. (line 6)
  20233. * -march= option, i386: i386-Options. (line 32)
  20234. * -march= option, s390: s390 Options. (line 25)
  20235. * -march= option, x86-64: i386-Options. (line 32)
  20236. * -march=ISA option, RISC-V: RISC-V-Options. (line 15)
  20237. * -matpcs command-line option, ARM: ARM Options. (line 324)
  20238. * -mavxscalar= option, i386: i386-Options. (line 99)
  20239. * -mavxscalar= option, x86-64: i386-Options. (line 99)
  20240. * -mbarrel-shift-enabled command-line option, LM32: LM32 Options.
  20241. (line 12)
  20242. * -mbig-endian: RX-Opts. (line 20)
  20243. * -mbig-obj option, x86-64: i386-Options. (line 168)
  20244. * -mbranches-within-32B-boundaries option, i386: i386-Options.
  20245. (line 220)
  20246. * -mbranches-within-32B-boundaries option, x86-64: i386-Options.
  20247. (line 220)
  20248. * -mbreak-enabled command-line option, LM32: LM32 Options. (line 27)
  20249. * -mccs command-line option, ARM: ARM Options. (line 379)
  20250. * -mcis: PDP-11-Options. (line 32)
  20251. * -mcode-density command-line option, ARC: ARC Options. (line 93)
  20252. * -mconstant-gp command-line option, IA-64: IA-64 Options. (line 6)
  20253. * -mCPU command-line option, Alpha: Alpha Options. (line 6)
  20254. * -mcpu option, cpu: TIC54X-Opts. (line 15)
  20255. * -mcpu=: RX-Opts. (line 75)
  20256. * -mcpu= command-line option, AArch64: AArch64 Options. (line 19)
  20257. * -mcpu= command-line option, ARM: ARM Options. (line 6)
  20258. * -mcpu= command-line option, Blackfin: Blackfin Options. (line 6)
  20259. * -mcpu= command-line option, M680x0: M68K-Opts. (line 14)
  20260. * -mcpu=CPU command-line option, ARC: ARC Options. (line 10)
  20261. * -mcsm: PDP-11-Options. (line 43)
  20262. * -mdcache-enabled command-line option, LM32: LM32 Options. (line 24)
  20263. * -mdebug command-line option, Alpha: Alpha Options. (line 25)
  20264. * -mdivide-enabled command-line option, LM32: LM32 Options. (line 9)
  20265. * -mdollar-hex option, dollar-hex: S12Z Options. (line 17)
  20266. * -mdpfp command-line option, ARC: ARC Options. (line 108)
  20267. * -mdsbt command-line option, TIC6X: TIC6X Options. (line 13)
  20268. * -me option, stderr redirect: TIC54X-Opts. (line 20)
  20269. * -meis: PDP-11-Options. (line 46)
  20270. * -mepiphany command-line option, Epiphany: Epiphany Options.
  20271. (line 9)
  20272. * -mepiphany16 command-line option, Epiphany: Epiphany Options.
  20273. (line 13)
  20274. * -merrors-to-file option, stderr redirect: TIC54X-Opts. (line 20)
  20275. * -mesa option, s390: s390 Options. (line 17)
  20276. * -mevexlig= option, i386: i386-Options. (line 120)
  20277. * -mevexlig= option, x86-64: i386-Options. (line 120)
  20278. * -mevexrcig= option, i386: i386-Options. (line 235)
  20279. * -mevexrcig= option, x86-64: i386-Options. (line 235)
  20280. * -mevexwig= option, i386: i386-Options. (line 130)
  20281. * -mevexwig= option, x86-64: i386-Options. (line 130)
  20282. * -mf option, far-mode: TIC54X-Opts. (line 8)
  20283. * -mf11: PDP-11-Options. (line 122)
  20284. * -mfar-mode option, far-mode: TIC54X-Opts. (line 8)
  20285. * -mfdpic command-line option, Blackfin: Blackfin Options. (line 19)
  20286. * -mfence-as-lock-add= option, i386: i386-Options. (line 181)
  20287. * -mfence-as-lock-add= option, x86-64: i386-Options. (line 181)
  20288. * -mfis: PDP-11-Options. (line 51)
  20289. * -mfloat-abi= command-line option, ARM: ARM Options. (line 341)
  20290. * -mfp-11: PDP-11-Options. (line 56)
  20291. * -mfp16-format= command-line option: ARM Options. (line 279)
  20292. * -mfpp: PDP-11-Options. (line 56)
  20293. * -mfpu: PDP-11-Options. (line 56)
  20294. * -mfpu= command-line option, ARM: ARM Options. (line 255)
  20295. * -mfpuda command-line option, ARC: ARC Options. (line 111)
  20296. * -mgcc-abi: RX-Opts. (line 63)
  20297. * -mgcc-abi command-line option, V850: V850 Options. (line 79)
  20298. * -mgcc-isr command-line option, AVR: AVR Options. (line 132)
  20299. * -mhard-float command-line option, V850: V850 Options. (line 101)
  20300. * -micache-enabled command-line option, LM32: LM32 Options. (line 21)
  20301. * -mimplicit-it command-line option, ARM: ARM Options. (line 302)
  20302. * -mint-register: RX-Opts. (line 57)
  20303. * -mintel64 option, x86-64: i386-Options. (line 245)
  20304. * -mip2022 option, IP2K: IP2K-Opts. (line 14)
  20305. * -mip2022ext option, IP2022: IP2K-Opts. (line 9)
  20306. * -mj11: PDP-11-Options. (line 126)
  20307. * -mka11: PDP-11-Options. (line 92)
  20308. * -mkb11: PDP-11-Options. (line 95)
  20309. * -mkd11a: PDP-11-Options. (line 98)
  20310. * -mkd11b: PDP-11-Options. (line 101)
  20311. * -mkd11d: PDP-11-Options. (line 104)
  20312. * -mkd11e: PDP-11-Options. (line 107)
  20313. * -mkd11f: PDP-11-Options. (line 110)
  20314. * -mkd11h: PDP-11-Options. (line 110)
  20315. * -mkd11k: PDP-11-Options. (line 114)
  20316. * -mkd11q: PDP-11-Options. (line 110)
  20317. * -mkd11z: PDP-11-Options. (line 118)
  20318. * -mkev11: PDP-11-Options. (line 51)
  20319. * -mkev11 <1>: PDP-11-Options. (line 51)
  20320. * -mlimited-eis: PDP-11-Options. (line 64)
  20321. * -mlink-relax command-line option, AVR: AVR Options. (line 123)
  20322. * -mlittle-endian: RX-Opts. (line 26)
  20323. * -mlong: M68HC11-Opts. (line 45)
  20324. * -mlong <1>: XGATE-Opts. (line 13)
  20325. * -mlong-double: M68HC11-Opts. (line 53)
  20326. * -mlong-double <1>: XGATE-Opts. (line 21)
  20327. * -mm9s12x: M68HC11-Opts. (line 27)
  20328. * -mm9s12xg: M68HC11-Opts. (line 32)
  20329. * -mmcu= command-line option, AVR: AVR Options. (line 6)
  20330. * -mmfpt: PDP-11-Options. (line 70)
  20331. * -mmicrocode: PDP-11-Options. (line 83)
  20332. * -mmnemonic= option, i386: i386-Options. (line 137)
  20333. * -mmnemonic= option, x86-64: i386-Options. (line 137)
  20334. * -mmultiply-enabled command-line option, LM32: LM32 Options.
  20335. (line 6)
  20336. * -mmutiproc: PDP-11-Options. (line 73)
  20337. * -mmxps: PDP-11-Options. (line 77)
  20338. * -mnaked-reg option, i386: i386-Options. (line 149)
  20339. * -mnaked-reg option, x86-64: i386-Options. (line 149)
  20340. * -mnan= command-line option, MIPS: MIPS Options. (line 439)
  20341. * -mno-allow-string-insns: RX-Opts. (line 82)
  20342. * -mno-cis: PDP-11-Options. (line 32)
  20343. * -mno-csm: PDP-11-Options. (line 43)
  20344. * -mno-dsbt command-line option, TIC6X: TIC6X Options. (line 13)
  20345. * -mno-eis: PDP-11-Options. (line 46)
  20346. * -mno-extensions: PDP-11-Options. (line 29)
  20347. * -mno-fdpic command-line option, Blackfin: Blackfin Options.
  20348. (line 22)
  20349. * -mno-fis: PDP-11-Options. (line 51)
  20350. * -mno-fp-11: PDP-11-Options. (line 56)
  20351. * -mno-fpp: PDP-11-Options. (line 56)
  20352. * -mno-fpu: PDP-11-Options. (line 56)
  20353. * -mno-kev11: PDP-11-Options. (line 51)
  20354. * -mno-limited-eis: PDP-11-Options. (line 64)
  20355. * -mno-link-relax command-line option, AVR: AVR Options. (line 127)
  20356. * -mno-mfpt: PDP-11-Options. (line 70)
  20357. * -mno-microcode: PDP-11-Options. (line 83)
  20358. * -mno-mutiproc: PDP-11-Options. (line 73)
  20359. * -mno-mxps: PDP-11-Options. (line 77)
  20360. * -mno-pic: PDP-11-Options. (line 11)
  20361. * -mno-pic command-line option, TIC6X: TIC6X Options. (line 36)
  20362. * -mno-regnames option, s390: s390 Options. (line 50)
  20363. * -mno-relax option, RISC-V: RISC-V-Options. (line 31)
  20364. * -mno-skip-bug command-line option, AVR: AVR Options. (line 114)
  20365. * -mno-spl: PDP-11-Options. (line 80)
  20366. * -mno-sym32: MIPS Options. (line 348)
  20367. * -mno-verbose-error command-line option, AArch64: AArch64 Options.
  20368. (line 63)
  20369. * -mno-wrap command-line option, AVR: AVR Options. (line 117)
  20370. * -mnopic command-line option, Blackfin: Blackfin Options. (line 22)
  20371. * -mnps400 command-line option, ARC: ARC Options. (line 102)
  20372. * -momit-lock-prefix= option, i386: i386-Options. (line 172)
  20373. * -momit-lock-prefix= option, x86-64: i386-Options. (line 172)
  20374. * -mpic: PDP-11-Options. (line 11)
  20375. * -mpic command-line option, TIC6X: TIC6X Options. (line 36)
  20376. * -mpid: RX-Opts. (line 50)
  20377. * -mpid= command-line option, TIC6X: TIC6X Options. (line 23)
  20378. * -mreg-prefix=PREFIX option, reg-prefix: S12Z Options. (line 9)
  20379. * -mregnames option, s390: s390 Options. (line 47)
  20380. * -mrelax command-line option, ARC: ARC Options. (line 97)
  20381. * -mrelax command-line option, V850: V850 Options. (line 72)
  20382. * -mrelax option, RISC-V: RISC-V-Options. (line 27)
  20383. * -mrelax-relocations= option, i386: i386-Options. (line 190)
  20384. * -mrelax-relocations= option, x86-64: i386-Options. (line 190)
  20385. * -mrh850-abi command-line option, V850: V850 Options. (line 82)
  20386. * -mrmw command-line option, AVR: AVR Options. (line 120)
  20387. * -mrx-abi: RX-Opts. (line 69)
  20388. * -mshared option, i386: i386-Options. (line 159)
  20389. * -mshared option, x86-64: i386-Options. (line 159)
  20390. * -mshort: M68HC11-Opts. (line 40)
  20391. * -mshort <1>: XGATE-Opts. (line 8)
  20392. * -mshort-double: M68HC11-Opts. (line 49)
  20393. * -mshort-double <1>: XGATE-Opts. (line 17)
  20394. * -msign-extend-enabled command-line option, LM32: LM32 Options.
  20395. (line 15)
  20396. * -msmall-data-limit: RX-Opts. (line 42)
  20397. * -msoft-float command-line option, V850: V850 Options. (line 95)
  20398. * -mspfp command-line option, ARC: ARC Options. (line 105)
  20399. * -mspl: PDP-11-Options. (line 80)
  20400. * -msse-check= option, i386: i386-Options. (line 89)
  20401. * -msse-check= option, x86-64: i386-Options. (line 89)
  20402. * -msse2avx option, i386: i386-Options. (line 85)
  20403. * -msse2avx option, x86-64: i386-Options. (line 85)
  20404. * -msym32: MIPS Options. (line 348)
  20405. * -msyntax= option, i386: i386-Options. (line 143)
  20406. * -msyntax= option, x86-64: i386-Options. (line 143)
  20407. * -mt11: PDP-11-Options. (line 130)
  20408. * -mthumb command-line option, ARM: ARM Options. (line 292)
  20409. * -mthumb-interwork command-line option, ARM: ARM Options. (line 297)
  20410. * -mtune= option, i386: i386-Options. (line 77)
  20411. * -mtune= option, x86-64: i386-Options. (line 77)
  20412. * -mtune=ARCH command-line option, Visium: Visium Options. (line 8)
  20413. * -muse-conventional-section-names: RX-Opts. (line 33)
  20414. * -muse-renesas-section-names: RX-Opts. (line 37)
  20415. * -muser-enabled command-line option, LM32: LM32 Options. (line 18)
  20416. * -mv850 command-line option, V850: V850 Options. (line 23)
  20417. * -mv850any command-line option, V850: V850 Options. (line 41)
  20418. * -mv850e command-line option, V850: V850 Options. (line 29)
  20419. * -mv850e1 command-line option, V850: V850 Options. (line 35)
  20420. * -mv850e2 command-line option, V850: V850 Options. (line 51)
  20421. * -mv850e2v3 command-line option, V850: V850 Options. (line 57)
  20422. * -mv850e2v4 command-line option, V850: V850 Options. (line 63)
  20423. * -mv850e3v5 command-line option, V850: V850 Options. (line 66)
  20424. * -mverbose-error command-line option, AArch64: AArch64 Options.
  20425. (line 59)
  20426. * -mvexwig= option, i386: i386-Options. (line 110)
  20427. * -mvexwig= option, x86-64: i386-Options. (line 110)
  20428. * -mvxworks-pic option, MIPS: MIPS Options. (line 26)
  20429. * -mwarn-areg-zero option, s390: s390 Options. (line 53)
  20430. * -mwarn-deprecated command-line option, ARM: ARM Options. (line 374)
  20431. * -mwarn-syms command-line option, ARM: ARM Options. (line 382)
  20432. * -mx86-used-note= option, i386: i386-Options. (line 228)
  20433. * -mx86-used-note= option, x86-64: i386-Options. (line 228)
  20434. * -mzarch option, s390: s390 Options. (line 17)
  20435. * -m[no-]68851 command-line option, M680x0: M68K-Opts. (line 21)
  20436. * -m[no-]68881 command-line option, M680x0: M68K-Opts. (line 21)
  20437. * -m[no-]div command-line option, M680x0: M68K-Opts. (line 21)
  20438. * -m[no-]emac command-line option, M680x0: M68K-Opts. (line 21)
  20439. * -m[no-]float command-line option, M680x0: M68K-Opts. (line 21)
  20440. * -m[no-]mac command-line option, M680x0: M68K-Opts. (line 21)
  20441. * -m[no-]usp command-line option, M680x0: M68K-Opts. (line 21)
  20442. * -N command-line option, CRIS: CRIS-Opts. (line 59)
  20443. * -nIp option, M32RX: M32R-Opts. (line 101)
  20444. * -no-bitinst, M32R2: M32R-Opts. (line 54)
  20445. * -no-ignore-parallel-conflicts option, M32RX: M32R-Opts. (line 93)
  20446. * -no-mdebug command-line option, Alpha: Alpha Options. (line 25)
  20447. * -no-parallel option, M32RX: M32R-Opts. (line 51)
  20448. * -no-warn-explicit-parallel-conflicts option, M32RX: M32R-Opts.
  20449. (line 79)
  20450. * -no-warn-unmatched-high option, M32R: M32R-Opts. (line 111)
  20451. * -nocpp ignored (MIPS): MIPS Options. (line 351)
  20452. * -noreplace command-line option, Alpha: Alpha Options. (line 40)
  20453. * -o: o. (line 6)
  20454. * -O option, i386: i386-Options. (line 251)
  20455. * -O option, M32RX: M32R-Opts. (line 59)
  20456. * -O option, x86-64: i386-Options. (line 251)
  20457. * -O0 option, i386: i386-Options. (line 251)
  20458. * -O0 option, x86-64: i386-Options. (line 251)
  20459. * -O1 option, i386: i386-Options. (line 251)
  20460. * -O1 option, x86-64: i386-Options. (line 251)
  20461. * -O2 option, i386: i386-Options. (line 251)
  20462. * -O2 option, x86-64: i386-Options. (line 251)
  20463. * -Os option, i386: i386-Options. (line 251)
  20464. * -Os option, x86-64: i386-Options. (line 251)
  20465. * -parallel option, M32RX: M32R-Opts. (line 46)
  20466. * -R: R. (line 6)
  20467. * -r800 command-line option, Z80: Z80 Options. (line 13)
  20468. * -relax command-line option, Alpha: Alpha Options. (line 32)
  20469. * -replace command-line option, Alpha: Alpha Options. (line 40)
  20470. * -S, ignored on VAX: VAX-Opts. (line 11)
  20471. * -sdcc command-line option, Z80: Z80 Options. (line 34)
  20472. * -strict command-line option, Z80: Z80 Options. (line 45)
  20473. * -T, ignored on VAX: VAX-Opts. (line 11)
  20474. * -t, ignored on VAX: VAX-Opts. (line 36)
  20475. * -v: v. (line 6)
  20476. * -V, redundant on VAX: VAX-Opts. (line 22)
  20477. * -version: v. (line 6)
  20478. * -W: W. (line 11)
  20479. * -warn-explicit-parallel-conflicts option, M32RX: M32R-Opts.
  20480. (line 65)
  20481. * -warn-unmatched-high option, M32R: M32R-Opts. (line 105)
  20482. * -Wnp option, M32RX: M32R-Opts. (line 83)
  20483. * -Wnuh option, M32RX: M32R-Opts. (line 117)
  20484. * -Wp option, M32RX: M32R-Opts. (line 75)
  20485. * -wsigned_overflow command-line option, V850: V850 Options. (line 9)
  20486. * -Wuh option, M32RX: M32R-Opts. (line 114)
  20487. * -wunsigned_overflow command-line option, V850: V850 Options.
  20488. (line 16)
  20489. * -x command-line option, MMIX: MMIX-Opts. (line 44)
  20490. * -z180 command-line option, Z80: Z80 Options. (line 16)
  20491. * -z80 command-line option, Z80: Z80 Options. (line 6)
  20492. * -z8001 command-line option, Z8000: Z8000 Options. (line 6)
  20493. * -z8002 command-line option, Z8000: Z8000 Options. (line 9)
  20494. * . (symbol): Dot. (line 6)
  20495. * .align directive, ARM: ARM Directives. (line 6)
  20496. * .align directive, TILE-Gx: TILE-Gx Directives. (line 6)
  20497. * .align directive, TILEPro: TILEPro Directives. (line 6)
  20498. * .allow_suspicious_bundles directive, TILE-Gx: TILE-Gx Directives.
  20499. (line 10)
  20500. * .allow_suspicious_bundles directive, TILEPro: TILEPro Directives.
  20501. (line 10)
  20502. * .arch directive, AArch64: AArch64 Directives. (line 6)
  20503. * .arch directive, ARM: ARM Directives. (line 13)
  20504. * .arch directive, TIC6X: TIC6X Directives. (line 10)
  20505. * .arch_extension directive, AArch64: AArch64 Directives. (line 13)
  20506. * .arch_extension directive, ARM: ARM Directives. (line 21)
  20507. * .arc_attribute directive, ARC: ARC Directives. (line 240)
  20508. * .arm directive, ARM: ARM Directives. (line 30)
  20509. * .attribute directive, RISC-V: RISC-V-Directives. (line 96)
  20510. * .big directive, M32RX: M32R-Directives. (line 88)
  20511. * .bss directive, AArch64: AArch64 Directives. (line 21)
  20512. * .bss directive, ARM: ARM Directives. (line 33)
  20513. * .c6xabi_attribute directive, TIC6X: TIC6X Directives. (line 20)
  20514. * .cantunwind directive, ARM: ARM Directives. (line 36)
  20515. * .cantunwind directive, TIC6X: TIC6X Directives. (line 13)
  20516. * .cfi_b_key_frame directive, AArch64: AArch64 Directives. (line 99)
  20517. * .code directive, ARM: ARM Directives. (line 40)
  20518. * .cpu directive, AArch64: AArch64 Directives. (line 24)
  20519. * .cpu directive, ARM: ARM Directives. (line 44)
  20520. * .dn and .qn directives, ARM: ARM Directives. (line 52)
  20521. * .dword directive, AArch64: AArch64 Directives. (line 28)
  20522. * .eabi_attribute directive, ARM: ARM Directives. (line 76)
  20523. * .ehtype directive, TIC6X: TIC6X Directives. (line 31)
  20524. * .endp directive, TIC6X: TIC6X Directives. (line 34)
  20525. * .even directive, AArch64: AArch64 Directives. (line 31)
  20526. * .even directive, ARM: ARM Directives. (line 105)
  20527. * .extend directive, ARM: ARM Directives. (line 108)
  20528. * .float16 directive, AArch64: AArch64 Directives. (line 35)
  20529. * .float16 directive, ARM: ARM Directives. (line 114)
  20530. * .float16_format directive, ARM: ARM Directives. (line 122)
  20531. * .fnend directive, ARM: ARM Directives. (line 129)
  20532. * .fnstart directive, ARM: ARM Directives. (line 137)
  20533. * .force_thumb directive, ARM: ARM Directives. (line 140)
  20534. * .fpu directive, ARM: ARM Directives. (line 144)
  20535. * .global: MIPS insn. (line 12)
  20536. * .gnu_attribute 4, N directive, MIPS: MIPS FP ABI History.
  20537. (line 6)
  20538. * .gnu_attribute Tag_GNU_MIPS_ABI_FP, N directive, MIPS: MIPS FP ABI History.
  20539. (line 6)
  20540. * .handlerdata directive, ARM: ARM Directives. (line 148)
  20541. * .handlerdata directive, TIC6X: TIC6X Directives. (line 39)
  20542. * .insn: MIPS insn. (line 6)
  20543. * .insn directive, s390: s390 Directives. (line 11)
  20544. * .inst directive, AArch64: AArch64 Directives. (line 41)
  20545. * .inst directive, ARM: ARM Directives. (line 157)
  20546. * .ldouble directive, ARM: ARM Directives. (line 108)
  20547. * .little directive, M32RX: M32R-Directives. (line 82)
  20548. * .long directive, s390: s390 Directives. (line 16)
  20549. * .ltorg directive, AArch64: AArch64 Directives. (line 45)
  20550. * .ltorg directive, ARM: ARM Directives. (line 167)
  20551. * .ltorg directive, s390: s390 Directives. (line 79)
  20552. * .m32r directive, M32R: M32R-Directives. (line 66)
  20553. * .m32r2 directive, M32R2: M32R-Directives. (line 77)
  20554. * .m32rx directive, M32RX: M32R-Directives. (line 72)
  20555. * .machine directive, s390: s390 Directives. (line 84)
  20556. * .machinemode directive, s390: s390 Directives. (line 101)
  20557. * .module: MIPS assembly options.
  20558. (line 6)
  20559. * .module fp=NN directive, MIPS: MIPS FP ABI Selection.
  20560. (line 6)
  20561. * .movsp directive, ARM: ARM Directives. (line 181)
  20562. * .nan directive, MIPS: MIPS NaN Encodings. (line 6)
  20563. * .nocmp directive, TIC6X: TIC6X Directives. (line 47)
  20564. * .no_pointers directive, XStormy16: XStormy16 Directives.
  20565. (line 14)
  20566. * .o: Object. (line 6)
  20567. * .object_arch directive, ARM: ARM Directives. (line 186)
  20568. * .packed directive, ARM: ARM Directives. (line 192)
  20569. * .pad directive, ARM: ARM Directives. (line 197)
  20570. * .param on HPPA: HPPA Directives. (line 19)
  20571. * .personality directive, ARM: ARM Directives. (line 202)
  20572. * .personality directive, TIC6X: TIC6X Directives. (line 55)
  20573. * .personalityindex directive, ARM: ARM Directives. (line 205)
  20574. * .personalityindex directive, TIC6X: TIC6X Directives. (line 51)
  20575. * .pool directive, AArch64: AArch64 Directives. (line 59)
  20576. * .pool directive, ARM: ARM Directives. (line 209)
  20577. * .quad directive, s390: s390 Directives. (line 16)
  20578. * .req directive, AArch64: AArch64 Directives. (line 62)
  20579. * .req directive, ARM: ARM Directives. (line 212)
  20580. * .require_canonical_reg_names directive, TILE-Gx: TILE-Gx Directives.
  20581. (line 19)
  20582. * .require_canonical_reg_names directive, TILEPro: TILEPro Directives.
  20583. (line 19)
  20584. * .save directive, ARM: ARM Directives. (line 217)
  20585. * .scomm directive, TIC6X: TIC6X Directives. (line 58)
  20586. * .secrel32 directive, ARM: ARM Directives. (line 255)
  20587. * .set arch=CPU: MIPS ISA. (line 18)
  20588. * .set at: MIPS Macros. (line 41)
  20589. * .set at=REG: MIPS Macros. (line 35)
  20590. * .set autoextend: MIPS autoextend. (line 6)
  20591. * .set crc: MIPS ASE Instruction Generation Overrides.
  20592. (line 68)
  20593. * .set doublefloat: MIPS Floating-Point.
  20594. (line 12)
  20595. * .set dsp: MIPS ASE Instruction Generation Overrides.
  20596. (line 21)
  20597. * .set dspr2: MIPS ASE Instruction Generation Overrides.
  20598. (line 26)
  20599. * .set dspr3: MIPS ASE Instruction Generation Overrides.
  20600. (line 31)
  20601. * .set ginv: MIPS ASE Instruction Generation Overrides.
  20602. (line 72)
  20603. * .set hardfloat: MIPS Floating-Point.
  20604. (line 6)
  20605. * .set insn32: MIPS assembly options.
  20606. (line 18)
  20607. * .set loongson-cam: MIPS ASE Instruction Generation Overrides.
  20608. (line 81)
  20609. * .set loongson-ext: MIPS ASE Instruction Generation Overrides.
  20610. (line 86)
  20611. * .set loongson-ext2: MIPS ASE Instruction Generation Overrides.
  20612. (line 91)
  20613. * .set loongson-mmi: MIPS ASE Instruction Generation Overrides.
  20614. (line 76)
  20615. * .set macro: MIPS Macros. (line 30)
  20616. * .set mcu: MIPS ASE Instruction Generation Overrides.
  20617. (line 42)
  20618. * .set mdmx: MIPS ASE Instruction Generation Overrides.
  20619. (line 16)
  20620. * .set mips16e2: MIPS ASE Instruction Generation Overrides.
  20621. (line 61)
  20622. * .set mips3d: MIPS ASE Instruction Generation Overrides.
  20623. (line 6)
  20624. * .set mipsN: MIPS ISA. (line 6)
  20625. * .set msa: MIPS ASE Instruction Generation Overrides.
  20626. (line 47)
  20627. * .set mt: MIPS ASE Instruction Generation Overrides.
  20628. (line 37)
  20629. * .set noat: MIPS Macros. (line 41)
  20630. * .set noautoextend: MIPS autoextend. (line 6)
  20631. * .set nocrc: MIPS ASE Instruction Generation Overrides.
  20632. (line 68)
  20633. * .set nodsp: MIPS ASE Instruction Generation Overrides.
  20634. (line 21)
  20635. * .set nodspr2: MIPS ASE Instruction Generation Overrides.
  20636. (line 26)
  20637. * .set nodspr3: MIPS ASE Instruction Generation Overrides.
  20638. (line 31)
  20639. * .set noginv: MIPS ASE Instruction Generation Overrides.
  20640. (line 72)
  20641. * .set noinsn32: MIPS assembly options.
  20642. (line 18)
  20643. * .set noloongson-cam: MIPS ASE Instruction Generation Overrides.
  20644. (line 81)
  20645. * .set noloongson-ext: MIPS ASE Instruction Generation Overrides.
  20646. (line 86)
  20647. * .set noloongson-ext2: MIPS ASE Instruction Generation Overrides.
  20648. (line 91)
  20649. * .set noloongson-mmi: MIPS ASE Instruction Generation Overrides.
  20650. (line 76)
  20651. * .set nomacro: MIPS Macros. (line 30)
  20652. * .set nomcu: MIPS ASE Instruction Generation Overrides.
  20653. (line 42)
  20654. * .set nomdmx: MIPS ASE Instruction Generation Overrides.
  20655. (line 16)
  20656. * .set nomips16e2: MIPS ASE Instruction Generation Overrides.
  20657. (line 61)
  20658. * .set nomips3d: MIPS ASE Instruction Generation Overrides.
  20659. (line 6)
  20660. * .set nomsa: MIPS ASE Instruction Generation Overrides.
  20661. (line 47)
  20662. * .set nomt: MIPS ASE Instruction Generation Overrides.
  20663. (line 37)
  20664. * .set nosmartmips: MIPS ASE Instruction Generation Overrides.
  20665. (line 11)
  20666. * .set nosym32: MIPS Symbol Sizes. (line 6)
  20667. * .set novirt: MIPS ASE Instruction Generation Overrides.
  20668. (line 52)
  20669. * .set noxpa: MIPS ASE Instruction Generation Overrides.
  20670. (line 57)
  20671. * .set pop: MIPS Option Stack. (line 6)
  20672. * .set push: MIPS Option Stack. (line 6)
  20673. * .set singlefloat: MIPS Floating-Point.
  20674. (line 12)
  20675. * .set smartmips: MIPS ASE Instruction Generation Overrides.
  20676. (line 11)
  20677. * .set softfloat: MIPS Floating-Point.
  20678. (line 6)
  20679. * .set sym32: MIPS Symbol Sizes. (line 6)
  20680. * .set virt: MIPS ASE Instruction Generation Overrides.
  20681. (line 52)
  20682. * .set xpa: MIPS ASE Instruction Generation Overrides.
  20683. (line 57)
  20684. * .setfp directive, ARM: ARM Directives. (line 241)
  20685. * .short directive, s390: s390 Directives. (line 16)
  20686. * .syntax directive, ARM: ARM Directives. (line 260)
  20687. * .thumb directive, ARM: ARM Directives. (line 264)
  20688. * .thumb_func directive, ARM: ARM Directives. (line 267)
  20689. * .thumb_set directive, ARM: ARM Directives. (line 278)
  20690. * .tlsdescadd directive, AArch64: AArch64 Directives. (line 70)
  20691. * .tlsdesccall directive, AArch64: AArch64 Directives. (line 73)
  20692. * .tlsdescldr directive, AArch64: AArch64 Directives. (line 76)
  20693. * .tlsdescseq directive, ARM: ARM Directives. (line 285)
  20694. * .unreq directive, AArch64: AArch64 Directives. (line 79)
  20695. * .unreq directive, ARM: ARM Directives. (line 290)
  20696. * .unwind_raw directive, ARM: ARM Directives. (line 301)
  20697. * .v850 directive, V850: V850 Directives. (line 14)
  20698. * .v850e directive, V850: V850 Directives. (line 20)
  20699. * .v850e1 directive, V850: V850 Directives. (line 26)
  20700. * .v850e2 directive, V850: V850 Directives. (line 32)
  20701. * .v850e2v3 directive, V850: V850 Directives. (line 38)
  20702. * .v850e2v4 directive, V850: V850 Directives. (line 44)
  20703. * .v850e3v5 directive, V850: V850 Directives. (line 50)
  20704. * .variant_pcs directive, AArch64: AArch64 Directives. (line 90)
  20705. * .vsave directive, ARM: ARM Directives. (line 308)
  20706. * .xword directive, AArch64: AArch64 Directives. (line 95)
  20707. * .z8001: Z8000 Directives. (line 11)
  20708. * .z8002: Z8000 Directives. (line 15)
  20709. * 16-bit code, i386: i386-16bit. (line 6)
  20710. * 16bit_pointers directive, XStormy16: XStormy16 Directives.
  20711. (line 6)
  20712. * 16byte directive, Nios II: Nios II Directives. (line 28)
  20713. * 16byte directive, PRU: PRU Directives. (line 25)
  20714. * 2byte directive: 2byte. (line 6)
  20715. * 2byte directive, Nios II: Nios II Directives. (line 19)
  20716. * 2byte directive, PRU: PRU Directives. (line 16)
  20717. * 32bit_pointers directive, XStormy16: XStormy16 Directives.
  20718. (line 10)
  20719. * 3DNow!, i386: i386-SIMD. (line 6)
  20720. * 3DNow!, x86-64: i386-SIMD. (line 6)
  20721. * 430 support: MSP430-Dependent. (line 6)
  20722. * 4byte directive: 4byte. (line 6)
  20723. * 4byte directive, Nios II: Nios II Directives. (line 22)
  20724. * 4byte directive, PRU: PRU Directives. (line 19)
  20725. * 8byte directive: 8byte. (line 6)
  20726. * 8byte directive, Nios II: Nios II Directives. (line 25)
  20727. * 8byte directive, PRU: PRU Directives. (line 22)
  20728. * : (label): Statements. (line 31)
  20729. * @gotoff(SYMBOL), ARC modifier: ARC Modifiers. (line 20)
  20730. * @gotpc(SYMBOL), ARC modifier: ARC Modifiers. (line 16)
  20731. * @hi pseudo-op, XStormy16: XStormy16 Opcodes. (line 21)
  20732. * @lo pseudo-op, XStormy16: XStormy16 Opcodes. (line 10)
  20733. * @pcl(SYMBOL), ARC modifier: ARC Modifiers. (line 12)
  20734. * @plt(SYMBOL), ARC modifier: ARC Modifiers. (line 23)
  20735. * @sda(SYMBOL), ARC modifier: ARC Modifiers. (line 28)
  20736. * @word modifier, D10V: D10V-Word. (line 6)
  20737. * _ opcode prefix: Xtensa Opcodes. (line 9)
  20738. * __DYNAMIC__, ARC pre-defined symbol: ARC Symbols. (line 14)
  20739. * __GLOBAL_OFFSET_TABLE__, ARC pre-defined symbol: ARC Symbols.
  20740. (line 11)
  20741. * a.out: Object. (line 6)
  20742. * a.out symbol attributes: a.out Symbols. (line 6)
  20743. * AArch64 floating point (IEEE): AArch64 Floating Point.
  20744. (line 6)
  20745. * AArch64 immediate character: AArch64-Chars. (line 13)
  20746. * AArch64 line comment character: AArch64-Chars. (line 6)
  20747. * AArch64 line separator: AArch64-Chars. (line 10)
  20748. * AArch64 machine directives: AArch64 Directives. (line 6)
  20749. * AArch64 opcodes: AArch64 Opcodes. (line 6)
  20750. * AArch64 options (none): AArch64 Options. (line 6)
  20751. * AArch64 register names: AArch64-Regs. (line 6)
  20752. * AArch64 relocations: AArch64-Relocations.
  20753. (line 6)
  20754. * AArch64 support: AArch64-Dependent. (line 6)
  20755. * abort directive: Abort. (line 6)
  20756. * ABORT directive: ABORT (COFF). (line 6)
  20757. * absolute section: Ld Sections. (line 29)
  20758. * absolute-literals directive: Absolute Literals Directive.
  20759. (line 6)
  20760. * ADDI instructions, relaxation: Xtensa Immediate Relaxation.
  20761. (line 43)
  20762. * addition, permitted arguments: Infix Ops. (line 45)
  20763. * addresses: Expressions. (line 6)
  20764. * addresses, format of: Secs Background. (line 65)
  20765. * addressing modes, D10V: D10V-Addressing. (line 6)
  20766. * addressing modes, D30V: D30V-Addressing. (line 6)
  20767. * addressing modes, H8/300: H8/300-Addressing. (line 6)
  20768. * addressing modes, M680x0: M68K-Syntax. (line 21)
  20769. * addressing modes, M68HC11: M68HC11-Syntax. (line 29)
  20770. * addressing modes, S12Z: S12Z Addressing Modes.
  20771. (line 6)
  20772. * addressing modes, SH: SH-Addressing. (line 6)
  20773. * addressing modes, XGATE: XGATE-Syntax. (line 28)
  20774. * addressing modes, Z8000: Z8000-Addressing. (line 6)
  20775. * ADR reg,<label> pseudo op, ARM: ARM Opcodes. (line 25)
  20776. * ADRL reg,<label> pseudo op, ARM: ARM Opcodes. (line 43)
  20777. * ADRP, ADD, LDR/STR group relocations, AArch64: AArch64-Relocations.
  20778. (line 14)
  20779. * advancing location counter: Org. (line 6)
  20780. * align directive: Align. (line 6)
  20781. * align directive <1>: RISC-V-Directives. (line 8)
  20782. * align directive, Nios II: Nios II Directives. (line 6)
  20783. * align directive, OpenRISC: OpenRISC-Directives.
  20784. (line 9)
  20785. * align directive, PRU: PRU Directives. (line 6)
  20786. * align directive, SPARC: Sparc-Directives. (line 9)
  20787. * align directive, TIC54X: TIC54X-Directives. (line 6)
  20788. * aligned instruction bundle: Bundle directives. (line 9)
  20789. * alignment for NEON instructions: ARM-Neon-Alignment. (line 6)
  20790. * alignment of branch targets: Xtensa Automatic Alignment.
  20791. (line 6)
  20792. * alignment of LOOP instructions: Xtensa Automatic Alignment.
  20793. (line 6)
  20794. * Alpha floating point (IEEE): Alpha Floating Point.
  20795. (line 6)
  20796. * Alpha line comment character: Alpha-Chars. (line 6)
  20797. * Alpha line separator: Alpha-Chars. (line 11)
  20798. * Alpha notes: Alpha Notes. (line 6)
  20799. * Alpha options: Alpha Options. (line 6)
  20800. * Alpha registers: Alpha-Regs. (line 6)
  20801. * Alpha relocations: Alpha-Relocs. (line 6)
  20802. * Alpha support: Alpha-Dependent. (line 6)
  20803. * Alpha Syntax: Alpha Options. (line 60)
  20804. * Alpha-only directives: Alpha Directives. (line 9)
  20805. * Altera Nios II support: NiosII-Dependent. (line 6)
  20806. * altered difference tables: Word. (line 12)
  20807. * alternate syntax for the 680x0: M68K-Moto-Syntax. (line 6)
  20808. * ARC Branch Target Address: ARC-Regs. (line 60)
  20809. * ARC BTA saved on exception entry: ARC-Regs. (line 79)
  20810. * ARC Build configuration for: BTA Registers: ARC-Regs. (line 89)
  20811. * ARC Build configuration for: Core Registers: ARC-Regs. (line 97)
  20812. * ARC Build configuration for: Interrupts: ARC-Regs. (line 93)
  20813. * ARC Build Configuration Registers Version: ARC-Regs. (line 85)
  20814. * ARC C preprocessor macro separator: ARC-Chars. (line 31)
  20815. * ARC core general registers: ARC-Regs. (line 10)
  20816. * ARC DCCM RAM Configuration Register: ARC-Regs. (line 101)
  20817. * ARC Exception Cause Register: ARC-Regs. (line 63)
  20818. * ARC Exception Return Address: ARC-Regs. (line 76)
  20819. * ARC extension core registers: ARC-Regs. (line 38)
  20820. * ARC frame pointer: ARC-Regs. (line 17)
  20821. * ARC global pointer: ARC-Regs. (line 14)
  20822. * ARC interrupt link register: ARC-Regs. (line 27)
  20823. * ARC Interrupt Vector Base address: ARC-Regs. (line 66)
  20824. * ARC level 1 interrupt link register: ARC-Regs. (line 23)
  20825. * ARC level 2 interrupt link register: ARC-Regs. (line 31)
  20826. * ARC line comment character: ARC-Chars. (line 11)
  20827. * ARC line separator: ARC-Chars. (line 27)
  20828. * ARC link register: ARC-Regs. (line 35)
  20829. * ARC loop counter: ARC-Regs. (line 41)
  20830. * ARC machine directives: ARC Directives. (line 6)
  20831. * ARC opcodes: ARC Opcodes. (line 6)
  20832. * ARC options: ARC Options. (line 6)
  20833. * ARC Processor Identification register: ARC-Regs. (line 51)
  20834. * ARC Program Counter: ARC-Regs. (line 54)
  20835. * ARC register name prefix character: ARC-Chars. (line 7)
  20836. * ARC register names: ARC-Regs. (line 6)
  20837. * ARC Saved User Stack Pointer: ARC-Regs. (line 73)
  20838. * ARC stack pointer: ARC-Regs. (line 20)
  20839. * ARC Status register: ARC-Regs. (line 57)
  20840. * ARC STATUS32 saved on exception: ARC-Regs. (line 82)
  20841. * ARC Stored STATUS32 register on entry to level P0 interrupts: ARC-Regs.
  20842. (line 69)
  20843. * ARC support: ARC-Dependent. (line 6)
  20844. * ARC symbol prefix character: ARC-Chars. (line 20)
  20845. * ARC word aligned program counter: ARC-Regs. (line 44)
  20846. * arch directive, i386: i386-Arch. (line 6)
  20847. * arch directive, M680x0: M68K-Directives. (line 22)
  20848. * arch directive, MSP 430: MSP430 Directives. (line 18)
  20849. * arch directive, x86-64: i386-Arch. (line 6)
  20850. * architecture options, IP2022: IP2K-Opts. (line 9)
  20851. * architecture options, IP2K: IP2K-Opts. (line 14)
  20852. * architecture options, M16C: M32C-Opts. (line 12)
  20853. * architecture options, M32C: M32C-Opts. (line 9)
  20854. * architecture options, M32R: M32R-Opts. (line 21)
  20855. * architecture options, M32R2: M32R-Opts. (line 17)
  20856. * architecture options, M32RX: M32R-Opts. (line 9)
  20857. * architecture options, M680x0: M68K-Opts. (line 99)
  20858. * Architecture variant option, CRIS: CRIS-Opts. (line 34)
  20859. * architectures, Meta: Meta Options. (line 6)
  20860. * architectures, PowerPC: PowerPC-Opts. (line 6)
  20861. * architectures, SCORE: SCORE-Opts. (line 6)
  20862. * architectures, SPARC: Sparc-Opts. (line 6)
  20863. * arguments for addition: Infix Ops. (line 45)
  20864. * arguments for subtraction: Infix Ops. (line 50)
  20865. * arguments in expressions: Arguments. (line 6)
  20866. * arithmetic functions: Operators. (line 6)
  20867. * arithmetic operands: Arguments. (line 6)
  20868. * ARM data relocations: ARM-Relocations. (line 6)
  20869. * ARM floating point (IEEE): ARM Floating Point. (line 6)
  20870. * ARM identifiers: ARM-Chars. (line 19)
  20871. * ARM immediate character: ARM-Chars. (line 17)
  20872. * ARM line comment character: ARM-Chars. (line 6)
  20873. * ARM line separator: ARM-Chars. (line 14)
  20874. * ARM machine directives: ARM Directives. (line 6)
  20875. * ARM opcodes: ARM Opcodes. (line 6)
  20876. * ARM options (none): ARM Options. (line 6)
  20877. * ARM register names: ARM-Regs. (line 6)
  20878. * ARM support: ARM-Dependent. (line 6)
  20879. * ascii directive: Ascii. (line 6)
  20880. * asciz directive: Asciz. (line 6)
  20881. * asg directive, TIC54X: TIC54X-Directives. (line 18)
  20882. * assembler bugs, reporting: Bug Reporting. (line 6)
  20883. * assembler crash: Bug Criteria. (line 9)
  20884. * assembler directive .3byte, RX: RX-Directives. (line 9)
  20885. * assembler directive .arch, CRIS: CRIS-Pseudos. (line 50)
  20886. * assembler directive .dword, CRIS: CRIS-Pseudos. (line 12)
  20887. * assembler directive .far, M68HC11: M68HC11-Directives. (line 20)
  20888. * assembler directive .fetchalign, RX: RX-Directives. (line 13)
  20889. * assembler directive .interrupt, M68HC11: M68HC11-Directives.
  20890. (line 26)
  20891. * assembler directive .mode, M68HC11: M68HC11-Directives. (line 16)
  20892. * assembler directive .relax, M68HC11: M68HC11-Directives. (line 10)
  20893. * assembler directive .syntax, CRIS: CRIS-Pseudos. (line 18)
  20894. * assembler directive .xrefb, M68HC11: M68HC11-Directives. (line 31)
  20895. * assembler directive BSPEC, MMIX: MMIX-Pseudos. (line 137)
  20896. * assembler directive BYTE, MMIX: MMIX-Pseudos. (line 101)
  20897. * assembler directive ESPEC, MMIX: MMIX-Pseudos. (line 137)
  20898. * assembler directive GREG, MMIX: MMIX-Pseudos. (line 53)
  20899. * assembler directive IS, MMIX: MMIX-Pseudos. (line 44)
  20900. * assembler directive LOC, MMIX: MMIX-Pseudos. (line 7)
  20901. * assembler directive LOCAL, MMIX: MMIX-Pseudos. (line 29)
  20902. * assembler directive OCTA, MMIX: MMIX-Pseudos. (line 113)
  20903. * assembler directive PREFIX, MMIX: MMIX-Pseudos. (line 125)
  20904. * assembler directive TETRA, MMIX: MMIX-Pseudos. (line 113)
  20905. * assembler directive WYDE, MMIX: MMIX-Pseudos. (line 113)
  20906. * assembler directives, CRIS: CRIS-Pseudos. (line 6)
  20907. * assembler directives, M68HC11: M68HC11-Directives. (line 6)
  20908. * assembler directives, M68HC12: M68HC11-Directives. (line 6)
  20909. * assembler directives, MMIX: MMIX-Pseudos. (line 6)
  20910. * assembler directives, RL78: RL78-Directives. (line 6)
  20911. * assembler directives, RX: RX-Directives. (line 6)
  20912. * assembler directives, XGATE: XGATE-Directives. (line 6)
  20913. * assembler internal logic error: As Sections. (line 13)
  20914. * assembler version: v. (line 6)
  20915. * assembler, and linker: Secs Background. (line 10)
  20916. * assembly listings, enabling: a. (line 6)
  20917. * assigning values to symbols: Setting Symbols. (line 6)
  20918. * assigning values to symbols <1>: Equ. (line 6)
  20919. * at register, MIPS: MIPS Macros. (line 35)
  20920. * attributes, symbol: Symbol Attributes. (line 6)
  20921. * att_syntax pseudo op, i386: i386-Variations. (line 6)
  20922. * att_syntax pseudo op, x86-64: i386-Variations. (line 6)
  20923. * auxiliary attributes, COFF symbols: COFF Symbols. (line 19)
  20924. * auxiliary symbol information, COFF: Dim. (line 6)
  20925. * AVR line comment character: AVR-Chars. (line 6)
  20926. * AVR line separator: AVR-Chars. (line 14)
  20927. * AVR modifiers: AVR-Modifiers. (line 6)
  20928. * AVR opcode summary: AVR Opcodes. (line 6)
  20929. * AVR options (none): AVR Options. (line 6)
  20930. * AVR register names: AVR-Regs. (line 6)
  20931. * AVR support: AVR-Dependent. (line 6)
  20932. * A_DIR environment variable, TIC54X: TIC54X-Env. (line 6)
  20933. * backslash (\\): Strings. (line 40)
  20934. * backspace (\b): Strings. (line 15)
  20935. * balign directive: Balign. (line 6)
  20936. * balignl directive: Balign. (line 29)
  20937. * balignw directive: Balign. (line 29)
  20938. * bes directive, TIC54X: TIC54X-Directives. (line 194)
  20939. * big endian output, MIPS: Overview. (line 855)
  20940. * big endian output, PJ: Overview. (line 759)
  20941. * big-endian output, MIPS: MIPS Options. (line 13)
  20942. * big-endian output, TIC6X: TIC6X Options. (line 46)
  20943. * bignums: Bignums. (line 6)
  20944. * binary constants, TIC54X: TIC54X-Constants. (line 8)
  20945. * binary files, including: Incbin. (line 6)
  20946. * binary integers: Integers. (line 6)
  20947. * bit names, IA-64: IA-64-Bits. (line 6)
  20948. * bitfields, not supported on VAX: VAX-no. (line 6)
  20949. * Blackfin directives: Blackfin Directives.
  20950. (line 6)
  20951. * Blackfin options (none): Blackfin Options. (line 6)
  20952. * Blackfin support: Blackfin-Dependent. (line 6)
  20953. * Blackfin syntax: Blackfin Syntax. (line 6)
  20954. * block: Z8000 Directives. (line 55)
  20955. * BMI, i386: i386-BMI. (line 6)
  20956. * BMI, x86-64: i386-BMI. (line 6)
  20957. * BPF line comment character: BPF-Chars. (line 6)
  20958. * BPF opcodes: BPF Opcodes. (line 6)
  20959. * BPF options (none): BPF Options. (line 6)
  20960. * BPF register names: BPF-Regs. (line 6)
  20961. * BPF support: BPF-Dependent. (line 6)
  20962. * branch improvement, M680x0: M68K-Branch. (line 6)
  20963. * branch improvement, M68HC11: M68HC11-Branch. (line 6)
  20964. * branch improvement, VAX: VAX-branch. (line 6)
  20965. * branch instructions, relaxation: Xtensa Branch Relaxation.
  20966. (line 6)
  20967. * Branch Target Address, ARC: ARC-Regs. (line 60)
  20968. * branch target alignment: Xtensa Automatic Alignment.
  20969. (line 6)
  20970. * break directive, TIC54X: TIC54X-Directives. (line 141)
  20971. * BSD syntax: PDP-11-Syntax. (line 6)
  20972. * BSS directive: RISC-V-Directives. (line 24)
  20973. * bss directive, TIC54X: TIC54X-Directives. (line 27)
  20974. * bss section: Ld Sections. (line 20)
  20975. * bss section <1>: bss. (line 6)
  20976. * BTA saved on exception entry, ARC: ARC-Regs. (line 79)
  20977. * bug criteria: Bug Criteria. (line 6)
  20978. * bug reports: Bug Reporting. (line 6)
  20979. * bugs in assembler: Reporting Bugs. (line 6)
  20980. * Build configuration for: BTA Registers, ARC: ARC-Regs. (line 89)
  20981. * Build configuration for: Core Registers, ARC: ARC-Regs. (line 97)
  20982. * Build configuration for: Interrupts, ARC: ARC-Regs. (line 93)
  20983. * Build Configuration Registers Version, ARC: ARC-Regs. (line 85)
  20984. * Built-in symbols, CRIS: CRIS-Symbols. (line 6)
  20985. * builtin math functions, TIC54X: TIC54X-Builtins. (line 6)
  20986. * builtin subsym functions, TIC54X: TIC54X-Macros. (line 16)
  20987. * bundle: Bundle directives. (line 9)
  20988. * bundle-locked: Bundle directives. (line 39)
  20989. * bundle_align_mode directive: Bundle directives. (line 9)
  20990. * bundle_lock directive: Bundle directives. (line 31)
  20991. * bundle_unlock directive: Bundle directives. (line 31)
  20992. * bus lock prefixes, i386: i386-Prefixes. (line 36)
  20993. * bval: Z8000 Directives. (line 30)
  20994. * byte directive: Byte. (line 6)
  20995. * byte directive, TIC54X: TIC54X-Directives. (line 34)
  20996. * C preprocessor macro separator, ARC: ARC-Chars. (line 31)
  20997. * C-SKY options: C-SKY Options. (line 6)
  20998. * C-SKY support: C-SKY-Dependent. (line 6)
  20999. * C54XDSP_DIR environment variable, TIC54X: TIC54X-Env. (line 6)
  21000. * call directive, Nios II: Nios II Relocations.
  21001. (line 38)
  21002. * call instructions, i386: i386-Mnemonics. (line 75)
  21003. * call instructions, relaxation: Xtensa Call Relaxation.
  21004. (line 6)
  21005. * call instructions, x86-64: i386-Mnemonics. (line 75)
  21006. * call_hiadj directive, Nios II: Nios II Relocations.
  21007. (line 38)
  21008. * call_lo directive, Nios II: Nios II Relocations.
  21009. (line 38)
  21010. * carriage return (backslash-r): Strings. (line 24)
  21011. * case sensitivity, Z80: Z80-Case. (line 6)
  21012. * cfi_endproc directive: CFI directives. (line 40)
  21013. * cfi_fde_data directive: CFI directives. (line 66)
  21014. * cfi_personality directive: CFI directives. (line 47)
  21015. * cfi_personality_id directive: CFI directives. (line 59)
  21016. * cfi_sections directive: CFI directives. (line 9)
  21017. * cfi_startproc directive: CFI directives. (line 30)
  21018. * char directive, TIC54X: TIC54X-Directives. (line 34)
  21019. * character constant, Z80: Z80-Chars. (line 20)
  21020. * character constants: Characters. (line 6)
  21021. * character escape codes: Strings. (line 15)
  21022. * character escapes, Z80: Z80-Chars. (line 18)
  21023. * character, single: Chars. (line 6)
  21024. * characters used in symbols: Symbol Intro. (line 6)
  21025. * clink directive, TIC54X: TIC54X-Directives. (line 43)
  21026. * code16 directive, i386: i386-16bit. (line 6)
  21027. * code16gcc directive, i386: i386-16bit. (line 6)
  21028. * code32 directive, i386: i386-16bit. (line 6)
  21029. * code64 directive, i386: i386-16bit. (line 6)
  21030. * code64 directive, x86-64: i386-16bit. (line 6)
  21031. * COFF auxiliary symbol information: Dim. (line 6)
  21032. * COFF structure debugging: Tag. (line 6)
  21033. * COFF symbol attributes: COFF Symbols. (line 6)
  21034. * COFF symbol descriptor: Desc. (line 6)
  21035. * COFF symbol storage class: Scl. (line 6)
  21036. * COFF symbol type: Type. (line 11)
  21037. * COFF symbols, debugging: Def. (line 6)
  21038. * COFF value attribute: Val. (line 6)
  21039. * COMDAT: Linkonce. (line 6)
  21040. * comm directive: Comm. (line 6)
  21041. * command line conventions: Command Line. (line 6)
  21042. * command-line options ignored, VAX: VAX-Opts. (line 6)
  21043. * command-line options, V850: V850 Options. (line 9)
  21044. * comment character, XStormy16: XStormy16-Chars. (line 11)
  21045. * comments: Comments. (line 6)
  21046. * comments, M680x0: M68K-Chars. (line 6)
  21047. * comments, removed by preprocessor: Preprocessing. (line 11)
  21048. * common directive, SPARC: Sparc-Directives. (line 12)
  21049. * common sections: Linkonce. (line 6)
  21050. * common variable storage: bss. (line 6)
  21051. * comparison expressions: Infix Ops. (line 56)
  21052. * conditional assembly: If. (line 6)
  21053. * constant, single character: Chars. (line 6)
  21054. * constants: Constants. (line 6)
  21055. * constants, bignum: Bignums. (line 6)
  21056. * constants, character: Characters. (line 6)
  21057. * constants, converted by preprocessor: Preprocessing. (line 14)
  21058. * constants, floating point: Flonums. (line 6)
  21059. * constants, integer: Integers. (line 6)
  21060. * constants, number: Numbers. (line 6)
  21061. * constants, Sparc: Sparc-Constants. (line 6)
  21062. * constants, string: Strings. (line 6)
  21063. * constants, TIC54X: TIC54X-Constants. (line 6)
  21064. * conversion instructions, i386: i386-Mnemonics. (line 56)
  21065. * conversion instructions, x86-64: i386-Mnemonics. (line 56)
  21066. * coprocessor wait, i386: i386-Prefixes. (line 40)
  21067. * copy directive, TIC54X: TIC54X-Directives. (line 52)
  21068. * core general registers, ARC: ARC-Regs. (line 10)
  21069. * cpu directive, ARC: ARC Directives. (line 27)
  21070. * cpu directive, M680x0: M68K-Directives. (line 30)
  21071. * cpu directive, MSP 430: MSP430 Directives. (line 22)
  21072. * CR16 line comment character: CR16-Chars. (line 6)
  21073. * CR16 line separator: CR16-Chars. (line 12)
  21074. * CR16 Operand Qualifiers: CR16 Operand Qualifiers.
  21075. (line 6)
  21076. * CR16 support: CR16-Dependent. (line 6)
  21077. * crash of assembler: Bug Criteria. (line 9)
  21078. * CRIS --emulation=crisaout command-line option: CRIS-Opts. (line 9)
  21079. * CRIS --emulation=criself command-line option: CRIS-Opts. (line 9)
  21080. * CRIS --march=ARCHITECTURE command-line option: CRIS-Opts. (line 34)
  21081. * CRIS --mul-bug-abort command-line option: CRIS-Opts. (line 63)
  21082. * CRIS --no-mul-bug-abort command-line option: CRIS-Opts. (line 63)
  21083. * CRIS --no-underscore command-line option: CRIS-Opts. (line 15)
  21084. * CRIS --pic command-line option: CRIS-Opts. (line 27)
  21085. * CRIS --underscore command-line option: CRIS-Opts. (line 15)
  21086. * CRIS -N command-line option: CRIS-Opts. (line 59)
  21087. * CRIS architecture variant option: CRIS-Opts. (line 34)
  21088. * CRIS assembler directive .arch: CRIS-Pseudos. (line 50)
  21089. * CRIS assembler directive .dword: CRIS-Pseudos. (line 12)
  21090. * CRIS assembler directive .syntax: CRIS-Pseudos. (line 18)
  21091. * CRIS assembler directives: CRIS-Pseudos. (line 6)
  21092. * CRIS built-in symbols: CRIS-Symbols. (line 6)
  21093. * CRIS instruction expansion: CRIS-Expand. (line 6)
  21094. * CRIS line comment characters: CRIS-Chars. (line 6)
  21095. * CRIS options: CRIS-Opts. (line 6)
  21096. * CRIS position-independent code: CRIS-Opts. (line 27)
  21097. * CRIS pseudo-op .arch: CRIS-Pseudos. (line 50)
  21098. * CRIS pseudo-op .dword: CRIS-Pseudos. (line 12)
  21099. * CRIS pseudo-op .syntax: CRIS-Pseudos. (line 18)
  21100. * CRIS pseudo-ops: CRIS-Pseudos. (line 6)
  21101. * CRIS register names: CRIS-Regs. (line 6)
  21102. * CRIS support: CRIS-Dependent. (line 6)
  21103. * CRIS symbols in position-independent code: CRIS-Pic. (line 6)
  21104. * ctbp register, V850: V850-Regs. (line 90)
  21105. * ctoff pseudo-op, V850: V850 Opcodes. (line 110)
  21106. * ctpc register, V850: V850-Regs. (line 82)
  21107. * ctpsw register, V850: V850-Regs. (line 84)
  21108. * current address: Dot. (line 6)
  21109. * current address, advancing: Org. (line 6)
  21110. * c_mode directive, TIC54X: TIC54X-Directives. (line 49)
  21111. * D10V @word modifier: D10V-Word. (line 6)
  21112. * D10V addressing modes: D10V-Addressing. (line 6)
  21113. * D10V floating point: D10V-Float. (line 6)
  21114. * D10V line comment character: D10V-Chars. (line 6)
  21115. * D10V opcode summary: D10V-Opcodes. (line 6)
  21116. * D10V optimization: Overview. (line 638)
  21117. * D10V options: D10V-Opts. (line 6)
  21118. * D10V registers: D10V-Regs. (line 6)
  21119. * D10V size modifiers: D10V-Size. (line 6)
  21120. * D10V sub-instruction ordering: D10V-Chars. (line 14)
  21121. * D10V sub-instructions: D10V-Subs. (line 6)
  21122. * D10V support: D10V-Dependent. (line 6)
  21123. * D10V syntax: D10V-Syntax. (line 6)
  21124. * D30V addressing modes: D30V-Addressing. (line 6)
  21125. * D30V floating point: D30V-Float. (line 6)
  21126. * D30V Guarded Execution: D30V-Guarded. (line 6)
  21127. * D30V line comment character: D30V-Chars. (line 6)
  21128. * D30V nops: Overview. (line 646)
  21129. * D30V nops after 32-bit multiply: Overview. (line 649)
  21130. * D30V opcode summary: D30V-Opcodes. (line 6)
  21131. * D30V optimization: Overview. (line 643)
  21132. * D30V options: D30V-Opts. (line 6)
  21133. * D30V registers: D30V-Regs. (line 6)
  21134. * D30V size modifiers: D30V-Size. (line 6)
  21135. * D30V sub-instruction ordering: D30V-Chars. (line 14)
  21136. * D30V sub-instructions: D30V-Subs. (line 6)
  21137. * D30V support: D30V-Dependent. (line 6)
  21138. * D30V syntax: D30V-Syntax. (line 6)
  21139. * data alignment on SPARC: Sparc-Aligned-Data. (line 6)
  21140. * data and text sections, joining: R. (line 6)
  21141. * data directive: Data. (line 6)
  21142. * data directive, TIC54X: TIC54X-Directives. (line 59)
  21143. * Data directives: RISC-V-Directives. (line 12)
  21144. * data relocations, ARM: ARM-Relocations. (line 6)
  21145. * data section: Ld Sections. (line 9)
  21146. * data1 directive, M680x0: M68K-Directives. (line 9)
  21147. * data2 directive, M680x0: M68K-Directives. (line 12)
  21148. * dbpc register, V850: V850-Regs. (line 86)
  21149. * dbpsw register, V850: V850-Regs. (line 88)
  21150. * dc directive: Dc. (line 6)
  21151. * dcb directive: Dcb. (line 6)
  21152. * DCCM RAM Configuration Register, ARC: ARC-Regs. (line 101)
  21153. * debuggers, and symbol order: Symbols. (line 10)
  21154. * debugging COFF symbols: Def. (line 6)
  21155. * DEC syntax: PDP-11-Syntax. (line 6)
  21156. * decimal integers: Integers. (line 12)
  21157. * def directive: Def. (line 6)
  21158. * def directive, TIC54X: TIC54X-Directives. (line 101)
  21159. * density instructions: Density Instructions.
  21160. (line 6)
  21161. * dependency tracking: MD. (line 6)
  21162. * deprecated directives: Deprecated. (line 6)
  21163. * desc directive: Desc. (line 6)
  21164. * descriptor, of a.out symbol: Symbol Desc. (line 6)
  21165. * dfloat directive, VAX: VAX-directives. (line 9)
  21166. * difference tables altered: Word. (line 12)
  21167. * difference tables, warning: K. (line 6)
  21168. * differences, mmixal: MMIX-mmixal. (line 6)
  21169. * dim directive: Dim. (line 6)
  21170. * directives and instructions: Statements. (line 20)
  21171. * directives for PowerPC: PowerPC-Pseudo. (line 6)
  21172. * directives for SCORE: SCORE-Pseudo. (line 6)
  21173. * directives, Blackfin: Blackfin Directives.
  21174. (line 6)
  21175. * directives, M32R: M32R-Directives. (line 6)
  21176. * directives, M680x0: M68K-Directives. (line 6)
  21177. * directives, machine independent: Pseudo Ops. (line 6)
  21178. * directives, Xtensa: Xtensa Directives. (line 6)
  21179. * directives, Z8000: Z8000 Directives. (line 6)
  21180. * Disable floating-point instructions: MIPS Floating-Point.
  21181. (line 6)
  21182. * Disable single-precision floating-point operations: MIPS Floating-Point.
  21183. (line 12)
  21184. * displacement sizing character, VAX: VAX-operands. (line 12)
  21185. * dollar local symbols: Symbol Names. (line 113)
  21186. * dot (symbol): Dot. (line 6)
  21187. * double directive: Double. (line 6)
  21188. * double directive, i386: i386-Float. (line 14)
  21189. * double directive, M680x0: M68K-Float. (line 14)
  21190. * double directive, M68HC11: M68HC11-Float. (line 14)
  21191. * double directive, RX: RX-Float. (line 11)
  21192. * double directive, TIC54X: TIC54X-Directives. (line 62)
  21193. * double directive, VAX: VAX-float. (line 15)
  21194. * double directive, x86-64: i386-Float. (line 14)
  21195. * double directive, XGATE: XGATE-Float. (line 13)
  21196. * doublequote (\"): Strings. (line 43)
  21197. * drlist directive, TIC54X: TIC54X-Directives. (line 71)
  21198. * drnolist directive, TIC54X: TIC54X-Directives. (line 71)
  21199. * ds directive: Ds. (line 6)
  21200. * DTP-relative data directives: RISC-V-Directives. (line 18)
  21201. * dword directive, BPF: BPF Directives. (line 15)
  21202. * dword directive, Nios II: Nios II Directives. (line 16)
  21203. * dword directive, PRU: PRU Directives. (line 13)
  21204. * EB command-line option, C-SKY: C-SKY Options. (line 18)
  21205. * EB command-line option, Nios II: Nios II Options. (line 22)
  21206. * ecr register, V850: V850-Regs. (line 78)
  21207. * eight-byte integer: Quad. (line 9)
  21208. * eight-byte integer <1>: 8byte. (line 6)
  21209. * eipc register, V850: V850-Regs. (line 70)
  21210. * eipsw register, V850: V850-Regs. (line 72)
  21211. * eject directive: Eject. (line 6)
  21212. * EL command-line option, C-SKY: C-SKY Options. (line 14)
  21213. * EL command-line option, Nios II: Nios II Options. (line 25)
  21214. * ELF symbol type: Type. (line 22)
  21215. * else directive: Else. (line 6)
  21216. * elseif directive: Elseif. (line 6)
  21217. * empty expressions: Empty Exprs. (line 6)
  21218. * emsg directive, TIC54X: TIC54X-Directives. (line 75)
  21219. * emulation: Overview. (line 1109)
  21220. * encoding options, i386: i386-Mnemonics. (line 34)
  21221. * encoding options, x86-64: i386-Mnemonics. (line 34)
  21222. * end directive: End. (line 6)
  21223. * endef directive: Endef. (line 6)
  21224. * endfunc directive: Endfunc. (line 6)
  21225. * endianness, MIPS: Overview. (line 855)
  21226. * endianness, PJ: Overview. (line 759)
  21227. * endif directive: Endif. (line 6)
  21228. * endloop directive, TIC54X: TIC54X-Directives. (line 141)
  21229. * endm directive: Macro. (line 137)
  21230. * endm directive, TIC54X: TIC54X-Directives. (line 151)
  21231. * endproc directive, OpenRISC: OpenRISC-Directives.
  21232. (line 24)
  21233. * endstruct directive, TIC54X: TIC54X-Directives. (line 214)
  21234. * endunion directive, TIC54X: TIC54X-Directives. (line 248)
  21235. * environment settings, TIC54X: TIC54X-Env. (line 6)
  21236. * EOF, newline must precede: Statements. (line 14)
  21237. * ep register, V850: V850-Regs. (line 66)
  21238. * Epiphany line comment character: Epiphany-Chars. (line 6)
  21239. * Epiphany line separator: Epiphany-Chars. (line 14)
  21240. * Epiphany options: Epiphany Options. (line 6)
  21241. * Epiphany support: Epiphany-Dependent. (line 6)
  21242. * equ directive: Equ. (line 6)
  21243. * equ directive, TIC54X: TIC54X-Directives. (line 189)
  21244. * equiv directive: Equiv. (line 6)
  21245. * eqv directive: Eqv. (line 6)
  21246. * err directive: Err. (line 6)
  21247. * error directive: Error. (line 6)
  21248. * error messages: Errors. (line 6)
  21249. * error on valid input: Bug Criteria. (line 12)
  21250. * errors, caused by warnings: W. (line 16)
  21251. * errors, continuing after: Z. (line 6)
  21252. * escape codes, character: Strings. (line 15)
  21253. * eval directive, TIC54X: TIC54X-Directives. (line 22)
  21254. * even: Z8000 Directives. (line 58)
  21255. * even directive, M680x0: M68K-Directives. (line 15)
  21256. * even directive, TIC54X: TIC54X-Directives. (line 6)
  21257. * Exception Cause Register, ARC: ARC-Regs. (line 63)
  21258. * Exception Return Address, ARC: ARC-Regs. (line 76)
  21259. * exitm directive: Macro. (line 140)
  21260. * expr (internal section): As Sections. (line 17)
  21261. * expression arguments: Arguments. (line 6)
  21262. * expressions: Expressions. (line 6)
  21263. * expressions, comparison: Infix Ops. (line 56)
  21264. * expressions, empty: Empty Exprs. (line 6)
  21265. * expressions, integer: Integer Exprs. (line 6)
  21266. * extAuxRegister directive, ARC: ARC Directives. (line 105)
  21267. * extCondCode directive, ARC: ARC Directives. (line 126)
  21268. * extCoreRegister directive, ARC: ARC Directives. (line 137)
  21269. * extend directive M680x0: M68K-Float. (line 17)
  21270. * extend directive M68HC11: M68HC11-Float. (line 17)
  21271. * extend directive XGATE: XGATE-Float. (line 16)
  21272. * extension core registers, ARC: ARC-Regs. (line 38)
  21273. * extern directive: Extern. (line 6)
  21274. * extInstruction directive, ARC: ARC Directives. (line 164)
  21275. * fail directive: Fail. (line 6)
  21276. * far_mode directive, TIC54X: TIC54X-Directives. (line 80)
  21277. * faster processing (-f): f. (line 6)
  21278. * fatal signal: Bug Criteria. (line 9)
  21279. * fclist directive, TIC54X: TIC54X-Directives. (line 85)
  21280. * fcnolist directive, TIC54X: TIC54X-Directives. (line 85)
  21281. * fepc register, V850: V850-Regs. (line 74)
  21282. * fepsw register, V850: V850-Regs. (line 76)
  21283. * ffloat directive, VAX: VAX-directives. (line 13)
  21284. * field directive, TIC54X: TIC54X-Directives. (line 89)
  21285. * file directive: File. (line 6)
  21286. * file directive, MSP 430: MSP430 Directives. (line 6)
  21287. * file name, logical: File. (line 13)
  21288. * file names and line numbers, in warnings/errors: Errors. (line 16)
  21289. * files, including: Include. (line 6)
  21290. * files, input: Input Files. (line 6)
  21291. * fill directive: Fill. (line 6)
  21292. * filling memory: Skip. (line 6)
  21293. * filling memory <1>: Space. (line 6)
  21294. * filling memory with no-op instructions: Nops. (line 6)
  21295. * filling memory with zero bytes: Zero. (line 6)
  21296. * FLIX syntax: Xtensa Syntax. (line 6)
  21297. * float directive: Float. (line 6)
  21298. * float directive, i386: i386-Float. (line 14)
  21299. * float directive, M680x0: M68K-Float. (line 11)
  21300. * float directive, M68HC11: M68HC11-Float. (line 11)
  21301. * float directive, RX: RX-Float. (line 8)
  21302. * float directive, TIC54X: TIC54X-Directives. (line 62)
  21303. * float directive, VAX: VAX-float. (line 15)
  21304. * float directive, x86-64: i386-Float. (line 14)
  21305. * float directive, XGATE: XGATE-Float. (line 10)
  21306. * floating point numbers: Flonums. (line 6)
  21307. * floating point numbers (double): Double. (line 6)
  21308. * floating point numbers (single): Float. (line 6)
  21309. * floating point numbers (single) <1>: Single. (line 6)
  21310. * floating point, AArch64 (IEEE): AArch64 Floating Point.
  21311. (line 6)
  21312. * floating point, Alpha (IEEE): Alpha Floating Point.
  21313. (line 6)
  21314. * floating point, ARM (IEEE): ARM Floating Point. (line 6)
  21315. * floating point, D10V: D10V-Float. (line 6)
  21316. * floating point, D30V: D30V-Float. (line 6)
  21317. * floating point, H8/300 (IEEE): H8/300 Floating Point.
  21318. (line 6)
  21319. * floating point, HPPA (IEEE): HPPA Floating Point.
  21320. (line 6)
  21321. * floating point, i386: i386-Float. (line 6)
  21322. * floating point, M680x0: M68K-Float. (line 6)
  21323. * floating point, M68HC11: M68HC11-Float. (line 6)
  21324. * floating point, MSP 430 (IEEE): MSP430 Floating Point.
  21325. (line 6)
  21326. * floating point, OPENRISC (IEEE): OpenRISC-Float. (line 6)
  21327. * floating point, RX: RX-Float. (line 6)
  21328. * floating point, s390: s390 Floating Point.
  21329. (line 6)
  21330. * floating point, SH (IEEE): SH Floating Point. (line 6)
  21331. * floating point, SPARC (IEEE): Sparc-Float. (line 6)
  21332. * floating point, V850 (IEEE): V850 Floating Point.
  21333. (line 6)
  21334. * floating point, VAX: VAX-float. (line 6)
  21335. * floating point, WebAssembly (IEEE): WebAssembly-Floating-Point.
  21336. (line 6)
  21337. * floating point, x86-64: i386-Float. (line 6)
  21338. * floating point, XGATE: XGATE-Float. (line 6)
  21339. * floating point, Z80: Z80 Floating Point. (line 6)
  21340. * flonums: Flonums. (line 6)
  21341. * force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21342. * format of error messages: Errors. (line 38)
  21343. * format of warning messages: Errors. (line 12)
  21344. * formfeed (\f): Strings. (line 18)
  21345. * four-byte integer: 4byte. (line 6)
  21346. * fpic command-line option, C-SKY: C-SKY Options. (line 22)
  21347. * frame pointer, ARC: ARC-Regs. (line 17)
  21348. * func directive: Func. (line 6)
  21349. * functions, in expressions: Operators. (line 6)
  21350. * gfloat directive, VAX: VAX-directives. (line 17)
  21351. * global: Z8000 Directives. (line 21)
  21352. * global directive: Global. (line 6)
  21353. * global directive, TIC54X: TIC54X-Directives. (line 101)
  21354. * global pointer, ARC: ARC-Regs. (line 14)
  21355. * got directive, Nios II: Nios II Relocations.
  21356. (line 38)
  21357. * gotoff directive, Nios II: Nios II Relocations.
  21358. (line 38)
  21359. * gotoff_hiadj directive, Nios II: Nios II Relocations.
  21360. (line 38)
  21361. * gotoff_lo directive, Nios II: Nios II Relocations.
  21362. (line 38)
  21363. * got_hiadj directive, Nios II: Nios II Relocations.
  21364. (line 38)
  21365. * got_lo directive, Nios II: Nios II Relocations.
  21366. (line 38)
  21367. * gp register, MIPS: MIPS Small Data. (line 6)
  21368. * gp register, V850: V850-Regs. (line 14)
  21369. * gprel directive, Nios II: Nios II Relocations.
  21370. (line 26)
  21371. * grouping data: Sub-Sections. (line 6)
  21372. * H8/300 addressing modes: H8/300-Addressing. (line 6)
  21373. * H8/300 floating point (IEEE): H8/300 Floating Point.
  21374. (line 6)
  21375. * H8/300 line comment character: H8/300-Chars. (line 6)
  21376. * H8/300 line separator: H8/300-Chars. (line 8)
  21377. * H8/300 machine directives (none): H8/300 Directives. (line 6)
  21378. * H8/300 opcode summary: H8/300 Opcodes. (line 6)
  21379. * H8/300 options: H8/300 Options. (line 6)
  21380. * H8/300 registers: H8/300-Regs. (line 6)
  21381. * H8/300 size suffixes: H8/300 Opcodes. (line 160)
  21382. * H8/300 support: H8/300-Dependent. (line 6)
  21383. * H8/300H, assembling for: H8/300 Directives. (line 8)
  21384. * half directive, BPF: BPF Directives. (line 9)
  21385. * half directive, Nios II: Nios II Directives. (line 10)
  21386. * half directive, SPARC: Sparc-Directives. (line 17)
  21387. * half directive, TIC54X: TIC54X-Directives. (line 109)
  21388. * hex character code (\XD...): Strings. (line 36)
  21389. * hexadecimal integers: Integers. (line 15)
  21390. * hexadecimal prefix, S12Z: S12Z Options. (line 17)
  21391. * hexadecimal prefix, Z80: Z80-Chars. (line 15)
  21392. * hfloat directive, VAX: VAX-directives. (line 21)
  21393. * hi directive, Nios II: Nios II Relocations.
  21394. (line 20)
  21395. * hi pseudo-op, V850: V850 Opcodes. (line 33)
  21396. * hi0 pseudo-op, V850: V850 Opcodes. (line 10)
  21397. * hiadj directive, Nios II: Nios II Relocations.
  21398. (line 6)
  21399. * hidden directive: Hidden. (line 6)
  21400. * high directive, M32R: M32R-Directives. (line 18)
  21401. * hilo pseudo-op, V850: V850 Opcodes. (line 55)
  21402. * HPPA directives not supported: HPPA Directives. (line 11)
  21403. * HPPA floating point (IEEE): HPPA Floating Point.
  21404. (line 6)
  21405. * HPPA Syntax: HPPA Options. (line 7)
  21406. * HPPA-only directives: HPPA Directives. (line 24)
  21407. * hword directive: hword. (line 6)
  21408. * i386 16-bit code: i386-16bit. (line 6)
  21409. * i386 arch directive: i386-Arch. (line 6)
  21410. * i386 att_syntax pseudo op: i386-Variations. (line 6)
  21411. * i386 conversion instructions: i386-Mnemonics. (line 56)
  21412. * i386 floating point: i386-Float. (line 6)
  21413. * i386 immediate operands: i386-Variations. (line 15)
  21414. * i386 instruction naming: i386-Mnemonics. (line 9)
  21415. * i386 instruction prefixes: i386-Prefixes. (line 6)
  21416. * i386 intel_syntax pseudo op: i386-Variations. (line 6)
  21417. * i386 jump optimization: i386-Jumps. (line 6)
  21418. * i386 jump, call, return: i386-Variations. (line 45)
  21419. * i386 jump/call operands: i386-Variations. (line 15)
  21420. * i386 line comment character: i386-Chars. (line 6)
  21421. * i386 line separator: i386-Chars. (line 18)
  21422. * i386 memory references: i386-Memory. (line 6)
  21423. * i386 mnemonic compatibility: i386-Mnemonics. (line 81)
  21424. * i386 mul, imul instructions: i386-Notes. (line 6)
  21425. * i386 options: i386-Options. (line 6)
  21426. * i386 register operands: i386-Variations. (line 15)
  21427. * i386 registers: i386-Regs. (line 6)
  21428. * i386 sections: i386-Variations. (line 51)
  21429. * i386 size suffixes: i386-Variations. (line 28)
  21430. * i386 source, destination operands: i386-Variations. (line 21)
  21431. * i386 support: i386-Dependent. (line 6)
  21432. * i386 syntax compatibility: i386-Variations. (line 6)
  21433. * i80386 support: i386-Dependent. (line 6)
  21434. * IA-64 line comment character: IA-64-Chars. (line 6)
  21435. * IA-64 line separator: IA-64-Chars. (line 8)
  21436. * IA-64 options: IA-64 Options. (line 6)
  21437. * IA-64 Processor-status-Register bit names: IA-64-Bits. (line 6)
  21438. * IA-64 registers: IA-64-Regs. (line 6)
  21439. * IA-64 relocations: IA-64-Relocs. (line 6)
  21440. * IA-64 support: IA-64-Dependent. (line 6)
  21441. * IA-64 Syntax: IA-64 Options. (line 85)
  21442. * ident directive: Ident. (line 6)
  21443. * identifiers, ARM: ARM-Chars. (line 19)
  21444. * identifiers, MSP 430: MSP430-Chars. (line 17)
  21445. * if directive: If. (line 6)
  21446. * ifb directive: If. (line 21)
  21447. * ifc directive: If. (line 25)
  21448. * ifdef directive: If. (line 16)
  21449. * ifeq directive: If. (line 33)
  21450. * ifeqs directive: If. (line 36)
  21451. * ifge directive: If. (line 40)
  21452. * ifgt directive: If. (line 44)
  21453. * ifle directive: If. (line 48)
  21454. * iflt directive: If. (line 52)
  21455. * ifnb directive: If. (line 56)
  21456. * ifnc directive: If. (line 61)
  21457. * ifndef directive: If. (line 65)
  21458. * ifne directive: If. (line 72)
  21459. * ifnes directive: If. (line 76)
  21460. * ifnotdef directive: If. (line 65)
  21461. * immediate character, AArch64: AArch64-Chars. (line 13)
  21462. * immediate character, ARM: ARM-Chars. (line 17)
  21463. * immediate character, M680x0: M68K-Chars. (line 13)
  21464. * immediate character, VAX: VAX-operands. (line 6)
  21465. * immediate fields, relaxation: Xtensa Immediate Relaxation.
  21466. (line 6)
  21467. * immediate operands, i386: i386-Variations. (line 15)
  21468. * immediate operands, x86-64: i386-Variations. (line 15)
  21469. * imul instruction, i386: i386-Notes. (line 6)
  21470. * imul instruction, x86-64: i386-Notes. (line 6)
  21471. * incbin directive: Incbin. (line 6)
  21472. * include directive: Include. (line 6)
  21473. * include directive search path: I. (line 6)
  21474. * indirect character, VAX: VAX-operands. (line 9)
  21475. * infix operators: Infix Ops. (line 6)
  21476. * inhibiting interrupts, i386: i386-Prefixes. (line 36)
  21477. * input: Input Files. (line 6)
  21478. * input file linenumbers: Input Files. (line 35)
  21479. * INSN directives: RISC-V-Directives. (line 88)
  21480. * instruction aliases, s390: s390 Aliases. (line 6)
  21481. * instruction bundle: Bundle directives. (line 9)
  21482. * instruction expansion, CRIS: CRIS-Expand. (line 6)
  21483. * instruction expansion, MMIX: MMIX-Expand. (line 6)
  21484. * instruction formats, risc-v: RISC-V-Formats. (line 6)
  21485. * instruction formats, s390: s390 Formats. (line 6)
  21486. * instruction marker, s390: s390 Instruction Marker.
  21487. (line 6)
  21488. * instruction mnemonics, s390: s390 Mnemonics. (line 6)
  21489. * instruction naming, i386: i386-Mnemonics. (line 9)
  21490. * instruction naming, x86-64: i386-Mnemonics. (line 9)
  21491. * instruction operand modifier, s390: s390 Operand Modifier.
  21492. (line 6)
  21493. * instruction operands, s390: s390 Operands. (line 6)
  21494. * instruction prefixes, i386: i386-Prefixes. (line 6)
  21495. * instruction set, M680x0: M68K-opcodes. (line 6)
  21496. * instruction set, M68HC11: M68HC11-opcodes. (line 6)
  21497. * instruction set, XGATE: XGATE-opcodes. (line 5)
  21498. * instruction summary, AVR: AVR Opcodes. (line 6)
  21499. * instruction summary, D10V: D10V-Opcodes. (line 6)
  21500. * instruction summary, D30V: D30V-Opcodes. (line 6)
  21501. * instruction summary, H8/300: H8/300 Opcodes. (line 6)
  21502. * instruction summary, LM32: LM32 Opcodes. (line 6)
  21503. * instruction summary, LM32 <1>: OpenRISC-Opcodes. (line 6)
  21504. * instruction summary, SH: SH Opcodes. (line 6)
  21505. * instruction summary, Z8000: Z8000 Opcodes. (line 6)
  21506. * instruction syntax, s390: s390 Syntax. (line 6)
  21507. * instructions and directives: Statements. (line 20)
  21508. * int directive: Int. (line 6)
  21509. * int directive, H8/300: H8/300 Directives. (line 6)
  21510. * int directive, i386: i386-Float. (line 21)
  21511. * int directive, TIC54X: TIC54X-Directives. (line 109)
  21512. * int directive, x86-64: i386-Float. (line 21)
  21513. * integer expressions: Integer Exprs. (line 6)
  21514. * integer, 16-byte: Octa. (line 6)
  21515. * integer, 2-byte: 2byte. (line 6)
  21516. * integer, 4-byte: 4byte. (line 6)
  21517. * integer, 8-byte: Quad. (line 9)
  21518. * integer, 8-byte <1>: 8byte. (line 6)
  21519. * integers: Integers. (line 6)
  21520. * integers, 16-bit: hword. (line 6)
  21521. * integers, 32-bit: Int. (line 6)
  21522. * integers, binary: Integers. (line 6)
  21523. * integers, decimal: Integers. (line 12)
  21524. * integers, hexadecimal: Integers. (line 15)
  21525. * integers, octal: Integers. (line 9)
  21526. * integers, one byte: Byte. (line 6)
  21527. * intel_syntax pseudo op, i386: i386-Variations. (line 6)
  21528. * intel_syntax pseudo op, x86-64: i386-Variations. (line 6)
  21529. * internal assembler sections: As Sections. (line 6)
  21530. * internal directive: Internal. (line 6)
  21531. * interrupt link register, ARC: ARC-Regs. (line 27)
  21532. * Interrupt Vector Base address, ARC: ARC-Regs. (line 66)
  21533. * invalid input: Bug Criteria. (line 14)
  21534. * invocation summary: Overview. (line 6)
  21535. * IP2K architecture options: IP2K-Opts. (line 9)
  21536. * IP2K architecture options <1>: IP2K-Opts. (line 14)
  21537. * IP2K line comment character: IP2K-Chars. (line 6)
  21538. * IP2K line separator: IP2K-Chars. (line 14)
  21539. * IP2K options: IP2K-Opts. (line 6)
  21540. * IP2K support: IP2K-Dependent. (line 6)
  21541. * irp directive: Irp. (line 6)
  21542. * irpc directive: Irpc. (line 6)
  21543. * joining text and data sections: R. (line 6)
  21544. * jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  21545. * jump instructions, i386: i386-Mnemonics. (line 75)
  21546. * jump instructions, relaxation: Xtensa Jump Relaxation.
  21547. (line 6)
  21548. * jump instructions, x86-64: i386-Mnemonics. (line 75)
  21549. * jump optimization, i386: i386-Jumps. (line 6)
  21550. * jump optimization, x86-64: i386-Jumps. (line 6)
  21551. * jump/call operands, i386: i386-Variations. (line 15)
  21552. * jump/call operands, x86-64: i386-Variations. (line 15)
  21553. * Known undocumented instructions: Z80 Options. (line 103)
  21554. * L16SI instructions, relaxation: Xtensa Immediate Relaxation.
  21555. (line 23)
  21556. * L16UI instructions, relaxation: Xtensa Immediate Relaxation.
  21557. (line 23)
  21558. * L32I instructions, relaxation: Xtensa Immediate Relaxation.
  21559. (line 23)
  21560. * L8UI instructions, relaxation: Xtensa Immediate Relaxation.
  21561. (line 23)
  21562. * label (:): Statements. (line 31)
  21563. * label directive, TIC54X: TIC54X-Directives. (line 121)
  21564. * labels: Labels. (line 6)
  21565. * labels, Z80: Z80-Labels. (line 6)
  21566. * largecomm directive, ELF: i386-Directives. (line 17)
  21567. * lcomm directive: Lcomm. (line 6)
  21568. * lcomm directive <1>: ARC Directives. (line 9)
  21569. * lcomm directive, COFF: i386-Directives. (line 6)
  21570. * lcommon directive, ARC: ARC Directives. (line 24)
  21571. * ld: Object. (line 15)
  21572. * ldouble directive M680x0: M68K-Float. (line 17)
  21573. * ldouble directive M68HC11: M68HC11-Float. (line 17)
  21574. * ldouble directive XGATE: XGATE-Float. (line 16)
  21575. * ldouble directive, TIC54X: TIC54X-Directives. (line 62)
  21576. * LDR reg,=<expr> pseudo op, AArch64: AArch64 Opcodes. (line 9)
  21577. * LDR reg,=<label> pseudo op, ARM: ARM Opcodes. (line 15)
  21578. * LEB128 directives: RISC-V-Directives. (line 27)
  21579. * length directive, TIC54X: TIC54X-Directives. (line 125)
  21580. * length of symbols: Symbol Intro. (line 19)
  21581. * level 1 interrupt link register, ARC: ARC-Regs. (line 23)
  21582. * level 2 interrupt link register, ARC: ARC-Regs. (line 31)
  21583. * lflags directive (ignored): Lflags. (line 6)
  21584. * line: ARC-Chars. (line 30)
  21585. * line comment character: Comments. (line 19)
  21586. * line comment character, AArch64: AArch64-Chars. (line 6)
  21587. * line comment character, Alpha: Alpha-Chars. (line 6)
  21588. * line comment character, ARC: ARC-Chars. (line 11)
  21589. * line comment character, ARM: ARM-Chars. (line 6)
  21590. * line comment character, AVR: AVR-Chars. (line 6)
  21591. * line comment character, BPF: BPF-Chars. (line 6)
  21592. * line comment character, CR16: CR16-Chars. (line 6)
  21593. * line comment character, D10V: D10V-Chars. (line 6)
  21594. * line comment character, D30V: D30V-Chars. (line 6)
  21595. * line comment character, Epiphany: Epiphany-Chars. (line 6)
  21596. * line comment character, H8/300: H8/300-Chars. (line 6)
  21597. * line comment character, i386: i386-Chars. (line 6)
  21598. * line comment character, IA-64: IA-64-Chars. (line 6)
  21599. * line comment character, IP2K: IP2K-Chars. (line 6)
  21600. * line comment character, LM32: LM32-Chars. (line 6)
  21601. * line comment character, M32C: M32C-Chars. (line 6)
  21602. * line comment character, M680x0: M68K-Chars. (line 6)
  21603. * line comment character, M68HC11: M68HC11-Syntax. (line 17)
  21604. * line comment character, Meta: Meta-Chars. (line 6)
  21605. * line comment character, MicroBlaze: MicroBlaze-Chars. (line 6)
  21606. * line comment character, MIPS: MIPS-Chars. (line 6)
  21607. * line comment character, MSP 430: MSP430-Chars. (line 6)
  21608. * line comment character, Nios II: Nios II Chars. (line 6)
  21609. * line comment character, NS32K: NS32K-Chars. (line 6)
  21610. * line comment character, OpenRISC: OpenRISC-Chars. (line 6)
  21611. * line comment character, PJ: PJ-Chars. (line 6)
  21612. * line comment character, PowerPC: PowerPC-Chars. (line 6)
  21613. * line comment character, PRU: PRU Chars. (line 6)
  21614. * line comment character, RL78: RL78-Chars. (line 6)
  21615. * line comment character, RX: RX-Chars. (line 6)
  21616. * line comment character, S12Z: S12Z Syntax Overview.
  21617. (line 32)
  21618. * line comment character, s390: s390 Characters. (line 6)
  21619. * line comment character, SCORE: SCORE-Chars. (line 6)
  21620. * line comment character, SH: SH-Chars. (line 6)
  21621. * line comment character, Sparc: Sparc-Chars. (line 6)
  21622. * line comment character, TIC54X: TIC54X-Chars. (line 6)
  21623. * line comment character, TIC6X: TIC6X Syntax. (line 6)
  21624. * line comment character, V850: V850-Chars. (line 6)
  21625. * line comment character, VAX: VAX-Chars. (line 6)
  21626. * line comment character, Visium: Visium Characters. (line 6)
  21627. * line comment character, WebAssembly: WebAssembly-Chars. (line 6)
  21628. * line comment character, XGATE: XGATE-Syntax. (line 16)
  21629. * line comment character, XStormy16: XStormy16-Chars. (line 6)
  21630. * line comment character, Z80: Z80-Chars. (line 6)
  21631. * line comment character, Z8000: Z8000-Chars. (line 6)
  21632. * line comment characters, CRIS: CRIS-Chars. (line 6)
  21633. * line comment characters, MMIX: MMIX-Chars. (line 6)
  21634. * line directive: Line. (line 6)
  21635. * line directive, MSP 430: MSP430 Directives. (line 14)
  21636. * line numbers, in input files: Input Files. (line 35)
  21637. * line separator character: Statements. (line 6)
  21638. * line separator character, Nios II: Nios II Chars. (line 6)
  21639. * line separator, AArch64: AArch64-Chars. (line 10)
  21640. * line separator, Alpha: Alpha-Chars. (line 11)
  21641. * line separator, ARC: ARC-Chars. (line 27)
  21642. * line separator, ARM: ARM-Chars. (line 14)
  21643. * line separator, AVR: AVR-Chars. (line 14)
  21644. * line separator, CR16: CR16-Chars. (line 12)
  21645. * line separator, Epiphany: Epiphany-Chars. (line 14)
  21646. * line separator, H8/300: H8/300-Chars. (line 8)
  21647. * line separator, i386: i386-Chars. (line 18)
  21648. * line separator, IA-64: IA-64-Chars. (line 8)
  21649. * line separator, IP2K: IP2K-Chars. (line 14)
  21650. * line separator, LM32: LM32-Chars. (line 12)
  21651. * line separator, M32C: M32C-Chars. (line 14)
  21652. * line separator, M680x0: M68K-Chars. (line 20)
  21653. * line separator, M68HC11: M68HC11-Syntax. (line 26)
  21654. * line separator, Meta: Meta-Chars. (line 8)
  21655. * line separator, MicroBlaze: MicroBlaze-Chars. (line 14)
  21656. * line separator, MIPS: MIPS-Chars. (line 14)
  21657. * line separator, MSP 430: MSP430-Chars. (line 14)
  21658. * line separator, NS32K: NS32K-Chars. (line 18)
  21659. * line separator, OpenRISC: OpenRISC-Chars. (line 9)
  21660. * line separator, PJ: PJ-Chars. (line 14)
  21661. * line separator, PowerPC: PowerPC-Chars. (line 18)
  21662. * line separator, RL78: RL78-Chars. (line 14)
  21663. * line separator, RX: RX-Chars. (line 14)
  21664. * line separator, S12Z: S12Z Syntax Overview.
  21665. (line 41)
  21666. * line separator, s390: s390 Characters. (line 13)
  21667. * line separator, SCORE: SCORE-Chars. (line 14)
  21668. * line separator, SH: SH-Chars. (line 8)
  21669. * line separator, Sparc: Sparc-Chars. (line 14)
  21670. * line separator, TIC54X: TIC54X-Chars. (line 17)
  21671. * line separator, TIC6X: TIC6X Syntax. (line 13)
  21672. * line separator, V850: V850-Chars. (line 13)
  21673. * line separator, VAX: VAX-Chars. (line 14)
  21674. * line separator, Visium: Visium Characters. (line 14)
  21675. * line separator, XGATE: XGATE-Syntax. (line 25)
  21676. * line separator, XStormy16: XStormy16-Chars. (line 14)
  21677. * line separator, Z80: Z80-Chars. (line 13)
  21678. * line separator, Z8000: Z8000-Chars. (line 13)
  21679. * lines starting with #: Comments. (line 33)
  21680. * link register, ARC: ARC-Regs. (line 35)
  21681. * linker: Object. (line 15)
  21682. * linker, and assembler: Secs Background. (line 10)
  21683. * linkonce directive: Linkonce. (line 6)
  21684. * list directive: List. (line 6)
  21685. * list directive, TIC54X: TIC54X-Directives. (line 129)
  21686. * listing control, turning off: Nolist. (line 6)
  21687. * listing control, turning on: List. (line 6)
  21688. * listing control: new page: Eject. (line 6)
  21689. * listing control: paper size: Psize. (line 6)
  21690. * listing control: subtitle: Sbttl. (line 6)
  21691. * listing control: title line: Title. (line 6)
  21692. * listings, enabling: a. (line 6)
  21693. * literal directive: Literal Directive. (line 6)
  21694. * literal pool entries, s390: s390 Literal Pool Entries.
  21695. (line 6)
  21696. * literal_position directive: Literal Position Directive.
  21697. (line 6)
  21698. * literal_prefix directive: Literal Prefix Directive.
  21699. (line 6)
  21700. * little endian output, MIPS: Overview. (line 858)
  21701. * little endian output, PJ: Overview. (line 762)
  21702. * little-endian output, MIPS: MIPS Options. (line 13)
  21703. * little-endian output, TIC6X: TIC6X Options. (line 46)
  21704. * LM32 line comment character: LM32-Chars. (line 6)
  21705. * LM32 line separator: LM32-Chars. (line 12)
  21706. * LM32 modifiers: LM32-Modifiers. (line 6)
  21707. * LM32 opcode summary: LM32 Opcodes. (line 6)
  21708. * LM32 options (none): LM32 Options. (line 6)
  21709. * LM32 register names: LM32-Regs. (line 6)
  21710. * LM32 support: LM32-Dependent. (line 6)
  21711. * ln directive: Ln. (line 6)
  21712. * lo directive, Nios II: Nios II Relocations.
  21713. (line 23)
  21714. * lo pseudo-op, V850: V850 Opcodes. (line 22)
  21715. * loc directive: Loc. (line 6)
  21716. * local common symbols: Lcomm. (line 6)
  21717. * local directive: Local. (line 6)
  21718. * local labels: Symbol Names. (line 43)
  21719. * local symbol names: Symbol Names. (line 30)
  21720. * local symbols, retaining in output: L. (line 6)
  21721. * location counter: Dot. (line 6)
  21722. * location counter, advancing: Org. (line 6)
  21723. * location counter, Z80: Z80-Chars. (line 15)
  21724. * loc_mark_labels directive: Loc_mark_labels. (line 6)
  21725. * logical file name: File. (line 13)
  21726. * logical line number: Line. (line 6)
  21727. * logical line numbers: Comments. (line 33)
  21728. * long directive: Long. (line 6)
  21729. * long directive, i386: i386-Float. (line 21)
  21730. * long directive, TIC54X: TIC54X-Directives. (line 133)
  21731. * long directive, x86-64: i386-Float. (line 21)
  21732. * longcall pseudo-op, V850: V850 Opcodes. (line 122)
  21733. * longcalls directive: Longcalls Directive.
  21734. (line 6)
  21735. * longjump pseudo-op, V850: V850 Opcodes. (line 128)
  21736. * Loongson Content Address Memory (CAM) generation override: MIPS ASE Instruction Generation Overrides.
  21737. (line 81)
  21738. * Loongson EXTensions (EXT) instructions generation override: MIPS ASE Instruction Generation Overrides.
  21739. (line 86)
  21740. * Loongson EXTensions R2 (EXT2) instructions generation override: MIPS ASE Instruction Generation Overrides.
  21741. (line 91)
  21742. * Loongson MultiMedia extensions Instructions (MMI) generation override: MIPS ASE Instruction Generation Overrides.
  21743. (line 76)
  21744. * loop counter, ARC: ARC-Regs. (line 41)
  21745. * loop directive, TIC54X: TIC54X-Directives. (line 141)
  21746. * LOOP instructions, alignment: Xtensa Automatic Alignment.
  21747. (line 6)
  21748. * low directive, M32R: M32R-Directives. (line 9)
  21749. * lp register, V850: V850-Regs. (line 68)
  21750. * lval: Z8000 Directives. (line 27)
  21751. * LWP, i386: i386-LWP. (line 6)
  21752. * LWP, x86-64: i386-LWP. (line 6)
  21753. * M16C architecture option: M32C-Opts. (line 12)
  21754. * M32C architecture option: M32C-Opts. (line 9)
  21755. * M32C line comment character: M32C-Chars. (line 6)
  21756. * M32C line separator: M32C-Chars. (line 14)
  21757. * M32C modifiers: M32C-Modifiers. (line 6)
  21758. * M32C options: M32C-Opts. (line 6)
  21759. * M32C support: M32C-Dependent. (line 6)
  21760. * M32R architecture options: M32R-Opts. (line 9)
  21761. * M32R architecture options <1>: M32R-Opts. (line 17)
  21762. * M32R architecture options <2>: M32R-Opts. (line 21)
  21763. * M32R directives: M32R-Directives. (line 6)
  21764. * M32R options: M32R-Opts. (line 6)
  21765. * M32R support: M32R-Dependent. (line 6)
  21766. * M32R warnings: M32R-Warnings. (line 6)
  21767. * M680x0 addressing modes: M68K-Syntax. (line 21)
  21768. * M680x0 architecture options: M68K-Opts. (line 99)
  21769. * M680x0 branch improvement: M68K-Branch. (line 6)
  21770. * M680x0 directives: M68K-Directives. (line 6)
  21771. * M680x0 floating point: M68K-Float. (line 6)
  21772. * M680x0 immediate character: M68K-Chars. (line 13)
  21773. * M680x0 line comment character: M68K-Chars. (line 6)
  21774. * M680x0 line separator: M68K-Chars. (line 20)
  21775. * M680x0 opcodes: M68K-opcodes. (line 6)
  21776. * M680x0 options: M68K-Opts. (line 6)
  21777. * M680x0 pseudo-opcodes: M68K-Branch. (line 6)
  21778. * M680x0 size modifiers: M68K-Syntax. (line 8)
  21779. * M680x0 support: M68K-Dependent. (line 6)
  21780. * M680x0 syntax: M68K-Syntax. (line 8)
  21781. * M68HC11 addressing modes: M68HC11-Syntax. (line 29)
  21782. * M68HC11 and M68HC12 support: M68HC11-Dependent. (line 6)
  21783. * M68HC11 assembler directive .far: M68HC11-Directives. (line 20)
  21784. * M68HC11 assembler directive .interrupt: M68HC11-Directives.
  21785. (line 26)
  21786. * M68HC11 assembler directive .mode: M68HC11-Directives. (line 16)
  21787. * M68HC11 assembler directive .relax: M68HC11-Directives. (line 10)
  21788. * M68HC11 assembler directive .xrefb: M68HC11-Directives. (line 31)
  21789. * M68HC11 assembler directives: M68HC11-Directives. (line 6)
  21790. * M68HC11 branch improvement: M68HC11-Branch. (line 6)
  21791. * M68HC11 floating point: M68HC11-Float. (line 6)
  21792. * M68HC11 line comment character: M68HC11-Syntax. (line 17)
  21793. * M68HC11 line separator: M68HC11-Syntax. (line 26)
  21794. * M68HC11 modifiers: M68HC11-Modifiers. (line 6)
  21795. * M68HC11 opcodes: M68HC11-opcodes. (line 6)
  21796. * M68HC11 options: M68HC11-Opts. (line 6)
  21797. * M68HC11 pseudo-opcodes: M68HC11-Branch. (line 6)
  21798. * M68HC11 syntax: M68HC11-Syntax. (line 6)
  21799. * M68HC12 assembler directives: M68HC11-Directives. (line 6)
  21800. * mA6 command-line option, ARC: ARC Options. (line 14)
  21801. * mA7 command-line option, ARC: ARC Options. (line 39)
  21802. * machine dependencies: Machine Dependencies.
  21803. (line 6)
  21804. * machine directives, AArch64: AArch64 Directives. (line 6)
  21805. * machine directives, ARC: ARC Directives. (line 6)
  21806. * machine directives, ARM: ARM Directives. (line 6)
  21807. * machine directives, BPF: BPF Directives. (line 6)
  21808. * machine directives, H8/300 (none): H8/300 Directives. (line 6)
  21809. * machine directives, MSP 430: MSP430 Directives. (line 6)
  21810. * machine directives, Nios II: Nios II Directives. (line 6)
  21811. * machine directives, OPENRISC: OpenRISC-Directives.
  21812. (line 6)
  21813. * machine directives, PRU: PRU Directives. (line 6)
  21814. * machine directives, RISC-V: RISC-V-Directives. (line 6)
  21815. * machine directives, SH: SH Directives. (line 6)
  21816. * machine directives, SPARC: Sparc-Directives. (line 6)
  21817. * machine directives, TIC54X: TIC54X-Directives. (line 6)
  21818. * machine directives, TIC6X: TIC6X Directives. (line 6)
  21819. * machine directives, TILE-Gx: TILE-Gx Directives. (line 6)
  21820. * machine directives, TILEPro: TILEPro Directives. (line 6)
  21821. * machine directives, V850: V850 Directives. (line 6)
  21822. * machine directives, VAX: VAX-directives. (line 6)
  21823. * machine directives, x86: i386-Directives. (line 6)
  21824. * machine directives, XStormy16: XStormy16 Directives.
  21825. (line 6)
  21826. * machine independent directives: Pseudo Ops. (line 6)
  21827. * machine instructions (not covered): Manual. (line 14)
  21828. * machine relocations, Nios II: Nios II Relocations.
  21829. (line 6)
  21830. * machine relocations, PRU: PRU Relocations. (line 6)
  21831. * machine-independent syntax: Syntax. (line 6)
  21832. * macro directive: Macro. (line 28)
  21833. * macro directive, TIC54X: TIC54X-Directives. (line 151)
  21834. * macros: Macro. (line 6)
  21835. * macros, count executed: Macro. (line 142)
  21836. * Macros, MSP 430: MSP430-Macros. (line 6)
  21837. * macros, TIC54X: TIC54X-Macros. (line 6)
  21838. * make rules: MD. (line 6)
  21839. * manual, structure and purpose: Manual. (line 6)
  21840. * marc600 command-line option, ARC: ARC Options. (line 14)
  21841. * mARC601 command-line option, ARC: ARC Options. (line 27)
  21842. * mARC700 command-line option, ARC: ARC Options. (line 39)
  21843. * march command-line option, C-SKY: C-SKY Options. (line 6)
  21844. * march command-line option, Nios II: Nios II Options. (line 28)
  21845. * math builtins, TIC54X: TIC54X-Builtins. (line 6)
  21846. * Maximum number of continuation lines: listing. (line 34)
  21847. * mbig-endian command-line option, C-SKY: C-SKY Options. (line 18)
  21848. * mbranch-stub command-line option, C-SKY: C-SKY Options. (line 34)
  21849. * mcache command-line option, C-SKY: C-SKY Options. (line 100)
  21850. * mcp command-line option, C-SKY: C-SKY Options. (line 97)
  21851. * mcpu command-line option, C-SKY: C-SKY Options. (line 10)
  21852. * mdsp command-line option, C-SKY: C-SKY Options. (line 109)
  21853. * medsp command-line option, C-SKY: C-SKY Options. (line 112)
  21854. * melrw command-line option, C-SKY: C-SKY Options. (line 64)
  21855. * mEM command-line option, ARC: ARC Options. (line 42)
  21856. * memory references, i386: i386-Memory. (line 6)
  21857. * memory references, x86-64: i386-Memory. (line 6)
  21858. * memory-mapped registers, TIC54X: TIC54X-MMRegs. (line 6)
  21859. * merging text and data sections: R. (line 6)
  21860. * messages from assembler: Errors. (line 6)
  21861. * Meta architectures: Meta Options. (line 6)
  21862. * Meta line comment character: Meta-Chars. (line 6)
  21863. * Meta line separator: Meta-Chars. (line 8)
  21864. * Meta options: Meta Options. (line 6)
  21865. * Meta registers: Meta-Regs. (line 6)
  21866. * Meta support: Meta-Dependent. (line 6)
  21867. * mforce2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21868. * mhard-float command-line option, C-SKY: C-SKY Options. (line 91)
  21869. * mHS command-line option, ARC: ARC Options. (line 64)
  21870. * MicroBlaze architectures: MicroBlaze-Dependent.
  21871. (line 6)
  21872. * MicroBlaze directives: MicroBlaze Directives.
  21873. (line 6)
  21874. * MicroBlaze line comment character: MicroBlaze-Chars. (line 6)
  21875. * MicroBlaze line separator: MicroBlaze-Chars. (line 14)
  21876. * MicroBlaze support: MicroBlaze-Dependent.
  21877. (line 12)
  21878. * minus, permitted arguments: Infix Ops. (line 50)
  21879. * MIPS 32-bit microMIPS instruction generation override: MIPS assembly options.
  21880. (line 18)
  21881. * MIPS architecture options: MIPS Options. (line 29)
  21882. * MIPS big-endian output: MIPS Options. (line 13)
  21883. * MIPS CPU override: MIPS ISA. (line 18)
  21884. * MIPS cyclic redundancy check (CRC) instruction generation override: MIPS ASE Instruction Generation Overrides.
  21885. (line 68)
  21886. * MIPS directives to override command-line options: MIPS assembly options.
  21887. (line 6)
  21888. * MIPS DSP Release 1 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21889. (line 21)
  21890. * MIPS DSP Release 2 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21891. (line 26)
  21892. * MIPS DSP Release 3 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21893. (line 31)
  21894. * MIPS endianness: Overview. (line 855)
  21895. * MIPS eXtended Physical Address (XPA) instruction generation override: MIPS ASE Instruction Generation Overrides.
  21896. (line 57)
  21897. * MIPS Global INValidate (GINV) instruction generation override: MIPS ASE Instruction Generation Overrides.
  21898. (line 72)
  21899. * MIPS IEEE 754 NaN data encoding selection: MIPS NaN Encodings.
  21900. (line 6)
  21901. * MIPS ISA: Overview. (line 861)
  21902. * MIPS ISA override: MIPS ISA. (line 6)
  21903. * MIPS line comment character: MIPS-Chars. (line 6)
  21904. * MIPS line separator: MIPS-Chars. (line 14)
  21905. * MIPS little-endian output: MIPS Options. (line 13)
  21906. * MIPS MCU instruction generation override: MIPS ASE Instruction Generation Overrides.
  21907. (line 42)
  21908. * MIPS MDMX instruction generation override: MIPS ASE Instruction Generation Overrides.
  21909. (line 16)
  21910. * MIPS MIPS-3D instruction generation override: MIPS ASE Instruction Generation Overrides.
  21911. (line 6)
  21912. * MIPS MT instruction generation override: MIPS ASE Instruction Generation Overrides.
  21913. (line 37)
  21914. * MIPS option stack: MIPS Option Stack. (line 6)
  21915. * MIPS processor: MIPS-Dependent. (line 6)
  21916. * MIPS SIMD Architecture instruction generation override: MIPS ASE Instruction Generation Overrides.
  21917. (line 47)
  21918. * MIPS16e2 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21919. (line 61)
  21920. * mistack command-line option, C-SKY: C-SKY Options. (line 82)
  21921. * MIT: M68K-Syntax. (line 6)
  21922. * mjsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  21923. * mlabr command-line option, C-SKY: C-SKY Options. (line 75)
  21924. * mlaf command-line option, C-SKY: C-SKY Options. (line 69)
  21925. * mlib directive, TIC54X: TIC54X-Directives. (line 157)
  21926. * mlink-relax command-line option, PRU: PRU Options. (line 6)
  21927. * mlist directive, TIC54X: TIC54X-Directives. (line 162)
  21928. * mliterals-after-br command-line option, C-SKY: C-SKY Options.
  21929. (line 75)
  21930. * mliterals-after-func command-line option, C-SKY: C-SKY Options.
  21931. (line 69)
  21932. * mlittle-endian command-line option, C-SKY: C-SKY Options. (line 14)
  21933. * mljump command-line option, C-SKY: C-SKY Options. (line 26)
  21934. * MMIX assembler directive BSPEC: MMIX-Pseudos. (line 137)
  21935. * MMIX assembler directive BYTE: MMIX-Pseudos. (line 101)
  21936. * MMIX assembler directive ESPEC: MMIX-Pseudos. (line 137)
  21937. * MMIX assembler directive GREG: MMIX-Pseudos. (line 53)
  21938. * MMIX assembler directive IS: MMIX-Pseudos. (line 44)
  21939. * MMIX assembler directive LOC: MMIX-Pseudos. (line 7)
  21940. * MMIX assembler directive LOCAL: MMIX-Pseudos. (line 29)
  21941. * MMIX assembler directive OCTA: MMIX-Pseudos. (line 113)
  21942. * MMIX assembler directive PREFIX: MMIX-Pseudos. (line 125)
  21943. * MMIX assembler directive TETRA: MMIX-Pseudos. (line 113)
  21944. * MMIX assembler directive WYDE: MMIX-Pseudos. (line 113)
  21945. * MMIX assembler directives: MMIX-Pseudos. (line 6)
  21946. * MMIX line comment characters: MMIX-Chars. (line 6)
  21947. * MMIX options: MMIX-Opts. (line 6)
  21948. * MMIX pseudo-op BSPEC: MMIX-Pseudos. (line 137)
  21949. * MMIX pseudo-op BYTE: MMIX-Pseudos. (line 101)
  21950. * MMIX pseudo-op ESPEC: MMIX-Pseudos. (line 137)
  21951. * MMIX pseudo-op GREG: MMIX-Pseudos. (line 53)
  21952. * MMIX pseudo-op IS: MMIX-Pseudos. (line 44)
  21953. * MMIX pseudo-op LOC: MMIX-Pseudos. (line 7)
  21954. * MMIX pseudo-op LOCAL: MMIX-Pseudos. (line 29)
  21955. * MMIX pseudo-op OCTA: MMIX-Pseudos. (line 113)
  21956. * MMIX pseudo-op PREFIX: MMIX-Pseudos. (line 125)
  21957. * MMIX pseudo-op TETRA: MMIX-Pseudos. (line 113)
  21958. * MMIX pseudo-op WYDE: MMIX-Pseudos. (line 113)
  21959. * MMIX pseudo-ops: MMIX-Pseudos. (line 6)
  21960. * MMIX register names: MMIX-Regs. (line 6)
  21961. * MMIX support: MMIX-Dependent. (line 6)
  21962. * mmixal differences: MMIX-mmixal. (line 6)
  21963. * mmp command-line option, C-SKY: C-SKY Options. (line 94)
  21964. * mmregs directive, TIC54X: TIC54X-Directives. (line 167)
  21965. * mmsg directive, TIC54X: TIC54X-Directives. (line 75)
  21966. * MMX, i386: i386-SIMD. (line 6)
  21967. * MMX, x86-64: i386-SIMD. (line 6)
  21968. * mnemonic compatibility, i386: i386-Mnemonics. (line 81)
  21969. * mnemonic suffixes, i386: i386-Variations. (line 28)
  21970. * mnemonic suffixes, x86-64: i386-Variations. (line 28)
  21971. * mnemonics for opcodes, VAX: VAX-opcodes. (line 6)
  21972. * mnemonics, AVR: AVR Opcodes. (line 6)
  21973. * mnemonics, D10V: D10V-Opcodes. (line 6)
  21974. * mnemonics, D30V: D30V-Opcodes. (line 6)
  21975. * mnemonics, H8/300: H8/300 Opcodes. (line 6)
  21976. * mnemonics, LM32: LM32 Opcodes. (line 6)
  21977. * mnemonics, OpenRISC: OpenRISC-Opcodes. (line 6)
  21978. * mnemonics, SH: SH Opcodes. (line 6)
  21979. * mnemonics, Z8000: Z8000 Opcodes. (line 6)
  21980. * mno-branch-stub command-line option, C-SKY: C-SKY Options. (line 34)
  21981. * mno-elrw command-line option, C-SKY: C-SKY Options. (line 64)
  21982. * mno-force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21983. * mno-istack command-line option, C-SKY: C-SKY Options. (line 82)
  21984. * mno-jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  21985. * mno-labr command-line option, C-SKY: C-SKY Options. (line 75)
  21986. * mno-laf command-line option, C-SKY: C-SKY Options. (line 69)
  21987. * mno-link-relax command-line option, PRU: PRU Options. (line 12)
  21988. * mno-literals-after-func command-line option, C-SKY: C-SKY Options.
  21989. (line 69)
  21990. * mno-ljump command-line option, C-SKY: C-SKY Options. (line 26)
  21991. * mno-lrw command-line option, C-SKY: C-SKY Options. (line 59)
  21992. * mno-warn-regname-label command-line option, PRU: PRU Options.
  21993. (line 16)
  21994. * mnolist directive, TIC54X: TIC54X-Directives. (line 162)
  21995. * mnoliterals-after-br command-line option, C-SKY: C-SKY Options.
  21996. (line 75)
  21997. * mnolrw command-line option, C-SKY: C-SKY Options. (line 59)
  21998. * mnps400 command-line option, ARC: ARC Options. (line 79)
  21999. * modifiers, M32C: M32C-Modifiers. (line 6)
  22000. * module layout, WebAssembly: WebAssembly-module-layout.
  22001. (line 6)
  22002. * Motorola syntax for the 680x0: M68K-Moto-Syntax. (line 6)
  22003. * MOVI instructions, relaxation: Xtensa Immediate Relaxation.
  22004. (line 12)
  22005. * MOVN, MOVZ and MOVK group relocations, AArch64: AArch64-Relocations.
  22006. (line 6)
  22007. * MOVW and MOVT relocations, ARM: ARM-Relocations. (line 21)
  22008. * MRI compatibility mode: M. (line 6)
  22009. * mri directive: MRI. (line 6)
  22010. * MRI mode, temporarily: MRI. (line 6)
  22011. * msecurity command-line option, C-SKY: C-SKY Options. (line 103)
  22012. * MSP 430 floating point (IEEE): MSP430 Floating Point.
  22013. (line 6)
  22014. * MSP 430 identifiers: MSP430-Chars. (line 17)
  22015. * MSP 430 line comment character: MSP430-Chars. (line 6)
  22016. * MSP 430 line separator: MSP430-Chars. (line 14)
  22017. * MSP 430 machine directives: MSP430 Directives. (line 6)
  22018. * MSP 430 macros: MSP430-Macros. (line 6)
  22019. * MSP 430 opcodes: MSP430 Opcodes. (line 6)
  22020. * MSP 430 options (none): MSP430 Options. (line 6)
  22021. * MSP 430 profiling capability: MSP430 Profiling Capability.
  22022. (line 6)
  22023. * MSP 430 register names: MSP430-Regs. (line 6)
  22024. * MSP 430 support: MSP430-Dependent. (line 6)
  22025. * MSP430 Assembler Extensions: MSP430-Ext. (line 6)
  22026. * mspabi_attribute directive, MSP430: MSP430 Directives. (line 38)
  22027. * mtrust command-line option, C-SKY: C-SKY Options. (line 106)
  22028. * mul instruction, i386: i386-Notes. (line 6)
  22029. * mul instruction, x86-64: i386-Notes. (line 6)
  22030. * mvdsp command-line option, C-SKY: C-SKY Options. (line 115)
  22031. * N32K support: NS32K-Dependent. (line 6)
  22032. * name: Z8000 Directives. (line 18)
  22033. * named section: Section. (line 6)
  22034. * named sections: Ld Sections. (line 8)
  22035. * names, symbol: Symbol Names. (line 6)
  22036. * naming object file: o. (line 6)
  22037. * NDS32 options: NDS32 Options. (line 6)
  22038. * NDS32 processor: NDS32-Dependent. (line 6)
  22039. * new page, in listings: Eject. (line 6)
  22040. * newblock directive, TIC54X: TIC54X-Directives. (line 173)
  22041. * newline (\n): Strings. (line 21)
  22042. * newline, required at file end: Statements. (line 14)
  22043. * Nios II line comment character: Nios II Chars. (line 6)
  22044. * Nios II line separator character: Nios II Chars. (line 6)
  22045. * Nios II machine directives: Nios II Directives. (line 6)
  22046. * Nios II machine relocations: Nios II Relocations.
  22047. (line 6)
  22048. * Nios II opcodes: Nios II Opcodes. (line 6)
  22049. * Nios II options: Nios II Options. (line 6)
  22050. * Nios II support: NiosII-Dependent. (line 6)
  22051. * Nios support: NiosII-Dependent. (line 6)
  22052. * no-absolute-literals directive: Absolute Literals Directive.
  22053. (line 6)
  22054. * no-force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  22055. * no-jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  22056. * no-longcalls directive: Longcalls Directive.
  22057. (line 6)
  22058. * no-relax command-line option, Nios II: Nios II Options. (line 19)
  22059. * no-schedule directive: Schedule Directive. (line 6)
  22060. * no-transform directive: Transform Directive.
  22061. (line 6)
  22062. * nodelay directive, OpenRISC: OpenRISC-Directives.
  22063. (line 15)
  22064. * nolist directive: Nolist. (line 6)
  22065. * nolist directive, TIC54X: TIC54X-Directives. (line 129)
  22066. * NOP pseudo op, ARM: ARM Opcodes. (line 9)
  22067. * nops directive: Nops. (line 6)
  22068. * notes for Alpha: Alpha Notes. (line 6)
  22069. * notes for WebAssembly: WebAssembly-Notes. (line 6)
  22070. * NS32K line comment character: NS32K-Chars. (line 6)
  22071. * NS32K line separator: NS32K-Chars. (line 18)
  22072. * null-terminated strings: Asciz. (line 6)
  22073. * number constants: Numbers. (line 6)
  22074. * number of macros executed: Macro. (line 142)
  22075. * numbered subsections: Sub-Sections. (line 6)
  22076. * numbers, 16-bit: hword. (line 6)
  22077. * numeric values: Expressions. (line 6)
  22078. * nword directive, SPARC: Sparc-Directives. (line 20)
  22079. * Object Attribute, RISC-V: RISC-V-ATTRIBUTE. (line 6)
  22080. * object attributes: Object Attributes. (line 6)
  22081. * object file: Object. (line 6)
  22082. * object file format: Object Formats. (line 6)
  22083. * object file name: o. (line 6)
  22084. * object file, after errors: Z. (line 6)
  22085. * obsolescent directives: Deprecated. (line 6)
  22086. * octa directive: Octa. (line 6)
  22087. * octal character code (\DDD): Strings. (line 30)
  22088. * octal integers: Integers. (line 9)
  22089. * offset directive: Offset. (line 6)
  22090. * offset directive, V850: V850 Directives. (line 6)
  22091. * opcode mnemonics, VAX: VAX-opcodes. (line 6)
  22092. * opcode names, TILE-Gx: TILE-Gx Opcodes. (line 6)
  22093. * opcode names, TILEPro: TILEPro Opcodes. (line 6)
  22094. * opcode names, Xtensa: Xtensa Opcodes. (line 6)
  22095. * opcode summary, AVR: AVR Opcodes. (line 6)
  22096. * opcode summary, D10V: D10V-Opcodes. (line 6)
  22097. * opcode summary, D30V: D30V-Opcodes. (line 6)
  22098. * opcode summary, H8/300: H8/300 Opcodes. (line 6)
  22099. * opcode summary, LM32: LM32 Opcodes. (line 6)
  22100. * opcode summary, OpenRISC: OpenRISC-Opcodes. (line 6)
  22101. * opcode summary, SH: SH Opcodes. (line 6)
  22102. * opcode summary, Z8000: Z8000 Opcodes. (line 6)
  22103. * opcodes for AArch64: AArch64 Opcodes. (line 6)
  22104. * opcodes for ARC: ARC Opcodes. (line 6)
  22105. * opcodes for ARM: ARM Opcodes. (line 6)
  22106. * opcodes for BPF: BPF Opcodes. (line 6)
  22107. * opcodes for MSP 430: MSP430 Opcodes. (line 6)
  22108. * opcodes for Nios II: Nios II Opcodes. (line 6)
  22109. * opcodes for PRU: PRU Opcodes. (line 6)
  22110. * opcodes for V850: V850 Opcodes. (line 6)
  22111. * opcodes, M680x0: M68K-opcodes. (line 6)
  22112. * opcodes, M68HC11: M68HC11-opcodes. (line 6)
  22113. * opcodes, WebAssembly: WebAssembly-Opcodes.
  22114. (line 6)
  22115. * OPENRISC floating point (IEEE): OpenRISC-Float. (line 6)
  22116. * OpenRISC line comment character: OpenRISC-Chars. (line 6)
  22117. * OpenRISC line separator: OpenRISC-Chars. (line 9)
  22118. * OPENRISC machine directives: OpenRISC-Directives.
  22119. (line 6)
  22120. * OpenRISC opcode summary: OpenRISC-Opcodes. (line 6)
  22121. * OpenRISC registers: OpenRISC-Regs. (line 6)
  22122. * OpenRISC relocations: OpenRISC-Relocs. (line 6)
  22123. * OPENRISC support: OpenRISC-Dependent. (line 6)
  22124. * OPENRISC syntax: OpenRISC-Dependent. (line 13)
  22125. * operand delimiters, i386: i386-Variations. (line 15)
  22126. * operand delimiters, x86-64: i386-Variations. (line 15)
  22127. * operand notation, VAX: VAX-operands. (line 6)
  22128. * operands in expressions: Arguments. (line 6)
  22129. * operator precedence: Infix Ops. (line 11)
  22130. * operators, in expressions: Operators. (line 6)
  22131. * operators, permitted arguments: Infix Ops. (line 6)
  22132. * optimization, D10V: Overview. (line 638)
  22133. * optimization, D30V: Overview. (line 643)
  22134. * optimizations: Xtensa Optimizations.
  22135. (line 6)
  22136. * Option directive: RISC-V-Directives. (line 34)
  22137. * option directive: RISC-V-Directives. (line 34)
  22138. * option directive, TIC54X: TIC54X-Directives. (line 177)
  22139. * option summary: Overview. (line 6)
  22140. * options for AArch64 (none): AArch64 Options. (line 6)
  22141. * options for Alpha: Alpha Options. (line 6)
  22142. * options for ARC: ARC Options. (line 6)
  22143. * options for ARM (none): ARM Options. (line 6)
  22144. * options for AVR (none): AVR Options. (line 6)
  22145. * options for Blackfin (none): Blackfin Options. (line 6)
  22146. * options for BPF (none): BPF Options. (line 6)
  22147. * options for C-SKY: C-SKY Options. (line 6)
  22148. * options for i386: i386-Options. (line 6)
  22149. * options for IA-64: IA-64 Options. (line 6)
  22150. * options for LM32 (none): LM32 Options. (line 6)
  22151. * options for Meta: Meta Options. (line 6)
  22152. * options for MSP430 (none): MSP430 Options. (line 6)
  22153. * options for NDS32: NDS32 Options. (line 6)
  22154. * options for Nios II: Nios II Options. (line 6)
  22155. * options for PDP-11: PDP-11-Options. (line 6)
  22156. * options for PowerPC: PowerPC-Opts. (line 6)
  22157. * options for PRU: PRU Options. (line 6)
  22158. * options for s390: s390 Options. (line 6)
  22159. * options for SCORE: SCORE-Opts. (line 6)
  22160. * options for SPARC: Sparc-Opts. (line 6)
  22161. * options for TIC6X: TIC6X Options. (line 6)
  22162. * options for V850 (none): V850 Options. (line 6)
  22163. * options for VAX/VMS: VAX-Opts. (line 42)
  22164. * options for Visium: Visium Options. (line 6)
  22165. * options for x86-64: i386-Options. (line 6)
  22166. * options for Z80: Z80 Options. (line 6)
  22167. * options, all versions of assembler: Invoking. (line 6)
  22168. * options, command line: Command Line. (line 13)
  22169. * options, CRIS: CRIS-Opts. (line 6)
  22170. * options, D10V: D10V-Opts. (line 6)
  22171. * options, D30V: D30V-Opts. (line 6)
  22172. * options, Epiphany: Epiphany Options. (line 6)
  22173. * options, H8/300: H8/300 Options. (line 6)
  22174. * options, IP2K: IP2K-Opts. (line 6)
  22175. * options, M32C: M32C-Opts. (line 6)
  22176. * options, M32R: M32R-Opts. (line 6)
  22177. * options, M680x0: M68K-Opts. (line 6)
  22178. * options, M68HC11: M68HC11-Opts. (line 6)
  22179. * options, MMIX: MMIX-Opts. (line 6)
  22180. * options, PJ: PJ Options. (line 6)
  22181. * options, RL78: RL78-Opts. (line 6)
  22182. * options, RX: RX-Opts. (line 6)
  22183. * options, S12Z: S12Z Options. (line 6)
  22184. * options, SH: SH Options. (line 6)
  22185. * options, TIC54X: TIC54X-Opts. (line 6)
  22186. * options, XGATE: XGATE-Opts. (line 6)
  22187. * options, Z8000: Z8000 Options. (line 6)
  22188. * org directive: Org. (line 6)
  22189. * other attribute, of a.out symbol: Symbol Other. (line 6)
  22190. * output file: Object. (line 6)
  22191. * output section padding: no-pad-sections. (line 6)
  22192. * p2align directive: P2align. (line 6)
  22193. * p2alignl directive: P2align. (line 30)
  22194. * p2alignw directive: P2align. (line 30)
  22195. * padding the location counter: Align. (line 6)
  22196. * padding the location counter given a power of two: P2align.
  22197. (line 6)
  22198. * padding the location counter given number of bytes: Balign.
  22199. (line 6)
  22200. * page, in listings: Eject. (line 6)
  22201. * paper size, for listings: Psize. (line 6)
  22202. * paths for .include: I. (line 6)
  22203. * patterns, writing in memory: Fill. (line 6)
  22204. * PDP-11 comments: PDP-11-Syntax. (line 16)
  22205. * PDP-11 floating-point register syntax: PDP-11-Syntax. (line 13)
  22206. * PDP-11 general-purpose register syntax: PDP-11-Syntax. (line 10)
  22207. * PDP-11 instruction naming: PDP-11-Mnemonics. (line 6)
  22208. * PDP-11 line separator: PDP-11-Syntax. (line 19)
  22209. * PDP-11 support: PDP-11-Dependent. (line 6)
  22210. * PDP-11 syntax: PDP-11-Syntax. (line 6)
  22211. * PIC code generation for ARM: ARM Options. (line 366)
  22212. * PIC code generation for M32R: M32R-Opts. (line 42)
  22213. * pic command-line option, C-SKY: C-SKY Options. (line 22)
  22214. * PIC selection, MIPS: MIPS Options. (line 21)
  22215. * PJ endianness: Overview. (line 759)
  22216. * PJ line comment character: PJ-Chars. (line 6)
  22217. * PJ line separator: PJ-Chars. (line 14)
  22218. * PJ options: PJ Options. (line 6)
  22219. * PJ support: PJ-Dependent. (line 6)
  22220. * plus, permitted arguments: Infix Ops. (line 45)
  22221. * pmem directive, PRU: PRU Relocations. (line 6)
  22222. * popsection directive: PopSection. (line 6)
  22223. * Position-independent code, CRIS: CRIS-Opts. (line 27)
  22224. * Position-independent code, symbols in, CRIS: CRIS-Pic. (line 6)
  22225. * PowerPC architectures: PowerPC-Opts. (line 6)
  22226. * PowerPC directives: PowerPC-Pseudo. (line 6)
  22227. * PowerPC line comment character: PowerPC-Chars. (line 6)
  22228. * PowerPC line separator: PowerPC-Chars. (line 18)
  22229. * PowerPC options: PowerPC-Opts. (line 6)
  22230. * PowerPC support: PPC-Dependent. (line 6)
  22231. * precedence of operators: Infix Ops. (line 11)
  22232. * precision, floating point: Flonums. (line 6)
  22233. * prefix operators: Prefix Ops. (line 6)
  22234. * prefixes, i386: i386-Prefixes. (line 6)
  22235. * preprocessing: Preprocessing. (line 6)
  22236. * preprocessing, turning on and off: Preprocessing. (line 26)
  22237. * previous directive: Previous. (line 6)
  22238. * primary attributes, COFF symbols: COFF Symbols. (line 13)
  22239. * print directive: Print. (line 6)
  22240. * proc directive, OpenRISC: OpenRISC-Directives.
  22241. (line 20)
  22242. * proc directive, SPARC: Sparc-Directives. (line 25)
  22243. * Processor Identification register, ARC: ARC-Regs. (line 51)
  22244. * profiler directive, MSP 430: MSP430 Directives. (line 26)
  22245. * profiling capability for MSP 430: MSP430 Profiling Capability.
  22246. (line 6)
  22247. * Program Counter, ARC: ARC-Regs. (line 54)
  22248. * protected directive: Protected. (line 6)
  22249. * PRU line comment character: PRU Chars. (line 6)
  22250. * PRU machine directives: PRU Directives. (line 6)
  22251. * PRU machine relocations: PRU Relocations. (line 6)
  22252. * PRU opcodes: PRU Opcodes. (line 6)
  22253. * PRU options: PRU Options. (line 6)
  22254. * PRU support: PRU-Dependent. (line 6)
  22255. * pseudo map fd, BPF: BPF-Pseudo-Maps. (line 6)
  22256. * pseudo-op .arch, CRIS: CRIS-Pseudos. (line 50)
  22257. * pseudo-op .dword, CRIS: CRIS-Pseudos. (line 12)
  22258. * pseudo-op .syntax, CRIS: CRIS-Pseudos. (line 18)
  22259. * pseudo-op BSPEC, MMIX: MMIX-Pseudos. (line 137)
  22260. * pseudo-op BYTE, MMIX: MMIX-Pseudos. (line 101)
  22261. * pseudo-op ESPEC, MMIX: MMIX-Pseudos. (line 137)
  22262. * pseudo-op GREG, MMIX: MMIX-Pseudos. (line 53)
  22263. * pseudo-op IS, MMIX: MMIX-Pseudos. (line 44)
  22264. * pseudo-op LOC, MMIX: MMIX-Pseudos. (line 7)
  22265. * pseudo-op LOCAL, MMIX: MMIX-Pseudos. (line 29)
  22266. * pseudo-op OCTA, MMIX: MMIX-Pseudos. (line 113)
  22267. * pseudo-op PREFIX, MMIX: MMIX-Pseudos. (line 125)
  22268. * pseudo-op TETRA, MMIX: MMIX-Pseudos. (line 113)
  22269. * pseudo-op WYDE, MMIX: MMIX-Pseudos. (line 113)
  22270. * pseudo-opcodes for XStormy16: XStormy16 Opcodes. (line 6)
  22271. * pseudo-opcodes, M680x0: M68K-Branch. (line 6)
  22272. * pseudo-opcodes, M68HC11: M68HC11-Branch. (line 6)
  22273. * pseudo-ops for branch, VAX: VAX-branch. (line 6)
  22274. * pseudo-ops, CRIS: CRIS-Pseudos. (line 6)
  22275. * pseudo-ops, machine independent: Pseudo Ops. (line 6)
  22276. * pseudo-ops, MMIX: MMIX-Pseudos. (line 6)
  22277. * psize directive: Psize. (line 6)
  22278. * PSR bits: IA-64-Bits. (line 6)
  22279. * pstring directive, TIC54X: TIC54X-Directives. (line 206)
  22280. * psw register, V850: V850-Regs. (line 80)
  22281. * purgem directive: Purgem. (line 6)
  22282. * purpose of GNU assembler: GNU Assembler. (line 12)
  22283. * pushsection directive: PushSection. (line 6)
  22284. * quad directive: Quad. (line 6)
  22285. * quad directive, i386: i386-Float. (line 21)
  22286. * quad directive, x86-64: i386-Float. (line 21)
  22287. * real-mode code, i386: i386-16bit. (line 6)
  22288. * ref directive, TIC54X: TIC54X-Directives. (line 101)
  22289. * refsym directive, MSP 430: MSP430 Directives. (line 30)
  22290. * register directive, SPARC: Sparc-Directives. (line 29)
  22291. * register name prefix character, ARC: ARC-Chars. (line 7)
  22292. * register names, AArch64: AArch64-Regs. (line 6)
  22293. * register names, Alpha: Alpha-Regs. (line 6)
  22294. * register names, ARC: ARC-Regs. (line 6)
  22295. * register names, ARM: ARM-Regs. (line 6)
  22296. * register names, AVR: AVR-Regs. (line 6)
  22297. * register names, BPF: BPF-Regs. (line 6)
  22298. * register names, CRIS: CRIS-Regs. (line 6)
  22299. * register names, H8/300: H8/300-Regs. (line 6)
  22300. * register names, IA-64: IA-64-Regs. (line 6)
  22301. * register names, LM32: LM32-Regs. (line 6)
  22302. * register names, MMIX: MMIX-Regs. (line 6)
  22303. * register names, MSP 430: MSP430-Regs. (line 6)
  22304. * register names, OpenRISC: OpenRISC-Regs. (line 6)
  22305. * register names, S12Z: S12Z Addressing Modes.
  22306. (line 28)
  22307. * register names, Sparc: Sparc-Regs. (line 6)
  22308. * register names, TILE-Gx: TILE-Gx Registers. (line 6)
  22309. * register names, TILEPro: TILEPro Registers. (line 6)
  22310. * register names, V850: V850-Regs. (line 6)
  22311. * register names, VAX: VAX-operands. (line 17)
  22312. * register names, Visium: Visium Registers. (line 6)
  22313. * register names, Xtensa: Xtensa Registers. (line 6)
  22314. * register names, Z80: Z80-Regs. (line 6)
  22315. * register naming, s390: s390 Register. (line 6)
  22316. * register notation, S12Z: S12Z Register Notation.
  22317. (line 6)
  22318. * register operands, i386: i386-Variations. (line 15)
  22319. * register operands, x86-64: i386-Variations. (line 15)
  22320. * registers, D10V: D10V-Regs. (line 6)
  22321. * registers, D30V: D30V-Regs. (line 6)
  22322. * registers, i386: i386-Regs. (line 6)
  22323. * registers, Meta: Meta-Regs. (line 6)
  22324. * registers, SH: SH-Regs. (line 6)
  22325. * registers, TIC54X memory-mapped: TIC54X-MMRegs. (line 6)
  22326. * registers, x86-64: i386-Regs. (line 6)
  22327. * registers, Z8000: Z8000-Regs. (line 6)
  22328. * relax-all command-line option, Nios II: Nios II Options. (line 13)
  22329. * relax-section command-line option, Nios II: Nios II Options.
  22330. (line 6)
  22331. * relaxation: Xtensa Relaxation. (line 6)
  22332. * relaxation of ADDI instructions: Xtensa Immediate Relaxation.
  22333. (line 43)
  22334. * relaxation of branch instructions: Xtensa Branch Relaxation.
  22335. (line 6)
  22336. * relaxation of call instructions: Xtensa Call Relaxation.
  22337. (line 6)
  22338. * relaxation of immediate fields: Xtensa Immediate Relaxation.
  22339. (line 6)
  22340. * relaxation of jump instructions: Xtensa Jump Relaxation.
  22341. (line 6)
  22342. * relaxation of L16SI instructions: Xtensa Immediate Relaxation.
  22343. (line 23)
  22344. * relaxation of L16UI instructions: Xtensa Immediate Relaxation.
  22345. (line 23)
  22346. * relaxation of L32I instructions: Xtensa Immediate Relaxation.
  22347. (line 23)
  22348. * relaxation of L8UI instructions: Xtensa Immediate Relaxation.
  22349. (line 23)
  22350. * relaxation of MOVI instructions: Xtensa Immediate Relaxation.
  22351. (line 12)
  22352. * reloc directive: Reloc. (line 6)
  22353. * relocation: Sections. (line 6)
  22354. * relocation example: Ld Sections. (line 40)
  22355. * relocations, AArch64: AArch64-Relocations.
  22356. (line 6)
  22357. * relocations, Alpha: Alpha-Relocs. (line 6)
  22358. * relocations, OpenRISC: OpenRISC-Relocs. (line 6)
  22359. * relocations, Sparc: Sparc-Relocs. (line 6)
  22360. * relocations, WebAssembly: WebAssembly-Relocs. (line 6)
  22361. * repeat prefixes, i386: i386-Prefixes. (line 44)
  22362. * reporting bugs in assembler: Reporting Bugs. (line 6)
  22363. * rept directive: Rept. (line 6)
  22364. * reserve directive, SPARC: Sparc-Directives. (line 39)
  22365. * return instructions, i386: i386-Variations. (line 45)
  22366. * return instructions, x86-64: i386-Variations. (line 45)
  22367. * REX prefixes, i386: i386-Prefixes. (line 46)
  22368. * RISC-V instruction formats: RISC-V-Formats. (line 6)
  22369. * RISC-V machine directives: RISC-V-Directives. (line 6)
  22370. * RISC-V support: RISC-V-Dependent. (line 6)
  22371. * RL78 assembler directives: RL78-Directives. (line 6)
  22372. * RL78 line comment character: RL78-Chars. (line 6)
  22373. * RL78 line separator: RL78-Chars. (line 14)
  22374. * RL78 modifiers: RL78-Modifiers. (line 6)
  22375. * RL78 options: RL78-Opts. (line 6)
  22376. * RL78 support: RL78-Dependent. (line 6)
  22377. * rsect: Z8000 Directives. (line 52)
  22378. * RX assembler directive .3byte: RX-Directives. (line 9)
  22379. * RX assembler directive .fetchalign: RX-Directives. (line 13)
  22380. * RX assembler directives: RX-Directives. (line 6)
  22381. * RX floating point: RX-Float. (line 6)
  22382. * RX line comment character: RX-Chars. (line 6)
  22383. * RX line separator: RX-Chars. (line 14)
  22384. * RX modifiers: RX-Modifiers. (line 6)
  22385. * RX options: RX-Opts. (line 6)
  22386. * RX support: RX-Dependent. (line 6)
  22387. * S12Z addressing modes: S12Z Addressing Modes.
  22388. (line 6)
  22389. * S12Z line separator: S12Z Syntax Overview.
  22390. (line 41)
  22391. * S12Z options: S12Z Options. (line 6)
  22392. * S12Z support: S12Z-Dependent. (line 8)
  22393. * S12Z syntax: S12Z Syntax. (line 12)
  22394. * s390 floating point: s390 Floating Point.
  22395. (line 6)
  22396. * s390 instruction aliases: s390 Aliases. (line 6)
  22397. * s390 instruction formats: s390 Formats. (line 6)
  22398. * s390 instruction marker: s390 Instruction Marker.
  22399. (line 6)
  22400. * s390 instruction mnemonics: s390 Mnemonics. (line 6)
  22401. * s390 instruction operand modifier: s390 Operand Modifier.
  22402. (line 6)
  22403. * s390 instruction operands: s390 Operands. (line 6)
  22404. * s390 instruction syntax: s390 Syntax. (line 6)
  22405. * s390 line comment character: s390 Characters. (line 6)
  22406. * s390 line separator: s390 Characters. (line 13)
  22407. * s390 literal pool entries: s390 Literal Pool Entries.
  22408. (line 6)
  22409. * s390 options: s390 Options. (line 6)
  22410. * s390 register naming: s390 Register. (line 6)
  22411. * s390 support: S/390-Dependent. (line 6)
  22412. * Saved User Stack Pointer, ARC: ARC-Regs. (line 73)
  22413. * sblock directive, TIC54X: TIC54X-Directives. (line 180)
  22414. * sbttl directive: Sbttl. (line 6)
  22415. * schedule directive: Schedule Directive. (line 6)
  22416. * scl directive: Scl. (line 6)
  22417. * SCORE architectures: SCORE-Opts. (line 6)
  22418. * SCORE directives: SCORE-Pseudo. (line 6)
  22419. * SCORE line comment character: SCORE-Chars. (line 6)
  22420. * SCORE line separator: SCORE-Chars. (line 14)
  22421. * SCORE options: SCORE-Opts. (line 6)
  22422. * SCORE processor: SCORE-Dependent. (line 6)
  22423. * sdaoff pseudo-op, V850: V850 Opcodes. (line 65)
  22424. * search path for .include: I. (line 6)
  22425. * sect directive, TIC54X: TIC54X-Directives. (line 186)
  22426. * section directive (COFF version): Section. (line 16)
  22427. * section directive (ELF version): Section. (line 67)
  22428. * section directive, V850: V850 Directives. (line 9)
  22429. * section name substitution: Section. (line 71)
  22430. * section override prefixes, i386: i386-Prefixes. (line 23)
  22431. * Section Stack: PopSection. (line 6)
  22432. * Section Stack <1>: Previous. (line 6)
  22433. * Section Stack <2>: PushSection. (line 6)
  22434. * Section Stack <3>: Section. (line 62)
  22435. * Section Stack <4>: SubSection. (line 6)
  22436. * section-relative addressing: Secs Background. (line 65)
  22437. * sections: Sections. (line 6)
  22438. * sections in messages, internal: As Sections. (line 6)
  22439. * sections, i386: i386-Variations. (line 51)
  22440. * sections, named: Ld Sections. (line 8)
  22441. * sections, x86-64: i386-Variations. (line 51)
  22442. * seg directive, SPARC: Sparc-Directives. (line 44)
  22443. * segm: Z8000 Directives. (line 10)
  22444. * set at directive, Nios II: Nios II Directives. (line 35)
  22445. * set break directive, Nios II: Nios II Directives. (line 43)
  22446. * set directive: Set. (line 6)
  22447. * set directive, Nios II: Nios II Directives. (line 57)
  22448. * set directive, TIC54X: TIC54X-Directives. (line 189)
  22449. * set noat directive, Nios II: Nios II Directives. (line 31)
  22450. * set nobreak directive, Nios II: Nios II Directives. (line 39)
  22451. * set norelax directive, Nios II: Nios II Directives. (line 46)
  22452. * set no_warn_regname_label directive, PRU: PRU Directives. (line 28)
  22453. * set relaxall directive, Nios II: Nios II Directives. (line 53)
  22454. * set relaxsection directive, Nios II: Nios II Directives. (line 49)
  22455. * SH addressing modes: SH-Addressing. (line 6)
  22456. * SH floating point (IEEE): SH Floating Point. (line 6)
  22457. * SH line comment character: SH-Chars. (line 6)
  22458. * SH line separator: SH-Chars. (line 8)
  22459. * SH machine directives: SH Directives. (line 6)
  22460. * SH opcode summary: SH Opcodes. (line 6)
  22461. * SH options: SH Options. (line 6)
  22462. * SH registers: SH-Regs. (line 6)
  22463. * SH support: SH-Dependent. (line 6)
  22464. * shigh directive, M32R: M32R-Directives. (line 26)
  22465. * short directive: Short. (line 6)
  22466. * short directive, TIC54X: TIC54X-Directives. (line 109)
  22467. * signatures, WebAssembly: WebAssembly-Signatures.
  22468. (line 6)
  22469. * SIMD, i386: i386-SIMD. (line 6)
  22470. * SIMD, x86-64: i386-SIMD. (line 6)
  22471. * single character constant: Chars. (line 6)
  22472. * single directive: Single. (line 6)
  22473. * single directive, i386: i386-Float. (line 14)
  22474. * single directive, x86-64: i386-Float. (line 14)
  22475. * single quote, Z80: Z80-Chars. (line 20)
  22476. * sixteen bit integers: hword. (line 6)
  22477. * sixteen byte integer: Octa. (line 6)
  22478. * size directive (COFF version): Size. (line 11)
  22479. * size directive (ELF version): Size. (line 19)
  22480. * size modifiers, D10V: D10V-Size. (line 6)
  22481. * size modifiers, D30V: D30V-Size. (line 6)
  22482. * size modifiers, M680x0: M68K-Syntax. (line 8)
  22483. * size prefixes, i386: i386-Prefixes. (line 27)
  22484. * size suffixes, H8/300: H8/300 Opcodes. (line 160)
  22485. * size, translations, Sparc: Sparc-Size-Translations.
  22486. (line 6)
  22487. * sizes operands, i386: i386-Variations. (line 28)
  22488. * sizes operands, x86-64: i386-Variations. (line 28)
  22489. * skip directive: Skip. (line 6)
  22490. * skip directive, M680x0: M68K-Directives. (line 19)
  22491. * skip directive, SPARC: Sparc-Directives. (line 48)
  22492. * sleb128 directive: Sleb128. (line 6)
  22493. * small data, MIPS: MIPS Small Data. (line 6)
  22494. * SmartMIPS instruction generation override: MIPS ASE Instruction Generation Overrides.
  22495. (line 11)
  22496. * SOM symbol attributes: SOM Symbols. (line 6)
  22497. * source program: Input Files. (line 6)
  22498. * source, destination operands; i386: i386-Variations. (line 21)
  22499. * source, destination operands; x86-64: i386-Variations. (line 21)
  22500. * sp register: Xtensa Registers. (line 6)
  22501. * sp register, V850: V850-Regs. (line 12)
  22502. * space directive: Space. (line 6)
  22503. * space directive, TIC54X: TIC54X-Directives. (line 194)
  22504. * space used, maximum for assembly: statistics. (line 6)
  22505. * SPARC architectures: Sparc-Opts. (line 6)
  22506. * Sparc constants: Sparc-Constants. (line 6)
  22507. * SPARC data alignment: Sparc-Aligned-Data. (line 6)
  22508. * SPARC floating point (IEEE): Sparc-Float. (line 6)
  22509. * Sparc line comment character: Sparc-Chars. (line 6)
  22510. * Sparc line separator: Sparc-Chars. (line 14)
  22511. * SPARC machine directives: Sparc-Directives. (line 6)
  22512. * SPARC options: Sparc-Opts. (line 6)
  22513. * Sparc registers: Sparc-Regs. (line 6)
  22514. * Sparc relocations: Sparc-Relocs. (line 6)
  22515. * Sparc size translations: Sparc-Size-Translations.
  22516. (line 6)
  22517. * SPARC support: Sparc-Dependent. (line 6)
  22518. * SPARC syntax: Sparc-Aligned-Data. (line 21)
  22519. * special characters, M680x0: M68K-Chars. (line 6)
  22520. * special purpose registers, MSP 430: MSP430-Regs. (line 11)
  22521. * sslist directive, TIC54X: TIC54X-Directives. (line 201)
  22522. * ssnolist directive, TIC54X: TIC54X-Directives. (line 201)
  22523. * stabd directive: Stab. (line 38)
  22524. * stabn directive: Stab. (line 49)
  22525. * stabs directive: Stab. (line 52)
  22526. * stabX directives: Stab. (line 6)
  22527. * stack pointer, ARC: ARC-Regs. (line 20)
  22528. * standard assembler sections: Secs Background. (line 27)
  22529. * standard input, as input file: Command Line. (line 10)
  22530. * statement separator character: Statements. (line 6)
  22531. * statement separator, AArch64: AArch64-Chars. (line 10)
  22532. * statement separator, Alpha: Alpha-Chars. (line 11)
  22533. * statement separator, ARC: ARC-Chars. (line 27)
  22534. * statement separator, ARM: ARM-Chars. (line 14)
  22535. * statement separator, AVR: AVR-Chars. (line 14)
  22536. * statement separator, BPF: BPF-Chars. (line 10)
  22537. * statement separator, CR16: CR16-Chars. (line 12)
  22538. * statement separator, Epiphany: Epiphany-Chars. (line 14)
  22539. * statement separator, H8/300: H8/300-Chars. (line 8)
  22540. * statement separator, i386: i386-Chars. (line 18)
  22541. * statement separator, IA-64: IA-64-Chars. (line 8)
  22542. * statement separator, IP2K: IP2K-Chars. (line 14)
  22543. * statement separator, LM32: LM32-Chars. (line 12)
  22544. * statement separator, M32C: M32C-Chars. (line 14)
  22545. * statement separator, M68HC11: M68HC11-Syntax. (line 26)
  22546. * statement separator, Meta: Meta-Chars. (line 8)
  22547. * statement separator, MicroBlaze: MicroBlaze-Chars. (line 14)
  22548. * statement separator, MIPS: MIPS-Chars. (line 14)
  22549. * statement separator, MSP 430: MSP430-Chars. (line 14)
  22550. * statement separator, NS32K: NS32K-Chars. (line 18)
  22551. * statement separator, OpenRISC: OpenRISC-Chars. (line 9)
  22552. * statement separator, PJ: PJ-Chars. (line 14)
  22553. * statement separator, PowerPC: PowerPC-Chars. (line 18)
  22554. * statement separator, RL78: RL78-Chars. (line 14)
  22555. * statement separator, RX: RX-Chars. (line 14)
  22556. * statement separator, S12Z: S12Z Syntax Overview.
  22557. (line 41)
  22558. * statement separator, s390: s390 Characters. (line 13)
  22559. * statement separator, SCORE: SCORE-Chars. (line 14)
  22560. * statement separator, SH: SH-Chars. (line 8)
  22561. * statement separator, Sparc: Sparc-Chars. (line 14)
  22562. * statement separator, TIC54X: TIC54X-Chars. (line 17)
  22563. * statement separator, TIC6X: TIC6X Syntax. (line 13)
  22564. * statement separator, V850: V850-Chars. (line 13)
  22565. * statement separator, VAX: VAX-Chars. (line 14)
  22566. * statement separator, Visium: Visium Characters. (line 14)
  22567. * statement separator, XGATE: XGATE-Syntax. (line 25)
  22568. * statement separator, XStormy16: XStormy16-Chars. (line 14)
  22569. * statement separator, Z80: Z80-Chars. (line 13)
  22570. * statement separator, Z8000: Z8000-Chars. (line 13)
  22571. * statements, structure of: Statements. (line 6)
  22572. * statistics, about assembly: statistics. (line 6)
  22573. * Status register, ARC: ARC-Regs. (line 57)
  22574. * STATUS32 saved on exception, ARC: ARC-Regs. (line 82)
  22575. * stopping the assembly: Abort. (line 6)
  22576. * Stored STATUS32 register on entry to level P0 interrupts, ARC: ARC-Regs.
  22577. (line 69)
  22578. * string constants: Strings. (line 6)
  22579. * string directive: String. (line 8)
  22580. * string directive on HPPA: HPPA Directives. (line 137)
  22581. * string directive, TIC54X: TIC54X-Directives. (line 206)
  22582. * string literals: Ascii. (line 6)
  22583. * string, copying to object file: String. (line 8)
  22584. * string16 directive: String. (line 8)
  22585. * string16, copying to object file: String. (line 8)
  22586. * string32 directive: String. (line 8)
  22587. * string32, copying to object file: String. (line 8)
  22588. * string64 directive: String. (line 8)
  22589. * string64, copying to object file: String. (line 8)
  22590. * string8 directive: String. (line 8)
  22591. * string8, copying to object file: String. (line 8)
  22592. * struct directive: Struct. (line 6)
  22593. * struct directive, TIC54X: TIC54X-Directives. (line 214)
  22594. * structure debugging, COFF: Tag. (line 6)
  22595. * sub-instruction ordering, D10V: D10V-Chars. (line 14)
  22596. * sub-instruction ordering, D30V: D30V-Chars. (line 14)
  22597. * sub-instructions, D10V: D10V-Subs. (line 6)
  22598. * sub-instructions, D30V: D30V-Subs. (line 6)
  22599. * subexpressions: Arguments. (line 24)
  22600. * subsection directive: SubSection. (line 6)
  22601. * subsym builtins, TIC54X: TIC54X-Macros. (line 16)
  22602. * subtitles for listings: Sbttl. (line 6)
  22603. * subtraction, permitted arguments: Infix Ops. (line 50)
  22604. * summary of options: Overview. (line 6)
  22605. * support: HPPA-Dependent. (line 6)
  22606. * supporting files, including: Include. (line 6)
  22607. * suppressing warnings: W. (line 11)
  22608. * sval: Z8000 Directives. (line 33)
  22609. * symbol attributes: Symbol Attributes. (line 6)
  22610. * symbol attributes, a.out: a.out Symbols. (line 6)
  22611. * symbol attributes, COFF: COFF Symbols. (line 6)
  22612. * symbol attributes, SOM: SOM Symbols. (line 6)
  22613. * symbol descriptor, COFF: Desc. (line 6)
  22614. * symbol modifiers: AVR-Modifiers. (line 12)
  22615. * symbol modifiers <1>: LM32-Modifiers. (line 12)
  22616. * symbol modifiers <2>: M32C-Modifiers. (line 11)
  22617. * symbol modifiers <3>: M68HC11-Modifiers. (line 12)
  22618. * symbol modifiers, TILE-Gx: TILE-Gx Modifiers. (line 6)
  22619. * symbol modifiers, TILEPro: TILEPro Modifiers. (line 6)
  22620. * symbol names: Symbol Names. (line 6)
  22621. * symbol names, $ in: D10V-Chars. (line 46)
  22622. * symbol names, $ in <1>: D30V-Chars. (line 70)
  22623. * symbol names, $ in <2>: Meta-Chars. (line 10)
  22624. * symbol names, $ in <3>: SH-Chars. (line 15)
  22625. * symbol names, local: Symbol Names. (line 30)
  22626. * symbol names, temporary: Symbol Names. (line 43)
  22627. * symbol prefix character, ARC: ARC-Chars. (line 20)
  22628. * symbol storage class (COFF): Scl. (line 6)
  22629. * symbol type: Symbol Type. (line 6)
  22630. * symbol type, COFF: Type. (line 11)
  22631. * symbol type, ELF: Type. (line 22)
  22632. * symbol value: Symbol Value. (line 6)
  22633. * symbol value, setting: Set. (line 6)
  22634. * symbol values, assigning: Setting Symbols. (line 6)
  22635. * symbol versioning: Symver. (line 6)
  22636. * symbol, common: Comm. (line 6)
  22637. * symbol, making visible to linker: Global. (line 6)
  22638. * symbolic debuggers, information for: Stab. (line 6)
  22639. * symbols: Symbols. (line 6)
  22640. * Symbols in position-independent code, CRIS: CRIS-Pic. (line 6)
  22641. * symbols with uppercase, VAX/VMS: VAX-Opts. (line 42)
  22642. * symbols, assigning values to: Equ. (line 6)
  22643. * Symbols, built-in, CRIS: CRIS-Symbols. (line 6)
  22644. * Symbols, CRIS, built-in: CRIS-Symbols. (line 6)
  22645. * symbols, local common: Lcomm. (line 6)
  22646. * symver directive: Symver. (line 6)
  22647. * syntax compatibility, i386: i386-Variations. (line 6)
  22648. * syntax compatibility, x86-64: i386-Variations. (line 6)
  22649. * syntax, AVR: AVR-Modifiers. (line 6)
  22650. * syntax, Blackfin: Blackfin Syntax. (line 6)
  22651. * syntax, D10V: D10V-Syntax. (line 6)
  22652. * syntax, D30V: D30V-Syntax. (line 6)
  22653. * syntax, LM32: LM32-Modifiers. (line 6)
  22654. * syntax, M680x0: M68K-Syntax. (line 8)
  22655. * syntax, M68HC11: M68HC11-Syntax. (line 6)
  22656. * syntax, M68HC11 <1>: M68HC11-Modifiers. (line 6)
  22657. * syntax, machine-independent: Syntax. (line 6)
  22658. * syntax, OPENRISC: OpenRISC-Dependent. (line 12)
  22659. * syntax, RL78: RL78-Modifiers. (line 6)
  22660. * syntax, RX: RX-Modifiers. (line 6)
  22661. * syntax, S12Z: S12Z Syntax. (line 11)
  22662. * syntax, SPARC: Sparc-Aligned-Data. (line 20)
  22663. * syntax, TILE-Gx: TILE-Gx Syntax. (line 6)
  22664. * syntax, TILEPro: TILEPro Syntax. (line 6)
  22665. * syntax, XGATE: XGATE-Syntax. (line 6)
  22666. * syntax, Xtensa assembler: Xtensa Syntax. (line 6)
  22667. * tab (\t): Strings. (line 27)
  22668. * tab directive, TIC54X: TIC54X-Directives. (line 245)
  22669. * tag directive: Tag. (line 6)
  22670. * tag directive, TIC54X: TIC54X-Directives. (line 214)
  22671. * tag directive, TIC54X <1>: TIC54X-Directives. (line 248)
  22672. * TBM, i386: i386-TBM. (line 6)
  22673. * TBM, x86-64: i386-TBM. (line 6)
  22674. * tdaoff pseudo-op, V850: V850 Opcodes. (line 81)
  22675. * temporary symbol names: Symbol Names. (line 43)
  22676. * text and data sections, joining: R. (line 6)
  22677. * text directive: Text. (line 6)
  22678. * text section: Ld Sections. (line 9)
  22679. * tfloat directive, i386: i386-Float. (line 14)
  22680. * tfloat directive, x86-64: i386-Float. (line 14)
  22681. * Thumb support: ARM-Dependent. (line 6)
  22682. * TIC54X builtin math functions: TIC54X-Builtins. (line 6)
  22683. * TIC54X line comment character: TIC54X-Chars. (line 6)
  22684. * TIC54X line separator: TIC54X-Chars. (line 17)
  22685. * TIC54X machine directives: TIC54X-Directives. (line 6)
  22686. * TIC54X memory-mapped registers: TIC54X-MMRegs. (line 6)
  22687. * TIC54X options: TIC54X-Opts. (line 6)
  22688. * TIC54X subsym builtins: TIC54X-Macros. (line 16)
  22689. * TIC54X support: TIC54X-Dependent. (line 6)
  22690. * TIC54X-specific macros: TIC54X-Macros. (line 6)
  22691. * TIC6X big-endian output: TIC6X Options. (line 46)
  22692. * TIC6X line comment character: TIC6X Syntax. (line 6)
  22693. * TIC6X line separator: TIC6X Syntax. (line 13)
  22694. * TIC6X little-endian output: TIC6X Options. (line 46)
  22695. * TIC6X machine directives: TIC6X Directives. (line 6)
  22696. * TIC6X options: TIC6X Options. (line 6)
  22697. * TIC6X support: TIC6X-Dependent. (line 6)
  22698. * TILE-Gx machine directives: TILE-Gx Directives. (line 6)
  22699. * TILE-Gx modifiers: TILE-Gx Modifiers. (line 6)
  22700. * TILE-Gx opcode names: TILE-Gx Opcodes. (line 6)
  22701. * TILE-Gx register names: TILE-Gx Registers. (line 6)
  22702. * TILE-Gx support: TILE-Gx-Dependent. (line 6)
  22703. * TILE-Gx syntax: TILE-Gx Syntax. (line 6)
  22704. * TILEPro machine directives: TILEPro Directives. (line 6)
  22705. * TILEPro modifiers: TILEPro Modifiers. (line 6)
  22706. * TILEPro opcode names: TILEPro Opcodes. (line 6)
  22707. * TILEPro register names: TILEPro Registers. (line 6)
  22708. * TILEPro support: TILEPro-Dependent. (line 6)
  22709. * TILEPro syntax: TILEPro Syntax. (line 6)
  22710. * time, total for assembly: statistics. (line 6)
  22711. * title directive: Title. (line 6)
  22712. * tls_gd directive, Nios II: Nios II Relocations.
  22713. (line 38)
  22714. * tls_ie directive, Nios II: Nios II Relocations.
  22715. (line 38)
  22716. * tls_ldm directive, Nios II: Nios II Relocations.
  22717. (line 38)
  22718. * tls_ldo directive, Nios II: Nios II Relocations.
  22719. (line 38)
  22720. * tls_le directive, Nios II: Nios II Relocations.
  22721. (line 38)
  22722. * TMS320C6X support: TIC6X-Dependent. (line 6)
  22723. * tp register, V850: V850-Regs. (line 16)
  22724. * transform directive: Transform Directive.
  22725. (line 6)
  22726. * trusted compiler: f. (line 6)
  22727. * turning preprocessing on and off: Preprocessing. (line 26)
  22728. * two-byte integer: 2byte. (line 6)
  22729. * type directive (COFF version): Type. (line 11)
  22730. * type directive (ELF version): Type. (line 22)
  22731. * type of a symbol: Symbol Type. (line 6)
  22732. * ualong directive, SH: SH Directives. (line 6)
  22733. * uaquad directive, SH: SH Directives. (line 6)
  22734. * uaword directive, SH: SH Directives. (line 6)
  22735. * ubyte directive, TIC54X: TIC54X-Directives. (line 34)
  22736. * uchar directive, TIC54X: TIC54X-Directives. (line 34)
  22737. * uhalf directive, TIC54X: TIC54X-Directives. (line 109)
  22738. * uint directive, TIC54X: TIC54X-Directives. (line 109)
  22739. * uleb128 directive: Uleb128. (line 6)
  22740. * ulong directive, TIC54X: TIC54X-Directives. (line 133)
  22741. * undefined section: Ld Sections. (line 36)
  22742. * union directive, TIC54X: TIC54X-Directives. (line 248)
  22743. * unsegm: Z8000 Directives. (line 14)
  22744. * usect directive, TIC54X: TIC54X-Directives. (line 260)
  22745. * ushort directive, TIC54X: TIC54X-Directives. (line 109)
  22746. * uword directive, TIC54X: TIC54X-Directives. (line 109)
  22747. * V850 command-line options: V850 Options. (line 9)
  22748. * V850 floating point (IEEE): V850 Floating Point.
  22749. (line 6)
  22750. * V850 line comment character: V850-Chars. (line 6)
  22751. * V850 line separator: V850-Chars. (line 13)
  22752. * V850 machine directives: V850 Directives. (line 6)
  22753. * V850 opcodes: V850 Opcodes. (line 6)
  22754. * V850 options (none): V850 Options. (line 6)
  22755. * V850 register names: V850-Regs. (line 6)
  22756. * V850 support: V850-Dependent. (line 6)
  22757. * val directive: Val. (line 6)
  22758. * value attribute, COFF: Val. (line 6)
  22759. * value directive: i386-Directives. (line 26)
  22760. * value of a symbol: Symbol Value. (line 6)
  22761. * var directive, TIC54X: TIC54X-Directives. (line 270)
  22762. * VAX bitfields not supported: VAX-no. (line 6)
  22763. * VAX branch improvement: VAX-branch. (line 6)
  22764. * VAX command-line options ignored: VAX-Opts. (line 6)
  22765. * VAX displacement sizing character: VAX-operands. (line 12)
  22766. * VAX floating point: VAX-float. (line 6)
  22767. * VAX immediate character: VAX-operands. (line 6)
  22768. * VAX indirect character: VAX-operands. (line 9)
  22769. * VAX line comment character: VAX-Chars. (line 6)
  22770. * VAX line separator: VAX-Chars. (line 14)
  22771. * VAX machine directives: VAX-directives. (line 6)
  22772. * VAX opcode mnemonics: VAX-opcodes. (line 6)
  22773. * VAX operand notation: VAX-operands. (line 6)
  22774. * VAX register names: VAX-operands. (line 17)
  22775. * VAX support: Vax-Dependent. (line 6)
  22776. * Vax-11 C compatibility: VAX-Opts. (line 42)
  22777. * VAX/VMS options: VAX-Opts. (line 42)
  22778. * version directive: Version. (line 6)
  22779. * version directive, TIC54X: TIC54X-Directives. (line 274)
  22780. * version of assembler: v. (line 6)
  22781. * versions of symbols: Symver. (line 6)
  22782. * Virtualization instruction generation override: MIPS ASE Instruction Generation Overrides.
  22783. (line 52)
  22784. * visibility: Hidden. (line 6)
  22785. * visibility <1>: Internal. (line 6)
  22786. * visibility <2>: Protected. (line 6)
  22787. * Visium line comment character: Visium Characters. (line 6)
  22788. * Visium line separator: Visium Characters. (line 14)
  22789. * Visium options: Visium Options. (line 6)
  22790. * Visium registers: Visium Registers. (line 6)
  22791. * Visium support: Visium-Dependent. (line 6)
  22792. * VMS (VAX) options: VAX-Opts. (line 42)
  22793. * vtable_entry directive: VTableEntry. (line 6)
  22794. * vtable_inherit directive: VTableInherit. (line 6)
  22795. * warning directive: Warning. (line 6)
  22796. * warning for altered difference tables: K. (line 6)
  22797. * warning messages: Errors. (line 6)
  22798. * warnings, causing error: W. (line 16)
  22799. * warnings, M32R: M32R-Warnings. (line 6)
  22800. * warnings, suppressing: W. (line 11)
  22801. * warnings, switching on: W. (line 19)
  22802. * weak directive: Weak. (line 6)
  22803. * weakref directive: Weakref. (line 6)
  22804. * WebAssembly floating point (IEEE): WebAssembly-Floating-Point.
  22805. (line 6)
  22806. * WebAssembly line comment character: WebAssembly-Chars. (line 6)
  22807. * WebAssembly module layout: WebAssembly-module-layout.
  22808. (line 6)
  22809. * WebAssembly notes: WebAssembly-Notes. (line 6)
  22810. * WebAssembly opcodes: WebAssembly-Opcodes.
  22811. (line 6)
  22812. * WebAssembly relocations: WebAssembly-Relocs. (line 6)
  22813. * WebAssembly signatures: WebAssembly-Signatures.
  22814. (line 6)
  22815. * WebAssembly support: WebAssembly-Dependent.
  22816. (line 6)
  22817. * WebAssembly Syntax: WebAssembly-Syntax. (line 6)
  22818. * whitespace: Whitespace. (line 6)
  22819. * whitespace, removed by preprocessor: Preprocessing. (line 7)
  22820. * wide floating point directives, VAX: VAX-directives. (line 9)
  22821. * width directive, TIC54X: TIC54X-Directives. (line 125)
  22822. * Width of continuation lines of disassembly output: listing.
  22823. (line 21)
  22824. * Width of first line disassembly output: listing. (line 16)
  22825. * Width of source line output: listing. (line 28)
  22826. * wmsg directive, TIC54X: TIC54X-Directives. (line 75)
  22827. * word aligned program counter, ARC: ARC-Regs. (line 44)
  22828. * word directive: Word. (line 6)
  22829. * word directive, BPF: BPF Directives. (line 12)
  22830. * word directive, H8/300: H8/300 Directives. (line 6)
  22831. * word directive, i386: i386-Float. (line 21)
  22832. * word directive, Nios II: Nios II Directives. (line 13)
  22833. * word directive, OpenRISC: OpenRISC-Directives.
  22834. (line 12)
  22835. * word directive, PRU: PRU Directives. (line 10)
  22836. * word directive, SPARC: Sparc-Directives. (line 51)
  22837. * word directive, TIC54X: TIC54X-Directives. (line 109)
  22838. * word directive, x86-64: i386-Float. (line 21)
  22839. * writing patterns in memory: Fill. (line 6)
  22840. * wval: Z8000 Directives. (line 24)
  22841. * x86 machine directives: i386-Directives. (line 6)
  22842. * x86-64 arch directive: i386-Arch. (line 6)
  22843. * x86-64 att_syntax pseudo op: i386-Variations. (line 6)
  22844. * x86-64 conversion instructions: i386-Mnemonics. (line 56)
  22845. * x86-64 floating point: i386-Float. (line 6)
  22846. * x86-64 immediate operands: i386-Variations. (line 15)
  22847. * x86-64 instruction naming: i386-Mnemonics. (line 9)
  22848. * x86-64 intel_syntax pseudo op: i386-Variations. (line 6)
  22849. * x86-64 jump optimization: i386-Jumps. (line 6)
  22850. * x86-64 jump, call, return: i386-Variations. (line 45)
  22851. * x86-64 jump/call operands: i386-Variations. (line 15)
  22852. * x86-64 memory references: i386-Memory. (line 6)
  22853. * x86-64 options: i386-Options. (line 6)
  22854. * x86-64 register operands: i386-Variations. (line 15)
  22855. * x86-64 registers: i386-Regs. (line 6)
  22856. * x86-64 sections: i386-Variations. (line 51)
  22857. * x86-64 size suffixes: i386-Variations. (line 28)
  22858. * x86-64 source, destination operands: i386-Variations. (line 21)
  22859. * x86-64 support: i386-Dependent. (line 6)
  22860. * x86-64 syntax compatibility: i386-Variations. (line 6)
  22861. * xfloat directive, TIC54X: TIC54X-Directives. (line 62)
  22862. * XGATE addressing modes: XGATE-Syntax. (line 28)
  22863. * XGATE assembler directives: XGATE-Directives. (line 6)
  22864. * XGATE floating point: XGATE-Float. (line 6)
  22865. * XGATE line comment character: XGATE-Syntax. (line 16)
  22866. * XGATE line separator: XGATE-Syntax. (line 25)
  22867. * XGATE opcodes: XGATE-opcodes. (line 6)
  22868. * XGATE options: XGATE-Opts. (line 6)
  22869. * XGATE support: XGATE-Dependent. (line 6)
  22870. * XGATE syntax: XGATE-Syntax. (line 6)
  22871. * xlong directive, TIC54X: TIC54X-Directives. (line 133)
  22872. * XStormy16 comment character: XStormy16-Chars. (line 11)
  22873. * XStormy16 line comment character: XStormy16-Chars. (line 6)
  22874. * XStormy16 line separator: XStormy16-Chars. (line 14)
  22875. * XStormy16 machine directives: XStormy16 Directives.
  22876. (line 6)
  22877. * XStormy16 pseudo-opcodes: XStormy16 Opcodes. (line 6)
  22878. * XStormy16 support: XSTORMY16-Dependent.
  22879. (line 6)
  22880. * Xtensa architecture: Xtensa-Dependent. (line 6)
  22881. * Xtensa assembler syntax: Xtensa Syntax. (line 6)
  22882. * Xtensa directives: Xtensa Directives. (line 6)
  22883. * Xtensa opcode names: Xtensa Opcodes. (line 6)
  22884. * Xtensa register names: Xtensa Registers. (line 6)
  22885. * xword directive, SPARC: Sparc-Directives. (line 55)
  22886. * Z80 $: Z80-Chars. (line 15)
  22887. * Z80 ': Z80-Chars. (line 20)
  22888. * Z80 floating point: Z80 Floating Point. (line 6)
  22889. * Z80 labels: Z80-Labels. (line 6)
  22890. * Z80 line comment character: Z80-Chars. (line 6)
  22891. * Z80 line separator: Z80-Chars. (line 13)
  22892. * Z80 options: Z80 Options. (line 6)
  22893. * Z80 registers: Z80-Regs. (line 6)
  22894. * Z80 support: Z80-Dependent. (line 6)
  22895. * Z80 Syntax: Z80 Options. (line 114)
  22896. * Z80, case sensitivity: Z80-Case. (line 6)
  22897. * Z80, \: Z80-Chars. (line 18)
  22898. * Z80-only directives: Z80 Directives. (line 9)
  22899. * Z800 addressing modes: Z8000-Addressing. (line 6)
  22900. * Z8000 directives: Z8000 Directives. (line 6)
  22901. * Z8000 line comment character: Z8000-Chars. (line 6)
  22902. * Z8000 line separator: Z8000-Chars. (line 13)
  22903. * Z8000 opcode summary: Z8000 Opcodes. (line 6)
  22904. * Z8000 options: Z8000 Options. (line 6)
  22905. * Z8000 registers: Z8000-Regs. (line 6)
  22906. * Z8000 support: Z8000-Dependent. (line 6)
  22907. * zdaoff pseudo-op, V850: V850 Opcodes. (line 98)
  22908. * zero directive: Zero. (line 6)
  22909. * zero register, V850: V850-Regs. (line 7)
  22910. * zero-terminated strings: Asciz. (line 6)
  22911. 
  22912. Tag Table:
  22913. Node: Top733
  22914. Node: Overview1718
  22915. Node: Manual43341
  22916. Node: GNU Assembler44285
  22917. Node: Object Formats45456
  22918. Node: Command Line45908
  22919. Node: Input Files46994
  22920. Node: Object48975
  22921. Node: Errors49871
  22922. Node: Invoking51433
  22923. Node: a53439
  22924. Node: alternate55350
  22925. Node: D55522
  22926. Node: f55755
  22927. Node: I56264
  22928. Node: K56808
  22929. Node: L57112
  22930. Node: listing57851
  22931. Node: M59510
  22932. Node: MD63347
  22933. Node: no-pad-sections63787
  22934. Node: o64162
  22935. Node: R64589
  22936. Node: statistics65619
  22937. Node: traditional-format66026
  22938. Node: v66499
  22939. Node: W66774
  22940. Node: Z67681
  22941. Node: Syntax68203
  22942. Node: Preprocessing68795
  22943. Node: Whitespace70359
  22944. Node: Comments70755
  22945. Node: Symbol Intro72766
  22946. Node: Statements73751
  22947. Node: Constants75739
  22948. Node: Characters76370
  22949. Node: Strings76872
  22950. Node: Chars79045
  22951. Node: Numbers79897
  22952. Node: Integers80437
  22953. Node: Bignums81093
  22954. Node: Flonums81449
  22955. Node: Sections83066
  22956. Node: Secs Background83444
  22957. Node: Ld Sections88477
  22958. Node: As Sections90861
  22959. Node: Sub-Sections91771
  22960. Node: bss94919
  22961. Node: Symbols95869
  22962. Node: Labels96517
  22963. Node: Setting Symbols97248
  22964. Node: Symbol Names97802
  22965. Node: Dot103269
  22966. Node: Symbol Attributes103716
  22967. Node: Symbol Value104449
  22968. Node: Symbol Type105494
  22969. Node: a.out Symbols105882
  22970. Node: Symbol Desc106144
  22971. Node: Symbol Other106440
  22972. Node: COFF Symbols106609
  22973. Node: SOM Symbols107282
  22974. Node: Expressions107724
  22975. Node: Empty Exprs108473
  22976. Node: Integer Exprs108820
  22977. Node: Arguments109215
  22978. Node: Operators110321
  22979. Node: Prefix Ops110656
  22980. Node: Infix Ops110983
  22981. Node: Pseudo Ops113377
  22982. Node: Abort119435
  22983. Node: ABORT (COFF)119848
  22984. Node: Align120056
  22985. Node: Altmacro122452
  22986. Node: Ascii123783
  22987. Node: Asciz124092
  22988. Node: Balign124337
  22989. Node: Bundle directives126336
  22990. Node: Byte129317
  22991. Node: CFI directives129576
  22992. Node: Comm138888
  22993. Ref: Comm-Footnote-1140488
  22994. Node: Data140850
  22995. Node: Dc141166
  22996. Node: Dcb142143
  22997. Node: Ds142936
  22998. Node: Def143766
  22999. Node: Desc143996
  23000. Node: Dim144496
  23001. Node: Double144753
  23002. Node: Eject145091
  23003. Node: Else145266
  23004. Node: Elseif145566
  23005. Node: End145860
  23006. Node: Endef146075
  23007. Node: Endfunc146252
  23008. Node: Endif146427
  23009. Node: Equ146688
  23010. Node: Equiv147203
  23011. Node: Eqv147759
  23012. Node: Err148123
  23013. Node: Error148434
  23014. Node: Exitm148879
  23015. Node: Extern149048
  23016. Node: Fail149309
  23017. Node: File149754
  23018. Node: Fill151083
  23019. Node: Float152047
  23020. Node: Func152389
  23021. Node: Global152979
  23022. Node: Gnu_attribute153736
  23023. Node: Hidden153961
  23024. Node: hword154547
  23025. Node: Ident154875
  23026. Node: If155449
  23027. Node: Incbin158510
  23028. Node: Include159204
  23029. Node: Int159755
  23030. Node: Internal160136
  23031. Node: Irp160783
  23032. Node: Irpc161662
  23033. Node: Lcomm162578
  23034. Node: Lflags163325
  23035. Node: Line163519
  23036. Node: Linkonce164435
  23037. Node: List165664
  23038. Node: Ln166271
  23039. Node: Loc166421
  23040. Node: Loc_mark_labels168613
  23041. Node: Local169097
  23042. Node: Long169709
  23043. Node: Macro169887
  23044. Node: MRI175818
  23045. Node: Noaltmacro176156
  23046. Node: Nolist176325
  23047. Node: Nops176754
  23048. Node: Octa177555
  23049. Node: Offset177890
  23050. Node: Org178217
  23051. Node: P2align179502
  23052. Node: PopSection181556
  23053. Node: Previous182064
  23054. Node: Print183476
  23055. Node: Protected183705
  23056. Node: Psize184352
  23057. Node: Purgem185036
  23058. Node: PushSection185257
  23059. Node: Quad186001
  23060. Node: Reloc186455
  23061. Node: Rept187216
  23062. Node: Sbttl187778
  23063. Node: Scl188143
  23064. Node: Section188484
  23065. Ref: Section Name Substitutions190542
  23066. Node: Set196651
  23067. Node: Short197743
  23068. Node: Single198064
  23069. Node: Size198409
  23070. Node: Skip199075
  23071. Node: Sleb128199399
  23072. Node: Space199721
  23073. Node: Stab200362
  23074. Node: String202365
  23075. Node: Struct203357
  23076. Node: SubSection204080
  23077. Node: Symver204641
  23078. Node: Tag207035
  23079. Node: Text207415
  23080. Node: Title207735
  23081. Node: Type208114
  23082. Node: Uleb128210575
  23083. Node: Val210897
  23084. Node: Version211147
  23085. Node: VTableEntry211421
  23086. Node: VTableInherit211711
  23087. Node: Warning212161
  23088. Node: Weak212395
  23089. Node: Weakref213064
  23090. Node: Word214029
  23091. Node: Zero215869
  23092. Node: 2byte216276
  23093. Node: 4byte217280
  23094. Node: 8byte217544
  23095. Node: Deprecated217821
  23096. Node: Object Attributes218056
  23097. Node: GNU Object Attributes219776
  23098. Node: Defining New Object Attributes223761
  23099. Node: Machine Dependencies224553
  23100. Node: AArch64-Dependent228588
  23101. Node: AArch64 Options229070
  23102. Node: AArch64 Extensions231928
  23103. Node: AArch64 Syntax237455
  23104. Node: AArch64-Chars237755
  23105. Node: AArch64-Regs238241
  23106. Node: AArch64-Relocations238535
  23107. Node: AArch64 Floating Point239609
  23108. Node: AArch64 Directives239834
  23109. Node: AArch64 Opcodes243761
  23110. Node: AArch64 Mapping Symbols244438
  23111. Node: Alpha-Dependent244819
  23112. Node: Alpha Notes245259
  23113. Node: Alpha Options245540
  23114. Node: Alpha Syntax248015
  23115. Node: Alpha-Chars248484
  23116. Node: Alpha-Regs248896
  23117. Node: Alpha-Relocs249283
  23118. Node: Alpha Floating Point255529
  23119. Node: Alpha Directives255751
  23120. Node: Alpha Opcodes261278
  23121. Node: ARC-Dependent261573
  23122. Node: ARC Options262018
  23123. Node: ARC Syntax265144
  23124. Node: ARC-Chars265372
  23125. Node: ARC-Regs266494
  23126. Node: ARC Directives269262
  23127. Node: ARC Modifiers277917
  23128. Node: ARC Symbols278927
  23129. Node: ARC Opcodes279481
  23130. Node: ARM-Dependent279727
  23131. Node: ARM Options280192
  23132. Node: ARM Syntax299684
  23133. Node: ARM-Instruction-Set300052
  23134. Node: ARM-Chars301267
  23135. Node: ARM-Regs301978
  23136. Node: ARM-Relocations302187
  23137. Node: ARM-Neon-Alignment303873
  23138. Node: ARM Floating Point304338
  23139. Node: ARM Directives304537
  23140. Ref: arm_fnend309696
  23141. Ref: arm_fnstart310015
  23142. Ref: arm_pad312423
  23143. Ref: arm_save313025
  23144. Ref: arm_setfp313726
  23145. Node: ARM Opcodes317012
  23146. Node: ARM Mapping Symbols319614
  23147. Node: ARM Unwinding Tutorial320423
  23148. Node: AVR-Dependent326623
  23149. Node: AVR Options326962
  23150. Node: AVR Syntax333280
  23151. Node: AVR-Chars333567
  23152. Node: AVR-Regs334126
  23153. Node: AVR-Modifiers334707
  23154. Node: AVR Opcodes336771
  23155. Node: AVR Pseudo Instructions342049
  23156. Node: Blackfin-Dependent343708
  23157. Node: Blackfin Options344019
  23158. Node: Blackfin Syntax344993
  23159. Node: Blackfin Directives351199
  23160. Node: BPF-Dependent351940
  23161. Node: BPF Options352257
  23162. Node: BPF Syntax352640
  23163. Node: BPF-Chars352908
  23164. Node: BPF-Regs353301
  23165. Node: BPF-Pseudo-Maps353813
  23166. Node: BPF Directives354233
  23167. Node: BPF Opcodes354647
  23168. Node: CR16-Dependent361205
  23169. Node: CR16 Operand Qualifiers361500
  23170. Node: CR16 Syntax364209
  23171. Node: CR16-Chars364395
  23172. Node: CRIS-Dependent364932
  23173. Node: CRIS-Opts365279
  23174. Ref: march-option366964
  23175. Node: CRIS-Expand368783
  23176. Node: CRIS-Symbols369966
  23177. Node: CRIS-Syntax371137
  23178. Node: CRIS-Chars371473
  23179. Node: CRIS-Pic372024
  23180. Ref: crispic372219
  23181. Node: CRIS-Regs375768
  23182. Node: CRIS-Pseudos376185
  23183. Ref: crisnous376962
  23184. Node: C-SKY-Dependent378250
  23185. Node: C-SKY Options378512
  23186. Node: C-SKY Syntax381497
  23187. Node: D10V-Dependent381742
  23188. Node: D10V-Opts382096
  23189. Node: D10V-Syntax383067
  23190. Node: D10V-Size383598
  23191. Node: D10V-Subs384571
  23192. Node: D10V-Chars385608
  23193. Node: D10V-Regs387421
  23194. Node: D10V-Addressing388450
  23195. Node: D10V-Word389130
  23196. Node: D10V-Float389647
  23197. Node: D10V-Opcodes389960
  23198. Node: D30V-Dependent390355
  23199. Node: D30V-Opts390712
  23200. Node: D30V-Syntax391390
  23201. Node: D30V-Size391924
  23202. Node: D30V-Subs392897
  23203. Node: D30V-Chars393934
  23204. Node: D30V-Guarded396544
  23205. Node: D30V-Regs397221
  23206. Node: D30V-Addressing398340
  23207. Node: D30V-Float399002
  23208. Node: D30V-Opcodes399315
  23209. Node: Epiphany-Dependent399710
  23210. Node: Epiphany Options399998
  23211. Node: Epiphany Syntax400397
  23212. Node: Epiphany-Chars400598
  23213. Node: H8/300-Dependent401152
  23214. Node: H8/300 Options401568
  23215. Node: H8/300 Syntax402008
  23216. Node: H8/300-Chars402309
  23217. Node: H8/300-Regs402608
  23218. Node: H8/300-Addressing403527
  23219. Node: H8/300 Floating Point404551
  23220. Node: H8/300 Directives404878
  23221. Node: H8/300 Opcodes406006
  23222. Node: HPPA-Dependent414325
  23223. Node: HPPA Notes414757
  23224. Node: HPPA Options415516
  23225. Node: HPPA Syntax415711
  23226. Node: HPPA Floating Point416981
  23227. Node: HPPA Directives417187
  23228. Node: HPPA Opcodes425869
  23229. Node: i386-Dependent426128
  23230. Node: i386-Options427453
  23231. Node: i386-Directives440173
  23232. Node: i386-Syntax441515
  23233. Node: i386-Variations441820
  23234. Node: i386-Chars444744
  23235. Node: i386-Mnemonics445473
  23236. Node: i386-Regs449234
  23237. Node: i386-Prefixes452064
  23238. Node: i386-Memory454824
  23239. Node: i386-Jumps457763
  23240. Node: i386-Float458886
  23241. Node: i386-SIMD460716
  23242. Node: i386-LWP461825
  23243. Node: i386-BMI462659
  23244. Node: i386-TBM463037
  23245. Node: i386-16bit463567
  23246. Node: i386-Arch465638
  23247. Node: i386-Bugs469106
  23248. Node: i386-Notes469857
  23249. Node: IA-64-Dependent470716
  23250. Node: IA-64 Options471017
  23251. Node: IA-64 Syntax474168
  23252. Node: IA-64-Chars474574
  23253. Node: IA-64-Regs474804
  23254. Node: IA-64-Bits475730
  23255. Node: IA-64-Relocs476260
  23256. Node: IA-64 Opcodes476731
  23257. Node: IP2K-Dependent477003
  23258. Node: IP2K-Opts477275
  23259. Node: IP2K-Syntax477774
  23260. Node: IP2K-Chars477948
  23261. Node: LM32-Dependent478491
  23262. Node: LM32 Options478786
  23263. Node: LM32 Syntax479419
  23264. Node: LM32-Regs479715
  23265. Node: LM32-Modifiers480656
  23266. Node: LM32-Chars482036
  23267. Node: LM32 Opcodes482544
  23268. Node: M32C-Dependent482848
  23269. Node: M32C-Opts483354
  23270. Node: M32C-Syntax483773
  23271. Node: M32C-Modifiers484008
  23272. Node: M32C-Chars485800
  23273. Node: M32R-Dependent486366
  23274. Node: M32R-Opts486687
  23275. Node: M32R-Directives490849
  23276. Node: M32R-Warnings494823
  23277. Node: M68K-Dependent497828
  23278. Node: M68K-Opts498295
  23279. Node: M68K-Syntax505717
  23280. Node: M68K-Moto-Syntax507557
  23281. Node: M68K-Float510141
  23282. Node: M68K-Directives510661
  23283. Node: M68K-opcodes511988
  23284. Node: M68K-Branch512214
  23285. Node: M68K-Chars516409
  23286. Node: M68HC11-Dependent517272
  23287. Node: M68HC11-Opts517803
  23288. Node: M68HC11-Syntax522115
  23289. Node: M68HC11-Modifiers524909
  23290. Node: M68HC11-Directives526736
  23291. Node: M68HC11-Float528110
  23292. Node: M68HC11-opcodes528638
  23293. Node: M68HC11-Branch528820
  23294. Node: S12Z-Dependent531270
  23295. Node: S12Z Options531613
  23296. Node: S12Z Syntax532597
  23297. Node: S12Z Syntax Overview532916
  23298. Node: S12Z Addressing Modes534578
  23299. Node: S12Z Register Notation538382
  23300. Node: Meta-Dependent539558
  23301. Node: Meta Options539840
  23302. Node: Meta Syntax540502
  23303. Node: Meta-Chars540714
  23304. Node: Meta-Regs541014
  23305. Node: MicroBlaze-Dependent541290
  23306. Node: MicroBlaze Directives541977
  23307. Node: MicroBlaze Syntax543368
  23308. Node: MicroBlaze-Chars543600
  23309. Node: MIPS-Dependent544152
  23310. Node: MIPS Options545586
  23311. Node: MIPS Macros564678
  23312. Ref: MIPS Macros-Footnote-1567392
  23313. Node: MIPS Symbol Sizes567535
  23314. Node: MIPS Small Data569207
  23315. Node: MIPS ISA571371
  23316. Node: MIPS assembly options573155
  23317. Node: MIPS autoextend574288
  23318. Node: MIPS insn575022
  23319. Node: MIPS FP ABIs576303
  23320. Node: MIPS FP ABI History576755
  23321. Node: MIPS FP ABI Variants577515
  23322. Node: MIPS FP ABI Selection580068
  23323. Node: MIPS FP ABI Compatibility581131
  23324. Node: MIPS NaN Encodings581941
  23325. Node: MIPS Option Stack583904
  23326. Node: MIPS ASE Instruction Generation Overrides584689
  23327. Node: MIPS Floating-Point589450
  23328. Node: MIPS Syntax590356
  23329. Node: MIPS-Chars590618
  23330. Node: MMIX-Dependent591160
  23331. Node: MMIX-Opts591540
  23332. Node: MMIX-Expand595146
  23333. Node: MMIX-Syntax596458
  23334. Ref: mmixsite596814
  23335. Node: MMIX-Chars597656
  23336. Node: MMIX-Symbols598529
  23337. Node: MMIX-Regs600600
  23338. Node: MMIX-Pseudos601625
  23339. Ref: MMIX-loc601767
  23340. Ref: MMIX-local602848
  23341. Ref: MMIX-is603381
  23342. Ref: MMIX-greg603653
  23343. Ref: GREG-base604571
  23344. Ref: MMIX-byte605890
  23345. Ref: MMIX-constants606362
  23346. Ref: MMIX-prefix607004
  23347. Ref: MMIX-spec607379
  23348. Node: MMIX-mmixal607713
  23349. Node: MSP430-Dependent611208
  23350. Node: MSP430 Options611677
  23351. Node: MSP430 Syntax615245
  23352. Node: MSP430-Macros615561
  23353. Node: MSP430-Chars616291
  23354. Node: MSP430-Regs617006
  23355. Node: MSP430-Ext617567
  23356. Node: MSP430 Floating Point619386
  23357. Node: MSP430 Directives619610
  23358. Node: MSP430 Opcodes621451
  23359. Node: MSP430 Profiling Capability621846
  23360. Node: NDS32-Dependent624174
  23361. Node: NDS32 Options624783
  23362. Node: NDS32 Syntax626666
  23363. Node: NDS32-Chars626934
  23364. Node: NDS32-Regs627401
  23365. Node: NDS32-Ops628255
  23366. Node: NiosII-Dependent631852
  23367. Node: Nios II Options632271
  23368. Node: Nios II Syntax633503
  23369. Node: Nios II Chars633709
  23370. Node: Nios II Relocations633900
  23371. Node: Nios II Directives635471
  23372. Node: Nios II Opcodes637033
  23373. Node: NS32K-Dependent637308
  23374. Node: NS32K Syntax637537
  23375. Node: NS32K-Chars637686
  23376. Node: OpenRISC-Dependent638426
  23377. Node: OpenRISC-Syntax638769
  23378. Node: OpenRISC-Chars639090
  23379. Node: OpenRISC-Regs639413
  23380. Node: OpenRISC-Relocs640426
  23381. Node: OpenRISC-Float645206
  23382. Node: OpenRISC-Directives645412
  23383. Node: OpenRISC-Opcodes646210
  23384. Node: PDP-11-Dependent646502
  23385. Node: PDP-11-Options646895
  23386. Node: PDP-11-Pseudos651954
  23387. Node: PDP-11-Syntax652299
  23388. Node: PDP-11-Mnemonics653131
  23389. Node: PDP-11-Synthetic653433
  23390. Node: PJ-Dependent653651
  23391. Node: PJ Options653914
  23392. Node: PJ Syntax654209
  23393. Node: PJ-Chars654374
  23394. Node: PPC-Dependent654923
  23395. Node: PowerPC-Opts655255
  23396. Node: PowerPC-Pseudo658979
  23397. Node: PowerPC-Syntax659600
  23398. Node: PowerPC-Chars659790
  23399. Node: PRU-Dependent660541
  23400. Node: PRU Options660924
  23401. Node: PRU Syntax661663
  23402. Node: PRU Chars661850
  23403. Node: PRU Relocations662005
  23404. Node: PRU Directives662556
  23405. Node: PRU Opcodes663459
  23406. Node: RISC-V-Dependent663876
  23407. Node: RISC-V-Options664251
  23408. Node: RISC-V-Directives665258
  23409. Node: RISC-V-Formats668983
  23410. Node: RISC-V-ATTRIBUTE676701
  23411. Node: RL78-Dependent678663
  23412. Node: RL78-Opts679064
  23413. Node: RL78-Modifiers679898
  23414. Node: RL78-Directives680677
  23415. Node: RL78-Syntax681281
  23416. Node: RL78-Chars681477
  23417. Node: RX-Dependent682033
  23418. Node: RX-Opts682464
  23419. Node: RX-Modifiers686728
  23420. Node: RX-Directives687831
  23421. Node: RX-Float688570
  23422. Node: RX-Syntax689205
  23423. Node: RX-Chars689384
  23424. Node: S/390-Dependent689936
  23425. Node: s390 Options690781
  23426. Node: s390 Characters692941
  23427. Node: s390 Syntax693462
  23428. Node: s390 Register694364
  23429. Node: s390 Mnemonics695180
  23430. Node: s390 Operands698200
  23431. Node: s390 Formats700831
  23432. Node: s390 Aliases708678
  23433. Node: s390 Operand Modifier712643
  23434. Node: s390 Instruction Marker716446
  23435. Node: s390 Literal Pool Entries717460
  23436. Node: s390 Directives719393
  23437. Node: s390 Floating Point724846
  23438. Node: SCORE-Dependent725294
  23439. Node: SCORE-Opts725596
  23440. Node: SCORE-Pseudo726883
  23441. Node: SCORE-Syntax728965
  23442. Node: SCORE-Chars729147
  23443. Node: SH-Dependent729705
  23444. Node: SH Options730117
  23445. Node: SH Syntax731168
  23446. Node: SH-Chars731441
  23447. Node: SH-Regs731984
  23448. Node: SH-Addressing732598
  23449. Node: SH Floating Point733506
  23450. Node: SH Directives734603
  23451. Node: SH Opcodes735004
  23452. Node: Sparc-Dependent739325
  23453. Node: Sparc-Opts739734
  23454. Node: Sparc-Aligned-Data745447
  23455. Node: Sparc-Syntax746279
  23456. Node: Sparc-Chars746853
  23457. Node: Sparc-Regs747416
  23458. Node: Sparc-Constants753264
  23459. Node: Sparc-Relocs758024
  23460. Node: Sparc-Size-Translations763142
  23461. Node: Sparc-Float764792
  23462. Node: Sparc-Directives764987
  23463. Node: TIC54X-Dependent766949
  23464. Node: TIC54X-Opts767712
  23465. Node: TIC54X-Block768753
  23466. Node: TIC54X-Env769113
  23467. Node: TIC54X-Constants769461
  23468. Node: TIC54X-Subsyms769858
  23469. Node: TIC54X-Locals771762
  23470. Node: TIC54X-Builtins772502
  23471. Node: TIC54X-Ext774916
  23472. Node: TIC54X-Directives775487
  23473. Node: TIC54X-Macros786395
  23474. Node: TIC54X-MMRegs788482
  23475. Node: TIC54X-Syntax788719
  23476. Node: TIC54X-Chars788909
  23477. Node: TIC6X-Dependent789600
  23478. Node: TIC6X Options789903
  23479. Node: TIC6X Syntax791902
  23480. Node: TIC6X Directives793005
  23481. Node: TILE-Gx-Dependent795289
  23482. Node: TILE-Gx Options795599
  23483. Node: TILE-Gx Syntax795948
  23484. Node: TILE-Gx Opcodes798184
  23485. Node: TILE-Gx Registers798472
  23486. Node: TILE-Gx Modifiers799243
  23487. Node: TILE-Gx Directives804242
  23488. Node: TILEPro-Dependent805145
  23489. Node: TILEPro Options805454
  23490. Node: TILEPro Syntax805638
  23491. Node: TILEPro Opcodes807874
  23492. Node: TILEPro Registers808165
  23493. Node: TILEPro Modifiers808935
  23494. Node: TILEPro Directives813724
  23495. Node: V850-Dependent814627
  23496. Node: V850 Options815023
  23497. Node: V850 Syntax819301
  23498. Node: V850-Chars819541
  23499. Node: V850-Regs820085
  23500. Node: V850 Floating Point821595
  23501. Node: V850 Directives821801
  23502. Node: V850 Opcodes823867
  23503. Node: Vax-Dependent829746
  23504. Node: VAX-Opts830330
  23505. Node: VAX-float834051
  23506. Node: VAX-directives834684
  23507. Node: VAX-opcodes835544
  23508. Node: VAX-branch835933
  23509. Node: VAX-operands838437
  23510. Node: VAX-no839200
  23511. Node: VAX-Syntax839456
  23512. Node: VAX-Chars839622
  23513. Node: Visium-Dependent840176
  23514. Node: Visium Options840489
  23515. Node: Visium Syntax840955
  23516. Node: Visium Characters841200
  23517. Node: Visium Registers841781
  23518. Node: Visium Opcodes842053
  23519. Node: WebAssembly-Dependent842479
  23520. Node: WebAssembly-Notes842920
  23521. Node: WebAssembly-Syntax843206
  23522. Node: WebAssembly-Chars843772
  23523. Node: WebAssembly-Relocs844151
  23524. Node: WebAssembly-Signatures844877
  23525. Node: WebAssembly-Floating-Point845378
  23526. Node: WebAssembly-Opcodes845619
  23527. Node: WebAssembly-module-layout846252
  23528. Node: XGATE-Dependent846732
  23529. Node: XGATE-Opts847159
  23530. Node: XGATE-Syntax848148
  23531. Node: XGATE-Directives850227
  23532. Node: XGATE-Float850466
  23533. Node: XGATE-opcodes850963
  23534. Node: XSTORMY16-Dependent851075
  23535. Node: XStormy16 Syntax851421
  23536. Node: XStormy16-Chars851611
  23537. Node: XStormy16 Directives852224
  23538. Node: XStormy16 Opcodes852878
  23539. Node: Xtensa-Dependent853933
  23540. Node: Xtensa Options854664
  23541. Node: Xtensa Syntax858931
  23542. Node: Xtensa Opcodes861075
  23543. Node: Xtensa Registers862868
  23544. Node: Xtensa Optimizations863501
  23545. Node: Density Instructions863953
  23546. Node: Xtensa Automatic Alignment865055
  23547. Node: Xtensa Relaxation867502
  23548. Node: Xtensa Branch Relaxation868467
  23549. Node: Xtensa Call Relaxation869839
  23550. Node: Xtensa Jump Relaxation871620
  23551. Node: Xtensa Immediate Relaxation873720
  23552. Node: Xtensa Directives876295
  23553. Node: Schedule Directive878003
  23554. Node: Longcalls Directive878343
  23555. Node: Transform Directive878887
  23556. Node: Literal Directive879629
  23557. Ref: Literal Directive-Footnote-1883168
  23558. Node: Literal Position Directive883310
  23559. Node: Literal Prefix Directive885009
  23560. Node: Absolute Literals Directive885907
  23561. Node: Z80-Dependent887214
  23562. Node: Z80 Options887602
  23563. Node: Z80 Syntax890892
  23564. Node: Z80-Chars891600
  23565. Node: Z80-Regs892451
  23566. Node: Z80-Case892803
  23567. Node: Z80-Labels893267
  23568. Node: Z80 Floating Point893763
  23569. Node: Z80 Directives894232
  23570. Node: Z80 Opcodes896214
  23571. Node: Z8000-Dependent897822
  23572. Node: Z8000 Options898758
  23573. Node: Z8000 Syntax898975
  23574. Node: Z8000-Chars899265
  23575. Node: Z8000-Regs899747
  23576. Node: Z8000-Addressing900537
  23577. Node: Z8000 Directives901647
  23578. Node: Z8000 Opcodes903256
  23579. Node: Reporting Bugs913198
  23580. Node: Bug Criteria913924
  23581. Node: Bug Reporting914691
  23582. Node: Acknowledgements921335
  23583. Ref: Acknowledgements-Footnote-1926301
  23584. Node: GNU Free Documentation License926327
  23585. Node: AS Index951477
  23586. 
  23587. End Tag Table
  23588. 
  23589. Local Variables:
  23590. coding: utf-8
  23591. End: