as.info 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286
  1. This is as.info, produced by makeinfo version 6.6 from as.texi.
  2. This file documents the GNU Assembler "as".
  3. Copyright (C) 1991-2019 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' (xPack GNU Arm
  20. Embedded GCC\x2C 64-bit) version 2.33.1.
  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. [-help] [-I DIR] [-J]
  50. [-K] [-L] [-listing-lhs-width=NUM]
  51. [-listing-lhs-width2=NUM] [-listing-rhs-width=NUM]
  52. [-listing-cont-lines=NUM] [-keep-locals]
  53. [-no-pad-sections]
  54. [-o OBJFILE] [-R]
  55. [-hash-size=NUM] [-reduce-memory-overheads]
  56. [-statistics]
  57. [-v] [-version] [-version]
  58. [-W] [-warn] [-fatal-warnings] [-w] [-x]
  59. [-Z] [@FILE]
  60. [-sectname-subst] [-size-check=[error|warning]]
  61. [-elf-stt-common=[no|yes]]
  62. [-generate-missing-build-notes=[no|yes]]
  63. [-target-help] [TARGET-OPTIONS]
  64. [-|FILES ...]
  65. _Target AArch64 options:_
  66. [-EB|-EL]
  67. [-mabi=ABI]
  68. _Target Alpha options:_
  69. [-mCPU]
  70. [-mdebug | -no-mdebug]
  71. [-replace | -noreplace]
  72. [-relax] [-g] [-GSIZE]
  73. [-F] [-32addr]
  74. _Target ARC options:_
  75. [-mcpu=CPU]
  76. [-mA6|-mARC600|-mARC601|-mA7|-mARC700|-mEM|-mHS]
  77. [-mcode-density]
  78. [-mrelax]
  79. [-EB|-EL]
  80. _Target ARM options:_
  81. [-mcpu=PROCESSOR[+EXTENSION...]]
  82. [-march=ARCHITECTURE[+EXTENSION...]]
  83. [-mfpu=FLOATING-POINT-FORMAT]
  84. [-mfloat-abi=ABI]
  85. [-meabi=VER]
  86. [-mthumb]
  87. [-EB|-EL]
  88. [-mapcs-32|-mapcs-26|-mapcs-float|
  89. -mapcs-reentrant]
  90. [-mthumb-interwork] [-k]
  91. _Target Blackfin options:_
  92. [-mcpu=PROCESSOR[-SIREVISION]]
  93. [-mfdpic]
  94. [-mno-fdpic]
  95. [-mnopic]
  96. _Target BPF options:_
  97. [-EL] [-EB]
  98. _Target CRIS options:_
  99. [-underscore | -no-underscore]
  100. [-pic] [-N]
  101. [-emulation=criself | -emulation=crisaout]
  102. [-march=v0_v10 | -march=v10 | -march=v32 | -march=common_v10_v32]
  103. _Target C-SKY options:_
  104. [-march=ARCH] [-mcpu=CPU]
  105. [-EL] [-mlittle-endian] [-EB] [-mbig-endian]
  106. [-fpic] [-pic]
  107. [-mljump] [-mno-ljump]
  108. [-force2bsr] [-mforce2bsr] [-no-force2bsr] [-mno-force2bsr]
  109. [-jsri2bsr] [-mjsri2bsr] [-no-jsri2bsr ] [-mno-jsri2bsr]
  110. [-mnolrw ] [-mno-lrw]
  111. [-melrw] [-mno-elrw]
  112. [-mlaf ] [-mliterals-after-func]
  113. [-mno-laf] [-mno-literals-after-func]
  114. [-mlabr] [-mliterals-after-br]
  115. [-mno-labr] [-mnoliterals-after-br]
  116. [-mistack] [-mno-istack]
  117. [-mhard-float] [-mmp] [-mcp] [-mcache]
  118. [-msecurity] [-mtrust]
  119. [-mdsp] [-medsp] [-mvdsp]
  120. _Target D10V options:_
  121. [-O]
  122. _Target D30V options:_
  123. [-O|-n|-N]
  124. _Target EPIPHANY options:_
  125. [-mepiphany|-mepiphany16]
  126. _Target H8/300 options:_
  127. [-h-tick-hex]
  128. _Target i386 options:_
  129. [-32|-x32|-64] [-n]
  130. [-march=CPU[+EXTENSION...]] [-mtune=CPU]
  131. _Target IA-64 options:_
  132. [-mconstant-gp|-mauto-pic]
  133. [-milp32|-milp64|-mlp64|-mp64]
  134. [-mle|mbe]
  135. [-mtune=itanium1|-mtune=itanium2]
  136. [-munwind-check=warning|-munwind-check=error]
  137. [-mhint.b=ok|-mhint.b=warning|-mhint.b=error]
  138. [-x|-xexplicit] [-xauto] [-xdebug]
  139. _Target IP2K options:_
  140. [-mip2022|-mip2022ext]
  141. _Target M32C options:_
  142. [-m32c|-m16c] [-relax] [-h-tick-hex]
  143. _Target M32R options:_
  144. [-m32rx|-[no-]warn-explicit-parallel-conflicts|
  145. -W[n]p]
  146. _Target M680X0 options:_
  147. [-l] [-m68000|-m68010|-m68020|...]
  148. _Target M68HC11 options:_
  149. [-m68hc11|-m68hc12|-m68hcs12|-mm9s12x|-mm9s12xg]
  150. [-mshort|-mlong]
  151. [-mshort-double|-mlong-double]
  152. [-force-long-branches] [-short-branches]
  153. [-strict-direct-mode] [-print-insn-syntax]
  154. [-print-opcodes] [-generate-example]
  155. _Target MCORE options:_
  156. [-jsri2bsr] [-sifilter] [-relax]
  157. [-mcpu=[210|340]]
  158. _Target Meta options:_
  159. [-mcpu=CPU] [-mfpu=CPU] [-mdsp=CPU]
  160. _Target MICROBLAZE options:_
  161. _Target MIPS options:_
  162. [-nocpp] [-EL] [-EB] [-O[OPTIMIZATION LEVEL]]
  163. [-g[DEBUG LEVEL]] [-G NUM] [-KPIC] [-call_shared]
  164. [-non_shared] [-xgot [-mvxworks-pic]
  165. [-mabi=ABI] [-32] [-n32] [-64] [-mfp32] [-mgp32]
  166. [-mfp64] [-mgp64] [-mfpxx]
  167. [-modd-spreg] [-mno-odd-spreg]
  168. [-march=CPU] [-mtune=CPU] [-mips1] [-mips2]
  169. [-mips3] [-mips4] [-mips5] [-mips32] [-mips32r2]
  170. [-mips32r3] [-mips32r5] [-mips32r6] [-mips64] [-mips64r2]
  171. [-mips64r3] [-mips64r5] [-mips64r6]
  172. [-construct-floats] [-no-construct-floats]
  173. [-mignore-branch-isa] [-mno-ignore-branch-isa]
  174. [-mnan=ENCODING]
  175. [-trap] [-no-break] [-break] [-no-trap]
  176. [-mips16] [-no-mips16]
  177. [-mmips16e2] [-mno-mips16e2]
  178. [-mmicromips] [-mno-micromips]
  179. [-msmartmips] [-mno-smartmips]
  180. [-mips3d] [-no-mips3d]
  181. [-mdmx] [-no-mdmx]
  182. [-mdsp] [-mno-dsp]
  183. [-mdspr2] [-mno-dspr2]
  184. [-mdspr3] [-mno-dspr3]
  185. [-mmsa] [-mno-msa]
  186. [-mxpa] [-mno-xpa]
  187. [-mmt] [-mno-mt]
  188. [-mmcu] [-mno-mcu]
  189. [-mcrc] [-mno-crc]
  190. [-mginv] [-mno-ginv]
  191. [-mloongson-mmi] [-mno-loongson-mmi]
  192. [-mloongson-cam] [-mno-loongson-cam]
  193. [-mloongson-ext] [-mno-loongson-ext]
  194. [-mloongson-ext2] [-mno-loongson-ext2]
  195. [-minsn32] [-mno-insn32]
  196. [-mfix7000] [-mno-fix7000]
  197. [-mfix-rm7000] [-mno-fix-rm7000]
  198. [-mfix-vr4120] [-mno-fix-vr4120]
  199. [-mfix-vr4130] [-mno-fix-vr4130]
  200. [-mfix-r5900] [-mno-fix-r5900]
  201. [-mdebug] [-no-mdebug]
  202. [-mpdr] [-mno-pdr]
  203. _Target MMIX options:_
  204. [-fixed-special-register-names] [-globalize-symbols]
  205. [-gnu-syntax] [-relax] [-no-predefined-symbols]
  206. [-no-expand] [-no-merge-gregs] [-x]
  207. [-linker-allocated-gregs]
  208. _Target Nios II options:_
  209. [-relax-all] [-relax-section] [-no-relax]
  210. [-EB] [-EL]
  211. _Target NDS32 options:_
  212. [-EL] [-EB] [-O] [-Os] [-mcpu=CPU]
  213. [-misa=ISA] [-mabi=ABI] [-mall-ext]
  214. [-m[no-]16-bit] [-m[no-]perf-ext] [-m[no-]perf2-ext]
  215. [-m[no-]string-ext] [-m[no-]dsp-ext] [-m[no-]mac] [-m[no-]div]
  216. [-m[no-]audio-isa-ext] [-m[no-]fpu-sp-ext] [-m[no-]fpu-dp-ext]
  217. [-m[no-]fpu-fma] [-mfpu-freg=FREG] [-mreduced-regs]
  218. [-mfull-regs] [-m[no-]dx-regs] [-mpic] [-mno-relax]
  219. [-mb2bb]
  220. _Target PDP11 options:_
  221. [-mpic|-mno-pic] [-mall] [-mno-extensions]
  222. [-mEXTENSION|-mno-EXTENSION]
  223. [-mCPU] [-mMACHINE]
  224. _Target picoJava options:_
  225. [-mb|-me]
  226. _Target PowerPC options:_
  227. [-a32|-a64]
  228. [-mpwrx|-mpwr2|-mpwr|-m601|-mppc|-mppc32|-m603|-m604|-m403|-m405|
  229. -m440|-m464|-m476|-m7400|-m7410|-m7450|-m7455|-m750cl|-mgekko|
  230. -mbroadway|-mppc64|-m620|-me500|-e500x2|-me500mc|-me500mc64|-me5500|
  231. -me6500|-mppc64bridge|-mbooke|-mpower4|-mpwr4|-mpower5|-mpwr5|-mpwr5x|
  232. -mpower6|-mpwr6|-mpower7|-mpwr7|-mpower8|-mpwr8|-mpower9|-mpwr9-ma2|
  233. -mcell|-mspe|-mspe2|-mtitan|-me300|-mcom]
  234. [-many] [-maltivec|-mvsx|-mhtm|-mvle]
  235. [-mregnames|-mno-regnames]
  236. [-mrelocatable|-mrelocatable-lib|-K PIC] [-memb]
  237. [-mlittle|-mlittle-endian|-le|-mbig|-mbig-endian|-be]
  238. [-msolaris|-mno-solaris]
  239. [-nops=COUNT]
  240. _Target PRU options:_
  241. [-link-relax]
  242. [-mnolink-relax]
  243. [-mno-warn-regname-label]
  244. _Target RISC-V options:_
  245. [-fpic|-fPIC|-fno-pic]
  246. [-march=ISA]
  247. [-mabi=ABI]
  248. _Target RL78 options:_
  249. [-mg10]
  250. [-m32bit-doubles|-m64bit-doubles]
  251. _Target RX options:_
  252. [-mlittle-endian|-mbig-endian]
  253. [-m32bit-doubles|-m64bit-doubles]
  254. [-muse-conventional-section-names]
  255. [-msmall-data-limit]
  256. [-mpid]
  257. [-mrelax]
  258. [-mint-register=NUMBER]
  259. [-mgcc-abi|-mrx-abi]
  260. _Target s390 options:_
  261. [-m31|-m64] [-mesa|-mzarch] [-march=CPU]
  262. [-mregnames|-mno-regnames]
  263. [-mwarn-areg-zero]
  264. _Target SCORE options:_
  265. [-EB][-EL][-FIXDD][-NWARN]
  266. [-SCORE5][-SCORE5U][-SCORE7][-SCORE3]
  267. [-march=score7][-march=score3]
  268. [-USE_R1][-KPIC][-O0][-G NUM][-V]
  269. _Target SPARC options:_
  270. [-Av6|-Av7|-Av8|-Aleon|-Asparclet|-Asparclite
  271. -Av8plus|-Av8plusa|-Av8plusb|-Av8plusc|-Av8plusd
  272. -Av8plusv|-Av8plusm|-Av9|-Av9a|-Av9b|-Av9c
  273. -Av9d|-Av9e|-Av9v|-Av9m|-Asparc|-Asparcvis
  274. -Asparcvis2|-Asparcfmaf|-Asparcima|-Asparcvis3
  275. -Asparcvisr|-Asparc5]
  276. [-xarch=v8plus|-xarch=v8plusa]|-xarch=v8plusb|-xarch=v8plusc
  277. -xarch=v8plusd|-xarch=v8plusv|-xarch=v8plusm|-xarch=v9
  278. -xarch=v9a|-xarch=v9b|-xarch=v9c|-xarch=v9d|-xarch=v9e
  279. -xarch=v9v|-xarch=v9m|-xarch=sparc|-xarch=sparcvis
  280. -xarch=sparcvis2|-xarch=sparcfmaf|-xarch=sparcima
  281. -xarch=sparcvis3|-xarch=sparcvisr|-xarch=sparc5
  282. -bump]
  283. [-32|-64]
  284. [-enforce-aligned-data][-dcti-couples-detect]
  285. _Target TIC54X options:_
  286. [-mcpu=54[123589]|-mcpu=54[56]lp] [-mfar-mode|-mf]
  287. [-merrors-to-file <FILENAME>|-me <FILENAME>]
  288. _Target TIC6X options:_
  289. [-march=ARCH] [-mbig-endian|-mlittle-endian]
  290. [-mdsbt|-mno-dsbt] [-mpid=no|-mpid=near|-mpid=far]
  291. [-mpic|-mno-pic]
  292. _Target TILE-Gx options:_
  293. [-m32|-m64][-EB][-EL]
  294. _Target Visium options:_
  295. [-mtune=ARCH]
  296. _Target Xtensa options:_
  297. [-[no-]text-section-literals] [-[no-]auto-litpools]
  298. [-[no-]absolute-literals]
  299. [-[no-]target-align] [-[no-]longcalls]
  300. [-[no-]transform]
  301. [-rename-section OLDNAME=NEWNAME]
  302. [-[no-]trampolines]
  303. _Target Z80 options:_
  304. [-z80] [-r800]
  305. [ -ignore-undocumented-instructions] [-Wnud]
  306. [ -ignore-unportable-instructions] [-Wnup]
  307. [ -warn-undocumented-instructions] [-Wud]
  308. [ -warn-unportable-instructions] [-Wup]
  309. [ -forbid-undocumented-instructions] [-Fud]
  310. [ -forbid-unportable-instructions] [-Fup]
  311. '@FILE'
  312. Read command-line options from FILE. The options read are inserted
  313. in place of the original @FILE option. If FILE does not exist, or
  314. cannot be read, then the option will be treated literally, and not
  315. removed.
  316. Options in FILE are separated by whitespace. A whitespace
  317. character may be included in an option by surrounding the entire
  318. option in either single or double quotes. Any character (including
  319. a backslash) may be included by prefixing the character to be
  320. included with a backslash. The FILE may itself contain additional
  321. @FILE options; any such options will be processed recursively.
  322. '-a[cdghlmns]'
  323. Turn on listings, in any of a variety of ways:
  324. '-ac'
  325. omit false conditionals
  326. '-ad'
  327. omit debugging directives
  328. '-ag'
  329. include general information, like as version and options
  330. passed
  331. '-ah'
  332. include high-level source
  333. '-al'
  334. include assembly
  335. '-am'
  336. include macro expansions
  337. '-an'
  338. omit forms processing
  339. '-as'
  340. include symbols
  341. '=file'
  342. set the name of the listing file
  343. You may combine these options; for example, use '-aln' for assembly
  344. listing without forms processing. The '=file' option, if used,
  345. must be the last one. By itself, '-a' defaults to '-ahls'.
  346. '--alternate'
  347. Begin in alternate macro mode. *Note '.altmacro': Altmacro.
  348. '--compress-debug-sections'
  349. Compress DWARF debug sections using zlib with SHF_COMPRESSED from
  350. the ELF ABI. The resulting object file may not be compatible with
  351. older linkers and object file utilities. Note if compression would
  352. make a given section _larger_ then it is not compressed.
  353. '--compress-debug-sections=none'
  354. '--compress-debug-sections=zlib'
  355. '--compress-debug-sections=zlib-gnu'
  356. '--compress-debug-sections=zlib-gabi'
  357. These options control how DWARF debug sections are compressed.
  358. '--compress-debug-sections=none' is equivalent to
  359. '--nocompress-debug-sections'. '--compress-debug-sections=zlib'
  360. and '--compress-debug-sections=zlib-gabi' are equivalent to
  361. '--compress-debug-sections'. '--compress-debug-sections=zlib-gnu'
  362. compresses DWARF debug sections using zlib. The debug sections are
  363. renamed to begin with '.zdebug'. Note if compression would make a
  364. given section _larger_ then it is not compressed nor renamed.
  365. '--nocompress-debug-sections'
  366. Do not compress DWARF debug sections. This is usually the default
  367. for all targets except the x86/x86_64, but a configure time option
  368. can be used to override this.
  369. '-D'
  370. Ignored. This option is accepted for script compatibility with
  371. calls to other assemblers.
  372. '--debug-prefix-map OLD=NEW'
  373. When assembling files in directory 'OLD', record debugging
  374. information describing them as in 'NEW' instead.
  375. '--defsym SYM=VALUE'
  376. Define the symbol SYM to be VALUE before assembling the input file.
  377. VALUE must be an integer constant. As in C, a leading '0x'
  378. indicates a hexadecimal value, and a leading '0' indicates an octal
  379. value. The value of the symbol can be overridden inside a source
  380. file via the use of a '.set' pseudo-op.
  381. '-f'
  382. "fast"--skip whitespace and comment preprocessing (assume source is
  383. compiler output).
  384. '-g'
  385. '--gen-debug'
  386. Generate debugging information for each assembler source line using
  387. whichever debug format is preferred by the target. This currently
  388. means either STABS, ECOFF or DWARF2.
  389. '--gstabs'
  390. Generate stabs debugging information for each assembler line. This
  391. may help debugging assembler code, if the debugger can handle it.
  392. '--gstabs+'
  393. Generate stabs debugging information for each assembler line, with
  394. GNU extensions that probably only gdb can handle, and that could
  395. make other debuggers crash or refuse to read your program. This
  396. may help debugging assembler code. Currently the only GNU
  397. extension is the location of the current working directory at
  398. assembling time.
  399. '--gdwarf-2'
  400. Generate DWARF2 debugging information for each assembler line.
  401. This may help debugging assembler code, if the debugger can handle
  402. it. Note--this option is only supported by some targets, not all
  403. of them.
  404. '--gdwarf-sections'
  405. Instead of creating a .debug_line section, create a series of
  406. .debug_line.FOO sections where FOO is the name of the corresponding
  407. code section. For example a code section called .TEXT.FUNC will
  408. have its dwarf line number information placed into a section called
  409. .DEBUG_LINE.TEXT.FUNC. If the code section is just called .TEXT
  410. then debug line section will still be called just .DEBUG_LINE
  411. without any suffix.
  412. '--size-check=error'
  413. '--size-check=warning'
  414. Issue an error or warning for invalid ELF .size directive.
  415. '--elf-stt-common=no'
  416. '--elf-stt-common=yes'
  417. These options control whether the ELF assembler should generate
  418. common symbols with the 'STT_COMMON' type. The default can be
  419. controlled by a configure option '--enable-elf-stt-common'.
  420. '--generate-missing-build-notes=yes'
  421. '--generate-missing-build-notes=no'
  422. These options control whether the ELF assembler should generate GNU
  423. Build attribute notes if none are present in the input sources.
  424. The default can be controlled by the
  425. '--enable-generate-build-notes' configure option.
  426. '--help'
  427. Print a summary of the command-line options and exit.
  428. '--target-help'
  429. Print a summary of all target specific options and exit.
  430. '-I DIR'
  431. Add directory DIR to the search list for '.include' directives.
  432. '-J'
  433. Don't warn about signed overflow.
  434. '-K'
  435. Issue warnings when difference tables altered for long
  436. displacements.
  437. '-L'
  438. '--keep-locals'
  439. Keep (in the symbol table) local symbols. These symbols start with
  440. system-specific local label prefixes, typically '.L' for ELF
  441. systems or 'L' for traditional a.out systems. *Note Symbol
  442. Names::.
  443. '--listing-lhs-width=NUMBER'
  444. Set the maximum width, in words, of the output data column for an
  445. assembler listing to NUMBER.
  446. '--listing-lhs-width2=NUMBER'
  447. Set the maximum width, in words, of the output data column for
  448. continuation lines in an assembler listing to NUMBER.
  449. '--listing-rhs-width=NUMBER'
  450. Set the maximum width of an input source line, as displayed in a
  451. listing, to NUMBER bytes.
  452. '--listing-cont-lines=NUMBER'
  453. Set the maximum number of lines printed in a listing for a single
  454. line of input to NUMBER + 1.
  455. '--no-pad-sections'
  456. Stop the assembler for padding the ends of output sections to the
  457. alignment of that section. The default is to pad the sections, but
  458. this can waste space which might be needed on targets which have
  459. tight memory constraints.
  460. '-o OBJFILE'
  461. Name the object-file output from 'as' OBJFILE.
  462. '-R'
  463. Fold the data section into the text section.
  464. '--hash-size=NUMBER'
  465. Set the default size of GAS's hash tables to a prime number close
  466. to NUMBER. Increasing this value can reduce the length of time it
  467. takes the assembler to perform its tasks, at the expense of
  468. increasing the assembler's memory requirements. Similarly reducing
  469. this value can reduce the memory requirements at the expense of
  470. speed.
  471. '--reduce-memory-overheads'
  472. This option reduces GAS's memory requirements, at the expense of
  473. making the assembly processes slower. Currently this switch is a
  474. synonym for '--hash-size=4051', but in the future it may have other
  475. effects as well.
  476. '--sectname-subst'
  477. Honor substitution sequences in section names. *Note '.section
  478. NAME': Section Name Substitutions.
  479. '--statistics'
  480. Print the maximum space (in bytes) and total time (in seconds) used
  481. by assembly.
  482. '--strip-local-absolute'
  483. Remove local absolute symbols from the outgoing symbol table.
  484. '-v'
  485. '-version'
  486. Print the 'as' version.
  487. '--version'
  488. Print the 'as' version and exit.
  489. '-W'
  490. '--no-warn'
  491. Suppress warning messages.
  492. '--fatal-warnings'
  493. Treat warnings as errors.
  494. '--warn'
  495. Don't suppress warning messages or treat them as errors.
  496. '-w'
  497. Ignored.
  498. '-x'
  499. Ignored.
  500. '-Z'
  501. Generate an object file even after errors.
  502. '-- | FILES ...'
  503. Standard input, or source files to assemble.
  504. *Note AArch64 Options::, for the options available when as is
  505. configured for the 64-bit mode of the ARM Architecture (AArch64).
  506. *Note Alpha Options::, for the options available when as is
  507. configured for an Alpha processor.
  508. The following options are available when as is configured for an ARC
  509. processor.
  510. '-mcpu=CPU'
  511. This option selects the core processor variant.
  512. '-EB | -EL'
  513. Select either big-endian (-EB) or little-endian (-EL) output.
  514. '-mcode-density'
  515. Enable Code Density extenssion instructions.
  516. The following options are available when as is configured for the ARM
  517. processor family.
  518. '-mcpu=PROCESSOR[+EXTENSION...]'
  519. Specify which ARM processor variant is the target.
  520. '-march=ARCHITECTURE[+EXTENSION...]'
  521. Specify which ARM architecture variant is used by the target.
  522. '-mfpu=FLOATING-POINT-FORMAT'
  523. Select which Floating Point architecture is the target.
  524. '-mfloat-abi=ABI'
  525. Select which floating point ABI is in use.
  526. '-mthumb'
  527. Enable Thumb only instruction decoding.
  528. '-mapcs-32 | -mapcs-26 | -mapcs-float | -mapcs-reentrant'
  529. Select which procedure calling convention is in use.
  530. '-EB | -EL'
  531. Select either big-endian (-EB) or little-endian (-EL) output.
  532. '-mthumb-interwork'
  533. Specify that the code has been generated with interworking between
  534. Thumb and ARM code in mind.
  535. '-mccs'
  536. Turns on CodeComposer Studio assembly syntax compatibility mode.
  537. '-k'
  538. Specify that PIC code has been generated.
  539. *Note Blackfin Options::, for the options available when as is
  540. configured for the Blackfin processor family.
  541. *Note BPF Options::, for the options available when as is configured
  542. for the Linux kernel BPF processor family.
  543. See the info pages for documentation of the CRIS-specific options.
  544. *Note C-SKY Options::, for the options available when as is
  545. configured for the C-SKY processor family.
  546. The following options are available when as is configured for a D10V
  547. processor.
  548. '-O'
  549. Optimize output by parallelizing instructions.
  550. The following options are available when as is configured for a D30V
  551. processor.
  552. '-O'
  553. Optimize output by parallelizing instructions.
  554. '-n'
  555. Warn when nops are generated.
  556. '-N'
  557. Warn when a nop after a 32-bit multiply instruction is generated.
  558. The following options are available when as is configured for the
  559. Adapteva EPIPHANY series.
  560. *Note Epiphany Options::, for the options available when as is
  561. configured for an Epiphany processor.
  562. *Note i386-Options::, for the options available when as is configured
  563. for an i386 processor.
  564. The following options are available when as is configured for the
  565. Ubicom IP2K series.
  566. '-mip2022ext'
  567. Specifies that the extended IP2022 instructions are allowed.
  568. '-mip2022'
  569. Restores the default behaviour, which restricts the permitted
  570. instructions to just the basic IP2022 ones.
  571. The following options are available when as is configured for the
  572. Renesas M32C and M16C processors.
  573. '-m32c'
  574. Assemble M32C instructions.
  575. '-m16c'
  576. Assemble M16C instructions (the default).
  577. '-relax'
  578. Enable support for link-time relaxations.
  579. '-h-tick-hex'
  580. Support H'00 style hex constants in addition to 0x00 style.
  581. The following options are available when as is configured for the
  582. Renesas M32R (formerly Mitsubishi M32R) series.
  583. '--m32rx'
  584. Specify which processor in the M32R family is the target. The
  585. default is normally the M32R, but this option changes it to the
  586. M32RX.
  587. '--warn-explicit-parallel-conflicts or --Wp'
  588. Produce warning messages when questionable parallel constructs are
  589. encountered.
  590. '--no-warn-explicit-parallel-conflicts or --Wnp'
  591. Do not produce warning messages when questionable parallel
  592. constructs are encountered.
  593. The following options are available when as is configured for the
  594. Motorola 68000 series.
  595. '-l'
  596. Shorten references to undefined symbols, to one word instead of
  597. two.
  598. '-m68000 | -m68008 | -m68010 | -m68020 | -m68030'
  599. '| -m68040 | -m68060 | -m68302 | -m68331 | -m68332'
  600. '| -m68333 | -m68340 | -mcpu32 | -m5200'
  601. Specify what processor in the 68000 family is the target. The
  602. default is normally the 68020, but this can be changed at
  603. configuration time.
  604. '-m68881 | -m68882 | -mno-68881 | -mno-68882'
  605. The target machine does (or does not) have a floating-point
  606. coprocessor. The default is to assume a coprocessor for 68020,
  607. 68030, and cpu32. Although the basic 68000 is not compatible with
  608. the 68881, a combination of the two can be specified, since it's
  609. possible to do emulation of the coprocessor instructions with the
  610. main processor.
  611. '-m68851 | -mno-68851'
  612. The target machine does (or does not) have a memory-management unit
  613. coprocessor. The default is to assume an MMU for 68020 and up.
  614. *Note Nios II Options::, for the options available when as is
  615. configured for an Altera Nios II processor.
  616. For details about the PDP-11 machine dependent features options, see
  617. *note PDP-11-Options::.
  618. '-mpic | -mno-pic'
  619. Generate position-independent (or position-dependent) code. The
  620. default is '-mpic'.
  621. '-mall'
  622. '-mall-extensions'
  623. Enable all instruction set extensions. This is the default.
  624. '-mno-extensions'
  625. Disable all instruction set extensions.
  626. '-mEXTENSION | -mno-EXTENSION'
  627. Enable (or disable) a particular instruction set extension.
  628. '-mCPU'
  629. Enable the instruction set extensions supported by a particular
  630. CPU, and disable all other extensions.
  631. '-mMACHINE'
  632. Enable the instruction set extensions supported by a particular
  633. machine model, and disable all other extensions.
  634. The following options are available when as is configured for a
  635. picoJava processor.
  636. '-mb'
  637. Generate "big endian" format output.
  638. '-ml'
  639. Generate "little endian" format output.
  640. *Note PRU Options::, for the options available when as is configured
  641. for a PRU processor.
  642. The following options are available when as is configured for the
  643. Motorola 68HC11 or 68HC12 series.
  644. '-m68hc11 | -m68hc12 | -m68hcs12 | -mm9s12x | -mm9s12xg'
  645. Specify what processor is the target. The default is defined by
  646. the configuration option when building the assembler.
  647. '--xgate-ramoffset'
  648. Instruct the linker to offset RAM addresses from S12X address space
  649. into XGATE address space.
  650. '-mshort'
  651. Specify to use the 16-bit integer ABI.
  652. '-mlong'
  653. Specify to use the 32-bit integer ABI.
  654. '-mshort-double'
  655. Specify to use the 32-bit double ABI.
  656. '-mlong-double'
  657. Specify to use the 64-bit double ABI.
  658. '--force-long-branches'
  659. Relative branches are turned into absolute ones. This concerns
  660. conditional branches, unconditional branches and branches to a sub
  661. routine.
  662. '-S | --short-branches'
  663. Do not turn relative branches into absolute ones when the offset is
  664. out of range.
  665. '--strict-direct-mode'
  666. Do not turn the direct addressing mode into extended addressing
  667. mode when the instruction does not support direct addressing mode.
  668. '--print-insn-syntax'
  669. Print the syntax of instruction in case of error.
  670. '--print-opcodes'
  671. Print the list of instructions with syntax and then exit.
  672. '--generate-example'
  673. Print an example of instruction for each possible instruction and
  674. then exit. This option is only useful for testing 'as'.
  675. The following options are available when 'as' is configured for the
  676. SPARC architecture:
  677. '-Av6 | -Av7 | -Av8 | -Asparclet | -Asparclite'
  678. '-Av8plus | -Av8plusa | -Av9 | -Av9a'
  679. Explicitly select a variant of the SPARC architecture.
  680. '-Av8plus' and '-Av8plusa' select a 32 bit environment. '-Av9' and
  681. '-Av9a' select a 64 bit environment.
  682. '-Av8plusa' and '-Av9a' enable the SPARC V9 instruction set with
  683. UltraSPARC extensions.
  684. '-xarch=v8plus | -xarch=v8plusa'
  685. For compatibility with the Solaris v9 assembler. These options are
  686. equivalent to -Av8plus and -Av8plusa, respectively.
  687. '-bump'
  688. Warn when the assembler switches to another architecture.
  689. The following options are available when as is configured for the
  690. 'c54x architecture.
  691. '-mfar-mode'
  692. Enable extended addressing mode. All addresses and relocations
  693. will assume extended addressing (usually 23 bits).
  694. '-mcpu=CPU_VERSION'
  695. Sets the CPU version being compiled for.
  696. '-merrors-to-file FILENAME'
  697. Redirect error output to a file, for broken systems which don't
  698. support such behaviour in the shell.
  699. The following options are available when as is configured for a MIPS
  700. processor.
  701. '-G NUM'
  702. This option sets the largest size of an object that can be
  703. referenced implicitly with the 'gp' register. It is only accepted
  704. for targets that use ECOFF format, such as a DECstation running
  705. Ultrix. The default value is 8.
  706. '-EB'
  707. Generate "big endian" format output.
  708. '-EL'
  709. Generate "little endian" format output.
  710. '-mips1'
  711. '-mips2'
  712. '-mips3'
  713. '-mips4'
  714. '-mips5'
  715. '-mips32'
  716. '-mips32r2'
  717. '-mips32r3'
  718. '-mips32r5'
  719. '-mips32r6'
  720. '-mips64'
  721. '-mips64r2'
  722. '-mips64r3'
  723. '-mips64r5'
  724. '-mips64r6'
  725. Generate code for a particular MIPS Instruction Set Architecture
  726. level. '-mips1' is an alias for '-march=r3000', '-mips2' is an
  727. alias for '-march=r6000', '-mips3' is an alias for '-march=r4000'
  728. and '-mips4' is an alias for '-march=r8000'. '-mips5', '-mips32',
  729. '-mips32r2', '-mips32r3', '-mips32r5', '-mips32r6', '-mips64',
  730. '-mips64r2', '-mips64r3', '-mips64r5', and '-mips64r6' correspond
  731. to generic MIPS V, MIPS32, MIPS32 Release 2, MIPS32 Release 3,
  732. MIPS32 Release 5, MIPS32 Release 6, MIPS64, MIPS64 Release 2,
  733. MIPS64 Release 3, MIPS64 Release 5, and MIPS64 Release 6 ISA
  734. processors, respectively.
  735. '-march=CPU'
  736. Generate code for a particular MIPS CPU.
  737. '-mtune=CPU'
  738. Schedule and tune for a particular MIPS CPU.
  739. '-mfix7000'
  740. '-mno-fix7000'
  741. Cause nops to be inserted if the read of the destination register
  742. of an mfhi or mflo instruction occurs in the following two
  743. instructions.
  744. '-mfix-rm7000'
  745. '-mno-fix-rm7000'
  746. Cause nops to be inserted if a dmult or dmultu instruction is
  747. followed by a load instruction.
  748. '-mfix-r5900'
  749. '-mno-fix-r5900'
  750. Do not attempt to schedule the preceding instruction into the delay
  751. slot of a branch instruction placed at the end of a short loop of
  752. six instructions or fewer and always schedule a 'nop' instruction
  753. there instead. The short loop bug under certain conditions causes
  754. loops to execute only once or twice, due to a hardware bug in the
  755. R5900 chip.
  756. '-mdebug'
  757. '-no-mdebug'
  758. Cause stabs-style debugging output to go into an ECOFF-style
  759. .mdebug section instead of the standard ELF .stabs sections.
  760. '-mpdr'
  761. '-mno-pdr'
  762. Control generation of '.pdr' sections.
  763. '-mgp32'
  764. '-mfp32'
  765. The register sizes are normally inferred from the ISA and ABI, but
  766. these flags force a certain group of registers to be treated as 32
  767. bits wide at all times. '-mgp32' controls the size of
  768. general-purpose registers and '-mfp32' controls the size of
  769. floating-point registers.
  770. '-mgp64'
  771. '-mfp64'
  772. The register sizes are normally inferred from the ISA and ABI, but
  773. these flags force a certain group of registers to be treated as 64
  774. bits wide at all times. '-mgp64' controls the size of
  775. general-purpose registers and '-mfp64' controls the size of
  776. floating-point registers.
  777. '-mfpxx'
  778. The register sizes are normally inferred from the ISA and ABI, but
  779. using this flag in combination with '-mabi=32' enables an ABI
  780. variant which will operate correctly with floating-point registers
  781. which are 32 or 64 bits wide.
  782. '-modd-spreg'
  783. '-mno-odd-spreg'
  784. Enable use of floating-point operations on odd-numbered
  785. single-precision registers when supported by the ISA. '-mfpxx'
  786. implies '-mno-odd-spreg', otherwise the default is '-modd-spreg'.
  787. '-mips16'
  788. '-no-mips16'
  789. Generate code for the MIPS 16 processor. This is equivalent to
  790. putting '.module mips16' at the start of the assembly file.
  791. '-no-mips16' turns off this option.
  792. '-mmips16e2'
  793. '-mno-mips16e2'
  794. Enable the use of MIPS16e2 instructions in MIPS16 mode. This is
  795. equivalent to putting '.module mips16e2' at the start of the
  796. assembly file. '-mno-mips16e2' turns off this option.
  797. '-mmicromips'
  798. '-mno-micromips'
  799. Generate code for the microMIPS processor. This is equivalent to
  800. putting '.module micromips' at the start of the assembly file.
  801. '-mno-micromips' turns off this option. This is equivalent to
  802. putting '.module nomicromips' at the start of the assembly file.
  803. '-msmartmips'
  804. '-mno-smartmips'
  805. Enables the SmartMIPS extension to the MIPS32 instruction set.
  806. This is equivalent to putting '.module smartmips' at the start of
  807. the assembly file. '-mno-smartmips' turns off this option.
  808. '-mips3d'
  809. '-no-mips3d'
  810. Generate code for the MIPS-3D Application Specific Extension. This
  811. tells the assembler to accept MIPS-3D instructions. '-no-mips3d'
  812. turns off this option.
  813. '-mdmx'
  814. '-no-mdmx'
  815. Generate code for the MDMX Application Specific Extension. This
  816. tells the assembler to accept MDMX instructions. '-no-mdmx' turns
  817. off this option.
  818. '-mdsp'
  819. '-mno-dsp'
  820. Generate code for the DSP Release 1 Application Specific Extension.
  821. This tells the assembler to accept DSP Release 1 instructions.
  822. '-mno-dsp' turns off this option.
  823. '-mdspr2'
  824. '-mno-dspr2'
  825. Generate code for the DSP Release 2 Application Specific Extension.
  826. This option implies '-mdsp'. This tells the assembler to accept
  827. DSP Release 2 instructions. '-mno-dspr2' turns off this option.
  828. '-mdspr3'
  829. '-mno-dspr3'
  830. Generate code for the DSP Release 3 Application Specific Extension.
  831. This option implies '-mdsp' and '-mdspr2'. This tells the
  832. assembler to accept DSP Release 3 instructions. '-mno-dspr3' turns
  833. off this option.
  834. '-mmsa'
  835. '-mno-msa'
  836. Generate code for the MIPS SIMD Architecture Extension. This tells
  837. the assembler to accept MSA instructions. '-mno-msa' turns off
  838. this option.
  839. '-mxpa'
  840. '-mno-xpa'
  841. Generate code for the MIPS eXtended Physical Address (XPA)
  842. Extension. This tells the assembler to accept XPA instructions.
  843. '-mno-xpa' turns off this option.
  844. '-mmt'
  845. '-mno-mt'
  846. Generate code for the MT Application Specific Extension. This
  847. tells the assembler to accept MT instructions. '-mno-mt' turns off
  848. this option.
  849. '-mmcu'
  850. '-mno-mcu'
  851. Generate code for the MCU Application Specific Extension. This
  852. tells the assembler to accept MCU instructions. '-mno-mcu' turns
  853. off this option.
  854. '-mcrc'
  855. '-mno-crc'
  856. Generate code for the MIPS cyclic redundancy check (CRC)
  857. Application Specific Extension. This tells the assembler to accept
  858. CRC instructions. '-mno-crc' turns off this option.
  859. '-mginv'
  860. '-mno-ginv'
  861. Generate code for the Global INValidate (GINV) Application Specific
  862. Extension. This tells the assembler to accept GINV instructions.
  863. '-mno-ginv' turns off this option.
  864. '-mloongson-mmi'
  865. '-mno-loongson-mmi'
  866. Generate code for the Loongson MultiMedia extensions Instructions
  867. (MMI) Application Specific Extension. This tells the assembler to
  868. accept MMI instructions. '-mno-loongson-mmi' turns off this
  869. option.
  870. '-mloongson-cam'
  871. '-mno-loongson-cam'
  872. Generate code for the Loongson Content Address Memory (CAM)
  873. instructions. This tells the assembler to accept Loongson CAM
  874. instructions. '-mno-loongson-cam' turns off this option.
  875. '-mloongson-ext'
  876. '-mno-loongson-ext'
  877. Generate code for the Loongson EXTensions (EXT) instructions. This
  878. tells the assembler to accept Loongson EXT instructions.
  879. '-mno-loongson-ext' turns off this option.
  880. '-mloongson-ext2'
  881. '-mno-loongson-ext2'
  882. Generate code for the Loongson EXTensions R2 (EXT2) instructions.
  883. This option implies '-mloongson-ext'. This tells the assembler to
  884. accept Loongson EXT2 instructions. '-mno-loongson-ext2' turns off
  885. this option.
  886. '-minsn32'
  887. '-mno-insn32'
  888. Only use 32-bit instruction encodings when generating code for the
  889. microMIPS processor. This option inhibits the use of any 16-bit
  890. instructions. This is equivalent to putting '.set insn32' at the
  891. start of the assembly file. '-mno-insn32' turns off this option.
  892. This is equivalent to putting '.set noinsn32' at the start of the
  893. assembly file. By default '-mno-insn32' is selected, allowing all
  894. instructions to be used.
  895. '--construct-floats'
  896. '--no-construct-floats'
  897. The '--no-construct-floats' option disables the construction of
  898. double width floating point constants by loading the two halves of
  899. the value into the two single width floating point registers that
  900. make up the double width register. By default '--construct-floats'
  901. is selected, allowing construction of these floating point
  902. constants.
  903. '--relax-branch'
  904. '--no-relax-branch'
  905. The '--relax-branch' option enables the relaxation of out-of-range
  906. branches. By default '--no-relax-branch' is selected, causing any
  907. out-of-range branches to produce an error.
  908. '-mignore-branch-isa'
  909. '-mno-ignore-branch-isa'
  910. Ignore branch checks for invalid transitions between ISA modes.
  911. The semantics of branches does not provide for an ISA mode switch,
  912. so in most cases the ISA mode a branch has been encoded for has to
  913. be the same as the ISA mode of the branch's target label.
  914. Therefore GAS has checks implemented that verify in branch assembly
  915. that the two ISA modes match. '-mignore-branch-isa' disables these
  916. checks. By default '-mno-ignore-branch-isa' is selected, causing
  917. any invalid branch requiring a transition between ISA modes to
  918. produce an error.
  919. '-mnan=ENCODING'
  920. Select between the IEEE 754-2008 ('-mnan=2008') or the legacy
  921. ('-mnan=legacy') NaN encoding format. The latter is the default.
  922. '--emulation=NAME'
  923. This option was formerly used to switch between ELF and ECOFF
  924. output on targets like IRIX 5 that supported both. MIPS ECOFF
  925. support was removed in GAS 2.24, so the option now serves little
  926. purpose. It is retained for backwards compatibility.
  927. The available configuration names are: 'mipself', 'mipslelf' and
  928. 'mipsbelf'. Choosing 'mipself' now has no effect, since the output
  929. is always ELF. 'mipslelf' and 'mipsbelf' select little- and
  930. big-endian output respectively, but '-EL' and '-EB' are now the
  931. preferred options instead.
  932. '-nocpp'
  933. 'as' ignores this option. It is accepted for compatibility with
  934. the native tools.
  935. '--trap'
  936. '--no-trap'
  937. '--break'
  938. '--no-break'
  939. Control how to deal with multiplication overflow and division by
  940. zero. '--trap' or '--no-break' (which are synonyms) take a trap
  941. exception (and only work for Instruction Set Architecture level 2
  942. and higher); '--break' or '--no-trap' (also synonyms, and the
  943. default) take a break exception.
  944. '-n'
  945. When this option is used, 'as' will issue a warning every time it
  946. generates a nop instruction from a macro.
  947. The following options are available when as is configured for an
  948. MCore processor.
  949. '-jsri2bsr'
  950. '-nojsri2bsr'
  951. Enable or disable the JSRI to BSR transformation. By default this
  952. is enabled. The command-line option '-nojsri2bsr' can be used to
  953. disable it.
  954. '-sifilter'
  955. '-nosifilter'
  956. Enable or disable the silicon filter behaviour. By default this is
  957. disabled. The default can be overridden by the '-sifilter'
  958. command-line option.
  959. '-relax'
  960. Alter jump instructions for long displacements.
  961. '-mcpu=[210|340]'
  962. Select the cpu type on the target hardware. This controls which
  963. instructions can be assembled.
  964. '-EB'
  965. Assemble for a big endian target.
  966. '-EL'
  967. Assemble for a little endian target.
  968. *Note Meta Options::, for the options available when as is configured
  969. for a Meta processor.
  970. See the info pages for documentation of the MMIX-specific options.
  971. *Note NDS32 Options::, for the options available when as is
  972. configured for a NDS32 processor.
  973. *Note PowerPC-Opts::, for the options available when as is configured
  974. for a PowerPC processor.
  975. *Note RISC-V-Options::, for the options available when as is
  976. configured for a RISC-V processor.
  977. See the info pages for documentation of the RX-specific options.
  978. The following options are available when as is configured for the
  979. s390 processor family.
  980. '-m31'
  981. '-m64'
  982. Select the word size, either 31/32 bits or 64 bits.
  983. '-mesa'
  984. '-mzarch'
  985. Select the architecture mode, either the Enterprise System
  986. Architecture (esa) or the z/Architecture mode (zarch).
  987. '-march=PROCESSOR'
  988. Specify which s390 processor variant is the target, 'g5' (or
  989. 'arch3'), 'g6', 'z900' (or 'arch5'), 'z990' (or 'arch6'), 'z9-109',
  990. 'z9-ec' (or 'arch7'), 'z10' (or 'arch8'), 'z196' (or 'arch9'),
  991. 'zEC12' (or 'arch10'), 'z13' (or 'arch11'), or 'z14' (or 'arch12').
  992. '-mregnames'
  993. '-mno-regnames'
  994. Allow or disallow symbolic names for registers.
  995. '-mwarn-areg-zero'
  996. Warn whenever the operand for a base or index register has been
  997. specified but evaluates to zero.
  998. *Note TIC6X Options::, for the options available when as is
  999. configured for a TMS320C6000 processor.
  1000. *Note TILE-Gx Options::, for the options available when as is
  1001. configured for a TILE-Gx processor.
  1002. *Note Visium Options::, for the options available when as is
  1003. configured for a Visium processor.
  1004. *Note Xtensa Options::, for the options available when as is
  1005. configured for an Xtensa processor.
  1006. The following options are available when as is configured for a Z80
  1007. family processor.
  1008. '-z80'
  1009. Assemble for Z80 processor.
  1010. '-r800'
  1011. Assemble for R800 processor.
  1012. '-ignore-undocumented-instructions'
  1013. '-Wnud'
  1014. Assemble undocumented Z80 instructions that also work on R800
  1015. without warning.
  1016. '-ignore-unportable-instructions'
  1017. '-Wnup'
  1018. Assemble all undocumented Z80 instructions without warning.
  1019. '-warn-undocumented-instructions'
  1020. '-Wud'
  1021. Issue a warning for undocumented Z80 instructions that also work on
  1022. R800.
  1023. '-warn-unportable-instructions'
  1024. '-Wup'
  1025. Issue a warning for undocumented Z80 instructions that do not work
  1026. on R800.
  1027. '-forbid-undocumented-instructions'
  1028. '-Fud'
  1029. Treat all undocumented instructions as errors.
  1030. '-forbid-unportable-instructions'
  1031. '-Fup'
  1032. Treat undocumented Z80 instructions that do not work on R800 as
  1033. errors.
  1034. * Menu:
  1035. * Manual:: Structure of this Manual
  1036. * GNU Assembler:: The GNU Assembler
  1037. * Object Formats:: Object File Formats
  1038. * Command Line:: Command Line
  1039. * Input Files:: Input Files
  1040. * Object:: Output (Object) File
  1041. * Errors:: Error and Warning Messages
  1042. 
  1043. File: as.info, Node: Manual, Next: GNU Assembler, Up: Overview
  1044. 1.1 Structure of this Manual
  1045. ============================
  1046. This manual is intended to describe what you need to know to use GNU
  1047. 'as'. We cover the syntax expected in source files, including notation
  1048. for symbols, constants, and expressions; the directives that 'as'
  1049. understands; and of course how to invoke 'as'.
  1050. This manual also describes some of the machine-dependent features of
  1051. various flavors of the assembler.
  1052. On the other hand, this manual is _not_ intended as an introduction
  1053. to programming in assembly language--let alone programming in general!
  1054. In a similar vein, we make no attempt to introduce the machine
  1055. architecture; we do _not_ describe the instruction set, standard
  1056. mnemonics, registers or addressing modes that are standard to a
  1057. particular architecture. You may want to consult the manufacturer's
  1058. machine architecture manual for this information.
  1059. 
  1060. File: as.info, Node: GNU Assembler, Next: Object Formats, Prev: Manual, Up: Overview
  1061. 1.2 The GNU Assembler
  1062. =====================
  1063. GNU 'as' is really a family of assemblers. If you use (or have used)
  1064. the GNU assembler on one architecture, you should find a fairly similar
  1065. environment when you use it on another architecture. Each version has
  1066. much in common with the others, including object file formats, most
  1067. assembler directives (often called "pseudo-ops") and assembler syntax.
  1068. 'as' is primarily intended to assemble the output of the GNU C
  1069. compiler 'gcc' for use by the linker 'ld'. Nevertheless, we've tried to
  1070. make 'as' assemble correctly everything that other assemblers for the
  1071. same machine would assemble. Any exceptions are documented explicitly
  1072. (*note Machine Dependencies::). This doesn't mean 'as' always uses the
  1073. same syntax as another assembler for the same architecture; for example,
  1074. we know of several incompatible versions of 680x0 assembly language
  1075. syntax.
  1076. Unlike older assemblers, 'as' is designed to assemble a source
  1077. program in one pass of the source file. This has a subtle impact on the
  1078. '.org' directive (*note '.org': Org.).
  1079. 
  1080. File: as.info, Node: Object Formats, Next: Command Line, Prev: GNU Assembler, Up: Overview
  1081. 1.3 Object File Formats
  1082. =======================
  1083. The GNU assembler can be configured to produce several alternative
  1084. object file formats. For the most part, this does not affect how you
  1085. write assembly language programs; but directives for debugging symbols
  1086. are typically different in different file formats. *Note Symbol
  1087. Attributes: Symbol Attributes.
  1088. 
  1089. File: as.info, Node: Command Line, Next: Input Files, Prev: Object Formats, Up: Overview
  1090. 1.4 Command Line
  1091. ================
  1092. After the program name 'as', the command line may contain options and
  1093. file names. Options may appear in any order, and may be before, after,
  1094. or between file names. The order of file names is significant.
  1095. '--' (two hyphens) by itself names the standard input file
  1096. explicitly, as one of the files for 'as' to assemble.
  1097. Except for '--' any command-line argument that begins with a hyphen
  1098. ('-') is an option. Each option changes the behavior of 'as'. No
  1099. option changes the way another option works. An option is a '-'
  1100. followed by one or more letters; the case of the letter is important.
  1101. All options are optional.
  1102. Some options expect exactly one file name to follow them. The file
  1103. name may either immediately follow the option's letter (compatible with
  1104. older assemblers) or it may be the next command argument (GNU standard).
  1105. These two command lines are equivalent:
  1106. as -o my-object-file.o mumble.s
  1107. as -omy-object-file.o mumble.s
  1108. 
  1109. File: as.info, Node: Input Files, Next: Object, Prev: Command Line, Up: Overview
  1110. 1.5 Input Files
  1111. ===============
  1112. We use the phrase "source program", abbreviated "source", to describe
  1113. the program input to one run of 'as'. The program may be in one or more
  1114. files; how the source is partitioned into files doesn't change the
  1115. meaning of the source.
  1116. The source program is a concatenation of the text in all the files,
  1117. in the order specified.
  1118. Each time you run 'as' it assembles exactly one source program. The
  1119. source program is made up of one or more files. (The standard input is
  1120. also a file.)
  1121. You give 'as' a command line that has zero or more input file names.
  1122. The input files are read (from left file name to right). A command-line
  1123. argument (in any position) that has no special meaning is taken to be an
  1124. input file name.
  1125. If you give 'as' no file names it attempts to read one input file
  1126. from the 'as' standard input, which is normally your terminal. You may
  1127. have to type <ctl-D> to tell 'as' there is no more program to assemble.
  1128. Use '--' if you need to explicitly name the standard input file in
  1129. your command line.
  1130. If the source is empty, 'as' produces a small, empty object file.
  1131. Filenames and Line-numbers
  1132. --------------------------
  1133. There are two ways of locating a line in the input file (or files) and
  1134. either may be used in reporting error messages. One way refers to a
  1135. line number in a physical file; the other refers to a line number in a
  1136. "logical" file. *Note Error and Warning Messages: Errors.
  1137. "Physical files" are those files named in the command line given to
  1138. 'as'.
  1139. "Logical files" are simply names declared explicitly by assembler
  1140. directives; they bear no relation to physical files. Logical file names
  1141. help error messages reflect the original source file, when 'as' source
  1142. is itself synthesized from other files. 'as' understands the '#'
  1143. directives emitted by the 'gcc' preprocessor. See also *note '.file':
  1144. File.
  1145. 
  1146. File: as.info, Node: Object, Next: Errors, Prev: Input Files, Up: Overview
  1147. 1.6 Output (Object) File
  1148. ========================
  1149. Every time you run 'as' it produces an output file, which is your
  1150. assembly language program translated into numbers. This file is the
  1151. object file. Its default name is 'a.out'. You can give it another name
  1152. by using the '-o' option. Conventionally, object file names end with
  1153. '.o'. The default name is used for historical reasons: older assemblers
  1154. were capable of assembling self-contained programs directly into a
  1155. runnable program. (For some formats, this isn't currently possible, but
  1156. it can be done for the 'a.out' format.)
  1157. The object file is meant for input to the linker 'ld'. It contains
  1158. assembled program code, information to help 'ld' integrate the assembled
  1159. program into a runnable file, and (optionally) symbolic information for
  1160. the debugger.
  1161. 
  1162. File: as.info, Node: Errors, Prev: Object, Up: Overview
  1163. 1.7 Error and Warning Messages
  1164. ==============================
  1165. 'as' may write warnings and error messages to the standard error file
  1166. (usually your terminal). This should not happen when a compiler runs
  1167. 'as' automatically. Warnings report an assumption made so that 'as'
  1168. could keep assembling a flawed program; errors report a grave problem
  1169. that stops the assembly.
  1170. Warning messages have the format
  1171. file_name:NNN:Warning Message Text
  1172. (where NNN is a line number). If both a logical file name (*note
  1173. '.file': File.) and a logical line number (*note '.line': Line.) have
  1174. been given then they will be used, otherwise the file name and line
  1175. number in the current assembler source file will be used. The message
  1176. text is intended to be self explanatory (in the grand Unix tradition).
  1177. Note the file name must be set via the logical version of the '.file'
  1178. directive, not the DWARF2 version of the '.file' directive. For
  1179. example:
  1180. .file 2 "bar.c"
  1181. error_assembler_source
  1182. .file "foo.c"
  1183. .line 30
  1184. error_c_source
  1185. produces this output:
  1186. Assembler messages:
  1187. asm.s:2: Error: no such instruction: `error_assembler_source'
  1188. foo.c:31: Error: no such instruction: `error_c_source'
  1189. Error messages have the format
  1190. file_name:NNN:FATAL:Error Message Text
  1191. The file name and line number are derived as for warning messages.
  1192. The actual message text may be rather less explanatory because many of
  1193. them aren't supposed to happen.
  1194. 
  1195. File: as.info, Node: Invoking, Next: Syntax, Prev: Overview, Up: Top
  1196. 2 Command-Line Options
  1197. **********************
  1198. This chapter describes command-line options available in _all_ versions
  1199. of the GNU assembler; see *note Machine Dependencies::, for options
  1200. specific to particular machine architectures.
  1201. If you are invoking 'as' via the GNU C compiler, you can use the
  1202. '-Wa' option to pass arguments through to the assembler. The assembler
  1203. arguments must be separated from each other (and the '-Wa') by commas.
  1204. For example:
  1205. gcc -c -g -O -Wa,-alh,-L file.c
  1206. This passes two options to the assembler: '-alh' (emit a listing to
  1207. standard output with high-level and assembly source) and '-L' (retain
  1208. local symbols in the symbol table).
  1209. Usually you do not need to use this '-Wa' mechanism, since many
  1210. compiler command-line options are automatically passed to the assembler
  1211. by the compiler. (You can call the GNU compiler driver with the '-v'
  1212. option to see precisely what options it passes to each compilation pass,
  1213. including the assembler.)
  1214. * Menu:
  1215. * a:: -a[cdghlns] enable listings
  1216. * alternate:: -alternate enable alternate macro syntax
  1217. * D:: -D for compatibility
  1218. * f:: -f to work faster
  1219. * I:: -I for .include search path
  1220. * K:: -K for difference tables
  1221. * L:: -L to retain local symbols
  1222. * listing:: -listing-XXX to configure listing output
  1223. * M:: -M or -mri to assemble in MRI compatibility mode
  1224. * MD:: -MD for dependency tracking
  1225. * no-pad-sections:: -no-pad-sections to stop section padding
  1226. * o:: -o to name the object file
  1227. * R:: -R to join data and text sections
  1228. * statistics:: -statistics to see statistics about assembly
  1229. * traditional-format:: -traditional-format for compatible output
  1230. * v:: -v to announce version
  1231. * W:: -W, -no-warn, -warn, -fatal-warnings to control warnings
  1232. * Z:: -Z to make object file even after errors
  1233. 
  1234. File: as.info, Node: a, Next: alternate, Up: Invoking
  1235. 2.1 Enable Listings: '-a[cdghlns]'
  1236. ==================================
  1237. These options enable listing output from the assembler. By itself, '-a'
  1238. requests high-level, assembly, and symbols listing. You can use other
  1239. letters to select specific options for the list: '-ah' requests a
  1240. high-level language listing, '-al' requests an output-program assembly
  1241. listing, and '-as' requests a symbol table listing. High-level listings
  1242. require that a compiler debugging option like '-g' be used, and that
  1243. assembly listings ('-al') be requested also.
  1244. Use the '-ag' option to print a first section with general assembly
  1245. information, like as version, switches passed, or time stamp.
  1246. Use the '-ac' option to omit false conditionals from a listing. Any
  1247. lines which are not assembled because of a false '.if' (or '.ifdef', or
  1248. any other conditional), or a true '.if' followed by an '.else', will be
  1249. omitted from the listing.
  1250. Use the '-ad' option to omit debugging directives from the listing.
  1251. Once you have specified one of these options, you can further control
  1252. listing output and its appearance using the directives '.list',
  1253. '.nolist', '.psize', '.eject', '.title', and '.sbttl'. The '-an' option
  1254. turns off all forms processing. If you do not request listing output
  1255. with one of the '-a' options, the listing-control directives have no
  1256. effect.
  1257. The letters after '-a' may be combined into one option, _e.g._,
  1258. '-aln'.
  1259. Note if the assembler source is coming from the standard input (e.g.,
  1260. because it is being created by 'gcc' and the '-pipe' command-line switch
  1261. is being used) then the listing will not contain any comments or
  1262. preprocessor directives. This is because the listing code buffers input
  1263. source lines from stdin only after they have been preprocessed by the
  1264. assembler. This reduces memory usage and makes the code more efficient.
  1265. 
  1266. File: as.info, Node: alternate, Next: D, Prev: a, Up: Invoking
  1267. 2.2 '--alternate'
  1268. =================
  1269. Begin in alternate macro mode, see *note '.altmacro': Altmacro.
  1270. 
  1271. File: as.info, Node: D, Next: f, Prev: alternate, Up: Invoking
  1272. 2.3 '-D'
  1273. ========
  1274. This option has no effect whatsoever, but it is accepted to make it more
  1275. likely that scripts written for other assemblers also work with 'as'.
  1276. 
  1277. File: as.info, Node: f, Next: I, Prev: D, Up: Invoking
  1278. 2.4 Work Faster: '-f'
  1279. =====================
  1280. '-f' should only be used when assembling programs written by a (trusted)
  1281. compiler. '-f' stops the assembler from doing whitespace and comment
  1282. preprocessing on the input file(s) before assembling them. *Note
  1283. Preprocessing: Preprocessing.
  1284. _Warning:_ if you use '-f' when the files actually need to be
  1285. preprocessed (if they contain comments, for example), 'as' does not
  1286. work correctly.
  1287. 
  1288. File: as.info, Node: I, Next: K, Prev: f, Up: Invoking
  1289. 2.5 '.include' Search Path: '-I' PATH
  1290. =====================================
  1291. Use this option to add a PATH to the list of directories 'as' searches
  1292. for files specified in '.include' directives (*note '.include':
  1293. Include.). You may use '-I' as many times as necessary to include a
  1294. variety of paths. The current working directory is always searched
  1295. first; after that, 'as' searches any '-I' directories in the same order
  1296. as they were specified (left to right) on the command line.
  1297. 
  1298. File: as.info, Node: K, Next: L, Prev: I, Up: Invoking
  1299. 2.6 Difference Tables: '-K'
  1300. ===========================
  1301. 'as' sometimes alters the code emitted for directives of the form '.word
  1302. SYM1-SYM2'. *Note '.word': Word. You can use the '-K' option if you
  1303. want a warning issued when this is done.
  1304. 
  1305. File: as.info, Node: L, Next: listing, Prev: K, Up: Invoking
  1306. 2.7 Include Local Symbols: '-L'
  1307. ===============================
  1308. Symbols beginning with system-specific local label prefixes, typically
  1309. '.L' for ELF systems or 'L' for traditional a.out systems, are called
  1310. "local symbols". *Note Symbol Names::. Normally you do not see such
  1311. symbols when debugging, because they are intended for the use of
  1312. programs (like compilers) that compose assembler programs, not for your
  1313. notice. Normally both 'as' and 'ld' discard such symbols, so you do not
  1314. normally debug with them.
  1315. This option tells 'as' to retain those local symbols in the object
  1316. file. Usually if you do this you also tell the linker 'ld' to preserve
  1317. those symbols.
  1318. 
  1319. File: as.info, Node: listing, Next: M, Prev: L, Up: Invoking
  1320. 2.8 Configuring listing output: '--listing'
  1321. ===========================================
  1322. The listing feature of the assembler can be enabled via the command-line
  1323. switch '-a' (*note a::). This feature combines the input source file(s)
  1324. with a hex dump of the corresponding locations in the output object
  1325. file, and displays them as a listing file. The format of this listing
  1326. can be controlled by directives inside the assembler source (i.e.,
  1327. '.list' (*note List::), '.title' (*note Title::), '.sbttl' (*note
  1328. Sbttl::), '.psize' (*note Psize::), and '.eject' (*note Eject::) and
  1329. also by the following switches:
  1330. '--listing-lhs-width='number''
  1331. Sets the maximum width, in words, of the first line of the hex byte
  1332. dump. This dump appears on the left hand side of the listing
  1333. output.
  1334. '--listing-lhs-width2='number''
  1335. Sets the maximum width, in words, of any further lines of the hex
  1336. byte dump for a given input source line. If this value is not
  1337. specified, it defaults to being the same as the value specified for
  1338. '--listing-lhs-width'. If neither switch is used the default is to
  1339. one.
  1340. '--listing-rhs-width='number''
  1341. Sets the maximum width, in characters, of the source line that is
  1342. displayed alongside the hex dump. The default value for this
  1343. parameter is 100. The source line is displayed on the right hand
  1344. side of the listing output.
  1345. '--listing-cont-lines='number''
  1346. Sets the maximum number of continuation lines of hex dump that will
  1347. be displayed for a given single line of source input. The default
  1348. value is 4.
  1349. 
  1350. File: as.info, Node: M, Next: MD, Prev: listing, Up: Invoking
  1351. 2.9 Assemble in MRI Compatibility Mode: '-M'
  1352. ============================================
  1353. The '-M' or '--mri' option selects MRI compatibility mode. This changes
  1354. the syntax and pseudo-op handling of 'as' to make it compatible with the
  1355. 'ASM68K' assembler from Microtec Research. The exact nature of the MRI
  1356. syntax will not be documented here; see the MRI manuals for more
  1357. information. Note in particular that the handling of macros and macro
  1358. arguments is somewhat different. The purpose of this option is to
  1359. permit assembling existing MRI assembler code using 'as'.
  1360. The MRI compatibility is not complete. Certain operations of the MRI
  1361. assembler depend upon its object file format, and can not be supported
  1362. using other object file formats. Supporting these would require
  1363. enhancing each object file format individually. These are:
  1364. * global symbols in common section
  1365. The m68k MRI assembler supports common sections which are merged by
  1366. the linker. Other object file formats do not support this. 'as'
  1367. handles common sections by treating them as a single common symbol.
  1368. It permits local symbols to be defined within a common section, but
  1369. it can not support global symbols, since it has no way to describe
  1370. them.
  1371. * complex relocations
  1372. The MRI assemblers support relocations against a negated section
  1373. address, and relocations which combine the start addresses of two
  1374. or more sections. These are not support by other object file
  1375. formats.
  1376. * 'END' pseudo-op specifying start address
  1377. The MRI 'END' pseudo-op permits the specification of a start
  1378. address. This is not supported by other object file formats. The
  1379. start address may instead be specified using the '-e' option to the
  1380. linker, or in a linker script.
  1381. * 'IDNT', '.ident' and 'NAME' pseudo-ops
  1382. The MRI 'IDNT', '.ident' and 'NAME' pseudo-ops assign a module name
  1383. to the output file. This is not supported by other object file
  1384. formats.
  1385. * 'ORG' pseudo-op
  1386. The m68k MRI 'ORG' pseudo-op begins an absolute section at a given
  1387. address. This differs from the usual 'as' '.org' pseudo-op, which
  1388. changes the location within the current section. Absolute sections
  1389. are not supported by other object file formats. The address of a
  1390. section may be assigned within a linker script.
  1391. There are some other features of the MRI assembler which are not
  1392. supported by 'as', typically either because they are difficult or
  1393. because they seem of little consequence. Some of these may be supported
  1394. in future releases.
  1395. * EBCDIC strings
  1396. EBCDIC strings are not supported.
  1397. * packed binary coded decimal
  1398. Packed binary coded decimal is not supported. This means that the
  1399. 'DC.P' and 'DCB.P' pseudo-ops are not supported.
  1400. * 'FEQU' pseudo-op
  1401. The m68k 'FEQU' pseudo-op is not supported.
  1402. * 'NOOBJ' pseudo-op
  1403. The m68k 'NOOBJ' pseudo-op is not supported.
  1404. * 'OPT' branch control options
  1405. The m68k 'OPT' branch control options--'B', 'BRS', 'BRB', 'BRL',
  1406. and 'BRW'--are ignored. 'as' automatically relaxes all branches,
  1407. whether forward or backward, to an appropriate size, so these
  1408. options serve no purpose.
  1409. * 'OPT' list control options
  1410. The following m68k 'OPT' list control options are ignored: 'C',
  1411. 'CEX', 'CL', 'CRE', 'E', 'G', 'I', 'M', 'MEX', 'MC', 'MD', 'X'.
  1412. * other 'OPT' options
  1413. The following m68k 'OPT' options are ignored: 'NEST', 'O', 'OLD',
  1414. 'OP', 'P', 'PCO', 'PCR', 'PCS', 'R'.
  1415. * 'OPT' 'D' option is default
  1416. The m68k 'OPT' 'D' option is the default, unlike the MRI assembler.
  1417. 'OPT NOD' may be used to turn it off.
  1418. * 'XREF' pseudo-op.
  1419. The m68k 'XREF' pseudo-op is ignored.
  1420. 
  1421. File: as.info, Node: MD, Next: no-pad-sections, Prev: M, Up: Invoking
  1422. 2.10 Dependency Tracking: '--MD'
  1423. ================================
  1424. 'as' can generate a dependency file for the file it creates. This file
  1425. consists of a single rule suitable for 'make' describing the
  1426. dependencies of the main source file.
  1427. The rule is written to the file named in its argument.
  1428. This feature is used in the automatic updating of makefiles.
  1429. 
  1430. File: as.info, Node: no-pad-sections, Next: o, Prev: MD, Up: Invoking
  1431. 2.11 Output Section Padding
  1432. ===========================
  1433. Normally the assembler will pad the end of each output section up to its
  1434. alignment boundary. But this can waste space, which can be significant
  1435. on memory constrained targets. So the '--no-pad-sections' option will
  1436. disable this behaviour.
  1437. 
  1438. File: as.info, Node: o, Next: R, Prev: no-pad-sections, Up: Invoking
  1439. 2.12 Name the Object File: '-o'
  1440. ===============================
  1441. There is always one object file output when you run 'as'. By default it
  1442. has the name 'a.out'. You use this option (which takes exactly one
  1443. filename) to give the object file a different name.
  1444. Whatever the object file is called, 'as' overwrites any existing file
  1445. of the same name.
  1446. 
  1447. File: as.info, Node: R, Next: statistics, Prev: o, Up: Invoking
  1448. 2.13 Join Data and Text Sections: '-R'
  1449. ======================================
  1450. '-R' tells 'as' to write the object file as if all data-section data
  1451. lives in the text section. This is only done at the very last moment:
  1452. your binary data are the same, but data section parts are relocated
  1453. differently. The data section part of your object file is zero bytes
  1454. long because all its bytes are appended to the text section. (*Note
  1455. Sections and Relocation: Sections.)
  1456. When you specify '-R' it would be possible to generate shorter
  1457. address displacements (because we do not have to cross between text and
  1458. data section). We refrain from doing this simply for compatibility with
  1459. older versions of 'as'. In future, '-R' may work this way.
  1460. When 'as' is configured for COFF or ELF output, this option is only
  1461. useful if you use sections named '.text' and '.data'.
  1462. '-R' is not supported for any of the HPPA targets. Using '-R'
  1463. generates a warning from 'as'.
  1464. 
  1465. File: as.info, Node: statistics, Next: traditional-format, Prev: R, Up: Invoking
  1466. 2.14 Display Assembly Statistics: '--statistics'
  1467. ================================================
  1468. Use '--statistics' to display two statistics about the resources used by
  1469. 'as': the maximum amount of space allocated during the assembly (in
  1470. bytes), and the total execution time taken for the assembly (in CPU
  1471. seconds).
  1472. 
  1473. File: as.info, Node: traditional-format, Next: v, Prev: statistics, Up: Invoking
  1474. 2.15 Compatible Output: '--traditional-format'
  1475. ==============================================
  1476. For some targets, the output of 'as' is different in some ways from the
  1477. output of some existing assembler. This switch requests 'as' to use the
  1478. traditional format instead.
  1479. For example, it disables the exception frame optimizations which 'as'
  1480. normally does by default on 'gcc' output.
  1481. 
  1482. File: as.info, Node: v, Next: W, Prev: traditional-format, Up: Invoking
  1483. 2.16 Announce Version: '-v'
  1484. ===========================
  1485. You can find out what version of as is running by including the option
  1486. '-v' (which you can also spell as '-version') on the command line.
  1487. 
  1488. File: as.info, Node: W, Next: Z, Prev: v, Up: Invoking
  1489. 2.17 Control Warnings: '-W', '--warn', '--no-warn', '--fatal-warnings'
  1490. ======================================================================
  1491. 'as' should never give a warning or error message when assembling
  1492. compiler output. But programs written by people often cause 'as' to
  1493. give a warning that a particular assumption was made. All such warnings
  1494. are directed to the standard error file.
  1495. If you use the '-W' and '--no-warn' options, no warnings are issued.
  1496. This only affects the warning messages: it does not change any
  1497. particular of how 'as' assembles your file. Errors, which stop the
  1498. assembly, are still reported.
  1499. If you use the '--fatal-warnings' option, 'as' considers files that
  1500. generate warnings to be in error.
  1501. You can switch these options off again by specifying '--warn', which
  1502. causes warnings to be output as usual.
  1503. 
  1504. File: as.info, Node: Z, Prev: W, Up: Invoking
  1505. 2.18 Generate Object File in Spite of Errors: '-Z'
  1506. ==================================================
  1507. After an error message, 'as' normally produces no output. If for some
  1508. reason you are interested in object file output even after 'as' gives an
  1509. error message on your program, use the '-Z' option. If there are any
  1510. errors, 'as' continues anyways, and writes an object file after a final
  1511. warning message of the form 'N errors, M warnings, generating bad object
  1512. file.'
  1513. 
  1514. File: as.info, Node: Syntax, Next: Sections, Prev: Invoking, Up: Top
  1515. 3 Syntax
  1516. ********
  1517. This chapter describes the machine-independent syntax allowed in a
  1518. source file. 'as' syntax is similar to what many other assemblers use;
  1519. it is inspired by the BSD 4.2 assembler, except that 'as' does not
  1520. assemble Vax bit-fields.
  1521. * Menu:
  1522. * Preprocessing:: Preprocessing
  1523. * Whitespace:: Whitespace
  1524. * Comments:: Comments
  1525. * Symbol Intro:: Symbols
  1526. * Statements:: Statements
  1527. * Constants:: Constants
  1528. 
  1529. File: as.info, Node: Preprocessing, Next: Whitespace, Up: Syntax
  1530. 3.1 Preprocessing
  1531. =================
  1532. The 'as' internal preprocessor:
  1533. * adjusts and removes extra whitespace. It leaves one space or tab
  1534. before the keywords on a line, and turns any other whitespace on
  1535. the line into a single space.
  1536. * removes all comments, replacing them with a single space, or an
  1537. appropriate number of newlines.
  1538. * converts character constants into the appropriate numeric values.
  1539. It does not do macro processing, include file handling, or anything
  1540. else you may get from your C compiler's preprocessor. You can do
  1541. include file processing with the '.include' directive (*note '.include':
  1542. Include.). You can use the GNU C compiler driver to get other "CPP"
  1543. style preprocessing by giving the input file a '.S' suffix. *Note
  1544. Options Controlling the Kind of Output: (gcc info)Overall Options.
  1545. Excess whitespace, comments, and character constants cannot be used
  1546. in the portions of the input text that are not preprocessed.
  1547. If the first line of an input file is '#NO_APP' or if you use the
  1548. '-f' option, whitespace and comments are not removed from the input
  1549. file. Within an input file, you can ask for whitespace and comment
  1550. removal in specific portions of the by putting a line that says '#APP'
  1551. before the text that may contain whitespace or comments, and putting a
  1552. line that says '#NO_APP' after this text. This feature is mainly intend
  1553. to support 'asm' statements in compilers whose output is otherwise free
  1554. of comments and whitespace.
  1555. 
  1556. File: as.info, Node: Whitespace, Next: Comments, Prev: Preprocessing, Up: Syntax
  1557. 3.2 Whitespace
  1558. ==============
  1559. "Whitespace" is one or more blanks or tabs, in any order. Whitespace is
  1560. used to separate symbols, and to make programs neater for people to
  1561. read. Unless within character constants (*note Character Constants:
  1562. Characters.), any whitespace means the same as exactly one space.
  1563. 
  1564. File: as.info, Node: Comments, Next: Symbol Intro, Prev: Whitespace, Up: Syntax
  1565. 3.3 Comments
  1566. ============
  1567. There are two ways of rendering comments to 'as'. In both cases the
  1568. comment is equivalent to one space.
  1569. Anything from '/*' through the next '*/' is a comment. This means
  1570. you may not nest these comments.
  1571. /*
  1572. The only way to include a newline ('\n') in a comment
  1573. is to use this sort of comment.
  1574. */
  1575. /* This sort of comment does not nest. */
  1576. Anything from a "line comment" character up to the next newline is
  1577. considered a comment and is ignored. The line comment character is
  1578. target specific, and some targets multiple comment characters. Some
  1579. targets also have line comment characters that only work if they are the
  1580. first character on a line. Some targets use a sequence of two
  1581. characters to introduce a line comment. Some targets can also change
  1582. their line comment characters depending upon command-line options that
  1583. have been used. For more details see the _Syntax_ section in the
  1584. documentation for individual targets.
  1585. If the line comment character is the hash sign ('#') then it still
  1586. has the special ability to enable and disable preprocessing (*note
  1587. Preprocessing::) and to specify logical line numbers:
  1588. To be compatible with past assemblers, lines that begin with '#' have
  1589. a special interpretation. Following the '#' should be an absolute
  1590. expression (*note Expressions::): the logical line number of the _next_
  1591. line. Then a string (*note Strings: Strings.) is allowed: if present it
  1592. is a new logical file name. The rest of the line, if any, should be
  1593. whitespace.
  1594. If the first non-whitespace characters on the line are not numeric,
  1595. the line is ignored. (Just like a comment.)
  1596. # This is an ordinary comment.
  1597. # 42-6 "new_file_name" # New logical file name
  1598. # This is logical line # 36.
  1599. This feature is deprecated, and may disappear from future versions of
  1600. 'as'.
  1601. 
  1602. File: as.info, Node: Symbol Intro, Next: Statements, Prev: Comments, Up: Syntax
  1603. 3.4 Symbols
  1604. ===========
  1605. A "symbol" is one or more characters chosen from the set of all letters
  1606. (both upper and lower case), digits and the three characters '_.$'. On
  1607. most machines, you can also use '$' in symbol names; exceptions are
  1608. noted in *note Machine Dependencies::. No symbol may begin with a
  1609. digit. Case is significant. There is no length limit; all characters
  1610. are significant. Multibyte characters are supported. Symbols are
  1611. delimited by characters not in that set, or by the beginning of a file
  1612. (since the source program must end with a newline, the end of a file is
  1613. not a possible symbol delimiter). *Note Symbols::.
  1614. Symbol names may also be enclosed in double quote '"' characters. In
  1615. such cases any characters are allowed, except for the NUL character. If
  1616. a double quote character is to be included in the symbol name it must be
  1617. preceeded by a backslash '\' character.
  1618. 
  1619. File: as.info, Node: Statements, Next: Constants, Prev: Symbol Intro, Up: Syntax
  1620. 3.5 Statements
  1621. ==============
  1622. A "statement" ends at a newline character ('\n') or a "line separator
  1623. character". The line separator character is target specific and
  1624. described in the _Syntax_ section of each target's documentation. Not
  1625. all targets support a line separator character. The newline or line
  1626. separator character is considered to be part of the preceding statement.
  1627. Newlines and separators within character constants are an exception:
  1628. they do not end statements.
  1629. It is an error to end any statement with end-of-file: the last
  1630. character of any input file should be a newline.
  1631. An empty statement is allowed, and may include whitespace. It is
  1632. ignored.
  1633. A statement begins with zero or more labels, optionally followed by a
  1634. key symbol which determines what kind of statement it is. The key
  1635. symbol determines the syntax of the rest of the statement. If the
  1636. symbol begins with a dot '.' then the statement is an assembler
  1637. directive: typically valid for any computer. If the symbol begins with
  1638. a letter the statement is an assembly language "instruction": it
  1639. assembles into a machine language instruction. Different versions of
  1640. 'as' for different computers recognize different instructions. In fact,
  1641. the same symbol may represent a different instruction in a different
  1642. computer's assembly language.
  1643. A label is a symbol immediately followed by a colon (':').
  1644. Whitespace before a label or after a colon is permitted, but you may not
  1645. have whitespace between a label's symbol and its colon. *Note Labels::.
  1646. For HPPA targets, labels need not be immediately followed by a colon,
  1647. but the definition of a label must begin in column zero. This also
  1648. implies that only one label may be defined on each line.
  1649. label: .directive followed by something
  1650. another_label: # This is an empty statement.
  1651. instruction operand_1, operand_2, ...
  1652. 
  1653. File: as.info, Node: Constants, Prev: Statements, Up: Syntax
  1654. 3.6 Constants
  1655. =============
  1656. A constant is a number, written so that its value is known by
  1657. inspection, without knowing any context. Like this:
  1658. .byte 74, 0112, 092, 0x4A, 0X4a, 'J, '\J # All the same value.
  1659. .ascii "Ring the bell\7" # A string constant.
  1660. .octa 0x123456789abcdef0123456789ABCDEF0 # A bignum.
  1661. .float 0f-314159265358979323846264338327\
  1662. 95028841971.693993751E-40 # - pi, a flonum.
  1663. * Menu:
  1664. * Characters:: Character Constants
  1665. * Numbers:: Number Constants
  1666. 
  1667. File: as.info, Node: Characters, Next: Numbers, Up: Constants
  1668. 3.6.1 Character Constants
  1669. -------------------------
  1670. There are two kinds of character constants. A "character" stands for
  1671. one character in one byte and its value may be used in numeric
  1672. expressions. String constants (properly called string _literals_) are
  1673. potentially many bytes and their values may not be used in arithmetic
  1674. expressions.
  1675. * Menu:
  1676. * Strings:: Strings
  1677. * Chars:: Characters
  1678. 
  1679. File: as.info, Node: Strings, Next: Chars, Up: Characters
  1680. 3.6.1.1 Strings
  1681. ...............
  1682. A "string" is written between double-quotes. It may contain
  1683. double-quotes or null characters. The way to get special characters
  1684. into a string is to "escape" these characters: precede them with a
  1685. backslash '\' character. For example '\\' represents one backslash: the
  1686. first '\' is an escape which tells 'as' to interpret the second
  1687. character literally as a backslash (which prevents 'as' from recognizing
  1688. the second '\' as an escape character). The complete list of escapes
  1689. follows.
  1690. '\b'
  1691. Mnemonic for backspace; for ASCII this is octal code 010.
  1692. 'backslash-f'
  1693. Mnemonic for FormFeed; for ASCII this is octal code 014.
  1694. '\n'
  1695. Mnemonic for newline; for ASCII this is octal code 012.
  1696. '\r'
  1697. Mnemonic for carriage-Return; for ASCII this is octal code 015.
  1698. '\t'
  1699. Mnemonic for horizontal Tab; for ASCII this is octal code 011.
  1700. '\ DIGIT DIGIT DIGIT'
  1701. An octal character code. The numeric code is 3 octal digits. For
  1702. compatibility with other Unix systems, 8 and 9 are accepted as
  1703. digits: for example, '\008' has the value 010, and '\009' the value
  1704. 011.
  1705. '\x HEX-DIGITS...'
  1706. A hex character code. All trailing hex digits are combined.
  1707. Either upper or lower case 'x' works.
  1708. '\\'
  1709. Represents one '\' character.
  1710. '\"'
  1711. Represents one '"' character. Needed in strings to represent this
  1712. character, because an unescaped '"' would end the string.
  1713. '\ ANYTHING-ELSE'
  1714. Any other character when escaped by '\' gives a warning, but
  1715. assembles as if the '\' was not present. The idea is that if you
  1716. used an escape sequence you clearly didn't want the literal
  1717. interpretation of the following character. However 'as' has no
  1718. other interpretation, so 'as' knows it is giving you the wrong code
  1719. and warns you of the fact.
  1720. Which characters are escapable, and what those escapes represent,
  1721. varies widely among assemblers. The current set is what we think the
  1722. BSD 4.2 assembler recognizes, and is a subset of what most C compilers
  1723. recognize. If you are in doubt, do not use an escape sequence.
  1724. 
  1725. File: as.info, Node: Chars, Prev: Strings, Up: Characters
  1726. 3.6.1.2 Characters
  1727. ..................
  1728. A single character may be written as a single quote immediately followed
  1729. by that character. Some backslash escapes apply to characters, '\b',
  1730. '\f', '\n', '\r', '\t', and '\"' with the same meaning as for strings,
  1731. plus '\'' for a single quote. So if you want to write the character
  1732. backslash, you must write ''\\' where the first '\' escapes the second
  1733. '\'. As you can see, the quote is an acute accent, not a grave accent.
  1734. A newline immediately following an acute accent is taken as a literal
  1735. character and does not count as the end of a statement. The value of a
  1736. character constant in a numeric expression is the machine's byte-wide
  1737. code for that character. 'as' assumes your character code is ASCII:
  1738. ''A' means 65, ''B' means 66, and so on.
  1739. 
  1740. File: as.info, Node: Numbers, Prev: Characters, Up: Constants
  1741. 3.6.2 Number Constants
  1742. ----------------------
  1743. 'as' distinguishes three kinds of numbers according to how they are
  1744. stored in the target machine. _Integers_ are numbers that would fit
  1745. into an 'int' in the C language. _Bignums_ are integers, but they are
  1746. stored in more than 32 bits. _Flonums_ are floating point numbers,
  1747. described below.
  1748. * Menu:
  1749. * Integers:: Integers
  1750. * Bignums:: Bignums
  1751. * Flonums:: Flonums
  1752. 
  1753. File: as.info, Node: Integers, Next: Bignums, Up: Numbers
  1754. 3.6.2.1 Integers
  1755. ................
  1756. A binary integer is '0b' or '0B' followed by zero or more of the binary
  1757. digits '01'.
  1758. An octal integer is '0' followed by zero or more of the octal digits
  1759. ('01234567').
  1760. A decimal integer starts with a non-zero digit followed by zero or
  1761. more digits ('0123456789').
  1762. A hexadecimal integer is '0x' or '0X' followed by one or more
  1763. hexadecimal digits chosen from '0123456789abcdefABCDEF'.
  1764. Integers have the usual values. To denote a negative integer, use
  1765. the prefix operator '-' discussed under expressions (*note Prefix
  1766. Operators: Prefix Ops.).
  1767. 
  1768. File: as.info, Node: Bignums, Next: Flonums, Prev: Integers, Up: Numbers
  1769. 3.6.2.2 Bignums
  1770. ...............
  1771. A "bignum" has the same syntax and semantics as an integer except that
  1772. the number (or its negative) takes more than 32 bits to represent in
  1773. binary. The distinction is made because in some places integers are
  1774. permitted while bignums are not.
  1775. 
  1776. File: as.info, Node: Flonums, Prev: Bignums, Up: Numbers
  1777. 3.6.2.3 Flonums
  1778. ...............
  1779. A "flonum" represents a floating point number. The translation is
  1780. indirect: a decimal floating point number from the text is converted by
  1781. 'as' to a generic binary floating point number of more than sufficient
  1782. precision. This generic floating point number is converted to a
  1783. particular computer's floating point format (or formats) by a portion of
  1784. 'as' specialized to that computer.
  1785. A flonum is written by writing (in order)
  1786. * The digit '0'. ('0' is optional on the HPPA.)
  1787. * A letter, to tell 'as' the rest of the number is a flonum. 'e' is
  1788. recommended. Case is not important.
  1789. On the H8/300 and Renesas / SuperH SH architectures, the letter
  1790. must be one of the letters 'DFPRSX' (in upper or lower case).
  1791. On the ARC, the letter must be one of the letters 'DFRS' (in upper
  1792. or lower case).
  1793. On the HPPA architecture, the letter must be 'E' (upper case only).
  1794. * An optional sign: either '+' or '-'.
  1795. * An optional "integer part": zero or more decimal digits.
  1796. * An optional "fractional part": '.' followed by zero or more decimal
  1797. digits.
  1798. * An optional exponent, consisting of:
  1799. * An 'E' or 'e'.
  1800. * Optional sign: either '+' or '-'.
  1801. * One or more decimal digits.
  1802. At least one of the integer part or the fractional part must be
  1803. present. The floating point number has the usual base-10 value.
  1804. 'as' does all processing using integers. Flonums are computed
  1805. independently of any floating point hardware in the computer running
  1806. 'as'.
  1807. 
  1808. File: as.info, Node: Sections, Next: Symbols, Prev: Syntax, Up: Top
  1809. 4 Sections and Relocation
  1810. *************************
  1811. * Menu:
  1812. * Secs Background:: Background
  1813. * Ld Sections:: Linker Sections
  1814. * As Sections:: Assembler Internal Sections
  1815. * Sub-Sections:: Sub-Sections
  1816. * bss:: bss Section
  1817. 
  1818. File: as.info, Node: Secs Background, Next: Ld Sections, Up: Sections
  1819. 4.1 Background
  1820. ==============
  1821. Roughly, a section is a range of addresses, with no gaps; all data "in"
  1822. those addresses is treated the same for some particular purpose. For
  1823. example there may be a "read only" section.
  1824. The linker 'ld' reads many object files (partial programs) and
  1825. combines their contents to form a runnable program. When 'as' emits an
  1826. object file, the partial program is assumed to start at address 0. 'ld'
  1827. assigns the final addresses for the partial program, so that different
  1828. partial programs do not overlap. This is actually an
  1829. oversimplification, but it suffices to explain how 'as' uses sections.
  1830. 'ld' moves blocks of bytes of your program to their run-time
  1831. addresses. These blocks slide to their run-time addresses as rigid
  1832. units; their length does not change and neither does the order of bytes
  1833. within them. Such a rigid unit is called a _section_. Assigning
  1834. run-time addresses to sections is called "relocation". It includes the
  1835. task of adjusting mentions of object-file addresses so they refer to the
  1836. proper run-time addresses. For the H8/300, and for the Renesas / SuperH
  1837. SH, 'as' pads sections if needed to ensure they end on a word (sixteen
  1838. bit) boundary.
  1839. An object file written by 'as' has at least three sections, any of
  1840. which may be empty. These are named "text", "data" and "bss" sections.
  1841. When it generates COFF or ELF output, 'as' can also generate whatever
  1842. other named sections you specify using the '.section' directive (*note
  1843. '.section': Section.). If you do not use any directives that place
  1844. output in the '.text' or '.data' sections, these sections still exist,
  1845. but are empty.
  1846. When 'as' generates SOM or ELF output for the HPPA, 'as' can also
  1847. generate whatever other named sections you specify using the '.space'
  1848. and '.subspace' directives. See 'HP9000 Series 800 Assembly Language
  1849. Reference Manual' (HP 92432-90001) for details on the '.space' and
  1850. '.subspace' assembler directives.
  1851. Additionally, 'as' uses different names for the standard text, data,
  1852. and bss sections when generating SOM output. Program text is placed
  1853. into the '$CODE$' section, data into '$DATA$', and BSS into '$BSS$'.
  1854. Within the object file, the text section starts at address '0', the
  1855. data section follows, and the bss section follows the data section.
  1856. When generating either SOM or ELF output files on the HPPA, the text
  1857. section starts at address '0', the data section at address '0x4000000',
  1858. and the bss section follows the data section.
  1859. To let 'ld' know which data changes when the sections are relocated,
  1860. and how to change that data, 'as' also writes to the object file details
  1861. of the relocation needed. To perform relocation 'ld' must know, each
  1862. time an address in the object file is mentioned:
  1863. * Where in the object file is the beginning of this reference to an
  1864. address?
  1865. * How long (in bytes) is this reference?
  1866. * Which section does the address refer to? What is the numeric value
  1867. of
  1868. (ADDRESS) - (START-ADDRESS OF SECTION)?
  1869. * Is the reference to an address "Program-Counter relative"?
  1870. In fact, every address 'as' ever uses is expressed as
  1871. (SECTION) + (OFFSET INTO SECTION)
  1872. Further, most expressions 'as' computes have this section-relative
  1873. nature. (For some object formats, such as SOM for the HPPA, some
  1874. expressions are symbol-relative instead.)
  1875. In this manual we use the notation {SECNAME N} to mean "offset N into
  1876. section SECNAME."
  1877. Apart from text, data and bss sections you need to know about the
  1878. "absolute" section. When 'ld' mixes partial programs, addresses in the
  1879. absolute section remain unchanged. For example, address '{absolute 0}'
  1880. is "relocated" to run-time address 0 by 'ld'. Although the linker never
  1881. arranges two partial programs' data sections with overlapping addresses
  1882. after linking, _by definition_ their absolute sections must overlap.
  1883. Address '{absolute 239}' in one part of a program is always the same
  1884. address when the program is running as address '{absolute 239}' in any
  1885. other part of the program.
  1886. The idea of sections is extended to the "undefined" section. Any
  1887. address whose section is unknown at assembly time is by definition
  1888. rendered {undefined U}--where U is filled in later. Since numbers are
  1889. always defined, the only way to generate an undefined address is to
  1890. mention an undefined symbol. A reference to a named common block would
  1891. be such a symbol: its value is unknown at assembly time so it has
  1892. section _undefined_.
  1893. By analogy the word _section_ is used to describe groups of sections
  1894. in the linked program. 'ld' puts all partial programs' text sections in
  1895. contiguous addresses in the linked program. It is customary to refer to
  1896. the _text section_ of a program, meaning all the addresses of all
  1897. partial programs' text sections. Likewise for data and bss sections.
  1898. Some sections are manipulated by 'ld'; others are invented for use of
  1899. 'as' and have no meaning except during assembly.
  1900. 
  1901. File: as.info, Node: Ld Sections, Next: As Sections, Prev: Secs Background, Up: Sections
  1902. 4.2 Linker Sections
  1903. ===================
  1904. 'ld' deals with just four kinds of sections, summarized below.
  1905. *named sections*
  1906. *text section*
  1907. *data section*
  1908. These sections hold your program. 'as' and 'ld' treat them as
  1909. separate but equal sections. Anything you can say of one section
  1910. is true of another. When the program is running, however, it is
  1911. customary for the text section to be unalterable. The text section
  1912. is often shared among processes: it contains instructions,
  1913. constants and the like. The data section of a running program is
  1914. usually alterable: for example, C variables would be stored in the
  1915. data section.
  1916. *bss section*
  1917. This section contains zeroed bytes when your program begins
  1918. running. It is used to hold uninitialized variables or common
  1919. storage. The length of each partial program's bss section is
  1920. important, but because it starts out containing zeroed bytes there
  1921. is no need to store explicit zero bytes in the object file. The
  1922. bss section was invented to eliminate those explicit zeros from
  1923. object files.
  1924. *absolute section*
  1925. Address 0 of this section is always "relocated" to runtime address
  1926. 0. This is useful if you want to refer to an address that 'ld'
  1927. must not change when relocating. In this sense we speak of
  1928. absolute addresses being "unrelocatable": they do not change during
  1929. relocation.
  1930. *undefined section*
  1931. This "section" is a catch-all for address references to objects not
  1932. in the preceding sections.
  1933. An idealized example of three relocatable sections follows. The
  1934. example uses the traditional section names '.text' and '.data'. Memory
  1935. addresses are on the horizontal axis.
  1936. +-----+----+--+
  1937. partial program # 1: |ttttt|dddd|00|
  1938. +-----+----+--+
  1939. text data bss
  1940. seg. seg. seg.
  1941. +---+---+---+
  1942. partial program # 2: |TTT|DDD|000|
  1943. +---+---+---+
  1944. +--+---+-----+--+----+---+-----+~~
  1945. linked program: | |TTT|ttttt| |dddd|DDD|00000|
  1946. +--+---+-----+--+----+---+-----+~~
  1947. addresses: 0 ...
  1948. 
  1949. File: as.info, Node: As Sections, Next: Sub-Sections, Prev: Ld Sections, Up: Sections
  1950. 4.3 Assembler Internal Sections
  1951. ===============================
  1952. These sections are meant only for the internal use of 'as'. They have
  1953. no meaning at run-time. You do not really need to know about these
  1954. sections for most purposes; but they can be mentioned in 'as' warning
  1955. messages, so it might be helpful to have an idea of their meanings to
  1956. 'as'. These sections are used to permit the value of every expression
  1957. in your assembly language program to be a section-relative address.
  1958. ASSEMBLER-INTERNAL-LOGIC-ERROR!
  1959. An internal assembler logic error has been found. This means there
  1960. is a bug in the assembler.
  1961. expr section
  1962. The assembler stores complex expression internally as combinations
  1963. of symbols. When it needs to represent an expression as a symbol,
  1964. it puts it in the expr section.
  1965. 
  1966. File: as.info, Node: Sub-Sections, Next: bss, Prev: As Sections, Up: Sections
  1967. 4.4 Sub-Sections
  1968. ================
  1969. Assembled bytes conventionally fall into two sections: text and data.
  1970. You may have separate groups of data in named sections that you want to
  1971. end up near to each other in the object file, even though they are not
  1972. contiguous in the assembler source. 'as' allows you to use
  1973. "subsections" for this purpose. Within each section, there can be
  1974. numbered subsections with values from 0 to 8192. Objects assembled into
  1975. the same subsection go into the object file together with other objects
  1976. in the same subsection. For example, a compiler might want to store
  1977. constants in the text section, but might not want to have them
  1978. interspersed with the program being assembled. In this case, the
  1979. compiler could issue a '.text 0' before each section of code being
  1980. output, and a '.text 1' before each group of constants being output.
  1981. Subsections are optional. If you do not use subsections, everything
  1982. goes in subsection number zero.
  1983. Each subsection is zero-padded up to a multiple of four bytes.
  1984. (Subsections may be padded a different amount on different flavors of
  1985. 'as'.)
  1986. Subsections appear in your object file in numeric order, lowest
  1987. numbered to highest. (All this to be compatible with other people's
  1988. assemblers.) The object file contains no representation of subsections;
  1989. 'ld' and other programs that manipulate object files see no trace of
  1990. them. They just see all your text subsections as a text section, and
  1991. all your data subsections as a data section.
  1992. To specify which subsection you want subsequent statements assembled
  1993. into, use a numeric argument to specify it, in a '.text EXPRESSION' or a
  1994. '.data EXPRESSION' statement. When generating COFF output, you can also
  1995. use an extra subsection argument with arbitrary named sections:
  1996. '.section NAME, EXPRESSION'. When generating ELF output, you can also
  1997. use the '.subsection' directive (*note SubSection::) to specify a
  1998. subsection: '.subsection EXPRESSION'. EXPRESSION should be an absolute
  1999. expression (*note Expressions::). If you just say '.text' then '.text
  2000. 0' is assumed. Likewise '.data' means '.data 0'. Assembly begins in
  2001. 'text 0'. For instance:
  2002. .text 0 # The default subsection is text 0 anyway.
  2003. .ascii "This lives in the first text subsection. *"
  2004. .text 1
  2005. .ascii "But this lives in the second text subsection."
  2006. .data 0
  2007. .ascii "This lives in the data section,"
  2008. .ascii "in the first data subsection."
  2009. .text 0
  2010. .ascii "This lives in the first text section,"
  2011. .ascii "immediately following the asterisk (*)."
  2012. Each section has a "location counter" incremented by one for every
  2013. byte assembled into that section. Because subsections are merely a
  2014. convenience restricted to 'as' there is no concept of a subsection
  2015. location counter. There is no way to directly manipulate a location
  2016. counter--but the '.align' directive changes it, and any label definition
  2017. captures its current value. The location counter of the section where
  2018. statements are being assembled is said to be the "active" location
  2019. counter.
  2020. 
  2021. File: as.info, Node: bss, Prev: Sub-Sections, Up: Sections
  2022. 4.5 bss Section
  2023. ===============
  2024. The bss section is used for local common variable storage. You may
  2025. allocate address space in the bss section, but you may not dictate data
  2026. to load into it before your program executes. When your program starts
  2027. running, all the contents of the bss section are zeroed bytes.
  2028. The '.lcomm' pseudo-op defines a symbol in the bss section; see *note
  2029. '.lcomm': Lcomm.
  2030. The '.comm' pseudo-op may be used to declare a common symbol, which
  2031. is another form of uninitialized symbol; see *note '.comm': Comm.
  2032. When assembling for a target which supports multiple sections, such
  2033. as ELF or COFF, you may switch into the '.bss' section and define
  2034. symbols as usual; see *note '.section': Section. You may only assemble
  2035. zero values into the section. Typically the section will only contain
  2036. symbol definitions and '.skip' directives (*note '.skip': Skip.).
  2037. 
  2038. File: as.info, Node: Symbols, Next: Expressions, Prev: Sections, Up: Top
  2039. 5 Symbols
  2040. *********
  2041. Symbols are a central concept: the programmer uses symbols to name
  2042. things, the linker uses symbols to link, and the debugger uses symbols
  2043. to debug.
  2044. _Warning:_ 'as' does not place symbols in the object file in the
  2045. same order they were declared. This may break some debuggers.
  2046. * Menu:
  2047. * Labels:: Labels
  2048. * Setting Symbols:: Giving Symbols Other Values
  2049. * Symbol Names:: Symbol Names
  2050. * Dot:: The Special Dot Symbol
  2051. * Symbol Attributes:: Symbol Attributes
  2052. 
  2053. File: as.info, Node: Labels, Next: Setting Symbols, Up: Symbols
  2054. 5.1 Labels
  2055. ==========
  2056. A "label" is written as a symbol immediately followed by a colon ':'.
  2057. The symbol then represents the current value of the active location
  2058. counter, and is, for example, a suitable instruction operand. You are
  2059. warned if you use the same symbol to represent two different locations:
  2060. the first definition overrides any other definitions.
  2061. On the HPPA, the usual form for a label need not be immediately
  2062. followed by a colon, but instead must start in column zero. Only one
  2063. label may be defined on a single line. To work around this, the HPPA
  2064. version of 'as' also provides a special directive '.label' for defining
  2065. labels more flexibly.
  2066. 
  2067. File: as.info, Node: Setting Symbols, Next: Symbol Names, Prev: Labels, Up: Symbols
  2068. 5.2 Giving Symbols Other Values
  2069. ===============================
  2070. A symbol can be given an arbitrary value by writing a symbol, followed
  2071. by an equals sign '=', followed by an expression (*note Expressions::).
  2072. This is equivalent to using the '.set' directive. *Note '.set': Set.
  2073. In the same way, using a double equals sign '=''=' here represents an
  2074. equivalent of the '.eqv' directive. *Note '.eqv': Eqv.
  2075. Blackfin does not support symbol assignment with '='.
  2076. 
  2077. File: as.info, Node: Symbol Names, Next: Dot, Prev: Setting Symbols, Up: Symbols
  2078. 5.3 Symbol Names
  2079. ================
  2080. Symbol names begin with a letter or with one of '._'. On most machines,
  2081. you can also use '$' in symbol names; exceptions are noted in *note
  2082. Machine Dependencies::. That character may be followed by any string of
  2083. digits, letters, dollar signs (unless otherwise noted for a particular
  2084. target machine), and underscores.
  2085. Case of letters is significant: 'foo' is a different symbol name than
  2086. 'Foo'.
  2087. Symbol names do not start with a digit. An exception to this rule is
  2088. made for Local Labels. See below.
  2089. Multibyte characters are supported. To generate a symbol name
  2090. containing multibyte characters enclose it within double quotes and use
  2091. escape codes. cf *Note Strings::. Generating a multibyte symbol name
  2092. from a label is not currently supported.
  2093. Each symbol has exactly one name. Each name in an assembly language
  2094. program refers to exactly one symbol. You may use that symbol name any
  2095. number of times in a program.
  2096. Local Symbol Names
  2097. ------------------
  2098. A local symbol is any symbol beginning with certain local label
  2099. prefixes. By default, the local label prefix is '.L' for ELF systems or
  2100. 'L' for traditional a.out systems, but each target may have its own set
  2101. of local label prefixes. On the HPPA local symbols begin with 'L$'.
  2102. Local symbols are defined and used within the assembler, but they are
  2103. normally not saved in object files. Thus, they are not visible when
  2104. debugging. You may use the '-L' option (*note Include Local Symbols:
  2105. L.) to retain the local symbols in the object files.
  2106. Local Labels
  2107. ------------
  2108. Local labels are different from local symbols. Local labels help
  2109. compilers and programmers use names temporarily. They create symbols
  2110. which are guaranteed to be unique over the entire scope of the input
  2111. source code and which can be referred to by a simple notation. To
  2112. define a local label, write a label of the form 'N:' (where N represents
  2113. any non-negative integer). To refer to the most recent previous
  2114. definition of that label write 'Nb', using the same number as when you
  2115. defined the label. To refer to the next definition of a local label,
  2116. write 'Nf'. The 'b' stands for "backwards" and the 'f' stands for
  2117. "forwards".
  2118. There is no restriction on how you can use these labels, and you can
  2119. reuse them too. So that it is possible to repeatedly define the same
  2120. local label (using the same number 'N'), although you can only refer to
  2121. the most recently defined local label of that number (for a backwards
  2122. reference) or the next definition of a specific local label for a
  2123. forward reference. It is also worth noting that the first 10 local
  2124. labels ('0:'...'9:') are implemented in a slightly more efficient manner
  2125. than the others.
  2126. Here is an example:
  2127. 1: branch 1f
  2128. 2: branch 1b
  2129. 1: branch 2f
  2130. 2: branch 1b
  2131. Which is the equivalent of:
  2132. label_1: branch label_3
  2133. label_2: branch label_1
  2134. label_3: branch label_4
  2135. label_4: branch label_3
  2136. Local label names are only a notational device. They are immediately
  2137. transformed into more conventional symbol names before the assembler
  2138. uses them. The symbol names are stored in the symbol table, appear in
  2139. error messages, and are optionally emitted to the object file. The
  2140. names are constructed using these parts:
  2141. '_local label prefix_'
  2142. All local symbols begin with the system-specific local label
  2143. prefix. Normally both 'as' and 'ld' forget symbols that start with
  2144. the local label prefix. These labels are used for symbols you are
  2145. never intended to see. If you use the '-L' option then 'as'
  2146. retains these symbols in the object file. If you also instruct
  2147. 'ld' to retain these symbols, you may use them in debugging.
  2148. 'NUMBER'
  2149. This is the number that was used in the local label definition. So
  2150. if the label is written '55:' then the number is '55'.
  2151. 'C-B'
  2152. This unusual character is included so you do not accidentally
  2153. invent a symbol of the same name. The character has ASCII value of
  2154. '\002' (control-B).
  2155. '_ordinal number_'
  2156. This is a serial number to keep the labels distinct. The first
  2157. definition of '0:' gets the number '1'. The 15th definition of
  2158. '0:' gets the number '15', and so on. Likewise the first
  2159. definition of '1:' gets the number '1' and its 15th definition gets
  2160. '15' as well.
  2161. So for example, the first '1:' may be named '.L1C-B1', and the 44th
  2162. '3:' may be named '.L3C-B44'.
  2163. Dollar Local Labels
  2164. -------------------
  2165. On some targets 'as' also supports an even more local form of local
  2166. labels called dollar labels. These labels go out of scope (i.e., they
  2167. become undefined) as soon as a non-local label is defined. Thus they
  2168. remain valid for only a small region of the input source code. Normal
  2169. local labels, by contrast, remain in scope for the entire file, or until
  2170. they are redefined by another occurrence of the same local label.
  2171. Dollar labels are defined in exactly the same way as ordinary local
  2172. labels, except that they have a dollar sign suffix to their numeric
  2173. value, e.g., '55$:'.
  2174. They can also be distinguished from ordinary local labels by their
  2175. transformed names which use ASCII character '\001' (control-A) as the
  2176. magic character to distinguish them from ordinary labels. For example,
  2177. the fifth definition of '6$' may be named '.L6'C-A'5'.
  2178. 
  2179. File: as.info, Node: Dot, Next: Symbol Attributes, Prev: Symbol Names, Up: Symbols
  2180. 5.4 The Special Dot Symbol
  2181. ==========================
  2182. The special symbol '.' refers to the current address that 'as' is
  2183. assembling into. Thus, the expression 'melvin: .long .' defines
  2184. 'melvin' to contain its own address. Assigning a value to '.' is
  2185. treated the same as a '.org' directive. Thus, the expression '.=.+4' is
  2186. the same as saying '.space 4'.
  2187. 
  2188. File: as.info, Node: Symbol Attributes, Prev: Dot, Up: Symbols
  2189. 5.5 Symbol Attributes
  2190. =====================
  2191. Every symbol has, as well as its name, the attributes "Value" and
  2192. "Type". Depending on output format, symbols can also have auxiliary
  2193. attributes.
  2194. If you use a symbol without defining it, 'as' assumes zero for all
  2195. these attributes, and probably won't warn you. This makes the symbol an
  2196. externally defined symbol, which is generally what you would want.
  2197. * Menu:
  2198. * Symbol Value:: Value
  2199. * Symbol Type:: Type
  2200. * a.out Symbols:: Symbol Attributes: 'a.out'
  2201. * COFF Symbols:: Symbol Attributes for COFF
  2202. * SOM Symbols:: Symbol Attributes for SOM
  2203. 
  2204. File: as.info, Node: Symbol Value, Next: Symbol Type, Up: Symbol Attributes
  2205. 5.5.1 Value
  2206. -----------
  2207. The value of a symbol is (usually) 32 bits. For a symbol which labels a
  2208. location in the text, data, bss or absolute sections the value is the
  2209. number of addresses from the start of that section to the label.
  2210. Naturally for text, data and bss sections the value of a symbol changes
  2211. as 'ld' changes section base addresses during linking. Absolute
  2212. symbols' values do not change during linking: that is why they are
  2213. called absolute.
  2214. The value of an undefined symbol is treated in a special way. If it
  2215. is 0 then the symbol is not defined in this assembler source file, and
  2216. 'ld' tries to determine its value from other files linked into the same
  2217. program. You make this kind of symbol simply by mentioning a symbol
  2218. name without defining it. A non-zero value represents a '.comm' common
  2219. declaration. The value is how much common storage to reserve, in bytes
  2220. (addresses). The symbol refers to the first address of the allocated
  2221. storage.
  2222. 
  2223. File: as.info, Node: Symbol Type, Next: a.out Symbols, Prev: Symbol Value, Up: Symbol Attributes
  2224. 5.5.2 Type
  2225. ----------
  2226. The type attribute of a symbol contains relocation (section)
  2227. information, any flag settings indicating that a symbol is external, and
  2228. (optionally), other information for linkers and debuggers. The exact
  2229. format depends on the object-code output format in use.
  2230. 
  2231. File: as.info, Node: a.out Symbols, Next: COFF Symbols, Prev: Symbol Type, Up: Symbol Attributes
  2232. 5.5.3 Symbol Attributes: 'a.out'
  2233. --------------------------------
  2234. * Menu:
  2235. * Symbol Desc:: Descriptor
  2236. * Symbol Other:: Other
  2237. 
  2238. File: as.info, Node: Symbol Desc, Next: Symbol Other, Up: a.out Symbols
  2239. 5.5.3.1 Descriptor
  2240. ..................
  2241. This is an arbitrary 16-bit value. You may establish a symbol's
  2242. descriptor value by using a '.desc' statement (*note '.desc': Desc.). A
  2243. descriptor value means nothing to 'as'.
  2244. 
  2245. File: as.info, Node: Symbol Other, Prev: Symbol Desc, Up: a.out Symbols
  2246. 5.5.3.2 Other
  2247. .............
  2248. This is an arbitrary 8-bit value. It means nothing to 'as'.
  2249. 
  2250. File: as.info, Node: COFF Symbols, Next: SOM Symbols, Prev: a.out Symbols, Up: Symbol Attributes
  2251. 5.5.4 Symbol Attributes for COFF
  2252. --------------------------------
  2253. The COFF format supports a multitude of auxiliary symbol attributes;
  2254. like the primary symbol attributes, they are set between '.def' and
  2255. '.endef' directives.
  2256. 5.5.4.1 Primary Attributes
  2257. ..........................
  2258. The symbol name is set with '.def'; the value and type, respectively,
  2259. with '.val' and '.type'.
  2260. 5.5.4.2 Auxiliary Attributes
  2261. ............................
  2262. The 'as' directives '.dim', '.line', '.scl', '.size', '.tag', and
  2263. '.weak' can generate auxiliary symbol table information for COFF.
  2264. 
  2265. File: as.info, Node: SOM Symbols, Prev: COFF Symbols, Up: Symbol Attributes
  2266. 5.5.5 Symbol Attributes for SOM
  2267. -------------------------------
  2268. The SOM format for the HPPA supports a multitude of symbol attributes
  2269. set with the '.EXPORT' and '.IMPORT' directives.
  2270. The attributes are described in 'HP9000 Series 800 Assembly Language
  2271. Reference Manual' (HP 92432-90001) under the 'IMPORT' and 'EXPORT'
  2272. assembler directive documentation.
  2273. 
  2274. File: as.info, Node: Expressions, Next: Pseudo Ops, Prev: Symbols, Up: Top
  2275. 6 Expressions
  2276. *************
  2277. An "expression" specifies an address or numeric value. Whitespace may
  2278. precede and/or follow an expression.
  2279. The result of an expression must be an absolute number, or else an
  2280. offset into a particular section. If an expression is not absolute, and
  2281. there is not enough information when 'as' sees the expression to know
  2282. its section, a second pass over the source program might be necessary to
  2283. interpret the expression--but the second pass is currently not
  2284. implemented. 'as' aborts with an error message in this situation.
  2285. * Menu:
  2286. * Empty Exprs:: Empty Expressions
  2287. * Integer Exprs:: Integer Expressions
  2288. 
  2289. File: as.info, Node: Empty Exprs, Next: Integer Exprs, Up: Expressions
  2290. 6.1 Empty Expressions
  2291. =====================
  2292. An empty expression has no value: it is just whitespace or null.
  2293. Wherever an absolute expression is required, you may omit the
  2294. expression, and 'as' assumes a value of (absolute) 0. This is
  2295. compatible with other assemblers.
  2296. 
  2297. File: as.info, Node: Integer Exprs, Prev: Empty Exprs, Up: Expressions
  2298. 6.2 Integer Expressions
  2299. =======================
  2300. An "integer expression" is one or more _arguments_ delimited by
  2301. _operators_.
  2302. * Menu:
  2303. * Arguments:: Arguments
  2304. * Operators:: Operators
  2305. * Prefix Ops:: Prefix Operators
  2306. * Infix Ops:: Infix Operators
  2307. 
  2308. File: as.info, Node: Arguments, Next: Operators, Up: Integer Exprs
  2309. 6.2.1 Arguments
  2310. ---------------
  2311. "Arguments" are symbols, numbers or subexpressions. In other contexts
  2312. arguments are sometimes called "arithmetic operands". In this manual,
  2313. to avoid confusing them with the "instruction operands" of the machine
  2314. language, we use the term "argument" to refer to parts of expressions
  2315. only, reserving the word "operand" to refer only to machine instruction
  2316. operands.
  2317. Symbols are evaluated to yield {SECTION NNN} where SECTION is one of
  2318. text, data, bss, absolute, or undefined. NNN is a signed, 2's
  2319. complement 32 bit integer.
  2320. Numbers are usually integers.
  2321. A number can be a flonum or bignum. In this case, you are warned
  2322. that only the low order 32 bits are used, and 'as' pretends these 32
  2323. bits are an integer. You may write integer-manipulating instructions
  2324. that act on exotic constants, compatible with other assemblers.
  2325. Subexpressions are a left parenthesis '(' followed by an integer
  2326. expression, followed by a right parenthesis ')'; or a prefix operator
  2327. followed by an argument.
  2328. 
  2329. File: as.info, Node: Operators, Next: Prefix Ops, Prev: Arguments, Up: Integer Exprs
  2330. 6.2.2 Operators
  2331. ---------------
  2332. "Operators" are arithmetic functions, like '+' or '%'. Prefix operators
  2333. are followed by an argument. Infix operators appear between their
  2334. arguments. Operators may be preceded and/or followed by whitespace.
  2335. 
  2336. File: as.info, Node: Prefix Ops, Next: Infix Ops, Prev: Operators, Up: Integer Exprs
  2337. 6.2.3 Prefix Operator
  2338. ---------------------
  2339. 'as' has the following "prefix operators". They each take one argument,
  2340. which must be absolute.
  2341. '-'
  2342. "Negation". Two's complement negation.
  2343. '~'
  2344. "Complementation". Bitwise not.
  2345. 
  2346. File: as.info, Node: Infix Ops, Prev: Prefix Ops, Up: Integer Exprs
  2347. 6.2.4 Infix Operators
  2348. ---------------------
  2349. "Infix operators" take two arguments, one on either side. Operators
  2350. have precedence, but operations with equal precedence are performed left
  2351. to right. Apart from '+' or '-', both arguments must be absolute, and
  2352. the result is absolute.
  2353. 1. Highest Precedence
  2354. '*'
  2355. "Multiplication".
  2356. '/'
  2357. "Division". Truncation is the same as the C operator '/'
  2358. '%'
  2359. "Remainder".
  2360. '<<'
  2361. "Shift Left". Same as the C operator '<<'.
  2362. '>>'
  2363. "Shift Right". Same as the C operator '>>'.
  2364. 2. Intermediate precedence
  2365. '|'
  2366. "Bitwise Inclusive Or".
  2367. '&'
  2368. "Bitwise And".
  2369. '^'
  2370. "Bitwise Exclusive Or".
  2371. '!'
  2372. "Bitwise Or Not".
  2373. 3. Low Precedence
  2374. '+'
  2375. "Addition". If either argument is absolute, the result has
  2376. the section of the other argument. You may not add together
  2377. arguments from different sections.
  2378. '-'
  2379. "Subtraction". If the right argument is absolute, the result
  2380. has the section of the left argument. If both arguments are
  2381. in the same section, the result is absolute. You may not
  2382. subtract arguments from different sections.
  2383. '=='
  2384. "Is Equal To"
  2385. '<>'
  2386. '!='
  2387. "Is Not Equal To"
  2388. '<'
  2389. "Is Less Than"
  2390. '>'
  2391. "Is Greater Than"
  2392. '>='
  2393. "Is Greater Than Or Equal To"
  2394. '<='
  2395. "Is Less Than Or Equal To"
  2396. The comparison operators can be used as infix operators. A
  2397. true results has a value of -1 whereas a false result has a
  2398. value of 0. Note, these operators perform signed comparisons.
  2399. 4. Lowest Precedence
  2400. '&&'
  2401. "Logical And".
  2402. '||'
  2403. "Logical Or".
  2404. These two logical operations can be used to combine the
  2405. results of sub expressions. Note, unlike the comparison
  2406. operators a true result returns a value of 1 but a false
  2407. results does still return 0. Also note that the logical or
  2408. operator has a slightly lower precedence than logical and.
  2409. In short, it's only meaningful to add or subtract the _offsets_ in an
  2410. address; you can only have a defined section in one of the two
  2411. arguments.
  2412. 
  2413. File: as.info, Node: Pseudo Ops, Next: Object Attributes, Prev: Expressions, Up: Top
  2414. 7 Assembler Directives
  2415. **********************
  2416. All assembler directives have names that begin with a period ('.'). The
  2417. names are case insensitive for most targets, and usually written in
  2418. lower case.
  2419. This chapter discusses directives that are available regardless of
  2420. the target machine configuration for the GNU assembler. Some machine
  2421. configurations provide additional directives. *Note Machine
  2422. Dependencies::.
  2423. * Menu:
  2424. * Abort:: '.abort'
  2425. * ABORT (COFF):: '.ABORT'
  2426. * Align:: '.align ABS-EXPR , ABS-EXPR'
  2427. * Altmacro:: '.altmacro'
  2428. * Ascii:: '.ascii "STRING"'...
  2429. * Asciz:: '.asciz "STRING"'...
  2430. * Balign:: '.balign ABS-EXPR , ABS-EXPR'
  2431. * Bundle directives:: '.bundle_align_mode ABS-EXPR', etc
  2432. * Byte:: '.byte EXPRESSIONS'
  2433. * CFI directives:: '.cfi_startproc [simple]', '.cfi_endproc', etc.
  2434. * Comm:: '.comm SYMBOL , LENGTH '
  2435. * Data:: '.data SUBSECTION'
  2436. * Dc:: '.dc[SIZE] EXPRESSIONS'
  2437. * Dcb:: '.dcb[SIZE] NUMBER [,FILL]'
  2438. * Ds:: '.ds[SIZE] NUMBER [,FILL]'
  2439. * Def:: '.def NAME'
  2440. * Desc:: '.desc SYMBOL, ABS-EXPRESSION'
  2441. * Dim:: '.dim'
  2442. * Double:: '.double FLONUMS'
  2443. * Eject:: '.eject'
  2444. * Else:: '.else'
  2445. * Elseif:: '.elseif'
  2446. * End:: '.end'
  2447. * Endef:: '.endef'
  2448. * Endfunc:: '.endfunc'
  2449. * Endif:: '.endif'
  2450. * Equ:: '.equ SYMBOL, EXPRESSION'
  2451. * Equiv:: '.equiv SYMBOL, EXPRESSION'
  2452. * Eqv:: '.eqv SYMBOL, EXPRESSION'
  2453. * Err:: '.err'
  2454. * Error:: '.error STRING'
  2455. * Exitm:: '.exitm'
  2456. * Extern:: '.extern'
  2457. * Fail:: '.fail'
  2458. * File:: '.file'
  2459. * Fill:: '.fill REPEAT , SIZE , VALUE'
  2460. * Float:: '.float FLONUMS'
  2461. * Func:: '.func'
  2462. * Global:: '.global SYMBOL', '.globl SYMBOL'
  2463. * Gnu_attribute:: '.gnu_attribute TAG,VALUE'
  2464. * Hidden:: '.hidden NAMES'
  2465. * hword:: '.hword EXPRESSIONS'
  2466. * Ident:: '.ident'
  2467. * If:: '.if ABSOLUTE EXPRESSION'
  2468. * Incbin:: '.incbin "FILE"[,SKIP[,COUNT]]'
  2469. * Include:: '.include "FILE"'
  2470. * Int:: '.int EXPRESSIONS'
  2471. * Internal:: '.internal NAMES'
  2472. * Irp:: '.irp SYMBOL,VALUES'...
  2473. * Irpc:: '.irpc SYMBOL,VALUES'...
  2474. * Lcomm:: '.lcomm SYMBOL , LENGTH'
  2475. * Lflags:: '.lflags'
  2476. * Line:: '.line LINE-NUMBER'
  2477. * Linkonce:: '.linkonce [TYPE]'
  2478. * List:: '.list'
  2479. * Ln:: '.ln LINE-NUMBER'
  2480. * Loc:: '.loc FILENO LINENO'
  2481. * Loc_mark_labels:: '.loc_mark_labels ENABLE'
  2482. * Local:: '.local NAMES'
  2483. * Long:: '.long EXPRESSIONS'
  2484. * Macro:: '.macro NAME ARGS'...
  2485. * MRI:: '.mri VAL'
  2486. * Noaltmacro:: '.noaltmacro'
  2487. * Nolist:: '.nolist'
  2488. * Nops:: '.nops SIZE[, CONTROL]'
  2489. * Octa:: '.octa BIGNUMS'
  2490. * Offset:: '.offset LOC'
  2491. * Org:: '.org NEW-LC, FILL'
  2492. * P2align:: '.p2align ABS-EXPR, ABS-EXPR, ABS-EXPR'
  2493. * PopSection:: '.popsection'
  2494. * Previous:: '.previous'
  2495. * Print:: '.print STRING'
  2496. * Protected:: '.protected NAMES'
  2497. * Psize:: '.psize LINES, COLUMNS'
  2498. * Purgem:: '.purgem NAME'
  2499. * PushSection:: '.pushsection NAME'
  2500. * Quad:: '.quad BIGNUMS'
  2501. * Reloc:: '.reloc OFFSET, RELOC_NAME[, EXPRESSION]'
  2502. * Rept:: '.rept COUNT'
  2503. * Sbttl:: '.sbttl "SUBHEADING"'
  2504. * Scl:: '.scl CLASS'
  2505. * Section:: '.section NAME[, FLAGS]'
  2506. * Set:: '.set SYMBOL, EXPRESSION'
  2507. * Short:: '.short EXPRESSIONS'
  2508. * Single:: '.single FLONUMS'
  2509. * Size:: '.size [NAME , EXPRESSION]'
  2510. * Skip:: '.skip SIZE [,FILL]'
  2511. * Sleb128:: '.sleb128 EXPRESSIONS'
  2512. * Space:: '.space SIZE [,FILL]'
  2513. * Stab:: '.stabd, .stabn, .stabs'
  2514. * String:: '.string "STR"', '.string8 "STR"', '.string16 "STR"', '.string32 "STR"', '.string64 "STR"'
  2515. * Struct:: '.struct EXPRESSION'
  2516. * SubSection:: '.subsection'
  2517. * Symver:: '.symver NAME,NAME2@NODENAME'
  2518. * Tag:: '.tag STRUCTNAME'
  2519. * Text:: '.text SUBSECTION'
  2520. * Title:: '.title "HEADING"'
  2521. * Type:: '.type <INT | NAME , TYPE DESCRIPTION>'
  2522. * Uleb128:: '.uleb128 EXPRESSIONS'
  2523. * Val:: '.val ADDR'
  2524. * Version:: '.version "STRING"'
  2525. * VTableEntry:: '.vtable_entry TABLE, OFFSET'
  2526. * VTableInherit:: '.vtable_inherit CHILD, PARENT'
  2527. * Warning:: '.warning STRING'
  2528. * Weak:: '.weak NAMES'
  2529. * Weakref:: '.weakref ALIAS, SYMBOL'
  2530. * Word:: '.word EXPRESSIONS'
  2531. * Zero:: '.zero SIZE'
  2532. * 2byte:: '.2byte EXPRESSIONS'
  2533. * 4byte:: '.4byte EXPRESSIONS'
  2534. * 8byte:: '.8byte BIGNUMS'
  2535. * Deprecated:: Deprecated Directives
  2536. 
  2537. File: as.info, Node: Abort, Next: ABORT (COFF), Up: Pseudo Ops
  2538. 7.1 '.abort'
  2539. ============
  2540. This directive stops the assembly immediately. It is for compatibility
  2541. with other assemblers. The original idea was that the assembly language
  2542. source would be piped into the assembler. If the sender of the source
  2543. quit, it could use this directive tells 'as' to quit also. One day
  2544. '.abort' will not be supported.
  2545. 
  2546. File: as.info, Node: ABORT (COFF), Next: Align, Prev: Abort, Up: Pseudo Ops
  2547. 7.2 '.ABORT' (COFF)
  2548. ===================
  2549. When producing COFF output, 'as' accepts this directive as a synonym for
  2550. '.abort'.
  2551. 
  2552. File: as.info, Node: Align, Next: Altmacro, Prev: ABORT (COFF), Up: Pseudo Ops
  2553. 7.3 '.align ABS-EXPR, ABS-EXPR, ABS-EXPR'
  2554. =========================================
  2555. Pad the location counter (in the current subsection) to a particular
  2556. storage boundary. The first expression (which must be absolute) is the
  2557. alignment required, as described below.
  2558. The second expression (also absolute) gives the fill value to be
  2559. stored in the padding bytes. It (and the comma) may be omitted. If it
  2560. is omitted, the padding bytes are normally zero. However, on most
  2561. systems, if the section is marked as containing code and the fill value
  2562. is omitted, the space is filled with no-op instructions.
  2563. The third expression is also absolute, and is also optional. If it
  2564. is present, it is the maximum number of bytes that should be skipped by
  2565. this alignment directive. If doing the alignment would require skipping
  2566. more bytes than the specified maximum, then the alignment is not done at
  2567. all. You can omit the fill value (the second argument) entirely by
  2568. simply using two commas after the required alignment; this can be useful
  2569. if you want the alignment to be filled with no-op instructions when
  2570. appropriate.
  2571. The way the required alignment is specified varies from system to
  2572. system. For the arc, hppa, i386 using ELF, iq2000, m68k, or1k, s390,
  2573. sparc, tic4x, tic80 and xtensa, the first expression is the alignment
  2574. request in bytes. For example '.align 8' advances the location counter
  2575. until it is a multiple of 8. If the location counter is already a
  2576. multiple of 8, no change is needed. For the tic54x, the first
  2577. expression is the alignment request in words.
  2578. For other systems, including ppc, i386 using a.out format, arm and
  2579. strongarm, it is the number of low-order zero bits the location counter
  2580. must have after advancement. For example '.align 3' advances the
  2581. location counter until it is a multiple of 8. If the location counter
  2582. is already a multiple of 8, no change is needed.
  2583. This inconsistency is due to the different behaviors of the various
  2584. native assemblers for these systems which GAS must emulate. GAS also
  2585. provides '.balign' and '.p2align' directives, described later, which
  2586. have a consistent behavior across all architectures (but are specific to
  2587. GAS).
  2588. 
  2589. File: as.info, Node: Altmacro, Next: Ascii, Prev: Align, Up: Pseudo Ops
  2590. 7.4 '.altmacro'
  2591. ===============
  2592. Enable alternate macro mode, enabling:
  2593. 'LOCAL NAME [ , ... ]'
  2594. One additional directive, 'LOCAL', is available. It is used to
  2595. generate a string replacement for each of the NAME arguments, and
  2596. replace any instances of NAME in each macro expansion. The
  2597. replacement string is unique in the assembly, and different for
  2598. each separate macro expansion. 'LOCAL' allows you to write macros
  2599. that define symbols, without fear of conflict between separate
  2600. macro expansions.
  2601. 'String delimiters'
  2602. You can write strings delimited in these other ways besides
  2603. '"STRING"':
  2604. ''STRING''
  2605. You can delimit strings with single-quote characters.
  2606. '<STRING>'
  2607. You can delimit strings with matching angle brackets.
  2608. 'single-character string escape'
  2609. To include any single character literally in a string (even if the
  2610. character would otherwise have some special meaning), you can
  2611. prefix the character with '!' (an exclamation mark). For example,
  2612. you can write '<4.3 !> 5.4!!>' to get the literal text '4.3 >
  2613. 5.4!'.
  2614. 'Expression results as strings'
  2615. You can write '%EXPR' to evaluate the expression EXPR and use the
  2616. result as a string.
  2617. 
  2618. File: as.info, Node: Ascii, Next: Asciz, Prev: Altmacro, Up: Pseudo Ops
  2619. 7.5 '.ascii "STRING"'...
  2620. ========================
  2621. '.ascii' expects zero or more string literals (*note Strings::)
  2622. separated by commas. It assembles each string (with no automatic
  2623. trailing zero byte) into consecutive addresses.
  2624. 
  2625. File: as.info, Node: Asciz, Next: Balign, Prev: Ascii, Up: Pseudo Ops
  2626. 7.6 '.asciz "STRING"'...
  2627. ========================
  2628. '.asciz' is just like '.ascii', but each string is followed by a zero
  2629. byte. The "z" in '.asciz' stands for "zero".
  2630. 
  2631. File: as.info, Node: Balign, Next: Bundle directives, Prev: Asciz, Up: Pseudo Ops
  2632. 7.7 '.balign[wl] ABS-EXPR, ABS-EXPR, ABS-EXPR'
  2633. ==============================================
  2634. Pad the location counter (in the current subsection) to a particular
  2635. storage boundary. The first expression (which must be absolute) is the
  2636. alignment request in bytes. For example '.balign 8' advances the
  2637. location counter until it is a multiple of 8. If the location counter
  2638. is already a multiple of 8, no change is needed.
  2639. The second expression (also absolute) gives the fill value to be
  2640. stored in the padding bytes. It (and the comma) may be omitted. If it
  2641. is omitted, the padding bytes are normally zero. However, on most
  2642. systems, if the section is marked as containing code and the fill value
  2643. is omitted, the space is filled with no-op instructions.
  2644. The third expression is also absolute, and is also optional. If it
  2645. is present, it is the maximum number of bytes that should be skipped by
  2646. this alignment directive. If doing the alignment would require skipping
  2647. more bytes than the specified maximum, then the alignment is not done at
  2648. all. You can omit the fill value (the second argument) entirely by
  2649. simply using two commas after the required alignment; this can be useful
  2650. if you want the alignment to be filled with no-op instructions when
  2651. appropriate.
  2652. The '.balignw' and '.balignl' directives are variants of the
  2653. '.balign' directive. The '.balignw' directive treats the fill pattern
  2654. as a two byte word value. The '.balignl' directives treats the fill
  2655. pattern as a four byte longword value. For example, '.balignw 4,0x368d'
  2656. will align to a multiple of 4. If it skips two bytes, they will be
  2657. filled in with the value 0x368d (the exact placement of the bytes
  2658. depends upon the endianness of the processor). If it skips 1 or 3
  2659. bytes, the fill value is undefined.
  2660. 
  2661. File: as.info, Node: Bundle directives, Next: Byte, Prev: Balign, Up: Pseudo Ops
  2662. 7.8 Bundle directives
  2663. =====================
  2664. 7.8.1 '.bundle_align_mode ABS-EXPR'
  2665. -----------------------------------
  2666. '.bundle_align_mode' enables or disables "aligned instruction bundle"
  2667. mode. In this mode, sequences of adjacent instructions are grouped into
  2668. fixed-sized "bundles". If the argument is zero, this mode is disabled
  2669. (which is the default state). If the argument it not zero, it gives the
  2670. size of an instruction bundle as a power of two (as for the '.p2align'
  2671. directive, *note P2align::).
  2672. For some targets, it's an ABI requirement that no instruction may
  2673. span a certain aligned boundary. A "bundle" is simply a sequence of
  2674. instructions that starts on an aligned boundary. For example, if
  2675. ABS-EXPR is '5' then the bundle size is 32, so each aligned chunk of 32
  2676. bytes is a bundle. When aligned instruction bundle mode is in effect,
  2677. no single instruction may span a boundary between bundles. If an
  2678. instruction would start too close to the end of a bundle for the length
  2679. of that particular instruction to fit within the bundle, then the space
  2680. at the end of that bundle is filled with no-op instructions so the
  2681. instruction starts in the next bundle. As a corollary, it's an error if
  2682. any single instruction's encoding is longer than the bundle size.
  2683. 7.8.2 '.bundle_lock' and '.bundle_unlock'
  2684. -----------------------------------------
  2685. The '.bundle_lock' and directive '.bundle_unlock' directives allow
  2686. explicit control over instruction bundle padding. These directives are
  2687. only valid when '.bundle_align_mode' has been used to enable aligned
  2688. instruction bundle mode. It's an error if they appear when
  2689. '.bundle_align_mode' has not been used at all, or when the last
  2690. directive was '.bundle_align_mode 0'.
  2691. For some targets, it's an ABI requirement that certain instructions
  2692. may appear only as part of specified permissible sequences of multiple
  2693. instructions, all within the same bundle. A pair of '.bundle_lock' and
  2694. '.bundle_unlock' directives define a "bundle-locked" instruction
  2695. sequence. For purposes of aligned instruction bundle mode, a sequence
  2696. starting with '.bundle_lock' and ending with '.bundle_unlock' is treated
  2697. as a single instruction. That is, the entire sequence must fit into a
  2698. single bundle and may not span a bundle boundary. If necessary, no-op
  2699. instructions will be inserted before the first instruction of the
  2700. sequence so that the whole sequence starts on an aligned bundle
  2701. boundary. It's an error if the sequence is longer than the bundle size.
  2702. For convenience when using '.bundle_lock' and '.bundle_unlock' inside
  2703. assembler macros (*note Macro::), bundle-locked sequences may be nested.
  2704. That is, a second '.bundle_lock' directive before the next
  2705. '.bundle_unlock' directive has no effect except that it must be matched
  2706. by another closing '.bundle_unlock' so that there is the same number of
  2707. '.bundle_lock' and '.bundle_unlock' directives.
  2708. 
  2709. File: as.info, Node: Byte, Next: CFI directives, Prev: Bundle directives, Up: Pseudo Ops
  2710. 7.9 '.byte EXPRESSIONS'
  2711. =======================
  2712. '.byte' expects zero or more expressions, separated by commas. Each
  2713. expression is assembled into the next byte.
  2714. 
  2715. File: as.info, Node: CFI directives, Next: Comm, Prev: Byte, Up: Pseudo Ops
  2716. 7.10 CFI directives
  2717. ===================
  2718. 7.10.1 '.cfi_sections SECTION_LIST'
  2719. -----------------------------------
  2720. '.cfi_sections' may be used to specify whether CFI directives should
  2721. emit '.eh_frame' section and/or '.debug_frame' section. If SECTION_LIST
  2722. is '.eh_frame', '.eh_frame' is emitted, if SECTION_LIST is
  2723. '.debug_frame', '.debug_frame' is emitted. To emit both use '.eh_frame,
  2724. .debug_frame'. The default if this directive is not used is
  2725. '.cfi_sections .eh_frame'.
  2726. On targets that support compact unwinding tables these can be
  2727. generated by specifying '.eh_frame_entry' instead of '.eh_frame'.
  2728. Some targets may support an additional name, such as '.c6xabi.exidx'
  2729. which is used by the target.
  2730. The '.cfi_sections' directive can be repeated, with the same or
  2731. different arguments, provided that CFI generation has not yet started.
  2732. Once CFI generation has started however the section list is fixed and
  2733. any attempts to redefine it will result in an error.
  2734. 7.10.2 '.cfi_startproc [simple]'
  2735. --------------------------------
  2736. '.cfi_startproc' is used at the beginning of each function that should
  2737. have an entry in '.eh_frame'. It initializes some internal data
  2738. structures. Don't forget to close the function by '.cfi_endproc'.
  2739. Unless '.cfi_startproc' is used along with parameter 'simple' it also
  2740. emits some architecture dependent initial CFI instructions.
  2741. 7.10.3 '.cfi_endproc'
  2742. ---------------------
  2743. '.cfi_endproc' is used at the end of a function where it closes its
  2744. unwind entry previously opened by '.cfi_startproc', and emits it to
  2745. '.eh_frame'.
  2746. 7.10.4 '.cfi_personality ENCODING [, EXP]'
  2747. ------------------------------------------
  2748. '.cfi_personality' defines personality routine and its encoding.
  2749. ENCODING must be a constant determining how the personality should be
  2750. encoded. If it is 255 ('DW_EH_PE_omit'), second argument is not
  2751. present, otherwise second argument should be a constant or a symbol
  2752. name. When using indirect encodings, the symbol provided should be the
  2753. location where personality can be loaded from, not the personality
  2754. routine itself. The default after '.cfi_startproc' is '.cfi_personality
  2755. 0xff', no personality routine.
  2756. 7.10.5 '.cfi_personality_id ID'
  2757. -------------------------------
  2758. 'cfi_personality_id' defines a personality routine by its index as
  2759. defined in a compact unwinding format. Only valid when generating
  2760. compact EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2761. 7.10.6 '.cfi_fde_data [OPCODE1 [, ...]]'
  2762. ----------------------------------------
  2763. 'cfi_fde_data' is used to describe the compact unwind opcodes to be used
  2764. for the current function. These are emitted inline in the
  2765. '.eh_frame_entry' section if small enough and there is no LSDA, or in
  2766. the '.gnu.extab' section otherwise. Only valid when generating compact
  2767. EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2768. 7.10.7 '.cfi_lsda ENCODING [, EXP]'
  2769. -----------------------------------
  2770. '.cfi_lsda' defines LSDA and its encoding. ENCODING must be a constant
  2771. determining how the LSDA should be encoded. If it is 255
  2772. ('DW_EH_PE_omit'), the second argument is not present, otherwise the
  2773. second argument should be a constant or a symbol name. The default
  2774. after '.cfi_startproc' is '.cfi_lsda 0xff', meaning that no LSDA is
  2775. present.
  2776. 7.10.8 '.cfi_inline_lsda' [ALIGN]
  2777. ---------------------------------
  2778. '.cfi_inline_lsda' marks the start of a LSDA data section and switches
  2779. to the corresponding '.gnu.extab' section. Must be preceded by a CFI
  2780. block containing a '.cfi_lsda' directive. Only valid when generating
  2781. compact EH frames (i.e. with '.cfi_sections eh_frame_entry'.
  2782. The table header and unwinding opcodes will be generated at this
  2783. point, so that they are immediately followed by the LSDA data. The
  2784. symbol referenced by the '.cfi_lsda' directive should still be defined
  2785. in case a fallback FDE based encoding is used. The LSDA data is
  2786. terminated by a section directive.
  2787. The optional ALIGN argument specifies the alignment required. The
  2788. alignment is specified as a power of two, as with the '.p2align'
  2789. directive.
  2790. 7.10.9 '.cfi_def_cfa REGISTER, OFFSET'
  2791. --------------------------------------
  2792. '.cfi_def_cfa' defines a rule for computing CFA as: take address from
  2793. REGISTER and add OFFSET to it.
  2794. 7.10.10 '.cfi_def_cfa_register REGISTER'
  2795. ----------------------------------------
  2796. '.cfi_def_cfa_register' modifies a rule for computing CFA. From now on
  2797. REGISTER will be used instead of the old one. Offset remains the same.
  2798. 7.10.11 '.cfi_def_cfa_offset OFFSET'
  2799. ------------------------------------
  2800. '.cfi_def_cfa_offset' modifies a rule for computing CFA. Register
  2801. remains the same, but OFFSET is new. Note that it is the absolute
  2802. offset that will be added to a defined register to compute CFA address.
  2803. 7.10.12 '.cfi_adjust_cfa_offset OFFSET'
  2804. ---------------------------------------
  2805. Same as '.cfi_def_cfa_offset' but OFFSET is a relative value that is
  2806. added/subtracted from the previous offset.
  2807. 7.10.13 '.cfi_offset REGISTER, OFFSET'
  2808. --------------------------------------
  2809. Previous value of REGISTER is saved at offset OFFSET from CFA.
  2810. 7.10.14 '.cfi_val_offset REGISTER, OFFSET'
  2811. ------------------------------------------
  2812. Previous value of REGISTER is CFA + OFFSET.
  2813. 7.10.15 '.cfi_rel_offset REGISTER, OFFSET'
  2814. ------------------------------------------
  2815. Previous value of REGISTER is saved at offset OFFSET from the current
  2816. CFA register. This is transformed to '.cfi_offset' using the known
  2817. displacement of the CFA register from the CFA. This is often easier to
  2818. use, because the number will match the code it's annotating.
  2819. 7.10.16 '.cfi_register REGISTER1, REGISTER2'
  2820. --------------------------------------------
  2821. Previous value of REGISTER1 is saved in register REGISTER2.
  2822. 7.10.17 '.cfi_restore REGISTER'
  2823. -------------------------------
  2824. '.cfi_restore' says that the rule for REGISTER is now the same as it was
  2825. at the beginning of the function, after all initial instruction added by
  2826. '.cfi_startproc' were executed.
  2827. 7.10.18 '.cfi_undefined REGISTER'
  2828. ---------------------------------
  2829. From now on the previous value of REGISTER can't be restored anymore.
  2830. 7.10.19 '.cfi_same_value REGISTER'
  2831. ----------------------------------
  2832. Current value of REGISTER is the same like in the previous frame, i.e.
  2833. no restoration needed.
  2834. 7.10.20 '.cfi_remember_state' and '.cfi_restore_state'
  2835. ------------------------------------------------------
  2836. '.cfi_remember_state' pushes the set of rules for every register onto an
  2837. implicit stack, while '.cfi_restore_state' pops them off the stack and
  2838. places them in the current row. This is useful for situations where you
  2839. have multiple '.cfi_*' directives that need to be undone due to the
  2840. control flow of the program. For example, we could have something like
  2841. this (assuming the CFA is the value of 'rbp'):
  2842. je label
  2843. popq %rbx
  2844. .cfi_restore %rbx
  2845. popq %r12
  2846. .cfi_restore %r12
  2847. popq %rbp
  2848. .cfi_restore %rbp
  2849. .cfi_def_cfa %rsp, 8
  2850. ret
  2851. label:
  2852. /* Do something else */
  2853. Here, we want the '.cfi' directives to affect only the rows
  2854. corresponding to the instructions before 'label'. This means we'd have
  2855. to add multiple '.cfi' directives after 'label' to recreate the original
  2856. save locations of the registers, as well as setting the CFA back to the
  2857. value of 'rbp'. This would be clumsy, and result in a larger binary
  2858. size. Instead, we can write:
  2859. je label
  2860. popq %rbx
  2861. .cfi_remember_state
  2862. .cfi_restore %rbx
  2863. popq %r12
  2864. .cfi_restore %r12
  2865. popq %rbp
  2866. .cfi_restore %rbp
  2867. .cfi_def_cfa %rsp, 8
  2868. ret
  2869. label:
  2870. .cfi_restore_state
  2871. /* Do something else */
  2872. That way, the rules for the instructions after 'label' will be the
  2873. same as before the first '.cfi_restore' without having to use multiple
  2874. '.cfi' directives.
  2875. 7.10.21 '.cfi_return_column REGISTER'
  2876. -------------------------------------
  2877. Change return column REGISTER, i.e. the return address is either
  2878. directly in REGISTER or can be accessed by rules for REGISTER.
  2879. 7.10.22 '.cfi_signal_frame'
  2880. ---------------------------
  2881. Mark current function as signal trampoline.
  2882. 7.10.23 '.cfi_window_save'
  2883. --------------------------
  2884. SPARC register window has been saved.
  2885. 7.10.24 '.cfi_escape' EXPRESSION[, ...]
  2886. ---------------------------------------
  2887. Allows the user to add arbitrary bytes to the unwind info. One might
  2888. use this to add OS-specific CFI opcodes, or generic CFI opcodes that GAS
  2889. does not yet support.
  2890. 7.10.25 '.cfi_val_encoded_addr REGISTER, ENCODING, LABEL'
  2891. ---------------------------------------------------------
  2892. The current value of REGISTER is LABEL. The value of LABEL will be
  2893. encoded in the output file according to ENCODING; see the description of
  2894. '.cfi_personality' for details on this encoding.
  2895. The usefulness of equating a register to a fixed label is probably
  2896. limited to the return address register. Here, it can be useful to mark
  2897. a code segment that has only one return address which is reached by a
  2898. direct branch and no copy of the return address exists in memory or
  2899. another register.
  2900. 
  2901. File: as.info, Node: Comm, Next: Data, Prev: CFI directives, Up: Pseudo Ops
  2902. 7.11 '.comm SYMBOL , LENGTH '
  2903. =============================
  2904. '.comm' declares a common symbol named SYMBOL. When linking, a common
  2905. symbol in one object file may be merged with a defined or common symbol
  2906. of the same name in another object file. If 'ld' does not see a
  2907. definition for the symbol-just one or more common symbols-then it will
  2908. allocate LENGTH bytes of uninitialized memory. LENGTH must be an
  2909. absolute expression. If 'ld' sees multiple common symbols with the same
  2910. name, and they do not all have the same size, it will allocate space
  2911. using the largest size.
  2912. When using ELF or (as a GNU extension) PE, the '.comm' directive
  2913. takes an optional third argument. This is the desired alignment of the
  2914. symbol, specified for ELF as a byte boundary (for example, an alignment
  2915. of 16 means that the least significant 4 bits of the address should be
  2916. zero), and for PE as a power of two (for example, an alignment of 5
  2917. means aligned to a 32-byte boundary). The alignment must be an absolute
  2918. expression, and it must be a power of two. If 'ld' allocates
  2919. uninitialized memory for the common symbol, it will use the alignment
  2920. when placing the symbol. If no alignment is specified, 'as' will set
  2921. the alignment to the largest power of two less than or equal to the size
  2922. of the symbol, up to a maximum of 16 on ELF, or the default section
  2923. alignment of 4 on PE(1).
  2924. The syntax for '.comm' differs slightly on the HPPA. The syntax is
  2925. 'SYMBOL .comm, LENGTH'; SYMBOL is optional.
  2926. ---------- Footnotes ----------
  2927. (1) This is not the same as the executable image file alignment
  2928. controlled by 'ld''s '--section-alignment' option; image file sections
  2929. in PE are aligned to multiples of 4096, which is far too large an
  2930. alignment for ordinary variables. It is rather the default alignment
  2931. for (non-debug) sections within object ('*.o') files, which are less
  2932. strictly aligned.
  2933. 
  2934. File: as.info, Node: Data, Next: Dc, Prev: Comm, Up: Pseudo Ops
  2935. 7.12 '.data SUBSECTION'
  2936. =======================
  2937. '.data' tells 'as' to assemble the following statements onto the end of
  2938. the data subsection numbered SUBSECTION (which is an absolute
  2939. expression). If SUBSECTION is omitted, it defaults to zero.
  2940. 
  2941. File: as.info, Node: Dc, Next: Dcb, Prev: Data, Up: Pseudo Ops
  2942. 7.13 '.dc[SIZE] EXPRESSIONS'
  2943. ============================
  2944. The '.dc' directive expects zero or more EXPRESSIONS separated by
  2945. commas. These expressions are evaluated and their values inserted into
  2946. the current section. The size of the emitted value depends upon the
  2947. suffix to the '.dc' directive:
  2948. ''.a''
  2949. Emits N-bit values, where N is the size of an address on the target
  2950. system.
  2951. ''.b''
  2952. Emits 8-bit values.
  2953. ''.d''
  2954. Emits double precision floating-point values.
  2955. ''.l''
  2956. Emits 32-bit values.
  2957. ''.s''
  2958. Emits single precision floating-point values.
  2959. ''.w''
  2960. Emits 16-bit values. Note - this is true even on targets where the
  2961. '.word' directive would emit 32-bit values.
  2962. ''.x''
  2963. Emits long double precision floating-point values.
  2964. If no suffix is used then '.w' is assumed.
  2965. The byte ordering is target dependent, as is the size and format of
  2966. floating point values.
  2967. 
  2968. File: as.info, Node: Dcb, Next: Ds, Prev: Dc, Up: Pseudo Ops
  2969. 7.14 '.dcb[SIZE] NUMBER [,FILL]'
  2970. ================================
  2971. This directive emits NUMBER copies of FILL, each of SIZE bytes. Both
  2972. NUMBER and FILL are absolute expressions. If the comma and FILL are
  2973. omitted, FILL is assumed to be zero. The SIZE suffix, if present, must
  2974. be one of:
  2975. ''.b''
  2976. Emits single byte values.
  2977. ''.d''
  2978. Emits double-precision floating point values.
  2979. ''.l''
  2980. Emits 4-byte values.
  2981. ''.s''
  2982. Emits single-precision floating point values.
  2983. ''.w''
  2984. Emits 2-byte values.
  2985. ''.x''
  2986. Emits long double-precision floating point values.
  2987. If the SIZE suffix is omitted then '.w' is assumed.
  2988. The byte ordering is target dependent, as is the size and format of
  2989. floating point values.
  2990. 
  2991. File: as.info, Node: Ds, Next: Def, Prev: Dcb, Up: Pseudo Ops
  2992. 7.15 '.ds[SIZE] NUMBER [,FILL]'
  2993. ===============================
  2994. This directive emits NUMBER copies of FILL, each of SIZE bytes. Both
  2995. NUMBER and FILL are absolute expressions. If the comma and FILL are
  2996. omitted, FILL is assumed to be zero. The SIZE suffix, if present, must
  2997. be one of:
  2998. ''.b''
  2999. Emits single byte values.
  3000. ''.d''
  3001. Emits 8-byte values.
  3002. ''.l''
  3003. Emits 4-byte values.
  3004. ''.p''
  3005. Emits 12-byte values.
  3006. ''.s''
  3007. Emits 4-byte values.
  3008. ''.w''
  3009. Emits 2-byte values.
  3010. ''.x''
  3011. Emits 12-byte values.
  3012. Note - unlike the '.dcb' directive the '.d', '.s' and '.x' suffixes
  3013. do not indicate that floating-point values are to be inserted.
  3014. If the SIZE suffix is omitted then '.w' is assumed.
  3015. The byte ordering is target dependent.
  3016. 
  3017. File: as.info, Node: Def, Next: Desc, Prev: Ds, Up: Pseudo Ops
  3018. 7.16 '.def NAME'
  3019. ================
  3020. Begin defining debugging information for a symbol NAME; the definition
  3021. extends until the '.endef' directive is encountered.
  3022. 
  3023. File: as.info, Node: Desc, Next: Dim, Prev: Def, Up: Pseudo Ops
  3024. 7.17 '.desc SYMBOL, ABS-EXPRESSION'
  3025. ===================================
  3026. This directive sets the descriptor of the symbol (*note Symbol
  3027. Attributes::) to the low 16 bits of an absolute expression.
  3028. The '.desc' directive is not available when 'as' is configured for
  3029. COFF output; it is only for 'a.out' or 'b.out' object format. For the
  3030. sake of compatibility, 'as' accepts it, but produces no output, when
  3031. configured for COFF.
  3032. 
  3033. File: as.info, Node: Dim, Next: Double, Prev: Desc, Up: Pseudo Ops
  3034. 7.18 '.dim'
  3035. ===========
  3036. This directive is generated by compilers to include auxiliary debugging
  3037. information in the symbol table. It is only permitted inside
  3038. '.def'/'.endef' pairs.
  3039. 
  3040. File: as.info, Node: Double, Next: Eject, Prev: Dim, Up: Pseudo Ops
  3041. 7.19 '.double FLONUMS'
  3042. ======================
  3043. '.double' expects zero or more flonums, separated by commas. It
  3044. assembles floating point numbers. The exact kind of floating point
  3045. numbers emitted depends on how 'as' is configured. *Note Machine
  3046. Dependencies::.
  3047. 
  3048. File: as.info, Node: Eject, Next: Else, Prev: Double, Up: Pseudo Ops
  3049. 7.20 '.eject'
  3050. =============
  3051. Force a page break at this point, when generating assembly listings.
  3052. 
  3053. File: as.info, Node: Else, Next: Elseif, Prev: Eject, Up: Pseudo Ops
  3054. 7.21 '.else'
  3055. ============
  3056. '.else' is part of the 'as' support for conditional assembly; see *note
  3057. '.if': If. It marks the beginning of a section of code to be assembled
  3058. if the condition for the preceding '.if' was false.
  3059. 
  3060. File: as.info, Node: Elseif, Next: End, Prev: Else, Up: Pseudo Ops
  3061. 7.22 '.elseif'
  3062. ==============
  3063. '.elseif' is part of the 'as' support for conditional assembly; see
  3064. *note '.if': If. It is shorthand for beginning a new '.if' block that
  3065. would otherwise fill the entire '.else' section.
  3066. 
  3067. File: as.info, Node: End, Next: Endef, Prev: Elseif, Up: Pseudo Ops
  3068. 7.23 '.end'
  3069. ===========
  3070. '.end' marks the end of the assembly file. 'as' does not process
  3071. anything in the file past the '.end' directive.
  3072. 
  3073. File: as.info, Node: Endef, Next: Endfunc, Prev: End, Up: Pseudo Ops
  3074. 7.24 '.endef'
  3075. =============
  3076. This directive flags the end of a symbol definition begun with '.def'.
  3077. 
  3078. File: as.info, Node: Endfunc, Next: Endif, Prev: Endef, Up: Pseudo Ops
  3079. 7.25 '.endfunc'
  3080. ===============
  3081. '.endfunc' marks the end of a function specified with '.func'.
  3082. 
  3083. File: as.info, Node: Endif, Next: Equ, Prev: Endfunc, Up: Pseudo Ops
  3084. 7.26 '.endif'
  3085. =============
  3086. '.endif' is part of the 'as' support for conditional assembly; it marks
  3087. the end of a block of code that is only assembled conditionally. *Note
  3088. '.if': If.
  3089. 
  3090. File: as.info, Node: Equ, Next: Equiv, Prev: Endif, Up: Pseudo Ops
  3091. 7.27 '.equ SYMBOL, EXPRESSION'
  3092. ==============================
  3093. This directive sets the value of SYMBOL to EXPRESSION. It is synonymous
  3094. with '.set'; see *note '.set': Set.
  3095. The syntax for 'equ' on the HPPA is 'SYMBOL .equ EXPRESSION'.
  3096. The syntax for 'equ' on the Z80 is 'SYMBOL equ EXPRESSION'. On the
  3097. Z80 it is an error if SYMBOL is already defined, but the symbol is not
  3098. protected from later redefinition. Compare *note Equiv::.
  3099. 
  3100. File: as.info, Node: Equiv, Next: Eqv, Prev: Equ, Up: Pseudo Ops
  3101. 7.28 '.equiv SYMBOL, EXPRESSION'
  3102. ================================
  3103. The '.equiv' directive is like '.equ' and '.set', except that the
  3104. assembler will signal an error if SYMBOL is already defined. Note a
  3105. symbol which has been referenced but not actually defined is considered
  3106. to be undefined.
  3107. Except for the contents of the error message, this is roughly
  3108. equivalent to
  3109. .ifdef SYM
  3110. .err
  3111. .endif
  3112. .equ SYM,VAL
  3113. plus it protects the symbol from later redefinition.
  3114. 
  3115. File: as.info, Node: Eqv, Next: Err, Prev: Equiv, Up: Pseudo Ops
  3116. 7.29 '.eqv SYMBOL, EXPRESSION'
  3117. ==============================
  3118. The '.eqv' directive is like '.equiv', but no attempt is made to
  3119. evaluate the expression or any part of it immediately. Instead each
  3120. time the resulting symbol is used in an expression, a snapshot of its
  3121. current value is taken.
  3122. 
  3123. File: as.info, Node: Err, Next: Error, Prev: Eqv, Up: Pseudo Ops
  3124. 7.30 '.err'
  3125. ===========
  3126. If 'as' assembles a '.err' directive, it will print an error message
  3127. and, unless the '-Z' option was used, it will not generate an object
  3128. file. This can be used to signal an error in conditionally compiled
  3129. code.
  3130. 
  3131. File: as.info, Node: Error, Next: Exitm, Prev: Err, Up: Pseudo Ops
  3132. 7.31 '.error "STRING"'
  3133. ======================
  3134. Similarly to '.err', this directive emits an error, but you can specify
  3135. a string that will be emitted as the error message. If you don't
  3136. specify the message, it defaults to '".error directive invoked in source
  3137. file"'. *Note Error and Warning Messages: Errors.
  3138. .error "This code has not been assembled and tested."
  3139. 
  3140. File: as.info, Node: Exitm, Next: Extern, Prev: Error, Up: Pseudo Ops
  3141. 7.32 '.exitm'
  3142. =============
  3143. Exit early from the current macro definition. *Note Macro::.
  3144. 
  3145. File: as.info, Node: Extern, Next: Fail, Prev: Exitm, Up: Pseudo Ops
  3146. 7.33 '.extern'
  3147. ==============
  3148. '.extern' is accepted in the source program--for compatibility with
  3149. other assemblers--but it is ignored. 'as' treats all undefined symbols
  3150. as external.
  3151. 
  3152. File: as.info, Node: Fail, Next: File, Prev: Extern, Up: Pseudo Ops
  3153. 7.34 '.fail EXPRESSION'
  3154. =======================
  3155. Generates an error or a warning. If the value of the EXPRESSION is 500
  3156. or more, 'as' will print a warning message. If the value is less than
  3157. 500, 'as' will print an error message. The message will include the
  3158. value of EXPRESSION. This can occasionally be useful inside complex
  3159. nested macros or conditional assembly.
  3160. 
  3161. File: as.info, Node: File, Next: Fill, Prev: Fail, Up: Pseudo Ops
  3162. 7.35 '.file'
  3163. ============
  3164. There are two different versions of the '.file' directive. Targets that
  3165. support DWARF2 line number information use the DWARF2 version of
  3166. '.file'. Other targets use the default version.
  3167. Default Version
  3168. ---------------
  3169. This version of the '.file' directive tells 'as' that we are about to
  3170. start a new logical file. The syntax is:
  3171. .file STRING
  3172. STRING is the new file name. In general, the filename is recognized
  3173. whether or not it is surrounded by quotes '"'; but if you wish to
  3174. specify an empty file name, you must give the quotes-'""'. This
  3175. statement may go away in future: it is only recognized to be compatible
  3176. with old 'as' programs.
  3177. DWARF2 Version
  3178. --------------
  3179. When emitting DWARF2 line number information, '.file' assigns filenames
  3180. to the '.debug_line' file name table. The syntax is:
  3181. .file FILENO FILENAME
  3182. The FILENO operand should be a unique positive integer to use as the
  3183. index of the entry in the table. The FILENAME operand is a C string
  3184. literal.
  3185. The detail of filename indices is exposed to the user because the
  3186. filename table is shared with the '.debug_info' section of the DWARF2
  3187. debugging information, and thus the user must know the exact indices
  3188. that table entries will have.
  3189. 
  3190. File: as.info, Node: Fill, Next: Float, Prev: File, Up: Pseudo Ops
  3191. 7.36 '.fill REPEAT , SIZE , VALUE'
  3192. ==================================
  3193. REPEAT, SIZE and VALUE are absolute expressions. This emits REPEAT
  3194. copies of SIZE bytes. REPEAT may be zero or more. SIZE may be zero or
  3195. more, but if it is more than 8, then it is deemed to have the value 8,
  3196. compatible with other people's assemblers. The contents of each REPEAT
  3197. bytes is taken from an 8-byte number. The highest order 4 bytes are
  3198. zero. The lowest order 4 bytes are VALUE rendered in the byte-order of
  3199. an integer on the computer 'as' is assembling for. Each SIZE bytes in a
  3200. repetition is taken from the lowest order SIZE bytes of this number.
  3201. Again, this bizarre behavior is compatible with other people's
  3202. assemblers.
  3203. SIZE and VALUE are optional. If the second comma and VALUE are
  3204. absent, VALUE is assumed zero. If the first comma and following tokens
  3205. are absent, SIZE is assumed to be 1.
  3206. 
  3207. File: as.info, Node: Float, Next: Func, Prev: Fill, Up: Pseudo Ops
  3208. 7.37 '.float FLONUMS'
  3209. =====================
  3210. This directive assembles zero or more flonums, separated by commas. It
  3211. has the same effect as '.single'. The exact kind of floating point
  3212. numbers emitted depends on how 'as' is configured. *Note Machine
  3213. Dependencies::.
  3214. 
  3215. File: as.info, Node: Func, Next: Global, Prev: Float, Up: Pseudo Ops
  3216. 7.38 '.func NAME[,LABEL]'
  3217. =========================
  3218. '.func' emits debugging information to denote function NAME, and is
  3219. ignored unless the file is assembled with debugging enabled. Only
  3220. '--gstabs[+]' is currently supported. LABEL is the entry point of the
  3221. function and if omitted NAME prepended with the 'leading char' is used.
  3222. 'leading char' is usually '_' or nothing, depending on the target. All
  3223. functions are currently defined to have 'void' return type. The
  3224. function must be terminated with '.endfunc'.
  3225. 
  3226. File: as.info, Node: Global, Next: Gnu_attribute, Prev: Func, Up: Pseudo Ops
  3227. 7.39 '.global SYMBOL', '.globl SYMBOL'
  3228. ======================================
  3229. '.global' makes the symbol visible to 'ld'. If you define SYMBOL in
  3230. your partial program, its value is made available to other partial
  3231. programs that are linked with it. Otherwise, SYMBOL takes its
  3232. attributes from a symbol of the same name from another file linked into
  3233. the same program.
  3234. Both spellings ('.globl' and '.global') are accepted, for
  3235. compatibility with other assemblers.
  3236. On the HPPA, '.global' is not always enough to make it accessible to
  3237. other partial programs. You may need the HPPA-only '.EXPORT' directive
  3238. as well. *Note HPPA Assembler Directives: HPPA Directives.
  3239. 
  3240. File: as.info, Node: Gnu_attribute, Next: Hidden, Prev: Global, Up: Pseudo Ops
  3241. 7.40 '.gnu_attribute TAG,VALUE'
  3242. ===============================
  3243. Record a GNU object attribute for this file. *Note Object Attributes::.
  3244. 
  3245. File: as.info, Node: Hidden, Next: hword, Prev: Gnu_attribute, Up: Pseudo Ops
  3246. 7.41 '.hidden NAMES'
  3247. ====================
  3248. This is one of the ELF visibility directives. The other two are
  3249. '.internal' (*note '.internal': Internal.) and '.protected' (*note
  3250. '.protected': Protected.).
  3251. This directive overrides the named symbols default visibility (which
  3252. is set by their binding: local, global or weak). The directive sets the
  3253. visibility to 'hidden' which means that the symbols are not visible to
  3254. other components. Such symbols are always considered to be 'protected'
  3255. as well.
  3256. 
  3257. File: as.info, Node: hword, Next: Ident, Prev: Hidden, Up: Pseudo Ops
  3258. 7.42 '.hword EXPRESSIONS'
  3259. =========================
  3260. This expects zero or more EXPRESSIONS, and emits a 16 bit number for
  3261. each.
  3262. This directive is a synonym for '.short'; depending on the target
  3263. architecture, it may also be a synonym for '.word'.
  3264. 
  3265. File: as.info, Node: Ident, Next: If, Prev: hword, Up: Pseudo Ops
  3266. 7.43 '.ident'
  3267. =============
  3268. This directive is used by some assemblers to place tags in object files.
  3269. The behavior of this directive varies depending on the target. When
  3270. using the a.out object file format, 'as' simply accepts the directive
  3271. for source-file compatibility with existing assemblers, but does not
  3272. emit anything for it. When using COFF, comments are emitted to the
  3273. '.comment' or '.rdata' section, depending on the target. When using
  3274. ELF, comments are emitted to the '.comment' section.
  3275. 
  3276. File: as.info, Node: If, Next: Incbin, Prev: Ident, Up: Pseudo Ops
  3277. 7.44 '.if ABSOLUTE EXPRESSION'
  3278. ==============================
  3279. '.if' marks the beginning of a section of code which is only considered
  3280. part of the source program being assembled if the argument (which must
  3281. be an ABSOLUTE EXPRESSION) is non-zero. The end of the conditional
  3282. section of code must be marked by '.endif' (*note '.endif': Endif.);
  3283. optionally, you may include code for the alternative condition, flagged
  3284. by '.else' (*note '.else': Else.). If you have several conditions to
  3285. check, '.elseif' may be used to avoid nesting blocks if/else within each
  3286. subsequent '.else' block.
  3287. The following variants of '.if' are also supported:
  3288. '.ifdef SYMBOL'
  3289. Assembles the following section of code if the specified SYMBOL has
  3290. been defined. Note a symbol which has been referenced but not yet
  3291. defined is considered to be undefined.
  3292. '.ifb TEXT'
  3293. Assembles the following section of code if the operand is blank
  3294. (empty).
  3295. '.ifc STRING1,STRING2'
  3296. Assembles the following section of code if the two strings are the
  3297. same. The strings may be optionally quoted with single quotes. If
  3298. they are not quoted, the first string stops at the first comma, and
  3299. the second string stops at the end of the line. Strings which
  3300. contain whitespace should be quoted. The string comparison is case
  3301. sensitive.
  3302. '.ifeq ABSOLUTE EXPRESSION'
  3303. Assembles the following section of code if the argument is zero.
  3304. '.ifeqs STRING1,STRING2'
  3305. Another form of '.ifc'. The strings must be quoted using double
  3306. quotes.
  3307. '.ifge ABSOLUTE EXPRESSION'
  3308. Assembles the following section of code if the argument is greater
  3309. than or equal to zero.
  3310. '.ifgt ABSOLUTE EXPRESSION'
  3311. Assembles the following section of code if the argument is greater
  3312. than zero.
  3313. '.ifle ABSOLUTE EXPRESSION'
  3314. Assembles the following section of code if the argument is less
  3315. than or equal to zero.
  3316. '.iflt ABSOLUTE EXPRESSION'
  3317. Assembles the following section of code if the argument is less
  3318. than zero.
  3319. '.ifnb TEXT'
  3320. Like '.ifb', but the sense of the test is reversed: this assembles
  3321. the following section of code if the operand is non-blank
  3322. (non-empty).
  3323. '.ifnc STRING1,STRING2.'
  3324. Like '.ifc', but the sense of the test is reversed: this assembles
  3325. the following section of code if the two strings are not the same.
  3326. '.ifndef SYMBOL'
  3327. '.ifnotdef SYMBOL'
  3328. Assembles the following section of code if the specified SYMBOL has
  3329. not been defined. Both spelling variants are equivalent. Note a
  3330. symbol which has been referenced but not yet defined is considered
  3331. to be undefined.
  3332. '.ifne ABSOLUTE EXPRESSION'
  3333. Assembles the following section of code if the argument is not
  3334. equal to zero (in other words, this is equivalent to '.if').
  3335. '.ifnes STRING1,STRING2'
  3336. Like '.ifeqs', but the sense of the test is reversed: this
  3337. assembles the following section of code if the two strings are not
  3338. the same.
  3339. 
  3340. File: as.info, Node: Incbin, Next: Include, Prev: If, Up: Pseudo Ops
  3341. 7.45 '.incbin "FILE"[,SKIP[,COUNT]]'
  3342. ====================================
  3343. The 'incbin' directive includes FILE verbatim at the current location.
  3344. You can control the search paths used with the '-I' command-line option
  3345. (*note Command-Line Options: Invoking.). Quotation marks are required
  3346. around FILE.
  3347. The SKIP argument skips a number of bytes from the start of the FILE.
  3348. The COUNT argument indicates the maximum number of bytes to read. Note
  3349. that the data is not aligned in any way, so it is the user's
  3350. responsibility to make sure that proper alignment is provided both
  3351. before and after the 'incbin' directive.
  3352. 
  3353. File: as.info, Node: Include, Next: Int, Prev: Incbin, Up: Pseudo Ops
  3354. 7.46 '.include "FILE"'
  3355. ======================
  3356. This directive provides a way to include supporting files at specified
  3357. points in your source program. The code from FILE is assembled as if it
  3358. followed the point of the '.include'; when the end of the included file
  3359. is reached, assembly of the original file continues. You can control
  3360. the search paths used with the '-I' command-line option (*note
  3361. Command-Line Options: Invoking.). Quotation marks are required around
  3362. FILE.
  3363. 
  3364. File: as.info, Node: Int, Next: Internal, Prev: Include, Up: Pseudo Ops
  3365. 7.47 '.int EXPRESSIONS'
  3366. =======================
  3367. Expect zero or more EXPRESSIONS, of any section, separated by commas.
  3368. For each expression, emit a number that, at run time, is the value of
  3369. that expression. The byte order and bit size of the number depends on
  3370. what kind of target the assembly is for.
  3371. 
  3372. File: as.info, Node: Internal, Next: Irp, Prev: Int, Up: Pseudo Ops
  3373. 7.48 '.internal NAMES'
  3374. ======================
  3375. This is one of the ELF visibility directives. The other two are
  3376. '.hidden' (*note '.hidden': Hidden.) and '.protected' (*note
  3377. '.protected': Protected.).
  3378. This directive overrides the named symbols default visibility (which
  3379. is set by their binding: local, global or weak). The directive sets the
  3380. visibility to 'internal' which means that the symbols are considered to
  3381. be 'hidden' (i.e., not visible to other components), and that some
  3382. extra, processor specific processing must also be performed upon the
  3383. symbols as well.
  3384. 
  3385. File: as.info, Node: Irp, Next: Irpc, Prev: Internal, Up: Pseudo Ops
  3386. 7.49 '.irp SYMBOL,VALUES'...
  3387. ============================
  3388. Evaluate a sequence of statements assigning different values to SYMBOL.
  3389. The sequence of statements starts at the '.irp' directive, and is
  3390. terminated by an '.endr' directive. For each VALUE, SYMBOL is set to
  3391. VALUE, and the sequence of statements is assembled. If no VALUE is
  3392. listed, the sequence of statements is assembled once, with SYMBOL set to
  3393. the null string. To refer to SYMBOL within the sequence of statements,
  3394. use \SYMBOL.
  3395. For example, assembling
  3396. .irp param,1,2,3
  3397. move d\param,sp@-
  3398. .endr
  3399. is equivalent to assembling
  3400. move d1,sp@-
  3401. move d2,sp@-
  3402. move d3,sp@-
  3403. For some caveats with the spelling of SYMBOL, see also *note Macro::.
  3404. 
  3405. File: as.info, Node: Irpc, Next: Lcomm, Prev: Irp, Up: Pseudo Ops
  3406. 7.50 '.irpc SYMBOL,VALUES'...
  3407. =============================
  3408. Evaluate a sequence of statements assigning different values to SYMBOL.
  3409. The sequence of statements starts at the '.irpc' directive, and is
  3410. terminated by an '.endr' directive. For each character in VALUE, SYMBOL
  3411. is set to the character, and the sequence of statements is assembled.
  3412. If no VALUE is listed, the sequence of statements is assembled once,
  3413. with SYMBOL set to the null string. To refer to SYMBOL within the
  3414. sequence of statements, use \SYMBOL.
  3415. For example, assembling
  3416. .irpc param,123
  3417. move d\param,sp@-
  3418. .endr
  3419. is equivalent to assembling
  3420. move d1,sp@-
  3421. move d2,sp@-
  3422. move d3,sp@-
  3423. For some caveats with the spelling of SYMBOL, see also the discussion
  3424. at *Note Macro::.
  3425. 
  3426. File: as.info, Node: Lcomm, Next: Lflags, Prev: Irpc, Up: Pseudo Ops
  3427. 7.51 '.lcomm SYMBOL , LENGTH'
  3428. =============================
  3429. Reserve LENGTH (an absolute expression) bytes for a local common denoted
  3430. by SYMBOL. The section and value of SYMBOL are those of the new local
  3431. common. The addresses are allocated in the bss section, so that at
  3432. run-time the bytes start off zeroed. SYMBOL is not declared global
  3433. (*note '.global': Global.), so is normally not visible to 'ld'.
  3434. Some targets permit a third argument to be used with '.lcomm'. This
  3435. argument specifies the desired alignment of the symbol in the bss
  3436. section.
  3437. The syntax for '.lcomm' differs slightly on the HPPA. The syntax is
  3438. 'SYMBOL .lcomm, LENGTH'; SYMBOL is optional.
  3439. 
  3440. File: as.info, Node: Lflags, Next: Line, Prev: Lcomm, Up: Pseudo Ops
  3441. 7.52 '.lflags'
  3442. ==============
  3443. 'as' accepts this directive, for compatibility with other assemblers,
  3444. but ignores it.
  3445. 
  3446. File: as.info, Node: Line, Next: Linkonce, Prev: Lflags, Up: Pseudo Ops
  3447. 7.53 '.line LINE-NUMBER'
  3448. ========================
  3449. Change the logical line number. LINE-NUMBER must be an absolute
  3450. expression. The next line has that logical line number. Therefore any
  3451. other statements on the current line (after a statement separator
  3452. character) are reported as on logical line number LINE-NUMBER - 1. One
  3453. day 'as' will no longer support this directive: it is recognized only
  3454. for compatibility with existing assembler programs.
  3455. Even though this is a directive associated with the 'a.out' or
  3456. 'b.out' object-code formats, 'as' still recognizes it when producing
  3457. COFF output, and treats '.line' as though it were the COFF '.ln' _if_ it
  3458. is found outside a '.def'/'.endef' pair.
  3459. Inside a '.def', '.line' is, instead, one of the directives used by
  3460. compilers to generate auxiliary symbol information for debugging.
  3461. 
  3462. File: as.info, Node: Linkonce, Next: List, Prev: Line, Up: Pseudo Ops
  3463. 7.54 '.linkonce [TYPE]'
  3464. =======================
  3465. Mark the current section so that the linker only includes a single copy
  3466. of it. This may be used to include the same section in several
  3467. different object files, but ensure that the linker will only include it
  3468. once in the final output file. The '.linkonce' pseudo-op must be used
  3469. for each instance of the section. Duplicate sections are detected based
  3470. on the section name, so it should be unique.
  3471. This directive is only supported by a few object file formats; as of
  3472. this writing, the only object file format which supports it is the
  3473. Portable Executable format used on Windows NT.
  3474. The TYPE argument is optional. If specified, it must be one of the
  3475. following strings. For example:
  3476. .linkonce same_size
  3477. Not all types may be supported on all object file formats.
  3478. 'discard'
  3479. Silently discard duplicate sections. This is the default.
  3480. 'one_only'
  3481. Warn if there are duplicate sections, but still keep only one copy.
  3482. 'same_size'
  3483. Warn if any of the duplicates have different sizes.
  3484. 'same_contents'
  3485. Warn if any of the duplicates do not have exactly the same
  3486. contents.
  3487. 
  3488. File: as.info, Node: List, Next: Ln, Prev: Linkonce, Up: Pseudo Ops
  3489. 7.55 '.list'
  3490. ============
  3491. Control (in conjunction with the '.nolist' directive) whether or not
  3492. assembly listings are generated. These two directives maintain an
  3493. internal counter (which is zero initially). '.list' increments the
  3494. counter, and '.nolist' decrements it. Assembly listings are generated
  3495. whenever the counter is greater than zero.
  3496. By default, listings are disabled. When you enable them (with the
  3497. '-a' command-line option; *note Command-Line Options: Invoking.), the
  3498. initial value of the listing counter is one.
  3499. 
  3500. File: as.info, Node: Ln, Next: Loc, Prev: List, Up: Pseudo Ops
  3501. 7.56 '.ln LINE-NUMBER'
  3502. ======================
  3503. '.ln' is a synonym for '.line'.
  3504. 
  3505. File: as.info, Node: Loc, Next: Loc_mark_labels, Prev: Ln, Up: Pseudo Ops
  3506. 7.57 '.loc FILENO LINENO [COLUMN] [OPTIONS]'
  3507. ============================================
  3508. When emitting DWARF2 line number information, the '.loc' directive will
  3509. add a row to the '.debug_line' line number matrix corresponding to the
  3510. immediately following assembly instruction. The FILENO, LINENO, and
  3511. optional COLUMN arguments will be applied to the '.debug_line' state
  3512. machine before the row is added.
  3513. The OPTIONS are a sequence of the following tokens in any order:
  3514. 'basic_block'
  3515. This option will set the 'basic_block' register in the
  3516. '.debug_line' state machine to 'true'.
  3517. 'prologue_end'
  3518. This option will set the 'prologue_end' register in the
  3519. '.debug_line' state machine to 'true'.
  3520. 'epilogue_begin'
  3521. This option will set the 'epilogue_begin' register in the
  3522. '.debug_line' state machine to 'true'.
  3523. 'is_stmt VALUE'
  3524. This option will set the 'is_stmt' register in the '.debug_line'
  3525. state machine to 'value', which must be either 0 or 1.
  3526. 'isa VALUE'
  3527. This directive will set the 'isa' register in the '.debug_line'
  3528. state machine to VALUE, which must be an unsigned integer.
  3529. 'discriminator VALUE'
  3530. This directive will set the 'discriminator' register in the
  3531. '.debug_line' state machine to VALUE, which must be an unsigned
  3532. integer.
  3533. 'view VALUE'
  3534. This option causes a row to be added to '.debug_line' in reference
  3535. to the current address (which might not be the same as that of the
  3536. following assembly instruction), and to associate VALUE with the
  3537. 'view' register in the '.debug_line' state machine. If VALUE is a
  3538. label, both the 'view' register and the label are set to the number
  3539. of prior '.loc' directives at the same program location. If VALUE
  3540. is the literal '0', the 'view' register is set to zero, and the
  3541. assembler asserts that there aren't any prior '.loc' directives at
  3542. the same program location. If VALUE is the literal '-0', the
  3543. assembler arrange for the 'view' register to be reset in this row,
  3544. even if there are prior '.loc' directives at the same program
  3545. location.
  3546. 
  3547. File: as.info, Node: Loc_mark_labels, Next: Local, Prev: Loc, Up: Pseudo Ops
  3548. 7.58 '.loc_mark_labels ENABLE'
  3549. ==============================
  3550. When emitting DWARF2 line number information, the '.loc_mark_labels'
  3551. directive makes the assembler emit an entry to the '.debug_line' line
  3552. number matrix with the 'basic_block' register in the state machine set
  3553. whenever a code label is seen. The ENABLE argument should be either 1
  3554. or 0, to enable or disable this function respectively.
  3555. 
  3556. File: as.info, Node: Local, Next: Long, Prev: Loc_mark_labels, Up: Pseudo Ops
  3557. 7.59 '.local NAMES'
  3558. ===================
  3559. This directive, which is available for ELF targets, marks each symbol in
  3560. the comma-separated list of 'names' as a local symbol so that it will
  3561. not be externally visible. If the symbols do not already exist, they
  3562. will be created.
  3563. For targets where the '.lcomm' directive (*note Lcomm::) does not
  3564. accept an alignment argument, which is the case for most ELF targets,
  3565. the '.local' directive can be used in combination with '.comm' (*note
  3566. Comm::) to define aligned local common data.
  3567. 
  3568. File: as.info, Node: Long, Next: Macro, Prev: Local, Up: Pseudo Ops
  3569. 7.60 '.long EXPRESSIONS'
  3570. ========================
  3571. '.long' is the same as '.int'. *Note '.int': Int.
  3572. 
  3573. File: as.info, Node: Macro, Next: MRI, Prev: Long, Up: Pseudo Ops
  3574. 7.61 '.macro'
  3575. =============
  3576. The commands '.macro' and '.endm' allow you to define macros that
  3577. generate assembly output. For example, this definition specifies a
  3578. macro 'sum' that puts a sequence of numbers into memory:
  3579. .macro sum from=0, to=5
  3580. .long \from
  3581. .if \to-\from
  3582. sum "(\from+1)",\to
  3583. .endif
  3584. .endm
  3585. With that definition, 'SUM 0,5' is equivalent to this assembly input:
  3586. .long 0
  3587. .long 1
  3588. .long 2
  3589. .long 3
  3590. .long 4
  3591. .long 5
  3592. '.macro MACNAME'
  3593. '.macro MACNAME MACARGS ...'
  3594. Begin the definition of a macro called MACNAME. If your macro
  3595. definition requires arguments, specify their names after the macro
  3596. name, separated by commas or spaces. You can qualify the macro
  3597. argument to indicate whether all invocations must specify a
  3598. non-blank value (through ':'req''), or whether it takes all of the
  3599. remaining arguments (through ':'vararg''). You can supply a
  3600. default value for any macro argument by following the name with
  3601. '=DEFLT'. You cannot define two macros with the same MACNAME
  3602. unless it has been subject to the '.purgem' directive (*note
  3603. Purgem::) between the two definitions. For example, these are all
  3604. valid '.macro' statements:
  3605. '.macro comm'
  3606. Begin the definition of a macro called 'comm', which takes no
  3607. arguments.
  3608. '.macro plus1 p, p1'
  3609. '.macro plus1 p p1'
  3610. Either statement begins the definition of a macro called
  3611. 'plus1', which takes two arguments; within the macro
  3612. definition, write '\p' or '\p1' to evaluate the arguments.
  3613. '.macro reserve_str p1=0 p2'
  3614. Begin the definition of a macro called 'reserve_str', with two
  3615. arguments. The first argument has a default value, but not
  3616. the second. After the definition is complete, you can call
  3617. the macro either as 'reserve_str A,B' (with '\p1' evaluating
  3618. to A and '\p2' evaluating to B), or as 'reserve_str ,B' (with
  3619. '\p1' evaluating as the default, in this case '0', and '\p2'
  3620. evaluating to B).
  3621. '.macro m p1:req, p2=0, p3:vararg'
  3622. Begin the definition of a macro called 'm', with at least
  3623. three arguments. The first argument must always have a value
  3624. specified, but not the second, which instead has a default
  3625. value. The third formal will get assigned all remaining
  3626. arguments specified at invocation time.
  3627. When you call a macro, you can specify the argument values
  3628. either by position, or by keyword. For example, 'sum 9,17' is
  3629. equivalent to 'sum to=17, from=9'.
  3630. Note that since each of the MACARGS can be an identifier exactly as
  3631. any other one permitted by the target architecture, there may be
  3632. occasional problems if the target hand-crafts special meanings to
  3633. certain characters when they occur in a special position. For
  3634. example, if the colon (':') is generally permitted to be part of a
  3635. symbol name, but the architecture specific code special-cases it
  3636. when occurring as the final character of a symbol (to denote a
  3637. label), then the macro parameter replacement code will have no way
  3638. of knowing that and consider the whole construct (including the
  3639. colon) an identifier, and check only this identifier for being the
  3640. subject to parameter substitution. So for example this macro
  3641. definition:
  3642. .macro label l
  3643. \l:
  3644. .endm
  3645. might not work as expected. Invoking 'label foo' might not create
  3646. a label called 'foo' but instead just insert the text '\l:' into
  3647. the assembler source, probably generating an error about an
  3648. unrecognised identifier.
  3649. Similarly problems might occur with the period character ('.')
  3650. which is often allowed inside opcode names (and hence identifier
  3651. names). So for example constructing a macro to build an opcode
  3652. from a base name and a length specifier like this:
  3653. .macro opcode base length
  3654. \base.\length
  3655. .endm
  3656. and invoking it as 'opcode store l' will not create a 'store.l'
  3657. instruction but instead generate some kind of error as the
  3658. assembler tries to interpret the text '\base.\length'.
  3659. There are several possible ways around this problem:
  3660. 'Insert white space'
  3661. If it is possible to use white space characters then this is
  3662. the simplest solution. eg:
  3663. .macro label l
  3664. \l :
  3665. .endm
  3666. 'Use '\()''
  3667. The string '\()' can be used to separate the end of a macro
  3668. argument from the following text. eg:
  3669. .macro opcode base length
  3670. \base\().\length
  3671. .endm
  3672. 'Use the alternate macro syntax mode'
  3673. In the alternative macro syntax mode the ampersand character
  3674. ('&') can be used as a separator. eg:
  3675. .altmacro
  3676. .macro label l
  3677. l&:
  3678. .endm
  3679. Note: this problem of correctly identifying string parameters to
  3680. pseudo ops also applies to the identifiers used in '.irp' (*note
  3681. Irp::) and '.irpc' (*note Irpc::) as well.
  3682. '.endm'
  3683. Mark the end of a macro definition.
  3684. '.exitm'
  3685. Exit early from the current macro definition.
  3686. '\@'
  3687. 'as' maintains a counter of how many macros it has executed in this
  3688. pseudo-variable; you can copy that number to your output with '\@',
  3689. but _only within a macro definition_.
  3690. 'LOCAL NAME [ , ... ]'
  3691. _Warning: 'LOCAL' is only available if you select "alternate macro
  3692. syntax" with '--alternate' or '.altmacro'._ *Note '.altmacro':
  3693. Altmacro.
  3694. 
  3695. File: as.info, Node: MRI, Next: Noaltmacro, Prev: Macro, Up: Pseudo Ops
  3696. 7.62 '.mri VAL'
  3697. ===============
  3698. If VAL is non-zero, this tells 'as' to enter MRI mode. If VAL is zero,
  3699. this tells 'as' to exit MRI mode. This change affects code assembled
  3700. until the next '.mri' directive, or until the end of the file. *Note
  3701. MRI mode: M.
  3702. 
  3703. File: as.info, Node: Noaltmacro, Next: Nolist, Prev: MRI, Up: Pseudo Ops
  3704. 7.63 '.noaltmacro'
  3705. ==================
  3706. Disable alternate macro mode. *Note Altmacro::.
  3707. 
  3708. File: as.info, Node: Nolist, Next: Nops, Prev: Noaltmacro, Up: Pseudo Ops
  3709. 7.64 '.nolist'
  3710. ==============
  3711. Control (in conjunction with the '.list' directive) whether or not
  3712. assembly listings are generated. These two directives maintain an
  3713. internal counter (which is zero initially). '.list' increments the
  3714. counter, and '.nolist' decrements it. Assembly listings are generated
  3715. whenever the counter is greater than zero.
  3716. 
  3717. File: as.info, Node: Nops, Next: Octa, Prev: Nolist, Up: Pseudo Ops
  3718. 7.65 '.nops SIZE[, CONTROL]'
  3719. ============================
  3720. This directive emits SIZE bytes filled with no-op instructions. SIZE is
  3721. absolute expression, which must be a positve value. CONTROL controls
  3722. how no-op instructions should be generated. If the comma and CONTROL
  3723. are omitted, CONTROL is assumed to be zero.
  3724. Note: For Intel 80386 and AMD x86-64 targets, CONTROL specifies the
  3725. size limit of a no-op instruction. The valid values of CONTROL are
  3726. between 0 and 4 in 16-bit mode, between 0 and 7 when tuning for older
  3727. processors in 32-bit mode, between 0 and 11 in 64-bit mode or when
  3728. tuning for newer processors in 32-bit mode. When 0 is used, the no-op
  3729. instruction size limit is set to the maximum supported size.
  3730. 
  3731. File: as.info, Node: Octa, Next: Offset, Prev: Nops, Up: Pseudo Ops
  3732. 7.66 '.octa BIGNUMS'
  3733. ====================
  3734. This directive expects zero or more bignums, separated by commas. For
  3735. each bignum, it emits a 16-byte integer.
  3736. The term "octa" comes from contexts in which a "word" is two bytes;
  3737. hence _octa_-word for 16 bytes.
  3738. 
  3739. File: as.info, Node: Offset, Next: Org, Prev: Octa, Up: Pseudo Ops
  3740. 7.67 '.offset LOC'
  3741. ==================
  3742. Set the location counter to LOC in the absolute section. LOC must be an
  3743. absolute expression. This directive may be useful for defining symbols
  3744. with absolute values. Do not confuse it with the '.org' directive.
  3745. 
  3746. File: as.info, Node: Org, Next: P2align, Prev: Offset, Up: Pseudo Ops
  3747. 7.68 '.org NEW-LC , FILL'
  3748. =========================
  3749. Advance the location counter of the current section to NEW-LC. NEW-LC
  3750. is either an absolute expression or an expression with the same section
  3751. as the current subsection. That is, you can't use '.org' to cross
  3752. sections: if NEW-LC has the wrong section, the '.org' directive is
  3753. ignored. To be compatible with former assemblers, if the section of
  3754. NEW-LC is absolute, 'as' issues a warning, then pretends the section of
  3755. NEW-LC is the same as the current subsection.
  3756. '.org' may only increase the location counter, or leave it unchanged;
  3757. you cannot use '.org' to move the location counter backwards.
  3758. Because 'as' tries to assemble programs in one pass, NEW-LC may not
  3759. be undefined. If you really detest this restriction we eagerly await a
  3760. chance to share your improved assembler.
  3761. Beware that the origin is relative to the start of the section, not
  3762. to the start of the subsection. This is compatible with other people's
  3763. assemblers.
  3764. When the location counter (of the current subsection) is advanced,
  3765. the intervening bytes are filled with FILL which should be an absolute
  3766. expression. If the comma and FILL are omitted, FILL defaults to zero.
  3767. 
  3768. File: as.info, Node: P2align, Next: PopSection, Prev: Org, Up: Pseudo Ops
  3769. 7.69 '.p2align[wl] ABS-EXPR, ABS-EXPR, ABS-EXPR'
  3770. ================================================
  3771. Pad the location counter (in the current subsection) to a particular
  3772. storage boundary. The first expression (which must be absolute) is the
  3773. number of low-order zero bits the location counter must have after
  3774. advancement. For example '.p2align 3' advances the location counter
  3775. until it is a multiple of 8. If the location counter is already a
  3776. multiple of 8, no change is needed.
  3777. The second expression (also absolute) gives the fill value to be
  3778. stored in the padding bytes. It (and the comma) may be omitted. If it
  3779. is omitted, the padding bytes are normally zero. However, on most
  3780. systems, if the section is marked as containing code and the fill value
  3781. is omitted, the space is filled with no-op instructions.
  3782. The third expression is also absolute, and is also optional. If it
  3783. is present, it is the maximum number of bytes that should be skipped by
  3784. this alignment directive. If doing the alignment would require skipping
  3785. more bytes than the specified maximum, then the alignment is not done at
  3786. all. You can omit the fill value (the second argument) entirely by
  3787. simply using two commas after the required alignment; this can be useful
  3788. if you want the alignment to be filled with no-op instructions when
  3789. appropriate.
  3790. The '.p2alignw' and '.p2alignl' directives are variants of the
  3791. '.p2align' directive. The '.p2alignw' directive treats the fill pattern
  3792. as a two byte word value. The '.p2alignl' directives treats the fill
  3793. pattern as a four byte longword value. For example, '.p2alignw
  3794. 2,0x368d' will align to a multiple of 4. If it skips two bytes, they
  3795. will be filled in with the value 0x368d (the exact placement of the
  3796. bytes depends upon the endianness of the processor). If it skips 1 or 3
  3797. bytes, the fill value is undefined.
  3798. 
  3799. File: as.info, Node: PopSection, Next: Previous, Prev: P2align, Up: Pseudo Ops
  3800. 7.70 '.popsection'
  3801. ==================
  3802. This is one of the ELF section stack manipulation directives. The
  3803. others are '.section' (*note Section::), '.subsection' (*note
  3804. SubSection::), '.pushsection' (*note PushSection::), and '.previous'
  3805. (*note Previous::).
  3806. This directive replaces the current section (and subsection) with the
  3807. top section (and subsection) on the section stack. This section is
  3808. popped off the stack.
  3809. 
  3810. File: as.info, Node: Previous, Next: Print, Prev: PopSection, Up: Pseudo Ops
  3811. 7.71 '.previous'
  3812. ================
  3813. This is one of the ELF section stack manipulation directives. The
  3814. others are '.section' (*note Section::), '.subsection' (*note
  3815. SubSection::), '.pushsection' (*note PushSection::), and '.popsection'
  3816. (*note PopSection::).
  3817. This directive swaps the current section (and subsection) with most
  3818. recently referenced section/subsection pair prior to this one. Multiple
  3819. '.previous' directives in a row will flip between two sections (and
  3820. their subsections). For example:
  3821. .section A
  3822. .subsection 1
  3823. .word 0x1234
  3824. .subsection 2
  3825. .word 0x5678
  3826. .previous
  3827. .word 0x9abc
  3828. Will place 0x1234 and 0x9abc into subsection 1 and 0x5678 into
  3829. subsection 2 of section A. Whilst:
  3830. .section A
  3831. .subsection 1
  3832. # Now in section A subsection 1
  3833. .word 0x1234
  3834. .section B
  3835. .subsection 0
  3836. # Now in section B subsection 0
  3837. .word 0x5678
  3838. .subsection 1
  3839. # Now in section B subsection 1
  3840. .word 0x9abc
  3841. .previous
  3842. # Now in section B subsection 0
  3843. .word 0xdef0
  3844. Will place 0x1234 into section A, 0x5678 and 0xdef0 into subsection 0
  3845. of section B and 0x9abc into subsection 1 of section B.
  3846. In terms of the section stack, this directive swaps the current
  3847. section with the top section on the section stack.
  3848. 
  3849. File: as.info, Node: Print, Next: Protected, Prev: Previous, Up: Pseudo Ops
  3850. 7.72 '.print STRING'
  3851. ====================
  3852. 'as' will print STRING on the standard output during assembly. You must
  3853. put STRING in double quotes.
  3854. 
  3855. File: as.info, Node: Protected, Next: Psize, Prev: Print, Up: Pseudo Ops
  3856. 7.73 '.protected NAMES'
  3857. =======================
  3858. This is one of the ELF visibility directives. The other two are
  3859. '.hidden' (*note Hidden::) and '.internal' (*note Internal::).
  3860. This directive overrides the named symbols default visibility (which
  3861. is set by their binding: local, global or weak). The directive sets the
  3862. visibility to 'protected' which means that any references to the symbols
  3863. from within the components that defines them must be resolved to the
  3864. definition in that component, even if a definition in another component
  3865. would normally preempt this.
  3866. 
  3867. File: as.info, Node: Psize, Next: Purgem, Prev: Protected, Up: Pseudo Ops
  3868. 7.74 '.psize LINES , COLUMNS'
  3869. =============================
  3870. Use this directive to declare the number of lines--and, optionally, the
  3871. number of columns--to use for each page, when generating listings.
  3872. If you do not use '.psize', listings use a default line-count of 60.
  3873. You may omit the comma and COLUMNS specification; the default width is
  3874. 200 columns.
  3875. 'as' generates formfeeds whenever the specified number of lines is
  3876. exceeded (or whenever you explicitly request one, using '.eject').
  3877. If you specify LINES as '0', no formfeeds are generated save those
  3878. explicitly specified with '.eject'.
  3879. 
  3880. File: as.info, Node: Purgem, Next: PushSection, Prev: Psize, Up: Pseudo Ops
  3881. 7.75 '.purgem NAME'
  3882. ===================
  3883. Undefine the macro NAME, so that later uses of the string will not be
  3884. expanded. *Note Macro::.
  3885. 
  3886. File: as.info, Node: PushSection, Next: Quad, Prev: Purgem, Up: Pseudo Ops
  3887. 7.76 '.pushsection NAME [, SUBSECTION] [, "FLAGS"[, @TYPE[,ARGUMENTS]]]'
  3888. ========================================================================
  3889. This is one of the ELF section stack manipulation directives. The
  3890. others are '.section' (*note Section::), '.subsection' (*note
  3891. SubSection::), '.popsection' (*note PopSection::), and '.previous'
  3892. (*note Previous::).
  3893. This directive pushes the current section (and subsection) onto the
  3894. top of the section stack, and then replaces the current section and
  3895. subsection with 'name' and 'subsection'. The optional 'flags', 'type'
  3896. and 'arguments' are treated the same as in the '.section' (*note
  3897. Section::) directive.
  3898. 
  3899. File: as.info, Node: Quad, Next: Reloc, Prev: PushSection, Up: Pseudo Ops
  3900. 7.77 '.quad BIGNUMS'
  3901. ====================
  3902. '.quad' expects zero or more bignums, separated by commas. For each
  3903. bignum, it emits an 8-byte integer. If the bignum won't fit in 8 bytes,
  3904. it prints a warning message; and just takes the lowest order 8 bytes of
  3905. the bignum.
  3906. The term "quad" comes from contexts in which a "word" is two bytes;
  3907. hence _quad_-word for 8 bytes.
  3908. 
  3909. File: as.info, Node: Reloc, Next: Rept, Prev: Quad, Up: Pseudo Ops
  3910. 7.78 '.reloc OFFSET, RELOC_NAME[, EXPRESSION]'
  3911. ==============================================
  3912. Generate a relocation at OFFSET of type RELOC_NAME with value
  3913. EXPRESSION. If OFFSET is a number, the relocation is generated in the
  3914. current section. If OFFSET is an expression that resolves to a symbol
  3915. plus offset, the relocation is generated in the given symbol's section.
  3916. EXPRESSION, if present, must resolve to a symbol plus addend or to an
  3917. absolute value, but note that not all targets support an addend. e.g.
  3918. ELF REL targets such as i386 store an addend in the section contents
  3919. rather than in the relocation. This low level interface does not
  3920. support addends stored in the section.
  3921. 
  3922. File: as.info, Node: Rept, Next: Sbttl, Prev: Reloc, Up: Pseudo Ops
  3923. 7.79 '.rept COUNT'
  3924. ==================
  3925. Repeat the sequence of lines between the '.rept' directive and the next
  3926. '.endr' directive COUNT times.
  3927. For example, assembling
  3928. .rept 3
  3929. .long 0
  3930. .endr
  3931. is equivalent to assembling
  3932. .long 0
  3933. .long 0
  3934. .long 0
  3935. A count of zero is allowed, but nothing is generated. Negative
  3936. counts are not allowed and if encountered will be treated as if they
  3937. were zero.
  3938. 
  3939. File: as.info, Node: Sbttl, Next: Scl, Prev: Rept, Up: Pseudo Ops
  3940. 7.80 '.sbttl "SUBHEADING"'
  3941. ==========================
  3942. Use SUBHEADING as the title (third line, immediately after the title
  3943. line) when generating assembly listings.
  3944. This directive affects subsequent pages, as well as the current page
  3945. if it appears within ten lines of the top of a page.
  3946. 
  3947. File: as.info, Node: Scl, Next: Section, Prev: Sbttl, Up: Pseudo Ops
  3948. 7.81 '.scl CLASS'
  3949. =================
  3950. Set the storage-class value for a symbol. This directive may only be
  3951. used inside a '.def'/'.endef' pair. Storage class may flag whether a
  3952. symbol is static or external, or it may record further symbolic
  3953. debugging information.
  3954. 
  3955. File: as.info, Node: Section, Next: Set, Prev: Scl, Up: Pseudo Ops
  3956. 7.82 '.section NAME'
  3957. ====================
  3958. Use the '.section' directive to assemble the following code into a
  3959. section named NAME.
  3960. This directive is only supported for targets that actually support
  3961. arbitrarily named sections; on 'a.out' targets, for example, it is not
  3962. accepted, even with a standard 'a.out' section name.
  3963. COFF Version
  3964. ------------
  3965. For COFF targets, the '.section' directive is used in one of the
  3966. following ways:
  3967. .section NAME[, "FLAGS"]
  3968. .section NAME[, SUBSECTION]
  3969. If the optional argument is quoted, it is taken as flags to use for
  3970. the section. Each flag is a single character. The following flags are
  3971. recognized:
  3972. 'b'
  3973. bss section (uninitialized data)
  3974. 'n'
  3975. section is not loaded
  3976. 'w'
  3977. writable section
  3978. 'd'
  3979. data section
  3980. 'e'
  3981. exclude section from linking
  3982. 'r'
  3983. read-only section
  3984. 'x'
  3985. executable section
  3986. 's'
  3987. shared section (meaningful for PE targets)
  3988. 'a'
  3989. ignored. (For compatibility with the ELF version)
  3990. 'y'
  3991. section is not readable (meaningful for PE targets)
  3992. '0-9'
  3993. single-digit power-of-two section alignment (GNU extension)
  3994. If no flags are specified, the default flags depend upon the section
  3995. name. If the section name is not recognized, the default will be for
  3996. the section to be loaded and writable. Note the 'n' and 'w' flags
  3997. remove attributes from the section, rather than adding them, so if they
  3998. are used on their own it will be as if no flags had been specified at
  3999. all.
  4000. If the optional argument to the '.section' directive is not quoted,
  4001. it is taken as a subsection number (*note Sub-Sections::).
  4002. ELF Version
  4003. -----------
  4004. This is one of the ELF section stack manipulation directives. The
  4005. others are '.subsection' (*note SubSection::), '.pushsection' (*note
  4006. PushSection::), '.popsection' (*note PopSection::), and '.previous'
  4007. (*note Previous::).
  4008. For ELF targets, the '.section' directive is used like this:
  4009. .section NAME [, "FLAGS"[, @TYPE[,FLAG_SPECIFIC_ARGUMENTS]]]
  4010. If the '--sectname-subst' command-line option is provided, the NAME
  4011. argument may contain a substitution sequence. Only '%S' is supported at
  4012. the moment, and substitutes the current section name. For example:
  4013. .macro exception_code
  4014. .section %S.exception
  4015. [exception code here]
  4016. .previous
  4017. .endm
  4018. .text
  4019. [code]
  4020. exception_code
  4021. [...]
  4022. .section .init
  4023. [init code]
  4024. exception_code
  4025. [...]
  4026. The two 'exception_code' invocations above would create the
  4027. '.text.exception' and '.init.exception' sections respectively. This is
  4028. useful e.g. to discriminate between ancillary sections that are tied to
  4029. setup code to be discarded after use from ancillary sections that need
  4030. to stay resident without having to define multiple 'exception_code'
  4031. macros just for that purpose.
  4032. The optional FLAGS argument is a quoted string which may contain any
  4033. combination of the following characters:
  4034. 'a'
  4035. section is allocatable
  4036. 'd'
  4037. section is a GNU_MBIND section
  4038. 'e'
  4039. section is excluded from executable and shared library.
  4040. 'w'
  4041. section is writable
  4042. 'x'
  4043. section is executable
  4044. 'M'
  4045. section is mergeable
  4046. 'S'
  4047. section contains zero terminated strings
  4048. 'G'
  4049. section is a member of a section group
  4050. 'T'
  4051. section is used for thread-local-storage
  4052. '?'
  4053. section is a member of the previously-current section's group, if
  4054. any
  4055. '<number>'
  4056. a numeric value indicating the bits to be set in the ELF section
  4057. header's flags field. Note - if one or more of the alphabetic
  4058. characters described above is also included in the flags field,
  4059. their bit values will be ORed into the resulting value.
  4060. '<target specific>'
  4061. some targets extend this list with their own flag characters
  4062. Note - once a section's flags have been set they cannot be changed.
  4063. There are a few exceptions to this rule however. Processor and
  4064. application specific flags can be added to an already defined section.
  4065. The '.interp', '.strtab' and '.symtab' sections can have the allocate
  4066. flag ('a') set after they are initially defined, and the
  4067. '.note-GNU-stack' section may have the executable ('x') flag added.
  4068. The optional TYPE argument may contain one of the following
  4069. constants:
  4070. '@progbits'
  4071. section contains data
  4072. '@nobits'
  4073. section does not contain data (i.e., section only occupies space)
  4074. '@note'
  4075. section contains data which is used by things other than the
  4076. program
  4077. '@init_array'
  4078. section contains an array of pointers to init functions
  4079. '@fini_array'
  4080. section contains an array of pointers to finish functions
  4081. '@preinit_array'
  4082. section contains an array of pointers to pre-init functions
  4083. '@<number>'
  4084. a numeric value to be set as the ELF section header's type field.
  4085. '@<target specific>'
  4086. some targets extend this list with their own types
  4087. Many targets only support the first three section types. The type
  4088. may be enclosed in double quotes if necessary.
  4089. Note on targets where the '@' character is the start of a comment (eg
  4090. ARM) then another character is used instead. For example the ARM port
  4091. uses the '%' character.
  4092. Note - some sections, eg '.text' and '.data' are considered to be
  4093. special and have fixed types. Any attempt to declare them with a
  4094. different type will generate an error from the assembler.
  4095. If FLAGS contains the 'M' symbol then the TYPE argument must be
  4096. specified as well as an extra argument--ENTSIZE--like this:
  4097. .section NAME , "FLAGS"M, @TYPE, ENTSIZE
  4098. Sections with the 'M' flag but not 'S' flag must contain fixed size
  4099. constants, each ENTSIZE octets long. Sections with both 'M' and 'S'
  4100. must contain zero terminated strings where each character is ENTSIZE
  4101. bytes long. The linker may remove duplicates within sections with the
  4102. same name, same entity size and same flags. ENTSIZE must be an absolute
  4103. expression. For sections with both 'M' and 'S', a string which is a
  4104. suffix of a larger string is considered a duplicate. Thus '"def"' will
  4105. be merged with '"abcdef"'; A reference to the first '"def"' will be
  4106. changed to a reference to '"abcdef"+3'.
  4107. If FLAGS contains the 'G' symbol then the TYPE argument must be
  4108. present along with an additional field like this:
  4109. .section NAME , "FLAGS"G, @TYPE, GROUPNAME[, LINKAGE]
  4110. The GROUPNAME field specifies the name of the section group to which
  4111. this particular section belongs. The optional linkage field can
  4112. contain:
  4113. 'comdat'
  4114. indicates that only one copy of this section should be retained
  4115. '.gnu.linkonce'
  4116. an alias for comdat
  4117. Note: if both the M and G flags are present then the fields for the
  4118. Merge flag should come first, like this:
  4119. .section NAME , "FLAGS"MG, @TYPE, ENTSIZE, GROUPNAME[, LINKAGE]
  4120. If FLAGS contains the '?' symbol then it may not also contain the 'G'
  4121. symbol and the GROUPNAME or LINKAGE fields should not be present.
  4122. Instead, '?' says to consider the section that's current before this
  4123. directive. If that section used 'G', then the new section will use 'G'
  4124. with those same GROUPNAME and LINKAGE fields implicitly. If not, then
  4125. the '?' symbol has no effect.
  4126. If no flags are specified, the default flags depend upon the section
  4127. name. If the section name is not recognized, the default will be for
  4128. the section to have none of the above flags: it will not be allocated in
  4129. memory, nor writable, nor executable. The section will contain data.
  4130. For ELF targets, the assembler supports another type of '.section'
  4131. directive for compatibility with the Solaris assembler:
  4132. .section "NAME"[, FLAGS...]
  4133. Note that the section name is quoted. There may be a sequence of
  4134. comma separated flags:
  4135. '#alloc'
  4136. section is allocatable
  4137. '#write'
  4138. section is writable
  4139. '#execinstr'
  4140. section is executable
  4141. '#exclude'
  4142. section is excluded from executable and shared library.
  4143. '#tls'
  4144. section is used for thread local storage
  4145. This directive replaces the current section and subsection. See the
  4146. contents of the gas testsuite directory 'gas/testsuite/gas/elf' for some
  4147. examples of how this directive and the other section stack directives
  4148. work.
  4149. 
  4150. File: as.info, Node: Set, Next: Short, Prev: Section, Up: Pseudo Ops
  4151. 7.83 '.set SYMBOL, EXPRESSION'
  4152. ==============================
  4153. Set the value of SYMBOL to EXPRESSION. This changes SYMBOL's value and
  4154. type to conform to EXPRESSION. If SYMBOL was flagged as external, it
  4155. remains flagged (*note Symbol Attributes::).
  4156. You may '.set' a symbol many times in the same assembly provided that
  4157. the values given to the symbol are constants. Values that are based on
  4158. expressions involving other symbols are allowed, but some targets may
  4159. restrict this to only being done once per assembly. This is because
  4160. those targets do not set the addresses of symbols at assembly time, but
  4161. rather delay the assignment until a final link is performed. This
  4162. allows the linker a chance to change the code in the files, changing the
  4163. location of, and the relative distance between, various different
  4164. symbols.
  4165. If you '.set' a global symbol, the value stored in the object file is
  4166. the last value stored into it.
  4167. On Z80 'set' is a real instruction, use 'SYMBOL defl EXPRESSION'
  4168. instead.
  4169. 
  4170. File: as.info, Node: Short, Next: Single, Prev: Set, Up: Pseudo Ops
  4171. 7.84 '.short EXPRESSIONS'
  4172. =========================
  4173. '.short' is normally the same as '.word'. *Note '.word': Word.
  4174. In some configurations, however, '.short' and '.word' generate
  4175. numbers of different lengths. *Note Machine Dependencies::.
  4176. 
  4177. File: as.info, Node: Single, Next: Size, Prev: Short, Up: Pseudo Ops
  4178. 7.85 '.single FLONUMS'
  4179. ======================
  4180. This directive assembles zero or more flonums, separated by commas. It
  4181. has the same effect as '.float'. The exact kind of floating point
  4182. numbers emitted depends on how 'as' is configured. *Note Machine
  4183. Dependencies::.
  4184. 
  4185. File: as.info, Node: Size, Next: Skip, Prev: Single, Up: Pseudo Ops
  4186. 7.86 '.size'
  4187. ============
  4188. This directive is used to set the size associated with a symbol.
  4189. COFF Version
  4190. ------------
  4191. For COFF targets, the '.size' directive is only permitted inside
  4192. '.def'/'.endef' pairs. It is used like this:
  4193. .size EXPRESSION
  4194. ELF Version
  4195. -----------
  4196. For ELF targets, the '.size' directive is used like this:
  4197. .size NAME , EXPRESSION
  4198. This directive sets the size associated with a symbol NAME. The size
  4199. in bytes is computed from EXPRESSION which can make use of label
  4200. arithmetic. This directive is typically used to set the size of
  4201. function symbols.
  4202. 
  4203. File: as.info, Node: Skip, Next: Sleb128, Prev: Size, Up: Pseudo Ops
  4204. 7.87 '.skip SIZE [,FILL]'
  4205. =========================
  4206. This directive emits SIZE bytes, each of value FILL. Both SIZE and FILL
  4207. are absolute expressions. If the comma and FILL are omitted, FILL is
  4208. assumed to be zero. This is the same as '.space'.
  4209. 
  4210. File: as.info, Node: Sleb128, Next: Space, Prev: Skip, Up: Pseudo Ops
  4211. 7.88 '.sleb128 EXPRESSIONS'
  4212. ===========================
  4213. SLEB128 stands for "signed little endian base 128." This is a compact,
  4214. variable length representation of numbers used by the DWARF symbolic
  4215. debugging format. *Note '.uleb128': Uleb128.
  4216. 
  4217. File: as.info, Node: Space, Next: Stab, Prev: Sleb128, Up: Pseudo Ops
  4218. 7.89 '.space SIZE [,FILL]'
  4219. ==========================
  4220. This directive emits SIZE bytes, each of value FILL. Both SIZE and FILL
  4221. are absolute expressions. If the comma and FILL are omitted, FILL is
  4222. assumed to be zero. This is the same as '.skip'.
  4223. _Warning:_ '.space' has a completely different meaning for HPPA
  4224. targets; use '.block' as a substitute. See 'HP9000 Series 800
  4225. Assembly Language Reference Manual' (HP 92432-90001) for the
  4226. meaning of the '.space' directive. *Note HPPA Assembler
  4227. Directives: HPPA Directives, for a summary.
  4228. 
  4229. File: as.info, Node: Stab, Next: String, Prev: Space, Up: Pseudo Ops
  4230. 7.90 '.stabd, .stabn, .stabs'
  4231. =============================
  4232. There are three directives that begin '.stab'. All emit symbols (*note
  4233. Symbols::), for use by symbolic debuggers. The symbols are not entered
  4234. in the 'as' hash table: they cannot be referenced elsewhere in the
  4235. source file. Up to five fields are required:
  4236. STRING
  4237. This is the symbol's name. It may contain any character except
  4238. '\000', so is more general than ordinary symbol names. Some
  4239. debuggers used to code arbitrarily complex structures into symbol
  4240. names using this field.
  4241. TYPE
  4242. An absolute expression. The symbol's type is set to the low 8 bits
  4243. of this expression. Any bit pattern is permitted, but 'ld' and
  4244. debuggers choke on silly bit patterns.
  4245. OTHER
  4246. An absolute expression. The symbol's "other" attribute is set to
  4247. the low 8 bits of this expression.
  4248. DESC
  4249. An absolute expression. The symbol's descriptor is set to the low
  4250. 16 bits of this expression.
  4251. VALUE
  4252. An absolute expression which becomes the symbol's value.
  4253. If a warning is detected while reading a '.stabd', '.stabn', or
  4254. '.stabs' statement, the symbol has probably already been created; you
  4255. get a half-formed symbol in your object file. This is compatible with
  4256. earlier assemblers!
  4257. '.stabd TYPE , OTHER , DESC'
  4258. The "name" of the symbol generated is not even an empty string. It
  4259. is a null pointer, for compatibility. Older assemblers used a null
  4260. pointer so they didn't waste space in object files with empty
  4261. strings.
  4262. The symbol's value is set to the location counter, relocatably.
  4263. When your program is linked, the value of this symbol is the
  4264. address of the location counter when the '.stabd' was assembled.
  4265. '.stabn TYPE , OTHER , DESC , VALUE'
  4266. The name of the symbol is set to the empty string '""'.
  4267. '.stabs STRING , TYPE , OTHER , DESC , VALUE'
  4268. All five fields are specified.
  4269. 
  4270. File: as.info, Node: String, Next: Struct, Prev: Stab, Up: Pseudo Ops
  4271. 7.91 '.string' "STR", '.string8' "STR", '.string16'
  4272. ===================================================
  4273. "STR", '.string32' "STR", '.string64' "STR"
  4274. Copy the characters in STR to the object file. You may specify more
  4275. than one string to copy, separated by commas. Unless otherwise
  4276. specified for a particular machine, the assembler marks the end of each
  4277. string with a 0 byte. You can use any of the escape sequences described
  4278. in *note Strings: Strings.
  4279. The variants 'string16', 'string32' and 'string64' differ from the
  4280. 'string' pseudo opcode in that each 8-bit character from STR is copied
  4281. and expanded to 16, 32 or 64 bits respectively. The expanded characters
  4282. are stored in target endianness byte order.
  4283. Example:
  4284. .string32 "BYE"
  4285. expands to:
  4286. .string "B\0\0\0Y\0\0\0E\0\0\0" /* On little endian targets. */
  4287. .string "\0\0\0B\0\0\0Y\0\0\0E" /* On big endian targets. */
  4288. 
  4289. File: as.info, Node: Struct, Next: SubSection, Prev: String, Up: Pseudo Ops
  4290. 7.92 '.struct EXPRESSION'
  4291. =========================
  4292. Switch to the absolute section, and set the section offset to
  4293. EXPRESSION, which must be an absolute expression. You might use this as
  4294. follows:
  4295. .struct 0
  4296. field1:
  4297. .struct field1 + 4
  4298. field2:
  4299. .struct field2 + 4
  4300. field3:
  4301. This would define the symbol 'field1' to have the value 0, the symbol
  4302. 'field2' to have the value 4, and the symbol 'field3' to have the value
  4303. 8. Assembly would be left in the absolute section, and you would need
  4304. to use a '.section' directive of some sort to change to some other
  4305. section before further assembly.
  4306. 
  4307. File: as.info, Node: SubSection, Next: Symver, Prev: Struct, Up: Pseudo Ops
  4308. 7.93 '.subsection NAME'
  4309. =======================
  4310. This is one of the ELF section stack manipulation directives. The
  4311. others are '.section' (*note Section::), '.pushsection' (*note
  4312. PushSection::), '.popsection' (*note PopSection::), and '.previous'
  4313. (*note Previous::).
  4314. This directive replaces the current subsection with 'name'. The
  4315. current section is not changed. The replaced subsection is put onto the
  4316. section stack in place of the then current top of stack subsection.
  4317. 
  4318. File: as.info, Node: Symver, Next: Tag, Prev: SubSection, Up: Pseudo Ops
  4319. 7.94 '.symver'
  4320. ==============
  4321. Use the '.symver' directive to bind symbols to specific version nodes
  4322. within a source file. This is only supported on ELF platforms, and is
  4323. typically used when assembling files to be linked into a shared library.
  4324. There are cases where it may make sense to use this in objects to be
  4325. bound into an application itself so as to override a versioned symbol
  4326. from a shared library.
  4327. For ELF targets, the '.symver' directive can be used like this:
  4328. .symver NAME, NAME2@NODENAME
  4329. If the symbol NAME is defined within the file being assembled, the
  4330. '.symver' directive effectively creates a symbol alias with the name
  4331. NAME2@NODENAME, and in fact the main reason that we just don't try and
  4332. create a regular alias is that the @ character isn't permitted in symbol
  4333. names. The NAME2 part of the name is the actual name of the symbol by
  4334. which it will be externally referenced. The name NAME itself is merely
  4335. a name of convenience that is used so that it is possible to have
  4336. definitions for multiple versions of a function within a single source
  4337. file, and so that the compiler can unambiguously know which version of a
  4338. function is being mentioned. The NODENAME portion of the alias should
  4339. be the name of a node specified in the version script supplied to the
  4340. linker when building a shared library. If you are attempting to
  4341. override a versioned symbol from a shared library, then NODENAME should
  4342. correspond to the nodename of the symbol you are trying to override.
  4343. If the symbol NAME is not defined within the file being assembled,
  4344. all references to NAME will be changed to NAME2@NODENAME. If no
  4345. reference to NAME is made, NAME2@NODENAME will be removed from the
  4346. symbol table.
  4347. Another usage of the '.symver' directive is:
  4348. .symver NAME, NAME2@@NODENAME
  4349. In this case, the symbol NAME must exist and be defined within the
  4350. file being assembled. It is similar to NAME2@NODENAME. The difference
  4351. is NAME2@@NODENAME will also be used to resolve references to NAME2 by
  4352. the linker.
  4353. The third usage of the '.symver' directive is:
  4354. .symver NAME, NAME2@@@NODENAME
  4355. When NAME is not defined within the file being assembled, it is
  4356. treated as NAME2@NODENAME. When NAME is defined within the file being
  4357. assembled, the symbol name, NAME, will be changed to NAME2@@NODENAME.
  4358. 
  4359. File: as.info, Node: Tag, Next: Text, Prev: Symver, Up: Pseudo Ops
  4360. 7.95 '.tag STRUCTNAME'
  4361. ======================
  4362. This directive is generated by compilers to include auxiliary debugging
  4363. information in the symbol table. It is only permitted inside
  4364. '.def'/'.endef' pairs. Tags are used to link structure definitions in
  4365. the symbol table with instances of those structures.
  4366. 
  4367. File: as.info, Node: Text, Next: Title, Prev: Tag, Up: Pseudo Ops
  4368. 7.96 '.text SUBSECTION'
  4369. =======================
  4370. Tells 'as' to assemble the following statements onto the end of the text
  4371. subsection numbered SUBSECTION, which is an absolute expression. If
  4372. SUBSECTION is omitted, subsection number zero is used.
  4373. 
  4374. File: as.info, Node: Title, Next: Type, Prev: Text, Up: Pseudo Ops
  4375. 7.97 '.title "HEADING"'
  4376. =======================
  4377. Use HEADING as the title (second line, immediately after the source file
  4378. name and pagenumber) when generating assembly listings.
  4379. This directive affects subsequent pages, as well as the current page
  4380. if it appears within ten lines of the top of a page.
  4381. 
  4382. File: as.info, Node: Type, Next: Uleb128, Prev: Title, Up: Pseudo Ops
  4383. 7.98 '.type'
  4384. ============
  4385. This directive is used to set the type of a symbol.
  4386. COFF Version
  4387. ------------
  4388. For COFF targets, this directive is permitted only within
  4389. '.def'/'.endef' pairs. It is used like this:
  4390. .type INT
  4391. This records the integer INT as the type attribute of a symbol table
  4392. entry.
  4393. ELF Version
  4394. -----------
  4395. For ELF targets, the '.type' directive is used like this:
  4396. .type NAME , TYPE DESCRIPTION
  4397. This sets the type of symbol NAME to be either a function symbol or
  4398. an object symbol. There are five different syntaxes supported for the
  4399. TYPE DESCRIPTION field, in order to provide compatibility with various
  4400. other assemblers.
  4401. Because some of the characters used in these syntaxes (such as '@'
  4402. and '#') are comment characters for some architectures, some of the
  4403. syntaxes below do not work on all architectures. The first variant will
  4404. be accepted by the GNU assembler on all architectures so that variant
  4405. should be used for maximum portability, if you do not need to assemble
  4406. your code with other assemblers.
  4407. The syntaxes supported are:
  4408. .type <name> STT_<TYPE_IN_UPPER_CASE>
  4409. .type <name>,#<type>
  4410. .type <name>,@<type>
  4411. .type <name>,%<type>
  4412. .type <name>,"<type>"
  4413. The types supported are:
  4414. 'STT_FUNC'
  4415. 'function'
  4416. Mark the symbol as being a function name.
  4417. 'STT_GNU_IFUNC'
  4418. 'gnu_indirect_function'
  4419. Mark the symbol as an indirect function when evaluated during reloc
  4420. processing. (This is only supported on assemblers targeting GNU
  4421. systems).
  4422. 'STT_OBJECT'
  4423. 'object'
  4424. Mark the symbol as being a data object.
  4425. 'STT_TLS'
  4426. 'tls_object'
  4427. Mark the symbol as being a thread-local data object.
  4428. 'STT_COMMON'
  4429. 'common'
  4430. Mark the symbol as being a common data object.
  4431. 'STT_NOTYPE'
  4432. 'notype'
  4433. Does not mark the symbol in any way. It is supported just for
  4434. completeness.
  4435. 'gnu_unique_object'
  4436. Marks the symbol as being a globally unique data object. The
  4437. dynamic linker will make sure that in the entire process there is
  4438. just one symbol with this name and type in use. (This is only
  4439. supported on assemblers targeting GNU systems).
  4440. Changing between incompatible types other than from/to STT_NOTYPE
  4441. will result in a diagnostic. An intermediate change to STT_NOTYPE will
  4442. silence this.
  4443. Note: Some targets support extra types in addition to those listed
  4444. above.
  4445. 
  4446. File: as.info, Node: Uleb128, Next: Val, Prev: Type, Up: Pseudo Ops
  4447. 7.99 '.uleb128 EXPRESSIONS'
  4448. ===========================
  4449. ULEB128 stands for "unsigned little endian base 128." This is a
  4450. compact, variable length representation of numbers used by the DWARF
  4451. symbolic debugging format. *Note '.sleb128': Sleb128.
  4452. 
  4453. File: as.info, Node: Val, Next: Version, Prev: Uleb128, Up: Pseudo Ops
  4454. 7.100 '.val ADDR'
  4455. =================
  4456. This directive, permitted only within '.def'/'.endef' pairs, records the
  4457. address ADDR as the value attribute of a symbol table entry.
  4458. 
  4459. File: as.info, Node: Version, Next: VTableEntry, Prev: Val, Up: Pseudo Ops
  4460. 7.101 '.version "STRING"'
  4461. =========================
  4462. This directive creates a '.note' section and places into it an ELF
  4463. formatted note of type NT_VERSION. The note's name is set to 'string'.
  4464. 
  4465. File: as.info, Node: VTableEntry, Next: VTableInherit, Prev: Version, Up: Pseudo Ops
  4466. 7.102 '.vtable_entry TABLE, OFFSET'
  4467. ===================================
  4468. This directive finds or creates a symbol 'table' and creates a
  4469. 'VTABLE_ENTRY' relocation for it with an addend of 'offset'.
  4470. 
  4471. File: as.info, Node: VTableInherit, Next: Warning, Prev: VTableEntry, Up: Pseudo Ops
  4472. 7.103 '.vtable_inherit CHILD, PARENT'
  4473. =====================================
  4474. This directive finds the symbol 'child' and finds or creates the symbol
  4475. 'parent' and then creates a 'VTABLE_INHERIT' relocation for the parent
  4476. whose addend is the value of the child symbol. As a special case the
  4477. parent name of '0' is treated as referring to the '*ABS*' section.
  4478. 
  4479. File: as.info, Node: Warning, Next: Weak, Prev: VTableInherit, Up: Pseudo Ops
  4480. 7.104 '.warning "STRING"'
  4481. =========================
  4482. Similar to the directive '.error' (*note '.error "STRING"': Error.), but
  4483. just emits a warning.
  4484. 
  4485. File: as.info, Node: Weak, Next: Weakref, Prev: Warning, Up: Pseudo Ops
  4486. 7.105 '.weak NAMES'
  4487. ===================
  4488. This directive sets the weak attribute on the comma separated list of
  4489. symbol 'names'. If the symbols do not already exist, they will be
  4490. created.
  4491. On COFF targets other than PE, weak symbols are a GNU extension.
  4492. This directive sets the weak attribute on the comma separated list of
  4493. symbol 'names'. If the symbols do not already exist, they will be
  4494. created.
  4495. On the PE target, weak symbols are supported natively as weak
  4496. aliases. When a weak symbol is created that is not an alias, GAS
  4497. creates an alternate symbol to hold the default value.
  4498. 
  4499. File: as.info, Node: Weakref, Next: Word, Prev: Weak, Up: Pseudo Ops
  4500. 7.106 '.weakref ALIAS, TARGET'
  4501. ==============================
  4502. This directive creates an alias to the target symbol that enables the
  4503. symbol to be referenced with weak-symbol semantics, but without actually
  4504. making it weak. If direct references or definitions of the symbol are
  4505. present, then the symbol will not be weak, but if all references to it
  4506. are through weak references, the symbol will be marked as weak in the
  4507. symbol table.
  4508. The effect is equivalent to moving all references to the alias to a
  4509. separate assembly source file, renaming the alias to the symbol in it,
  4510. declaring the symbol as weak there, and running a reloadable link to
  4511. merge the object files resulting from the assembly of the new source
  4512. file and the old source file that had the references to the alias
  4513. removed.
  4514. The alias itself never makes to the symbol table, and is entirely
  4515. handled within the assembler.
  4516. 
  4517. File: as.info, Node: Word, Next: Zero, Prev: Weakref, Up: Pseudo Ops
  4518. 7.107 '.word EXPRESSIONS'
  4519. =========================
  4520. This directive expects zero or more EXPRESSIONS, of any section,
  4521. separated by commas.
  4522. The size of the number emitted, and its byte order, depend on what
  4523. target computer the assembly is for.
  4524. _Warning: Special Treatment to support Compilers_
  4525. Machines with a 32-bit address space, but that do less than 32-bit
  4526. addressing, require the following special treatment. If the machine of
  4527. interest to you does 32-bit addressing (or doesn't require it; *note
  4528. Machine Dependencies::), you can ignore this issue.
  4529. In order to assemble compiler output into something that works, 'as'
  4530. occasionally does strange things to '.word' directives. Directives of
  4531. the form '.word sym1-sym2' are often emitted by compilers as part of
  4532. jump tables. Therefore, when 'as' assembles a directive of the form
  4533. '.word sym1-sym2', and the difference between 'sym1' and 'sym2' does not
  4534. fit in 16 bits, 'as' creates a "secondary jump table", immediately
  4535. before the next label. This secondary jump table is preceded by a
  4536. short-jump to the first byte after the secondary table. This short-jump
  4537. prevents the flow of control from accidentally falling into the new
  4538. table. Inside the table is a long-jump to 'sym2'. The original '.word'
  4539. contains 'sym1' minus the address of the long-jump to 'sym2'.
  4540. If there were several occurrences of '.word sym1-sym2' before the
  4541. secondary jump table, all of them are adjusted. If there was a '.word
  4542. sym3-sym4', that also did not fit in sixteen bits, a long-jump to 'sym4'
  4543. is included in the secondary jump table, and the '.word' directives are
  4544. adjusted to contain 'sym3' minus the address of the long-jump to 'sym4';
  4545. and so on, for as many entries in the original jump table as necessary.
  4546. 
  4547. File: as.info, Node: Zero, Next: 2byte, Prev: Word, Up: Pseudo Ops
  4548. 7.108 '.zero SIZE'
  4549. ==================
  4550. This directive emits SIZE 0-valued bytes. SIZE must be an absolute
  4551. expression. This directive is actually an alias for the '.skip'
  4552. directive so it can take an optional second argument of the value to
  4553. store in the bytes instead of zero. Using '.zero' in this way would be
  4554. confusing however.
  4555. 
  4556. File: as.info, Node: 2byte, Next: 4byte, Prev: Zero, Up: Pseudo Ops
  4557. 7.109 '.2byte EXPRESSION [, EXPRESSION]*'
  4558. =========================================
  4559. This directive expects zero or more expressions, separated by commas.
  4560. If there are no expressions then the directive does nothing. Otherwise
  4561. each expression is evaluated in turn and placed in the next two bytes of
  4562. the current output section, using the endian model of the target. If an
  4563. expression will not fit in two bytes, a warning message is displayed and
  4564. the least significant two bytes of the expression's value are used. If
  4565. an expression cannot be evaluated at assembly time then relocations will
  4566. be generated in order to compute the value at link time.
  4567. This directive does not apply any alignment before or after inserting
  4568. the values. As a result of this, if relocations are generated, they may
  4569. be different from those used for inserting values with a guaranteed
  4570. alignment.
  4571. This directive is only available for ELF targets,
  4572. 
  4573. File: as.info, Node: 4byte, Next: 8byte, Prev: 2byte, Up: Pseudo Ops
  4574. 7.110 '.4byte EXPRESSION [, EXPRESSION]*'
  4575. =========================================
  4576. Like the '.2byte' directive, except that it inserts unaligned, four byte
  4577. long values into the output.
  4578. 
  4579. File: as.info, Node: 8byte, Next: Deprecated, Prev: 4byte, Up: Pseudo Ops
  4580. 7.111 '.8byte EXPRESSION [, EXPRESSION]*'
  4581. =========================================
  4582. Like the '.2byte' directive, except that it inserts unaligned, eight
  4583. byte long bignum values into the output.
  4584. 
  4585. File: as.info, Node: Deprecated, Prev: 8byte, Up: Pseudo Ops
  4586. 7.112 Deprecated Directives
  4587. ===========================
  4588. One day these directives won't work. They are included for
  4589. compatibility with older assemblers.
  4590. .abort
  4591. .line
  4592. 
  4593. File: as.info, Node: Object Attributes, Next: Machine Dependencies, Prev: Pseudo Ops, Up: Top
  4594. 8 Object Attributes
  4595. *******************
  4596. 'as' assembles source files written for a specific architecture into
  4597. object files for that architecture. But not all object files are alike.
  4598. Many architectures support incompatible variations. For instance,
  4599. floating point arguments might be passed in floating point registers if
  4600. the object file requires hardware floating point support--or floating
  4601. point arguments might be passed in integer registers if the object file
  4602. supports processors with no hardware floating point unit. Or, if two
  4603. objects are built for different generations of the same architecture,
  4604. the combination may require the newer generation at run-time.
  4605. This information is useful during and after linking. At link time,
  4606. 'ld' can warn about incompatible object files. After link time, tools
  4607. like 'gdb' can use it to process the linked file correctly.
  4608. Compatibility information is recorded as a series of object
  4609. attributes. Each attribute has a "vendor", "tag", and "value". The
  4610. vendor is a string, and indicates who sets the meaning of the tag. The
  4611. tag is an integer, and indicates what property the attribute describes.
  4612. The value may be a string or an integer, and indicates how the property
  4613. affects this object. Missing attributes are the same as attributes with
  4614. a zero value or empty string value.
  4615. Object attributes were developed as part of the ABI for the ARM
  4616. Architecture. The file format is documented in 'ELF for the ARM
  4617. Architecture'.
  4618. * Menu:
  4619. * GNU Object Attributes:: GNU Object Attributes
  4620. * Defining New Object Attributes:: Defining New Object Attributes
  4621. 
  4622. File: as.info, Node: GNU Object Attributes, Next: Defining New Object Attributes, Up: Object Attributes
  4623. 8.1 GNU Object Attributes
  4624. =========================
  4625. The '.gnu_attribute' directive records an object attribute with vendor
  4626. 'gnu'.
  4627. Except for 'Tag_compatibility', which has both an integer and a
  4628. string for its value, GNU attributes have a string value if the tag
  4629. number is odd and an integer value if the tag number is even. The
  4630. second bit ('TAG & 2' is set for architecture-independent attributes and
  4631. clear for architecture-dependent ones.
  4632. 8.1.1 Common GNU attributes
  4633. ---------------------------
  4634. These attributes are valid on all architectures.
  4635. Tag_compatibility (32)
  4636. The compatibility attribute takes an integer flag value and a
  4637. vendor name. If the flag value is 0, the file is compatible with
  4638. other toolchains. If it is 1, then the file is only compatible
  4639. with the named toolchain. If it is greater than 1, the file can
  4640. only be processed by other toolchains under some private
  4641. arrangement indicated by the flag value and the vendor name.
  4642. 8.1.2 MIPS Attributes
  4643. ---------------------
  4644. Tag_GNU_MIPS_ABI_FP (4)
  4645. The floating-point ABI used by this object file. The value will
  4646. be:
  4647. * 0 for files not affected by the floating-point ABI.
  4648. * 1 for files using the hardware floating-point ABI with a
  4649. standard double-precision FPU.
  4650. * 2 for files using the hardware floating-point ABI with a
  4651. single-precision FPU.
  4652. * 3 for files using the software floating-point ABI.
  4653. * 4 for files using the deprecated hardware floating-point ABI
  4654. which used 64-bit floating-point registers, 32-bit
  4655. general-purpose registers and increased the number of
  4656. callee-saved floating-point registers.
  4657. * 5 for files using the hardware floating-point ABI with a
  4658. double-precision FPU with either 32-bit or 64-bit
  4659. floating-point registers and 32-bit general-purpose registers.
  4660. * 6 for files using the hardware floating-point ABI with 64-bit
  4661. floating-point registers and 32-bit general-purpose registers.
  4662. * 7 for files using the hardware floating-point ABI with 64-bit
  4663. floating-point registers, 32-bit general-purpose registers and
  4664. a rule that forbids the direct use of odd-numbered
  4665. single-precision floating-point registers.
  4666. 8.1.3 PowerPC Attributes
  4667. ------------------------
  4668. Tag_GNU_Power_ABI_FP (4)
  4669. The floating-point ABI used by this object file. The value will
  4670. be:
  4671. * 0 for files not affected by the floating-point ABI.
  4672. * 1 for files using double-precision hardware floating-point
  4673. ABI.
  4674. * 2 for files using the software floating-point ABI.
  4675. * 3 for files using single-precision hardware floating-point
  4676. ABI.
  4677. Tag_GNU_Power_ABI_Vector (8)
  4678. The vector ABI used by this object file. The value will be:
  4679. * 0 for files not affected by the vector ABI.
  4680. * 1 for files using general purpose registers to pass vectors.
  4681. * 2 for files using AltiVec registers to pass vectors.
  4682. * 3 for files using SPE registers to pass vectors.
  4683. 8.1.4 IBM z Systems Attributes
  4684. ------------------------------
  4685. Tag_GNU_S390_ABI_Vector (8)
  4686. The vector ABI used by this object file. The value will be:
  4687. * 0 for files not affected by the vector ABI.
  4688. * 1 for files using software vector ABI.
  4689. * 2 for files using hardware vector ABI.
  4690. 
  4691. File: as.info, Node: Defining New Object Attributes, Prev: GNU Object Attributes, Up: Object Attributes
  4692. 8.2 Defining New Object Attributes
  4693. ==================================
  4694. If you want to define a new GNU object attribute, here are the places
  4695. you will need to modify. New attributes should be discussed on the
  4696. 'binutils' mailing list.
  4697. * This manual, which is the official register of attributes.
  4698. * The header for your architecture 'include/elf', to define the tag.
  4699. * The 'bfd' support file for your architecture, to merge the
  4700. attribute and issue any appropriate link warnings.
  4701. * Test cases in 'ld/testsuite' for merging and link warnings.
  4702. * 'binutils/readelf.c' to display your attribute.
  4703. * GCC, if you want the compiler to mark the attribute automatically.
  4704. 
  4705. File: as.info, Node: Machine Dependencies, Next: Reporting Bugs, Prev: Object Attributes, Up: Top
  4706. 9 Machine Dependent Features
  4707. ****************************
  4708. The machine instruction sets are (almost by definition) different on
  4709. each machine where 'as' runs. Floating point representations vary as
  4710. well, and 'as' often supports a few additional directives or
  4711. command-line options for compatibility with other assemblers on a
  4712. particular platform. Finally, some versions of 'as' support special
  4713. pseudo-instructions for branch optimization.
  4714. This chapter discusses most of these differences, though it does not
  4715. include details on any machine's instruction set. For details on that
  4716. subject, see the hardware manufacturer's manual.
  4717. * Menu:
  4718. * AArch64-Dependent:: AArch64 Dependent Features
  4719. * Alpha-Dependent:: Alpha Dependent Features
  4720. * ARC-Dependent:: ARC Dependent Features
  4721. * ARM-Dependent:: ARM Dependent Features
  4722. * AVR-Dependent:: AVR Dependent Features
  4723. * Blackfin-Dependent:: Blackfin Dependent Features
  4724. * BPF-Dependent:: BPF Dependent Features
  4725. * CR16-Dependent:: CR16 Dependent Features
  4726. * CRIS-Dependent:: CRIS Dependent Features
  4727. * C-SKY-Dependent:: C-SKY Dependent Features
  4728. * D10V-Dependent:: D10V Dependent Features
  4729. * D30V-Dependent:: D30V Dependent Features
  4730. * Epiphany-Dependent:: EPIPHANY Dependent Features
  4731. * H8/300-Dependent:: Renesas H8/300 Dependent Features
  4732. * HPPA-Dependent:: HPPA Dependent Features
  4733. * i386-Dependent:: Intel 80386 and AMD x86-64 Dependent Features
  4734. * IA-64-Dependent:: Intel IA-64 Dependent Features
  4735. * IP2K-Dependent:: IP2K Dependent Features
  4736. * LM32-Dependent:: LM32 Dependent Features
  4737. * M32C-Dependent:: M32C Dependent Features
  4738. * M32R-Dependent:: M32R Dependent Features
  4739. * M68K-Dependent:: M680x0 Dependent Features
  4740. * M68HC11-Dependent:: M68HC11 and 68HC12 Dependent Features
  4741. * S12Z-Dependent:: S12Z Dependent Features
  4742. * Meta-Dependent :: Meta Dependent Features
  4743. * MicroBlaze-Dependent:: MICROBLAZE Dependent Features
  4744. * MIPS-Dependent:: MIPS Dependent Features
  4745. * MMIX-Dependent:: MMIX Dependent Features
  4746. * MSP430-Dependent:: MSP430 Dependent Features
  4747. * NDS32-Dependent:: Andes NDS32 Dependent Features
  4748. * NiosII-Dependent:: Altera Nios II Dependent Features
  4749. * NS32K-Dependent:: NS32K Dependent Features
  4750. * OpenRISC-Dependent:: OpenRISC 1000 Features
  4751. * PDP-11-Dependent:: PDP-11 Dependent Features
  4752. * PJ-Dependent:: picoJava Dependent Features
  4753. * PPC-Dependent:: PowerPC Dependent Features
  4754. * PRU-Dependent:: PRU Dependent Features
  4755. * RISC-V-Dependent:: RISC-V Dependent Features
  4756. * RL78-Dependent:: RL78 Dependent Features
  4757. * RX-Dependent:: RX Dependent Features
  4758. * S/390-Dependent:: IBM S/390 Dependent Features
  4759. * SCORE-Dependent:: SCORE Dependent Features
  4760. * SH-Dependent:: Renesas / SuperH SH Dependent Features
  4761. * Sparc-Dependent:: SPARC Dependent Features
  4762. * TIC54X-Dependent:: TI TMS320C54x Dependent Features
  4763. * TIC6X-Dependent :: TI TMS320C6x Dependent Features
  4764. * TILE-Gx-Dependent :: Tilera TILE-Gx Dependent Features
  4765. * TILEPro-Dependent :: Tilera TILEPro Dependent Features
  4766. * V850-Dependent:: V850 Dependent Features
  4767. * Vax-Dependent:: VAX Dependent Features
  4768. * Visium-Dependent:: Visium Dependent Features
  4769. * WebAssembly-Dependent:: WebAssembly Dependent Features
  4770. * XGATE-Dependent:: XGATE Dependent Features
  4771. * XSTORMY16-Dependent:: XStormy16 Dependent Features
  4772. * Xtensa-Dependent:: Xtensa Dependent Features
  4773. * Z80-Dependent:: Z80 Dependent Features
  4774. * Z8000-Dependent:: Z8000 Dependent Features
  4775. 
  4776. File: as.info, Node: AArch64-Dependent, Next: Alpha-Dependent, Up: Machine Dependencies
  4777. 9.1 AArch64 Dependent Features
  4778. ==============================
  4779. * Menu:
  4780. * AArch64 Options:: Options
  4781. * AArch64 Extensions:: Extensions
  4782. * AArch64 Syntax:: Syntax
  4783. * AArch64 Floating Point:: Floating Point
  4784. * AArch64 Directives:: AArch64 Machine Directives
  4785. * AArch64 Opcodes:: Opcodes
  4786. * AArch64 Mapping Symbols:: Mapping Symbols
  4787. 
  4788. File: as.info, Node: AArch64 Options, Next: AArch64 Extensions, Up: AArch64-Dependent
  4789. 9.1.1 Options
  4790. -------------
  4791. '-EB'
  4792. This option specifies that the output generated by the assembler
  4793. should be marked as being encoded for a big-endian processor.
  4794. '-EL'
  4795. This option specifies that the output generated by the assembler
  4796. should be marked as being encoded for a little-endian processor.
  4797. '-mabi=ABI'
  4798. Specify which ABI the source code uses. The recognized arguments
  4799. are: 'ilp32' and 'lp64', which decides the generated object file in
  4800. ELF32 and ELF64 format respectively. The default is 'lp64'.
  4801. '-mcpu=PROCESSOR[+EXTENSION...]'
  4802. This option specifies the target processor. The assembler will
  4803. issue an error message if an attempt is made to assemble an
  4804. instruction which will not execute on the target processor. The
  4805. following processor names are recognized: 'cortex-a34',
  4806. 'cortex-a35', 'cortex-a53', 'cortex-a55', 'cortex-a57',
  4807. 'cortex-a65', 'cortex-a65ae', 'cortex-a72', 'cortex-a73',
  4808. 'cortex-a75', 'cortex-a76', 'cortex-a76ae', 'cortex-a77', 'ares',
  4809. 'exynos-m1', 'falkor', 'neoverse-n1', 'neoverse-e1', 'qdf24xx',
  4810. 'saphira', 'thunderx', 'vulcan', 'xgene1' and 'xgene2'. The
  4811. special name 'all' may be used to allow the assembler to accept
  4812. instructions valid for any supported processor, including all
  4813. optional extensions.
  4814. In addition to the basic instruction set, the assembler can be told
  4815. to accept, or restrict, various extension mnemonics that extend the
  4816. processor. *Note AArch64 Extensions::.
  4817. If some implementations of a particular processor can have an
  4818. extension, then then those extensions are automatically enabled.
  4819. Consequently, you will not normally have to specify any additional
  4820. extensions.
  4821. '-march=ARCHITECTURE[+EXTENSION...]'
  4822. This option specifies the target architecture. The assembler will
  4823. issue an error message if an attempt is made to assemble an
  4824. instruction which will not execute on the target architecture. The
  4825. following architecture names are recognized: 'armv8-a',
  4826. 'armv8.1-a', 'armv8.2-a', 'armv8.3-a', 'armv8.4-a' and 'armv8.5-a'.
  4827. If both '-mcpu' and '-march' are specified, the assembler will use
  4828. the setting for '-mcpu'. If neither are specified, the assembler
  4829. will default to '-mcpu=all'.
  4830. The architecture option can be extended with the same instruction
  4831. set extension options as the '-mcpu' option. Unlike '-mcpu',
  4832. extensions are not always enabled by default, *Note AArch64
  4833. Extensions::.
  4834. '-mverbose-error'
  4835. This option enables verbose error messages for AArch64 gas. This
  4836. option is enabled by default.
  4837. '-mno-verbose-error'
  4838. This option disables verbose error messages in AArch64 gas.
  4839. 
  4840. File: as.info, Node: AArch64 Extensions, Next: AArch64 Syntax, Prev: AArch64 Options, Up: AArch64-Dependent
  4841. 9.1.2 Architecture Extensions
  4842. -----------------------------
  4843. The table below lists the permitted architecture extensions that are
  4844. supported by the assembler and the conditions under which they are
  4845. automatically enabled.
  4846. Multiple extensions may be specified, separated by a '+'. Extension
  4847. mnemonics may also be removed from those the assembler accepts. This is
  4848. done by prepending 'no' to the option that adds the extension.
  4849. Extensions that are removed must be listed after all extensions that
  4850. have been added.
  4851. Enabling an extension that requires other extensions will
  4852. automatically cause those extensions to be enabled. Similarly,
  4853. disabling an extension that is required by other extensions will
  4854. automatically cause those extensions to be disabled.
  4855. Extension Minimum Enabled by Description
  4856. Architecture default
  4857. ----------------------------------------------------------------------------
  4858. 'compnum' ARMv8.2-A ARMv8.3-A Enable the complex number SIMD
  4859. or later extensions. This implies 'fp16' and
  4860. 'simd'.
  4861. 'crc' ARMv8-A ARMv8.1-A Enable CRC instructions.
  4862. or later
  4863. 'crypto' ARMv8-A No Enable cryptographic extensions.
  4864. This implies 'fp', 'simd', 'aes' and
  4865. 'sha2'.
  4866. 'aes' ARMv8-A No Enable the AES cryptographic
  4867. extensions. This implies 'fp' and
  4868. 'simd'.
  4869. 'sha2' ARMv8-A No Enable the SHA2 cryptographic
  4870. extensions. This implies 'fp' and
  4871. 'simd'.
  4872. 'sha3' ARMv8.2-A No Enable the ARMv8.2-A SHA2 and SHA3
  4873. cryptographic extensions. This
  4874. implies 'fp', 'simd' and 'sha2'.
  4875. 'sm4' ARMv8.2-A No Enable the ARMv8.2-A SM3 and SM4
  4876. cryptographic extensions. This
  4877. implies 'fp' and 'simd'.
  4878. 'fp' ARMv8-A ARMv8-A or Enable floating-point extensions.
  4879. later
  4880. 'fp16' ARMv8.2-A ARMv8.2-A Enable ARMv8.2 16-bit floating-point
  4881. or later support. This implies 'fp'.
  4882. 'lor' ARMv8-A ARMv8.1-A Enable Limited Ordering Regions
  4883. or later extensions.
  4884. 'lse' ARMv8-A ARMv8.1-A Enable Large System extensions.
  4885. or later
  4886. 'pan' ARMv8-A ARMv8.1-A Enable Privileged Access Never
  4887. or later support.
  4888. 'profile' ARMv8.2-A No Enable statistical profiling
  4889. extensions.
  4890. 'ras' ARMv8-A ARMv8.2-A Enable the Reliability, Availability
  4891. or later and Serviceability extension.
  4892. 'rcpc' ARMv8.2-A ARMv8.3-A Enable the weak release consistency
  4893. or later extension.
  4894. 'rdma' ARMv8-A ARMv8.1-A Enable ARMv8.1 Advanced SIMD
  4895. or later extensions. This implies 'simd'.
  4896. 'simd' ARMv8-A ARMv8-A or Enable Advanced SIMD extensions.
  4897. later This implies 'fp'.
  4898. 'sve' ARMv8.2-A No Enable the Scalable Vector
  4899. Extensions. This implies 'fp16',
  4900. 'simd' and 'compnum'.
  4901. 'dotprod' ARMv8.2-A ARMv8.4-A Enable the Dot Product extension.
  4902. or later This implies 'simd'.
  4903. 'fp16fml' ARMv8.2-A ARMv8.4-A Enable ARMv8.2 16-bit floating-point
  4904. or later multiplication variant support. This
  4905. implies 'fp16'.
  4906. 'sb' ARMv8-A ARMv8.5-A Enable the speculation barrier
  4907. or later instruction sb.
  4908. 'predres' ARMv8-A ARMv8.5-A Enable the Execution and Data and
  4909. or later Prediction instructions.
  4910. 'rng' ARMv8.5-A No Enable ARMv8.5-A random number
  4911. instructions.
  4912. 'ssbs' ARMv8-A ARMv8.5-A Enable Speculative Store Bypassing
  4913. or later Safe state read and write.
  4914. 'memtag' ARMv8.5-A No Enable ARMv8.5-A Memory Tagging
  4915. Extensions.
  4916. 'tme' ARMv8-A No Enable Transactional Memory
  4917. Extensions.
  4918. 'sve2' ARMv8-A No Enable the SVE2 Extension.
  4919. 'sve2-bitperm'ARMv8-A No Enable SVE2 BITPERM Extension.
  4920. 'sve2-sm4'ARMv8-A No Enable SVE2 SM4 Extension.
  4921. 'sve2-aes'ARMv8-A No Enable SVE2 AES Extension. This also
  4922. enables the .Q->.B form of the
  4923. 'pmullt' and 'pmullb' instructions.
  4924. 'sve2-sha3'ARMv8-A No Enable SVE2 SHA3 Extension.
  4925. 
  4926. File: as.info, Node: AArch64 Syntax, Next: AArch64 Floating Point, Prev: AArch64 Extensions, Up: AArch64-Dependent
  4927. 9.1.3 Syntax
  4928. ------------
  4929. * Menu:
  4930. * AArch64-Chars:: Special Characters
  4931. * AArch64-Regs:: Register Names
  4932. * AArch64-Relocations:: Relocations
  4933. 
  4934. File: as.info, Node: AArch64-Chars, Next: AArch64-Regs, Up: AArch64 Syntax
  4935. 9.1.3.1 Special Characters
  4936. ..........................
  4937. The presence of a '//' on a line indicates the start of a comment that
  4938. extends to the end of the current line. If a '#' appears as the first
  4939. character of a line, the whole line is treated as a comment.
  4940. The ';' character can be used instead of a newline to separate
  4941. statements.
  4942. The '#' can be optionally used to indicate immediate operands.
  4943. 
  4944. File: as.info, Node: AArch64-Regs, Next: AArch64-Relocations, Prev: AArch64-Chars, Up: AArch64 Syntax
  4945. 9.1.3.2 Register Names
  4946. ......................
  4947. Please refer to the section '4.4 Register Names' of 'ARMv8 Instruction
  4948. Set Overview', which is available at <http://infocenter.arm.com>.
  4949. 
  4950. File: as.info, Node: AArch64-Relocations, Prev: AArch64-Regs, Up: AArch64 Syntax
  4951. 9.1.3.3 Relocations
  4952. ...................
  4953. Relocations for 'MOVZ' and 'MOVK' instructions can be generated by
  4954. prefixing the label with '#:abs_g2:' etc. For example to load the
  4955. 48-bit absolute address of FOO into x0:
  4956. movz x0, #:abs_g2:foo // bits 32-47, overflow check
  4957. movk x0, #:abs_g1_nc:foo // bits 16-31, no overflow check
  4958. movk x0, #:abs_g0_nc:foo // bits 0-15, no overflow check
  4959. Relocations for 'ADRP', and 'ADD', 'LDR' or 'STR' instructions can be
  4960. generated by prefixing the label with ':pg_hi21:' and '#:lo12:'
  4961. respectively.
  4962. For example to use 33-bit (+/-4GB) pc-relative addressing to load the
  4963. address of FOO into x0:
  4964. adrp x0, :pg_hi21:foo
  4965. add x0, x0, #:lo12:foo
  4966. Or to load the value of FOO into x0:
  4967. adrp x0, :pg_hi21:foo
  4968. ldr x0, [x0, #:lo12:foo]
  4969. Note that ':pg_hi21:' is optional.
  4970. adrp x0, foo
  4971. is equivalent to
  4972. adrp x0, :pg_hi21:foo
  4973. 
  4974. File: as.info, Node: AArch64 Floating Point, Next: AArch64 Directives, Prev: AArch64 Syntax, Up: AArch64-Dependent
  4975. 9.1.4 Floating Point
  4976. --------------------
  4977. The AArch64 architecture uses IEEE floating-point numbers.
  4978. 
  4979. File: as.info, Node: AArch64 Directives, Next: AArch64 Opcodes, Prev: AArch64 Floating Point, Up: AArch64-Dependent
  4980. 9.1.5 AArch64 Machine Directives
  4981. --------------------------------
  4982. '.arch NAME'
  4983. Select the target architecture. Valid values for NAME are the same
  4984. as for the '-march' command-line option.
  4985. Specifying '.arch' clears any previously selected architecture
  4986. extensions.
  4987. '.arch_extension NAME'
  4988. Add or remove an architecture extension to the target architecture.
  4989. Valid values for NAME are the same as those accepted as
  4990. architectural extensions by the '-mcpu' command-line option.
  4991. '.arch_extension' may be used multiple times to add or remove
  4992. extensions incrementally to the architecture being compiled for.
  4993. '.bss'
  4994. This directive switches to the '.bss' section.
  4995. '.cpu NAME'
  4996. Set the target processor. Valid values for NAME are the same as
  4997. those accepted by the '-mcpu=' command-line option.
  4998. '.dword EXPRESSIONS'
  4999. The '.dword' directive produces 64 bit values.
  5000. '.even'
  5001. The '.even' directive aligns the output on the next even byte
  5002. boundary.
  5003. '.float16 VALUE [,...,VALUE_N]'
  5004. Place the half precision floating point representation of one or
  5005. more floating-point values into the current section. The format
  5006. used to encode the floating point values is always the IEEE
  5007. 754-2008 half precision floating point format.
  5008. '.inst EXPRESSIONS'
  5009. Inserts the expressions into the output as if they were
  5010. instructions, rather than data.
  5011. '.ltorg'
  5012. This directive causes the current contents of the literal pool to
  5013. be dumped into the current section (which is assumed to be the
  5014. .text section) at the current location (aligned to a word
  5015. boundary). GAS maintains a separate literal pool for each section
  5016. and each sub-section. The '.ltorg' directive will only affect the
  5017. literal pool of the current section and sub-section. At the end of
  5018. assembly all remaining, un-empty literal pools will automatically
  5019. be dumped.
  5020. Note - older versions of GAS would dump the current literal pool
  5021. any time a section change occurred. This is no longer done, since
  5022. it prevents accurate control of the placement of literal pools.
  5023. '.pool'
  5024. This is a synonym for .ltorg.
  5025. 'NAME .req REGISTER NAME'
  5026. This creates an alias for REGISTER NAME called NAME. For example:
  5027. foo .req w0
  5028. ip0, ip1, lr and fp are automatically defined to alias to X16, X17,
  5029. X30 and X29 respectively.
  5030. '.tlsdescadd'
  5031. Emits a TLSDESC_ADD reloc on the next instruction.
  5032. '.tlsdesccall'
  5033. Emits a TLSDESC_CALL reloc on the next instruction.
  5034. '.tlsdescldr'
  5035. Emits a TLSDESC_LDR reloc on the next instruction.
  5036. '.unreq ALIAS-NAME'
  5037. This undefines a register alias which was previously defined using
  5038. the 'req' directive. For example:
  5039. foo .req w0
  5040. .unreq foo
  5041. An error occurs if the name is undefined. Note - this pseudo op
  5042. can be used to delete builtin in register name aliases (eg 'w0').
  5043. This should only be done if it is really necessary.
  5044. '.variant_pcs SYMBOL'
  5045. This directive marks SYMBOL referencing a function that may follow
  5046. a variant procedure call standard with different register usage
  5047. convention from the base procedure call standard.
  5048. '.xword EXPRESSIONS'
  5049. The '.xword' directive produces 64 bit values. This is the same as
  5050. the '.dword' directive.
  5051. '.cfi_b_key_frame'
  5052. The '.cfi_b_key_frame' directive inserts a 'B' character into the
  5053. CIE corresponding to the current frame's FDE, meaning that its
  5054. return address has been signed with the B-key. If two frames are
  5055. signed with differing keys then they will not share the same CIE.
  5056. This information is intended to be used by the stack unwinder in
  5057. order to properly authenticate return addresses.
  5058. 
  5059. File: as.info, Node: AArch64 Opcodes, Next: AArch64 Mapping Symbols, Prev: AArch64 Directives, Up: AArch64-Dependent
  5060. 9.1.6 Opcodes
  5061. -------------
  5062. GAS implements all the standard AArch64 opcodes. It also implements
  5063. several pseudo opcodes, including several synthetic load instructions.
  5064. 'LDR ='
  5065. ldr <register> , =<expression>
  5066. The constant expression will be placed into the nearest literal
  5067. pool (if it not already there) and a PC-relative LDR instruction
  5068. will be generated.
  5069. For more information on the AArch64 instruction set and assembly
  5070. language notation, see 'ARMv8 Instruction Set Overview' available at
  5071. <http://infocenter.arm.com>.
  5072. 
  5073. File: as.info, Node: AArch64 Mapping Symbols, Prev: AArch64 Opcodes, Up: AArch64-Dependent
  5074. 9.1.7 Mapping Symbols
  5075. ---------------------
  5076. The AArch64 ELF specification requires that special symbols be inserted
  5077. into object files to mark certain features:
  5078. '$x'
  5079. At the start of a region of code containing AArch64 instructions.
  5080. '$d'
  5081. At the start of a region of data.
  5082. 
  5083. File: as.info, Node: Alpha-Dependent, Next: ARC-Dependent, Prev: AArch64-Dependent, Up: Machine Dependencies
  5084. 9.2 Alpha Dependent Features
  5085. ============================
  5086. * Menu:
  5087. * Alpha Notes:: Notes
  5088. * Alpha Options:: Options
  5089. * Alpha Syntax:: Syntax
  5090. * Alpha Floating Point:: Floating Point
  5091. * Alpha Directives:: Alpha Machine Directives
  5092. * Alpha Opcodes:: Opcodes
  5093. 
  5094. File: as.info, Node: Alpha Notes, Next: Alpha Options, Up: Alpha-Dependent
  5095. 9.2.1 Notes
  5096. -----------
  5097. The documentation here is primarily for the ELF object format. 'as'
  5098. also supports the ECOFF and EVAX formats, but features specific to these
  5099. formats are not yet documented.
  5100. 
  5101. File: as.info, Node: Alpha Options, Next: Alpha Syntax, Prev: Alpha Notes, Up: Alpha-Dependent
  5102. 9.2.2 Options
  5103. -------------
  5104. '-mCPU'
  5105. This option specifies the target processor. If an attempt is made
  5106. to assemble an instruction which will not execute on the target
  5107. processor, the assembler may either expand the instruction as a
  5108. macro or issue an error message. This option is equivalent to the
  5109. '.arch' directive.
  5110. The following processor names are recognized: '21064', '21064a',
  5111. '21066', '21068', '21164', '21164a', '21164pc', '21264', '21264a',
  5112. '21264b', 'ev4', 'ev5', 'lca45', 'ev5', 'ev56', 'pca56', 'ev6',
  5113. 'ev67', 'ev68'. The special name 'all' may be used to allow the
  5114. assembler to accept instructions valid for any Alpha processor.
  5115. In order to support existing practice in OSF/1 with respect to
  5116. '.arch', and existing practice within 'MILO' (the Linux ARC
  5117. bootloader), the numbered processor names (e.g. 21064) enable the
  5118. processor-specific PALcode instructions, while the "electro-vlasic"
  5119. names (e.g. 'ev4') do not.
  5120. '-mdebug'
  5121. '-no-mdebug'
  5122. Enables or disables the generation of '.mdebug' encapsulation for
  5123. stabs directives and procedure descriptors. The default is to
  5124. automatically enable '.mdebug' when the first stabs directive is
  5125. seen.
  5126. '-relax'
  5127. This option forces all relocations to be put into the object file,
  5128. instead of saving space and resolving some relocations at assembly
  5129. time. Note that this option does not propagate all symbol
  5130. arithmetic into the object file, because not all symbol arithmetic
  5131. can be represented. However, the option can still be useful in
  5132. specific applications.
  5133. '-replace'
  5134. '-noreplace'
  5135. Enables or disables the optimization of procedure calls, both at
  5136. assemblage and at link time. These options are only available for
  5137. VMS targets and '-replace' is the default. See section 1.4.1 of
  5138. the OpenVMS Linker Utility Manual.
  5139. '-g'
  5140. This option is used when the compiler generates debug information.
  5141. When 'gcc' is using 'mips-tfile' to generate debug information for
  5142. ECOFF, local labels must be passed through to the object file.
  5143. Otherwise this option has no effect.
  5144. '-GSIZE'
  5145. A local common symbol larger than SIZE is placed in '.bss', while
  5146. smaller symbols are placed in '.sbss'.
  5147. '-F'
  5148. '-32addr'
  5149. These options are ignored for backward compatibility.
  5150. 
  5151. File: as.info, Node: Alpha Syntax, Next: Alpha Floating Point, Prev: Alpha Options, Up: Alpha-Dependent
  5152. 9.2.3 Syntax
  5153. ------------
  5154. The assembler syntax closely follow the Alpha Reference Manual;
  5155. assembler directives and general syntax closely follow the OSF/1 and
  5156. OpenVMS syntax, with a few differences for ELF.
  5157. * Menu:
  5158. * Alpha-Chars:: Special Characters
  5159. * Alpha-Regs:: Register Names
  5160. * Alpha-Relocs:: Relocations
  5161. 
  5162. File: as.info, Node: Alpha-Chars, Next: Alpha-Regs, Up: Alpha Syntax
  5163. 9.2.3.1 Special Characters
  5164. ..........................
  5165. '#' is the line comment character. Note that if '#' is the first
  5166. character on a line then it can also be a logical line number directive
  5167. (*note Comments::) or a preprocessor control command (*note
  5168. Preprocessing::).
  5169. ';' can be used instead of a newline to separate statements.
  5170. 
  5171. File: as.info, Node: Alpha-Regs, Next: Alpha-Relocs, Prev: Alpha-Chars, Up: Alpha Syntax
  5172. 9.2.3.2 Register Names
  5173. ......................
  5174. The 32 integer registers are referred to as '$N' or '$rN'. In addition,
  5175. registers 15, 28, 29, and 30 may be referred to by the symbols '$fp',
  5176. '$at', '$gp', and '$sp' respectively.
  5177. The 32 floating-point registers are referred to as '$fN'.
  5178. 
  5179. File: as.info, Node: Alpha-Relocs, Prev: Alpha-Regs, Up: Alpha Syntax
  5180. 9.2.3.3 Relocations
  5181. ...................
  5182. Some of these relocations are available for ECOFF, but mostly only for
  5183. ELF. They are modeled after the relocation format introduced in Digital
  5184. Unix 4.0, but there are additions.
  5185. The format is '!TAG' or '!TAG!NUMBER' where TAG is the name of the
  5186. relocation. In some cases NUMBER is used to relate specific
  5187. instructions.
  5188. The relocation is placed at the end of the instruction like so:
  5189. ldah $0,a($29) !gprelhigh
  5190. lda $0,a($0) !gprellow
  5191. ldq $1,b($29) !literal!100
  5192. ldl $2,0($1) !lituse_base!100
  5193. '!literal'
  5194. '!literal!N'
  5195. Used with an 'ldq' instruction to load the address of a symbol from
  5196. the GOT.
  5197. A sequence number N is optional, and if present is used to pair
  5198. 'lituse' relocations with this 'literal' relocation. The 'lituse'
  5199. relocations are used by the linker to optimize the code based on
  5200. the final location of the symbol.
  5201. Note that these optimizations are dependent on the data flow of the
  5202. program. Therefore, if _any_ 'lituse' is paired with a 'literal'
  5203. relocation, then _all_ uses of the register set by the 'literal'
  5204. instruction must also be marked with 'lituse' relocations. This is
  5205. because the original 'literal' instruction may be deleted or
  5206. transformed into another instruction.
  5207. Also note that there may be a one-to-many relationship between
  5208. 'literal' and 'lituse', but not a many-to-one. That is, if there
  5209. are two code paths that load up the same address and feed the value
  5210. to a single use, then the use may not use a 'lituse' relocation.
  5211. '!lituse_base!N'
  5212. Used with any memory format instruction (e.g. 'ldl') to indicate
  5213. that the literal is used for an address load. The offset field of
  5214. the instruction must be zero. During relaxation, the code may be
  5215. altered to use a gp-relative load.
  5216. '!lituse_jsr!N'
  5217. Used with a register branch format instruction (e.g. 'jsr') to
  5218. indicate that the literal is used for a call. During relaxation,
  5219. the code may be altered to use a direct branch (e.g. 'bsr').
  5220. '!lituse_jsrdirect!N'
  5221. Similar to 'lituse_jsr', but also that this call cannot be vectored
  5222. through a PLT entry. This is useful for functions with special
  5223. calling conventions which do not allow the normal call-clobbered
  5224. registers to be clobbered.
  5225. '!lituse_bytoff!N'
  5226. Used with a byte mask instruction (e.g. 'extbl') to indicate that
  5227. only the low 3 bits of the address are relevant. During
  5228. relaxation, the code may be altered to use an immediate instead of
  5229. a register shift.
  5230. '!lituse_addr!N'
  5231. Used with any other instruction to indicate that the original
  5232. address is in fact used, and the original 'ldq' instruction may not
  5233. be altered or deleted. This is useful in conjunction with
  5234. 'lituse_jsr' to test whether a weak symbol is defined.
  5235. ldq $27,foo($29) !literal!1
  5236. beq $27,is_undef !lituse_addr!1
  5237. jsr $26,($27),foo !lituse_jsr!1
  5238. '!lituse_tlsgd!N'
  5239. Used with a register branch format instruction to indicate that the
  5240. literal is the call to '__tls_get_addr' used to compute the address
  5241. of the thread-local storage variable whose descriptor was loaded
  5242. with '!tlsgd!N'.
  5243. '!lituse_tlsldm!N'
  5244. Used with a register branch format instruction to indicate that the
  5245. literal is the call to '__tls_get_addr' used to compute the address
  5246. of the base of the thread-local storage block for the current
  5247. module. The descriptor for the module must have been loaded with
  5248. '!tlsldm!N'.
  5249. '!gpdisp!N'
  5250. Used with 'ldah' and 'lda' to load the GP from the current address,
  5251. a-la the 'ldgp' macro. The source register for the 'ldah'
  5252. instruction must contain the address of the 'ldah' instruction.
  5253. There must be exactly one 'lda' instruction paired with the 'ldah'
  5254. instruction, though it may appear anywhere in the instruction
  5255. stream. The immediate operands must be zero.
  5256. bsr $26,foo
  5257. ldah $29,0($26) !gpdisp!1
  5258. lda $29,0($29) !gpdisp!1
  5259. '!gprelhigh'
  5260. Used with an 'ldah' instruction to add the high 16 bits of a 32-bit
  5261. displacement from the GP.
  5262. '!gprellow'
  5263. Used with any memory format instruction to add the low 16 bits of a
  5264. 32-bit displacement from the GP.
  5265. '!gprel'
  5266. Used with any memory format instruction to add a 16-bit
  5267. displacement from the GP.
  5268. '!samegp'
  5269. Used with any branch format instruction to skip the GP load at the
  5270. target address. The referenced symbol must have the same GP as the
  5271. source object file, and it must be declared to either not use '$27'
  5272. or perform a standard GP load in the first two instructions via the
  5273. '.prologue' directive.
  5274. '!tlsgd'
  5275. '!tlsgd!N'
  5276. Used with an 'lda' instruction to load the address of a TLS
  5277. descriptor for a symbol in the GOT.
  5278. The sequence number N is optional, and if present it used to pair
  5279. the descriptor load with both the 'literal' loading the address of
  5280. the '__tls_get_addr' function and the 'lituse_tlsgd' marking the
  5281. call to that function.
  5282. For proper relaxation, both the 'tlsgd', 'literal' and 'lituse'
  5283. relocations must be in the same extended basic block. That is, the
  5284. relocation with the lowest address must be executed first at
  5285. runtime.
  5286. '!tlsldm'
  5287. '!tlsldm!N'
  5288. Used with an 'lda' instruction to load the address of a TLS
  5289. descriptor for the current module in the GOT.
  5290. Similar in other respects to 'tlsgd'.
  5291. '!gotdtprel'
  5292. Used with an 'ldq' instruction to load the offset of the TLS symbol
  5293. within its module's thread-local storage block. Also known as the
  5294. dynamic thread pointer offset or dtp-relative offset.
  5295. '!dtprelhi'
  5296. '!dtprello'
  5297. '!dtprel'
  5298. Like 'gprel' relocations except they compute dtp-relative offsets.
  5299. '!gottprel'
  5300. Used with an 'ldq' instruction to load the offset of the TLS symbol
  5301. from the thread pointer. Also known as the tp-relative offset.
  5302. '!tprelhi'
  5303. '!tprello'
  5304. '!tprel'
  5305. Like 'gprel' relocations except they compute tp-relative offsets.
  5306. 
  5307. File: as.info, Node: Alpha Floating Point, Next: Alpha Directives, Prev: Alpha Syntax, Up: Alpha-Dependent
  5308. 9.2.4 Floating Point
  5309. --------------------
  5310. The Alpha family uses both IEEE and VAX floating-point numbers.
  5311. 
  5312. File: as.info, Node: Alpha Directives, Next: Alpha Opcodes, Prev: Alpha Floating Point, Up: Alpha-Dependent
  5313. 9.2.5 Alpha Assembler Directives
  5314. --------------------------------
  5315. 'as' for the Alpha supports many additional directives for compatibility
  5316. with the native assembler. This section describes them only briefly.
  5317. These are the additional directives in 'as' for the Alpha:
  5318. '.arch CPU'
  5319. Specifies the target processor. This is equivalent to the '-mCPU'
  5320. command-line option. *Note Options: Alpha Options, for a list of
  5321. values for CPU.
  5322. '.ent FUNCTION[, N]'
  5323. Mark the beginning of FUNCTION. An optional number may follow for
  5324. compatibility with the OSF/1 assembler, but is ignored. When
  5325. generating '.mdebug' information, this will create a procedure
  5326. descriptor for the function. In ELF, it will mark the symbol as a
  5327. function a-la the generic '.type' directive.
  5328. '.end FUNCTION'
  5329. Mark the end of FUNCTION. In ELF, it will set the size of the
  5330. symbol a-la the generic '.size' directive.
  5331. '.mask MASK, OFFSET'
  5332. Indicate which of the integer registers are saved in the current
  5333. function's stack frame. MASK is interpreted a bit mask in which
  5334. bit N set indicates that register N is saved. The registers are
  5335. saved in a block located OFFSET bytes from the "canonical frame
  5336. address" (CFA) which is the value of the stack pointer on entry to
  5337. the function. The registers are saved sequentially, except that
  5338. the return address register (normally '$26') is saved first.
  5339. This and the other directives that describe the stack frame are
  5340. currently only used when generating '.mdebug' information. They
  5341. may in the future be used to generate DWARF2 '.debug_frame' unwind
  5342. information for hand written assembly.
  5343. '.fmask MASK, OFFSET'
  5344. Indicate which of the floating-point registers are saved in the
  5345. current stack frame. The MASK and OFFSET parameters are
  5346. interpreted as with '.mask'.
  5347. '.frame FRAMEREG, FRAMEOFFSET, RETREG[, ARGOFFSET]'
  5348. Describes the shape of the stack frame. The frame pointer in use
  5349. is FRAMEREG; normally this is either '$fp' or '$sp'. The frame
  5350. pointer is FRAMEOFFSET bytes below the CFA. The return address is
  5351. initially located in RETREG until it is saved as indicated in
  5352. '.mask'. For compatibility with OSF/1 an optional ARGOFFSET
  5353. parameter is accepted and ignored. It is believed to indicate the
  5354. offset from the CFA to the saved argument registers.
  5355. '.prologue N'
  5356. Indicate that the stack frame is set up and all registers have been
  5357. spilled. The argument N indicates whether and how the function
  5358. uses the incoming "procedure vector" (the address of the called
  5359. function) in '$27'. 0 indicates that '$27' is not used; 1
  5360. indicates that the first two instructions of the function use '$27'
  5361. to perform a load of the GP register; 2 indicates that '$27' is
  5362. used in some non-standard way and so the linker cannot elide the
  5363. load of the procedure vector during relaxation.
  5364. '.usepv FUNCTION, WHICH'
  5365. Used to indicate the use of the '$27' register, similar to
  5366. '.prologue', but without the other semantics of needing to be
  5367. inside an open '.ent'/'.end' block.
  5368. The WHICH argument should be either 'no', indicating that '$27' is
  5369. not used, or 'std', indicating that the first two instructions of
  5370. the function perform a GP load.
  5371. One might use this directive instead of '.prologue' if you are also
  5372. using dwarf2 CFI directives.
  5373. '.gprel32 EXPRESSION'
  5374. Computes the difference between the address in EXPRESSION and the
  5375. GP for the current object file, and stores it in 4 bytes. In
  5376. addition to being smaller than a full 8 byte address, this also
  5377. does not require a dynamic relocation when used in a shared
  5378. library.
  5379. '.t_floating EXPRESSION'
  5380. Stores EXPRESSION as an IEEE double precision value.
  5381. '.s_floating EXPRESSION'
  5382. Stores EXPRESSION as an IEEE single precision value.
  5383. '.f_floating EXPRESSION'
  5384. Stores EXPRESSION as a VAX F format value.
  5385. '.g_floating EXPRESSION'
  5386. Stores EXPRESSION as a VAX G format value.
  5387. '.d_floating EXPRESSION'
  5388. Stores EXPRESSION as a VAX D format value.
  5389. '.set FEATURE'
  5390. Enables or disables various assembler features. Using the positive
  5391. name of the feature enables while using 'noFEATURE' disables.
  5392. 'at'
  5393. Indicates that macro expansions may clobber the "assembler
  5394. temporary" ('$at' or '$28') register. Some macros may not be
  5395. expanded without this and will generate an error message if
  5396. 'noat' is in effect. When 'at' is in effect, a warning will
  5397. be generated if '$at' is used by the programmer.
  5398. 'macro'
  5399. Enables the expansion of macro instructions. Note that
  5400. variants of real instructions, such as 'br label' vs 'br
  5401. $31,label' are considered alternate forms and not macros.
  5402. 'move'
  5403. 'reorder'
  5404. 'volatile'
  5405. These control whether and how the assembler may re-order
  5406. instructions. Accepted for compatibility with the OSF/1
  5407. assembler, but 'as' does not do instruction scheduling, so
  5408. these features are ignored.
  5409. The following directives are recognized for compatibility with the
  5410. OSF/1 assembler but are ignored.
  5411. .proc .aproc
  5412. .reguse .livereg
  5413. .option .aent
  5414. .ugen .eflag
  5415. .alias .noalias
  5416. 
  5417. File: as.info, Node: Alpha Opcodes, Prev: Alpha Directives, Up: Alpha-Dependent
  5418. 9.2.6 Opcodes
  5419. -------------
  5420. For detailed information on the Alpha machine instruction set, see the
  5421. Alpha Architecture Handbook
  5422. (ftp://ftp.digital.com/pub/Digital/info/semiconductor/literature/alphaahb.pdf).
  5423. 
  5424. File: as.info, Node: ARC-Dependent, Next: ARM-Dependent, Prev: Alpha-Dependent, Up: Machine Dependencies
  5425. 9.3 ARC Dependent Features
  5426. ==========================
  5427. * Menu:
  5428. * ARC Options:: Options
  5429. * ARC Syntax:: Syntax
  5430. * ARC Directives:: ARC Machine Directives
  5431. * ARC Modifiers:: ARC Assembler Modifiers
  5432. * ARC Symbols:: ARC Pre-defined Symbols
  5433. * ARC Opcodes:: Opcodes
  5434. 
  5435. File: as.info, Node: ARC Options, Next: ARC Syntax, Up: ARC-Dependent
  5436. 9.3.1 Options
  5437. -------------
  5438. The following options control the type of CPU for which code is
  5439. assembled, and generic constraints on the code generated:
  5440. '-mcpu=CPU'
  5441. Set architecture type and register usage for CPU. There are also
  5442. shortcut alias options available for backward compatibility and
  5443. convenience. Supported values for CPU are
  5444. 'arc600'
  5445. Assemble for ARC 600. Aliases: '-mA6', '-mARC600'.
  5446. 'arc600_norm'
  5447. Assemble for ARC 600 with norm instructions.
  5448. 'arc600_mul64'
  5449. Assemble for ARC 600 with mul64 instructions.
  5450. 'arc600_mul32x16'
  5451. Assemble for ARC 600 with mul32x16 instructions.
  5452. 'arc601'
  5453. Assemble for ARC 601. Alias: '-mARC601'.
  5454. 'arc601_norm'
  5455. Assemble for ARC 601 with norm instructions.
  5456. 'arc601_mul64'
  5457. Assemble for ARC 601 with mul64 instructions.
  5458. 'arc601_mul32x16'
  5459. Assemble for ARC 601 with mul32x16 instructions.
  5460. 'arc700'
  5461. Assemble for ARC 700. Aliases: '-mA7', '-mARC700'.
  5462. 'arcem'
  5463. Assemble for ARC EM. Aliases: '-mEM'
  5464. 'em'
  5465. Assemble for ARC EM, identical as arcem variant.
  5466. 'em4'
  5467. Assemble for ARC EM with code-density instructions.
  5468. 'em4_dmips'
  5469. Assemble for ARC EM with code-density instructions.
  5470. 'em4_fpus'
  5471. Assemble for ARC EM with code-density instructions.
  5472. 'em4_fpuda'
  5473. Assemble for ARC EM with code-density, and double-precision
  5474. assist instructions.
  5475. 'quarkse_em'
  5476. Assemble for QuarkSE-EM cpu.
  5477. 'archs'
  5478. Assemble for ARC HS. Aliases: '-mHS', '-mav2hs'.
  5479. 'hs'
  5480. Assemble for ARC HS.
  5481. 'hs34'
  5482. Assemble for ARC HS34.
  5483. 'hs38'
  5484. Assemble for ARC HS38.
  5485. 'hs38_linux'
  5486. Assemble for ARC HS38 with floating point support on.
  5487. 'nps400'
  5488. Assemble for ARC 700 with NPS-400 extended instructions.
  5489. Note: the '.cpu' directive (*note ARC Directives::) can to be used
  5490. to select a core variant from within assembly code.
  5491. '-EB'
  5492. This option specifies that the output generated by the assembler
  5493. should be marked as being encoded for a big-endian processor.
  5494. '-EL'
  5495. This option specifies that the output generated by the assembler
  5496. should be marked as being encoded for a little-endian processor -
  5497. this is the default.
  5498. '-mcode-density'
  5499. This option turns on Code Density instructions. Only valid for ARC
  5500. EM processors.
  5501. '-mrelax'
  5502. Enable support for assembly-time relaxation. The assembler will
  5503. replace a longer version of an instruction with a shorter one,
  5504. whenever it is possible.
  5505. '-mnps400'
  5506. Enable support for NPS-400 extended instructions.
  5507. '-mspfp'
  5508. Enable support for single-precision floating point instructions.
  5509. '-mdpfp'
  5510. Enable support for double-precision floating point instructions.
  5511. '-mfpuda'
  5512. Enable support for double-precision assist floating point
  5513. instructions. Only valid for ARC EM processors.
  5514. 
  5515. File: as.info, Node: ARC Syntax, Next: ARC Directives, Prev: ARC Options, Up: ARC-Dependent
  5516. 9.3.2 Syntax
  5517. ------------
  5518. * Menu:
  5519. * ARC-Chars:: Special Characters
  5520. * ARC-Regs:: Register Names
  5521. 
  5522. File: as.info, Node: ARC-Chars, Next: ARC-Regs, Up: ARC Syntax
  5523. 9.3.2.1 Special Characters
  5524. ..........................
  5525. '%'
  5526. A register name can optionally be prefixed by a '%' character. So
  5527. register '%r0' is equivalent to 'r0' in the assembly code.
  5528. '#'
  5529. The presence of a '#' character within a line (but not at the start
  5530. of a line) indicates the start of a comment that extends to the end
  5531. of the current line.
  5532. _Note:_ if a line starts with a '#' character then it can also be a
  5533. logical line number directive (*note Comments::) or a preprocessor
  5534. control command (*note Preprocessing::).
  5535. '@'
  5536. Prefixing an operand with an '@' specifies that the operand is a
  5537. symbol and not a register. This is how the assembler disambiguates
  5538. the use of an ARC register name as a symbol. So the instruction
  5539. mov r0, @r0
  5540. moves the address of symbol 'r0' into register 'r0'.
  5541. '`'
  5542. The '`' (backtick) character is used to separate statements on a
  5543. single line.
  5544. '-'
  5545. Used as a separator to obtain a sequence of commands from a C
  5546. preprocessor macro.
  5547. 
  5548. File: as.info, Node: ARC-Regs, Prev: ARC-Chars, Up: ARC Syntax
  5549. 9.3.2.2 Register Names
  5550. ......................
  5551. The ARC assembler uses the following register names for its core
  5552. registers:
  5553. 'r0-r31'
  5554. The core general registers. Registers 'r26' through 'r31' have
  5555. special functions, and are usually referred to by those synonyms.
  5556. 'gp'
  5557. The global pointer and a synonym for 'r26'.
  5558. 'fp'
  5559. The frame pointer and a synonym for 'r27'.
  5560. 'sp'
  5561. The stack pointer and a synonym for 'r28'.
  5562. 'ilink1'
  5563. For ARC 600 and ARC 700, the level 1 interrupt link register and a
  5564. synonym for 'r29'. Not supported for ARCv2.
  5565. 'ilink'
  5566. For ARCv2, the interrupt link register and a synonym for 'r29'.
  5567. Not supported for ARC 600 and ARC 700.
  5568. 'ilink2'
  5569. For ARC 600 and ARC 700, the level 2 interrupt link register and a
  5570. synonym for 'r30'. Not supported for ARC v2.
  5571. 'blink'
  5572. The link register and a synonym for 'r31'.
  5573. 'r32-r59'
  5574. The extension core registers.
  5575. 'lp_count'
  5576. The loop count register.
  5577. 'pcl'
  5578. The word aligned program counter.
  5579. In addition the ARC processor has a large number of _auxiliary
  5580. registers_. The precise set depends on the extensions being supported,
  5581. but the following baseline set are always defined:
  5582. 'identity'
  5583. Processor Identification register. Auxiliary register address 0x4.
  5584. 'pc'
  5585. Program Counter. Auxiliary register address 0x6.
  5586. 'status32'
  5587. Status register. Auxiliary register address 0x0a.
  5588. 'bta'
  5589. Branch Target Address. Auxiliary register address 0x412.
  5590. 'ecr'
  5591. Exception Cause Register. Auxiliary register address 0x403.
  5592. 'int_vector_base'
  5593. Interrupt Vector Base address. Auxiliary register address 0x25.
  5594. 'status32_p0'
  5595. Stored STATUS32 register on entry to level P0 interrupts.
  5596. Auxiliary register address 0xb.
  5597. 'aux_user_sp'
  5598. Saved User Stack Pointer. Auxiliary register address 0xd.
  5599. 'eret'
  5600. Exception Return Address. Auxiliary register address 0x400.
  5601. 'erbta'
  5602. BTA saved on exception entry. Auxiliary register address 0x401.
  5603. 'erstatus'
  5604. STATUS32 saved on exception. Auxiliary register address 0x402.
  5605. 'bcr_ver'
  5606. Build Configuration Registers Version. Auxiliary register address
  5607. 0x60.
  5608. 'bta_link_build'
  5609. Build configuration for: BTA Registers. Auxiliary register address
  5610. 0x63.
  5611. 'vecbase_ac_build'
  5612. Build configuration for: Interrupts. Auxiliary register address
  5613. 0x68.
  5614. 'rf_build'
  5615. Build configuration for: Core Registers. Auxiliary register
  5616. address 0x6e.
  5617. 'dccm_build'
  5618. DCCM RAM Configuration Register. Auxiliary register address 0xc1.
  5619. Additional auxiliary register names are defined according to the
  5620. processor architecture version and extensions selected by the options.
  5621. 
  5622. File: as.info, Node: ARC Directives, Next: ARC Modifiers, Prev: ARC Syntax, Up: ARC-Dependent
  5623. 9.3.3 ARC Machine Directives
  5624. ----------------------------
  5625. The ARC version of 'as' supports the following additional machine
  5626. directives:
  5627. '.lcomm SYMBOL, LENGTH[, ALIGNMENT]'
  5628. Reserve LENGTH (an absolute expression) bytes for a local common
  5629. denoted by SYMBOL. The section and value of SYMBOL are those of
  5630. the new local common. The addresses are allocated in the bss
  5631. section, so that at run-time the bytes start off zeroed. Since
  5632. SYMBOL is not declared global, it is normally not visible to 'ld'.
  5633. The optional third parameter, ALIGNMENT, specifies the desired
  5634. alignment of the symbol in the bss section, specified as a byte
  5635. boundary (for example, an alignment of 16 means that the least
  5636. significant 4 bits of the address should be zero). The alignment
  5637. must be an absolute expression, and it must be a power of two. If
  5638. no alignment is specified, as will set the alignment to the largest
  5639. power of two less than or equal to the size of the symbol, up to a
  5640. maximum of 16.
  5641. '.lcommon SYMBOL, LENGTH[, ALIGNMENT]'
  5642. The same as 'lcomm' directive.
  5643. '.cpu CPU'
  5644. The '.cpu' directive must be followed by the desired core version.
  5645. Permitted values for CPU are:
  5646. 'ARC600'
  5647. Assemble for the ARC600 instruction set.
  5648. 'arc600_norm'
  5649. Assemble for ARC 600 with norm instructions.
  5650. 'arc600_mul64'
  5651. Assemble for ARC 600 with mul64 instructions.
  5652. 'arc600_mul32x16'
  5653. Assemble for ARC 600 with mul32x16 instructions.
  5654. 'arc601'
  5655. Assemble for ARC 601 instruction set.
  5656. 'arc601_norm'
  5657. Assemble for ARC 601 with norm instructions.
  5658. 'arc601_mul64'
  5659. Assemble for ARC 601 with mul64 instructions.
  5660. 'arc601_mul32x16'
  5661. Assemble for ARC 601 with mul32x16 instructions.
  5662. 'ARC700'
  5663. Assemble for the ARC700 instruction set.
  5664. 'NPS400'
  5665. Assemble for the NPS400 instruction set.
  5666. 'EM'
  5667. Assemble for the ARC EM instruction set.
  5668. 'arcem'
  5669. Assemble for ARC EM instruction set
  5670. 'em4'
  5671. Assemble for ARC EM with code-density instructions.
  5672. 'em4_dmips'
  5673. Assemble for ARC EM with code-density instructions.
  5674. 'em4_fpus'
  5675. Assemble for ARC EM with code-density instructions.
  5676. 'em4_fpuda'
  5677. Assemble for ARC EM with code-density, and double-precision
  5678. assist instructions.
  5679. 'quarkse_em'
  5680. Assemble for QuarkSE-EM instruction set.
  5681. 'HS'
  5682. Assemble for the ARC HS instruction set.
  5683. 'archs'
  5684. Assemble for ARC HS instruction set.
  5685. 'hs'
  5686. Assemble for ARC HS instruction set.
  5687. 'hs34'
  5688. Assemble for ARC HS34 instruction set.
  5689. 'hs38'
  5690. Assemble for ARC HS38 instruction set.
  5691. 'hs38_linux'
  5692. Assemble for ARC HS38 with floating point support on.
  5693. Note: the '.cpu' directive overrides the command-line option
  5694. '-mcpu=CPU'; a warning is emitted when the version is not
  5695. consistent between the two.
  5696. '.extAuxRegister NAME, ADDR, MODE'
  5697. Auxiliary registers can be defined in the assembler source code by
  5698. using this directive. The first parameter, NAME, is the name of
  5699. the new auxiliary register. The second parameter, ADDR, is address
  5700. the of the auxiliary register. The third parameter, MODE,
  5701. specifies whether the register is readable and/or writable and is
  5702. one of:
  5703. 'r'
  5704. Read only;
  5705. 'w'
  5706. Write only;
  5707. 'r|w'
  5708. Read and write.
  5709. For example:
  5710. .extAuxRegister mulhi, 0x12, w
  5711. specifies a write only extension auxiliary register, MULHI at
  5712. address 0x12.
  5713. '.extCondCode SUFFIX, VAL'
  5714. ARC supports extensible condition codes. This directive defines a
  5715. new condition code, to be known by the suffix, SUFFIX and will
  5716. depend on the value, VAL in the condition code.
  5717. For example:
  5718. .extCondCode is_busy,0x14
  5719. add.is_busy r1,r2,r3
  5720. will only execute the 'add' instruction if the condition code value
  5721. is 0x14.
  5722. '.extCoreRegister NAME, REGNUM, MODE, SHORTCUT'
  5723. Specifies an extension core register named NAME as a synonym for
  5724. the register numbered REGNUM. The register number must be between
  5725. 32 and 59. The third argument, MODE, indicates whether the
  5726. register is readable and/or writable and is one of:
  5727. 'r'
  5728. Read only;
  5729. 'w'
  5730. Write only;
  5731. 'r|w'
  5732. Read and write.
  5733. The final parameter, SHORTCUT indicates whether the register has a
  5734. short cut in the pipeline. The valid values are:
  5735. 'can_shortcut'
  5736. The register has a short cut in the pipeline;
  5737. 'cannot_shortcut'
  5738. The register does not have a short cut in the pipeline.
  5739. For example:
  5740. .extCoreRegister mlo, 57, r , can_shortcut
  5741. defines a read only extension core register, 'mlo', which is
  5742. register 57, and can short cut the pipeline.
  5743. '.extInstruction NAME, OPCODE, SUBOPCODE, SUFFIXCLASS, SYNTAXCLASS'
  5744. ARC allows the user to specify extension instructions. These
  5745. extension instructions are not macros; the assembler creates
  5746. encodings for use of these instructions according to the
  5747. specification by the user.
  5748. The first argument, NAME, gives the name of the instruction.
  5749. The second argument, OPCODE, is the opcode to be used (bits 31:27
  5750. in the encoding).
  5751. The third argument, SUBOPCODE, is the sub-opcode to be used, but
  5752. the correct value also depends on the fifth argument, SYNTAXCLASS
  5753. The fourth argument, SUFFIXCLASS, determines the kinds of suffixes
  5754. to be allowed. Valid values are:
  5755. 'SUFFIX_NONE'
  5756. No suffixes are permitted;
  5757. 'SUFFIX_COND'
  5758. Conditional suffixes are permitted;
  5759. 'SUFFIX_FLAG'
  5760. Flag setting suffixes are permitted.
  5761. 'SUFFIX_COND|SUFFIX_FLAG'
  5762. Both conditional and flag setting suffices are permitted.
  5763. The fifth and final argument, SYNTAXCLASS, determines the syntax
  5764. class for the instruction. It can have the following values:
  5765. 'SYNTAX_2OP'
  5766. Two Operand Instruction;
  5767. 'SYNTAX_3OP'
  5768. Three Operand Instruction.
  5769. 'SYNTAX_1OP'
  5770. One Operand Instruction.
  5771. 'SYNTAX_NOP'
  5772. No Operand Instruction.
  5773. The syntax class may be followed by '|' and one of the following
  5774. modifiers.
  5775. 'OP1_MUST_BE_IMM'
  5776. Modifies syntax class 'SYNTAX_3OP', specifying that the first
  5777. operand of a three-operand instruction must be an immediate
  5778. (i.e., the result is discarded). This is usually used to set
  5779. the flags using specific instructions and not retain results.
  5780. 'OP1_IMM_IMPLIED'
  5781. Modifies syntax class 'SYNTAX_20P', specifying that there is
  5782. an implied immediate destination operand which does not appear
  5783. in the syntax.
  5784. For example, if the source code contains an instruction like:
  5785. inst r1,r2
  5786. the first argument is an implied immediate (that is, the
  5787. result is discarded). This is the same as though the source
  5788. code were: inst 0,r1,r2.
  5789. For example, defining a 64-bit multiplier with immediate operands:
  5790. .extInstruction mp64, 0x07, 0x2d, SUFFIX_COND|SUFFIX_FLAG,
  5791. SYNTAX_3OP|OP1_MUST_BE_IMM
  5792. which specifies an extension instruction named 'mp64' with 3
  5793. operands. It sets the flags and can be used with a condition code,
  5794. for which the first operand is an immediate, i.e. equivalent to
  5795. discarding the result of the operation.
  5796. A two operands instruction variant would be:
  5797. .extInstruction mul64, 0x07, 0x2d, SUFFIX_COND,
  5798. SYNTAX_2OP|OP1_IMM_IMPLIED
  5799. which describes a two operand instruction with an implicit first
  5800. immediate operand. The result of this operation would be
  5801. discarded.
  5802. '.arc_attribute TAG, VALUE'
  5803. Set the ARC object attribute TAG to VALUE.
  5804. The TAG is either an attribute number, or one of the following:
  5805. 'Tag_ARC_PCS_config', 'Tag_ARC_CPU_base', 'Tag_ARC_CPU_variation',
  5806. 'Tag_ARC_CPU_name', 'Tag_ARC_ABI_rf16', 'Tag_ARC_ABI_osver',
  5807. 'Tag_ARC_ABI_sda', 'Tag_ARC_ABI_pic', 'Tag_ARC_ABI_tls',
  5808. 'Tag_ARC_ABI_enumsize', 'Tag_ARC_ABI_exceptions',
  5809. 'Tag_ARC_ABI_double_size', 'Tag_ARC_ISA_config',
  5810. 'Tag_ARC_ISA_apex', 'Tag_ARC_ISA_mpy_option'
  5811. The VALUE is either a 'number', '"string"', or 'number, "string"'
  5812. depending on the tag.
  5813. 
  5814. File: as.info, Node: ARC Modifiers, Next: ARC Symbols, Prev: ARC Directives, Up: ARC-Dependent
  5815. 9.3.4 ARC Assembler Modifiers
  5816. -----------------------------
  5817. The following additional assembler modifiers have been added for
  5818. position-independent code. These modifiers are available only with the
  5819. ARC 700 and above processors and generate relocation entries, which are
  5820. interpreted by the linker as follows:
  5821. '@pcl(SYMBOL)'
  5822. Relative distance of SYMBOL's from the current program counter
  5823. location.
  5824. '@gotpc(SYMBOL)'
  5825. Relative distance of SYMBOL's Global Offset Table entry from the
  5826. current program counter location.
  5827. '@gotoff(SYMBOL)'
  5828. Distance of SYMBOL from the base of the Global Offset Table.
  5829. '@plt(SYMBOL)'
  5830. Distance of SYMBOL's Procedure Linkage Table entry from the current
  5831. program counter. This is valid only with branch and link
  5832. instructions and PC-relative calls.
  5833. '@sda(SYMBOL)'
  5834. Relative distance of SYMBOL from the base of the Small Data
  5835. Pointer.
  5836. 
  5837. File: as.info, Node: ARC Symbols, Next: ARC Opcodes, Prev: ARC Modifiers, Up: ARC-Dependent
  5838. 9.3.5 ARC Pre-defined Symbols
  5839. -----------------------------
  5840. The following assembler symbols will prove useful when developing
  5841. position-independent code. These symbols are available only with the
  5842. ARC 700 and above processors.
  5843. '__GLOBAL_OFFSET_TABLE__'
  5844. Symbol referring to the base of the Global Offset Table.
  5845. '__DYNAMIC__'
  5846. An alias for the Global Offset Table 'Base__GLOBAL_OFFSET_TABLE__'.
  5847. It can be used only with '@gotpc' modifiers.
  5848. 
  5849. File: as.info, Node: ARC Opcodes, Prev: ARC Symbols, Up: ARC-Dependent
  5850. 9.3.6 Opcodes
  5851. -------------
  5852. For information on the ARC instruction set, see 'ARC Programmers
  5853. Reference Manual', available where you download the processor IP
  5854. library.
  5855. 
  5856. File: as.info, Node: ARM-Dependent, Next: AVR-Dependent, Prev: ARC-Dependent, Up: Machine Dependencies
  5857. 9.4 ARM Dependent Features
  5858. ==========================
  5859. * Menu:
  5860. * ARM Options:: Options
  5861. * ARM Syntax:: Syntax
  5862. * ARM Floating Point:: Floating Point
  5863. * ARM Directives:: ARM Machine Directives
  5864. * ARM Opcodes:: Opcodes
  5865. * ARM Mapping Symbols:: Mapping Symbols
  5866. * ARM Unwinding Tutorial:: Unwinding
  5867. 
  5868. File: as.info, Node: ARM Options, Next: ARM Syntax, Up: ARM-Dependent
  5869. 9.4.1 Options
  5870. -------------
  5871. '-mcpu=PROCESSOR[+EXTENSION...]'
  5872. This option specifies the target processor. The assembler will
  5873. issue an error message if an attempt is made to assemble an
  5874. instruction which will not execute on the target processor. The
  5875. following processor names are recognized: 'arm1', 'arm2', 'arm250',
  5876. 'arm3', 'arm6', 'arm60', 'arm600', 'arm610', 'arm620', 'arm7',
  5877. 'arm7m', 'arm7d', 'arm7dm', 'arm7di', 'arm7dmi', 'arm70', 'arm700',
  5878. 'arm700i', 'arm710', 'arm710t', 'arm720', 'arm720t', 'arm740t',
  5879. 'arm710c', 'arm7100', 'arm7500', 'arm7500fe', 'arm7t', 'arm7tdmi',
  5880. 'arm7tdmi-s', 'arm8', 'arm810', 'strongarm', 'strongarm1',
  5881. 'strongarm110', 'strongarm1100', 'strongarm1110', 'arm9', 'arm920',
  5882. 'arm920t', 'arm922t', 'arm940t', 'arm9tdmi', 'fa526' (Faraday FA526
  5883. processor), 'fa626' (Faraday FA626 processor), 'arm9e', 'arm926e',
  5884. 'arm926ej-s', 'arm946e-r0', 'arm946e', 'arm946e-s', 'arm966e-r0',
  5885. 'arm966e', 'arm966e-s', 'arm968e-s', 'arm10t', 'arm10tdmi',
  5886. 'arm10e', 'arm1020', 'arm1020t', 'arm1020e', 'arm1022e',
  5887. 'arm1026ej-s', 'fa606te' (Faraday FA606TE processor), 'fa616te'
  5888. (Faraday FA616TE processor), 'fa626te' (Faraday FA626TE processor),
  5889. 'fmp626' (Faraday FMP626 processor), 'fa726te' (Faraday FA726TE
  5890. processor), 'arm1136j-s', 'arm1136jf-s', 'arm1156t2-s',
  5891. 'arm1156t2f-s', 'arm1176jz-s', 'arm1176jzf-s', 'mpcore',
  5892. 'mpcorenovfp', 'cortex-a5', 'cortex-a7', 'cortex-a8', 'cortex-a9',
  5893. 'cortex-a15', 'cortex-a17', 'cortex-a32', 'cortex-a35',
  5894. 'cortex-a53', 'cortex-a55', 'cortex-a57', 'cortex-a72',
  5895. 'cortex-a73', 'cortex-a75', 'cortex-a76', 'cortex-a76ae',
  5896. 'cortex-a77', 'ares', 'cortex-r4', 'cortex-r4f', 'cortex-r5',
  5897. 'cortex-r7', 'cortex-r8', 'cortex-r52', 'cortex-m35p',
  5898. 'cortex-m33', 'cortex-m23', 'cortex-m7', 'cortex-m4', 'cortex-m3',
  5899. 'cortex-m1', 'cortex-m0', 'cortex-m0plus', 'exynos-m1',
  5900. 'marvell-pj4', 'marvell-whitney', 'neoverse-n1', 'xgene1',
  5901. 'xgene2', 'ep9312' (ARM920 with Cirrus Maverick coprocessor),
  5902. 'i80200' (Intel XScale processor) 'iwmmxt' (Intel XScale processor
  5903. with Wireless MMX technology coprocessor) and 'xscale'. The
  5904. special name 'all' may be used to allow the assembler to accept
  5905. instructions valid for any ARM processor.
  5906. In addition to the basic instruction set, the assembler can be told
  5907. to accept various extension mnemonics that extend the processor
  5908. using the co-processor instruction space. For example,
  5909. '-mcpu=arm920+maverick' is equivalent to specifying '-mcpu=ep9312'.
  5910. Multiple extensions may be specified, separated by a '+'. The
  5911. extensions should be specified in ascending alphabetical order.
  5912. Some extensions may be restricted to particular architectures; this
  5913. is documented in the list of extensions below.
  5914. Extension mnemonics may also be removed from those the assembler
  5915. accepts. This is done be prepending 'no' to the option that adds
  5916. the extension. Extensions that are removed should be listed after
  5917. all extensions which have been added, again in ascending
  5918. alphabetical order. For example, '-mcpu=ep9312+nomaverick' is
  5919. equivalent to specifying '-mcpu=arm920'.
  5920. The following extensions are currently supported: 'crc' 'crypto'
  5921. (Cryptography Extensions for v8-A architecture, implies 'fp+simd'),
  5922. 'dotprod' (Dot Product Extensions for v8.2-A architecture, implies
  5923. 'fp+simd'), 'fp' (Floating Point Extensions for v8-A architecture),
  5924. 'fp16' (FP16 Extensions for v8.2-A architecture, implies 'fp'),
  5925. 'fp16fml' (FP16 Floating Point Multiplication Variant Extensions
  5926. for v8.2-A architecture, implies 'fp16'), 'idiv' (Integer Divide
  5927. Extensions for v7-A and v7-R architectures), 'iwmmxt', 'iwmmxt2',
  5928. 'xscale', 'maverick', 'mp' (Multiprocessing Extensions for v7-A and
  5929. v7-R architectures), 'os' (Operating System for v6M architecture),
  5930. 'predres' (Execution and Data Prediction Restriction Instruction
  5931. for v8-A architectures, added by default from v8.5-A), 'sb'
  5932. (Speculation Barrier Instruction for v8-A architectures, added by
  5933. default from v8.5-A), 'sec' (Security Extensions for v6K and v7-A
  5934. architectures), 'simd' (Advanced SIMD Extensions for v8-A
  5935. architecture, implies 'fp'), 'virt' (Virtualization Extensions for
  5936. v7-A architecture, implies 'idiv'), 'pan' (Privileged Access Never
  5937. Extensions for v8-A architecture), 'ras' (Reliability, Availability
  5938. and Serviceability extensions for v8-A architecture), 'rdma'
  5939. (ARMv8.1 Advanced SIMD extensions for v8-A architecture, implies
  5940. 'simd') and 'xscale'.
  5941. '-march=ARCHITECTURE[+EXTENSION...]'
  5942. This option specifies the target architecture. The assembler will
  5943. issue an error message if an attempt is made to assemble an
  5944. instruction which will not execute on the target architecture. The
  5945. following architecture names are recognized: 'armv1', 'armv2',
  5946. 'armv2a', 'armv2s', 'armv3', 'armv3m', 'armv4', 'armv4xm',
  5947. 'armv4t', 'armv4txm', 'armv5', 'armv5t', 'armv5txm', 'armv5te',
  5948. 'armv5texp', 'armv6', 'armv6j', 'armv6k', 'armv6z', 'armv6kz',
  5949. 'armv6-m', 'armv6s-m', 'armv7', 'armv7-a', 'armv7ve', 'armv7-r',
  5950. 'armv7-m', 'armv7e-m', 'armv8-a', 'armv8.1-a', 'armv8.2-a',
  5951. 'armv8.3-a', 'armv8-r', 'armv8.4-a', 'armv8.5-a', 'armv8-m.base',
  5952. 'armv8-m.main', 'armv8.1-m.main', 'iwmmxt', 'iwmmxt2' and 'xscale'.
  5953. If both '-mcpu' and '-march' are specified, the assembler will use
  5954. the setting for '-mcpu'.
  5955. The architecture option can be extended with a set extension
  5956. options. These extensions are context sensitive, i.e. the same
  5957. extension may mean different things when used with different
  5958. architectures. When used together with a '-mfpu' option, the union
  5959. of both feature enablement is taken. See their availability and
  5960. meaning below:
  5961. For 'armv5te', 'armv5texp', 'armv5tej', 'armv6', 'armv6j',
  5962. 'armv6k', 'armv6z', 'armv6kz', 'armv6zk', 'armv6t2', 'armv6kt2' and
  5963. 'armv6zt2':
  5964. '+fp': Enables VFPv2 instructions. '+nofp': Disables all FPU
  5965. instrunctions.
  5966. For 'armv7':
  5967. '+fp': Enables VFPv3 instructions with 16 double-word registers.
  5968. '+nofp': Disables all FPU instructions.
  5969. For 'armv7-a':
  5970. '+fp': Enables VFPv3 instructions with 16 double-word registers.
  5971. '+vfpv3-d16': Alias for '+fp'. '+vfpv3': Enables VFPv3
  5972. instructions with 32 double-word registers. '+vfpv3-d16-fp16':
  5973. Enables VFPv3 with half precision floating-point conversion
  5974. instructions and 16 double-word registers. '+vfpv3-fp16': Enables
  5975. VFPv3 with half precision floating-point conversion instructions
  5976. and 32 double-word registers. '+vfpv4-d16': Enables VFPv4
  5977. instructions with 16 double-word registers. '+vfpv4': Enables
  5978. VFPv4 instructions with 32 double-word registers. '+simd': Enables
  5979. VFPv3 and NEONv1 instructions with 32 double-word registers.
  5980. '+neon': Alias for '+simd'. '+neon-vfpv3': Alias for '+simd'.
  5981. '+neon-fp16': Enables VFPv3, half precision floating-point
  5982. conversion and NEONv1 instructions with 32 double-word registers.
  5983. '+neon-vfpv4': Enables VFPv4 and NEONv1 with Fused-MAC instructions
  5984. and 32 double-word registers. '+mp': Enables Multiprocessing
  5985. Extensions. '+sec': Enables Security Extensions. '+nofp':
  5986. Disables all FPU and NEON instructions. '+nosimd': Disables all
  5987. NEON instructions.
  5988. For 'armv7ve':
  5989. '+fp': Enables VFPv4 instructions with 16 double-word registers.
  5990. '+vfpv4-d16': Alias for '+fp'. '+vfpv3-d16': Enables VFPv3
  5991. instructions with 16 double-word registers. '+vfpv3': Enables
  5992. VFPv3 instructions with 32 double-word registers.
  5993. '+vfpv3-d16-fp16': Enables VFPv3 with half precision floating-point
  5994. conversion instructions and 16 double-word registers.
  5995. '+vfpv3-fp16': Enables VFPv3 with half precision floating-point
  5996. conversion instructions and 32 double-word registers. '+vfpv4':
  5997. Enables VFPv4 instructions with 32 double-word registers. '+simd':
  5998. Enables VFPv4 and NEONv1 with Fused-MAC instructions and 32
  5999. double-word registers. '+neon-vfpv4': Alias for '+simd'. '+neon':
  6000. Enables VFPv3 and NEONv1 instructions with 32 double-word
  6001. registers. '+neon-vfpv3': Alias for '+neon'. '+neon-fp16':
  6002. Enables VFPv3, half precision floating-point conversion and NEONv1
  6003. instructions with 32 double-word registers. double-word registers.
  6004. '+nofp': Disables all FPU and NEON instructions. '+nosimd':
  6005. Disables all NEON instructions.
  6006. For 'armv7-r':
  6007. '+fp.sp': Enables single-precision only VFPv3 instructions with 16
  6008. double-word registers. '+vfpv3xd': Alias for '+fp.sp'. '+fp':
  6009. Enables VFPv3 instructions with 16 double-word registers.
  6010. '+vfpv3-d16': Alias for '+fp'. '+vfpv3xd-fp16': Enables
  6011. single-precision only VFPv3 and half floating-point conversion
  6012. instructions with 16 double-word registers. '+vfpv3-d16-fp16':
  6013. Enables VFPv3 and half precision floating-point conversion
  6014. instructions with 16 double-word registers. '+idiv': Enables
  6015. integer division instructions in ARM mode. '+nofp': Disables all
  6016. FPU instructions.
  6017. For 'armv7e-m':
  6018. '+fp': Enables single-precision only VFPv4 instructions with 16
  6019. double-word registers. '+vfpvf4-sp-d16': Alias for '+fp'.
  6020. '+fpv5': Enables single-precision only VFPv5 instructions with 16
  6021. double-word registers. '+fp.dp': Enables VFPv5 instructions with
  6022. 16 double-word registers. '+fpv5-d16"': Alias for '+fp.dp'.
  6023. '+nofp': Disables all FPU instructions.
  6024. For 'armv8-m.main':
  6025. '+dsp': Enables DSP Extension. '+fp': Enables single-precision
  6026. only VFPv5 instructions with 16 double-word registers. '+fp.dp':
  6027. Enables VFPv5 instructions with 16 double-word registers. '+nofp':
  6028. Disables all FPU instructions. '+nodsp': Disables DSP Extension.
  6029. For 'armv8.1-m.main':
  6030. '+dsp': Enables DSP Extension. '+fp': Enables single and half
  6031. precision scalar Floating Point Extensions for Armv8.1-M Mainline
  6032. with 16 double-word registers. '+fp.dp': Enables double precision
  6033. scalar Floating Point Extensions for Armv8.1-M Mainline, implies
  6034. '+fp'. '+mve': Enables integer only M-profile Vector Extension for
  6035. Armv8.1-M Mainline, implies '+dsp'. '+mve.fp': Enables Floating
  6036. Point M-profile Vector Extension for Armv8.1-M Mainline, implies
  6037. '+mve' and '+fp'. '+nofp': Disables all FPU instructions.
  6038. '+nodsp': Disables DSP Extension. '+nomve': Disables all M-profile
  6039. Vector Extensions.
  6040. For 'armv8-a':
  6041. '+crc': Enables CRC32 Extension. '+simd': Enables VFP and NEON for
  6042. Armv8-A. '+crypto': Enables Cryptography Extensions for Armv8-A,
  6043. implies '+simd'. '+sb': Enables Speculation Barrier Instruction
  6044. for Armv8-A. '+predres': Enables Execution and Data Prediction
  6045. Restriction Instruction for Armv8-A. '+nofp': Disables all FPU,
  6046. NEON and Cryptography Extensions. '+nocrypto': Disables
  6047. Cryptography Extensions.
  6048. For 'armv8.1-a':
  6049. '+simd': Enables VFP and NEON for Armv8.1-A. '+crypto': Enables
  6050. Cryptography Extensions for Armv8-A, implies '+simd'. '+sb':
  6051. Enables Speculation Barrier Instruction for Armv8-A. '+predres':
  6052. Enables Execution and Data Prediction Restriction Instruction for
  6053. Armv8-A. '+nofp': Disables all FPU, NEON and Cryptography
  6054. Extensions. '+nocrypto': Disables Cryptography Extensions.
  6055. For 'armv8.2-a' and 'armv8.3-a':
  6056. '+simd': Enables VFP and NEON for Armv8.1-A. '+fp16': Enables FP16
  6057. Extension for Armv8.2-A, implies '+simd'. '+fp16fml': Enables FP16
  6058. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6059. implies '+fp16'. '+crypto': Enables Cryptography Extensions for
  6060. Armv8-A, implies '+simd'. '+dotprod': Enables Dot Product
  6061. Extensions for Armv8.2-A, implies '+simd'. '+sb': Enables
  6062. Speculation Barrier Instruction for Armv8-A. '+predres': Enables
  6063. Execution and Data Prediction Restriction Instruction for Armv8-A.
  6064. '+nofp': Disables all FPU, NEON, Cryptography and Dot Product
  6065. Extensions. '+nocrypto': Disables Cryptography Extensions.
  6066. For 'armv8.4-a':
  6067. '+simd': Enables VFP and NEON for Armv8.1-A and Dot Product
  6068. Extensions for Armv8.2-A. '+fp16': Enables FP16 Floating Point and
  6069. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6070. implies '+simd'. '+crypto': Enables Cryptography Extensions for
  6071. Armv8-A, implies '+simd'. '+sb': Enables Speculation Barrier
  6072. Instruction for Armv8-A. '+predres': Enables Execution and Data
  6073. Prediction Restriction Instruction for Armv8-A. '+nofp': Disables
  6074. all FPU, NEON, Cryptography and Dot Product Extensions.
  6075. '+nocryptp': Disables Cryptography Extensions.
  6076. For 'armv8.5-a':
  6077. '+simd': Enables VFP and NEON for Armv8.1-A and Dot Product
  6078. Extensions for Armv8.2-A. '+fp16': Enables FP16 Floating Point and
  6079. Floating Point Multiplication Variant Extensions for Armv8.2-A,
  6080. implies '+simd'. '+crypto': Enables Cryptography Extensions for
  6081. Armv8-A, implies '+simd'. '+nofp': Disables all FPU, NEON,
  6082. Cryptography and Dot Product Extensions. '+nocryptp': Disables
  6083. Cryptography Extensions.
  6084. '-mfpu=FLOATING-POINT-FORMAT'
  6085. This option specifies the floating point format to assemble for.
  6086. The assembler will issue an error message if an attempt is made to
  6087. assemble an instruction which will not execute on the target
  6088. floating point unit. The following format options are recognized:
  6089. 'softfpa', 'fpe', 'fpe2', 'fpe3', 'fpa', 'fpa10', 'fpa11',
  6090. 'arm7500fe', 'softvfp', 'softvfp+vfp', 'vfp', 'vfp10', 'vfp10-r0',
  6091. 'vfp9', 'vfpxd', 'vfpv2', 'vfpv3', 'vfpv3-fp16', 'vfpv3-d16',
  6092. 'vfpv3-d16-fp16', 'vfpv3xd', 'vfpv3xd-d16', 'vfpv4', 'vfpv4-d16',
  6093. 'fpv4-sp-d16', 'fpv5-sp-d16', 'fpv5-d16', 'fp-armv8', 'arm1020t',
  6094. 'arm1020e', 'arm1136jf-s', 'maverick', 'neon', 'neon-vfpv3',
  6095. 'neon-fp16', 'neon-vfpv4', 'neon-fp-armv8', 'crypto-neon-fp-armv8',
  6096. 'neon-fp-armv8.1' and 'crypto-neon-fp-armv8.1'.
  6097. In addition to determining which instructions are assembled, this
  6098. option also affects the way in which the '.double' assembler
  6099. directive behaves when assembling little-endian code.
  6100. The default is dependent on the processor selected. For
  6101. Architecture 5 or later, the default is to assemble for VFP
  6102. instructions; for earlier architectures the default is to assemble
  6103. for FPA instructions.
  6104. '-mfp16-format=FORMAT'
  6105. This option specifies the half-precision floating point format to
  6106. use when assembling floating point numbers emitted by the
  6107. '.float16' directive. The following format options are recognized:
  6108. 'ieee', 'alternative'. If 'ieee' is specified then the IEEE
  6109. 754-2008 half-precision floating point format is used, if
  6110. 'alternative' is specified then the Arm alternative half-precision
  6111. format is used. If this option is set on the command line then the
  6112. format is fixed and cannot be changed with the 'float16_format'
  6113. directive. If this value is not set then the IEEE 754-2008 format
  6114. is used until the format is explicitly set with the
  6115. 'float16_format' directive.
  6116. '-mthumb'
  6117. This option specifies that the assembler should start assembling
  6118. Thumb instructions; that is, it should behave as though the file
  6119. starts with a '.code 16' directive.
  6120. '-mthumb-interwork'
  6121. This option specifies that the output generated by the assembler
  6122. should be marked as supporting interworking. It also affects the
  6123. behaviour of the 'ADR' and 'ADRL' pseudo opcodes.
  6124. '-mimplicit-it=never'
  6125. '-mimplicit-it=always'
  6126. '-mimplicit-it=arm'
  6127. '-mimplicit-it=thumb'
  6128. The '-mimplicit-it' option controls the behavior of the assembler
  6129. when conditional instructions are not enclosed in IT blocks. There
  6130. are four possible behaviors. If 'never' is specified, such
  6131. constructs cause a warning in ARM code and an error in Thumb-2
  6132. code. If 'always' is specified, such constructs are accepted in
  6133. both ARM and Thumb-2 code, where the IT instruction is added
  6134. implicitly. If 'arm' is specified, such constructs are accepted in
  6135. ARM code and cause an error in Thumb-2 code. If 'thumb' is
  6136. specified, such constructs cause a warning in ARM code and are
  6137. accepted in Thumb-2 code. If you omit this option, the behavior is
  6138. equivalent to '-mimplicit-it=arm'.
  6139. '-mapcs-26'
  6140. '-mapcs-32'
  6141. These options specify that the output generated by the assembler
  6142. should be marked as supporting the indicated version of the Arm
  6143. Procedure. Calling Standard.
  6144. '-matpcs'
  6145. This option specifies that the output generated by the assembler
  6146. should be marked as supporting the Arm/Thumb Procedure Calling
  6147. Standard. If enabled this option will cause the assembler to
  6148. create an empty debugging section in the object file called
  6149. .arm.atpcs. Debuggers can use this to determine the ABI being used
  6150. by.
  6151. '-mapcs-float'
  6152. This indicates the floating point variant of the APCS should be
  6153. used. In this variant floating point arguments are passed in FP
  6154. registers rather than integer registers.
  6155. '-mapcs-reentrant'
  6156. This indicates that the reentrant variant of the APCS should be
  6157. used. This variant supports position independent code.
  6158. '-mfloat-abi=ABI'
  6159. This option specifies that the output generated by the assembler
  6160. should be marked as using specified floating point ABI. The
  6161. following values are recognized: 'soft', 'softfp' and 'hard'.
  6162. '-meabi=VER'
  6163. This option specifies which EABI version the produced object files
  6164. should conform to. The following values are recognized: 'gnu', '4'
  6165. and '5'.
  6166. '-EB'
  6167. This option specifies that the output generated by the assembler
  6168. should be marked as being encoded for a big-endian processor.
  6169. Note: If a program is being built for a system with big-endian data
  6170. and little-endian instructions then it should be assembled with the
  6171. '-EB' option, (all of it, code and data) and then linked with the
  6172. '--be8' option. This will reverse the endianness of the
  6173. instructions back to little-endian, but leave the data as
  6174. big-endian.
  6175. '-EL'
  6176. This option specifies that the output generated by the assembler
  6177. should be marked as being encoded for a little-endian processor.
  6178. '-k'
  6179. This option specifies that the output of the assembler should be
  6180. marked as position-independent code (PIC).
  6181. '--fix-v4bx'
  6182. Allow 'BX' instructions in ARMv4 code. This is intended for use
  6183. with the linker option of the same name.
  6184. '-mwarn-deprecated'
  6185. '-mno-warn-deprecated'
  6186. Enable or disable warnings about using deprecated options or
  6187. features. The default is to warn.
  6188. '-mccs'
  6189. Turns on CodeComposer Studio assembly syntax compatibility mode.
  6190. '-mwarn-syms'
  6191. '-mno-warn-syms'
  6192. Enable or disable warnings about symbols that match the names of
  6193. ARM instructions. The default is to warn.
  6194. 
  6195. File: as.info, Node: ARM Syntax, Next: ARM Floating Point, Prev: ARM Options, Up: ARM-Dependent
  6196. 9.4.2 Syntax
  6197. ------------
  6198. * Menu:
  6199. * ARM-Instruction-Set:: Instruction Set
  6200. * ARM-Chars:: Special Characters
  6201. * ARM-Regs:: Register Names
  6202. * ARM-Relocations:: Relocations
  6203. * ARM-Neon-Alignment:: NEON Alignment Specifiers
  6204. 
  6205. File: as.info, Node: ARM-Instruction-Set, Next: ARM-Chars, Up: ARM Syntax
  6206. 9.4.2.1 Instruction Set Syntax
  6207. ..............................
  6208. Two slightly different syntaxes are support for ARM and THUMB
  6209. instructions. The default, 'divided', uses the old style where ARM and
  6210. THUMB instructions had their own, separate syntaxes. The new, 'unified'
  6211. syntax, which can be selected via the '.syntax' directive, and has the
  6212. following main features:
  6213. * Immediate operands do not require a '#' prefix.
  6214. * The 'IT' instruction may appear, and if it does it is validated
  6215. against subsequent conditional affixes. In ARM mode it does not
  6216. generate machine code, in THUMB mode it does.
  6217. * For ARM instructions the conditional affixes always appear at the
  6218. end of the instruction. For THUMB instructions conditional affixes
  6219. can be used, but only inside the scope of an 'IT' instruction.
  6220. * All of the instructions new to the V6T2 architecture (and later)
  6221. are available. (Only a few such instructions can be written in the
  6222. 'divided' syntax).
  6223. * The '.N' and '.W' suffixes are recognized and honored.
  6224. * All instructions set the flags if and only if they have an 's'
  6225. affix.
  6226. 
  6227. File: as.info, Node: ARM-Chars, Next: ARM-Regs, Prev: ARM-Instruction-Set, Up: ARM Syntax
  6228. 9.4.2.2 Special Characters
  6229. ..........................
  6230. The presence of a '@' anywhere on a line indicates the start of a
  6231. comment that extends to the end of that line.
  6232. If a '#' appears as the first character of a line then the whole line
  6233. is treated as a comment, but in this case the line could also be a
  6234. logical line number directive (*note Comments::) or a preprocessor
  6235. control command (*note Preprocessing::).
  6236. The ';' character can be used instead of a newline to separate
  6237. statements.
  6238. Either '#' or '$' can be used to indicate immediate operands.
  6239. *TODO* Explain about /data modifier on symbols.
  6240. 
  6241. File: as.info, Node: ARM-Regs, Next: ARM-Relocations, Prev: ARM-Chars, Up: ARM Syntax
  6242. 9.4.2.3 Register Names
  6243. ......................
  6244. *TODO* Explain about ARM register naming, and the predefined names.
  6245. 
  6246. File: as.info, Node: ARM-Relocations, Next: ARM-Neon-Alignment, Prev: ARM-Regs, Up: ARM Syntax
  6247. 9.4.2.4 ARM relocation generation
  6248. .................................
  6249. Specific data relocations can be generated by putting the relocation
  6250. name in parentheses after the symbol name. For example:
  6251. .word foo(TARGET1)
  6252. This will generate an 'R_ARM_TARGET1' relocation against the symbol
  6253. FOO. The following relocations are supported: 'GOT', 'GOTOFF',
  6254. 'TARGET1', 'TARGET2', 'SBREL', 'TLSGD', 'TLSLDM', 'TLSLDO', 'TLSDESC',
  6255. 'TLSCALL', 'GOTTPOFF', 'GOT_PREL' and 'TPOFF'.
  6256. For compatibility with older toolchains the assembler also accepts
  6257. '(PLT)' after branch targets. On legacy targets this will generate the
  6258. deprecated 'R_ARM_PLT32' relocation. On EABI targets it will encode
  6259. either the 'R_ARM_CALL' or 'R_ARM_JUMP24' relocation, as appropriate.
  6260. Relocations for 'MOVW' and 'MOVT' instructions can be generated by
  6261. prefixing the value with '#:lower16:' and '#:upper16' respectively. For
  6262. example to load the 32-bit address of foo into r0:
  6263. MOVW r0, #:lower16:foo
  6264. MOVT r0, #:upper16:foo
  6265. Relocations 'R_ARM_THM_ALU_ABS_G0_NC', 'R_ARM_THM_ALU_ABS_G1_NC',
  6266. 'R_ARM_THM_ALU_ABS_G2_NC' and 'R_ARM_THM_ALU_ABS_G3_NC' can be generated
  6267. by prefixing the value with '#:lower0_7:#', '#:lower8_15:#',
  6268. '#:upper0_7:#' and '#:upper8_15:#' respectively. For example to load
  6269. the 32-bit address of foo into r0:
  6270. MOVS r0, #:upper8_15:#foo
  6271. LSLS r0, r0, #8
  6272. ADDS r0, #:upper0_7:#foo
  6273. LSLS r0, r0, #8
  6274. ADDS r0, #:lower8_15:#foo
  6275. LSLS r0, r0, #8
  6276. ADDS r0, #:lower0_7:#foo
  6277. 
  6278. File: as.info, Node: ARM-Neon-Alignment, Prev: ARM-Relocations, Up: ARM Syntax
  6279. 9.4.2.5 NEON Alignment Specifiers
  6280. .................................
  6281. Some NEON load/store instructions allow an optional address alignment
  6282. qualifier. The ARM documentation specifies that this is indicated by '@
  6283. ALIGN'. However GAS already interprets the '@' character as a "line
  6284. comment" start, so ': ALIGN' is used instead. For example:
  6285. vld1.8 {q0}, [r0, :128]
  6286. 
  6287. File: as.info, Node: ARM Floating Point, Next: ARM Directives, Prev: ARM Syntax, Up: ARM-Dependent
  6288. 9.4.3 Floating Point
  6289. --------------------
  6290. The ARM family uses IEEE floating-point numbers.
  6291. 
  6292. File: as.info, Node: ARM Directives, Next: ARM Opcodes, Prev: ARM Floating Point, Up: ARM-Dependent
  6293. 9.4.4 ARM Machine Directives
  6294. ----------------------------
  6295. '.align EXPRESSION [, EXPRESSION]'
  6296. This is the generic .ALIGN directive. For the ARM however if the
  6297. first argument is zero (ie no alignment is needed) the assembler
  6298. will behave as if the argument had been 2 (ie pad to the next four
  6299. byte boundary). This is for compatibility with ARM's own
  6300. assembler.
  6301. '.arch NAME'
  6302. Select the target architecture. Valid values for NAME are the same
  6303. as for the '-march' command-line option without the instruction set
  6304. extension.
  6305. Specifying '.arch' clears any previously selected architecture
  6306. extensions.
  6307. '.arch_extension NAME'
  6308. Add or remove an architecture extension to the target architecture.
  6309. Valid values for NAME are the same as those accepted as
  6310. architectural extensions by the '-mcpu' and '-march' command-line
  6311. options.
  6312. '.arch_extension' may be used multiple times to add or remove
  6313. extensions incrementally to the architecture being compiled for.
  6314. '.arm'
  6315. This performs the same action as .CODE 32.
  6316. '.bss'
  6317. This directive switches to the '.bss' section.
  6318. '.cantunwind'
  6319. Prevents unwinding through the current function. No personality
  6320. routine or exception table data is required or permitted.
  6321. '.code [16|32]'
  6322. This directive selects the instruction set being generated. The
  6323. value 16 selects Thumb, with the value 32 selecting ARM.
  6324. '.cpu NAME'
  6325. Select the target processor. Valid values for NAME are the same as
  6326. for the '-mcpu' command-line option without the instruction set
  6327. extension.
  6328. Specifying '.cpu' clears any previously selected architecture
  6329. extensions.
  6330. 'NAME .dn REGISTER NAME [.TYPE] [[INDEX]]'
  6331. 'NAME .qn REGISTER NAME [.TYPE] [[INDEX]]'
  6332. The 'dn' and 'qn' directives are used to create typed and/or
  6333. indexed register aliases for use in Advanced SIMD Extension (Neon)
  6334. instructions. The former should be used to create aliases of
  6335. double-precision registers, and the latter to create aliases of
  6336. quad-precision registers.
  6337. If these directives are used to create typed aliases, those aliases
  6338. can be used in Neon instructions instead of writing types after the
  6339. mnemonic or after each operand. For example:
  6340. x .dn d2.f32
  6341. y .dn d3.f32
  6342. z .dn d4.f32[1]
  6343. vmul x,y,z
  6344. This is equivalent to writing the following:
  6345. vmul.f32 d2,d3,d4[1]
  6346. Aliases created using 'dn' or 'qn' can be destroyed using 'unreq'.
  6347. '.eabi_attribute TAG, VALUE'
  6348. Set the EABI object attribute TAG to VALUE.
  6349. The TAG is either an attribute number, or one of the following:
  6350. 'Tag_CPU_raw_name', 'Tag_CPU_name', 'Tag_CPU_arch',
  6351. 'Tag_CPU_arch_profile', 'Tag_ARM_ISA_use', 'Tag_THUMB_ISA_use',
  6352. 'Tag_FP_arch', 'Tag_WMMX_arch', 'Tag_Advanced_SIMD_arch',
  6353. 'Tag_MVE_arch', 'Tag_PCS_config', 'Tag_ABI_PCS_R9_use',
  6354. 'Tag_ABI_PCS_RW_data', 'Tag_ABI_PCS_RO_data',
  6355. 'Tag_ABI_PCS_GOT_use', 'Tag_ABI_PCS_wchar_t',
  6356. 'Tag_ABI_FP_rounding', 'Tag_ABI_FP_denormal',
  6357. 'Tag_ABI_FP_exceptions', 'Tag_ABI_FP_user_exceptions',
  6358. 'Tag_ABI_FP_number_model', 'Tag_ABI_align_needed',
  6359. 'Tag_ABI_align_preserved', 'Tag_ABI_enum_size',
  6360. 'Tag_ABI_HardFP_use', 'Tag_ABI_VFP_args', 'Tag_ABI_WMMX_args',
  6361. 'Tag_ABI_optimization_goals', 'Tag_ABI_FP_optimization_goals',
  6362. 'Tag_compatibility', 'Tag_CPU_unaligned_access',
  6363. 'Tag_FP_HP_extension', 'Tag_ABI_FP_16bit_format',
  6364. 'Tag_MPextension_use', 'Tag_DIV_use', 'Tag_nodefaults',
  6365. 'Tag_also_compatible_with', 'Tag_conformance', 'Tag_T2EE_use',
  6366. 'Tag_Virtualization_use'
  6367. The VALUE is either a 'number', '"string"', or 'number, "string"'
  6368. depending on the tag.
  6369. Note - the following legacy values are also accepted by TAG:
  6370. 'Tag_VFP_arch', 'Tag_ABI_align8_needed',
  6371. 'Tag_ABI_align8_preserved', 'Tag_VFP_HP_extension',
  6372. '.even'
  6373. This directive aligns to an even-numbered address.
  6374. '.extend EXPRESSION [, EXPRESSION]*'
  6375. '.ldouble EXPRESSION [, EXPRESSION]*'
  6376. These directives write 12byte long double floating-point values to
  6377. the output section. These are not compatible with current ARM
  6378. processors or ABIs.
  6379. '.float16 VALUE [,...,VALUE_N]'
  6380. Place the half precision floating point representation of one or
  6381. more floating-point values into the current section. The exact
  6382. format of the encoding is specified by '.float16_format'. If the
  6383. format has not been explicitly set yet (either via the
  6384. '.float16_format' directive or the command line option) then the
  6385. IEEE 754-2008 format is used.
  6386. '.float16_format FORMAT'
  6387. Set the format to use when encoding float16 values emitted by the
  6388. '.float16' directive. Once the format has been set it cannot be
  6389. changed. 'format' should be one of the following: 'ieee' (encode
  6390. in the IEEE 754-2008 half precision format) or 'alternative'
  6391. (encode in the Arm alternative half precision format).
  6392. '.fnend'
  6393. Marks the end of a function with an unwind table entry. The unwind
  6394. index table entry is created when this directive is processed.
  6395. If no personality routine has been specified then standard
  6396. personality routine 0 or 1 will be used, depending on the number of
  6397. unwind opcodes required.
  6398. '.fnstart'
  6399. Marks the start of a function with an unwind table entry.
  6400. '.force_thumb'
  6401. This directive forces the selection of Thumb instructions, even if
  6402. the target processor does not support those instructions
  6403. '.fpu NAME'
  6404. Select the floating-point unit to assemble for. Valid values for
  6405. NAME are the same as for the '-mfpu' command-line option.
  6406. '.handlerdata'
  6407. Marks the end of the current function, and the start of the
  6408. exception table entry for that function. Anything between this
  6409. directive and the '.fnend' directive will be added to the exception
  6410. table entry.
  6411. Must be preceded by a '.personality' or '.personalityindex'
  6412. directive.
  6413. '.inst OPCODE [ , ... ]'
  6414. '.inst.n OPCODE [ , ... ]'
  6415. '.inst.w OPCODE [ , ... ]'
  6416. Generates the instruction corresponding to the numerical value
  6417. OPCODE. '.inst.n' and '.inst.w' allow the Thumb instruction size
  6418. to be specified explicitly, overriding the normal encoding rules.
  6419. '.ldouble EXPRESSION [, EXPRESSION]*'
  6420. See '.extend'.
  6421. '.ltorg'
  6422. This directive causes the current contents of the literal pool to
  6423. be dumped into the current section (which is assumed to be the
  6424. .text section) at the current location (aligned to a word
  6425. boundary). 'GAS' maintains a separate literal pool for each
  6426. section and each sub-section. The '.ltorg' directive will only
  6427. affect the literal pool of the current section and sub-section. At
  6428. the end of assembly all remaining, un-empty literal pools will
  6429. automatically be dumped.
  6430. Note - older versions of 'GAS' would dump the current literal pool
  6431. any time a section change occurred. This is no longer done, since
  6432. it prevents accurate control of the placement of literal pools.
  6433. '.movsp REG [, #OFFSET]'
  6434. Tell the unwinder that REG contains an offset from the current
  6435. stack pointer. If OFFSET is not specified then it is assumed to be
  6436. zero.
  6437. '.object_arch NAME'
  6438. Override the architecture recorded in the EABI object attribute
  6439. section. Valid values for NAME are the same as for the '.arch'
  6440. directive. Typically this is useful when code uses runtime
  6441. detection of CPU features.
  6442. '.packed EXPRESSION [, EXPRESSION]*'
  6443. This directive writes 12-byte packed floating-point values to the
  6444. output section. These are not compatible with current ARM
  6445. processors or ABIs.
  6446. '.pad #COUNT'
  6447. Generate unwinder annotations for a stack adjustment of COUNT
  6448. bytes. A positive value indicates the function prologue allocated
  6449. stack space by decrementing the stack pointer.
  6450. '.personality NAME'
  6451. Sets the personality routine for the current function to NAME.
  6452. '.personalityindex INDEX'
  6453. Sets the personality routine for the current function to the EABI
  6454. standard routine number INDEX
  6455. '.pool'
  6456. This is a synonym for .ltorg.
  6457. 'NAME .req REGISTER NAME'
  6458. This creates an alias for REGISTER NAME called NAME. For example:
  6459. foo .req r0
  6460. '.save REGLIST'
  6461. Generate unwinder annotations to restore the registers in REGLIST.
  6462. The format of REGLIST is the same as the corresponding
  6463. store-multiple instruction.
  6464. _core registers_
  6465. .save {r4, r5, r6, lr}
  6466. stmfd sp!, {r4, r5, r6, lr}
  6467. _FPA registers_
  6468. .save f4, 2
  6469. sfmfd f4, 2, [sp]!
  6470. _VFP registers_
  6471. .save {d8, d9, d10}
  6472. fstmdx sp!, {d8, d9, d10}
  6473. _iWMMXt registers_
  6474. .save {wr10, wr11}
  6475. wstrd wr11, [sp, #-8]!
  6476. wstrd wr10, [sp, #-8]!
  6477. or
  6478. .save wr11
  6479. wstrd wr11, [sp, #-8]!
  6480. .save wr10
  6481. wstrd wr10, [sp, #-8]!
  6482. '.setfp FPREG, SPREG [, #OFFSET]'
  6483. Make all unwinder annotations relative to a frame pointer. Without
  6484. this the unwinder will use offsets from the stack pointer.
  6485. The syntax of this directive is the same as the 'add' or 'mov'
  6486. instruction used to set the frame pointer. SPREG must be either
  6487. 'sp' or mentioned in a previous '.movsp' directive.
  6488. .movsp ip
  6489. mov ip, sp
  6490. ...
  6491. .setfp fp, ip, #4
  6492. add fp, ip, #4
  6493. '.secrel32 EXPRESSION [, EXPRESSION]*'
  6494. This directive emits relocations that evaluate to the
  6495. section-relative offset of each expression's symbol. This
  6496. directive is only supported for PE targets.
  6497. '.syntax [unified | divided]'
  6498. This directive sets the Instruction Set Syntax as described in the
  6499. *note ARM-Instruction-Set:: section.
  6500. '.thumb'
  6501. This performs the same action as .CODE 16.
  6502. '.thumb_func'
  6503. This directive specifies that the following symbol is the name of a
  6504. Thumb encoded function. This information is necessary in order to
  6505. allow the assembler and linker to generate correct code for
  6506. interworking between Arm and Thumb instructions and should be used
  6507. even if interworking is not going to be performed. The presence of
  6508. this directive also implies '.thumb'
  6509. This directive is not necessary when generating EABI objects. On
  6510. these targets the encoding is implicit when generating Thumb code.
  6511. '.thumb_set'
  6512. This performs the equivalent of a '.set' directive in that it
  6513. creates a symbol which is an alias for another symbol (possibly not
  6514. yet defined). This directive also has the added property in that
  6515. it marks the aliased symbol as being a thumb function entry point,
  6516. in the same way that the '.thumb_func' directive does.
  6517. '.tlsdescseq TLS-VARIABLE'
  6518. This directive is used to annotate parts of an inlined TLS
  6519. descriptor trampoline. Normally the trampoline is provided by the
  6520. linker, and this directive is not needed.
  6521. '.unreq ALIAS-NAME'
  6522. This undefines a register alias which was previously defined using
  6523. the 'req', 'dn' or 'qn' directives. For example:
  6524. foo .req r0
  6525. .unreq foo
  6526. An error occurs if the name is undefined. Note - this pseudo op
  6527. can be used to delete builtin in register name aliases (eg 'r0').
  6528. This should only be done if it is really necessary.
  6529. '.unwind_raw OFFSET, BYTE1, ...'
  6530. Insert one of more arbitrary unwind opcode bytes, which are known
  6531. to adjust the stack pointer by OFFSET bytes.
  6532. For example '.unwind_raw 4, 0xb1, 0x01' is equivalent to '.save
  6533. {r0}'
  6534. '.vsave VFP-REGLIST'
  6535. Generate unwinder annotations to restore the VFP registers in
  6536. VFP-REGLIST using FLDMD. Also works for VFPv3 registers that are to
  6537. be restored using VLDM. The format of VFP-REGLIST is the same as
  6538. the corresponding store-multiple instruction.
  6539. _VFP registers_
  6540. .vsave {d8, d9, d10}
  6541. fstmdd sp!, {d8, d9, d10}
  6542. _VFPv3 registers_
  6543. .vsave {d15, d16, d17}
  6544. vstm sp!, {d15, d16, d17}
  6545. Since FLDMX and FSTMX are now deprecated, this directive should be
  6546. used in favour of '.save' for saving VFP registers for ARMv6 and
  6547. above.
  6548. 
  6549. File: as.info, Node: ARM Opcodes, Next: ARM Mapping Symbols, Prev: ARM Directives, Up: ARM-Dependent
  6550. 9.4.5 Opcodes
  6551. -------------
  6552. 'as' implements all the standard ARM opcodes. It also implements
  6553. several pseudo opcodes, including several synthetic load instructions.
  6554. 'NOP'
  6555. nop
  6556. This pseudo op will always evaluate to a legal ARM instruction that
  6557. does nothing. Currently it will evaluate to MOV r0, r0.
  6558. 'LDR'
  6559. ldr <register> , = <expression>
  6560. If expression evaluates to a numeric constant then a MOV or MVN
  6561. instruction will be used in place of the LDR instruction, if the
  6562. constant can be generated by either of these instructions.
  6563. Otherwise the constant will be placed into the nearest literal pool
  6564. (if it not already there) and a PC relative LDR instruction will be
  6565. generated.
  6566. 'ADR'
  6567. adr <register> <label>
  6568. This instruction will load the address of LABEL into the indicated
  6569. register. The instruction will evaluate to a PC relative ADD or
  6570. SUB instruction depending upon where the label is located. If the
  6571. label is out of range, or if it is not defined in the same file
  6572. (and section) as the ADR instruction, then an error will be
  6573. generated. This instruction will not make use of the literal pool.
  6574. If LABEL is a thumb function symbol, and thumb interworking has
  6575. been enabled via the '-mthumb-interwork' option then the bottom bit
  6576. of the value stored into REGISTER will be set. This allows the
  6577. following sequence to work as expected:
  6578. adr r0, thumb_function
  6579. blx r0
  6580. 'ADRL'
  6581. adrl <register> <label>
  6582. This instruction will load the address of LABEL into the indicated
  6583. register. The instruction will evaluate to one or two PC relative
  6584. ADD or SUB instructions depending upon where the label is located.
  6585. If a second instruction is not needed a NOP instruction will be
  6586. generated in its place, so that this instruction is always 8 bytes
  6587. long.
  6588. If the label is out of range, or if it is not defined in the same
  6589. file (and section) as the ADRL instruction, then an error will be
  6590. generated. This instruction will not make use of the literal pool.
  6591. If LABEL is a thumb function symbol, and thumb interworking has
  6592. been enabled via the '-mthumb-interwork' option then the bottom bit
  6593. of the value stored into REGISTER will be set.
  6594. For information on the ARM or Thumb instruction sets, see 'ARM
  6595. Software Development Toolkit Reference Manual', Advanced RISC Machines
  6596. Ltd.
  6597. 
  6598. File: as.info, Node: ARM Mapping Symbols, Next: ARM Unwinding Tutorial, Prev: ARM Opcodes, Up: ARM-Dependent
  6599. 9.4.6 Mapping Symbols
  6600. ---------------------
  6601. The ARM ELF specification requires that special symbols be inserted into
  6602. object files to mark certain features:
  6603. '$a'
  6604. At the start of a region of code containing ARM instructions.
  6605. '$t'
  6606. At the start of a region of code containing THUMB instructions.
  6607. '$d'
  6608. At the start of a region of data.
  6609. The assembler will automatically insert these symbols for you - there
  6610. is no need to code them yourself. Support for tagging symbols ($b, $f,
  6611. $p and $m) which is also mentioned in the current ARM ELF specification
  6612. is not implemented. This is because they have been dropped from the new
  6613. EABI and so tools cannot rely upon their presence.
  6614. 
  6615. File: as.info, Node: ARM Unwinding Tutorial, Prev: ARM Mapping Symbols, Up: ARM-Dependent
  6616. 9.4.7 Unwinding
  6617. ---------------
  6618. The ABI for the ARM Architecture specifies a standard format for
  6619. exception unwind information. This information is used when an
  6620. exception is thrown to determine where control should be transferred.
  6621. In particular, the unwind information is used to determine which
  6622. function called the function that threw the exception, and which
  6623. function called that one, and so forth. This information is also used
  6624. to restore the values of callee-saved registers in the function catching
  6625. the exception.
  6626. If you are writing functions in assembly code, and those functions
  6627. call other functions that throw exceptions, you must use assembly pseudo
  6628. ops to ensure that appropriate exception unwind information is
  6629. generated. Otherwise, if one of the functions called by your assembly
  6630. code throws an exception, the run-time library will be unable to unwind
  6631. the stack through your assembly code and your program will not behave
  6632. correctly.
  6633. To illustrate the use of these pseudo ops, we will examine the code
  6634. that G++ generates for the following C++ input:
  6635. void callee (int *);
  6636. int
  6637. caller ()
  6638. {
  6639. int i;
  6640. callee (&i);
  6641. return i;
  6642. }
  6643. This example does not show how to throw or catch an exception from
  6644. assembly code. That is a much more complex operation and should always
  6645. be done in a high-level language, such as C++, that directly supports
  6646. exceptions.
  6647. The code generated by one particular version of G++ when compiling
  6648. the example above is:
  6649. _Z6callerv:
  6650. .fnstart
  6651. .LFB2:
  6652. @ Function supports interworking.
  6653. @ args = 0, pretend = 0, frame = 8
  6654. @ frame_needed = 1, uses_anonymous_args = 0
  6655. stmfd sp!, {fp, lr}
  6656. .save {fp, lr}
  6657. .LCFI0:
  6658. .setfp fp, sp, #4
  6659. add fp, sp, #4
  6660. .LCFI1:
  6661. .pad #8
  6662. sub sp, sp, #8
  6663. .LCFI2:
  6664. sub r3, fp, #8
  6665. mov r0, r3
  6666. bl _Z6calleePi
  6667. ldr r3, [fp, #-8]
  6668. mov r0, r3
  6669. sub sp, fp, #4
  6670. ldmfd sp!, {fp, lr}
  6671. bx lr
  6672. .LFE2:
  6673. .fnend
  6674. Of course, the sequence of instructions varies based on the options
  6675. you pass to GCC and on the version of GCC in use. The exact
  6676. instructions are not important since we are focusing on the pseudo ops
  6677. that are used to generate unwind information.
  6678. An important assumption made by the unwinder is that the stack frame
  6679. does not change during the body of the function. In particular, since
  6680. we assume that the assembly code does not itself throw an exception, the
  6681. only point where an exception can be thrown is from a call, such as the
  6682. 'bl' instruction above. At each call site, the same saved registers
  6683. (including 'lr', which indicates the return address) must be located in
  6684. the same locations relative to the frame pointer.
  6685. The '.fnstart' (*note .fnstart pseudo op: arm_fnstart.) pseudo op
  6686. appears immediately before the first instruction of the function while
  6687. the '.fnend' (*note .fnend pseudo op: arm_fnend.) pseudo op appears
  6688. immediately after the last instruction of the function. These pseudo
  6689. ops specify the range of the function.
  6690. Only the order of the other pseudos ops (e.g., '.setfp' or '.pad')
  6691. matters; their exact locations are irrelevant. In the example above,
  6692. the compiler emits the pseudo ops with particular instructions. That
  6693. makes it easier to understand the code, but it is not required for
  6694. correctness. It would work just as well to emit all of the pseudo ops
  6695. other than '.fnend' in the same order, but immediately after '.fnstart'.
  6696. The '.save' (*note .save pseudo op: arm_save.) pseudo op indicates
  6697. registers that have been saved to the stack so that they can be restored
  6698. before the function returns. The argument to the '.save' pseudo op is a
  6699. list of registers to save. If a register is "callee-saved" (as
  6700. specified by the ABI) and is modified by the function you are writing,
  6701. then your code must save the value before it is modified and restore the
  6702. original value before the function returns. If an exception is thrown,
  6703. the run-time library restores the values of these registers from their
  6704. locations on the stack before returning control to the exception
  6705. handler. (Of course, if an exception is not thrown, the function that
  6706. contains the '.save' pseudo op restores these registers in the function
  6707. epilogue, as is done with the 'ldmfd' instruction above.)
  6708. You do not have to save callee-saved registers at the very beginning
  6709. of the function and you do not need to use the '.save' pseudo op
  6710. immediately following the point at which the registers are saved.
  6711. However, if you modify a callee-saved register, you must save it on the
  6712. stack before modifying it and before calling any functions which might
  6713. throw an exception. And, you must use the '.save' pseudo op to indicate
  6714. that you have done so.
  6715. The '.pad' (*note .pad: arm_pad.) pseudo op indicates a modification
  6716. of the stack pointer that does not save any registers. The argument is
  6717. the number of bytes (in decimal) that are subtracted from the stack
  6718. pointer. (On ARM CPUs, the stack grows downwards, so subtracting from
  6719. the stack pointer increases the size of the stack.)
  6720. The '.setfp' (*note .setfp pseudo op: arm_setfp.) pseudo op indicates
  6721. the register that contains the frame pointer. The first argument is the
  6722. register that is set, which is typically 'fp'. The second argument
  6723. indicates the register from which the frame pointer takes its value.
  6724. The third argument, if present, is the value (in decimal) added to the
  6725. register specified by the second argument to compute the value of the
  6726. frame pointer. You should not modify the frame pointer in the body of
  6727. the function.
  6728. If you do not use a frame pointer, then you should not use the
  6729. '.setfp' pseudo op. If you do not use a frame pointer, then you should
  6730. avoid modifying the stack pointer outside of the function prologue.
  6731. Otherwise, the run-time library will be unable to find saved registers
  6732. when it is unwinding the stack.
  6733. The pseudo ops described above are sufficient for writing assembly
  6734. code that calls functions which may throw exceptions. If you need to
  6735. know more about the object-file format used to represent unwind
  6736. information, you may consult the 'Exception Handling ABI for the ARM
  6737. Architecture' available from <http://infocenter.arm.com>.
  6738. 
  6739. File: as.info, Node: AVR-Dependent, Next: Blackfin-Dependent, Prev: ARM-Dependent, Up: Machine Dependencies
  6740. 9.5 AVR Dependent Features
  6741. ==========================
  6742. * Menu:
  6743. * AVR Options:: Options
  6744. * AVR Syntax:: Syntax
  6745. * AVR Opcodes:: Opcodes
  6746. * AVR Pseudo Instructions:: Pseudo Instructions
  6747. 
  6748. File: as.info, Node: AVR Options, Next: AVR Syntax, Up: AVR-Dependent
  6749. 9.5.1 Options
  6750. -------------
  6751. '-mmcu=MCU'
  6752. Specify ATMEL AVR instruction set or MCU type.
  6753. Instruction set avr1 is for the minimal AVR core, not supported by
  6754. the C compiler, only for assembler programs (MCU types: at90s1200,
  6755. attiny11, attiny12, attiny15, attiny28).
  6756. Instruction set avr2 (default) is for the classic AVR core with up
  6757. to 8K program memory space (MCU types: at90s2313, at90s2323,
  6758. at90s2333, at90s2343, attiny22, attiny26, at90s4414, at90s4433,
  6759. at90s4434, at90s8515, at90c8534, at90s8535).
  6760. Instruction set avr25 is for the classic AVR core with up to 8K
  6761. program memory space plus the MOVW instruction (MCU types:
  6762. attiny13, attiny13a, attiny2313, attiny2313a, attiny24, attiny24a,
  6763. attiny4313, attiny44, attiny44a, attiny84, attiny84a, attiny25,
  6764. attiny45, attiny85, attiny261, attiny261a, attiny461, attiny461a,
  6765. attiny861, attiny861a, attiny87, attiny43u, attiny48, attiny88,
  6766. attiny828, at86rf401, ata6289, ata5272).
  6767. Instruction set avr3 is for the classic AVR core with up to 128K
  6768. program memory space (MCU types: at43usb355, at76c711).
  6769. Instruction set avr31 is for the classic AVR core with exactly 128K
  6770. program memory space (MCU types: atmega103, at43usb320).
  6771. Instruction set avr35 is for classic AVR core plus MOVW, CALL, and
  6772. JMP instructions (MCU types: attiny167, attiny1634, at90usb82,
  6773. at90usb162, atmega8u2, atmega16u2, atmega32u2, ata5505).
  6774. Instruction set avr4 is for the enhanced AVR core with up to 8K
  6775. program memory space (MCU types: atmega48, atmega48a, atmega48pa,
  6776. atmega48p, atmega8, atmega8a, atmega88, atmega88a, atmega88p,
  6777. atmega88pa, atmega8515, atmega8535, atmega8hva, at90pwm1, at90pwm2,
  6778. at90pwm2b, at90pwm3, at90pwm3b, at90pwm81, ata6285, ata6286).
  6779. Instruction set avr5 is for the enhanced AVR core with up to 128K
  6780. program memory space (MCU types: at90pwm161, atmega16, atmega16a,
  6781. atmega161, atmega162, atmega163, atmega164a, atmega164p,
  6782. atmega164pa, atmega165, atmega165a, atmega165p, atmega165pa,
  6783. atmega168, atmega168a, atmega168p, atmega168pa, atmega169,
  6784. atmega169a, atmega169p, atmega169pa, atmega32, atmega323,
  6785. atmega324a, atmega324p, atmega324pa, atmega325, atmega325a,
  6786. atmega32, atmega32a, atmega323, atmega324a, atmega324p,
  6787. atmega324pa, atmega325, atmega325a, atmega325p, atmega325p,
  6788. atmega325pa, atmega3250, atmega3250a, atmega3250p, atmega3250pa,
  6789. atmega328, atmega328p, atmega329, atmega329a, atmega329p,
  6790. atmega329pa, atmega3290a, atmega3290p, atmega3290pa, atmega406,
  6791. atmega64, atmega64a, atmega64rfr2, atmega644rfr2, atmega640,
  6792. atmega644, atmega644a, atmega644p, atmega644pa, atmega645,
  6793. atmega645a, atmega645p, atmega6450, atmega6450a, atmega6450p,
  6794. atmega649, atmega649a, atmega649p, atmega6490, atmega6490a,
  6795. atmega6490p, atmega16hva, atmega16hva2, atmega16hvb,
  6796. atmega16hvbrevb, atmega32hvb, atmega32hvbrevb, atmega64hve,
  6797. at90can32, at90can64, at90pwm161, at90pwm216, at90pwm316,
  6798. atmega32c1, atmega64c1, atmega16m1, atmega32m1, atmega64m1,
  6799. atmega16u4, atmega32u4, atmega32u6, at90usb646, at90usb647, at94k,
  6800. at90scr100, ata5790, ata5795).
  6801. Instruction set avr51 is for the enhanced AVR core with exactly
  6802. 128K program memory space (MCU types: atmega128, atmega128a,
  6803. atmega1280, atmega1281, atmega1284, atmega1284p, atmega128rfa1,
  6804. atmega128rfr2, atmega1284rfr2, at90can128, at90usb1286,
  6805. at90usb1287, m3000).
  6806. Instruction set avr6 is for the enhanced AVR core with a 3-byte PC
  6807. (MCU types: atmega2560, atmega2561, atmega256rfr2, atmega2564rfr2).
  6808. Instruction set avrxmega2 is for the XMEGA AVR core with 8K to 64K
  6809. program memory space and less than 64K data space (MCU types:
  6810. atxmega16a4, atxmega16a4u, atxmega16c4, atxmega16d4, atxmega16x1,
  6811. atxmega32a4, atxmega32a4u, atxmega32c4, atxmega32d4, atxmega16e5,
  6812. atxmega8e5, atxmega32e5, atxmega32x1).
  6813. Instruction set avrxmega3 is for the XMEGA AVR core with up to 64K
  6814. of combined program memory and RAM, and with program memory visible
  6815. in the RAM address space (MCU types: attiny212, attiny214,
  6816. attiny412, attiny414, attiny416, attiny417, attiny814, attiny816,
  6817. attiny817, attiny1614, attiny1616, attiny1617, attiny3214,
  6818. attiny3216, attiny3217).
  6819. Instruction set avrxmega4 is for the XMEGA AVR core with up to 64K
  6820. program memory space and less than 64K data space (MCU types:
  6821. atxmega64a3, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3,
  6822. atxmega64c3, atxmega64d3, atxmega64d4).
  6823. Instruction set avrxmega5 is for the XMEGA AVR core with up to 64K
  6824. program memory space and greater than 64K data space (MCU types:
  6825. atxmega64a1, atxmega64a1u).
  6826. Instruction set avrxmega6 is for the XMEGA AVR core with larger
  6827. than 64K program memory space and less than 64K data space (MCU
  6828. types: atxmega128a3, atxmega128a3u, atxmega128c3, atxmega128d3,
  6829. atxmega128d4, atxmega192a3, atxmega192a3u, atxmega128b1,
  6830. atxmega128b3, atxmega192c3, atxmega192d3, atxmega256a3,
  6831. atxmega256a3u, atxmega256a3b, atxmega256a3bu, atxmega256c3,
  6832. atxmega256d3, atxmega384c3, atxmega256d3).
  6833. Instruction set avrxmega7 is for the XMEGA AVR core with larger
  6834. than 64K program memory space and greater than 64K data space (MCU
  6835. types: atxmega128a1, atxmega128a1u, atxmega128a4u).
  6836. Instruction set avrtiny is for the ATtiny4/5/9/10/20/40
  6837. microcontrollers.
  6838. '-mall-opcodes'
  6839. Accept all AVR opcodes, even if not supported by '-mmcu'.
  6840. '-mno-skip-bug'
  6841. This option disable warnings for skipping two-word instructions.
  6842. '-mno-wrap'
  6843. This option reject 'rjmp/rcall' instructions with 8K wrap-around.
  6844. '-mrmw'
  6845. Accept Read-Modify-Write ('XCH,LAC,LAS,LAT') instructions.
  6846. '-mlink-relax'
  6847. Enable support for link-time relaxation. This is now on by default
  6848. and this flag no longer has any effect.
  6849. '-mno-link-relax'
  6850. Disable support for link-time relaxation. The assembler will
  6851. resolve relocations when it can, and may be able to better compress
  6852. some debug information.
  6853. '-mgcc-isr'
  6854. Enable the '__gcc_isr' pseudo instruction.
  6855. 
  6856. File: as.info, Node: AVR Syntax, Next: AVR Opcodes, Prev: AVR Options, Up: AVR-Dependent
  6857. 9.5.2 Syntax
  6858. ------------
  6859. * Menu:
  6860. * AVR-Chars:: Special Characters
  6861. * AVR-Regs:: Register Names
  6862. * AVR-Modifiers:: Relocatable Expression Modifiers
  6863. 
  6864. File: as.info, Node: AVR-Chars, Next: AVR-Regs, Up: AVR Syntax
  6865. 9.5.2.1 Special Characters
  6866. ..........................
  6867. The presence of a ';' anywhere on a line indicates the start of a
  6868. comment that extends to the end of that line.
  6869. If a '#' appears as the first character of a line, the whole line is
  6870. treated as a comment, but in this case the line can also be a logical
  6871. line number directive (*note Comments::) or a preprocessor control
  6872. command (*note Preprocessing::).
  6873. The '$' character can be used instead of a newline to separate
  6874. statements.
  6875. 
  6876. File: as.info, Node: AVR-Regs, Next: AVR-Modifiers, Prev: AVR-Chars, Up: AVR Syntax
  6877. 9.5.2.2 Register Names
  6878. ......................
  6879. The AVR has 32 x 8-bit general purpose working registers 'r0', 'r1', ...
  6880. 'r31'. Six of the 32 registers can be used as three 16-bit indirect
  6881. address register pointers for Data Space addressing. One of the these
  6882. address pointers can also be used as an address pointer for look up
  6883. tables in Flash program memory. These added function registers are the
  6884. 16-bit 'X', 'Y' and 'Z' - registers.
  6885. X = r26:r27
  6886. Y = r28:r29
  6887. Z = r30:r31
  6888. 
  6889. File: as.info, Node: AVR-Modifiers, Prev: AVR-Regs, Up: AVR Syntax
  6890. 9.5.2.3 Relocatable Expression Modifiers
  6891. ........................................
  6892. The assembler supports several modifiers when using relocatable
  6893. addresses in AVR instruction operands. The general syntax is the
  6894. following:
  6895. modifier(relocatable-expression)
  6896. 'lo8'
  6897. This modifier allows you to use bits 0 through 7 of an address
  6898. expression as 8 bit relocatable expression.
  6899. 'hi8'
  6900. This modifier allows you to use bits 7 through 15 of an address
  6901. expression as 8 bit relocatable expression. This is useful with,
  6902. for example, the AVR 'ldi' instruction and 'lo8' modifier.
  6903. For example
  6904. ldi r26, lo8(sym+10)
  6905. ldi r27, hi8(sym+10)
  6906. 'hh8'
  6907. This modifier allows you to use bits 16 through 23 of an address
  6908. expression as 8 bit relocatable expression. Also, can be useful
  6909. for loading 32 bit constants.
  6910. 'hlo8'
  6911. Synonym of 'hh8'.
  6912. 'hhi8'
  6913. This modifier allows you to use bits 24 through 31 of an expression
  6914. as 8 bit expression. This is useful with, for example, the AVR
  6915. 'ldi' instruction and 'lo8', 'hi8', 'hlo8', 'hhi8', modifier.
  6916. For example
  6917. ldi r26, lo8(285774925)
  6918. ldi r27, hi8(285774925)
  6919. ldi r28, hlo8(285774925)
  6920. ldi r29, hhi8(285774925)
  6921. ; r29,r28,r27,r26 = 285774925
  6922. 'pm_lo8'
  6923. This modifier allows you to use bits 0 through 7 of an address
  6924. expression as 8 bit relocatable expression. This modifier useful
  6925. for addressing data or code from Flash/Program memory. The using
  6926. of 'pm_lo8' similar to 'lo8'.
  6927. 'pm_hi8'
  6928. This modifier allows you to use bits 8 through 15 of an address
  6929. expression as 8 bit relocatable expression. This modifier useful
  6930. for addressing data or code from Flash/Program memory.
  6931. 'pm_hh8'
  6932. This modifier allows you to use bits 15 through 23 of an address
  6933. expression as 8 bit relocatable expression. This modifier useful
  6934. for addressing data or code from Flash/Program memory.
  6935. 
  6936. File: as.info, Node: AVR Opcodes, Next: AVR Pseudo Instructions, Prev: AVR Syntax, Up: AVR-Dependent
  6937. 9.5.3 Opcodes
  6938. -------------
  6939. For detailed information on the AVR machine instruction set, see
  6940. <www.atmel.com/products/AVR>.
  6941. 'as' implements all the standard AVR opcodes. The following table
  6942. summarizes the AVR opcodes, and their arguments.
  6943. Legend:
  6944. r any register
  6945. d 'ldi' register (r16-r31)
  6946. v 'movw' even register (r0, r2, ..., r28, r30)
  6947. a 'fmul' register (r16-r23)
  6948. w 'adiw' register (r24,r26,r28,r30)
  6949. e pointer registers (X,Y,Z)
  6950. b base pointer register and displacement ([YZ]+disp)
  6951. z Z pointer register (for [e]lpm Rd,Z[+])
  6952. M immediate value from 0 to 255
  6953. n immediate value from 0 to 255 ( n = ~M ). Relocation impossible
  6954. s immediate value from 0 to 7
  6955. P Port address value from 0 to 63. (in, out)
  6956. p Port address value from 0 to 31. (cbi, sbi, sbic, sbis)
  6957. K immediate value from 0 to 63 (used in 'adiw', 'sbiw')
  6958. i immediate value
  6959. l signed pc relative offset from -64 to 63
  6960. L signed pc relative offset from -2048 to 2047
  6961. h absolute code address (call, jmp)
  6962. S immediate value from 0 to 7 (S = s << 4)
  6963. ? use this opcode entry if no parameters, else use next opcode entry
  6964. 1001010010001000 clc
  6965. 1001010011011000 clh
  6966. 1001010011111000 cli
  6967. 1001010010101000 cln
  6968. 1001010011001000 cls
  6969. 1001010011101000 clt
  6970. 1001010010111000 clv
  6971. 1001010010011000 clz
  6972. 1001010000001000 sec
  6973. 1001010001011000 seh
  6974. 1001010001111000 sei
  6975. 1001010000101000 sen
  6976. 1001010001001000 ses
  6977. 1001010001101000 set
  6978. 1001010000111000 sev
  6979. 1001010000011000 sez
  6980. 100101001SSS1000 bclr S
  6981. 100101000SSS1000 bset S
  6982. 1001010100001001 icall
  6983. 1001010000001001 ijmp
  6984. 1001010111001000 lpm ?
  6985. 1001000ddddd010+ lpm r,z
  6986. 1001010111011000 elpm ?
  6987. 1001000ddddd011+ elpm r,z
  6988. 0000000000000000 nop
  6989. 1001010100001000 ret
  6990. 1001010100011000 reti
  6991. 1001010110001000 sleep
  6992. 1001010110011000 break
  6993. 1001010110101000 wdr
  6994. 1001010111101000 spm
  6995. 000111rdddddrrrr adc r,r
  6996. 000011rdddddrrrr add r,r
  6997. 001000rdddddrrrr and r,r
  6998. 000101rdddddrrrr cp r,r
  6999. 000001rdddddrrrr cpc r,r
  7000. 000100rdddddrrrr cpse r,r
  7001. 001001rdddddrrrr eor r,r
  7002. 001011rdddddrrrr mov r,r
  7003. 100111rdddddrrrr mul r,r
  7004. 001010rdddddrrrr or r,r
  7005. 000010rdddddrrrr sbc r,r
  7006. 000110rdddddrrrr sub r,r
  7007. 001001rdddddrrrr clr r
  7008. 000011rdddddrrrr lsl r
  7009. 000111rdddddrrrr rol r
  7010. 001000rdddddrrrr tst r
  7011. 0111KKKKddddKKKK andi d,M
  7012. 0111KKKKddddKKKK cbr d,n
  7013. 1110KKKKddddKKKK ldi d,M
  7014. 11101111dddd1111 ser d
  7015. 0110KKKKddddKKKK ori d,M
  7016. 0110KKKKddddKKKK sbr d,M
  7017. 0011KKKKddddKKKK cpi d,M
  7018. 0100KKKKddddKKKK sbci d,M
  7019. 0101KKKKddddKKKK subi d,M
  7020. 1111110rrrrr0sss sbrc r,s
  7021. 1111111rrrrr0sss sbrs r,s
  7022. 1111100ddddd0sss bld r,s
  7023. 1111101ddddd0sss bst r,s
  7024. 10110PPdddddPPPP in r,P
  7025. 10111PPrrrrrPPPP out P,r
  7026. 10010110KKddKKKK adiw w,K
  7027. 10010111KKddKKKK sbiw w,K
  7028. 10011000pppppsss cbi p,s
  7029. 10011010pppppsss sbi p,s
  7030. 10011001pppppsss sbic p,s
  7031. 10011011pppppsss sbis p,s
  7032. 111101lllllll000 brcc l
  7033. 111100lllllll000 brcs l
  7034. 111100lllllll001 breq l
  7035. 111101lllllll100 brge l
  7036. 111101lllllll101 brhc l
  7037. 111100lllllll101 brhs l
  7038. 111101lllllll111 brid l
  7039. 111100lllllll111 brie l
  7040. 111100lllllll000 brlo l
  7041. 111100lllllll100 brlt l
  7042. 111100lllllll010 brmi l
  7043. 111101lllllll001 brne l
  7044. 111101lllllll010 brpl l
  7045. 111101lllllll000 brsh l
  7046. 111101lllllll110 brtc l
  7047. 111100lllllll110 brts l
  7048. 111101lllllll011 brvc l
  7049. 111100lllllll011 brvs l
  7050. 111101lllllllsss brbc s,l
  7051. 111100lllllllsss brbs s,l
  7052. 1101LLLLLLLLLLLL rcall L
  7053. 1100LLLLLLLLLLLL rjmp L
  7054. 1001010hhhhh111h call h
  7055. 1001010hhhhh110h jmp h
  7056. 1001010rrrrr0101 asr r
  7057. 1001010rrrrr0000 com r
  7058. 1001010rrrrr1010 dec r
  7059. 1001010rrrrr0011 inc r
  7060. 1001010rrrrr0110 lsr r
  7061. 1001010rrrrr0001 neg r
  7062. 1001000rrrrr1111 pop r
  7063. 1001001rrrrr1111 push r
  7064. 1001010rrrrr0111 ror r
  7065. 1001010rrrrr0010 swap r
  7066. 00000001ddddrrrr movw v,v
  7067. 00000010ddddrrrr muls d,d
  7068. 000000110ddd0rrr mulsu a,a
  7069. 000000110ddd1rrr fmul a,a
  7070. 000000111ddd0rrr fmuls a,a
  7071. 000000111ddd1rrr fmulsu a,a
  7072. 1001001ddddd0000 sts i,r
  7073. 1001000ddddd0000 lds r,i
  7074. 10o0oo0dddddbooo ldd r,b
  7075. 100!000dddddee-+ ld r,e
  7076. 10o0oo1rrrrrbooo std b,r
  7077. 100!001rrrrree-+ st e,r
  7078. 1001010100011001 eicall
  7079. 1001010000011001 eijmp
  7080. 
  7081. File: as.info, Node: AVR Pseudo Instructions, Prev: AVR Opcodes, Up: AVR-Dependent
  7082. 9.5.4 Pseudo Instructions
  7083. -------------------------
  7084. The only available pseudo-instruction '__gcc_isr' can be activated by
  7085. option '-mgcc-isr'.
  7086. '__gcc_isr 1'
  7087. Emit code chunk to be used in avr-gcc ISR prologue. It will expand
  7088. to at most six 1-word instructions, all optional: push of
  7089. 'tmp_reg', push of 'SREG', push and clear of 'zero_reg', push of
  7090. REG.
  7091. '__gcc_isr 2'
  7092. Emit code chunk to be used in an avr-gcc ISR epilogue. It will
  7093. expand to at most five 1-word instructions, all optional: pop of
  7094. REG, pop of 'zero_reg', pop of 'SREG', pop of 'tmp_reg'.
  7095. '__gcc_isr 0, REG'
  7096. Finish avr-gcc ISR function. Scan code since the last prologue for
  7097. usage of: 'SREG', 'tmp_reg', 'zero_reg'. Prologue chunk and
  7098. epilogue chunks will be replaced by appropriate code to save /
  7099. restore 'SREG', 'tmp_reg', 'zero_reg' and REG.
  7100. Example input:
  7101. __vector1:
  7102. __gcc_isr 1
  7103. lds r24, var
  7104. inc r24
  7105. sts var, r24
  7106. __gcc_isr 2
  7107. reti
  7108. __gcc_isr 0, r24
  7109. Example output:
  7110. 00000000 <__vector1>:
  7111. 0: 8f 93 push r24
  7112. 2: 8f b7 in r24, 0x3f
  7113. 4: 8f 93 push r24
  7114. 6: 80 91 60 00 lds r24, 0x0060 ; 0x800060 <var>
  7115. a: 83 95 inc r24
  7116. c: 80 93 60 00 sts 0x0060, r24 ; 0x800060 <var>
  7117. 10: 8f 91 pop r24
  7118. 12: 8f bf out 0x3f, r24
  7119. 14: 8f 91 pop r24
  7120. 16: 18 95 reti
  7121. 
  7122. File: as.info, Node: Blackfin-Dependent, Next: BPF-Dependent, Prev: AVR-Dependent, Up: Machine Dependencies
  7123. 9.6 Blackfin Dependent Features
  7124. ===============================
  7125. * Menu:
  7126. * Blackfin Options:: Blackfin Options
  7127. * Blackfin Syntax:: Blackfin Syntax
  7128. * Blackfin Directives:: Blackfin Directives
  7129. 
  7130. File: as.info, Node: Blackfin Options, Next: Blackfin Syntax, Up: Blackfin-Dependent
  7131. 9.6.1 Options
  7132. -------------
  7133. '-mcpu=PROCESSOR[-SIREVISION]'
  7134. This option specifies the target processor. The optional
  7135. SIREVISION is not used in assembler. It's here such that GCC can
  7136. easily pass down its '-mcpu=' option. The assembler will issue an
  7137. error message if an attempt is made to assemble an instruction
  7138. which will not execute on the target processor. The following
  7139. processor names are recognized: 'bf504', 'bf506', 'bf512', 'bf514',
  7140. 'bf516', 'bf518', 'bf522', 'bf523', 'bf524', 'bf525', 'bf526',
  7141. 'bf527', 'bf531', 'bf532', 'bf533', 'bf534', 'bf535' (not
  7142. implemented yet), 'bf536', 'bf537', 'bf538', 'bf539', 'bf542',
  7143. 'bf542m', 'bf544', 'bf544m', 'bf547', 'bf547m', 'bf548', 'bf548m',
  7144. 'bf549', 'bf549m', 'bf561', and 'bf592'.
  7145. '-mfdpic'
  7146. Assemble for the FDPIC ABI.
  7147. '-mno-fdpic'
  7148. '-mnopic'
  7149. Disable -mfdpic.
  7150. 
  7151. File: as.info, Node: Blackfin Syntax, Next: Blackfin Directives, Prev: Blackfin Options, Up: Blackfin-Dependent
  7152. 9.6.2 Syntax
  7153. ------------
  7154. 'Special Characters'
  7155. Assembler input is free format and may appear anywhere on the line.
  7156. One instruction may extend across multiple lines or more than one
  7157. instruction may appear on the same line. White space (space, tab,
  7158. comments or newline) may appear anywhere between tokens. A token
  7159. must not have embedded spaces. Tokens include numbers, register
  7160. names, keywords, user identifiers, and also some multicharacter
  7161. special symbols like "+=", "/*" or "||".
  7162. Comments are introduced by the '#' character and extend to the end
  7163. of the current line. If the '#' appears as the first character of
  7164. a line, the whole line is treated as a comment, but in this case
  7165. the line can also be a logical line number directive (*note
  7166. Comments::) or a preprocessor control command (*note
  7167. Preprocessing::).
  7168. 'Instruction Delimiting'
  7169. A semicolon must terminate every instruction. Sometimes a complete
  7170. instruction will consist of more than one operation. There are two
  7171. cases where this occurs. The first is when two general operations
  7172. are combined. Normally a comma separates the different parts, as
  7173. in
  7174. a0= r3.h * r2.l, a1 = r3.l * r2.h ;
  7175. The second case occurs when a general instruction is combined with
  7176. one or two memory references for joint issue. The latter portions
  7177. are set off by a "||" token.
  7178. a0 = r3.h * r2.l || r1 = [p3++] || r4 = [i2++];
  7179. Multiple instructions can occur on the same line. Each must be
  7180. terminated by a semicolon character.
  7181. 'Register Names'
  7182. The assembler treats register names and instruction keywords in a
  7183. case insensitive manner. User identifiers are case sensitive.
  7184. Thus, R3.l, R3.L, r3.l and r3.L are all equivalent input to the
  7185. assembler.
  7186. Register names are reserved and may not be used as program
  7187. identifiers.
  7188. Some operations (such as "Move Register") require a register pair.
  7189. Register pairs are always data registers and are denoted using a
  7190. colon, eg., R3:2. The larger number must be written firsts. Note
  7191. that the hardware only supports odd-even pairs, eg., R7:6, R5:4,
  7192. R3:2, and R1:0.
  7193. Some instructions (such as -SP (Push Multiple)) require a group of
  7194. adjacent registers. Adjacent registers are denoted in the syntax
  7195. by the range enclosed in parentheses and separated by a colon, eg.,
  7196. (R7:3). Again, the larger number appears first.
  7197. Portions of a particular register may be individually specified.
  7198. This is written with a dot (".") following the register name and
  7199. then a letter denoting the desired portion. For 32-bit registers,
  7200. ".H" denotes the most significant ("High") portion. ".L" denotes
  7201. the least-significant portion. The subdivisions of the 40-bit
  7202. registers are described later.
  7203. 'Accumulators'
  7204. The set of 40-bit registers A1 and A0 that normally contain data
  7205. that is being manipulated. Each accumulator can be accessed in
  7206. four ways.
  7207. 'one 40-bit register'
  7208. The register will be referred to as A1 or A0.
  7209. 'one 32-bit register'
  7210. The registers are designated as A1.W or A0.W.
  7211. 'two 16-bit registers'
  7212. The registers are designated as A1.H, A1.L, A0.H or A0.L.
  7213. 'one 8-bit register'
  7214. The registers are designated as A1.X or A0.X for the bits that
  7215. extend beyond bit 31.
  7216. 'Data Registers'
  7217. The set of 32-bit registers (R0, R1, R2, R3, R4, R5, R6 and R7)
  7218. that normally contain data for manipulation. These are abbreviated
  7219. as D-register or Dreg. Data registers can be accessed as 32-bit
  7220. registers or as two independent 16-bit registers. The least
  7221. significant 16 bits of each register is called the "low" half and
  7222. is designated with ".L" following the register name. The most
  7223. significant 16 bits are called the "high" half and is designated
  7224. with ".H" following the name.
  7225. R7.L, r2.h, r4.L, R0.H
  7226. 'Pointer Registers'
  7227. The set of 32-bit registers (P0, P1, P2, P3, P4, P5, SP and FP)
  7228. that normally contain byte addresses of data structures. These are
  7229. abbreviated as P-register or Preg.
  7230. p2, p5, fp, sp
  7231. 'Stack Pointer SP'
  7232. The stack pointer contains the 32-bit address of the last occupied
  7233. byte location in the stack. The stack grows by decrementing the
  7234. stack pointer.
  7235. 'Frame Pointer FP'
  7236. The frame pointer contains the 32-bit address of the previous frame
  7237. pointer in the stack. It is located at the top of a frame.
  7238. 'Loop Top'
  7239. LT0 and LT1. These registers contain the 32-bit address of the top
  7240. of a zero overhead loop.
  7241. 'Loop Count'
  7242. LC0 and LC1. These registers contain the 32-bit counter of the
  7243. zero overhead loop executions.
  7244. 'Loop Bottom'
  7245. LB0 and LB1. These registers contain the 32-bit address of the
  7246. bottom of a zero overhead loop.
  7247. 'Index Registers'
  7248. The set of 32-bit registers (I0, I1, I2, I3) that normally contain
  7249. byte addresses of data structures. Abbreviated I-register or Ireg.
  7250. 'Modify Registers'
  7251. The set of 32-bit registers (M0, M1, M2, M3) that normally contain
  7252. offset values that are added and subtracted to one of the index
  7253. registers. Abbreviated as Mreg.
  7254. 'Length Registers'
  7255. The set of 32-bit registers (L0, L1, L2, L3) that normally contain
  7256. the length in bytes of the circular buffer. Abbreviated as Lreg.
  7257. Clear the Lreg to disable circular addressing for the corresponding
  7258. Ireg.
  7259. 'Base Registers'
  7260. The set of 32-bit registers (B0, B1, B2, B3) that normally contain
  7261. the base address in bytes of the circular buffer. Abbreviated as
  7262. Breg.
  7263. 'Floating Point'
  7264. The Blackfin family has no hardware floating point but the .float
  7265. directive generates ieee floating point numbers for use with
  7266. software floating point libraries.
  7267. 'Blackfin Opcodes'
  7268. For detailed information on the Blackfin machine instruction set,
  7269. see the Blackfin Processor Instruction Set Reference.
  7270. 
  7271. File: as.info, Node: Blackfin Directives, Prev: Blackfin Syntax, Up: Blackfin-Dependent
  7272. 9.6.3 Directives
  7273. ----------------
  7274. The following directives are provided for compatibility with the VDSP
  7275. assembler.
  7276. '.byte2'
  7277. Initializes a two byte data object.
  7278. This maps to the '.short' directive.
  7279. '.byte4'
  7280. Initializes a four byte data object.
  7281. This maps to the '.int' directive.
  7282. '.db'
  7283. Initializes a single byte data object.
  7284. This directive is a synonym for '.byte'.
  7285. '.dw'
  7286. Initializes a two byte data object.
  7287. This directive is a synonym for '.byte2'.
  7288. '.dd'
  7289. Initializes a four byte data object.
  7290. This directive is a synonym for '.byte4'.
  7291. '.var'
  7292. Define and initialize a 32 bit data object.
  7293. 
  7294. File: as.info, Node: BPF-Dependent, Next: CR16-Dependent, Prev: Blackfin-Dependent, Up: Machine Dependencies
  7295. 9.7 BPF Dependent Features
  7296. ==========================
  7297. * Menu:
  7298. * BPF Options:: Options
  7299. * BPF Syntax:: Syntax
  7300. * BPF Directives:: Machine Directives
  7301. * BPF Opcodes:: Opcodes
  7302. 
  7303. File: as.info, Node: BPF Options, Next: BPF Syntax, Up: BPF-Dependent
  7304. 9.7.1 Options
  7305. -------------
  7306. '-EB'
  7307. This option specifies that the assembler should emit big-endian
  7308. eBPF.
  7309. '-EL'
  7310. This option specifies that the assembler should emit little-endian
  7311. eBPF.
  7312. Note that if no endianness option is specified in the command line,
  7313. the host endianness is used.
  7314. 
  7315. File: as.info, Node: BPF Syntax, Next: BPF Directives, Prev: BPF Options, Up: BPF-Dependent
  7316. 9.7.2 Syntax
  7317. ------------
  7318. * Menu:
  7319. * BPF-Chars:: Special Characters
  7320. * BPF-Regs:: Register Names
  7321. * BPF-Pseudo-Maps:: Pseudo map fds
  7322. 
  7323. File: as.info, Node: BPF-Chars, Next: BPF-Regs, Up: BPF Syntax
  7324. 9.7.2.1 Special Characters
  7325. ..........................
  7326. The presence of a ';' on a line indicates the start of a comment that
  7327. extends to the end of the current line. If a '#' appears as the first
  7328. character of a line, the whole line is treated as a comment.
  7329. Statements and assembly directives are separated by newlines.
  7330. 
  7331. File: as.info, Node: BPF-Regs, Next: BPF-Pseudo-Maps, Prev: BPF-Chars, Up: BPF Syntax
  7332. 9.7.2.2 Register Names
  7333. ......................
  7334. The eBPF processor provides ten general-purpose 64-bit registers, which
  7335. are read-write, and a read-only frame pointer register:
  7336. '%r0 .. %r9'
  7337. General-purpose registers.
  7338. '%r10'
  7339. Frame pointer register.
  7340. Some registers have additional names, to reflect their role in the
  7341. eBPF ABI:
  7342. '%a'
  7343. This is '%r0'.
  7344. '%ctx'
  7345. This is '%r6'.
  7346. '%fp'
  7347. This is '%r10'.
  7348. 
  7349. File: as.info, Node: BPF-Pseudo-Maps, Prev: BPF-Regs, Up: BPF Syntax
  7350. 9.7.2.3 Pseudo Maps
  7351. ...................
  7352. The 'LDDW' instruction can take a literal pseudo map file descriptor as
  7353. its second argument. This uses the syntax '%map_fd(N)' where 'N' is a
  7354. signed number.
  7355. For example, to load the address of the pseudo map with file
  7356. descriptor '2' in register 'r1' we would do:
  7357. lddw %r1, %map_fd(2)
  7358. 
  7359. File: as.info, Node: BPF Directives, Next: BPF Opcodes, Prev: BPF Syntax, Up: BPF-Dependent
  7360. 9.7.3 Machine Directives
  7361. ------------------------
  7362. The BPF version of 'as' supports the following additional machine
  7363. directives:
  7364. '.word'
  7365. The '.half' directive produces a 16 bit value.
  7366. '.word'
  7367. The '.word' directive produces a 32 bit value.
  7368. '.dword'
  7369. The '.dword' directive produces a 64 bit value.
  7370. 
  7371. File: as.info, Node: BPF Opcodes, Prev: BPF Directives, Up: BPF-Dependent
  7372. 9.7.4 Opcodes
  7373. -------------
  7374. In the instruction descriptions below the following field descriptors
  7375. are used:
  7376. '%d'
  7377. Destination general-purpose register whose role is to be
  7378. destination of an operation.
  7379. '%s'
  7380. Source general-purpose register whose role is to be the source of
  7381. an operation.
  7382. 'disp16'
  7383. 16-bit signed PC-relative offset, measured in number of 64-bit
  7384. words, minus one.
  7385. 'disp32'
  7386. 32-bit signed PC-relative offset, measured in number of 64-bit
  7387. words, minus one.
  7388. 'offset16'
  7389. Signed 16-bit immediate.
  7390. 'imm32'
  7391. Signed 32-bit immediate.
  7392. 'imm64'
  7393. Signed 64-bit immediate.
  7394. 9.7.4.1 Arithmetic instructions
  7395. ...............................
  7396. The destination register in these instructions act like an accumulator.
  7397. 'add %d, (%s|imm32)'
  7398. 64-bit arithmetic addition.
  7399. 'sub %d, (%s|imm32)'
  7400. 64-bit arithmetic subtraction.
  7401. 'mul %d, (%s|imm32)'
  7402. 64-bit arithmetic multiplication.
  7403. 'div %d, (%s|imm32)'
  7404. 64-bit arithmetic integer division.
  7405. 'mod %d, (%s|imm32)'
  7406. 64-bit integer remainder.
  7407. 'and %d, (%s|imm32)'
  7408. 64-bit bit-wise "and" operation.
  7409. 'or %d, (%s|imm32)'
  7410. 64-bit bit-wise "or" operation.
  7411. 'xor %d, (%s|imm32)'
  7412. 64-bit bit-wise exclusive-or operation.
  7413. 'lsh %d, (%s|imm32)'
  7414. 64-bit left shift, by '%s' or 'imm32' bits.
  7415. 'rsh %d, (%s|imm32)'
  7416. 64-bit right logical shift, by '%s' or 'imm32' bits.
  7417. 'arsh %d, (%s|imm32)'
  7418. 64-bit right arithmetic shift, by '%s' or 'imm32' bits.
  7419. 'neg %d'
  7420. 64-bit arithmetic negation.
  7421. 'mov %d, (%s|imm32)'
  7422. Move the 64-bit value of '%s' in '%d', or load 'imm32' in '%d'.
  7423. 9.7.4.2 32-bit arithmetic instructions
  7424. ......................................
  7425. The destination register in these instructions act as an accumulator.
  7426. 'add32 %d, (%s|imm32)'
  7427. 32-bit arithmetic addition.
  7428. 'sub32 %d, (%s|imm32)'
  7429. 32-bit arithmetic subtraction.
  7430. 'mul32 %d, (%s|imm32)'
  7431. 32-bit arithmetic multiplication.
  7432. 'div32 %d, (%s|imm32)'
  7433. 32-bit arithmetic integer division.
  7434. 'mod32 %d, (%s|imm32)'
  7435. 32-bit integer remainder.
  7436. 'and32 %d, (%s|imm32)'
  7437. 32-bit bit-wise "and" operation.
  7438. 'or32 %d, (%s|imm32)'
  7439. 32-bit bit-wise "or" operation.
  7440. 'xor32 %d, (%s|imm32)'
  7441. 32-bit bit-wise exclusive-or operation.
  7442. 'lsh32 %d, (%s|imm32)'
  7443. 32-bit left shift, by '%s' or 'imm32' bits.
  7444. 'rsh32 %d, (%s|imm32)'
  7445. 32-bit right logical shift, by '%s' or 'imm32' bits.
  7446. 'arsh32 %d, (%s|imm32)'
  7447. 32-bit right arithmetic shift, by '%s' or 'imm32' bits.
  7448. 'neg32 %d'
  7449. 32-bit arithmetic negation.
  7450. 'mov32 %d, (%s|imm32)'
  7451. Move the 32-bit value of '%s' in '%d', or load 'imm32' in '%d'.
  7452. 9.7.4.3 Endianness conversion instructions
  7453. ..........................................
  7454. 'endle %d, (8|16|32)'
  7455. Convert the 8-bit, 16-bit or 32-bit value in '%d' to little-endian.
  7456. 'endbe %d, (8|16|32)'
  7457. Convert the 8-bit, 16-bit or 32-bit value in '%d' to big-endian.
  7458. 9.7.4.4 64-bit load and pseudo maps
  7459. ...................................
  7460. 'lddw %d, imm64'
  7461. Load the given signed 64-bit immediate, or pseudo map descriptor,
  7462. to the destination register '%d'.
  7463. 'lddw %d, %map_fd(N)'
  7464. Load the address of the given pseudo map fd _N_ to the destination
  7465. register '%d'.
  7466. 9.7.4.5 Load instructions for socket filters
  7467. ............................................
  7468. The following instructions are intended to be used in socket filters,
  7469. and are therefore not general-purpose: they make assumptions on the
  7470. contents of several registers. See the file
  7471. 'Documentation/networking/filter.txt' in the Linux kernel source tree
  7472. for more information.
  7473. Absolute loads:
  7474. 'ldabsdw imm32'
  7475. Absolute 64-bit load.
  7476. 'ldabsw imm32'
  7477. Absolute 32-bit load.
  7478. 'ldabsh imm32'
  7479. Absolute 16-bit load.
  7480. 'ldabsb imm32'
  7481. Absolute 8-bit load.
  7482. Indirect loads:
  7483. 'ldinddw %s, imm32'
  7484. Indirect 64-bit load.
  7485. 'ldindw %s, imm32'
  7486. Indirect 32-bit load.
  7487. 'ldindh %s, imm32'
  7488. Indirect 16-bit load.
  7489. 'ldindb %s, imm32'
  7490. Indirect 8-bit load.
  7491. 9.7.4.6 Generic load/store instructions
  7492. .......................................
  7493. General-purpose load and store instructions are provided for several
  7494. word sizes.
  7495. Load to register instructions:
  7496. 'ldxdw %d, [%s+offset16]'
  7497. Generic 64-bit load.
  7498. 'ldxw %d, [%s+offset16]'
  7499. Generic 32-bit load.
  7500. 'ldxh %d, [%s+offset16]'
  7501. Generic 16-bit load.
  7502. 'ldxb %d, [%s+offset16]'
  7503. Generic 8-bit load.
  7504. Store from register instructions:
  7505. 'stxdw [%d+offset16], %s'
  7506. Generic 64-bit store.
  7507. 'stxw [%d+offset16], %s'
  7508. Generic 32-bit store.
  7509. 'stxh [%d+offset16], %s'
  7510. Generic 16-bit store.
  7511. 'stxb [%d+offset16], %s'
  7512. Generic 8-bit store.
  7513. Store from immediates instructions:
  7514. 'stddw [%d+offset16], imm32'
  7515. Store immediate as 64-bit.
  7516. 'stdw [%d+offset16], imm32'
  7517. Store immediate as 32-bit.
  7518. 'stdh [%d+offset16], imm32'
  7519. Store immediate as 16-bit.
  7520. 'stdb [%d+offset16], imm32'
  7521. Store immediate as 8-bit.
  7522. 9.7.4.7 Jump instructions
  7523. .........................
  7524. eBPF provides the following compare-and-jump instructions, which compare
  7525. the values of the two given registers, or the values of a register and
  7526. an immediate, and perform a branch in case the comparison holds true.
  7527. 'ja %d,(%s|imm32),disp16'
  7528. Jump-always.
  7529. 'jeq %d,(%s|imm32),disp16'
  7530. Jump if equal.
  7531. 'jgt %d,(%s|imm32),disp16'
  7532. Jump if greater.
  7533. 'jge %d,(%s|imm32),disp16'
  7534. Jump if greater or equal.
  7535. 'jlt %d,(%s|imm32),disp16'
  7536. Jump if lesser.
  7537. 'jle %d,(%s|imm32),disp16'
  7538. Jump if lesser or equal.
  7539. 'jset %d,(%s|imm32),disp16'
  7540. Jump if signed equal.
  7541. 'jne %d,(%s|imm32),disp16'
  7542. Jump if not equal.
  7543. 'jsgt %d,(%s|imm32),disp16'
  7544. Jump if signed greater.
  7545. 'jsge %d,(%s|imm32),disp16'
  7546. Jump if signed greater or equal.
  7547. 'jslt %d,(%s|imm32),disp16'
  7548. Jump if signed lesser.
  7549. 'jsle %d,(%s|imm32),disp16'
  7550. Jump if signed lesser or equal.
  7551. A call instruction is provided in order to perform calls to other
  7552. eBPF functions, or to external kernel helpers:
  7553. 'call (disp32|imm32)'
  7554. Jump and link to the offset _disp32_, or to the kernel helper
  7555. function identified by _imm32_.
  7556. Finally:
  7557. 'exit'
  7558. Terminate the eBPF program.
  7559. 9.7.4.8 Atomic instructions
  7560. ...........................
  7561. Atomic exchange-and-add instructions are provided in two flavors: one
  7562. for swapping 64-bit quantities and another for 32-bit quantities.
  7563. 'xadddw [%d+offset16],%s'
  7564. Exchange-and-add a 64-bit value at the specified location.
  7565. 'xaddw [%d+offset16],%s'
  7566. Exchange-and-add a 32-bit value at the specified location.
  7567. 
  7568. File: as.info, Node: CR16-Dependent, Next: CRIS-Dependent, Prev: BPF-Dependent, Up: Machine Dependencies
  7569. 9.8 CR16 Dependent Features
  7570. ===========================
  7571. * Menu:
  7572. * CR16 Operand Qualifiers:: CR16 Machine Operand Qualifiers
  7573. * CR16 Syntax:: Syntax for the CR16
  7574. 
  7575. File: as.info, Node: CR16 Operand Qualifiers, Next: CR16 Syntax, Up: CR16-Dependent
  7576. 9.8.1 CR16 Operand Qualifiers
  7577. -----------------------------
  7578. The National Semiconductor CR16 target of 'as' has a few machine
  7579. dependent operand qualifiers.
  7580. Operand expression type qualifier is an optional field in the
  7581. instruction operand, to determines the type of the expression field of
  7582. an operand. The '@' is required. CR16 architecture uses one of the
  7583. following expression qualifiers:
  7584. 's'
  7585. - 'Specifies expression operand type as small'
  7586. 'm'
  7587. - 'Specifies expression operand type as medium'
  7588. 'l'
  7589. - 'Specifies expression operand type as large'
  7590. 'c'
  7591. - 'Specifies the CR16 Assembler generates a relocation entry for
  7592. the operand, where pc has implied bit, the expression is adjusted
  7593. accordingly. The linker uses the relocation entry to update the
  7594. operand address at link time.'
  7595. 'got/GOT'
  7596. - 'Specifies the CR16 Assembler generates a relocation entry for
  7597. the operand, offset from Global Offset Table. The linker uses this
  7598. relocation entry to update the operand address at link time'
  7599. 'cgot/cGOT'
  7600. - 'Specifies the CompactRISC Assembler generates a relocation entry
  7601. for the operand, where pc has implied bit, the expression is
  7602. adjusted accordingly. The linker uses the relocation entry to
  7603. update the operand address at link time.'
  7604. CR16 target operand qualifiers and its size (in bits):
  7605. 'Immediate Operand: s'
  7606. 4 bits.
  7607. 'Immediate Operand: m'
  7608. 16 bits, for movb and movw instructions.
  7609. 'Immediate Operand: m'
  7610. 20 bits, movd instructions.
  7611. 'Immediate Operand: l'
  7612. 32 bits.
  7613. 'Absolute Operand: s'
  7614. Illegal specifier for this operand.
  7615. 'Absolute Operand: m'
  7616. 20 bits, movd instructions.
  7617. 'Displacement Operand: s'
  7618. 8 bits.
  7619. 'Displacement Operand: m'
  7620. 16 bits.
  7621. 'Displacement Operand: l'
  7622. 24 bits.
  7623. For example:
  7624. 1 movw $_myfun@c,r1
  7625. This loads the address of _myfun, shifted right by 1, into r1.
  7626. 2 movd $_myfun@c,(r2,r1)
  7627. This loads the address of _myfun, shifted right by 1, into register-pair r2-r1.
  7628. 3 _myfun_ptr:
  7629. .long _myfun@c
  7630. loadd _myfun_ptr, (r1,r0)
  7631. jal (r1,r0)
  7632. This .long directive, the address of _myfunc, shifted right by 1 at link time.
  7633. 4 loadd _data1@GOT(r12), (r1,r0)
  7634. This loads the address of _data1, into global offset table (ie GOT) and its offset value from GOT loads into register-pair r2-r1.
  7635. 5 loadd _myfunc@cGOT(r12), (r1,r0)
  7636. 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.
  7637. 
  7638. File: as.info, Node: CR16 Syntax, Prev: CR16 Operand Qualifiers, Up: CR16-Dependent
  7639. 9.8.2 CR16 Syntax
  7640. -----------------
  7641. * Menu:
  7642. * CR16-Chars:: Special Characters
  7643. 
  7644. File: as.info, Node: CR16-Chars, Up: CR16 Syntax
  7645. 9.8.2.1 Special Characters
  7646. ..........................
  7647. The presence of a '#' on a line indicates the start of a comment that
  7648. extends to the end of the current line. If the '#' appears as the first
  7649. character of a line, the whole line is treated as a comment, but in this
  7650. case the line can also be a logical line number directive (*note
  7651. Comments::) or a preprocessor control command (*note Preprocessing::).
  7652. The ';' character can be used to separate statements on the same
  7653. line.
  7654. 
  7655. File: as.info, Node: CRIS-Dependent, Next: C-SKY-Dependent, Prev: CR16-Dependent, Up: Machine Dependencies
  7656. 9.9 CRIS Dependent Features
  7657. ===========================
  7658. * Menu:
  7659. * CRIS-Opts:: Command-line Options
  7660. * CRIS-Expand:: Instruction expansion
  7661. * CRIS-Symbols:: Symbols
  7662. * CRIS-Syntax:: Syntax
  7663. 
  7664. File: as.info, Node: CRIS-Opts, Next: CRIS-Expand, Up: CRIS-Dependent
  7665. 9.9.1 Command-line Options
  7666. --------------------------
  7667. The CRIS version of 'as' has these machine-dependent command-line
  7668. options.
  7669. The format of the generated object files can be either ELF or a.out,
  7670. specified by the command-line options '--emulation=crisaout' and
  7671. '--emulation=criself'. The default is ELF (criself), unless 'as' has
  7672. been configured specifically for a.out by using the configuration name
  7673. 'cris-axis-aout'.
  7674. There are two different link-incompatible ELF object file variants
  7675. for CRIS, for use in environments where symbols are expected to be
  7676. prefixed by a leading '_' character and for environments without such a
  7677. symbol prefix. The variant used for GNU/Linux port has no symbol
  7678. prefix. Which variant to produce is specified by either of the options
  7679. '--underscore' and '--no-underscore'. The default is '--underscore'.
  7680. Since symbols in CRIS a.out objects are expected to have a '_' prefix,
  7681. specifying '--no-underscore' when generating a.out objects is an error.
  7682. Besides the object format difference, the effect of this option is to
  7683. parse register names differently (*note crisnous::). The
  7684. '--no-underscore' option makes a '$' register prefix mandatory.
  7685. The option '--pic' must be passed to 'as' in order to recognize the
  7686. symbol syntax used for ELF (SVR4 PIC) position-independent-code (*note
  7687. crispic::). This will also affect expansion of instructions. The
  7688. expansion with '--pic' will use PC-relative rather than (slightly
  7689. faster) absolute addresses in those expansions. This option is only
  7690. valid when generating ELF format object files.
  7691. The option '--march=ARCHITECTURE' specifies the recognized
  7692. instruction set and recognized register names. It also controls the
  7693. architecture type of the object file. Valid values for ARCHITECTURE
  7694. are:
  7695. 'v0_v10'
  7696. All instructions and register names for any architecture variant in
  7697. the set v0...v10 are recognized. This is the default if the target
  7698. is configured as cris-*.
  7699. 'v10'
  7700. Only instructions and register names for CRIS v10 (as found in
  7701. ETRAX 100 LX) are recognized. This is the default if the target is
  7702. configured as crisv10-*.
  7703. 'v32'
  7704. Only instructions and register names for CRIS v32 (code name
  7705. Guinness) are recognized. This is the default if the target is
  7706. configured as crisv32-*. This value implies '--no-mul-bug-abort'.
  7707. (A subsequent '--mul-bug-abort' will turn it back on.)
  7708. 'common_v10_v32'
  7709. Only instructions with register names and addressing modes with
  7710. opcodes common to the v10 and v32 are recognized.
  7711. When '-N' is specified, 'as' will emit a warning when a 16-bit branch
  7712. instruction is expanded into a 32-bit multiple-instruction construct
  7713. (*note CRIS-Expand::).
  7714. Some versions of the CRIS v10, for example in the Etrax 100 LX,
  7715. contain a bug that causes destabilizing memory accesses when a multiply
  7716. instruction is executed with certain values in the first operand just
  7717. before a cache-miss. When the '--mul-bug-abort' command-line option is
  7718. active (the default value), 'as' will refuse to assemble a file
  7719. containing a multiply instruction at a dangerous offset, one that could
  7720. be the last on a cache-line, or is in a section with insufficient
  7721. alignment. This placement checking does not catch any case where the
  7722. multiply instruction is dangerously placed because it is located in a
  7723. delay-slot. The '--mul-bug-abort' command-line option turns off the
  7724. checking.
  7725. 
  7726. File: as.info, Node: CRIS-Expand, Next: CRIS-Symbols, Prev: CRIS-Opts, Up: CRIS-Dependent
  7727. 9.9.2 Instruction expansion
  7728. ---------------------------
  7729. 'as' will silently choose an instruction that fits the operand size for
  7730. '[register+constant]' operands. For example, the offset '127' in
  7731. 'move.d [r3+127],r4' fits in an instruction using a signed-byte offset.
  7732. Similarly, 'move.d [r2+32767],r1' will generate an instruction using a
  7733. 16-bit offset. For symbolic expressions and constants that do not fit
  7734. in 16 bits including the sign bit, a 32-bit offset is generated.
  7735. For branches, 'as' will expand from a 16-bit branch instruction into
  7736. a sequence of instructions that can reach a full 32-bit address. Since
  7737. this does not correspond to a single instruction, such expansions can
  7738. optionally be warned about. *Note CRIS-Opts::.
  7739. If the operand is found to fit the range, a 'lapc' mnemonic will
  7740. translate to a 'lapcq' instruction. Use 'lapc.d' to force the 32-bit
  7741. 'lapc' instruction.
  7742. Similarly, the 'addo' mnemonic will translate to the shortest fitting
  7743. instruction of 'addoq', 'addo.w' and 'addo.d', when used with a operand
  7744. that is a constant known at assembly time.
  7745. 
  7746. File: as.info, Node: CRIS-Symbols, Next: CRIS-Syntax, Prev: CRIS-Expand, Up: CRIS-Dependent
  7747. 9.9.3 Symbols
  7748. -------------
  7749. Some symbols are defined by the assembler. They're intended to be used
  7750. in conditional assembly, for example:
  7751. .if ..asm.arch.cris.v32
  7752. CODE FOR CRIS V32
  7753. .elseif ..asm.arch.cris.common_v10_v32
  7754. CODE COMMON TO CRIS V32 AND CRIS V10
  7755. .elseif ..asm.arch.cris.v10 | ..asm.arch.cris.any_v0_v10
  7756. CODE FOR V10
  7757. .else
  7758. .error "Code needs to be added here."
  7759. .endif
  7760. These symbols are defined in the assembler, reflecting command-line
  7761. options, either when specified or the default. They are always defined,
  7762. to 0 or 1.
  7763. '..asm.arch.cris.any_v0_v10'
  7764. This symbol is non-zero when '--march=v0_v10' is specified or the
  7765. default.
  7766. '..asm.arch.cris.common_v10_v32'
  7767. Set according to the option '--march=common_v10_v32'.
  7768. '..asm.arch.cris.v10'
  7769. Reflects the option '--march=v10'.
  7770. '..asm.arch.cris.v32'
  7771. Corresponds to '--march=v10'.
  7772. Speaking of symbols, when a symbol is used in code, it can have a
  7773. suffix modifying its value for use in position-independent code. *Note
  7774. CRIS-Pic::.
  7775. 
  7776. File: as.info, Node: CRIS-Syntax, Prev: CRIS-Symbols, Up: CRIS-Dependent
  7777. 9.9.4 Syntax
  7778. ------------
  7779. There are different aspects of the CRIS assembly syntax.
  7780. * Menu:
  7781. * CRIS-Chars:: Special Characters
  7782. * CRIS-Pic:: Position-Independent Code Symbols
  7783. * CRIS-Regs:: Register Names
  7784. * CRIS-Pseudos:: Assembler Directives
  7785. 
  7786. File: as.info, Node: CRIS-Chars, Next: CRIS-Pic, Up: CRIS-Syntax
  7787. 9.9.4.1 Special Characters
  7788. ..........................
  7789. The character '#' is a line comment character. It starts a comment if
  7790. and only if it is placed at the beginning of a line.
  7791. A ';' character starts a comment anywhere on the line, causing all
  7792. characters up to the end of the line to be ignored.
  7793. A '@' character is handled as a line separator equivalent to a
  7794. logical new-line character (except in a comment), so separate
  7795. instructions can be specified on a single line.
  7796. 
  7797. File: as.info, Node: CRIS-Pic, Next: CRIS-Regs, Prev: CRIS-Chars, Up: CRIS-Syntax
  7798. 9.9.4.2 Symbols in position-independent code
  7799. ............................................
  7800. When generating position-independent code (SVR4 PIC) for use in
  7801. cris-axis-linux-gnu or crisv32-axis-linux-gnu shared libraries, symbol
  7802. suffixes are used to specify what kind of run-time symbol lookup will be
  7803. used, expressed in the object as different _relocation types_. Usually,
  7804. all absolute symbol values must be located in a table, the _global
  7805. offset table_, leaving the code position-independent; independent of
  7806. values of global symbols and independent of the address of the code.
  7807. The suffix modifies the value of the symbol, into for example an index
  7808. into the global offset table where the real symbol value is entered, or
  7809. a PC-relative value, or a value relative to the start of the global
  7810. offset table. All symbol suffixes start with the character ':' (omitted
  7811. in the list below). Every symbol use in code or a read-only section
  7812. must therefore have a PIC suffix to enable a useful shared library to be
  7813. created. Usually, these constructs must not be used with an additive
  7814. constant offset as is usually allowed, i.e. no 4 as in 'symbol + 4' is
  7815. allowed. This restriction is checked at link-time, not at
  7816. assembly-time.
  7817. 'GOT'
  7818. Attaching this suffix to a symbol in an instruction causes the
  7819. symbol to be entered into the global offset table. The value is a
  7820. 32-bit index for that symbol into the global offset table. The
  7821. name of the corresponding relocation is 'R_CRIS_32_GOT'. Example:
  7822. 'move.d [$r0+extsym:GOT],$r9'
  7823. 'GOT16'
  7824. Same as for 'GOT', but the value is a 16-bit index into the global
  7825. offset table. The corresponding relocation is 'R_CRIS_16_GOT'.
  7826. Example: 'move.d [$r0+asymbol:GOT16],$r10'
  7827. 'PLT'
  7828. This suffix is used for function symbols. It causes a _procedure
  7829. linkage table_, an array of code stubs, to be created at the time
  7830. the shared object is created or linked against, together with a
  7831. global offset table entry. The value is a pc-relative offset to
  7832. the corresponding stub code in the procedure linkage table. This
  7833. arrangement causes the run-time symbol resolver to be called to
  7834. look up and set the value of the symbol the first time the function
  7835. is called (at latest; depending environment variables). It is only
  7836. safe to leave the symbol unresolved this way if all references are
  7837. function calls. The name of the relocation is
  7838. 'R_CRIS_32_PLT_PCREL'. Example: 'add.d fnname:PLT,$pc'
  7839. 'PLTG'
  7840. Like PLT, but the value is relative to the beginning of the global
  7841. offset table. The relocation is 'R_CRIS_32_PLT_GOTREL'. Example:
  7842. 'move.d fnname:PLTG,$r3'
  7843. 'GOTPLT'
  7844. Similar to 'PLT', but the value of the symbol is a 32-bit index
  7845. into the global offset table. This is somewhat of a mix between
  7846. the effect of the 'GOT' and the 'PLT' suffix; the difference to
  7847. 'GOT' is that there will be a procedure linkage table entry
  7848. created, and that the symbol is assumed to be a function entry and
  7849. will be resolved by the run-time resolver as with 'PLT'. The
  7850. relocation is 'R_CRIS_32_GOTPLT'. Example: 'jsr
  7851. [$r0+fnname:GOTPLT]'
  7852. 'GOTPLT16'
  7853. A variant of 'GOTPLT' giving a 16-bit value. Its relocation name
  7854. is 'R_CRIS_16_GOTPLT'. Example: 'jsr [$r0+fnname:GOTPLT16]'
  7855. 'GOTOFF'
  7856. This suffix must only be attached to a local symbol, but may be
  7857. used in an expression adding an offset. The value is the address
  7858. of the symbol relative to the start of the global offset table.
  7859. The relocation name is 'R_CRIS_32_GOTREL'. Example: 'move.d
  7860. [$r0+localsym:GOTOFF],r3'
  7861. 
  7862. File: as.info, Node: CRIS-Regs, Next: CRIS-Pseudos, Prev: CRIS-Pic, Up: CRIS-Syntax
  7863. 9.9.4.3 Register names
  7864. ......................
  7865. A '$' character may always prefix a general or special register name in
  7866. an instruction operand but is mandatory when the option
  7867. '--no-underscore' is specified or when the '.syntax register_prefix'
  7868. directive is in effect (*note crisnous::). Register names are
  7869. case-insensitive.
  7870. 
  7871. File: as.info, Node: CRIS-Pseudos, Prev: CRIS-Regs, Up: CRIS-Syntax
  7872. 9.9.4.4 Assembler Directives
  7873. ............................
  7874. There are a few CRIS-specific pseudo-directives in addition to the
  7875. generic ones. *Note Pseudo Ops::. Constants emitted by
  7876. pseudo-directives are in little-endian order for CRIS. There is no
  7877. support for floating-point-specific directives for CRIS.
  7878. '.dword EXPRESSIONS'
  7879. The '.dword' directive is a synonym for '.int', expecting zero or
  7880. more EXPRESSIONS, separated by commas. For each expression, a
  7881. 32-bit little-endian constant is emitted.
  7882. '.syntax ARGUMENT'
  7883. The '.syntax' directive takes as ARGUMENT one of the following
  7884. case-sensitive choices.
  7885. 'no_register_prefix'
  7886. The '.syntax no_register_prefix' directive makes a '$'
  7887. character prefix on all registers optional. It overrides a
  7888. previous setting, including the corresponding effect of the
  7889. option '--no-underscore'. If this directive is used when
  7890. ordinary symbols do not have a '_' character prefix, care must
  7891. be taken to avoid ambiguities whether an operand is a register
  7892. or a symbol; using symbols with names the same as general or
  7893. special registers then invoke undefined behavior.
  7894. 'register_prefix'
  7895. This directive makes a '$' character prefix on all registers
  7896. mandatory. It overrides a previous setting, including the
  7897. corresponding effect of the option '--underscore'.
  7898. 'leading_underscore'
  7899. This is an assertion directive, emitting an error if the
  7900. '--no-underscore' option is in effect.
  7901. 'no_leading_underscore'
  7902. This is the opposite of the '.syntax leading_underscore'
  7903. directive and emits an error if the option '--underscore' is
  7904. in effect.
  7905. '.arch ARGUMENT'
  7906. This is an assertion directive, giving an error if the specified
  7907. ARGUMENT is not the same as the specified or default value for the
  7908. '--march=ARCHITECTURE' option (*note march-option::).
  7909. 
  7910. File: as.info, Node: C-SKY-Dependent, Next: D10V-Dependent, Prev: CRIS-Dependent, Up: Machine Dependencies
  7911. 9.10 C-SKY Dependent Features
  7912. =============================
  7913. * Menu:
  7914. * C-SKY Options:: Options
  7915. * C-SKY Syntax:: Syntax
  7916. 
  7917. File: as.info, Node: C-SKY Options, Next: C-SKY Syntax, Up: C-SKY-Dependent
  7918. 9.10.1 Options
  7919. --------------
  7920. '-march=ARCHNAME'
  7921. Assemble for architecture ARCHNAME. The '--help' option lists
  7922. valid values for ARCHNAME.
  7923. '-mcpu=CPUNAME'
  7924. Assemble for architecture CPUNAME. The '--help' option lists valid
  7925. values for CPUNAME.
  7926. '-EL'
  7927. '-mlittle-endian'
  7928. Generate little-endian output.
  7929. '-EB'
  7930. '-mbig-endian'
  7931. Generate big-endian output.
  7932. '-fpic'
  7933. '-pic'
  7934. Generate position-independent code.
  7935. '-mljump'
  7936. '-mno-ljump'
  7937. Enable/disable transformation of the short branch instructions
  7938. 'jbf', 'jbt', and 'jbr' to 'jmpi'. This option is for V2
  7939. processors only. It is ignored on CK801 and CK802 targets, which
  7940. do not support the 'jmpi' instruction, and is enabled by default
  7941. for other processors.
  7942. '-mbranch-stub'
  7943. '-mno-branch-stub'
  7944. Pass through 'R_CKCORE_PCREL_IMM26BY2' relocations for 'bsr'
  7945. instructions to the linker.
  7946. This option is only available for bare-metal C-SKY V2 ELF targets,
  7947. where it is enabled by default. It cannot be used in code that
  7948. will be dynamically linked against shared libraries.
  7949. '-force2bsr'
  7950. '-mforce2bsr'
  7951. '-no-force2bsr'
  7952. '-mno-force2bsr'
  7953. Enable/disable transformation of 'jbsr' instructions to 'bsr'.
  7954. This option is always enabled (and '-mno-force2bsr' is ignored) for
  7955. CK801/CK802 targets. It is also always enabled when
  7956. '-mbranch-stub' is in effect.
  7957. '-jsri2bsr'
  7958. '-mjsri2bsr'
  7959. '-no-jsri2bsr'
  7960. '-mno-jsri2bsr'
  7961. Enable/disable transformation of 'jsri' instructions to 'bsr'.
  7962. This option is enabled by default.
  7963. '-mnolrw'
  7964. '-mno-lrw'
  7965. Enable/disable transformation of 'lrw' instructions into a
  7966. 'movih'/'ori' pair.
  7967. '-melrw'
  7968. '-mno-elrw'
  7969. Enable/disable extended 'lrw' instructions. This option is enabled
  7970. by default for CK800-series processors.
  7971. '-mlaf'
  7972. '-mliterals-after-func'
  7973. '-mno-laf'
  7974. '-mno-literals-after-func'
  7975. Enable/disable placement of literal pools after each function.
  7976. '-mlabr'
  7977. '-mliterals-after-br'
  7978. '-mno-labr'
  7979. '-mnoliterals-after-br'
  7980. Enable/disable placement of literal pools after unconditional
  7981. branches. This option is enabled by default.
  7982. '-mistack'
  7983. '-mno-istack'
  7984. Enable/disable interrupt stack instructions. This option is
  7985. enabled by default on CK801, CK802, and CK802 processors.
  7986. The following options explicitly enable certain optional
  7987. instructions. These features are also enabled implicitly by using
  7988. '-mcpu=' to specify a processor that supports it.
  7989. '-mhard-float'
  7990. Enable hard float instructions.
  7991. '-mmp'
  7992. Enable multiprocessor instructions.
  7993. '-mcp'
  7994. Enable coprocessor instructions.
  7995. '-mcache'
  7996. Enable cache prefetch instruction.
  7997. '-msecurity'
  7998. Enable C-SKY security instructions.
  7999. '-mtrust'
  8000. Enable C-SKY trust instructions.
  8001. '-mdsp'
  8002. Enable DSP instructions.
  8003. '-medsp'
  8004. Enable enhanced DSP instructions.
  8005. '-mvdsp'
  8006. Enable vector DSP instructions.
  8007. 
  8008. File: as.info, Node: C-SKY Syntax, Prev: C-SKY Options, Up: C-SKY-Dependent
  8009. 9.10.2 Syntax
  8010. -------------
  8011. 'as' implements the standard C-SKY assembler syntax documented in the
  8012. 'C-SKY V2 CPU Applications Binary Interface Standards Manual'.
  8013. 
  8014. File: as.info, Node: D10V-Dependent, Next: D30V-Dependent, Prev: C-SKY-Dependent, Up: Machine Dependencies
  8015. 9.11 D10V Dependent Features
  8016. ============================
  8017. * Menu:
  8018. * D10V-Opts:: D10V Options
  8019. * D10V-Syntax:: Syntax
  8020. * D10V-Float:: Floating Point
  8021. * D10V-Opcodes:: Opcodes
  8022. 
  8023. File: as.info, Node: D10V-Opts, Next: D10V-Syntax, Up: D10V-Dependent
  8024. 9.11.1 D10V Options
  8025. -------------------
  8026. The Mitsubishi D10V version of 'as' has a few machine dependent options.
  8027. '-O'
  8028. The D10V can often execute two sub-instructions in parallel. When
  8029. this option is used, 'as' will attempt to optimize its output by
  8030. detecting when instructions can be executed in parallel.
  8031. '--nowarnswap'
  8032. To optimize execution performance, 'as' will sometimes swap the
  8033. order of instructions. Normally this generates a warning. When
  8034. this option is used, no warning will be generated when instructions
  8035. are swapped.
  8036. '--gstabs-packing'
  8037. '--no-gstabs-packing'
  8038. 'as' packs adjacent short instructions into a single packed
  8039. instruction. '--no-gstabs-packing' turns instruction packing off
  8040. if '--gstabs' is specified as well; '--gstabs-packing' (the
  8041. default) turns instruction packing on even when '--gstabs' is
  8042. specified.
  8043. 
  8044. File: as.info, Node: D10V-Syntax, Next: D10V-Float, Prev: D10V-Opts, Up: D10V-Dependent
  8045. 9.11.2 Syntax
  8046. -------------
  8047. The D10V syntax is based on the syntax in Mitsubishi's D10V architecture
  8048. manual. The differences are detailed below.
  8049. * Menu:
  8050. * D10V-Size:: Size Modifiers
  8051. * D10V-Subs:: Sub-Instructions
  8052. * D10V-Chars:: Special Characters
  8053. * D10V-Regs:: Register Names
  8054. * D10V-Addressing:: Addressing Modes
  8055. * D10V-Word:: @WORD Modifier
  8056. 
  8057. File: as.info, Node: D10V-Size, Next: D10V-Subs, Up: D10V-Syntax
  8058. 9.11.2.1 Size Modifiers
  8059. .......................
  8060. The D10V version of 'as' uses the instruction names in the D10V
  8061. Architecture Manual. However, the names in the manual are sometimes
  8062. ambiguous. There are instruction names that can assemble to a short or
  8063. long form opcode. How does the assembler pick the correct form? 'as'
  8064. will always pick the smallest form if it can. When dealing with a
  8065. symbol that is not defined yet when a line is being assembled, it will
  8066. always use the long form. If you need to force the assembler to use
  8067. either the short or long form of the instruction, you can append either
  8068. '.s' (short) or '.l' (long) to it. For example, if you are writing an
  8069. assembly program and you want to do a branch to a symbol that is defined
  8070. later in your program, you can write 'bra.s foo'. Objdump and GDB will
  8071. always append '.s' or '.l' to instructions which have both short and
  8072. long forms.
  8073. 
  8074. File: as.info, Node: D10V-Subs, Next: D10V-Chars, Prev: D10V-Size, Up: D10V-Syntax
  8075. 9.11.2.2 Sub-Instructions
  8076. .........................
  8077. The D10V assembler takes as input a series of instructions, either
  8078. one-per-line, or in the special two-per-line format described in the
  8079. next section. Some of these instructions will be short-form or
  8080. sub-instructions. These sub-instructions can be packed into a single
  8081. instruction. The assembler will do this automatically. It will also
  8082. detect when it should not pack instructions. For example, when a label
  8083. is defined, the next instruction will never be packaged with the
  8084. previous one. Whenever a branch and link instruction is called, it will
  8085. not be packaged with the next instruction so the return address will be
  8086. valid. Nops are automatically inserted when necessary.
  8087. If you do not want the assembler automatically making these
  8088. decisions, you can control the packaging and execution type (parallel or
  8089. sequential) with the special execution symbols described in the next
  8090. section.
  8091. 
  8092. File: as.info, Node: D10V-Chars, Next: D10V-Regs, Prev: D10V-Subs, Up: D10V-Syntax
  8093. 9.11.2.3 Special Characters
  8094. ...........................
  8095. A semicolon (';') can be used anywhere on a line to start a comment that
  8096. extends to the end of the line.
  8097. If a '#' appears as the first character of a line, the whole line is
  8098. treated as a comment, but in this case the line could also be a logical
  8099. line number directive (*note Comments::) or a preprocessor control
  8100. command (*note Preprocessing::).
  8101. Sub-instructions may be executed in order, in reverse-order, or in
  8102. parallel. Instructions listed in the standard one-per-line format will
  8103. be executed sequentially. To specify the executing order, use the
  8104. following symbols:
  8105. '->'
  8106. Sequential with instruction on the left first.
  8107. '<-'
  8108. Sequential with instruction on the right first.
  8109. '||'
  8110. Parallel
  8111. The D10V syntax allows either one instruction per line, one
  8112. instruction per line with the execution symbol, or two instructions per
  8113. line. For example
  8114. 'abs a1 -> abs r0'
  8115. Execute these sequentially. The instruction on the right is in the
  8116. right container and is executed second.
  8117. 'abs r0 <- abs a1'
  8118. Execute these reverse-sequentially. The instruction on the right
  8119. is in the right container, and is executed first.
  8120. 'ld2w r2,@r8+ || mac a0,r0,r7'
  8121. Execute these in parallel.
  8122. 'ld2w r2,@r8+ ||'
  8123. 'mac a0,r0,r7'
  8124. Two-line format. Execute these in parallel.
  8125. 'ld2w r2,@r8+'
  8126. 'mac a0,r0,r7'
  8127. Two-line format. Execute these sequentially. Assembler will put
  8128. them in the proper containers.
  8129. 'ld2w r2,@r8+ ->'
  8130. 'mac a0,r0,r7'
  8131. Two-line format. Execute these sequentially. Same as above but
  8132. second instruction will always go into right container.
  8133. Since '$' has no special meaning, you may use it in symbol names.
  8134. 
  8135. File: as.info, Node: D10V-Regs, Next: D10V-Addressing, Prev: D10V-Chars, Up: D10V-Syntax
  8136. 9.11.2.4 Register Names
  8137. .......................
  8138. You can use the predefined symbols 'r0' through 'r15' to refer to the
  8139. D10V registers. You can also use 'sp' as an alias for 'r15'. The
  8140. accumulators are 'a0' and 'a1'. There are special register-pair names
  8141. that may optionally be used in opcodes that require even-numbered
  8142. registers. Register names are not case sensitive.
  8143. Register Pairs
  8144. 'r0-r1'
  8145. 'r2-r3'
  8146. 'r4-r5'
  8147. 'r6-r7'
  8148. 'r8-r9'
  8149. 'r10-r11'
  8150. 'r12-r13'
  8151. 'r14-r15'
  8152. The D10V also has predefined symbols for these control registers and
  8153. status bits:
  8154. 'psw'
  8155. Processor Status Word
  8156. 'bpsw'
  8157. Backup Processor Status Word
  8158. 'pc'
  8159. Program Counter
  8160. 'bpc'
  8161. Backup Program Counter
  8162. 'rpt_c'
  8163. Repeat Count
  8164. 'rpt_s'
  8165. Repeat Start address
  8166. 'rpt_e'
  8167. Repeat End address
  8168. 'mod_s'
  8169. Modulo Start address
  8170. 'mod_e'
  8171. Modulo End address
  8172. 'iba'
  8173. Instruction Break Address
  8174. 'f0'
  8175. Flag 0
  8176. 'f1'
  8177. Flag 1
  8178. 'c'
  8179. Carry flag
  8180. 
  8181. File: as.info, Node: D10V-Addressing, Next: D10V-Word, Prev: D10V-Regs, Up: D10V-Syntax
  8182. 9.11.2.5 Addressing Modes
  8183. .........................
  8184. 'as' understands the following addressing modes for the D10V. 'RN' in
  8185. the following refers to any of the numbered registers, but _not_ the
  8186. control registers.
  8187. 'RN'
  8188. Register direct
  8189. '@RN'
  8190. Register indirect
  8191. '@RN+'
  8192. Register indirect with post-increment
  8193. '@RN-'
  8194. Register indirect with post-decrement
  8195. '@-SP'
  8196. Register indirect with pre-decrement
  8197. '@(DISP, RN)'
  8198. Register indirect with displacement
  8199. 'ADDR'
  8200. PC relative address (for branch or rep).
  8201. '#IMM'
  8202. Immediate data (the '#' is optional and ignored)
  8203. 
  8204. File: as.info, Node: D10V-Word, Prev: D10V-Addressing, Up: D10V-Syntax
  8205. 9.11.2.6 @WORD Modifier
  8206. .......................
  8207. Any symbol followed by '@word' will be replaced by the symbol's value
  8208. shifted right by 2. This is used in situations such as loading a
  8209. register with the address of a function (or any other code fragment).
  8210. For example, if you want to load a register with the location of the
  8211. function 'main' then jump to that function, you could do it as follows:
  8212. ldi r2, main@word
  8213. jmp r2
  8214. 
  8215. File: as.info, Node: D10V-Float, Next: D10V-Opcodes, Prev: D10V-Syntax, Up: D10V-Dependent
  8216. 9.11.3 Floating Point
  8217. ---------------------
  8218. The D10V has no hardware floating point, but the '.float' and '.double'
  8219. directives generates IEEE floating-point numbers for compatibility with
  8220. other development tools.
  8221. 
  8222. File: as.info, Node: D10V-Opcodes, Prev: D10V-Float, Up: D10V-Dependent
  8223. 9.11.4 Opcodes
  8224. --------------
  8225. For detailed information on the D10V machine instruction set, see 'D10V
  8226. Architecture: A VLIW Microprocessor for Multimedia Applications'
  8227. (Mitsubishi Electric Corp.). 'as' implements all the standard D10V
  8228. opcodes. The only changes are those described in the section on size
  8229. modifiers
  8230. 
  8231. File: as.info, Node: D30V-Dependent, Next: Epiphany-Dependent, Prev: D10V-Dependent, Up: Machine Dependencies
  8232. 9.12 D30V Dependent Features
  8233. ============================
  8234. * Menu:
  8235. * D30V-Opts:: D30V Options
  8236. * D30V-Syntax:: Syntax
  8237. * D30V-Float:: Floating Point
  8238. * D30V-Opcodes:: Opcodes
  8239. 
  8240. File: as.info, Node: D30V-Opts, Next: D30V-Syntax, Up: D30V-Dependent
  8241. 9.12.1 D30V Options
  8242. -------------------
  8243. The Mitsubishi D30V version of 'as' has a few machine dependent options.
  8244. '-O'
  8245. The D30V can often execute two sub-instructions in parallel. When
  8246. this option is used, 'as' will attempt to optimize its output by
  8247. detecting when instructions can be executed in parallel.
  8248. '-n'
  8249. When this option is used, 'as' will issue a warning every time it
  8250. adds a nop instruction.
  8251. '-N'
  8252. When this option is used, 'as' will issue a warning if it needs to
  8253. insert a nop after a 32-bit multiply before a load or 16-bit
  8254. multiply instruction.
  8255. 
  8256. File: as.info, Node: D30V-Syntax, Next: D30V-Float, Prev: D30V-Opts, Up: D30V-Dependent
  8257. 9.12.2 Syntax
  8258. -------------
  8259. The D30V syntax is based on the syntax in Mitsubishi's D30V architecture
  8260. manual. The differences are detailed below.
  8261. * Menu:
  8262. * D30V-Size:: Size Modifiers
  8263. * D30V-Subs:: Sub-Instructions
  8264. * D30V-Chars:: Special Characters
  8265. * D30V-Guarded:: Guarded Execution
  8266. * D30V-Regs:: Register Names
  8267. * D30V-Addressing:: Addressing Modes
  8268. 
  8269. File: as.info, Node: D30V-Size, Next: D30V-Subs, Up: D30V-Syntax
  8270. 9.12.2.1 Size Modifiers
  8271. .......................
  8272. The D30V version of 'as' uses the instruction names in the D30V
  8273. Architecture Manual. However, the names in the manual are sometimes
  8274. ambiguous. There are instruction names that can assemble to a short or
  8275. long form opcode. How does the assembler pick the correct form? 'as'
  8276. will always pick the smallest form if it can. When dealing with a
  8277. symbol that is not defined yet when a line is being assembled, it will
  8278. always use the long form. If you need to force the assembler to use
  8279. either the short or long form of the instruction, you can append either
  8280. '.s' (short) or '.l' (long) to it. For example, if you are writing an
  8281. assembly program and you want to do a branch to a symbol that is defined
  8282. later in your program, you can write 'bra.s foo'. Objdump and GDB will
  8283. always append '.s' or '.l' to instructions which have both short and
  8284. long forms.
  8285. 
  8286. File: as.info, Node: D30V-Subs, Next: D30V-Chars, Prev: D30V-Size, Up: D30V-Syntax
  8287. 9.12.2.2 Sub-Instructions
  8288. .........................
  8289. The D30V assembler takes as input a series of instructions, either
  8290. one-per-line, or in the special two-per-line format described in the
  8291. next section. Some of these instructions will be short-form or
  8292. sub-instructions. These sub-instructions can be packed into a single
  8293. instruction. The assembler will do this automatically. It will also
  8294. detect when it should not pack instructions. For example, when a label
  8295. is defined, the next instruction will never be packaged with the
  8296. previous one. Whenever a branch and link instruction is called, it will
  8297. not be packaged with the next instruction so the return address will be
  8298. valid. Nops are automatically inserted when necessary.
  8299. If you do not want the assembler automatically making these
  8300. decisions, you can control the packaging and execution type (parallel or
  8301. sequential) with the special execution symbols described in the next
  8302. section.
  8303. 
  8304. File: as.info, Node: D30V-Chars, Next: D30V-Guarded, Prev: D30V-Subs, Up: D30V-Syntax
  8305. 9.12.2.3 Special Characters
  8306. ...........................
  8307. A semicolon (';') can be used anywhere on a line to start a comment that
  8308. extends to the end of the line.
  8309. If a '#' appears as the first character of a line, the whole line is
  8310. treated as a comment, but in this case the line could also be a logical
  8311. line number directive (*note Comments::) or a preprocessor control
  8312. command (*note Preprocessing::).
  8313. Sub-instructions may be executed in order, in reverse-order, or in
  8314. parallel. Instructions listed in the standard one-per-line format will
  8315. be executed sequentially unless you use the '-O' option.
  8316. To specify the executing order, use the following symbols:
  8317. '->'
  8318. Sequential with instruction on the left first.
  8319. '<-'
  8320. Sequential with instruction on the right first.
  8321. '||'
  8322. Parallel
  8323. The D30V syntax allows either one instruction per line, one
  8324. instruction per line with the execution symbol, or two instructions per
  8325. line. For example
  8326. 'abs r2,r3 -> abs r4,r5'
  8327. Execute these sequentially. The instruction on the right is in the
  8328. right container and is executed second.
  8329. 'abs r2,r3 <- abs r4,r5'
  8330. Execute these reverse-sequentially. The instruction on the right
  8331. is in the right container, and is executed first.
  8332. 'abs r2,r3 || abs r4,r5'
  8333. Execute these in parallel.
  8334. 'ldw r2,@(r3,r4) ||'
  8335. 'mulx r6,r8,r9'
  8336. Two-line format. Execute these in parallel.
  8337. 'mulx a0,r8,r9'
  8338. 'stw r2,@(r3,r4)'
  8339. Two-line format. Execute these sequentially unless '-O' option is
  8340. used. If the '-O' option is used, the assembler will determine if
  8341. the instructions could be done in parallel (the above two
  8342. instructions can be done in parallel), and if so, emit them as
  8343. parallel instructions. The assembler will put them in the proper
  8344. containers. In the above example, the assembler will put the 'stw'
  8345. instruction in left container and the 'mulx' instruction in the
  8346. right container.
  8347. 'stw r2,@(r3,r4) ->'
  8348. 'mulx a0,r8,r9'
  8349. Two-line format. Execute the 'stw' instruction followed by the
  8350. 'mulx' instruction sequentially. The first instruction goes in the
  8351. left container and the second instruction goes into right
  8352. container. The assembler will give an error if the machine
  8353. ordering constraints are violated.
  8354. 'stw r2,@(r3,r4) <-'
  8355. 'mulx a0,r8,r9'
  8356. Same as previous example, except that the 'mulx' instruction is
  8357. executed before the 'stw' instruction.
  8358. Since '$' has no special meaning, you may use it in symbol names.
  8359. 
  8360. File: as.info, Node: D30V-Guarded, Next: D30V-Regs, Prev: D30V-Chars, Up: D30V-Syntax
  8361. 9.12.2.4 Guarded Execution
  8362. ..........................
  8363. 'as' supports the full range of guarded execution directives for each
  8364. instruction. Just append the directive after the instruction proper.
  8365. The directives are:
  8366. '/tx'
  8367. Execute the instruction if flag f0 is true.
  8368. '/fx'
  8369. Execute the instruction if flag f0 is false.
  8370. '/xt'
  8371. Execute the instruction if flag f1 is true.
  8372. '/xf'
  8373. Execute the instruction if flag f1 is false.
  8374. '/tt'
  8375. Execute the instruction if both flags f0 and f1 are true.
  8376. '/tf'
  8377. Execute the instruction if flag f0 is true and flag f1 is false.
  8378. 
  8379. File: as.info, Node: D30V-Regs, Next: D30V-Addressing, Prev: D30V-Guarded, Up: D30V-Syntax
  8380. 9.12.2.5 Register Names
  8381. .......................
  8382. You can use the predefined symbols 'r0' through 'r63' to refer to the
  8383. D30V registers. You can also use 'sp' as an alias for 'r63' and 'link'
  8384. as an alias for 'r62'. The accumulators are 'a0' and 'a1'.
  8385. The D30V also has predefined symbols for these control registers and
  8386. status bits:
  8387. 'psw'
  8388. Processor Status Word
  8389. 'bpsw'
  8390. Backup Processor Status Word
  8391. 'pc'
  8392. Program Counter
  8393. 'bpc'
  8394. Backup Program Counter
  8395. 'rpt_c'
  8396. Repeat Count
  8397. 'rpt_s'
  8398. Repeat Start address
  8399. 'rpt_e'
  8400. Repeat End address
  8401. 'mod_s'
  8402. Modulo Start address
  8403. 'mod_e'
  8404. Modulo End address
  8405. 'iba'
  8406. Instruction Break Address
  8407. 'f0'
  8408. Flag 0
  8409. 'f1'
  8410. Flag 1
  8411. 'f2'
  8412. Flag 2
  8413. 'f3'
  8414. Flag 3
  8415. 'f4'
  8416. Flag 4
  8417. 'f5'
  8418. Flag 5
  8419. 'f6'
  8420. Flag 6
  8421. 'f7'
  8422. Flag 7
  8423. 's'
  8424. Same as flag 4 (saturation flag)
  8425. 'v'
  8426. Same as flag 5 (overflow flag)
  8427. 'va'
  8428. Same as flag 6 (sticky overflow flag)
  8429. 'c'
  8430. Same as flag 7 (carry/borrow flag)
  8431. 'b'
  8432. Same as flag 7 (carry/borrow flag)
  8433. 
  8434. File: as.info, Node: D30V-Addressing, Prev: D30V-Regs, Up: D30V-Syntax
  8435. 9.12.2.6 Addressing Modes
  8436. .........................
  8437. 'as' understands the following addressing modes for the D30V. 'RN' in
  8438. the following refers to any of the numbered registers, but _not_ the
  8439. control registers.
  8440. 'RN'
  8441. Register direct
  8442. '@RN'
  8443. Register indirect
  8444. '@RN+'
  8445. Register indirect with post-increment
  8446. '@RN-'
  8447. Register indirect with post-decrement
  8448. '@-SP'
  8449. Register indirect with pre-decrement
  8450. '@(DISP, RN)'
  8451. Register indirect with displacement
  8452. 'ADDR'
  8453. PC relative address (for branch or rep).
  8454. '#IMM'
  8455. Immediate data (the '#' is optional and ignored)
  8456. 
  8457. File: as.info, Node: D30V-Float, Next: D30V-Opcodes, Prev: D30V-Syntax, Up: D30V-Dependent
  8458. 9.12.3 Floating Point
  8459. ---------------------
  8460. The D30V has no hardware floating point, but the '.float' and '.double'
  8461. directives generates IEEE floating-point numbers for compatibility with
  8462. other development tools.
  8463. 
  8464. File: as.info, Node: D30V-Opcodes, Prev: D30V-Float, Up: D30V-Dependent
  8465. 9.12.4 Opcodes
  8466. --------------
  8467. For detailed information on the D30V machine instruction set, see 'D30V
  8468. Architecture: A VLIW Microprocessor for Multimedia Applications'
  8469. (Mitsubishi Electric Corp.). 'as' implements all the standard D30V
  8470. opcodes. The only changes are those described in the section on size
  8471. modifiers
  8472. 
  8473. File: as.info, Node: Epiphany-Dependent, Next: H8/300-Dependent, Prev: D30V-Dependent, Up: Machine Dependencies
  8474. 9.13 Epiphany Dependent Features
  8475. ================================
  8476. * Menu:
  8477. * Epiphany Options:: Options
  8478. * Epiphany Syntax:: Epiphany Syntax
  8479. 
  8480. File: as.info, Node: Epiphany Options, Next: Epiphany Syntax, Up: Epiphany-Dependent
  8481. 9.13.1 Options
  8482. --------------
  8483. 'as' has two additional command-line options for the Epiphany
  8484. architecture.
  8485. '-mepiphany'
  8486. Specifies that the both 32 and 16 bit instructions are allowed.
  8487. This is the default behavior.
  8488. '-mepiphany16'
  8489. Restricts the permitted instructions to just the 16 bit set.
  8490. 
  8491. File: as.info, Node: Epiphany Syntax, Prev: Epiphany Options, Up: Epiphany-Dependent
  8492. 9.13.2 Epiphany Syntax
  8493. ----------------------
  8494. * Menu:
  8495. * Epiphany-Chars:: Special Characters
  8496. 
  8497. File: as.info, Node: Epiphany-Chars, Up: Epiphany Syntax
  8498. 9.13.2.1 Special Characters
  8499. ...........................
  8500. The presence of a ';' on a line indicates the start of a comment that
  8501. extends to the end of the current line.
  8502. If a '#' appears as the first character of a line then the whole line
  8503. is treated as a comment, but in this case the line could also be a
  8504. logical line number directive (*note Comments::) or a preprocessor
  8505. control command (*note Preprocessing::).
  8506. The '`' character can be used to separate statements on the same
  8507. line.
  8508. 
  8509. File: as.info, Node: H8/300-Dependent, Next: HPPA-Dependent, Prev: Epiphany-Dependent, Up: Machine Dependencies
  8510. 9.14 H8/300 Dependent Features
  8511. ==============================
  8512. * Menu:
  8513. * H8/300 Options:: Options
  8514. * H8/300 Syntax:: Syntax
  8515. * H8/300 Floating Point:: Floating Point
  8516. * H8/300 Directives:: H8/300 Machine Directives
  8517. * H8/300 Opcodes:: Opcodes
  8518. 
  8519. File: as.info, Node: H8/300 Options, Next: H8/300 Syntax, Up: H8/300-Dependent
  8520. 9.14.1 Options
  8521. --------------
  8522. The Renesas H8/300 version of 'as' has one machine-dependent option:
  8523. '-h-tick-hex'
  8524. Support H'00 style hex constants in addition to 0x00 style.
  8525. '-mach=NAME'
  8526. Sets the H8300 machine variant. The following machine names are
  8527. recognised: 'h8300h', 'h8300hn', 'h8300s', 'h8300sn', 'h8300sx' and
  8528. 'h8300sxn'.
  8529. 
  8530. File: as.info, Node: H8/300 Syntax, Next: H8/300 Floating Point, Prev: H8/300 Options, Up: H8/300-Dependent
  8531. 9.14.2 Syntax
  8532. -------------
  8533. * Menu:
  8534. * H8/300-Chars:: Special Characters
  8535. * H8/300-Regs:: Register Names
  8536. * H8/300-Addressing:: Addressing Modes
  8537. 
  8538. File: as.info, Node: H8/300-Chars, Next: H8/300-Regs, Up: H8/300 Syntax
  8539. 9.14.2.1 Special Characters
  8540. ...........................
  8541. ';' is the line comment character.
  8542. '$' can be used instead of a newline to separate statements.
  8543. Therefore _you may not use '$' in symbol names_ on the H8/300.
  8544. 
  8545. File: as.info, Node: H8/300-Regs, Next: H8/300-Addressing, Prev: H8/300-Chars, Up: H8/300 Syntax
  8546. 9.14.2.2 Register Names
  8547. .......................
  8548. You can use predefined symbols of the form 'rNh' and 'rNl' to refer to
  8549. the H8/300 registers as sixteen 8-bit general-purpose registers. N is a
  8550. digit from '0' to '7'); for instance, both 'r0h' and 'r7l' are valid
  8551. register names.
  8552. You can also use the eight predefined symbols 'rN' to refer to the
  8553. H8/300 registers as 16-bit registers (you must use this form for
  8554. addressing).
  8555. On the H8/300H, you can also use the eight predefined symbols 'erN'
  8556. ('er0' ... 'er7') to refer to the 32-bit general purpose registers.
  8557. The two control registers are called 'pc' (program counter; a 16-bit
  8558. register, except on the H8/300H where it is 24 bits) and 'ccr'
  8559. (condition code register; an 8-bit register). 'r7' is used as the stack
  8560. pointer, and can also be called 'sp'.
  8561. 
  8562. File: as.info, Node: H8/300-Addressing, Prev: H8/300-Regs, Up: H8/300 Syntax
  8563. 9.14.2.3 Addressing Modes
  8564. .........................
  8565. as understands the following addressing modes for the H8/300:
  8566. 'rN'
  8567. Register direct
  8568. '@rN'
  8569. Register indirect
  8570. '@(D, rN)'
  8571. '@(D:16, rN)'
  8572. '@(D:24, rN)'
  8573. Register indirect: 16-bit or 24-bit displacement D from register N.
  8574. (24-bit displacements are only meaningful on the H8/300H.)
  8575. '@rN+'
  8576. Register indirect with post-increment
  8577. '@-rN'
  8578. Register indirect with pre-decrement
  8579. '@AA'
  8580. '@AA:8'
  8581. '@AA:16'
  8582. '@AA:24'
  8583. Absolute address 'aa'. (The address size ':24' only makes sense on
  8584. the H8/300H.)
  8585. '#XX'
  8586. '#XX:8'
  8587. '#XX:16'
  8588. '#XX:32'
  8589. Immediate data XX. You may specify the ':8', ':16', or ':32' for
  8590. clarity, if you wish; but 'as' neither requires this nor uses
  8591. it--the data size required is taken from context.
  8592. '@@AA'
  8593. '@@AA:8'
  8594. Memory indirect. You may specify the ':8' for clarity, if you
  8595. wish; but 'as' neither requires this nor uses it.
  8596. 
  8597. File: as.info, Node: H8/300 Floating Point, Next: H8/300 Directives, Prev: H8/300 Syntax, Up: H8/300-Dependent
  8598. 9.14.3 Floating Point
  8599. ---------------------
  8600. The H8/300 family has no hardware floating point, but the '.float'
  8601. directive generates IEEE floating-point numbers for compatibility with
  8602. other development tools.
  8603. 
  8604. File: as.info, Node: H8/300 Directives, Next: H8/300 Opcodes, Prev: H8/300 Floating Point, Up: H8/300-Dependent
  8605. 9.14.4 H8/300 Machine Directives
  8606. --------------------------------
  8607. 'as' has the following machine-dependent directives for the H8/300:
  8608. '.h8300h'
  8609. Recognize and emit additional instructions for the H8/300H variant,
  8610. and also make '.int' emit 32-bit numbers rather than the usual
  8611. (16-bit) for the H8/300 family.
  8612. '.h8300s'
  8613. Recognize and emit additional instructions for the H8S variant, and
  8614. also make '.int' emit 32-bit numbers rather than the usual (16-bit)
  8615. for the H8/300 family.
  8616. '.h8300hn'
  8617. Recognize and emit additional instructions for the H8/300H variant
  8618. in normal mode, and also make '.int' emit 32-bit numbers rather
  8619. than the usual (16-bit) for the H8/300 family.
  8620. '.h8300sn'
  8621. Recognize and emit additional instructions for the H8S variant in
  8622. normal mode, and also make '.int' emit 32-bit numbers rather than
  8623. the usual (16-bit) for the H8/300 family.
  8624. On the H8/300 family (including the H8/300H) '.word' directives
  8625. generate 16-bit numbers.
  8626. 
  8627. File: as.info, Node: H8/300 Opcodes, Prev: H8/300 Directives, Up: H8/300-Dependent
  8628. 9.14.5 Opcodes
  8629. --------------
  8630. For detailed information on the H8/300 machine instruction set, see
  8631. 'H8/300 Series Programming Manual'. For information specific to the
  8632. H8/300H, see 'H8/300H Series Programming Manual' (Renesas).
  8633. 'as' implements all the standard H8/300 opcodes. No additional
  8634. pseudo-instructions are needed on this family.
  8635. The following table summarizes the H8/300 opcodes, and their
  8636. arguments. Entries marked '*' are opcodes used only on the H8/300H.
  8637. Legend:
  8638. Rs source register
  8639. Rd destination register
  8640. abs absolute address
  8641. imm immediate data
  8642. disp:N N-bit displacement from a register
  8643. pcrel:N N-bit displacement relative to program counter
  8644. add.b #imm,rd * andc #imm,ccr
  8645. add.b rs,rd band #imm,rd
  8646. add.w rs,rd band #imm,@rd
  8647. * add.w #imm,rd band #imm,@abs:8
  8648. * add.l rs,rd bra pcrel:8
  8649. * add.l #imm,rd * bra pcrel:16
  8650. adds #imm,rd bt pcrel:8
  8651. addx #imm,rd * bt pcrel:16
  8652. addx rs,rd brn pcrel:8
  8653. and.b #imm,rd * brn pcrel:16
  8654. and.b rs,rd bf pcrel:8
  8655. * and.w rs,rd * bf pcrel:16
  8656. * and.w #imm,rd bhi pcrel:8
  8657. * and.l #imm,rd * bhi pcrel:16
  8658. * and.l rs,rd bls pcrel:8
  8659. * bls pcrel:16 bld #imm,rd
  8660. bcc pcrel:8 bld #imm,@rd
  8661. * bcc pcrel:16 bld #imm,@abs:8
  8662. bhs pcrel:8 bnot #imm,rd
  8663. * bhs pcrel:16 bnot #imm,@rd
  8664. bcs pcrel:8 bnot #imm,@abs:8
  8665. * bcs pcrel:16 bnot rs,rd
  8666. blo pcrel:8 bnot rs,@rd
  8667. * blo pcrel:16 bnot rs,@abs:8
  8668. bne pcrel:8 bor #imm,rd
  8669. * bne pcrel:16 bor #imm,@rd
  8670. beq pcrel:8 bor #imm,@abs:8
  8671. * beq pcrel:16 bset #imm,rd
  8672. bvc pcrel:8 bset #imm,@rd
  8673. * bvc pcrel:16 bset #imm,@abs:8
  8674. bvs pcrel:8 bset rs,rd
  8675. * bvs pcrel:16 bset rs,@rd
  8676. bpl pcrel:8 bset rs,@abs:8
  8677. * bpl pcrel:16 bsr pcrel:8
  8678. bmi pcrel:8 bsr pcrel:16
  8679. * bmi pcrel:16 bst #imm,rd
  8680. bge pcrel:8 bst #imm,@rd
  8681. * bge pcrel:16 bst #imm,@abs:8
  8682. blt pcrel:8 btst #imm,rd
  8683. * blt pcrel:16 btst #imm,@rd
  8684. bgt pcrel:8 btst #imm,@abs:8
  8685. * bgt pcrel:16 btst rs,rd
  8686. ble pcrel:8 btst rs,@rd
  8687. * ble pcrel:16 btst rs,@abs:8
  8688. bclr #imm,rd bxor #imm,rd
  8689. bclr #imm,@rd bxor #imm,@rd
  8690. bclr #imm,@abs:8 bxor #imm,@abs:8
  8691. bclr rs,rd cmp.b #imm,rd
  8692. bclr rs,@rd cmp.b rs,rd
  8693. bclr rs,@abs:8 cmp.w rs,rd
  8694. biand #imm,rd cmp.w rs,rd
  8695. biand #imm,@rd * cmp.w #imm,rd
  8696. biand #imm,@abs:8 * cmp.l #imm,rd
  8697. bild #imm,rd * cmp.l rs,rd
  8698. bild #imm,@rd daa rs
  8699. bild #imm,@abs:8 das rs
  8700. bior #imm,rd dec.b rs
  8701. bior #imm,@rd * dec.w #imm,rd
  8702. bior #imm,@abs:8 * dec.l #imm,rd
  8703. bist #imm,rd divxu.b rs,rd
  8704. bist #imm,@rd * divxu.w rs,rd
  8705. bist #imm,@abs:8 * divxs.b rs,rd
  8706. bixor #imm,rd * divxs.w rs,rd
  8707. bixor #imm,@rd eepmov
  8708. bixor #imm,@abs:8 * eepmovw
  8709. * exts.w rd mov.w rs,@abs:16
  8710. * exts.l rd * mov.l #imm,rd
  8711. * extu.w rd * mov.l rs,rd
  8712. * extu.l rd * mov.l @rs,rd
  8713. inc rs * mov.l @(disp:16,rs),rd
  8714. * inc.w #imm,rd * mov.l @(disp:24,rs),rd
  8715. * inc.l #imm,rd * mov.l @rs+,rd
  8716. jmp @rs * mov.l @abs:16,rd
  8717. jmp abs * mov.l @abs:24,rd
  8718. jmp @@abs:8 * mov.l rs,@rd
  8719. jsr @rs * mov.l rs,@(disp:16,rd)
  8720. jsr abs * mov.l rs,@(disp:24,rd)
  8721. jsr @@abs:8 * mov.l rs,@-rd
  8722. ldc #imm,ccr * mov.l rs,@abs:16
  8723. ldc rs,ccr * mov.l rs,@abs:24
  8724. * ldc @abs:16,ccr movfpe @abs:16,rd
  8725. * ldc @abs:24,ccr movtpe rs,@abs:16
  8726. * ldc @(disp:16,rs),ccr mulxu.b rs,rd
  8727. * ldc @(disp:24,rs),ccr * mulxu.w rs,rd
  8728. * ldc @rs+,ccr * mulxs.b rs,rd
  8729. * ldc @rs,ccr * mulxs.w rs,rd
  8730. * mov.b @(disp:24,rs),rd neg.b rs
  8731. * mov.b rs,@(disp:24,rd) * neg.w rs
  8732. mov.b @abs:16,rd * neg.l rs
  8733. mov.b rs,rd nop
  8734. mov.b @abs:8,rd not.b rs
  8735. mov.b rs,@abs:8 * not.w rs
  8736. mov.b rs,rd * not.l rs
  8737. mov.b #imm,rd or.b #imm,rd
  8738. mov.b @rs,rd or.b rs,rd
  8739. mov.b @(disp:16,rs),rd * or.w #imm,rd
  8740. mov.b @rs+,rd * or.w rs,rd
  8741. mov.b @abs:8,rd * or.l #imm,rd
  8742. mov.b rs,@rd * or.l rs,rd
  8743. mov.b rs,@(disp:16,rd) orc #imm,ccr
  8744. mov.b rs,@-rd pop.w rs
  8745. mov.b rs,@abs:8 * pop.l rs
  8746. mov.w rs,@rd push.w rs
  8747. * mov.w @(disp:24,rs),rd * push.l rs
  8748. * mov.w rs,@(disp:24,rd) rotl.b rs
  8749. * mov.w @abs:24,rd * rotl.w rs
  8750. * mov.w rs,@abs:24 * rotl.l rs
  8751. mov.w rs,rd rotr.b rs
  8752. mov.w #imm,rd * rotr.w rs
  8753. mov.w @rs,rd * rotr.l rs
  8754. mov.w @(disp:16,rs),rd rotxl.b rs
  8755. mov.w @rs+,rd * rotxl.w rs
  8756. mov.w @abs:16,rd * rotxl.l rs
  8757. mov.w rs,@(disp:16,rd) rotxr.b rs
  8758. mov.w rs,@-rd * rotxr.w rs
  8759. * rotxr.l rs * stc ccr,@(disp:24,rd)
  8760. bpt * stc ccr,@-rd
  8761. rte * stc ccr,@abs:16
  8762. rts * stc ccr,@abs:24
  8763. shal.b rs sub.b rs,rd
  8764. * shal.w rs sub.w rs,rd
  8765. * shal.l rs * sub.w #imm,rd
  8766. shar.b rs * sub.l rs,rd
  8767. * shar.w rs * sub.l #imm,rd
  8768. * shar.l rs subs #imm,rd
  8769. shll.b rs subx #imm,rd
  8770. * shll.w rs subx rs,rd
  8771. * shll.l rs * trapa #imm
  8772. shlr.b rs xor #imm,rd
  8773. * shlr.w rs xor rs,rd
  8774. * shlr.l rs * xor.w #imm,rd
  8775. sleep * xor.w rs,rd
  8776. stc ccr,rd * xor.l #imm,rd
  8777. * stc ccr,@rs * xor.l rs,rd
  8778. * stc ccr,@(disp:16,rd) xorc #imm,ccr
  8779. Four H8/300 instructions ('add', 'cmp', 'mov', 'sub') are defined
  8780. with variants using the suffixes '.b', '.w', and '.l' to specify the
  8781. size of a memory operand. 'as' supports these suffixes, but does not
  8782. require them; since one of the operands is always a register, 'as' can
  8783. deduce the correct size.
  8784. For example, since 'r0' refers to a 16-bit register,
  8785. mov r0,@foo
  8786. is equivalent to
  8787. mov.w r0,@foo
  8788. If you use the size suffixes, 'as' issues a warning when the suffix
  8789. and the register size do not match.
  8790. 
  8791. File: as.info, Node: HPPA-Dependent, Next: i386-Dependent, Prev: H8/300-Dependent, Up: Machine Dependencies
  8792. 9.15 HPPA Dependent Features
  8793. ============================
  8794. * Menu:
  8795. * HPPA Notes:: Notes
  8796. * HPPA Options:: Options
  8797. * HPPA Syntax:: Syntax
  8798. * HPPA Floating Point:: Floating Point
  8799. * HPPA Directives:: HPPA Machine Directives
  8800. * HPPA Opcodes:: Opcodes
  8801. 
  8802. File: as.info, Node: HPPA Notes, Next: HPPA Options, Up: HPPA-Dependent
  8803. 9.15.1 Notes
  8804. ------------
  8805. As a back end for GNU CC 'as' has been thoroughly tested and should work
  8806. extremely well. We have tested it only minimally on hand written
  8807. assembly code and no one has tested it much on the assembly output from
  8808. the HP compilers.
  8809. The format of the debugging sections has changed since the original
  8810. 'as' port (version 1.3X) was released; therefore, you must rebuild all
  8811. HPPA objects and libraries with the new assembler so that you can debug
  8812. the final executable.
  8813. The HPPA 'as' port generates a small subset of the relocations
  8814. available in the SOM and ELF object file formats. Additional relocation
  8815. support will be added as it becomes necessary.
  8816. 
  8817. File: as.info, Node: HPPA Options, Next: HPPA Syntax, Prev: HPPA Notes, Up: HPPA-Dependent
  8818. 9.15.2 Options
  8819. --------------
  8820. 'as' has no machine-dependent command-line options for the HPPA.
  8821. 
  8822. File: as.info, Node: HPPA Syntax, Next: HPPA Floating Point, Prev: HPPA Options, Up: HPPA-Dependent
  8823. 9.15.3 Syntax
  8824. -------------
  8825. The assembler syntax closely follows the HPPA instruction set reference
  8826. manual; assembler directives and general syntax closely follow the HPPA
  8827. assembly language reference manual, with a few noteworthy differences.
  8828. First, a colon may immediately follow a label definition. This is
  8829. simply for compatibility with how most assembly language programmers
  8830. write code.
  8831. Some obscure expression parsing problems may affect hand written code
  8832. which uses the 'spop' instructions, or code which makes significant use
  8833. of the '!' line separator.
  8834. 'as' is much less forgiving about missing arguments and other similar
  8835. oversights than the HP assembler. 'as' notifies you of missing
  8836. arguments as syntax errors; this is regarded as a feature, not a bug.
  8837. Finally, 'as' allows you to use an external symbol without explicitly
  8838. importing the symbol. _Warning:_ in the future this will be an error
  8839. for HPPA targets.
  8840. Special characters for HPPA targets include:
  8841. ';' is the line comment character.
  8842. '!' can be used instead of a newline to separate statements.
  8843. Since '$' has no special meaning, you may use it in symbol names.
  8844. 
  8845. File: as.info, Node: HPPA Floating Point, Next: HPPA Directives, Prev: HPPA Syntax, Up: HPPA-Dependent
  8846. 9.15.4 Floating Point
  8847. ---------------------
  8848. The HPPA family uses IEEE floating-point numbers.
  8849. 
  8850. File: as.info, Node: HPPA Directives, Next: HPPA Opcodes, Prev: HPPA Floating Point, Up: HPPA-Dependent
  8851. 9.15.5 HPPA Assembler Directives
  8852. --------------------------------
  8853. 'as' for the HPPA supports many additional directives for compatibility
  8854. with the native assembler. This section describes them only briefly.
  8855. For detailed information on HPPA-specific assembler directives, see
  8856. 'HP9000 Series 800 Assembly Language Reference Manual' (HP 92432-90001).
  8857. 'as' does _not_ support the following assembler directives described
  8858. in the HP manual:
  8859. .endm .liston
  8860. .enter .locct
  8861. .leave .macro
  8862. .listoff
  8863. Beyond those implemented for compatibility, 'as' supports one
  8864. additional assembler directive for the HPPA: '.param'. It conveys
  8865. register argument locations for static functions. Its syntax closely
  8866. follows the '.export' directive.
  8867. These are the additional directives in 'as' for the HPPA:
  8868. '.block N'
  8869. '.blockz N'
  8870. Reserve N bytes of storage, and initialize them to zero.
  8871. '.call'
  8872. Mark the beginning of a procedure call. Only the special case with
  8873. _no arguments_ is allowed.
  8874. '.callinfo [ PARAM=VALUE, ... ] [ FLAG, ... ]'
  8875. Specify a number of parameters and flags that define the
  8876. environment for a procedure.
  8877. PARAM may be any of 'frame' (frame size), 'entry_gr' (end of
  8878. general register range), 'entry_fr' (end of float register range),
  8879. 'entry_sr' (end of space register range).
  8880. The values for FLAG are 'calls' or 'caller' (proc has subroutines),
  8881. 'no_calls' (proc does not call subroutines), 'save_rp' (preserve
  8882. return pointer), 'save_sp' (proc preserves stack pointer),
  8883. 'no_unwind' (do not unwind this proc), 'hpux_int' (proc is
  8884. interrupt routine).
  8885. '.code'
  8886. Assemble into the standard section called '$TEXT$', subsection
  8887. '$CODE$'.
  8888. '.copyright "STRING"'
  8889. In the SOM object format, insert STRING into the object code,
  8890. marked as a copyright string.
  8891. '.copyright "STRING"'
  8892. In the ELF object format, insert STRING into the object code,
  8893. marked as a version string.
  8894. '.enter'
  8895. Not yet supported; the assembler rejects programs containing this
  8896. directive.
  8897. '.entry'
  8898. Mark the beginning of a procedure.
  8899. '.exit'
  8900. Mark the end of a procedure.
  8901. '.export NAME [ ,TYP ] [ ,PARAM=R ]'
  8902. Make a procedure NAME available to callers. TYP, if present, must
  8903. be one of 'absolute', 'code' (ELF only, not SOM), 'data', 'entry',
  8904. 'data', 'entry', 'millicode', 'plabel', 'pri_prog', or 'sec_prog'.
  8905. PARAM, if present, provides either relocation information for the
  8906. procedure arguments and result, or a privilege level. PARAM may be
  8907. 'argwN' (where N ranges from '0' to '3', and indicates one of four
  8908. one-word arguments); 'rtnval' (the procedure's result); or
  8909. 'priv_lev' (privilege level). For arguments or the result, R
  8910. specifies how to relocate, and must be one of 'no' (not
  8911. relocatable), 'gr' (argument is in general register), 'fr' (in
  8912. floating point register), or 'fu' (upper half of float register).
  8913. For 'priv_lev', R is an integer.
  8914. '.half N'
  8915. Define a two-byte integer constant N; synonym for the portable 'as'
  8916. directive '.short'.
  8917. '.import NAME [ ,TYP ]'
  8918. Converse of '.export'; make a procedure available to call. The
  8919. arguments use the same conventions as the first two arguments for
  8920. '.export'.
  8921. '.label NAME'
  8922. Define NAME as a label for the current assembly location.
  8923. '.leave'
  8924. Not yet supported; the assembler rejects programs containing this
  8925. directive.
  8926. '.origin LC'
  8927. Advance location counter to LC. Synonym for the 'as' portable
  8928. directive '.org'.
  8929. '.param NAME [ ,TYP ] [ ,PARAM=R ]'
  8930. Similar to '.export', but used for static procedures.
  8931. '.proc'
  8932. Use preceding the first statement of a procedure.
  8933. '.procend'
  8934. Use following the last statement of a procedure.
  8935. 'LABEL .reg EXPR'
  8936. Synonym for '.equ'; define LABEL with the absolute expression EXPR
  8937. as its value.
  8938. '.space SECNAME [ ,PARAMS ]'
  8939. Switch to section SECNAME, creating a new section by that name if
  8940. necessary. You may only use PARAMS when creating a new section,
  8941. not when switching to an existing one. SECNAME may identify a
  8942. section by number rather than by name.
  8943. If specified, the list PARAMS declares attributes of the section,
  8944. identified by keywords. The keywords recognized are 'spnum=EXP'
  8945. (identify this section by the number EXP, an absolute expression),
  8946. 'sort=EXP' (order sections according to this sort key when linking;
  8947. EXP is an absolute expression), 'unloadable' (section contains no
  8948. loadable data), 'notdefined' (this section defined elsewhere), and
  8949. 'private' (data in this section not available to other programs).
  8950. '.spnum SECNAM'
  8951. Allocate four bytes of storage, and initialize them with the
  8952. section number of the section named SECNAM. (You can define the
  8953. section number with the HPPA '.space' directive.)
  8954. '.string "STR"'
  8955. Copy the characters in the string STR to the object file. *Note
  8956. Strings: Strings, for information on escape sequences you can use
  8957. in 'as' strings.
  8958. _Warning!_ The HPPA version of '.string' differs from the usual
  8959. 'as' definition: it does _not_ write a zero byte after copying STR.
  8960. '.stringz "STR"'
  8961. Like '.string', but appends a zero byte after copying STR to object
  8962. file.
  8963. '.subspa NAME [ ,PARAMS ]'
  8964. '.nsubspa NAME [ ,PARAMS ]'
  8965. Similar to '.space', but selects a subsection NAME within the
  8966. current section. You may only specify PARAMS when you create a
  8967. subsection (in the first instance of '.subspa' for this NAME).
  8968. If specified, the list PARAMS declares attributes of the
  8969. subsection, identified by keywords. The keywords recognized are
  8970. 'quad=EXPR' ("quadrant" for this subsection), 'align=EXPR'
  8971. (alignment for beginning of this subsection; a power of two),
  8972. 'access=EXPR' (value for "access rights" field), 'sort=EXPR'
  8973. (sorting order for this subspace in link), 'code_only' (subsection
  8974. contains only code), 'unloadable' (subsection cannot be loaded into
  8975. memory), 'comdat' (subsection is comdat), 'common' (subsection is
  8976. common block), 'dup_comm' (subsection may have duplicate names), or
  8977. 'zero' (subsection is all zeros, do not write in object file).
  8978. '.nsubspa' always creates a new subspace with the given name, even
  8979. if one with the same name already exists.
  8980. 'comdat', 'common' and 'dup_comm' can be used to implement various
  8981. flavors of one-only support when using the SOM linker. The SOM
  8982. linker only supports specific combinations of these flags. The
  8983. details are not documented. A brief description is provided here.
  8984. 'comdat' provides a form of linkonce support. It is useful for
  8985. both code and data subspaces. A 'comdat' subspace has a key symbol
  8986. marked by the 'is_comdat' flag or 'ST_COMDAT'. Only the first
  8987. subspace for any given key is selected. The key symbol becomes
  8988. universal in shared links. This is similar to the behavior of
  8989. 'secondary_def' symbols.
  8990. 'common' provides Fortran named common support. It is only useful
  8991. for data subspaces. Symbols with the flag 'is_common' retain this
  8992. flag in shared links. Referencing a 'is_common' symbol in a shared
  8993. library from outside the library doesn't work. Thus, 'is_common'
  8994. symbols must be output whenever they are needed.
  8995. 'common' and 'dup_comm' together provide Cobol common support. The
  8996. subspaces in this case must all be the same length. Otherwise,
  8997. this support is similar to the Fortran common support.
  8998. 'dup_comm' by itself provides a type of one-only support for code.
  8999. Only the first 'dup_comm' subspace is selected. There is a rather
  9000. complex algorithm to compare subspaces. Code symbols marked with
  9001. the 'dup_common' flag are hidden. This support was intended for
  9002. "C++ duplicate inlines".
  9003. A simplified technique is used to mark the flags of symbols based
  9004. on the flags of their subspace. A symbol with the scope
  9005. SS_UNIVERSAL and type ST_ENTRY, ST_CODE or ST_DATA is marked with
  9006. the corresponding settings of 'comdat', 'common' and 'dup_comm'
  9007. from the subspace, respectively. This avoids having to introduce
  9008. additional directives to mark these symbols. The HP assembler sets
  9009. 'is_common' from 'common'. However, it doesn't set the
  9010. 'dup_common' from 'dup_comm'. It doesn't have 'comdat' support.
  9011. '.version "STR"'
  9012. Write STR as version identifier in object code.
  9013. 
  9014. File: as.info, Node: HPPA Opcodes, Prev: HPPA Directives, Up: HPPA-Dependent
  9015. 9.15.6 Opcodes
  9016. --------------
  9017. For detailed information on the HPPA machine instruction set, see
  9018. 'PA-RISC Architecture and Instruction Set Reference Manual' (HP
  9019. 09740-90039).
  9020. 
  9021. File: as.info, Node: i386-Dependent, Next: IA-64-Dependent, Prev: HPPA-Dependent, Up: Machine Dependencies
  9022. 9.16 80386 Dependent Features
  9023. =============================
  9024. The i386 version 'as' supports both the original Intel 386 architecture
  9025. in both 16 and 32-bit mode as well as AMD x86-64 architecture extending
  9026. the Intel architecture to 64-bits.
  9027. * Menu:
  9028. * i386-Options:: Options
  9029. * i386-Directives:: X86 specific directives
  9030. * i386-Syntax:: Syntactical considerations
  9031. * i386-Mnemonics:: Instruction Naming
  9032. * i386-Regs:: Register Naming
  9033. * i386-Prefixes:: Instruction Prefixes
  9034. * i386-Memory:: Memory References
  9035. * i386-Jumps:: Handling of Jump Instructions
  9036. * i386-Float:: Floating Point
  9037. * i386-SIMD:: Intel's MMX and AMD's 3DNow! SIMD Operations
  9038. * i386-LWP:: AMD's Lightweight Profiling Instructions
  9039. * i386-BMI:: Bit Manipulation Instruction
  9040. * i386-TBM:: AMD's Trailing Bit Manipulation Instructions
  9041. * i386-16bit:: Writing 16-bit Code
  9042. * i386-Arch:: Specifying an x86 CPU architecture
  9043. * i386-Bugs:: AT&T Syntax bugs
  9044. * i386-Notes:: Notes
  9045. 
  9046. File: as.info, Node: i386-Options, Next: i386-Directives, Up: i386-Dependent
  9047. 9.16.1 Options
  9048. --------------
  9049. The i386 version of 'as' has a few machine dependent options:
  9050. '--32 | --x32 | --64'
  9051. Select the word size, either 32 bits or 64 bits. '--32' implies
  9052. Intel i386 architecture, while '--x32' and '--64' imply AMD x86-64
  9053. architecture with 32-bit or 64-bit word-size respectively.
  9054. These options are only available with the ELF object file format,
  9055. and require that the necessary BFD support has been included (on a
  9056. 32-bit platform you have to add -enable-64-bit-bfd to configure
  9057. enable 64-bit usage and use x86-64 as target platform).
  9058. '-n'
  9059. By default, x86 GAS replaces multiple nop instructions used for
  9060. alignment within code sections with multi-byte nop instructions
  9061. such as leal 0(%esi,1),%esi. This switch disables the optimization
  9062. if a single byte nop (0x90) is explicitly specified as the fill
  9063. byte for alignment.
  9064. '--divide'
  9065. On SVR4-derived platforms, the character '/' is treated as a
  9066. comment character, which means that it cannot be used in
  9067. expressions. The '--divide' option turns '/' into a normal
  9068. character. This does not disable '/' at the beginning of a line
  9069. starting a comment, or affect using '#' for starting a comment.
  9070. '-march=CPU[+EXTENSION...]'
  9071. This option specifies the target processor. The assembler will
  9072. issue an error message if an attempt is made to assemble an
  9073. instruction which will not execute on the target processor. The
  9074. following processor names are recognized: 'i8086', 'i186', 'i286',
  9075. 'i386', 'i486', 'i586', 'i686', 'pentium', 'pentiumpro',
  9076. 'pentiumii', 'pentiumiii', 'pentium4', 'prescott', 'nocona',
  9077. 'core', 'core2', 'corei7', 'l1om', 'k1om', 'iamcu', 'k6', 'k6_2',
  9078. 'athlon', 'opteron', 'k8', 'amdfam10', 'bdver1', 'bdver2',
  9079. 'bdver3', 'bdver4', 'znver1', 'znver2', 'btver1', 'btver2',
  9080. 'generic32' and 'generic64'.
  9081. In addition to the basic instruction set, the assembler can be told
  9082. to accept various extension mnemonics. For example,
  9083. '-march=i686+sse4+vmx' extends I686 with SSE4 and VMX. The
  9084. following extensions are currently supported: '8087', '287', '387',
  9085. '687', 'no87', 'no287', 'no387', 'no687', 'cmov', 'nocmov', 'fxsr',
  9086. 'nofxsr', 'mmx', 'nommx', 'sse', 'sse2', 'sse3', 'ssse3', 'sse4.1',
  9087. 'sse4.2', 'sse4', 'nosse', 'nosse2', 'nosse3', 'nossse3',
  9088. 'nosse4.1', 'nosse4.2', 'nosse4', 'avx', 'avx2', 'noavx', 'noavx2',
  9089. 'adx', 'rdseed', 'prfchw', 'smap', 'mpx', 'sha', 'rdpid',
  9090. 'ptwrite', 'cet', 'gfni', 'vaes', 'vpclmulqdq', 'prefetchwt1',
  9091. 'clflushopt', 'se1', 'clwb', 'movdiri', 'movdir64b', 'enqcmd',
  9092. 'avx512f', 'avx512cd', 'avx512er', 'avx512pf', 'avx512vl',
  9093. 'avx512bw', 'avx512dq', 'avx512ifma', 'avx512vbmi',
  9094. 'avx512_4fmaps', 'avx512_4vnniw', 'avx512_vpopcntdq',
  9095. 'avx512_vbmi2', 'avx512_vnni', 'avx512_bitalg', 'avx512_bf16',
  9096. 'noavx512f', 'noavx512cd', 'noavx512er', 'noavx512pf',
  9097. 'noavx512vl', 'noavx512bw', 'noavx512dq', 'noavx512ifma',
  9098. 'noavx512vbmi', 'noavx512_4fmaps', 'noavx512_4vnniw',
  9099. 'noavx512_vpopcntdq', 'noavx512_vbmi2', 'noavx512_vnni',
  9100. 'noavx512_bitalg', 'noavx512_vp2intersect', 'noavx512_bf16',
  9101. 'noenqcmd', 'vmx', 'vmfunc', 'smx', 'xsave', 'xsaveopt', 'xsavec',
  9102. 'xsaves', 'aes', 'pclmul', 'fsgsbase', 'rdrnd', 'f16c', 'bmi2',
  9103. 'fma', 'movbe', 'ept', 'lzcnt', 'hle', 'rtm', 'invpcid', 'clflush',
  9104. 'mwaitx', 'clzero', 'wbnoinvd', 'pconfig', 'waitpkg', 'cldemote',
  9105. 'lwp', 'fma4', 'xop', 'cx16', 'syscall', 'rdtscp', '3dnow',
  9106. '3dnowa', 'sse4a', 'sse5', 'svme', 'abm' and 'padlock'. Note that
  9107. rather than extending a basic instruction set, the extension
  9108. mnemonics starting with 'no' revoke the respective functionality.
  9109. When the '.arch' directive is used with '-march', the '.arch'
  9110. directive will take precedent.
  9111. '-mtune=CPU'
  9112. This option specifies a processor to optimize for. When used in
  9113. conjunction with the '-march' option, only instructions of the
  9114. processor specified by the '-march' option will be generated.
  9115. Valid CPU values are identical to the processor list of
  9116. '-march=CPU'.
  9117. '-msse2avx'
  9118. This option specifies that the assembler should encode SSE
  9119. instructions with VEX prefix.
  9120. '-msse-check=NONE'
  9121. '-msse-check=WARNING'
  9122. '-msse-check=ERROR'
  9123. These options control if the assembler should check SSE
  9124. instructions. '-msse-check=NONE' will make the assembler not to
  9125. check SSE instructions, which is the default.
  9126. '-msse-check=WARNING' will make the assembler issue a warning for
  9127. any SSE instruction. '-msse-check=ERROR' will make the assembler
  9128. issue an error for any SSE instruction.
  9129. '-mavxscalar=128'
  9130. '-mavxscalar=256'
  9131. These options control how the assembler should encode scalar AVX
  9132. instructions. '-mavxscalar=128' will encode scalar AVX
  9133. instructions with 128bit vector length, which is the default.
  9134. '-mavxscalar=256' will encode scalar AVX instructions with 256bit
  9135. vector length.
  9136. WARNING: Don't use this for production code - due to CPU errata the
  9137. resulting code may not work on certain models.
  9138. '-mvexwig=0'
  9139. '-mvexwig=1'
  9140. These options control how the assembler should encode VEX.W-ignored
  9141. (WIG) VEX instructions. '-mvexwig=0' will encode WIG VEX
  9142. instructions with vex.w = 0, which is the default. '-mvexwig=1'
  9143. will encode WIG EVEX instructions with vex.w = 1.
  9144. WARNING: Don't use this for production code - due to CPU errata the
  9145. resulting code may not work on certain models.
  9146. '-mevexlig=128'
  9147. '-mevexlig=256'
  9148. '-mevexlig=512'
  9149. These options control how the assembler should encode
  9150. length-ignored (LIG) EVEX instructions. '-mevexlig=128' will
  9151. encode LIG EVEX instructions with 128bit vector length, which is
  9152. the default. '-mevexlig=256' and '-mevexlig=512' will encode LIG
  9153. EVEX instructions with 256bit and 512bit vector length,
  9154. respectively.
  9155. '-mevexwig=0'
  9156. '-mevexwig=1'
  9157. These options control how the assembler should encode w-ignored
  9158. (WIG) EVEX instructions. '-mevexwig=0' will encode WIG EVEX
  9159. instructions with evex.w = 0, which is the default. '-mevexwig=1'
  9160. will encode WIG EVEX instructions with evex.w = 1.
  9161. '-mmnemonic=ATT'
  9162. '-mmnemonic=INTEL'
  9163. This option specifies instruction mnemonic for matching
  9164. instructions. The '.att_mnemonic' and '.intel_mnemonic' directives
  9165. will take precedent.
  9166. '-msyntax=ATT'
  9167. '-msyntax=INTEL'
  9168. This option specifies instruction syntax when processing
  9169. instructions. The '.att_syntax' and '.intel_syntax' directives
  9170. will take precedent.
  9171. '-mnaked-reg'
  9172. This option specifies that registers don't require a '%' prefix.
  9173. The '.att_syntax' and '.intel_syntax' directives will take
  9174. precedent.
  9175. '-madd-bnd-prefix'
  9176. This option forces the assembler to add BND prefix to all branches,
  9177. even if such prefix was not explicitly specified in the source
  9178. code.
  9179. '-mno-shared'
  9180. On ELF target, the assembler normally optimizes out non-PLT
  9181. relocations against defined non-weak global branch targets with
  9182. default visibility. The '-mshared' option tells the assembler to
  9183. generate code which may go into a shared library where all non-weak
  9184. global branch targets with default visibility can be preempted.
  9185. The resulting code is slightly bigger. This option only affects
  9186. the handling of branch instructions.
  9187. '-mbig-obj'
  9188. On x86-64 PE/COFF target this option forces the use of big object
  9189. file format, which allows more than 32768 sections.
  9190. '-momit-lock-prefix=NO'
  9191. '-momit-lock-prefix=YES'
  9192. These options control how the assembler should encode lock prefix.
  9193. This option is intended as a workaround for processors, that fail
  9194. on lock prefix. This option can only be safely used with
  9195. single-core, single-thread computers '-momit-lock-prefix=YES' will
  9196. omit all lock prefixes. '-momit-lock-prefix=NO' will encode lock
  9197. prefix as usual, which is the default.
  9198. '-mfence-as-lock-add=NO'
  9199. '-mfence-as-lock-add=YES'
  9200. These options control how the assembler should encode lfence,
  9201. mfence and sfence. '-mfence-as-lock-add=YES' will encode lfence,
  9202. mfence and sfence as 'lock addl $0x0, (%rsp)' in 64-bit mode and
  9203. 'lock addl $0x0, (%esp)' in 32-bit mode. '-mfence-as-lock-add=NO'
  9204. will encode lfence, mfence and sfence as usual, which is the
  9205. default.
  9206. '-mrelax-relocations=NO'
  9207. '-mrelax-relocations=YES'
  9208. These options control whether the assembler should generate relax
  9209. relocations, R_386_GOT32X, in 32-bit mode, or R_X86_64_GOTPCRELX
  9210. and R_X86_64_REX_GOTPCRELX, in 64-bit mode.
  9211. '-mrelax-relocations=YES' will generate relax relocations.
  9212. '-mrelax-relocations=NO' will not generate relax relocations. The
  9213. default can be controlled by a configure option
  9214. '--enable-x86-relax-relocations'.
  9215. '-mx86-used-note=NO'
  9216. '-mx86-used-note=YES'
  9217. These options control whether the assembler should generate
  9218. GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_FEATURE_2_USED GNU
  9219. property notes. The default can be controlled by the
  9220. '--enable-x86-used-note' configure option.
  9221. '-mevexrcig=RNE'
  9222. '-mevexrcig=RD'
  9223. '-mevexrcig=RU'
  9224. '-mevexrcig=RZ'
  9225. These options control how the assembler should encode SAE-only EVEX
  9226. instructions. '-mevexrcig=RNE' will encode RC bits of EVEX
  9227. instruction with 00, which is the default. '-mevexrcig=RD',
  9228. '-mevexrcig=RU' and '-mevexrcig=RZ' will encode SAE-only EVEX
  9229. instructions with 01, 10 and 11 RC bits, respectively.
  9230. '-mamd64'
  9231. '-mintel64'
  9232. This option specifies that the assembler should accept only AMD64
  9233. or Intel64 ISA in 64-bit mode. The default is to accept both.
  9234. '-O0 | -O | -O1 | -O2 | -Os'
  9235. Optimize instruction encoding with smaller instruction size. '-O'
  9236. and '-O1' encode 64-bit register load instructions with 64-bit
  9237. immediate as 32-bit register load instructions with 31-bit or
  9238. 32-bits immediates, encode 64-bit register clearing instructions
  9239. with 32-bit register clearing instructions, encode 256-bit/512-bit
  9240. VEX/EVEX vector register clearing instructions with 128-bit VEX
  9241. vector register clearing instructions, encode 128-bit/256-bit EVEX
  9242. vector register load/store instructions with VEX vector register
  9243. load/store instructions, and encode 128-bit/256-bit EVEX packed
  9244. integer logical instructions with 128-bit/256-bit VEX packed
  9245. integer logical.
  9246. '-O2' includes '-O1' optimization plus encodes 256-bit/512-bit EVEX
  9247. vector register clearing instructions with 128-bit EVEX vector
  9248. register clearing instructions. In 64-bit mode VEX encoded
  9249. instructions with commutative source operands will also have their
  9250. source operands swapped if this allows using the 2-byte VEX prefix
  9251. form instead of the 3-byte one. Certain forms of AND as well as OR
  9252. with the same (register) operand specified twice will also be
  9253. changed to TEST.
  9254. '-Os' includes '-O2' optimization plus encodes 16-bit, 32-bit and
  9255. 64-bit register tests with immediate as 8-bit register test with
  9256. immediate. '-O0' turns off this optimization.
  9257. 
  9258. File: as.info, Node: i386-Directives, Next: i386-Syntax, Prev: i386-Options, Up: i386-Dependent
  9259. 9.16.2 x86 specific Directives
  9260. ------------------------------
  9261. '.lcomm SYMBOL , LENGTH[, ALIGNMENT]'
  9262. Reserve LENGTH (an absolute expression) bytes for a local common
  9263. denoted by SYMBOL. The section and value of SYMBOL are those of
  9264. the new local common. The addresses are allocated in the bss
  9265. section, so that at run-time the bytes start off zeroed. Since
  9266. SYMBOL is not declared global, it is normally not visible to 'ld'.
  9267. The optional third parameter, ALIGNMENT, specifies the desired
  9268. alignment of the symbol in the bss section.
  9269. This directive is only available for COFF based x86 targets.
  9270. '.largecomm SYMBOL , LENGTH[, ALIGNMENT]'
  9271. This directive behaves in the same way as the 'comm' directive
  9272. except that the data is placed into the .LBSS section instead of
  9273. the .BSS section *note Comm::.
  9274. The directive is intended to be used for data which requires a
  9275. large amount of space, and it is only available for ELF based
  9276. x86_64 targets.
  9277. '.value EXPRESSION [, EXPRESSION]'
  9278. This directive behaves in the same way as the '.short' directive,
  9279. taking a series of comma separated expressions and storing them as
  9280. two-byte wide values into the current section.
  9281. 
  9282. File: as.info, Node: i386-Syntax, Next: i386-Mnemonics, Prev: i386-Directives, Up: i386-Dependent
  9283. 9.16.3 i386 Syntactical Considerations
  9284. --------------------------------------
  9285. * Menu:
  9286. * i386-Variations:: AT&T Syntax versus Intel Syntax
  9287. * i386-Chars:: Special Characters
  9288. 
  9289. File: as.info, Node: i386-Variations, Next: i386-Chars, Up: i386-Syntax
  9290. 9.16.3.1 AT&T Syntax versus Intel Syntax
  9291. ........................................
  9292. 'as' now supports assembly using Intel assembler syntax.
  9293. '.intel_syntax' selects Intel mode, and '.att_syntax' switches back to
  9294. the usual AT&T mode for compatibility with the output of 'gcc'. Either
  9295. of these directives may have an optional argument, 'prefix', or
  9296. 'noprefix' specifying whether registers require a '%' prefix. AT&T
  9297. System V/386 assembler syntax is quite different from Intel syntax. We
  9298. mention these differences because almost all 80386 documents use Intel
  9299. syntax. Notable differences between the two syntaxes are:
  9300. * AT&T immediate operands are preceded by '$'; Intel immediate
  9301. operands are undelimited (Intel 'push 4' is AT&T 'pushl $4'). AT&T
  9302. register operands are preceded by '%'; Intel register operands are
  9303. undelimited. AT&T absolute (as opposed to PC relative) jump/call
  9304. operands are prefixed by '*'; they are undelimited in Intel syntax.
  9305. * AT&T and Intel syntax use the opposite order for source and
  9306. destination operands. Intel 'add eax, 4' is 'addl $4, %eax'. The
  9307. 'source, dest' convention is maintained for compatibility with
  9308. previous Unix assemblers. Note that 'bound', 'invlpga', and
  9309. instructions with 2 immediate operands, such as the 'enter'
  9310. instruction, do _not_ have reversed order. *note i386-Bugs::.
  9311. * In AT&T syntax the size of memory operands is determined from the
  9312. last character of the instruction mnemonic. Mnemonic suffixes of
  9313. 'b', 'w', 'l' and 'q' specify byte (8-bit), word (16-bit), long
  9314. (32-bit) and quadruple word (64-bit) memory references. Mnemonic
  9315. suffixes of 'x', 'y' and 'z' specify xmm (128-bit vector), ymm
  9316. (256-bit vector) and zmm (512-bit vector) memory references, only
  9317. when there's no other way to disambiguate an instruction. Intel
  9318. syntax accomplishes this by prefixing memory operands (_not_ the
  9319. instruction mnemonics) with 'byte ptr', 'word ptr', 'dword ptr',
  9320. 'qword ptr', 'xmmword ptr', 'ymmword ptr' and 'zmmword ptr'. Thus,
  9321. Intel syntax 'mov al, byte ptr FOO' is 'movb FOO, %al' in AT&T
  9322. syntax. In Intel syntax, 'fword ptr', 'tbyte ptr' and 'oword ptr'
  9323. specify 48-bit, 80-bit and 128-bit memory references.
  9324. In 64-bit code, 'movabs' can be used to encode the 'mov'
  9325. instruction with the 64-bit displacement or immediate operand.
  9326. * Immediate form long jumps and calls are 'lcall/ljmp $SECTION,
  9327. $OFFSET' in AT&T syntax; the Intel syntax is 'call/jmp far
  9328. SECTION:OFFSET'. Also, the far return instruction is 'lret
  9329. $STACK-ADJUST' in AT&T syntax; Intel syntax is 'ret far
  9330. STACK-ADJUST'.
  9331. * The AT&T assembler does not provide support for multiple section
  9332. programs. Unix style systems expect all programs to be single
  9333. sections.
  9334. 
  9335. File: as.info, Node: i386-Chars, Prev: i386-Variations, Up: i386-Syntax
  9336. 9.16.3.2 Special Characters
  9337. ...........................
  9338. The presence of a '#' appearing anywhere on a line indicates the start
  9339. of a comment that extends to the end of that line.
  9340. If a '#' appears as the first character of a line then the whole line
  9341. is treated as a comment, but in this case the line can also be a logical
  9342. line number directive (*note Comments::) or a preprocessor control
  9343. command (*note Preprocessing::).
  9344. If the '--divide' command-line option has not been specified then the
  9345. '/' character appearing anywhere on a line also introduces a line
  9346. comment.
  9347. The ';' character can be used to separate statements on the same
  9348. line.
  9349. 
  9350. File: as.info, Node: i386-Mnemonics, Next: i386-Regs, Prev: i386-Syntax, Up: i386-Dependent
  9351. 9.16.4 i386-Mnemonics
  9352. ---------------------
  9353. 9.16.4.1 Instruction Naming
  9354. ...........................
  9355. Instruction mnemonics are suffixed with one character modifiers which
  9356. specify the size of operands. The letters 'b', 'w', 'l' and 'q' specify
  9357. byte, word, long and quadruple word operands. If no suffix is specified
  9358. by an instruction then 'as' tries to fill in the missing suffix based on
  9359. the destination register operand (the last one by convention). Thus,
  9360. 'mov %ax, %bx' is equivalent to 'movw %ax, %bx'; also, 'mov $1, %bx' is
  9361. equivalent to 'movw $1, bx'. Note that this is incompatible with the
  9362. AT&T Unix assembler which assumes that a missing mnemonic suffix implies
  9363. long operand size. (This incompatibility does not affect compiler
  9364. output since compilers always explicitly specify the mnemonic suffix.)
  9365. Almost all instructions have the same names in AT&T and Intel format.
  9366. There are a few exceptions. The sign extend and zero extend
  9367. instructions need two sizes to specify them. They need a size to
  9368. sign/zero extend _from_ and a size to zero extend _to_. This is
  9369. accomplished by using two instruction mnemonic suffixes in AT&T syntax.
  9370. Base names for sign extend and zero extend are 'movs...' and 'movz...'
  9371. in AT&T syntax ('movsx' and 'movzx' in Intel syntax). The instruction
  9372. mnemonic suffixes are tacked on to this base name, the _from_ suffix
  9373. before the _to_ suffix. Thus, 'movsbl %al, %edx' is AT&T syntax for
  9374. "move sign extend _from_ %al _to_ %edx." Possible suffixes, thus, are
  9375. 'bl' (from byte to long), 'bw' (from byte to word), 'wl' (from word to
  9376. long), 'bq' (from byte to quadruple word), 'wq' (from word to quadruple
  9377. word), and 'lq' (from long to quadruple word).
  9378. Different encoding options can be specified via pseudo prefixes:
  9379. * '{disp8}' - prefer 8-bit displacement.
  9380. * '{disp32}' - prefer 32-bit displacement.
  9381. * '{load}' - prefer load-form instruction.
  9382. * '{store}' - prefer store-form instruction.
  9383. * '{vex2}' - prefer 2-byte VEX prefix for VEX instruction.
  9384. * '{vex3}' - prefer 3-byte VEX prefix for VEX instruction.
  9385. * '{evex}' - encode with EVEX prefix.
  9386. * '{rex}' - prefer REX prefix for integer and legacy vector
  9387. instructions (x86-64 only). Note that this differs from the 'rex'
  9388. prefix which generates REX prefix unconditionally.
  9389. * '{nooptimize}' - disable instruction size optimization.
  9390. The Intel-syntax conversion instructions
  9391. * 'cbw' -- sign-extend byte in '%al' to word in '%ax',
  9392. * 'cwde' -- sign-extend word in '%ax' to long in '%eax',
  9393. * 'cwd' -- sign-extend word in '%ax' to long in '%dx:%ax',
  9394. * 'cdq' -- sign-extend dword in '%eax' to quad in '%edx:%eax',
  9395. * 'cdqe' -- sign-extend dword in '%eax' to quad in '%rax' (x86-64
  9396. only),
  9397. * 'cqo' -- sign-extend quad in '%rax' to octuple in '%rdx:%rax'
  9398. (x86-64 only),
  9399. are called 'cbtw', 'cwtl', 'cwtd', 'cltd', 'cltq', and 'cqto' in AT&T
  9400. naming. 'as' accepts either naming for these instructions.
  9401. Far call/jump instructions are 'lcall' and 'ljmp' in AT&T syntax, but
  9402. are 'call far' and 'jump far' in Intel convention.
  9403. 9.16.4.2 AT&T Mnemonic versus Intel Mnemonic
  9404. ............................................
  9405. 'as' supports assembly using Intel mnemonic. '.intel_mnemonic' selects
  9406. Intel mnemonic with Intel syntax, and '.att_mnemonic' switches back to
  9407. the usual AT&T mnemonic with AT&T syntax for compatibility with the
  9408. output of 'gcc'. Several x87 instructions, 'fadd', 'fdiv', 'fdivp',
  9409. 'fdivr', 'fdivrp', 'fmul', 'fsub', 'fsubp', 'fsubr' and 'fsubrp', are
  9410. implemented in AT&T System V/386 assembler with different mnemonics from
  9411. those in Intel IA32 specification. 'gcc' generates those instructions
  9412. with AT&T mnemonic.
  9413. 
  9414. File: as.info, Node: i386-Regs, Next: i386-Prefixes, Prev: i386-Mnemonics, Up: i386-Dependent
  9415. 9.16.5 Register Naming
  9416. ----------------------
  9417. Register operands are always prefixed with '%'. The 80386 registers
  9418. consist of
  9419. * the 8 32-bit registers '%eax' (the accumulator), '%ebx', '%ecx',
  9420. '%edx', '%edi', '%esi', '%ebp' (the frame pointer), and '%esp' (the
  9421. stack pointer).
  9422. * the 8 16-bit low-ends of these: '%ax', '%bx', '%cx', '%dx', '%di',
  9423. '%si', '%bp', and '%sp'.
  9424. * the 8 8-bit registers: '%ah', '%al', '%bh', '%bl', '%ch', '%cl',
  9425. '%dh', and '%dl' (These are the high-bytes and low-bytes of '%ax',
  9426. '%bx', '%cx', and '%dx')
  9427. * the 6 section registers '%cs' (code section), '%ds' (data section),
  9428. '%ss' (stack section), '%es', '%fs', and '%gs'.
  9429. * the 5 processor control registers '%cr0', '%cr2', '%cr3', '%cr4',
  9430. and '%cr8'.
  9431. * the 6 debug registers '%db0', '%db1', '%db2', '%db3', '%db6', and
  9432. '%db7'.
  9433. * the 2 test registers '%tr6' and '%tr7'.
  9434. * the 8 floating point register stack '%st' or equivalently '%st(0)',
  9435. '%st(1)', '%st(2)', '%st(3)', '%st(4)', '%st(5)', '%st(6)', and
  9436. '%st(7)'. These registers are overloaded by 8 MMX registers
  9437. '%mm0', '%mm1', '%mm2', '%mm3', '%mm4', '%mm5', '%mm6' and '%mm7'.
  9438. * the 8 128-bit SSE registers registers '%xmm0', '%xmm1', '%xmm2',
  9439. '%xmm3', '%xmm4', '%xmm5', '%xmm6' and '%xmm7'.
  9440. The AMD x86-64 architecture extends the register set by:
  9441. * enhancing the 8 32-bit registers to 64-bit: '%rax' (the
  9442. accumulator), '%rbx', '%rcx', '%rdx', '%rdi', '%rsi', '%rbp' (the
  9443. frame pointer), '%rsp' (the stack pointer)
  9444. * the 8 extended registers '%r8'-'%r15'.
  9445. * the 8 32-bit low ends of the extended registers: '%r8d'-'%r15d'.
  9446. * the 8 16-bit low ends of the extended registers: '%r8w'-'%r15w'.
  9447. * the 8 8-bit low ends of the extended registers: '%r8b'-'%r15b'.
  9448. * the 4 8-bit registers: '%sil', '%dil', '%bpl', '%spl'.
  9449. * the 8 debug registers: '%db8'-'%db15'.
  9450. * the 8 128-bit SSE registers: '%xmm8'-'%xmm15'.
  9451. With the AVX extensions more registers were made available:
  9452. * the 16 256-bit SSE '%ymm0'-'%ymm15' (only the first 8 available in
  9453. 32-bit mode). The bottom 128 bits are overlaid with the
  9454. 'xmm0'-'xmm15' registers.
  9455. The AVX2 extensions made in 64-bit mode more registers available:
  9456. * the 16 128-bit registers '%xmm16'-'%xmm31' and the 16 256-bit
  9457. registers '%ymm16'-'%ymm31'.
  9458. The AVX512 extensions added the following registers:
  9459. * the 32 512-bit registers '%zmm0'-'%zmm31' (only the first 8
  9460. available in 32-bit mode). The bottom 128 bits are overlaid with
  9461. the '%xmm0'-'%xmm31' registers and the first 256 bits are overlaid
  9462. with the '%ymm0'-'%ymm31' registers.
  9463. * the 8 mask registers '%k0'-'%k7'.
  9464. 
  9465. File: as.info, Node: i386-Prefixes, Next: i386-Memory, Prev: i386-Regs, Up: i386-Dependent
  9466. 9.16.6 Instruction Prefixes
  9467. ---------------------------
  9468. Instruction prefixes are used to modify the following instruction. They
  9469. are used to repeat string instructions, to provide section overrides, to
  9470. perform bus lock operations, and to change operand and address sizes.
  9471. (Most instructions that normally operate on 32-bit operands will use
  9472. 16-bit operands if the instruction has an "operand size" prefix.)
  9473. Instruction prefixes are best written on the same line as the
  9474. instruction they act upon. For example, the 'scas' (scan string)
  9475. instruction is repeated with:
  9476. repne scas %es:(%edi),%al
  9477. You may also place prefixes on the lines immediately preceding the
  9478. instruction, but this circumvents checks that 'as' does with prefixes,
  9479. and will not work with all prefixes.
  9480. Here is a list of instruction prefixes:
  9481. * Section override prefixes 'cs', 'ds', 'ss', 'es', 'fs', 'gs'.
  9482. These are automatically added by specifying using the
  9483. SECTION:MEMORY-OPERAND form for memory references.
  9484. * Operand/Address size prefixes 'data16' and 'addr16' change 32-bit
  9485. operands/addresses into 16-bit operands/addresses, while 'data32'
  9486. and 'addr32' change 16-bit ones (in a '.code16' section) into
  9487. 32-bit operands/addresses. These prefixes _must_ appear on the
  9488. same line of code as the instruction they modify. For example, in
  9489. a 16-bit '.code16' section, you might write:
  9490. addr32 jmpl *(%ebx)
  9491. * The bus lock prefix 'lock' inhibits interrupts during execution of
  9492. the instruction it precedes. (This is only valid with certain
  9493. instructions; see a 80386 manual for details).
  9494. * The wait for coprocessor prefix 'wait' waits for the coprocessor to
  9495. complete the current instruction. This should never be needed for
  9496. the 80386/80387 combination.
  9497. * The 'rep', 'repe', and 'repne' prefixes are added to string
  9498. instructions to make them repeat '%ecx' times ('%cx' times if the
  9499. current address size is 16-bits).
  9500. * The 'rex' family of prefixes is used by x86-64 to encode extensions
  9501. to i386 instruction set. The 'rex' prefix has four bits -- an
  9502. operand size overwrite ('64') used to change operand size from
  9503. 32-bit to 64-bit and X, Y and Z extensions bits used to extend the
  9504. register set.
  9505. You may write the 'rex' prefixes directly. The 'rex64xyz'
  9506. instruction emits 'rex' prefix with all the bits set. By omitting
  9507. the '64', 'x', 'y' or 'z' you may write other prefixes as well.
  9508. Normally, there is no need to write the prefixes explicitly, since
  9509. gas will automatically generate them based on the instruction
  9510. operands.
  9511. 
  9512. File: as.info, Node: i386-Memory, Next: i386-Jumps, Prev: i386-Prefixes, Up: i386-Dependent
  9513. 9.16.7 Memory References
  9514. ------------------------
  9515. An Intel syntax indirect memory reference of the form
  9516. SECTION:[BASE + INDEX*SCALE + DISP]
  9517. is translated into the AT&T syntax
  9518. SECTION:DISP(BASE, INDEX, SCALE)
  9519. where BASE and INDEX are the optional 32-bit base and index registers,
  9520. DISP is the optional displacement, and SCALE, taking the values 1, 2, 4,
  9521. and 8, multiplies INDEX to calculate the address of the operand. If no
  9522. SCALE is specified, SCALE is taken to be 1. SECTION specifies the
  9523. optional section register for the memory operand, and may override the
  9524. default section register (see a 80386 manual for section register
  9525. defaults). Note that section overrides in AT&T syntax _must_ be
  9526. preceded by a '%'. If you specify a section override which coincides
  9527. with the default section register, 'as' does _not_ output any section
  9528. register override prefixes to assemble the given instruction. Thus,
  9529. section overrides can be specified to emphasize which section register
  9530. is used for a given memory operand.
  9531. Here are some examples of Intel and AT&T style memory references:
  9532. AT&T: '-4(%ebp)', Intel: '[ebp - 4]'
  9533. BASE is '%ebp'; DISP is '-4'. SECTION is missing, and the default
  9534. section is used ('%ss' for addressing with '%ebp' as the base
  9535. register). INDEX, SCALE are both missing.
  9536. AT&T: 'foo(,%eax,4)', Intel: '[foo + eax*4]'
  9537. INDEX is '%eax' (scaled by a SCALE 4); DISP is 'foo'. All other
  9538. fields are missing. The section register here defaults to '%ds'.
  9539. AT&T: 'foo(,1)'; Intel '[foo]'
  9540. This uses the value pointed to by 'foo' as a memory operand. Note
  9541. that BASE and INDEX are both missing, but there is only _one_ ','.
  9542. This is a syntactic exception.
  9543. AT&T: '%gs:foo'; Intel 'gs:foo'
  9544. This selects the contents of the variable 'foo' with section
  9545. register SECTION being '%gs'.
  9546. Absolute (as opposed to PC relative) call and jump operands must be
  9547. prefixed with '*'. If no '*' is specified, 'as' always chooses PC
  9548. relative addressing for jump/call labels.
  9549. Any instruction that has a memory operand, but no register operand,
  9550. _must_ specify its size (byte, word, long, or quadruple) with an
  9551. instruction mnemonic suffix ('b', 'w', 'l' or 'q', respectively).
  9552. The x86-64 architecture adds an RIP (instruction pointer relative)
  9553. addressing. This addressing mode is specified by using 'rip' as a base
  9554. register. Only constant offsets are valid. For example:
  9555. AT&T: '1234(%rip)', Intel: '[rip + 1234]'
  9556. Points to the address 1234 bytes past the end of the current
  9557. instruction.
  9558. AT&T: 'symbol(%rip)', Intel: '[rip + symbol]'
  9559. Points to the 'symbol' in RIP relative way, this is shorter than
  9560. the default absolute addressing.
  9561. Other addressing modes remain unchanged in x86-64 architecture,
  9562. except registers used are 64-bit instead of 32-bit.
  9563. 
  9564. File: as.info, Node: i386-Jumps, Next: i386-Float, Prev: i386-Memory, Up: i386-Dependent
  9565. 9.16.8 Handling of Jump Instructions
  9566. ------------------------------------
  9567. Jump instructions are always optimized to use the smallest possible
  9568. displacements. This is accomplished by using byte (8-bit) displacement
  9569. jumps whenever the target is sufficiently close. If a byte displacement
  9570. is insufficient a long displacement is used. We do not support word
  9571. (16-bit) displacement jumps in 32-bit mode (i.e. prefixing the jump
  9572. instruction with the 'data16' instruction prefix), since the 80386
  9573. insists upon masking '%eip' to 16 bits after the word displacement is
  9574. added. (See also *note i386-Arch::)
  9575. Note that the 'jcxz', 'jecxz', 'loop', 'loopz', 'loope', 'loopnz' and
  9576. 'loopne' instructions only come in byte displacements, so that if you
  9577. use these instructions ('gcc' does not use them) you may get an error
  9578. message (and incorrect code). The AT&T 80386 assembler tries to get
  9579. around this problem by expanding 'jcxz foo' to
  9580. jcxz cx_zero
  9581. jmp cx_nonzero
  9582. cx_zero: jmp foo
  9583. cx_nonzero:
  9584. 
  9585. File: as.info, Node: i386-Float, Next: i386-SIMD, Prev: i386-Jumps, Up: i386-Dependent
  9586. 9.16.9 Floating Point
  9587. ---------------------
  9588. All 80387 floating point types except packed BCD are supported. (BCD
  9589. support may be added without much difficulty). These data types are
  9590. 16-, 32-, and 64- bit integers, and single (32-bit), double (64-bit),
  9591. and extended (80-bit) precision floating point. Each supported type has
  9592. an instruction mnemonic suffix and a constructor associated with it.
  9593. Instruction mnemonic suffixes specify the operand's data type.
  9594. Constructors build these data types into memory.
  9595. * Floating point constructors are '.float' or '.single', '.double',
  9596. and '.tfloat' for 32-, 64-, and 80-bit formats. These correspond
  9597. to instruction mnemonic suffixes 's', 'l', and 't'. 't' stands for
  9598. 80-bit (ten byte) real. The 80387 only supports this format via
  9599. the 'fldt' (load 80-bit real to stack top) and 'fstpt' (store
  9600. 80-bit real and pop stack) instructions.
  9601. * Integer constructors are '.word', '.long' or '.int', and '.quad'
  9602. for the 16-, 32-, and 64-bit integer formats. The corresponding
  9603. instruction mnemonic suffixes are 's' (single), 'l' (long), and 'q'
  9604. (quad). As with the 80-bit real format, the 64-bit 'q' format is
  9605. only present in the 'fildq' (load quad integer to stack top) and
  9606. 'fistpq' (store quad integer and pop stack) instructions.
  9607. Register to register operations should not use instruction mnemonic
  9608. suffixes. 'fstl %st, %st(1)' will give a warning, and be assembled as
  9609. if you wrote 'fst %st, %st(1)', since all register to register
  9610. operations use 80-bit floating point operands. (Contrast this with
  9611. 'fstl %st, mem', which converts '%st' from 80-bit to 64-bit floating
  9612. point format, then stores the result in the 4 byte location 'mem')
  9613. 
  9614. File: as.info, Node: i386-SIMD, Next: i386-LWP, Prev: i386-Float, Up: i386-Dependent
  9615. 9.16.10 Intel's MMX and AMD's 3DNow! SIMD Operations
  9616. ----------------------------------------------------
  9617. 'as' supports Intel's MMX instruction set (SIMD instructions for integer
  9618. data), available on Intel's Pentium MMX processors and Pentium II
  9619. processors, AMD's K6 and K6-2 processors, Cyrix' M2 processor, and
  9620. probably others. It also supports AMD's 3DNow! instruction set (SIMD
  9621. instructions for 32-bit floating point data) available on AMD's K6-2
  9622. processor and possibly others in the future.
  9623. Currently, 'as' does not support Intel's floating point SIMD, Katmai
  9624. (KNI).
  9625. The eight 64-bit MMX operands, also used by 3DNow!, are called
  9626. '%mm0', '%mm1', ... '%mm7'. They contain eight 8-bit integers, four
  9627. 16-bit integers, two 32-bit integers, one 64-bit integer, or two 32-bit
  9628. floating point values. The MMX registers cannot be used at the same
  9629. time as the floating point stack.
  9630. See Intel and AMD documentation, keeping in mind that the operand
  9631. order in instructions is reversed from the Intel syntax.
  9632. 
  9633. File: as.info, Node: i386-LWP, Next: i386-BMI, Prev: i386-SIMD, Up: i386-Dependent
  9634. 9.16.11 AMD's Lightweight Profiling Instructions
  9635. ------------------------------------------------
  9636. 'as' supports AMD's Lightweight Profiling (LWP) instruction set,
  9637. available on AMD's Family 15h (Orochi) processors.
  9638. LWP enables applications to collect and manage performance data, and
  9639. react to performance events. The collection of performance data
  9640. requires no context switches. LWP runs in the context of a thread and
  9641. so several counters can be used independently across multiple threads.
  9642. LWP can be used in both 64-bit and legacy 32-bit modes.
  9643. For detailed information on the LWP instruction set, see the 'AMD
  9644. Lightweight Profiling Specification' available at Lightweight Profiling
  9645. Specification (http://developer.amd.com/cpu/LWP).
  9646. 
  9647. File: as.info, Node: i386-BMI, Next: i386-TBM, Prev: i386-LWP, Up: i386-Dependent
  9648. 9.16.12 Bit Manipulation Instructions
  9649. -------------------------------------
  9650. 'as' supports the Bit Manipulation (BMI) instruction set.
  9651. BMI instructions provide several instructions implementing individual
  9652. bit manipulation operations such as isolation, masking, setting, or
  9653. resetting.
  9654. 
  9655. File: as.info, Node: i386-TBM, Next: i386-16bit, Prev: i386-BMI, Up: i386-Dependent
  9656. 9.16.13 AMD's Trailing Bit Manipulation Instructions
  9657. ----------------------------------------------------
  9658. 'as' supports AMD's Trailing Bit Manipulation (TBM) instruction set,
  9659. available on AMD's BDVER2 processors (Trinity and Viperfish).
  9660. TBM instructions provide instructions implementing individual bit
  9661. manipulation operations such as isolating, masking, setting, resetting,
  9662. complementing, and operations on trailing zeros and ones.
  9663. 
  9664. File: as.info, Node: i386-16bit, Next: i386-Arch, Prev: i386-TBM, Up: i386-Dependent
  9665. 9.16.14 Writing 16-bit Code
  9666. ---------------------------
  9667. While 'as' normally writes only "pure" 32-bit i386 code or 64-bit x86-64
  9668. code depending on the default configuration, it also supports writing
  9669. code to run in real mode or in 16-bit protected mode code segments. To
  9670. do this, put a '.code16' or '.code16gcc' directive before the assembly
  9671. language instructions to be run in 16-bit mode. You can switch 'as' to
  9672. writing 32-bit code with the '.code32' directive or 64-bit code with the
  9673. '.code64' directive.
  9674. '.code16gcc' provides experimental support for generating 16-bit code
  9675. from gcc, and differs from '.code16' in that 'call', 'ret', 'enter',
  9676. 'leave', 'push', 'pop', 'pusha', 'popa', 'pushf', and 'popf'
  9677. instructions default to 32-bit size. This is so that the stack pointer
  9678. is manipulated in the same way over function calls, allowing access to
  9679. function parameters at the same stack offsets as in 32-bit mode.
  9680. '.code16gcc' also automatically adds address size prefixes where
  9681. necessary to use the 32-bit addressing modes that gcc generates.
  9682. The code which 'as' generates in 16-bit mode will not necessarily run
  9683. on a 16-bit pre-80386 processor. To write code that runs on such a
  9684. processor, you must refrain from using _any_ 32-bit constructs which
  9685. require 'as' to output address or operand size prefixes.
  9686. Note that writing 16-bit code instructions by explicitly specifying a
  9687. prefix or an instruction mnemonic suffix within a 32-bit code section
  9688. generates different machine instructions than those generated for a
  9689. 16-bit code segment. In a 32-bit code section, the following code
  9690. generates the machine opcode bytes '66 6a 04', which pushes the value
  9691. '4' onto the stack, decrementing '%esp' by 2.
  9692. pushw $4
  9693. The same code in a 16-bit code section would generate the machine
  9694. opcode bytes '6a 04' (i.e., without the operand size prefix), which is
  9695. correct since the processor default operand size is assumed to be 16
  9696. bits in a 16-bit code section.
  9697. 
  9698. File: as.info, Node: i386-Arch, Next: i386-Bugs, Prev: i386-16bit, Up: i386-Dependent
  9699. 9.16.15 Specifying CPU Architecture
  9700. -----------------------------------
  9701. 'as' may be told to assemble for a particular CPU (sub-)architecture
  9702. with the '.arch CPU_TYPE' directive. This directive enables a warning
  9703. when gas detects an instruction that is not supported on the CPU
  9704. specified. The choices for CPU_TYPE are:
  9705. 'i8086' 'i186' 'i286' 'i386'
  9706. 'i486' 'i586' 'i686' 'pentium'
  9707. 'pentiumpro' 'pentiumii' 'pentiumiii' 'pentium4'
  9708. 'prescott' 'nocona' 'core' 'core2'
  9709. 'corei7' 'l1om' 'k1om' 'iamcu'
  9710. 'k6' 'k6_2' 'athlon' 'k8'
  9711. 'amdfam10' 'bdver1' 'bdver2' 'bdver3'
  9712. 'bdver4' 'znver1' 'znver2' 'btver1'
  9713. 'btver2' 'generic32' 'generic64'
  9714. '.cmov' '.fxsr' '.mmx'
  9715. '.sse' '.sse2' '.sse3'
  9716. '.ssse3' '.sse4.1' '.sse4.2' '.sse4'
  9717. '.avx' '.vmx' '.smx' '.ept'
  9718. '.clflush' '.movbe' '.xsave' '.xsaveopt'
  9719. '.aes' '.pclmul' '.fma' '.fsgsbase'
  9720. '.rdrnd' '.f16c' '.avx2' '.bmi2'
  9721. '.lzcnt' '.invpcid' '.vmfunc' '.hle'
  9722. '.rtm' '.adx' '.rdseed' '.prfchw'
  9723. '.smap' '.mpx' '.sha' '.prefetchwt1'
  9724. '.clflushopt' '.xsavec' '.xsaves' '.se1'
  9725. '.avx512f' '.avx512cd' '.avx512er' '.avx512pf'
  9726. '.avx512vl' '.avx512bw' '.avx512dq' '.avx512ifma'
  9727. '.avx512vbmi' '.avx512_4fmaps''.avx512_4vnniw'
  9728. '.avx512_vpopcntdq''.avx512_vbmi2''.avx512_vnni'
  9729. '.avx512_bitalg''.avx512_bf16''.avx512_vp2intersect'
  9730. '.clwb' '.rdpid' '.ptwrite'
  9731. '.ibt'
  9732. '.wbnoinvd' '.pconfig' '.waitpkg' '.cldemote'
  9733. '.shstk' '.gfni' '.vaes' '.vpclmulqdq'
  9734. '.movdiri' '.movdir64b' '.enqcmd'
  9735. '.3dnow' '.3dnowa' '.sse4a' '.sse5'
  9736. '.syscall' '.rdtscp' '.svme' '.abm'
  9737. '.lwp' '.fma4' '.xop' '.cx16'
  9738. '.padlock' '.clzero' '.mwaitx'
  9739. Apart from the warning, there are only two other effects on 'as'
  9740. operation; Firstly, if you specify a CPU other than 'i486', then shift
  9741. by one instructions such as 'sarl $1, %eax' will automatically use a two
  9742. byte opcode sequence. The larger three byte opcode sequence is used on
  9743. the 486 (and when no architecture is specified) because it executes
  9744. faster on the 486. Note that you can explicitly request the two byte
  9745. opcode by writing 'sarl %eax'. Secondly, if you specify 'i8086',
  9746. 'i186', or 'i286', _and_ '.code16' or '.code16gcc' then byte offset
  9747. conditional jumps will be promoted when necessary to a two instruction
  9748. sequence consisting of a conditional jump of the opposite sense around
  9749. an unconditional jump to the target.
  9750. Following the CPU architecture (but not a sub-architecture, which are
  9751. those starting with a dot), you may specify 'jumps' or 'nojumps' to
  9752. control automatic promotion of conditional jumps. 'jumps' is the
  9753. default, and enables jump promotion; All external jumps will be of the
  9754. long variety, and file-local jumps will be promoted as necessary.
  9755. (*note i386-Jumps::) 'nojumps' leaves external conditional jumps as byte
  9756. offset jumps, and warns about file-local conditional jumps that 'as'
  9757. promotes. Unconditional jumps are treated as for 'jumps'.
  9758. For example
  9759. .arch i8086,nojumps
  9760. 
  9761. File: as.info, Node: i386-Bugs, Next: i386-Notes, Prev: i386-Arch, Up: i386-Dependent
  9762. 9.16.16 AT&T Syntax bugs
  9763. ------------------------
  9764. The UnixWare assembler, and probably other AT&T derived ix86 Unix
  9765. assemblers, generate floating point instructions with reversed source
  9766. and destination registers in certain cases. Unfortunately, gcc and
  9767. possibly many other programs use this reversed syntax, so we're stuck
  9768. with it.
  9769. For example
  9770. fsub %st,%st(3)
  9771. results in '%st(3)' being updated to '%st - %st(3)' rather than the
  9772. expected '%st(3) - %st'. This happens with all the non-commutative
  9773. arithmetic floating point operations with two register operands where
  9774. the source register is '%st' and the destination register is '%st(i)'.
  9775. 
  9776. File: as.info, Node: i386-Notes, Prev: i386-Bugs, Up: i386-Dependent
  9777. 9.16.17 Notes
  9778. -------------
  9779. There is some trickery concerning the 'mul' and 'imul' instructions that
  9780. deserves mention. The 16-, 32-, 64- and 128-bit expanding multiplies
  9781. (base opcode '0xf6'; extension 4 for 'mul' and 5 for 'imul') can be
  9782. output only in the one operand form. Thus, 'imul %ebx, %eax' does _not_
  9783. select the expanding multiply; the expanding multiply would clobber the
  9784. '%edx' register, and this would confuse 'gcc' output. Use 'imul %ebx'
  9785. to get the 64-bit product in '%edx:%eax'.
  9786. We have added a two operand form of 'imul' when the first operand is
  9787. an immediate mode expression and the second operand is a register. This
  9788. is just a shorthand, so that, multiplying '%eax' by 69, for example, can
  9789. be done with 'imul $69, %eax' rather than 'imul $69, %eax, %eax'.
  9790. 
  9791. File: as.info, Node: IA-64-Dependent, Next: IP2K-Dependent, Prev: i386-Dependent, Up: Machine Dependencies
  9792. 9.17 IA-64 Dependent Features
  9793. =============================
  9794. * Menu:
  9795. * IA-64 Options:: Options
  9796. * IA-64 Syntax:: Syntax
  9797. * IA-64 Opcodes:: Opcodes
  9798. 
  9799. File: as.info, Node: IA-64 Options, Next: IA-64 Syntax, Up: IA-64-Dependent
  9800. 9.17.1 Options
  9801. --------------
  9802. '-mconstant-gp'
  9803. This option instructs the assembler to mark the resulting object
  9804. file as using the "constant GP" model. With this model, it is
  9805. assumed that the entire program uses a single global pointer (GP)
  9806. value. Note that this option does not in any fashion affect the
  9807. machine code emitted by the assembler. All it does is turn on the
  9808. EF_IA_64_CONS_GP flag in the ELF file header.
  9809. '-mauto-pic'
  9810. This option instructs the assembler to mark the resulting object
  9811. file as using the "constant GP without function descriptor" data
  9812. model. This model is like the "constant GP" model, except that it
  9813. additionally does away with function descriptors. What this means
  9814. is that the address of a function refers directly to the function's
  9815. code entry-point. Normally, such an address would refer to a
  9816. function descriptor, which contains both the code entry-point and
  9817. the GP-value needed by the function. Note that this option does
  9818. not in any fashion affect the machine code emitted by the
  9819. assembler. All it does is turn on the EF_IA_64_NOFUNCDESC_CONS_GP
  9820. flag in the ELF file header.
  9821. '-milp32'
  9822. '-milp64'
  9823. '-mlp64'
  9824. '-mp64'
  9825. These options select the data model. The assembler defaults to
  9826. '-mlp64' (LP64 data model).
  9827. '-mle'
  9828. '-mbe'
  9829. These options select the byte order. The '-mle' option selects
  9830. little-endian byte order (default) and '-mbe' selects big-endian
  9831. byte order. Note that IA-64 machine code always uses little-endian
  9832. byte order.
  9833. '-mtune=itanium1'
  9834. '-mtune=itanium2'
  9835. Tune for a particular IA-64 CPU, ITANIUM1 or ITANIUM2. The default
  9836. is ITANIUM2.
  9837. '-munwind-check=warning'
  9838. '-munwind-check=error'
  9839. These options control what the assembler will do when performing
  9840. consistency checks on unwind directives. '-munwind-check=warning'
  9841. will make the assembler issue a warning when an unwind directive
  9842. check fails. This is the default. '-munwind-check=error' will
  9843. make the assembler issue an error when an unwind directive check
  9844. fails.
  9845. '-mhint.b=ok'
  9846. '-mhint.b=warning'
  9847. '-mhint.b=error'
  9848. These options control what the assembler will do when the 'hint.b'
  9849. instruction is used. '-mhint.b=ok' will make the assembler accept
  9850. 'hint.b'. '-mint.b=warning' will make the assembler issue a
  9851. warning when 'hint.b' is used. '-mhint.b=error' will make the
  9852. assembler treat 'hint.b' as an error, which is the default.
  9853. '-x'
  9854. '-xexplicit'
  9855. These options turn on dependency violation checking.
  9856. '-xauto'
  9857. This option instructs the assembler to automatically insert stop
  9858. bits where necessary to remove dependency violations. This is the
  9859. default mode.
  9860. '-xnone'
  9861. This option turns off dependency violation checking.
  9862. '-xdebug'
  9863. This turns on debug output intended to help tracking down bugs in
  9864. the dependency violation checker.
  9865. '-xdebugn'
  9866. This is a shortcut for -xnone -xdebug.
  9867. '-xdebugx'
  9868. This is a shortcut for -xexplicit -xdebug.
  9869. 
  9870. File: as.info, Node: IA-64 Syntax, Next: IA-64 Opcodes, Prev: IA-64 Options, Up: IA-64-Dependent
  9871. 9.17.2 Syntax
  9872. -------------
  9873. The assembler syntax closely follows the IA-64 Assembly Language
  9874. Reference Guide.
  9875. * Menu:
  9876. * IA-64-Chars:: Special Characters
  9877. * IA-64-Regs:: Register Names
  9878. * IA-64-Bits:: Bit Names
  9879. * IA-64-Relocs:: Relocations
  9880. 
  9881. File: as.info, Node: IA-64-Chars, Next: IA-64-Regs, Up: IA-64 Syntax
  9882. 9.17.2.1 Special Characters
  9883. ...........................
  9884. '//' is the line comment token.
  9885. ';' can be used instead of a newline to separate statements.
  9886. 
  9887. File: as.info, Node: IA-64-Regs, Next: IA-64-Bits, Prev: IA-64-Chars, Up: IA-64 Syntax
  9888. 9.17.2.2 Register Names
  9889. .......................
  9890. The 128 integer registers are referred to as 'rN'. The 128
  9891. floating-point registers are referred to as 'fN'. The 128 application
  9892. registers are referred to as 'arN'. The 128 control registers are
  9893. referred to as 'crN'. The 64 one-bit predicate registers are referred
  9894. to as 'pN'. The 8 branch registers are referred to as 'bN'. In
  9895. addition, the assembler defines a number of aliases: 'gp' ('r1'), 'sp'
  9896. ('r12'), 'rp' ('b0'), 'ret0' ('r8'), 'ret1' ('r9'), 'ret2' ('r10'),
  9897. 'ret3' ('r9'), 'fargN' ('f8+N'), and 'fretN' ('f8+N').
  9898. For convenience, the assembler also defines aliases for all named
  9899. application and control registers. For example, 'ar.bsp' refers to the
  9900. register backing store pointer ('ar17'). Similarly, 'cr.eoi' refers to
  9901. the end-of-interrupt register ('cr67').
  9902. 
  9903. File: as.info, Node: IA-64-Bits, Next: IA-64-Relocs, Prev: IA-64-Regs, Up: IA-64 Syntax
  9904. 9.17.2.3 IA-64 Processor-Status-Register (PSR) Bit Names
  9905. ........................................................
  9906. The assembler defines bit masks for each of the bits in the IA-64
  9907. processor status register. For example, 'psr.ic' corresponds to a value
  9908. of 0x2000. These masks are primarily intended for use with the
  9909. 'ssm'/'sum' and 'rsm'/'rum' instructions, but they can be used anywhere
  9910. else where an integer constant is expected.
  9911. 
  9912. File: as.info, Node: IA-64-Relocs, Prev: IA-64-Bits, Up: IA-64 Syntax
  9913. 9.17.2.4 Relocations
  9914. ....................
  9915. In addition to the standard IA-64 relocations, the following relocations
  9916. are implemented by 'as':
  9917. '@slotcount(V)'
  9918. Convert the address offset V into a slot count. This pseudo
  9919. function is available only on VMS. The expression V must be known
  9920. at assembly time: it can't reference undefined symbols or symbols
  9921. in different sections.
  9922. 
  9923. File: as.info, Node: IA-64 Opcodes, Prev: IA-64 Syntax, Up: IA-64-Dependent
  9924. 9.17.3 Opcodes
  9925. --------------
  9926. For detailed information on the IA-64 machine instruction set, see the
  9927. IA-64 Architecture Handbook
  9928. (http://developer.intel.com/design/itanium/arch_spec.htm).
  9929. 
  9930. File: as.info, Node: IP2K-Dependent, Next: LM32-Dependent, Prev: IA-64-Dependent, Up: Machine Dependencies
  9931. 9.18 IP2K Dependent Features
  9932. ============================
  9933. * Menu:
  9934. * IP2K-Opts:: IP2K Options
  9935. * IP2K-Syntax:: IP2K Syntax
  9936. 
  9937. File: as.info, Node: IP2K-Opts, Next: IP2K-Syntax, Up: IP2K-Dependent
  9938. 9.18.1 IP2K Options
  9939. -------------------
  9940. The Ubicom IP2K version of 'as' has a few machine dependent options:
  9941. '-mip2022ext'
  9942. 'as' can assemble the extended IP2022 instructions, but it will
  9943. only do so if this is specifically allowed via this command line
  9944. option.
  9945. '-mip2022'
  9946. This option restores the assembler's default behaviour of not
  9947. permitting the extended IP2022 instructions to be assembled.
  9948. 
  9949. File: as.info, Node: IP2K-Syntax, Prev: IP2K-Opts, Up: IP2K-Dependent
  9950. 9.18.2 IP2K Syntax
  9951. ------------------
  9952. * Menu:
  9953. * IP2K-Chars:: Special Characters
  9954. 
  9955. File: as.info, Node: IP2K-Chars, Up: IP2K-Syntax
  9956. 9.18.2.1 Special Characters
  9957. ...........................
  9958. The presence of a ';' on a line indicates the start of a comment that
  9959. extends to the end of the current line.
  9960. If a '#' appears as the first character of a line, the whole line is
  9961. treated as a comment, but in this case the line can also be a logical
  9962. line number directive (*note Comments::) or a preprocessor control
  9963. command (*note Preprocessing::).
  9964. The IP2K assembler does not currently support a line separator
  9965. character.
  9966. 
  9967. File: as.info, Node: LM32-Dependent, Next: M32C-Dependent, Prev: IP2K-Dependent, Up: Machine Dependencies
  9968. 9.19 LM32 Dependent Features
  9969. ============================
  9970. * Menu:
  9971. * LM32 Options:: Options
  9972. * LM32 Syntax:: Syntax
  9973. * LM32 Opcodes:: Opcodes
  9974. 
  9975. File: as.info, Node: LM32 Options, Next: LM32 Syntax, Up: LM32-Dependent
  9976. 9.19.1 Options
  9977. --------------
  9978. '-mmultiply-enabled'
  9979. Enable multiply instructions.
  9980. '-mdivide-enabled'
  9981. Enable divide instructions.
  9982. '-mbarrel-shift-enabled'
  9983. Enable barrel-shift instructions.
  9984. '-msign-extend-enabled'
  9985. Enable sign extend instructions.
  9986. '-muser-enabled'
  9987. Enable user defined instructions.
  9988. '-micache-enabled'
  9989. Enable instruction cache related CSRs.
  9990. '-mdcache-enabled'
  9991. Enable data cache related CSRs.
  9992. '-mbreak-enabled'
  9993. Enable break instructions.
  9994. '-mall-enabled'
  9995. Enable all instructions and CSRs.
  9996. 
  9997. File: as.info, Node: LM32 Syntax, Next: LM32 Opcodes, Prev: LM32 Options, Up: LM32-Dependent
  9998. 9.19.2 Syntax
  9999. -------------
  10000. * Menu:
  10001. * LM32-Regs:: Register Names
  10002. * LM32-Modifiers:: Relocatable Expression Modifiers
  10003. * LM32-Chars:: Special Characters
  10004. 
  10005. File: as.info, Node: LM32-Regs, Next: LM32-Modifiers, Up: LM32 Syntax
  10006. 9.19.2.1 Register Names
  10007. .......................
  10008. LM32 has 32 x 32-bit general purpose registers 'r0', 'r1', ... 'r31'.
  10009. The following aliases are defined: 'gp' - 'r26', 'fp' - 'r27', 'sp' -
  10010. 'r28', 'ra' - 'r29', 'ea' - 'r30', 'ba' - 'r31'.
  10011. LM32 has the following Control and Status Registers (CSRs).
  10012. 'IE'
  10013. Interrupt enable.
  10014. 'IM'
  10015. Interrupt mask.
  10016. 'IP'
  10017. Interrupt pending.
  10018. 'ICC'
  10019. Instruction cache control.
  10020. 'DCC'
  10021. Data cache control.
  10022. 'CC'
  10023. Cycle counter.
  10024. 'CFG'
  10025. Configuration.
  10026. 'EBA'
  10027. Exception base address.
  10028. 'DC'
  10029. Debug control.
  10030. 'DEBA'
  10031. Debug exception base address.
  10032. 'JTX'
  10033. JTAG transmit.
  10034. 'JRX'
  10035. JTAG receive.
  10036. 'BP0'
  10037. Breakpoint 0.
  10038. 'BP1'
  10039. Breakpoint 1.
  10040. 'BP2'
  10041. Breakpoint 2.
  10042. 'BP3'
  10043. Breakpoint 3.
  10044. 'WP0'
  10045. Watchpoint 0.
  10046. 'WP1'
  10047. Watchpoint 1.
  10048. 'WP2'
  10049. Watchpoint 2.
  10050. 'WP3'
  10051. Watchpoint 3.
  10052. 
  10053. File: as.info, Node: LM32-Modifiers, Next: LM32-Chars, Prev: LM32-Regs, Up: LM32 Syntax
  10054. 9.19.2.2 Relocatable Expression Modifiers
  10055. .........................................
  10056. The assembler supports several modifiers when using relocatable
  10057. addresses in LM32 instruction operands. The general syntax is the
  10058. following:
  10059. modifier(relocatable-expression)
  10060. 'lo'
  10061. This modifier allows you to use bits 0 through 15 of an address
  10062. expression as 16 bit relocatable expression.
  10063. 'hi'
  10064. This modifier allows you to use bits 16 through 23 of an address
  10065. expression as 16 bit relocatable expression.
  10066. For example
  10067. ori r4, r4, lo(sym+10)
  10068. orhi r4, r4, hi(sym+10)
  10069. 'gp'
  10070. This modified creates a 16-bit relocatable expression that is the
  10071. offset of the symbol from the global pointer.
  10072. mva r4, gp(sym)
  10073. 'got'
  10074. This modifier places a symbol in the GOT and creates a 16-bit
  10075. relocatable expression that is the offset into the GOT of this
  10076. symbol.
  10077. lw r4, (gp+got(sym))
  10078. 'gotofflo16'
  10079. This modifier allows you to use the bits 0 through 15 of an address
  10080. which is an offset from the GOT.
  10081. 'gotoffhi16'
  10082. This modifier allows you to use the bits 16 through 31 of an
  10083. address which is an offset from the GOT.
  10084. orhi r4, r4, gotoffhi16(lsym)
  10085. addi r4, r4, gotofflo16(lsym)
  10086. 
  10087. File: as.info, Node: LM32-Chars, Prev: LM32-Modifiers, Up: LM32 Syntax
  10088. 9.19.2.3 Special Characters
  10089. ...........................
  10090. The presence of a '#' on a line indicates the start of a comment that
  10091. extends to the end of the current line. Note that if a line starts with
  10092. a '#' character then it can also be a logical line number directive
  10093. (*note Comments::) or a preprocessor control command (*note
  10094. Preprocessing::).
  10095. A semicolon (';') can be used to separate multiple statements on the
  10096. same line.
  10097. 
  10098. File: as.info, Node: LM32 Opcodes, Prev: LM32 Syntax, Up: LM32-Dependent
  10099. 9.19.3 Opcodes
  10100. --------------
  10101. For detailed information on the LM32 machine instruction set, see
  10102. <http://www.latticesemi.com/products/intellectualproperty/ipcores/mico32/>.
  10103. 'as' implements all the standard LM32 opcodes.
  10104. 
  10105. File: as.info, Node: M32C-Dependent, Next: M32R-Dependent, Prev: LM32-Dependent, Up: Machine Dependencies
  10106. 9.20 M32C Dependent Features
  10107. ============================
  10108. 'as' can assemble code for several different members of the Renesas M32C
  10109. family. Normally the default is to assemble code for the M16C
  10110. microprocessor. The '-m32c' option may be used to change the default to
  10111. the M32C microprocessor.
  10112. * Menu:
  10113. * M32C-Opts:: M32C Options
  10114. * M32C-Syntax:: M32C Syntax
  10115. 
  10116. File: as.info, Node: M32C-Opts, Next: M32C-Syntax, Up: M32C-Dependent
  10117. 9.20.1 M32C Options
  10118. -------------------
  10119. The Renesas M32C version of 'as' has these machine-dependent options:
  10120. '-m32c'
  10121. Assemble M32C instructions.
  10122. '-m16c'
  10123. Assemble M16C instructions (default).
  10124. '-relax'
  10125. Enable support for link-time relaxations.
  10126. '-h-tick-hex'
  10127. Support H'00 style hex constants in addition to 0x00 style.
  10128. 
  10129. File: as.info, Node: M32C-Syntax, Prev: M32C-Opts, Up: M32C-Dependent
  10130. 9.20.2 M32C Syntax
  10131. ------------------
  10132. * Menu:
  10133. * M32C-Modifiers:: Symbolic Operand Modifiers
  10134. * M32C-Chars:: Special Characters
  10135. 
  10136. File: as.info, Node: M32C-Modifiers, Next: M32C-Chars, Up: M32C-Syntax
  10137. 9.20.2.1 Symbolic Operand Modifiers
  10138. ...................................
  10139. The assembler supports several modifiers when using symbol addresses in
  10140. M32C instruction operands. The general syntax is the following:
  10141. %modifier(symbol)
  10142. '%dsp8'
  10143. '%dsp16'
  10144. These modifiers override the assembler's assumptions about how big
  10145. a symbol's address is. Normally, when it sees an operand like
  10146. 'sym[a0]' it assumes 'sym' may require the widest displacement
  10147. field (16 bits for '-m16c', 24 bits for '-m32c'). These modifiers
  10148. tell it to assume the address will fit in an 8 or 16 bit
  10149. (respectively) unsigned displacement. Note that, of course, if it
  10150. doesn't actually fit you will get linker errors. Example:
  10151. mov.w %dsp8(sym)[a0],r1
  10152. mov.b #0,%dsp8(sym)[a0]
  10153. '%hi8'
  10154. This modifier allows you to load bits 16 through 23 of a 24 bit
  10155. address into an 8 bit register. This is useful with, for example,
  10156. the M16C 'smovf' instruction, which expects a 20 bit address in
  10157. 'r1h' and 'a0'. Example:
  10158. mov.b #%hi8(sym),r1h
  10159. mov.w #%lo16(sym),a0
  10160. smovf.b
  10161. '%lo16'
  10162. Likewise, this modifier allows you to load bits 0 through 15 of a
  10163. 24 bit address into a 16 bit register.
  10164. '%hi16'
  10165. This modifier allows you to load bits 16 through 31 of a 32 bit
  10166. address into a 16 bit register. While the M32C family only has 24
  10167. bits of address space, it does support addresses in pairs of 16 bit
  10168. registers (like 'a1a0' for the 'lde' instruction). This modifier
  10169. is for loading the upper half in such cases. Example:
  10170. mov.w #%hi16(sym),a1
  10171. mov.w #%lo16(sym),a0
  10172. ...
  10173. lde.w [a1a0],r1
  10174. 
  10175. File: as.info, Node: M32C-Chars, Prev: M32C-Modifiers, Up: M32C-Syntax
  10176. 9.20.2.2 Special Characters
  10177. ...........................
  10178. The presence of a ';' character on a line indicates the start of a
  10179. comment that extends to the end of that line.
  10180. If a '#' appears as the first character of a line, the whole line is
  10181. treated as a comment, but in this case the line can also be a logical
  10182. line number directive (*note Comments::) or a preprocessor control
  10183. command (*note Preprocessing::).
  10184. The '|' character can be used to separate statements on the same
  10185. line.
  10186. 
  10187. File: as.info, Node: M32R-Dependent, Next: M68K-Dependent, Prev: M32C-Dependent, Up: Machine Dependencies
  10188. 9.21 M32R Dependent Features
  10189. ============================
  10190. * Menu:
  10191. * M32R-Opts:: M32R Options
  10192. * M32R-Directives:: M32R Directives
  10193. * M32R-Warnings:: M32R Warnings
  10194. 
  10195. File: as.info, Node: M32R-Opts, Next: M32R-Directives, Up: M32R-Dependent
  10196. 9.21.1 M32R Options
  10197. -------------------
  10198. The Renesas M32R version of 'as' has a few machine dependent options:
  10199. '-m32rx'
  10200. 'as' can assemble code for several different members of the Renesas
  10201. M32R family. Normally the default is to assemble code for the M32R
  10202. microprocessor. This option may be used to change the default to
  10203. the M32RX microprocessor, which adds some more instructions to the
  10204. basic M32R instruction set, and some additional parameters to some
  10205. of the original instructions.
  10206. '-m32r2'
  10207. This option changes the target processor to the M32R2
  10208. microprocessor.
  10209. '-m32r'
  10210. This option can be used to restore the assembler's default
  10211. behaviour of assembling for the M32R microprocessor. This can be
  10212. useful if the default has been changed by a previous command-line
  10213. option.
  10214. '-little'
  10215. This option tells the assembler to produce little-endian code and
  10216. data. The default is dependent upon how the toolchain was
  10217. configured.
  10218. '-EL'
  10219. This is a synonym for _-little_.
  10220. '-big'
  10221. This option tells the assembler to produce big-endian code and
  10222. data.
  10223. '-EB'
  10224. This is a synonym for _-big_.
  10225. '-KPIC'
  10226. This option specifies that the output of the assembler should be
  10227. marked as position-independent code (PIC).
  10228. '-parallel'
  10229. This option tells the assembler to attempts to combine two
  10230. sequential instructions into a single, parallel instruction, where
  10231. it is legal to do so.
  10232. '-no-parallel'
  10233. This option disables a previously enabled _-parallel_ option.
  10234. '-no-bitinst'
  10235. This option disables the support for the extended bit-field
  10236. instructions provided by the M32R2. If this support needs to be
  10237. re-enabled the _-bitinst_ switch can be used to restore it.
  10238. '-O'
  10239. This option tells the assembler to attempt to optimize the
  10240. instructions that it produces. This includes filling delay slots
  10241. and converting sequential instructions into parallel ones. This
  10242. option implies _-parallel_.
  10243. '-warn-explicit-parallel-conflicts'
  10244. Instructs 'as' to produce warning messages when questionable
  10245. parallel instructions are encountered. This option is enabled by
  10246. default, but 'gcc' disables it when it invokes 'as' directly.
  10247. Questionable instructions are those whose behaviour would be
  10248. different if they were executed sequentially. For example the code
  10249. fragment 'mv r1, r2 || mv r3, r1' produces a different result from
  10250. 'mv r1, r2 \n mv r3, r1' since the former moves r1 into r3 and then
  10251. r2 into r1, whereas the later moves r2 into r1 and r3.
  10252. '-Wp'
  10253. This is a shorter synonym for the
  10254. _-warn-explicit-parallel-conflicts_ option.
  10255. '-no-warn-explicit-parallel-conflicts'
  10256. Instructs 'as' not to produce warning messages when questionable
  10257. parallel instructions are encountered.
  10258. '-Wnp'
  10259. This is a shorter synonym for the
  10260. _-no-warn-explicit-parallel-conflicts_ option.
  10261. '-ignore-parallel-conflicts'
  10262. This option tells the assembler's to stop checking parallel
  10263. instructions for constraint violations. This ability is provided
  10264. for hardware vendors testing chip designs and should not be used
  10265. under normal circumstances.
  10266. '-no-ignore-parallel-conflicts'
  10267. This option restores the assembler's default behaviour of checking
  10268. parallel instructions to detect constraint violations.
  10269. '-Ip'
  10270. This is a shorter synonym for the _-ignore-parallel-conflicts_
  10271. option.
  10272. '-nIp'
  10273. This is a shorter synonym for the _-no-ignore-parallel-conflicts_
  10274. option.
  10275. '-warn-unmatched-high'
  10276. This option tells the assembler to produce a warning message if a
  10277. '.high' pseudo op is encountered without a matching '.low' pseudo
  10278. op. The presence of such an unmatched pseudo op usually indicates
  10279. a programming error.
  10280. '-no-warn-unmatched-high'
  10281. Disables a previously enabled _-warn-unmatched-high_ option.
  10282. '-Wuh'
  10283. This is a shorter synonym for the _-warn-unmatched-high_ option.
  10284. '-Wnuh'
  10285. This is a shorter synonym for the _-no-warn-unmatched-high_ option.
  10286. 
  10287. File: as.info, Node: M32R-Directives, Next: M32R-Warnings, Prev: M32R-Opts, Up: M32R-Dependent
  10288. 9.21.2 M32R Directives
  10289. ----------------------
  10290. The Renesas M32R version of 'as' has a few architecture specific
  10291. directives:
  10292. 'low EXPRESSION'
  10293. The 'low' directive computes the value of its expression and places
  10294. the lower 16-bits of the result into the immediate-field of the
  10295. instruction. For example:
  10296. or3 r0, r0, #low(0x12345678) ; compute r0 = r0 | 0x5678
  10297. add3, r0, r0, #low(fred) ; compute r0 = r0 + low 16-bits of address of fred
  10298. 'high EXPRESSION'
  10299. The 'high' directive computes the value of its expression and
  10300. places the upper 16-bits of the result into the immediate-field of
  10301. the instruction. For example:
  10302. seth r0, #high(0x12345678) ; compute r0 = 0x12340000
  10303. seth, r0, #high(fred) ; compute r0 = upper 16-bits of address of fred
  10304. 'shigh EXPRESSION'
  10305. The 'shigh' directive is very similar to the 'high' directive. It
  10306. also computes the value of its expression and places the upper
  10307. 16-bits of the result into the immediate-field of the instruction.
  10308. The difference is that 'shigh' also checks to see if the lower
  10309. 16-bits could be interpreted as a signed number, and if so it
  10310. assumes that a borrow will occur from the upper-16 bits. To
  10311. compensate for this the 'shigh' directive pre-biases the upper 16
  10312. bit value by adding one to it. For example:
  10313. For example:
  10314. seth r0, #shigh(0x12345678) ; compute r0 = 0x12340000
  10315. seth r0, #shigh(0x00008000) ; compute r0 = 0x00010000
  10316. In the second example the lower 16-bits are 0x8000. If these are
  10317. treated as a signed value and sign extended to 32-bits then the
  10318. value becomes 0xffff8000. If this value is then added to
  10319. 0x00010000 then the result is 0x00008000.
  10320. This behaviour is to allow for the different semantics of the 'or3'
  10321. and 'add3' instructions. The 'or3' instruction treats its 16-bit
  10322. immediate argument as unsigned whereas the 'add3' treats its 16-bit
  10323. immediate as a signed value. So for example:
  10324. seth r0, #shigh(0x00008000)
  10325. add3 r0, r0, #low(0x00008000)
  10326. Produces the correct result in r0, whereas:
  10327. seth r0, #shigh(0x00008000)
  10328. or3 r0, r0, #low(0x00008000)
  10329. Stores 0xffff8000 into r0.
  10330. Note - the 'shigh' directive does not know where in the assembly
  10331. source code the lower 16-bits of the value are going set, so it
  10332. cannot check to make sure that an 'or3' instruction is being used
  10333. rather than an 'add3' instruction. It is up to the programmer to
  10334. make sure that correct directives are used.
  10335. '.m32r'
  10336. The directive performs a similar thing as the _-m32r_ command line
  10337. option. It tells the assembler to only accept M32R instructions
  10338. from now on. An instructions from later M32R architectures are
  10339. refused.
  10340. '.m32rx'
  10341. The directive performs a similar thing as the _-m32rx_ command line
  10342. option. It tells the assembler to start accepting the extra
  10343. instructions in the M32RX ISA as well as the ordinary M32R ISA.
  10344. '.m32r2'
  10345. The directive performs a similar thing as the _-m32r2_ command line
  10346. option. It tells the assembler to start accepting the extra
  10347. instructions in the M32R2 ISA as well as the ordinary M32R ISA.
  10348. '.little'
  10349. The directive performs a similar thing as the _-little_ command
  10350. line option. It tells the assembler to start producing
  10351. little-endian code and data. This option should be used with care
  10352. as producing mixed-endian binary files is fraught with danger.
  10353. '.big'
  10354. The directive performs a similar thing as the _-big_ command line
  10355. option. It tells the assembler to start producing big-endian code
  10356. and data. This option should be used with care as producing
  10357. mixed-endian binary files is fraught with danger.
  10358. 
  10359. File: as.info, Node: M32R-Warnings, Prev: M32R-Directives, Up: M32R-Dependent
  10360. 9.21.3 M32R Warnings
  10361. --------------------
  10362. There are several warning and error messages that can be produced by
  10363. 'as' which are specific to the M32R:
  10364. 'output of 1st instruction is the same as an input to 2nd instruction - is this intentional ?'
  10365. This message is only produced if warnings for explicit parallel
  10366. conflicts have been enabled. It indicates that the assembler has
  10367. encountered a parallel instruction in which the destination
  10368. register of the left hand instruction is used as an input register
  10369. in the right hand instruction. For example in this code fragment
  10370. 'mv r1, r2 || neg r3, r1' register r1 is the destination of the
  10371. move instruction and the input to the neg instruction.
  10372. 'output of 2nd instruction is the same as an input to 1st instruction - is this intentional ?'
  10373. This message is only produced if warnings for explicit parallel
  10374. conflicts have been enabled. It indicates that the assembler has
  10375. encountered a parallel instruction in which the destination
  10376. register of the right hand instruction is used as an input register
  10377. in the left hand instruction. For example in this code fragment
  10378. 'mv r1, r2 || neg r2, r3' register r2 is the destination of the neg
  10379. instruction and the input to the move instruction.
  10380. 'instruction '...' is for the M32RX only'
  10381. This message is produced when the assembler encounters an
  10382. instruction which is only supported by the M32Rx processor, and the
  10383. '-m32rx' command-line flag has not been specified to allow assembly
  10384. of such instructions.
  10385. 'unknown instruction '...''
  10386. This message is produced when the assembler encounters an
  10387. instruction which it does not recognize.
  10388. 'only the NOP instruction can be issued in parallel on the m32r'
  10389. This message is produced when the assembler encounters a parallel
  10390. instruction which does not involve a NOP instruction and the
  10391. '-m32rx' command-line flag has not been specified. Only the M32Rx
  10392. processor is able to execute two instructions in parallel.
  10393. 'instruction '...' cannot be executed in parallel.'
  10394. This message is produced when the assembler encounters a parallel
  10395. instruction which is made up of one or two instructions which
  10396. cannot be executed in parallel.
  10397. 'Instructions share the same execution pipeline'
  10398. This message is produced when the assembler encounters a parallel
  10399. instruction whose components both use the same execution pipeline.
  10400. 'Instructions write to the same destination register.'
  10401. This message is produced when the assembler encounters a parallel
  10402. instruction where both components attempt to modify the same
  10403. register. For example these code fragments will produce this
  10404. message: 'mv r1, r2 || neg r1, r3' 'jl r0 || mv r14, r1' 'st r2,
  10405. @-r1 || mv r1, r3' 'mv r1, r2 || ld r0, @r1+' 'cmp r1, r2 || addx
  10406. r3, r4' (Both write to the condition bit)
  10407. 
  10408. File: as.info, Node: M68K-Dependent, Next: M68HC11-Dependent, Prev: M32R-Dependent, Up: Machine Dependencies
  10409. 9.22 M680x0 Dependent Features
  10410. ==============================
  10411. * Menu:
  10412. * M68K-Opts:: M680x0 Options
  10413. * M68K-Syntax:: Syntax
  10414. * M68K-Moto-Syntax:: Motorola Syntax
  10415. * M68K-Float:: Floating Point
  10416. * M68K-Directives:: 680x0 Machine Directives
  10417. * M68K-opcodes:: Opcodes
  10418. 
  10419. File: as.info, Node: M68K-Opts, Next: M68K-Syntax, Up: M68K-Dependent
  10420. 9.22.1 M680x0 Options
  10421. ---------------------
  10422. The Motorola 680x0 version of 'as' has a few machine dependent options:
  10423. '-march=ARCHITECTURE'
  10424. This option specifies a target architecture. The following
  10425. architectures are recognized: '68000', '68010', '68020', '68030',
  10426. '68040', '68060', 'cpu32', 'isaa', 'isaaplus', 'isab', 'isac' and
  10427. 'cfv4e'.
  10428. '-mcpu=CPU'
  10429. This option specifies a target cpu. When used in conjunction with
  10430. the '-march' option, the cpu must be within the specified
  10431. architecture. Also, the generic features of the architecture are
  10432. used for instruction generation, rather than those of the specific
  10433. chip.
  10434. '-m[no-]68851'
  10435. '-m[no-]68881'
  10436. '-m[no-]div'
  10437. '-m[no-]usp'
  10438. '-m[no-]float'
  10439. '-m[no-]mac'
  10440. '-m[no-]emac'
  10441. Enable or disable various architecture specific features. If a
  10442. chip or architecture by default supports an option (for instance
  10443. '-march=isaaplus' includes the '-mdiv' option), explicitly
  10444. disabling the option will override the default.
  10445. '-l'
  10446. You can use the '-l' option to shorten the size of references to
  10447. undefined symbols. If you do not use the '-l' option, references
  10448. to undefined symbols are wide enough for a full 'long' (32 bits).
  10449. (Since 'as' cannot know where these symbols end up, 'as' can only
  10450. allocate space for the linker to fill in later. Since 'as' does
  10451. not know how far away these symbols are, it allocates as much space
  10452. as it can.) If you use this option, the references are only one
  10453. word wide (16 bits). This may be useful if you want the object
  10454. file to be as small as possible, and you know that the relevant
  10455. symbols are always less than 17 bits away.
  10456. '--register-prefix-optional'
  10457. For some configurations, especially those where the compiler
  10458. normally does not prepend an underscore to the names of user
  10459. variables, the assembler requires a '%' before any use of a
  10460. register name. This is intended to let the assembler distinguish
  10461. between C variables and functions named 'a0' through 'a7', and so
  10462. on. The '%' is always accepted, but is not required for certain
  10463. configurations, notably 'sun3'. The '--register-prefix-optional'
  10464. option may be used to permit omitting the '%' even for
  10465. configurations for which it is normally required. If this is done,
  10466. it will generally be impossible to refer to C variables and
  10467. functions with the same names as register names.
  10468. '--bitwise-or'
  10469. Normally the character '|' is treated as a comment character, which
  10470. means that it can not be used in expressions. The '--bitwise-or'
  10471. option turns '|' into a normal character. In this mode, you must
  10472. either use C style comments, or start comments with a '#' character
  10473. at the beginning of a line.
  10474. '--base-size-default-16 --base-size-default-32'
  10475. If you use an addressing mode with a base register without
  10476. specifying the size, 'as' will normally use the full 32 bit value.
  10477. For example, the addressing mode '%a0@(%d0)' is equivalent to
  10478. '%a0@(%d0:l)'. You may use the '--base-size-default-16' option to
  10479. tell 'as' to default to using the 16 bit value. In this case,
  10480. '%a0@(%d0)' is equivalent to '%a0@(%d0:w)'. You may use the
  10481. '--base-size-default-32' option to restore the default behaviour.
  10482. '--disp-size-default-16 --disp-size-default-32'
  10483. If you use an addressing mode with a displacement, and the value of
  10484. the displacement is not known, 'as' will normally assume that the
  10485. value is 32 bits. For example, if the symbol 'disp' has not been
  10486. defined, 'as' will assemble the addressing mode '%a0@(disp,%d0)' as
  10487. though 'disp' is a 32 bit value. You may use the
  10488. '--disp-size-default-16' option to tell 'as' to instead assume that
  10489. the displacement is 16 bits. In this case, 'as' will assemble
  10490. '%a0@(disp,%d0)' as though 'disp' is a 16 bit value. You may use
  10491. the '--disp-size-default-32' option to restore the default
  10492. behaviour.
  10493. '--pcrel'
  10494. Always keep branches PC-relative. In the M680x0 architecture all
  10495. branches are defined as PC-relative. However, on some processors
  10496. they are limited to word displacements maximum. When 'as' needs a
  10497. long branch that is not available, it normally emits an absolute
  10498. jump instead. This option disables this substitution. When this
  10499. option is given and no long branches are available, only word
  10500. branches will be emitted. An error message will be generated if a
  10501. word branch cannot reach its target. This option has no effect on
  10502. 68020 and other processors that have long branches. *note Branch
  10503. Improvement: M68K-Branch.
  10504. '-m68000'
  10505. 'as' can assemble code for several different members of the
  10506. Motorola 680x0 family. The default depends upon how 'as' was
  10507. configured when it was built; normally, the default is to assemble
  10508. code for the 68020 microprocessor. The following options may be
  10509. used to change the default. These options control which
  10510. instructions and addressing modes are permitted. The members of
  10511. the 680x0 family are very similar. For detailed information about
  10512. the differences, see the Motorola manuals.
  10513. '-m68000'
  10514. '-m68ec000'
  10515. '-m68hc000'
  10516. '-m68hc001'
  10517. '-m68008'
  10518. '-m68302'
  10519. '-m68306'
  10520. '-m68307'
  10521. '-m68322'
  10522. '-m68356'
  10523. Assemble for the 68000. '-m68008', '-m68302', and so on are
  10524. synonyms for '-m68000', since the chips are the same from the
  10525. point of view of the assembler.
  10526. '-m68010'
  10527. Assemble for the 68010.
  10528. '-m68020'
  10529. '-m68ec020'
  10530. Assemble for the 68020. This is normally the default.
  10531. '-m68030'
  10532. '-m68ec030'
  10533. Assemble for the 68030.
  10534. '-m68040'
  10535. '-m68ec040'
  10536. Assemble for the 68040.
  10537. '-m68060'
  10538. '-m68ec060'
  10539. Assemble for the 68060.
  10540. '-mcpu32'
  10541. '-m68330'
  10542. '-m68331'
  10543. '-m68332'
  10544. '-m68333'
  10545. '-m68334'
  10546. '-m68336'
  10547. '-m68340'
  10548. '-m68341'
  10549. '-m68349'
  10550. '-m68360'
  10551. Assemble for the CPU32 family of chips.
  10552. '-m5200'
  10553. '-m5202'
  10554. '-m5204'
  10555. '-m5206'
  10556. '-m5206e'
  10557. '-m521x'
  10558. '-m5249'
  10559. '-m528x'
  10560. '-m5307'
  10561. '-m5407'
  10562. '-m547x'
  10563. '-m548x'
  10564. '-mcfv4'
  10565. '-mcfv4e'
  10566. Assemble for the ColdFire family of chips.
  10567. '-m68881'
  10568. '-m68882'
  10569. Assemble 68881 floating point instructions. This is the
  10570. default for the 68020, 68030, and the CPU32. The 68040 and
  10571. 68060 always support floating point instructions.
  10572. '-mno-68881'
  10573. Do not assemble 68881 floating point instructions. This is
  10574. the default for 68000 and the 68010. The 68040 and 68060
  10575. always support floating point instructions, even if this
  10576. option is used.
  10577. '-m68851'
  10578. Assemble 68851 MMU instructions. This is the default for the
  10579. 68020, 68030, and 68060. The 68040 accepts a somewhat
  10580. different set of MMU instructions; '-m68851' and '-m68040'
  10581. should not be used together.
  10582. '-mno-68851'
  10583. Do not assemble 68851 MMU instructions. This is the default
  10584. for the 68000, 68010, and the CPU32. The 68040 accepts a
  10585. somewhat different set of MMU instructions.
  10586. 
  10587. File: as.info, Node: M68K-Syntax, Next: M68K-Moto-Syntax, Prev: M68K-Opts, Up: M68K-Dependent
  10588. 9.22.2 Syntax
  10589. -------------
  10590. This syntax for the Motorola 680x0 was developed at MIT.
  10591. The 680x0 version of 'as' uses instructions names and syntax
  10592. compatible with the Sun assembler. Intervening periods are ignored; for
  10593. example, 'movl' is equivalent to 'mov.l'.
  10594. In the following table APC stands for any of the address registers
  10595. ('%a0' through '%a7'), the program counter ('%pc'), the zero-address
  10596. relative to the program counter ('%zpc'), a suppressed address register
  10597. ('%za0' through '%za7'), or it may be omitted entirely. The use of SIZE
  10598. means one of 'w' or 'l', and it may be omitted, along with the leading
  10599. colon, unless a scale is also specified. The use of SCALE means one of
  10600. '1', '2', '4', or '8', and it may always be omitted along with the
  10601. leading colon.
  10602. The following addressing modes are understood:
  10603. "Immediate"
  10604. '#NUMBER'
  10605. "Data Register"
  10606. '%d0' through '%d7'
  10607. "Address Register"
  10608. '%a0' through '%a7'
  10609. '%a7' is also known as '%sp', i.e., the Stack Pointer. '%a6' is
  10610. also known as '%fp', the Frame Pointer.
  10611. "Address Register Indirect"
  10612. '%a0@' through '%a7@'
  10613. "Address Register Postincrement"
  10614. '%a0@+' through '%a7@+'
  10615. "Address Register Predecrement"
  10616. '%a0@-' through '%a7@-'
  10617. "Indirect Plus Offset"
  10618. 'APC@(NUMBER)'
  10619. "Index"
  10620. 'APC@(NUMBER,REGISTER:SIZE:SCALE)'
  10621. The NUMBER may be omitted.
  10622. "Postindex"
  10623. 'APC@(NUMBER)@(ONUMBER,REGISTER:SIZE:SCALE)'
  10624. The ONUMBER or the REGISTER, but not both, may be omitted.
  10625. "Preindex"
  10626. 'APC@(NUMBER,REGISTER:SIZE:SCALE)@(ONUMBER)'
  10627. The NUMBER may be omitted. Omitting the REGISTER produces the
  10628. Postindex addressing mode.
  10629. "Absolute"
  10630. 'SYMBOL', or 'DIGITS', optionally followed by ':b', ':w', or ':l'.
  10631. 
  10632. File: as.info, Node: M68K-Moto-Syntax, Next: M68K-Float, Prev: M68K-Syntax, Up: M68K-Dependent
  10633. 9.22.3 Motorola Syntax
  10634. ----------------------
  10635. The standard Motorola syntax for this chip differs from the syntax
  10636. already discussed (*note Syntax: M68K-Syntax.). 'as' can accept
  10637. Motorola syntax for operands, even if MIT syntax is used for other
  10638. operands in the same instruction. The two kinds of syntax are fully
  10639. compatible.
  10640. In the following table APC stands for any of the address registers
  10641. ('%a0' through '%a7'), the program counter ('%pc'), the zero-address
  10642. relative to the program counter ('%zpc'), or a suppressed address
  10643. register ('%za0' through '%za7'). The use of SIZE means one of 'w' or
  10644. 'l', and it may always be omitted along with the leading dot. The use
  10645. of SCALE means one of '1', '2', '4', or '8', and it may always be
  10646. omitted along with the leading asterisk.
  10647. The following additional addressing modes are understood:
  10648. "Address Register Indirect"
  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 Postincrement"
  10653. '(%a0)+' through '(%a7)+'
  10654. "Address Register Predecrement"
  10655. '-(%a0)' through '-(%a7)'
  10656. "Indirect Plus Offset"
  10657. 'NUMBER(%A0)' through 'NUMBER(%A7)', or 'NUMBER(%PC)'.
  10658. The NUMBER may also appear within the parentheses, as in
  10659. '(NUMBER,%A0)'. When used with the PC, the NUMBER may be omitted
  10660. (with an address register, omitting the NUMBER produces Address
  10661. Register Indirect mode).
  10662. "Index"
  10663. 'NUMBER(APC,REGISTER.SIZE*SCALE)'
  10664. The NUMBER may be omitted, or it may appear within the parentheses.
  10665. The APC may be omitted. The REGISTER and the APC may appear in
  10666. either order. If both APC and REGISTER are address registers, and
  10667. the SIZE and SCALE are omitted, then the first register is taken as
  10668. the base register, and the second as the index register.
  10669. "Postindex"
  10670. '([NUMBER,APC],REGISTER.SIZE*SCALE,ONUMBER)'
  10671. The ONUMBER, or the REGISTER, or both, may be omitted. Either the
  10672. NUMBER or the APC may be omitted, but not both.
  10673. "Preindex"
  10674. '([NUMBER,APC,REGISTER.SIZE*SCALE],ONUMBER)'
  10675. The NUMBER, or the APC, or the REGISTER, or any two of them, may be
  10676. omitted. The ONUMBER may be omitted. The REGISTER and the APC may
  10677. appear in either order. If both APC and REGISTER are address
  10678. registers, and the SIZE and SCALE are omitted, then the first
  10679. register is taken as the base register, and the second as the index
  10680. register.
  10681. 
  10682. File: as.info, Node: M68K-Float, Next: M68K-Directives, Prev: M68K-Moto-Syntax, Up: M68K-Dependent
  10683. 9.22.4 Floating Point
  10684. ---------------------
  10685. Packed decimal (P) format floating literals are not supported. Feel
  10686. free to add the code!
  10687. The floating point formats generated by directives are these.
  10688. '.float'
  10689. 'Single' precision floating point constants.
  10690. '.double'
  10691. 'Double' precision floating point constants.
  10692. '.extend'
  10693. '.ldouble'
  10694. 'Extended' precision ('long double') floating point constants.
  10695. 
  10696. File: as.info, Node: M68K-Directives, Next: M68K-opcodes, Prev: M68K-Float, Up: M68K-Dependent
  10697. 9.22.5 680x0 Machine Directives
  10698. -------------------------------
  10699. In order to be compatible with the Sun assembler the 680x0 assembler
  10700. understands the following directives.
  10701. '.data1'
  10702. This directive is identical to a '.data 1' directive.
  10703. '.data2'
  10704. This directive is identical to a '.data 2' directive.
  10705. '.even'
  10706. This directive is a special case of the '.align' directive; it
  10707. aligns the output to an even byte boundary.
  10708. '.skip'
  10709. This directive is identical to a '.space' directive.
  10710. '.arch NAME'
  10711. Select the target architecture and extension features. Valid
  10712. values for NAME are the same as for the '-march' command-line
  10713. option. This directive cannot be specified after any instructions
  10714. have been assembled. If it is given multiple times, or in
  10715. conjunction with the '-march' option, all uses must be for the same
  10716. architecture and extension set.
  10717. '.cpu NAME'
  10718. Select the target cpu. Valid values for NAME are the same as for
  10719. the '-mcpu' command-line option. This directive cannot be
  10720. specified after any instructions have been assembled. If it is
  10721. given multiple times, or in conjunction with the '-mopt' option,
  10722. all uses must be for the same cpu.
  10723. 
  10724. File: as.info, Node: M68K-opcodes, Prev: M68K-Directives, Up: M68K-Dependent
  10725. 9.22.6 Opcodes
  10726. --------------
  10727. * Menu:
  10728. * M68K-Branch:: Branch Improvement
  10729. * M68K-Chars:: Special Characters
  10730. 
  10731. File: as.info, Node: M68K-Branch, Next: M68K-Chars, Up: M68K-opcodes
  10732. 9.22.6.1 Branch Improvement
  10733. ...........................
  10734. Certain pseudo opcodes are permitted for branch instructions. They
  10735. expand to the shortest branch instruction that reach the target.
  10736. Generally these mnemonics are made by substituting 'j' for 'b' at the
  10737. start of a Motorola mnemonic.
  10738. The following table summarizes the pseudo-operations. A '*' flags
  10739. cases that are more fully described after the table:
  10740. Displacement
  10741. +------------------------------------------------------------
  10742. | 68020 68000/10, not PC-relative OK
  10743. Pseudo-Op |BYTE WORD LONG ABSOLUTE LONG JUMP **
  10744. +------------------------------------------------------------
  10745. jbsr |bsrs bsrw bsrl jsr
  10746. jra |bras braw bral jmp
  10747. * jXX |bXXs bXXw bXXl bNXs;jmp
  10748. * dbXX | N/A dbXXw dbXX;bras;bral dbXX;bras;jmp
  10749. fjXX | N/A fbXXw fbXXl N/A
  10750. XX: condition
  10751. NX: negative of condition XX
  10752. '*'--see full description below
  10753. '**'--this expansion mode is disallowed by '--pcrel'
  10754. 'jbsr'
  10755. 'jra'
  10756. These are the simplest jump pseudo-operations; they always map to
  10757. one particular machine instruction, depending on the displacement
  10758. to the branch target. This instruction will be a byte or word
  10759. branch is that is sufficient. Otherwise, a long branch will be
  10760. emitted if available. If no long branches are available and the
  10761. '--pcrel' option is not given, an absolute long jump will be
  10762. emitted instead. If no long branches are available, the '--pcrel'
  10763. option is given, and a word branch cannot reach the target, an
  10764. error message is generated.
  10765. In addition to standard branch operands, 'as' allows these
  10766. pseudo-operations to have all operands that are allowed for jsr and
  10767. jmp, substituting these instructions if the operand given is not
  10768. valid for a branch instruction.
  10769. 'jXX'
  10770. Here, 'jXX' stands for an entire family of pseudo-operations, where
  10771. XX is a conditional branch or condition-code test. The full list
  10772. of pseudo-ops in this family is:
  10773. jhi jls jcc jcs jne jeq jvc
  10774. jvs jpl jmi jge jlt jgt jle
  10775. Usually, each of these pseudo-operations expands to a single branch
  10776. instruction. However, if a word branch is not sufficient, no long
  10777. branches are available, and the '--pcrel' option is not given, 'as'
  10778. issues a longer code fragment in terms of NX, the opposite
  10779. condition to XX. For example, under these conditions:
  10780. jXX foo
  10781. gives
  10782. bNXs oof
  10783. jmp foo
  10784. oof:
  10785. 'dbXX'
  10786. The full family of pseudo-operations covered here is
  10787. dbhi dbls dbcc dbcs dbne dbeq dbvc
  10788. dbvs dbpl dbmi dbge dblt dbgt dble
  10789. dbf dbra dbt
  10790. Motorola 'dbXX' instructions allow word displacements only. When a
  10791. word displacement is sufficient, each of these pseudo-operations
  10792. expands to the corresponding Motorola instruction. When a word
  10793. displacement is not sufficient and long branches are available,
  10794. when the source reads 'dbXX foo', 'as' emits
  10795. dbXX oo1
  10796. bras oo2
  10797. oo1:bral foo
  10798. oo2:
  10799. If, however, long branches are not available and the '--pcrel'
  10800. option is not given, 'as' emits
  10801. dbXX oo1
  10802. bras oo2
  10803. oo1:jmp foo
  10804. oo2:
  10805. 'fjXX'
  10806. This family includes
  10807. fjne fjeq fjge fjlt fjgt fjle fjf
  10808. fjt fjgl fjgle fjnge fjngl fjngle fjngt
  10809. fjnle fjnlt fjoge fjogl fjogt fjole fjolt
  10810. fjor fjseq fjsf fjsne fjst fjueq fjuge
  10811. fjugt fjule fjult fjun
  10812. Each of these pseudo-operations always expands to a single Motorola
  10813. coprocessor branch instruction, word or long. All Motorola
  10814. coprocessor branch instructions allow both word and long
  10815. displacements.
  10816. 
  10817. File: as.info, Node: M68K-Chars, Prev: M68K-Branch, Up: M68K-opcodes
  10818. 9.22.6.2 Special Characters
  10819. ...........................
  10820. Line comments are introduced by the '|' character appearing anywhere on
  10821. a line, unless the '--bitwise-or' command-line option has been
  10822. specified.
  10823. An asterisk ('*') as the first character on a line marks the start of
  10824. a line comment as well.
  10825. A hash character ('#') as the first character on a line also marks
  10826. the start of a line comment, but in this case it could also be a logical
  10827. line number directive (*note Comments::) or a preprocessor control
  10828. command (*note Preprocessing::). If the hash character appears
  10829. elsewhere on a line it is used to introduce an immediate value. (This
  10830. is for compatibility with Sun's assembler).
  10831. Multiple statements on the same line can appear if they are separated
  10832. by the ';' character.
  10833. 
  10834. File: as.info, Node: M68HC11-Dependent, Next: S12Z-Dependent, Prev: M68K-Dependent, Up: Machine Dependencies
  10835. 9.23 M68HC11 and M68HC12 Dependent Features
  10836. ===========================================
  10837. * Menu:
  10838. * M68HC11-Opts:: M68HC11 and M68HC12 Options
  10839. * M68HC11-Syntax:: Syntax
  10840. * M68HC11-Modifiers:: Symbolic Operand Modifiers
  10841. * M68HC11-Directives:: Assembler Directives
  10842. * M68HC11-Float:: Floating Point
  10843. * M68HC11-opcodes:: Opcodes
  10844. 
  10845. File: as.info, Node: M68HC11-Opts, Next: M68HC11-Syntax, Up: M68HC11-Dependent
  10846. 9.23.1 M68HC11 and M68HC12 Options
  10847. ----------------------------------
  10848. The Motorola 68HC11 and 68HC12 version of 'as' have a few machine
  10849. dependent options.
  10850. '-m68hc11'
  10851. This option switches the assembler into the M68HC11 mode. In this
  10852. mode, the assembler only accepts 68HC11 operands and mnemonics. It
  10853. produces code for the 68HC11.
  10854. '-m68hc12'
  10855. This option switches the assembler into the M68HC12 mode. In this
  10856. mode, the assembler also accepts 68HC12 operands and mnemonics. It
  10857. produces code for the 68HC12. A few 68HC11 instructions are
  10858. replaced by some 68HC12 instructions as recommended by Motorola
  10859. specifications.
  10860. '-m68hcs12'
  10861. This option switches the assembler into the M68HCS12 mode. This
  10862. mode is similar to '-m68hc12' but specifies to assemble for the
  10863. 68HCS12 series. The only difference is on the assembling of the
  10864. 'movb' and 'movw' instruction when a PC-relative operand is used.
  10865. '-mm9s12x'
  10866. This option switches the assembler into the M9S12X mode. This mode
  10867. is similar to '-m68hc12' but specifies to assemble for the S12X
  10868. series which is a superset of the HCS12.
  10869. '-mm9s12xg'
  10870. This option switches the assembler into the XGATE mode for the RISC
  10871. co-processor featured on some S12X-family chips.
  10872. '--xgate-ramoffset'
  10873. This option instructs the linker to offset RAM addresses from S12X
  10874. address space into XGATE address space.
  10875. '-mshort'
  10876. This option controls the ABI and indicates to use a 16-bit integer
  10877. ABI. It has no effect on the assembled instructions. This is the
  10878. default.
  10879. '-mlong'
  10880. This option controls the ABI and indicates to use a 32-bit integer
  10881. ABI.
  10882. '-mshort-double'
  10883. This option controls the ABI and indicates to use a 32-bit float
  10884. ABI. This is the default.
  10885. '-mlong-double'
  10886. This option controls the ABI and indicates to use a 64-bit float
  10887. ABI.
  10888. '--strict-direct-mode'
  10889. You can use the '--strict-direct-mode' option to disable the
  10890. automatic translation of direct page mode addressing into extended
  10891. mode when the instruction does not support direct mode. For
  10892. example, the 'clr' instruction does not support direct page mode
  10893. addressing. When it is used with the direct page mode, 'as' will
  10894. ignore it and generate an absolute addressing. This option
  10895. prevents 'as' from doing this, and the wrong usage of the direct
  10896. page mode will raise an error.
  10897. '--short-branches'
  10898. The '--short-branches' option turns off the translation of relative
  10899. branches into absolute branches when the branch offset is out of
  10900. range. By default 'as' transforms the relative branch ('bsr',
  10901. 'bgt', 'bge', 'beq', 'bne', 'ble', 'blt', 'bhi', 'bcc', 'bls',
  10902. 'bcs', 'bmi', 'bvs', 'bvs', 'bra') into an absolute branch when the
  10903. offset is out of the -128 .. 127 range. In that case, the 'bsr'
  10904. instruction is translated into a 'jsr', the 'bra' instruction is
  10905. translated into a 'jmp' and the conditional branches instructions
  10906. are inverted and followed by a 'jmp'. This option disables these
  10907. translations and 'as' will generate an error if a relative branch
  10908. is out of range. This option does not affect the optimization
  10909. associated to the 'jbra', 'jbsr' and 'jbXX' pseudo opcodes.
  10910. '--force-long-branches'
  10911. The '--force-long-branches' option forces the translation of
  10912. relative branches into absolute branches. This option does not
  10913. affect the optimization associated to the 'jbra', 'jbsr' and 'jbXX'
  10914. pseudo opcodes.
  10915. '--print-insn-syntax'
  10916. You can use the '--print-insn-syntax' option to obtain the syntax
  10917. description of the instruction when an error is detected.
  10918. '--print-opcodes'
  10919. The '--print-opcodes' option prints the list of all the
  10920. instructions with their syntax. The first item of each line
  10921. represents the instruction name and the rest of the line indicates
  10922. the possible operands for that instruction. The list is printed in
  10923. alphabetical order. Once the list is printed 'as' exits.
  10924. '--generate-example'
  10925. The '--generate-example' option is similar to '--print-opcodes' but
  10926. it generates an example for each instruction instead.
  10927. 
  10928. File: as.info, Node: M68HC11-Syntax, Next: M68HC11-Modifiers, Prev: M68HC11-Opts, Up: M68HC11-Dependent
  10929. 9.23.2 Syntax
  10930. -------------
  10931. In the M68HC11 syntax, the instruction name comes first and it may be
  10932. followed by one or several operands (up to three). Operands are
  10933. separated by comma (','). In the normal mode, 'as' will complain if too
  10934. many operands are specified for a given instruction. In the MRI mode
  10935. (turned on with '-M' option), it will treat them as comments. Example:
  10936. inx
  10937. lda #23
  10938. bset 2,x #4
  10939. brclr *bot #8 foo
  10940. The presence of a ';' character or a '!' character anywhere on a line
  10941. indicates the start of a comment that extends to the end of that line.
  10942. A '*' or a '#' character at the start of a line also introduces a
  10943. line comment, but these characters do not work elsewhere on the line.
  10944. If the first character of the line is a '#' then as well as starting a
  10945. comment, the line could also be logical line number directive (*note
  10946. Comments::) or a preprocessor control command (*note Preprocessing::).
  10947. The M68HC11 assembler does not currently support a line separator
  10948. character.
  10949. The following addressing modes are understood for 68HC11 and 68HC12:
  10950. "Immediate"
  10951. '#NUMBER'
  10952. "Address Register"
  10953. 'NUMBER,X', 'NUMBER,Y'
  10954. The NUMBER may be omitted in which case 0 is assumed.
  10955. "Direct Addressing mode"
  10956. '*SYMBOL', or '*DIGITS'
  10957. "Absolute"
  10958. 'SYMBOL', or 'DIGITS'
  10959. The M68HC12 has other more complex addressing modes. All of them are
  10960. supported and they are represented below:
  10961. "Constant Offset Indexed Addressing Mode"
  10962. 'NUMBER,REG'
  10963. The NUMBER may be omitted in which case 0 is assumed. The register
  10964. can be either 'X', 'Y', 'SP' or 'PC'. The assembler will use the
  10965. smaller post-byte definition according to the constant value (5-bit
  10966. constant offset, 9-bit constant offset or 16-bit constant offset).
  10967. If the constant is not known by the assembler it will use the
  10968. 16-bit constant offset post-byte and the value will be resolved at
  10969. link time.
  10970. "Offset Indexed Indirect"
  10971. '[NUMBER,REG]'
  10972. The register can be either 'X', 'Y', 'SP' or 'PC'.
  10973. "Auto Pre-Increment/Pre-Decrement/Post-Increment/Post-Decrement"
  10974. 'NUMBER,-REG' 'NUMBER,+REG' 'NUMBER,REG-' 'NUMBER,REG+'
  10975. The number must be in the range '-8'..'+8' and must not be 0. The
  10976. register can be either 'X', 'Y', 'SP' or 'PC'.
  10977. "Accumulator Offset"
  10978. 'ACC,REG'
  10979. The accumulator register can be either 'A', 'B' or 'D'. The
  10980. register can be either 'X', 'Y', 'SP' or 'PC'.
  10981. "Accumulator D offset indexed-indirect"
  10982. '[D,REG]'
  10983. The register can be either 'X', 'Y', 'SP' or 'PC'.
  10984. For example:
  10985. ldab 1024,sp
  10986. ldd [10,x]
  10987. orab 3,+x
  10988. stab -2,y-
  10989. ldx a,pc
  10990. sty [d,sp]
  10991. 
  10992. File: as.info, Node: M68HC11-Modifiers, Next: M68HC11-Directives, Prev: M68HC11-Syntax, Up: M68HC11-Dependent
  10993. 9.23.3 Symbolic Operand Modifiers
  10994. ---------------------------------
  10995. The assembler supports several modifiers when using symbol addresses in
  10996. 68HC11 and 68HC12 instruction operands. The general syntax is the
  10997. following:
  10998. %modifier(symbol)
  10999. '%addr'
  11000. This modifier indicates to the assembler and linker to use the
  11001. 16-bit physical address corresponding to the symbol. This is
  11002. intended to be used on memory window systems to map a symbol in the
  11003. memory bank window. If the symbol is in a memory expansion part,
  11004. the physical address corresponds to the symbol address within the
  11005. memory bank window. If the symbol is not in a memory expansion
  11006. part, this is the symbol address (using or not using the %addr
  11007. modifier has no effect in that case).
  11008. '%page'
  11009. This modifier indicates to use the memory page number corresponding
  11010. to the symbol. If the symbol is in a memory expansion part, its
  11011. page number is computed by the linker as a number used to map the
  11012. page containing the symbol in the memory bank window. If the
  11013. symbol is not in a memory expansion part, the page number is 0.
  11014. '%hi'
  11015. This modifier indicates to use the 8-bit high part of the physical
  11016. address of the symbol.
  11017. '%lo'
  11018. This modifier indicates to use the 8-bit low part of the physical
  11019. address of the symbol.
  11020. For example a 68HC12 call to a function 'foo_example' stored in
  11021. memory expansion part could be written as follows:
  11022. call %addr(foo_example),%page(foo_example)
  11023. and this is equivalent to
  11024. call foo_example
  11025. And for 68HC11 it could be written as follows:
  11026. ldab #%page(foo_example)
  11027. stab _page_switch
  11028. jsr %addr(foo_example)
  11029. 
  11030. File: as.info, Node: M68HC11-Directives, Next: M68HC11-Float, Prev: M68HC11-Modifiers, Up: M68HC11-Dependent
  11031. 9.23.4 Assembler Directives
  11032. ---------------------------
  11033. The 68HC11 and 68HC12 version of 'as' have the following specific
  11034. assembler directives:
  11035. '.relax'
  11036. The relax directive is used by the 'GNU Compiler' to emit a
  11037. specific relocation to mark a group of instructions for linker
  11038. relaxation. The sequence of instructions within the group must be
  11039. known to the linker so that relaxation can be performed.
  11040. '.mode [mshort|mlong|mshort-double|mlong-double]'
  11041. This directive specifies the ABI. It overrides the '-mshort',
  11042. '-mlong', '-mshort-double' and '-mlong-double' options.
  11043. '.far SYMBOL'
  11044. This directive marks the symbol as a 'far' symbol meaning that it
  11045. uses a 'call/rtc' calling convention as opposed to 'jsr/rts'.
  11046. During a final link, the linker will identify references to the
  11047. 'far' symbol and will verify the proper calling convention.
  11048. '.interrupt SYMBOL'
  11049. This directive marks the symbol as an interrupt entry point. This
  11050. information is then used by the debugger to correctly unwind the
  11051. frame across interrupts.
  11052. '.xrefb SYMBOL'
  11053. This directive is defined for compatibility with the 'Specification
  11054. for Motorola 8 and 16-Bit Assembly Language Input Standard' and is
  11055. ignored.
  11056. 
  11057. File: as.info, Node: M68HC11-Float, Next: M68HC11-opcodes, Prev: M68HC11-Directives, Up: M68HC11-Dependent
  11058. 9.23.5 Floating Point
  11059. ---------------------
  11060. Packed decimal (P) format floating literals are not supported. Feel
  11061. free to add the code!
  11062. The floating point formats generated by directives are these.
  11063. '.float'
  11064. 'Single' precision floating point constants.
  11065. '.double'
  11066. 'Double' precision floating point constants.
  11067. '.extend'
  11068. '.ldouble'
  11069. 'Extended' precision ('long double') floating point constants.
  11070. 
  11071. File: as.info, Node: M68HC11-opcodes, Prev: M68HC11-Float, Up: M68HC11-Dependent
  11072. 9.23.6 Opcodes
  11073. --------------
  11074. * Menu:
  11075. * M68HC11-Branch:: Branch Improvement
  11076. 
  11077. File: as.info, Node: M68HC11-Branch, Up: M68HC11-opcodes
  11078. 9.23.6.1 Branch Improvement
  11079. ...........................
  11080. Certain pseudo opcodes are permitted for branch instructions. They
  11081. expand to the shortest branch instruction that reach the target.
  11082. Generally these mnemonics are made by prepending 'j' to the start of
  11083. Motorola mnemonic. These pseudo opcodes are not affected by the
  11084. '--short-branches' or '--force-long-branches' options.
  11085. The following table summarizes the pseudo-operations.
  11086. Displacement Width
  11087. +-------------------------------------------------------------+
  11088. | Options |
  11089. | --short-branches --force-long-branches |
  11090. +--------------------------+----------------------------------+
  11091. Op |BYTE WORD | BYTE WORD |
  11092. +--------------------------+----------------------------------+
  11093. bsr | bsr <pc-rel> <error> | jsr <abs> |
  11094. bra | bra <pc-rel> <error> | jmp <abs> |
  11095. jbsr | bsr <pc-rel> jsr <abs> | bsr <pc-rel> jsr <abs> |
  11096. jbra | bra <pc-rel> jmp <abs> | bra <pc-rel> jmp <abs> |
  11097. bXX | bXX <pc-rel> <error> | bNX +3; jmp <abs> |
  11098. jbXX | bXX <pc-rel> bNX +3; | bXX <pc-rel> bNX +3; jmp <abs> |
  11099. | jmp <abs> | |
  11100. +--------------------------+----------------------------------+
  11101. XX: condition
  11102. NX: negative of condition XX
  11103. 'jbsr'
  11104. 'jbra'
  11105. These are the simplest jump pseudo-operations; they always map to
  11106. one particular machine instruction, depending on the displacement
  11107. to the branch target.
  11108. 'jbXX'
  11109. Here, 'jbXX' stands for an entire family of pseudo-operations,
  11110. where XX is a conditional branch or condition-code test. The full
  11111. list of pseudo-ops in this family is:
  11112. jbcc jbeq jbge jbgt jbhi jbvs jbpl jblo
  11113. jbcs jbne jblt jble jbls jbvc jbmi
  11114. For the cases of non-PC relative displacements and long
  11115. displacements, 'as' issues a longer code fragment in terms of NX,
  11116. the opposite condition to XX. For example, for the non-PC relative
  11117. case:
  11118. jbXX foo
  11119. gives
  11120. bNXs oof
  11121. jmp foo
  11122. oof:
  11123. 
  11124. File: as.info, Node: S12Z-Dependent, Next: Meta-Dependent, Prev: M68HC11-Dependent, Up: Machine Dependencies
  11125. 9.24 S12Z Dependent Features
  11126. ============================
  11127. The Freescale S12Z version of 'as' has a few machine dependent features.
  11128. * Menu:
  11129. * S12Z Options:: S12Z Options
  11130. * S12Z Syntax:: Syntax
  11131. 
  11132. File: as.info, Node: S12Z Options, Next: S12Z Syntax, Up: S12Z-Dependent
  11133. 9.24.1 S12Z Options
  11134. -------------------
  11135. The S12Z version of 'as' recognizes the following options:
  11136. '-mreg-prefix=PREFIX'
  11137. You can use the '-mreg-prefix=PFX' option to indicate that the
  11138. assembler should expect all register names to be prefixed with the
  11139. string PFX.
  11140. For an explanation of what this means and why it might be needed,
  11141. see *note S12Z Register Notation::.
  11142. '-mdollar-hex'
  11143. The '-mdollar-hex' option affects the way that literal hexadecimal
  11144. constants are represented. When this option is specified, the
  11145. assembler will consider the '$' character as the start of a
  11146. hexadecimal integer constant. Without this option, the standard
  11147. value of '0x' is expected.
  11148. If you use this option, then you cannot have symbol names starting
  11149. with '$'. '-mdollar-hex' is implied if the '--traditional-format'
  11150. (*note traditional-format::) is used.
  11151. 
  11152. File: as.info, Node: S12Z Syntax, Prev: S12Z Options, Up: S12Z-Dependent
  11153. 9.24.2 Syntax
  11154. -------------
  11155. * Menu:
  11156. * S12Z Syntax Overview:: General description
  11157. * S12Z Addressing Modes:: Operands and their semantics
  11158. * S12Z Register Notation:: How to refer to registers
  11159. 
  11160. File: as.info, Node: S12Z Syntax Overview, Next: S12Z Addressing Modes, Up: S12Z Syntax
  11161. 9.24.2.1 Overview
  11162. .................
  11163. In the S12Z syntax, the instruction name comes first and it may be
  11164. followed by one, or by several operands. In most cases the maximum
  11165. number of operands is three. Operands are separated by a comma (',').
  11166. A comma however does not act as a separator if it appears within
  11167. parentheses ('()') or within square brackets ('[]'). 'as' will complain
  11168. if too many, too few or inappropriate operands are specified for a given
  11169. instruction.
  11170. Some instructions accept and (in certain situations require) a suffix
  11171. indicating the size of the operand. The suffix is separated from the
  11172. instruction name by a period ('.') and may be one of 'b', 'w', 'p' or
  11173. 'l' indicating 'byte' (a single byte), 'word' (2 bytes), 'pointer' (3
  11174. bytes) or 'long' (4 bytes) respectively.
  11175. Example:
  11176. bset.b 0xA98, #5
  11177. mov.b #6, 0x2409
  11178. ld d0, #4
  11179. mov.l (d0, x), 0x2409
  11180. inc d0
  11181. cmp d0, #12
  11182. blt *-4
  11183. lea x, 0x2409
  11184. st y, (1, x)
  11185. The presence of a ';' character anywhere on a line indicates the
  11186. start of a comment that extends to the end of that line.
  11187. A '*' or a '#' character at the start of a line also introduces a
  11188. line comment, but these characters do not work elsewhere on the line.
  11189. If the first character of the line is a '#' then as well as starting a
  11190. comment, the line could also be logical line number directive (*note
  11191. Comments::) or a preprocessor control command (*note Preprocessing::).
  11192. The S12Z assembler does not currently support a line separator
  11193. character.
  11194. 
  11195. File: as.info, Node: S12Z Addressing Modes, Next: S12Z Register Notation, Prev: S12Z Syntax Overview, Up: S12Z Syntax
  11196. 9.24.2.2 Addressing Modes
  11197. .........................
  11198. The following addressing modes are understood for the S12Z.
  11199. "Immediate"
  11200. '#NUMBER'
  11201. "Immediate Bit Field"
  11202. '#WIDTH:OFFSET'
  11203. Bit field instructions in the immediate mode require the width and
  11204. offset to be specified. The WIDTH parameter specifies the number
  11205. of bits in the field. It should be a number in the range [1,32].
  11206. OFFSET determines the position within the field where the operation
  11207. should start. It should be a number in the range [0,31].
  11208. "Relative"
  11209. '*SYMBOL', or '*[+-]DIGITS'
  11210. Program counter relative addresses have a width of 15 bits. Thus,
  11211. they must be within the range [-32768, 32767].
  11212. "Register"
  11213. 'REG'
  11214. Some instructions accept a register as an operand. In general, REG
  11215. may be a data register ('D0', 'D1' ... 'D7'), the 'X' register or
  11216. the 'Y' register.
  11217. A few instructions accept as an argument the stack pointer register
  11218. ('S'), and/or the program counter ('P').
  11219. Some very special instructions accept arguments which refer to the
  11220. condition code register. For these arguments the syntax is 'CCR',
  11221. 'CCH' or 'CCL' which refer to the complete condition code register,
  11222. the condition code register high byte and the condition code
  11223. register low byte respectively.
  11224. "Absolute Direct"
  11225. 'SYMBOL', or 'DIGITS'
  11226. "Absolute Indirect"
  11227. '[SYMBOL', or 'DIGITS]'
  11228. "Constant Offset Indexed"
  11229. '(NUMBER,REG)'
  11230. REG may be either 'X', 'Y', 'S' or 'P' or one of the data registers
  11231. 'D0', 'D1' ... 'D7'. If any of the registers 'D2' ... 'D5' are
  11232. specified, then the register value is treated as a signed value.
  11233. Otherwise it is treated as unsigned. NUMBER may be any integer in
  11234. the range [-8388608,8388607].
  11235. "Offset Indexed Indirect"
  11236. '[NUMBER,REG]'
  11237. REG may be either 'X', 'Y', 'S' or 'P'. NUMBER may be any integer
  11238. in the range [-8388608,8388607].
  11239. "Auto Pre-Increment/Pre-Decrement/Post-Increment/Post-Decrement"
  11240. '-REG', '+REG', 'REG-' or 'REG+'
  11241. This addressing mode is typically used to access a value at an
  11242. address, and simultaneously to increment/decrement the register
  11243. pointing to that address. Thus REG may be any of the 24 bit
  11244. registers 'X', 'Y', or 'S'. Pre-increment and post-decrement are
  11245. not available for register 'S' (only post-increment and
  11246. pre-decrement are available).
  11247. "Register Offset Direct"
  11248. '(DATA-REG,REG)'
  11249. REG can be either 'X', 'Y', or 'S'. DATA-REG must be one of the
  11250. data registers 'D0', 'D1' ... 'D7'. If any of the registers 'D2'
  11251. ... 'D5' are specified, then the register value is treated as a
  11252. signed value. Otherwise it is treated as unsigned.
  11253. "Register Offset Indirect"
  11254. '[DATA-REG,REG]'
  11255. REG can be either 'X' or 'Y'. DATA-REG must be one of the data
  11256. registers 'D0', 'D1' ... 'D7'. If any of the registers 'D2' ...
  11257. 'D5' are specified, then the register value is treated as a signed
  11258. value. Otherwise it is treated as unsigned.
  11259. For example:
  11260. trap #197 ;; Immediate mode
  11261. bra *+49 ;; Relative mode
  11262. bra .L0 ;; ditto
  11263. jmp 0xFE0034 ;; Absolute direct mode
  11264. jmp [0xFD0012] ;; Absolute indirect mode
  11265. inc.b (4,x) ;; Constant offset indexed mode
  11266. jsr (45, d0) ;; ditto
  11267. dec.w [4,y] ;; Constant offset indexed indirect mode
  11268. clr.p (-s) ;; Pre-decrement mode
  11269. neg.l (d0, s) ;; Register offset direct mode
  11270. com.b [d1, x] ;; Register offset indirect mode
  11271. psh cch ;; Register mode
  11272. 
  11273. File: as.info, Node: S12Z Register Notation, Prev: S12Z Addressing Modes, Up: S12Z Syntax
  11274. 9.24.2.3 Register Notation
  11275. ..........................
  11276. Without a register prefix (*note S12Z Options::), S12Z assembler code is
  11277. expected in the traditional format like this:
  11278. lea s, (-2,s)
  11279. st d2, (0,s)
  11280. ld x, symbol
  11281. tfr d2, d6
  11282. cmp d6, #1532
  11283. However, if 'as' is started with (for example) '-mreg-prefix=%' then all
  11284. register names must be prefixed with '%' as follows:
  11285. lea %s, (-2,%s)
  11286. st %d2, (0,%s)
  11287. ld %x, symbol
  11288. tfr %d2, %d6
  11289. cmp %d6, #1532
  11290. The register prefix feature is intended to be used by compilers to
  11291. avoid ambiguity between symbols and register names. Consider the
  11292. following assembler instruction:
  11293. st d0, d1
  11294. The destination operand of this instruction could either refer to the
  11295. register 'D1', or it could refer to the symbol named "d1". If the
  11296. latter is intended then 'as' must be invoked with '-mreg-prefix=PFX' and
  11297. the code written as
  11298. st PFXd0, d1
  11299. where PFX is the chosen register prefix. For this reason, compiler
  11300. back-ends should choose a register prefix which cannot be confused with
  11301. a symbol name.
  11302. 
  11303. File: as.info, Node: Meta-Dependent, Next: MicroBlaze-Dependent, Prev: S12Z-Dependent, Up: Machine Dependencies
  11304. 9.25 Meta Dependent Features
  11305. ============================
  11306. * Menu:
  11307. * Meta Options:: Options
  11308. * Meta Syntax:: Meta Assembler Syntax
  11309. 
  11310. File: as.info, Node: Meta Options, Next: Meta Syntax, Up: Meta-Dependent
  11311. 9.25.1 Options
  11312. --------------
  11313. The Imagination Technologies Meta architecture is implemented in a
  11314. number of versions, with each new version adding new features such as
  11315. instructions and registers. For precise details of what instructions
  11316. each core supports, please see the chip's technical reference manual.
  11317. The following table lists all available Meta options.
  11318. '-mcpu=metac11'
  11319. Generate code for Meta 1.1.
  11320. '-mcpu=metac12'
  11321. Generate code for Meta 1.2.
  11322. '-mcpu=metac21'
  11323. Generate code for Meta 2.1.
  11324. '-mfpu=metac21'
  11325. Allow code to use FPU hardware of Meta 2.1.
  11326. 
  11327. File: as.info, Node: Meta Syntax, Prev: Meta Options, Up: Meta-Dependent
  11328. 9.25.2 Syntax
  11329. -------------
  11330. * Menu:
  11331. * Meta-Chars:: Special Characters
  11332. * Meta-Regs:: Register Names
  11333. 
  11334. File: as.info, Node: Meta-Chars, Next: Meta-Regs, Up: Meta Syntax
  11335. 9.25.2.1 Special Characters
  11336. ...........................
  11337. '!' is the line comment character.
  11338. You can use ';' instead of a newline to separate statements.
  11339. Since '$' has no special meaning, you may use it in symbol names.
  11340. 
  11341. File: as.info, Node: Meta-Regs, Prev: Meta-Chars, Up: Meta Syntax
  11342. 9.25.2.2 Register Names
  11343. .......................
  11344. Registers can be specified either using their mnemonic names, such as
  11345. 'D0Re0', or using the unit plus register number separated by a '.', such
  11346. as 'D0.0'.
  11347. 
  11348. File: as.info, Node: MicroBlaze-Dependent, Next: MIPS-Dependent, Prev: Meta-Dependent, Up: Machine Dependencies
  11349. 9.26 MicroBlaze Dependent Features
  11350. ==================================
  11351. The Xilinx MicroBlaze processor family includes several variants, all
  11352. using the same core instruction set. This chapter covers features of
  11353. the GNU assembler that are specific to the MicroBlaze architecture. For
  11354. details about the MicroBlaze instruction set, please see the 'MicroBlaze
  11355. Processor Reference Guide (UG081)' available at www.xilinx.com.
  11356. * Menu:
  11357. * MicroBlaze Directives:: Directives for MicroBlaze Processors.
  11358. * MicroBlaze Syntax:: Syntax for the MicroBlaze
  11359. 
  11360. File: as.info, Node: MicroBlaze Directives, Next: MicroBlaze Syntax, Up: MicroBlaze-Dependent
  11361. 9.26.1 Directives
  11362. -----------------
  11363. A number of assembler directives are available for MicroBlaze.
  11364. '.data8 EXPRESSION,...'
  11365. This directive is an alias for '.byte'. Each expression is
  11366. assembled into an eight-bit value.
  11367. '.data16 EXPRESSION,...'
  11368. This directive is an alias for '.hword'. Each expression is
  11369. assembled into an 16-bit value.
  11370. '.data32 EXPRESSION,...'
  11371. This directive is an alias for '.word'. Each expression is
  11372. assembled into an 32-bit value.
  11373. '.ent NAME[,LABEL]'
  11374. This directive is an alias for '.func' denoting the start of
  11375. function NAME at (optional) LABEL.
  11376. '.end NAME[,LABEL]'
  11377. This directive is an alias for '.endfunc' denoting the end of
  11378. function NAME.
  11379. '.gpword LABEL,...'
  11380. This directive is an alias for '.rva'. The resolved address of
  11381. LABEL is stored in the data section.
  11382. '.weakext LABEL'
  11383. Declare that LABEL is a weak external symbol.
  11384. '.rodata'
  11385. Switch to .rodata section. Equivalent to '.section .rodata'
  11386. '.sdata2'
  11387. Switch to .sdata2 section. Equivalent to '.section .sdata2'
  11388. '.sdata'
  11389. Switch to .sdata section. Equivalent to '.section .sdata'
  11390. '.bss'
  11391. Switch to .bss section. Equivalent to '.section .bss'
  11392. '.sbss'
  11393. Switch to .sbss section. Equivalent to '.section .sbss'
  11394. 
  11395. File: as.info, Node: MicroBlaze Syntax, Prev: MicroBlaze Directives, Up: MicroBlaze-Dependent
  11396. 9.26.2 Syntax for the MicroBlaze
  11397. --------------------------------
  11398. * Menu:
  11399. * MicroBlaze-Chars:: Special Characters
  11400. 
  11401. File: as.info, Node: MicroBlaze-Chars, Up: MicroBlaze Syntax
  11402. 9.26.2.1 Special Characters
  11403. ...........................
  11404. The presence of a '#' on a line indicates the start of a comment that
  11405. extends to the end of the current line.
  11406. If a '#' appears as the first character of a line, the whole line is
  11407. treated as a comment, but in this case the line can also be a logical
  11408. line number directive (*note Comments::) or a preprocessor control
  11409. command (*note Preprocessing::).
  11410. The ';' character can be used to separate statements on the same
  11411. line.
  11412. 
  11413. File: as.info, Node: MIPS-Dependent, Next: MMIX-Dependent, Prev: MicroBlaze-Dependent, Up: Machine Dependencies
  11414. 9.27 MIPS Dependent Features
  11415. ============================
  11416. GNU 'as' for MIPS architectures supports several different MIPS
  11417. processors, and MIPS ISA levels I through V, MIPS32, and MIPS64. For
  11418. information about the MIPS instruction set, see 'MIPS RISC
  11419. Architecture', by Kane and Heindrich (Prentice-Hall). For an overview
  11420. of MIPS assembly conventions, see "Appendix D: Assembly Language
  11421. Programming" in the same work.
  11422. * Menu:
  11423. * MIPS Options:: Assembler options
  11424. * MIPS Macros:: High-level assembly macros
  11425. * MIPS Symbol Sizes:: Directives to override the size of symbols
  11426. * MIPS Small Data:: Controlling the use of small data accesses
  11427. * MIPS ISA:: Directives to override the ISA level
  11428. * MIPS assembly options:: Directives to control code generation
  11429. * MIPS autoextend:: Directives for extending MIPS 16 bit instructions
  11430. * MIPS insn:: Directive to mark data as an instruction
  11431. * MIPS FP ABIs:: Marking which FP ABI is in use
  11432. * MIPS NaN Encodings:: Directives to record which NaN encoding is being used
  11433. * MIPS Option Stack:: Directives to save and restore options
  11434. * MIPS ASE Instruction Generation Overrides:: Directives to control
  11435. generation of MIPS ASE instructions
  11436. * MIPS Floating-Point:: Directives to override floating-point options
  11437. * MIPS Syntax:: MIPS specific syntactical considerations
  11438. 
  11439. File: as.info, Node: MIPS Options, Next: MIPS Macros, Up: MIPS-Dependent
  11440. 9.27.1 Assembler options
  11441. ------------------------
  11442. The MIPS configurations of GNU 'as' support these special options:
  11443. '-G NUM'
  11444. Set the "small data" limit to N bytes. The default limit is 8
  11445. bytes. *Note Controlling the use of small data accesses: MIPS
  11446. Small Data.
  11447. '-EB'
  11448. '-EL'
  11449. Any MIPS configuration of 'as' can select big-endian or
  11450. little-endian output at run time (unlike the other GNU development
  11451. tools, which must be configured for one or the other). Use '-EB'
  11452. to select big-endian output, and '-EL' for little-endian.
  11453. '-KPIC'
  11454. Generate SVR4-style PIC. This option tells the assembler to
  11455. generate SVR4-style position-independent macro expansions. It also
  11456. tells the assembler to mark the output file as PIC.
  11457. '-mvxworks-pic'
  11458. Generate VxWorks PIC. This option tells the assembler to generate
  11459. VxWorks-style position-independent macro expansions.
  11460. '-mips1'
  11461. '-mips2'
  11462. '-mips3'
  11463. '-mips4'
  11464. '-mips5'
  11465. '-mips32'
  11466. '-mips32r2'
  11467. '-mips32r3'
  11468. '-mips32r5'
  11469. '-mips32r6'
  11470. '-mips64'
  11471. '-mips64r2'
  11472. '-mips64r3'
  11473. '-mips64r5'
  11474. '-mips64r6'
  11475. Generate code for a particular MIPS Instruction Set Architecture
  11476. level. '-mips1' corresponds to the R2000 and R3000 processors,
  11477. '-mips2' to the R6000 processor, '-mips3' to the R4000 processor,
  11478. and '-mips4' to the R8000 and R10000 processors. '-mips5',
  11479. '-mips32', '-mips32r2', '-mips32r3', '-mips32r5', '-mips32r6',
  11480. '-mips64', '-mips64r2', '-mips64r3', '-mips64r5', and '-mips64r6'
  11481. correspond to generic MIPS V, MIPS32, MIPS32 Release 2, MIPS32
  11482. Release 3, MIPS32 Release 5, MIPS32 Release 6, MIPS64, and MIPS64
  11483. Release 2, MIPS64 Release 3, MIPS64 Release 5, and MIPS64 Release 6
  11484. ISA processors, respectively. You can also switch instruction sets
  11485. during the assembly; see *note Directives to override the ISA
  11486. level: MIPS ISA.
  11487. '-mgp32'
  11488. '-mfp32'
  11489. Some macros have different expansions for 32-bit and 64-bit
  11490. registers. The register sizes are normally inferred from the ISA
  11491. and ABI, but these flags force a certain group of registers to be
  11492. treated as 32 bits wide at all times. '-mgp32' controls the size
  11493. of general-purpose registers and '-mfp32' controls the size of
  11494. floating-point registers.
  11495. The '.set gp=32' and '.set fp=32' directives allow the size of
  11496. registers to be changed for parts of an object. The default value
  11497. is restored by '.set gp=default' and '.set fp=default'.
  11498. On some MIPS variants there is a 32-bit mode flag; when this flag
  11499. is set, 64-bit instructions generate a trap. Also, some 32-bit
  11500. OSes only save the 32-bit registers on a context switch, so it is
  11501. essential never to use the 64-bit registers.
  11502. '-mgp64'
  11503. '-mfp64'
  11504. Assume that 64-bit registers are available. This is provided in
  11505. the interests of symmetry with '-mgp32' and '-mfp32'.
  11506. The '.set gp=64' and '.set fp=64' directives allow the size of
  11507. registers to be changed for parts of an object. The default value
  11508. is restored by '.set gp=default' and '.set fp=default'.
  11509. '-mfpxx'
  11510. Make no assumptions about whether 32-bit or 64-bit floating-point
  11511. registers are available. This is provided to support having
  11512. modules compatible with either '-mfp32' or '-mfp64'. This option
  11513. can only be used with MIPS II and above.
  11514. The '.set fp=xx' directive allows a part of an object to be marked
  11515. as not making assumptions about 32-bit or 64-bit FP registers. The
  11516. default value is restored by '.set fp=default'.
  11517. '-modd-spreg'
  11518. '-mno-odd-spreg'
  11519. Enable use of floating-point operations on odd-numbered
  11520. single-precision registers when supported by the ISA. '-mfpxx'
  11521. implies '-mno-odd-spreg', otherwise the default is '-modd-spreg'
  11522. '-mips16'
  11523. '-no-mips16'
  11524. Generate code for the MIPS 16 processor. This is equivalent to
  11525. putting '.module mips16' at the start of the assembly file.
  11526. '-no-mips16' turns off this option.
  11527. '-mmips16e2'
  11528. '-mno-mips16e2'
  11529. Enable the use of MIPS16e2 instructions in MIPS16 mode. This is
  11530. equivalent to putting '.module mips16e2' at the start of the
  11531. assembly file. '-mno-mips16e2' turns off this option.
  11532. '-mmicromips'
  11533. '-mno-micromips'
  11534. Generate code for the microMIPS processor. This is equivalent to
  11535. putting '.module micromips' at the start of the assembly file.
  11536. '-mno-micromips' turns off this option. This is equivalent to
  11537. putting '.module nomicromips' at the start of the assembly file.
  11538. '-msmartmips'
  11539. '-mno-smartmips'
  11540. Enables the SmartMIPS extensions to the MIPS32 instruction set,
  11541. which provides a number of new instructions which target smartcard
  11542. and cryptographic applications. This is equivalent to putting
  11543. '.module smartmips' at the start of the assembly file.
  11544. '-mno-smartmips' turns off this option.
  11545. '-mips3d'
  11546. '-no-mips3d'
  11547. Generate code for the MIPS-3D Application Specific Extension. This
  11548. tells the assembler to accept MIPS-3D instructions. '-no-mips3d'
  11549. turns off this option.
  11550. '-mdmx'
  11551. '-no-mdmx'
  11552. Generate code for the MDMX Application Specific Extension. This
  11553. tells the assembler to accept MDMX instructions. '-no-mdmx' turns
  11554. off this option.
  11555. '-mdsp'
  11556. '-mno-dsp'
  11557. Generate code for the DSP Release 1 Application Specific Extension.
  11558. This tells the assembler to accept DSP Release 1 instructions.
  11559. '-mno-dsp' turns off this option.
  11560. '-mdspr2'
  11561. '-mno-dspr2'
  11562. Generate code for the DSP Release 2 Application Specific Extension.
  11563. This option implies '-mdsp'. This tells the assembler to accept
  11564. DSP Release 2 instructions. '-mno-dspr2' turns off this option.
  11565. '-mdspr3'
  11566. '-mno-dspr3'
  11567. Generate code for the DSP Release 3 Application Specific Extension.
  11568. This option implies '-mdsp' and '-mdspr2'. This tells the
  11569. assembler to accept DSP Release 3 instructions. '-mno-dspr3' turns
  11570. off this option.
  11571. '-mmt'
  11572. '-mno-mt'
  11573. Generate code for the MT Application Specific Extension. This
  11574. tells the assembler to accept MT instructions. '-mno-mt' turns off
  11575. this option.
  11576. '-mmcu'
  11577. '-mno-mcu'
  11578. Generate code for the MCU Application Specific Extension. This
  11579. tells the assembler to accept MCU instructions. '-mno-mcu' turns
  11580. off this option.
  11581. '-mmsa'
  11582. '-mno-msa'
  11583. Generate code for the MIPS SIMD Architecture Extension. This tells
  11584. the assembler to accept MSA instructions. '-mno-msa' turns off
  11585. this option.
  11586. '-mxpa'
  11587. '-mno-xpa'
  11588. Generate code for the MIPS eXtended Physical Address (XPA)
  11589. Extension. This tells the assembler to accept XPA instructions.
  11590. '-mno-xpa' turns off this option.
  11591. '-mvirt'
  11592. '-mno-virt'
  11593. Generate code for the Virtualization Application Specific
  11594. Extension. This tells the assembler to accept Virtualization
  11595. instructions. '-mno-virt' turns off this option.
  11596. '-mcrc'
  11597. '-mno-crc'
  11598. Generate code for the cyclic redundancy check (CRC) Application
  11599. Specific Extension. This tells the assembler to accept CRC
  11600. instructions. '-mno-crc' turns off this option.
  11601. '-mginv'
  11602. '-mno-ginv'
  11603. Generate code for the Global INValidate (GINV) Application Specific
  11604. Extension. This tells the assembler to accept GINV instructions.
  11605. '-mno-ginv' turns off this option.
  11606. '-mloongson-mmi'
  11607. '-mno-loongson-mmi'
  11608. Generate code for the Loongson MultiMedia extensions Instructions
  11609. (MMI) Application Specific Extension. This tells the assembler to
  11610. accept MMI instructions. '-mno-loongson-mmi' turns off this
  11611. option.
  11612. '-mloongson-cam'
  11613. '-mno-loongson-cam'
  11614. Generate code for the Loongson Content Address Memory (CAM)
  11615. Application Specific Extension. This tells the assembler to accept
  11616. CAM instructions. '-mno-loongson-cam' turns off this option.
  11617. '-mloongson-ext'
  11618. '-mno-loongson-ext'
  11619. Generate code for the Loongson EXTensions (EXT) instructions
  11620. Application Specific Extension. This tells the assembler to accept
  11621. EXT instructions. '-mno-loongson-ext' turns off this option.
  11622. '-mloongson-ext2'
  11623. '-mno-loongson-ext2'
  11624. Generate code for the Loongson EXTensions R2 (EXT2) instructions
  11625. Application Specific Extension. This tells the assembler to accept
  11626. EXT2 instructions. '-mno-loongson-ext2' turns off this option.
  11627. '-minsn32'
  11628. '-mno-insn32'
  11629. Only use 32-bit instruction encodings when generating code for the
  11630. microMIPS processor. This option inhibits the use of any 16-bit
  11631. instructions. This is equivalent to putting '.set insn32' at the
  11632. start of the assembly file. '-mno-insn32' turns off this option.
  11633. This is equivalent to putting '.set noinsn32' at the start of the
  11634. assembly file. By default '-mno-insn32' is selected, allowing all
  11635. instructions to be used.
  11636. '-mfix7000'
  11637. '-mno-fix7000'
  11638. Cause nops to be inserted if the read of the destination register
  11639. of an mfhi or mflo instruction occurs in the following two
  11640. instructions.
  11641. '-mfix-rm7000'
  11642. '-mno-fix-rm7000'
  11643. Cause nops to be inserted if a dmult or dmultu instruction is
  11644. followed by a load instruction.
  11645. '-mfix-loongson2f-jump'
  11646. '-mno-fix-loongson2f-jump'
  11647. Eliminate instruction fetch from outside 256M region to work around
  11648. the Loongson2F 'jump' instructions. Without it, under extreme
  11649. cases, the kernel may crash. The issue has been solved in latest
  11650. processor batches, but this fix has no side effect to them.
  11651. '-mfix-loongson2f-nop'
  11652. '-mno-fix-loongson2f-nop'
  11653. Replace nops by 'or at,at,zero' to work around the Loongson2F 'nop'
  11654. errata. Without it, under extreme cases, the CPU might deadlock.
  11655. The issue has been solved in later Loongson2F batches, but this fix
  11656. has no side effect to them.
  11657. '-mfix-loongson3-llsc'
  11658. '-mno-fix-loongson3-llsc'
  11659. Insert 'sync' before 'll' and 'lld' to work around Loongson3 LLSC
  11660. errata. Without it, under extrame cases, the CPU might deadlock.
  11661. The default can be controlled by the
  11662. '--enable-mips-fix-loongson3-llsc=[yes|no]' configure option.
  11663. '-mfix-vr4120'
  11664. '-mno-fix-vr4120'
  11665. Insert nops to work around certain VR4120 errata. This option is
  11666. intended to be used on GCC-generated code: it is not designed to
  11667. catch all problems in hand-written assembler code.
  11668. '-mfix-vr4130'
  11669. '-mno-fix-vr4130'
  11670. Insert nops to work around the VR4130 'mflo'/'mfhi' errata.
  11671. '-mfix-24k'
  11672. '-mno-fix-24k'
  11673. Insert nops to work around the 24K 'eret'/'deret' errata.
  11674. '-mfix-cn63xxp1'
  11675. '-mno-fix-cn63xxp1'
  11676. Replace 'pref' hints 0 - 4 and 6 - 24 with hint 28 to work around
  11677. certain CN63XXP1 errata.
  11678. '-mfix-r5900'
  11679. '-mno-fix-r5900'
  11680. Do not attempt to schedule the preceding instruction into the delay
  11681. slot of a branch instruction placed at the end of a short loop of
  11682. six instructions or fewer and always schedule a 'nop' instruction
  11683. there instead. The short loop bug under certain conditions causes
  11684. loops to execute only once or twice, due to a hardware bug in the
  11685. R5900 chip.
  11686. '-m4010'
  11687. '-no-m4010'
  11688. Generate code for the LSI R4010 chip. This tells the assembler to
  11689. accept the R4010-specific instructions ('addciu', 'ffc', etc.), and
  11690. to not schedule 'nop' instructions around accesses to the 'HI' and
  11691. 'LO' registers. '-no-m4010' turns off this option.
  11692. '-m4650'
  11693. '-no-m4650'
  11694. Generate code for the MIPS R4650 chip. This tells the assembler to
  11695. accept the 'mad' and 'madu' instruction, and to not schedule 'nop'
  11696. instructions around accesses to the 'HI' and 'LO' registers.
  11697. '-no-m4650' turns off this option.
  11698. '-m3900'
  11699. '-no-m3900'
  11700. '-m4100'
  11701. '-no-m4100'
  11702. For each option '-mNNNN', generate code for the MIPS RNNNN chip.
  11703. This tells the assembler to accept instructions specific to that
  11704. chip, and to schedule for that chip's hazards.
  11705. '-march=CPU'
  11706. Generate code for a particular MIPS CPU. It is exactly equivalent
  11707. to '-mCPU', except that there are more value of CPU understood.
  11708. Valid CPU value are:
  11709. 2000, 3000, 3900, 4000, 4010, 4100, 4111, vr4120, vr4130,
  11710. vr4181, 4300, 4400, 4600, 4650, 5000, rm5200, rm5230, rm5231,
  11711. rm5261, rm5721, vr5400, vr5500, 6000, rm7000, 8000, rm9000,
  11712. 10000, 12000, 14000, 16000, 4kc, 4km, 4kp, 4ksc, 4kec, 4kem,
  11713. 4kep, 4ksd, m4k, m4kp, m14k, m14kc, m14ke, m14kec, 24kc,
  11714. 24kf2_1, 24kf, 24kf1_1, 24kec, 24kef2_1, 24kef, 24kef1_1,
  11715. 34kc, 34kf2_1, 34kf, 34kf1_1, 34kn, 74kc, 74kf2_1, 74kf,
  11716. 74kf1_1, 74kf3_2, 1004kc, 1004kf2_1, 1004kf, 1004kf1_1,
  11717. interaptiv, interaptiv-mr2, m5100, m5101, p5600, 5kc, 5kf,
  11718. 20kc, 25kf, sb1, sb1a, i6400, i6500, p6600, loongson2e,
  11719. loongson2f, gs464, gs464e, gs264e, octeon, octeon+, octeon2,
  11720. octeon3, xlr, xlp
  11721. For compatibility reasons, 'Nx' and 'Bfx' are accepted as synonyms
  11722. for 'Nf1_1'. These values are deprecated.
  11723. '-mtune=CPU'
  11724. Schedule and tune for a particular MIPS CPU. Valid CPU values are
  11725. identical to '-march=CPU'.
  11726. '-mabi=ABI'
  11727. Record which ABI the source code uses. The recognized arguments
  11728. are: '32', 'n32', 'o64', '64' and 'eabi'.
  11729. '-msym32'
  11730. '-mno-sym32'
  11731. Equivalent to adding '.set sym32' or '.set nosym32' to the
  11732. beginning of the assembler input. *Note MIPS Symbol Sizes::.
  11733. '-nocpp'
  11734. This option is ignored. It is accepted for command-line
  11735. compatibility with other assemblers, which use it to turn off C
  11736. style preprocessing. With GNU 'as', there is no need for '-nocpp',
  11737. because the GNU assembler itself never runs the C preprocessor.
  11738. '-msoft-float'
  11739. '-mhard-float'
  11740. Disable or enable floating-point instructions. Note that by
  11741. default floating-point instructions are always allowed even with
  11742. CPU targets that don't have support for these instructions.
  11743. '-msingle-float'
  11744. '-mdouble-float'
  11745. Disable or enable double-precision floating-point operations. Note
  11746. that by default double-precision floating-point operations are
  11747. always allowed even with CPU targets that don't have support for
  11748. these operations.
  11749. '--construct-floats'
  11750. '--no-construct-floats'
  11751. The '--no-construct-floats' option disables the construction of
  11752. double width floating point constants by loading the two halves of
  11753. the value into the two single width floating point registers that
  11754. make up the double width register. This feature is useful if the
  11755. processor support the FR bit in its status register, and this bit
  11756. is known (by the programmer) to be set. This bit prevents the
  11757. aliasing of the double width register by the single width
  11758. registers.
  11759. By default '--construct-floats' is selected, allowing construction
  11760. of these floating point constants.
  11761. '--relax-branch'
  11762. '--no-relax-branch'
  11763. The '--relax-branch' option enables the relaxation of out-of-range
  11764. branches. Any branches whose target cannot be reached directly are
  11765. converted to a small instruction sequence including an
  11766. inverse-condition branch to the physically next instruction, and a
  11767. jump to the original target is inserted between the two
  11768. instructions. In PIC code the jump will involve further
  11769. instructions for address calculation.
  11770. The 'BC1ANY2F', 'BC1ANY2T', 'BC1ANY4F', 'BC1ANY4T', 'BPOSGE32' and
  11771. 'BPOSGE64' instructions are excluded from relaxation, because they
  11772. have no complementing counterparts. They could be relaxed with the
  11773. use of a longer sequence involving another branch, however this has
  11774. not been implemented and if their target turns out of reach, they
  11775. produce an error even if branch relaxation is enabled.
  11776. Also no MIPS16 branches are ever relaxed.
  11777. By default '--no-relax-branch' is selected, causing any
  11778. out-of-range branches to produce an error.
  11779. '-mignore-branch-isa'
  11780. '-mno-ignore-branch-isa'
  11781. Ignore branch checks for invalid transitions between ISA modes.
  11782. The semantics of branches does not provide for an ISA mode switch,
  11783. so in most cases the ISA mode a branch has been encoded for has to
  11784. be the same as the ISA mode of the branch's target label. If the
  11785. ISA modes do not match, then such a branch, if taken, will cause
  11786. the ISA mode to remain unchanged and instructions that follow will
  11787. be executed in the wrong ISA mode causing the program to misbehave
  11788. or crash.
  11789. In the case of the 'BAL' instruction it may be possible to relax it
  11790. to an equivalent 'JALX' instruction so that the ISA mode is
  11791. switched at the run time as required. For other branches no
  11792. relaxation is possible and therefore GAS has checks implemented
  11793. that verify in branch assembly that the two ISA modes match, and
  11794. report an error otherwise so that the problem with code can be
  11795. diagnosed at the assembly time rather than at the run time.
  11796. However some assembly code, including generated code produced by
  11797. some versions of GCC, may incorrectly include branches to data
  11798. labels, which appear to require a mode switch but are either dead
  11799. or immediately followed by valid instructions encoded for the same
  11800. ISA the branch has been encoded for. While not strictly correct at
  11801. the source level such code will execute as intended, so to help
  11802. with these cases '-mignore-branch-isa' is supported which disables
  11803. ISA mode checks for branches.
  11804. By default '-mno-ignore-branch-isa' is selected, causing any
  11805. invalid branch requiring a transition between ISA modes to produce
  11806. an error.
  11807. '-mnan=ENCODING'
  11808. This option indicates whether the source code uses the IEEE 2008
  11809. NaN encoding ('-mnan=2008') or the original MIPS encoding
  11810. ('-mnan=legacy'). It is equivalent to adding a '.nan' directive to
  11811. the beginning of the source file. *Note MIPS NaN Encodings::.
  11812. '-mnan=legacy' is the default if no '-mnan' option or '.nan'
  11813. directive is used.
  11814. '--trap'
  11815. '--no-break'
  11816. 'as' automatically macro expands certain division and
  11817. multiplication instructions to check for overflow and division by
  11818. zero. This option causes 'as' to generate code to take a trap
  11819. exception rather than a break exception when an error is detected.
  11820. The trap instructions are only supported at Instruction Set
  11821. Architecture level 2 and higher.
  11822. '--break'
  11823. '--no-trap'
  11824. Generate code to take a break exception rather than a trap
  11825. exception when an error is detected. This is the default.
  11826. '-mpdr'
  11827. '-mno-pdr'
  11828. Control generation of '.pdr' sections. Off by default on IRIX, on
  11829. elsewhere.
  11830. '-mshared'
  11831. '-mno-shared'
  11832. When generating code using the Unix calling conventions (selected
  11833. by '-KPIC' or '-mcall_shared'), gas will normally generate code
  11834. which can go into a shared library. The '-mno-shared' option tells
  11835. gas to generate code which uses the calling convention, but can not
  11836. go into a shared library. The resulting code is slightly more
  11837. efficient. This option only affects the handling of the '.cpload'
  11838. and '.cpsetup' pseudo-ops.
  11839. 
  11840. File: as.info, Node: MIPS Macros, Next: MIPS Symbol Sizes, Prev: MIPS Options, Up: MIPS-Dependent
  11841. 9.27.2 High-level assembly macros
  11842. ---------------------------------
  11843. MIPS assemblers have traditionally provided a wider range of
  11844. instructions than the MIPS architecture itself. These extra
  11845. instructions are usually referred to as "macro" instructions (1).
  11846. Some MIPS macro instructions extend an underlying architectural
  11847. instruction while others are entirely new. An example of the former
  11848. type is 'and', which allows the third operand to be either a register or
  11849. an arbitrary immediate value. Examples of the latter type include
  11850. 'bgt', which branches to the third operand when the first operand is
  11851. greater than the second operand, and 'ulh', which implements an
  11852. unaligned 2-byte load.
  11853. One of the most common extensions provided by macros is to expand
  11854. memory offsets to the full address range (32 or 64 bits) and to allow
  11855. symbolic offsets such as 'my_data + 4' to be used in place of integer
  11856. constants. For example, the architectural instruction 'lbu' allows only
  11857. a signed 16-bit offset, whereas the macro 'lbu' allows code such as 'lbu
  11858. $4,array+32769($5)'. The implementation of these symbolic offsets
  11859. depends on several factors, such as whether the assembler is generating
  11860. SVR4-style PIC (selected by '-KPIC', *note Assembler options: MIPS
  11861. Options.), the size of symbols (*note Directives to override the size of
  11862. symbols: MIPS Symbol Sizes.), and the small data limit (*note
  11863. Controlling the use of small data accesses: MIPS Small Data.).
  11864. Sometimes it is undesirable to have one assembly instruction expand
  11865. to several machine instructions. The directive '.set nomacro' tells the
  11866. assembler to warn when this happens. '.set macro' restores the default
  11867. behavior.
  11868. Some macro instructions need a temporary register to store
  11869. intermediate results. This register is usually '$1', also known as
  11870. '$at', but it can be changed to any core register REG using '.set
  11871. at=REG'. Note that '$at' always refers to '$1' regardless of which
  11872. register is being used as the temporary register.
  11873. Implicit uses of the temporary register in macros could interfere
  11874. with explicit uses in the assembly code. The assembler therefore warns
  11875. whenever it sees an explicit use of the temporary register. The
  11876. directive '.set noat' silences this warning while '.set at' restores the
  11877. default behavior. It is safe to use '.set noat' while '.set nomacro' is
  11878. in effect since single-instruction macros never need a temporary
  11879. register.
  11880. Note that while the GNU assembler provides these macros for
  11881. compatibility, it does not make any attempt to optimize them with the
  11882. surrounding code.
  11883. ---------- Footnotes ----------
  11884. (1) The term "macro" is somewhat overloaded here, since these macros
  11885. have no relation to those defined by '.macro', *note '.macro': Macro.
  11886. 
  11887. File: as.info, Node: MIPS Symbol Sizes, Next: MIPS Small Data, Prev: MIPS Macros, Up: MIPS-Dependent
  11888. 9.27.3 Directives to override the size of symbols
  11889. -------------------------------------------------
  11890. The n64 ABI allows symbols to have any 64-bit value. Although this
  11891. provides a great deal of flexibility, it means that some macros have
  11892. much longer expansions than their 32-bit counterparts. For example, the
  11893. non-PIC expansion of 'dla $4,sym' is usually:
  11894. lui $4,%highest(sym)
  11895. lui $1,%hi(sym)
  11896. daddiu $4,$4,%higher(sym)
  11897. daddiu $1,$1,%lo(sym)
  11898. dsll32 $4,$4,0
  11899. daddu $4,$4,$1
  11900. whereas the 32-bit expansion is simply:
  11901. lui $4,%hi(sym)
  11902. daddiu $4,$4,%lo(sym)
  11903. n64 code is sometimes constructed in such a way that all symbolic
  11904. constants are known to have 32-bit values, and in such cases, it's
  11905. preferable to use the 32-bit expansion instead of the 64-bit expansion.
  11906. You can use the '.set sym32' directive to tell the assembler that,
  11907. from this point on, all expressions of the form 'SYMBOL' or 'SYMBOL +
  11908. OFFSET' have 32-bit values. For example:
  11909. .set sym32
  11910. dla $4,sym
  11911. lw $4,sym+16
  11912. sw $4,sym+0x8000($4)
  11913. will cause the assembler to treat 'sym', 'sym+16' and 'sym+0x8000' as
  11914. 32-bit values. The handling of non-symbolic addresses is not affected.
  11915. The directive '.set nosym32' ends a '.set sym32' block and reverts to
  11916. the normal behavior. It is also possible to change the symbol size
  11917. using the command-line options '-msym32' and '-mno-sym32'.
  11918. These options and directives are always accepted, but at present,
  11919. they have no effect for anything other than n64.
  11920. 
  11921. File: as.info, Node: MIPS Small Data, Next: MIPS ISA, Prev: MIPS Symbol Sizes, Up: MIPS-Dependent
  11922. 9.27.4 Controlling the use of small data accesses
  11923. -------------------------------------------------
  11924. It often takes several instructions to load the address of a symbol.
  11925. For example, when 'addr' is a 32-bit symbol, the non-PIC expansion of
  11926. 'dla $4,addr' is usually:
  11927. lui $4,%hi(addr)
  11928. daddiu $4,$4,%lo(addr)
  11929. The sequence is much longer when 'addr' is a 64-bit symbol. *Note
  11930. Directives to override the size of symbols: MIPS Symbol Sizes.
  11931. In order to cut down on this overhead, most embedded MIPS systems set
  11932. aside a 64-kilobyte "small data" area and guarantee that all data of
  11933. size N and smaller will be placed in that area. The limit N is passed
  11934. to both the assembler and the linker using the command-line option '-G
  11935. N', *note Assembler options: MIPS Options. Note that the same value of
  11936. N must be used when linking and when assembling all input files to the
  11937. link; any inconsistency could cause a relocation overflow error.
  11938. The size of an object in the '.bss' section is set by the '.comm' or
  11939. '.lcomm' directive that defines it. The size of an external object may
  11940. be set with the '.extern' directive. For example, '.extern sym,4'
  11941. declares that the object at 'sym' is 4 bytes in length, while leaving
  11942. 'sym' otherwise undefined.
  11943. When no '-G' option is given, the default limit is 8 bytes. The
  11944. option '-G 0' prevents any data from being automatically classified as
  11945. small.
  11946. It is also possible to mark specific objects as small by putting them
  11947. in the special sections '.sdata' and '.sbss', which are "small"
  11948. counterparts of '.data' and '.bss' respectively. The toolchain will
  11949. treat such data as small regardless of the '-G' setting.
  11950. On startup, systems that support a small data area are expected to
  11951. initialize register '$28', also known as '$gp', in such a way that small
  11952. data can be accessed using a 16-bit offset from that register. For
  11953. example, when 'addr' is small data, the 'dla $4,addr' instruction above
  11954. is equivalent to:
  11955. daddiu $4,$28,%gp_rel(addr)
  11956. Small data is not supported for SVR4-style PIC.
  11957. 
  11958. File: as.info, Node: MIPS ISA, Next: MIPS assembly options, Prev: MIPS Small Data, Up: MIPS-Dependent
  11959. 9.27.5 Directives to override the ISA level
  11960. -------------------------------------------
  11961. GNU 'as' supports an additional directive to change the MIPS Instruction
  11962. Set Architecture level on the fly: '.set mipsN'. N should be a number
  11963. from 0 to 5, or 32, 32r2, 32r3, 32r5, 32r6, 64, 64r2, 64r3, 64r5 or
  11964. 64r6. The values other than 0 make the assembler accept instructions
  11965. for the corresponding ISA level, from that point on in the assembly.
  11966. '.set mipsN' affects not only which instructions are permitted, but also
  11967. how certain macros are expanded. '.set mips0' restores the ISA level to
  11968. its original level: either the level you selected with command-line
  11969. options, or the default for your configuration. You can use this
  11970. feature to permit specific MIPS III instructions while assembling in 32
  11971. bit mode. Use this directive with care!
  11972. The '.set arch=CPU' directive provides even finer control. It
  11973. changes the effective CPU target and allows the assembler to use
  11974. instructions specific to a particular CPU. All CPUs supported by the
  11975. '-march' command-line option are also selectable by this directive. The
  11976. original value is restored by '.set arch=default'.
  11977. The directive '.set mips16' puts the assembler into MIPS 16 mode, in
  11978. which it will assemble instructions for the MIPS 16 processor. Use
  11979. '.set nomips16' to return to normal 32 bit mode.
  11980. Traditional MIPS assemblers do not support this directive.
  11981. The directive '.set micromips' puts the assembler into microMIPS
  11982. mode, in which it will assemble instructions for the microMIPS
  11983. processor. Use '.set nomicromips' to return to normal 32 bit mode.
  11984. Traditional MIPS assemblers do not support this directive.
  11985. 
  11986. File: as.info, Node: MIPS assembly options, Next: MIPS autoextend, Prev: MIPS ISA, Up: MIPS-Dependent
  11987. 9.27.6 Directives to control code generation
  11988. --------------------------------------------
  11989. The '.module' directive allows command-line options to be set directly
  11990. from assembly. The format of the directive matches the '.set' directive
  11991. but only those options which are relevant to a whole module are
  11992. supported. The effect of a '.module' directive is the same as the
  11993. corresponding command-line option. Where '.set' directives support
  11994. returning to a default then the '.module' directives do not as they
  11995. define the defaults.
  11996. These module-level directives must appear first in assembly.
  11997. Traditional MIPS assemblers do not support this directive.
  11998. The directive '.set insn32' makes the assembler only use 32-bit
  11999. instruction encodings when generating code for the microMIPS processor.
  12000. This directive inhibits the use of any 16-bit instructions from that
  12001. point on in the assembly. The '.set noinsn32' directive allows 16-bit
  12002. instructions to be accepted.
  12003. Traditional MIPS assemblers do not support this directive.
  12004. 
  12005. File: as.info, Node: MIPS autoextend, Next: MIPS insn, Prev: MIPS assembly options, Up: MIPS-Dependent
  12006. 9.27.7 Directives for extending MIPS 16 bit instructions
  12007. --------------------------------------------------------
  12008. By default, MIPS 16 instructions are automatically extended to 32 bits
  12009. when necessary. The directive '.set noautoextend' will turn this off.
  12010. When '.set noautoextend' is in effect, any 32 bit instruction must be
  12011. explicitly extended with the '.e' modifier (e.g., 'li.e $4,1000'). The
  12012. directive '.set autoextend' may be used to once again automatically
  12013. extend instructions when necessary.
  12014. This directive is only meaningful when in MIPS 16 mode. Traditional
  12015. MIPS assemblers do not support this directive.
  12016. 
  12017. File: as.info, Node: MIPS insn, Next: MIPS FP ABIs, Prev: MIPS autoextend, Up: MIPS-Dependent
  12018. 9.27.8 Directive to mark data as an instruction
  12019. -----------------------------------------------
  12020. The '.insn' directive tells 'as' that the following data is actually
  12021. instructions. This makes a difference in MIPS 16 and microMIPS modes:
  12022. when loading the address of a label which precedes instructions, 'as'
  12023. automatically adds 1 to the value, so that jumping to the loaded address
  12024. will do the right thing.
  12025. The '.global' and '.globl' directives supported by 'as' will by
  12026. default mark the symbol as pointing to a region of data not code. This
  12027. means that, for example, any instructions following such a symbol will
  12028. not be disassembled by 'objdump' as it will regard them as data. To
  12029. change this behavior an optional section name can be placed after the
  12030. symbol name in the '.global' directive. If this section exists and is
  12031. known to be a code section, then the symbol will be marked as pointing
  12032. at code not data. Ie the syntax for the directive is:
  12033. '.global SYMBOL[ SECTION][, SYMBOL[ SECTION]] ...',
  12034. Here is a short example:
  12035. .global foo .text, bar, baz .data
  12036. foo:
  12037. nop
  12038. bar:
  12039. .word 0x0
  12040. baz:
  12041. .word 0x1
  12042. 
  12043. File: as.info, Node: MIPS FP ABIs, Next: MIPS NaN Encodings, Prev: MIPS insn, Up: MIPS-Dependent
  12044. 9.27.9 Directives to control the FP ABI
  12045. ---------------------------------------
  12046. * Menu:
  12047. * MIPS FP ABI History:: History of FP ABIs
  12048. * MIPS FP ABI Variants:: Supported FP ABIs
  12049. * MIPS FP ABI Selection:: Automatic selection of FP ABI
  12050. * MIPS FP ABI Compatibility:: Linking different FP ABI variants
  12051. 
  12052. File: as.info, Node: MIPS FP ABI History, Next: MIPS FP ABI Variants, Up: MIPS FP ABIs
  12053. 9.27.9.1 History of FP ABIs
  12054. ...........................
  12055. The MIPS ABIs support a variety of different floating-point extensions
  12056. where calling-convention and register sizes vary for floating-point
  12057. data. The extensions exist to support a wide variety of optional
  12058. architecture features. The resulting ABI variants are generally
  12059. incompatible with each other and must be tracked carefully.
  12060. Traditionally the use of an explicit '.gnu_attribute 4, N' directive
  12061. is used to indicate which ABI is in use by a specific module. It was
  12062. then left to the user to ensure that command-line options and the
  12063. selected ABI were compatible with some potential for inconsistencies.
  12064. 
  12065. File: as.info, Node: MIPS FP ABI Variants, Next: MIPS FP ABI Selection, Prev: MIPS FP ABI History, Up: MIPS FP ABIs
  12066. 9.27.9.2 Supported FP ABIs
  12067. ..........................
  12068. The supported floating-point ABI variants are:
  12069. '0 - No floating-point'
  12070. This variant is used to indicate that floating-point is not used
  12071. within the module at all and therefore has no impact on the ABI.
  12072. This is the default.
  12073. '1 - Double-precision'
  12074. This variant indicates that double-precision support is used. For
  12075. 64-bit ABIs this means that 64-bit wide floating-point registers
  12076. are required. For 32-bit ABIs this means that 32-bit wide
  12077. floating-point registers are required and double-precision
  12078. operations use pairs of registers.
  12079. '2 - Single-precision'
  12080. This variant indicates that single-precision support is used.
  12081. Double precision operations will be supported via soft-float
  12082. routines.
  12083. '3 - Soft-float'
  12084. This variant indicates that although floating-point support is used
  12085. all operations are emulated in software. This means the ABI is
  12086. modified to pass all floating-point data in general-purpose
  12087. registers.
  12088. '4 - Deprecated'
  12089. This variant existed as an initial attempt at supporting 64-bit
  12090. wide floating-point registers for O32 ABI on a MIPS32r2 CPU. This
  12091. has been superseded by 5, 6 and 7.
  12092. '5 - Double-precision 32-bit CPU, 32-bit or 64-bit FPU'
  12093. This variant is used by 32-bit ABIs to indicate that the
  12094. floating-point code in the module has been designed to operate
  12095. correctly with either 32-bit wide or 64-bit wide floating-point
  12096. registers. Double-precision support is used. Only O32 currently
  12097. supports this variant and requires a minimum architecture of MIPS
  12098. II.
  12099. '6 - Double-precision 32-bit FPU, 64-bit FPU'
  12100. This variant is used by 32-bit ABIs to indicate that the
  12101. floating-point code in the module requires 64-bit wide
  12102. floating-point registers. Double-precision support is used. Only
  12103. O32 currently supports this variant and requires a minimum
  12104. architecture of MIPS32r2.
  12105. '7 - Double-precision compat 32-bit FPU, 64-bit FPU'
  12106. This variant is used by 32-bit ABIs to indicate that the
  12107. floating-point code in the module requires 64-bit wide
  12108. floating-point registers. Double-precision support is used. This
  12109. differs from the previous ABI as it restricts use of odd-numbered
  12110. single-precision registers. Only O32 currently supports this
  12111. variant and requires a minimum architecture of MIPS32r2.
  12112. 
  12113. File: as.info, Node: MIPS FP ABI Selection, Next: MIPS FP ABI Compatibility, Prev: MIPS FP ABI Variants, Up: MIPS FP ABIs
  12114. 9.27.9.3 Automatic selection of FP ABI
  12115. ......................................
  12116. In order to simplify and add safety to the process of selecting the
  12117. correct floating-point ABI, the assembler will automatically infer the
  12118. correct '.gnu_attribute 4, N' directive based on command-line options
  12119. and '.module' overrides. Where an explicit '.gnu_attribute 4, N'
  12120. directive has been seen then a warning will be raised if it does not
  12121. match an inferred setting.
  12122. The floating-point ABI is inferred as follows. If '-msoft-float' has
  12123. been used the module will be marked as soft-float. If '-msingle-float'
  12124. has been used then the module will be marked as single-precision. The
  12125. remaining ABIs are then selected based on the FP register width.
  12126. Double-precision is selected if the width of GP and FP registers match
  12127. and the special double-precision variants for 32-bit ABIs are then
  12128. selected depending on '-mfpxx', '-mfp64' and '-mno-odd-spreg'.
  12129. 
  12130. File: as.info, Node: MIPS FP ABI Compatibility, Prev: MIPS FP ABI Selection, Up: MIPS FP ABIs
  12131. 9.27.9.4 Linking different FP ABI variants
  12132. ..........................................
  12133. Modules using the default FP ABI (no floating-point) can be linked with
  12134. any other (singular) FP ABI variant.
  12135. Special compatibility support exists for O32 with the four
  12136. double-precision FP ABI variants. The '-mfpxx' FP ABI is specifically
  12137. designed to be compatible with the standard double-precision ABI and the
  12138. '-mfp64' FP ABIs. This makes it desirable for O32 modules to be built
  12139. as '-mfpxx' to ensure the maximum compatibility with other modules
  12140. produced for more specific needs. The only FP ABIs which cannot be
  12141. linked together are the standard double-precision ABI and the full
  12142. '-mfp64' ABI with '-modd-spreg'.
  12143. 
  12144. File: as.info, Node: MIPS NaN Encodings, Next: MIPS Option Stack, Prev: MIPS FP ABIs, Up: MIPS-Dependent
  12145. 9.27.10 Directives to record which NaN encoding is being used
  12146. -------------------------------------------------------------
  12147. The IEEE 754 floating-point standard defines two types of not-a-number
  12148. (NaN) data: "signalling" NaNs and "quiet" NaNs. The original version of
  12149. the standard did not specify how these two types should be
  12150. distinguished. Most implementations followed the i387 model, in which
  12151. the first bit of the significand is set for quiet NaNs and clear for
  12152. signalling NaNs. However, the original MIPS implementation assigned the
  12153. opposite meaning to the bit, so that it was set for signalling NaNs and
  12154. clear for quiet NaNs.
  12155. The 2008 revision of the standard formally suggested the i387 choice
  12156. and as from Sep 2012 the current release of the MIPS architecture
  12157. therefore optionally supports that form. Code that uses one NaN
  12158. encoding would usually be incompatible with code that uses the other NaN
  12159. encoding, so MIPS ELF objects have a flag ('EF_MIPS_NAN2008') to record
  12160. which encoding is being used.
  12161. Assembly files can use the '.nan' directive to select between the two
  12162. encodings. '.nan 2008' says that the assembly file uses the IEEE
  12163. 754-2008 encoding while '.nan legacy' says that the file uses the
  12164. original MIPS encoding. If several '.nan' directives are given, the
  12165. final setting is the one that is used.
  12166. The command-line options '-mnan=legacy' and '-mnan=2008' can be used
  12167. instead of '.nan legacy' and '.nan 2008' respectively. However, any
  12168. '.nan' directive overrides the command-line setting.
  12169. '.nan legacy' is the default if no '.nan' directive or '-mnan' option
  12170. is given.
  12171. Note that GNU 'as' does not produce NaNs itself and therefore these
  12172. directives do not affect code generation. They simply control the
  12173. setting of the 'EF_MIPS_NAN2008' flag.
  12174. Traditional MIPS assemblers do not support these directives.
  12175. 
  12176. File: as.info, Node: MIPS Option Stack, Next: MIPS ASE Instruction Generation Overrides, Prev: MIPS NaN Encodings, Up: MIPS-Dependent
  12177. 9.27.11 Directives to save and restore options
  12178. ----------------------------------------------
  12179. The directives '.set push' and '.set pop' may be used to save and
  12180. restore the current settings for all the options which are controlled by
  12181. '.set'. The '.set push' directive saves the current settings on a
  12182. stack. The '.set pop' directive pops the stack and restores the
  12183. settings.
  12184. These directives can be useful inside an macro which must change an
  12185. option such as the ISA level or instruction reordering but does not want
  12186. to change the state of the code which invoked the macro.
  12187. Traditional MIPS assemblers do not support these directives.
  12188. 
  12189. File: as.info, Node: MIPS ASE Instruction Generation Overrides, Next: MIPS Floating-Point, Prev: MIPS Option Stack, Up: MIPS-Dependent
  12190. 9.27.12 Directives to control generation of MIPS ASE instructions
  12191. -----------------------------------------------------------------
  12192. The directive '.set mips3d' makes the assembler accept instructions from
  12193. the MIPS-3D Application Specific Extension from that point on in the
  12194. assembly. The '.set nomips3d' directive prevents MIPS-3D instructions
  12195. from being accepted.
  12196. The directive '.set smartmips' makes the assembler accept
  12197. instructions from the SmartMIPS Application Specific Extension to the
  12198. MIPS32 ISA from that point on in the assembly. The '.set nosmartmips'
  12199. directive prevents SmartMIPS instructions from being accepted.
  12200. The directive '.set mdmx' makes the assembler accept instructions
  12201. from the MDMX Application Specific Extension from that point on in the
  12202. assembly. The '.set nomdmx' directive prevents MDMX instructions from
  12203. being accepted.
  12204. The directive '.set dsp' makes the assembler accept instructions from
  12205. the DSP Release 1 Application Specific Extension from that point on in
  12206. the assembly. The '.set nodsp' directive prevents DSP Release 1
  12207. instructions from being accepted.
  12208. The directive '.set dspr2' makes the assembler accept instructions
  12209. from the DSP Release 2 Application Specific Extension from that point on
  12210. in the assembly. This directive implies '.set dsp'. The '.set nodspr2'
  12211. directive prevents DSP Release 2 instructions from being accepted.
  12212. The directive '.set dspr3' makes the assembler accept instructions
  12213. from the DSP Release 3 Application Specific Extension from that point on
  12214. in the assembly. This directive implies '.set dsp' and '.set dspr2'.
  12215. The '.set nodspr3' directive prevents DSP Release 3 instructions from
  12216. being accepted.
  12217. The directive '.set mt' makes the assembler accept instructions from
  12218. the MT Application Specific Extension from that point on in the
  12219. assembly. The '.set nomt' directive prevents MT instructions from being
  12220. accepted.
  12221. The directive '.set mcu' makes the assembler accept instructions from
  12222. the MCU Application Specific Extension from that point on in the
  12223. assembly. The '.set nomcu' directive prevents MCU instructions from
  12224. being accepted.
  12225. The directive '.set msa' makes the assembler accept instructions from
  12226. the MIPS SIMD Architecture Extension from that point on in the assembly.
  12227. The '.set nomsa' directive prevents MSA instructions from being
  12228. accepted.
  12229. The directive '.set virt' makes the assembler accept instructions
  12230. from the Virtualization Application Specific Extension from that point
  12231. on in the assembly. The '.set novirt' directive prevents Virtualization
  12232. instructions from being accepted.
  12233. The directive '.set xpa' makes the assembler accept instructions from
  12234. the XPA Extension from that point on in the assembly. The '.set noxpa'
  12235. directive prevents XPA instructions from being accepted.
  12236. The directive '.set mips16e2' makes the assembler accept instructions
  12237. from the MIPS16e2 Application Specific Extension from that point on in
  12238. the assembly, whenever in MIPS16 mode. The '.set nomips16e2' directive
  12239. prevents MIPS16e2 instructions from being accepted, in MIPS16 mode.
  12240. Neither directive affects the state of MIPS16 mode being active itself
  12241. which has separate controls.
  12242. The directive '.set crc' makes the assembler accept instructions from
  12243. the CRC Extension from that point on in the assembly. The '.set nocrc'
  12244. directive prevents CRC instructions from being accepted.
  12245. The directive '.set ginv' makes the assembler accept instructions
  12246. from the GINV Extension from that point on in the assembly. The '.set
  12247. noginv' directive prevents GINV instructions from being accepted.
  12248. The directive '.set loongson-mmi' makes the assembler accept
  12249. instructions from the MMI Extension from that point on in the assembly.
  12250. The '.set noloongson-mmi' directive prevents MMI instructions from being
  12251. accepted.
  12252. The directive '.set loongson-cam' makes the assembler accept
  12253. instructions from the Loongson CAM from that point on in the assembly.
  12254. The '.set noloongson-cam' directive prevents Loongson CAM instructions
  12255. from being accepted.
  12256. The directive '.set loongson-ext' makes the assembler accept
  12257. instructions from the Loongson EXT from that point on in the assembly.
  12258. The '.set noloongson-ext' directive prevents Loongson EXT instructions
  12259. from being accepted.
  12260. The directive '.set loongson-ext2' makes the assembler accept
  12261. instructions from the Loongson EXT2 from that point on in the assembly.
  12262. This directive implies '.set loognson-ext'. The '.set noloongson-ext2'
  12263. directive prevents Loongson EXT2 instructions from being accepted.
  12264. Traditional MIPS assemblers do not support these directives.
  12265. 
  12266. File: as.info, Node: MIPS Floating-Point, Next: MIPS Syntax, Prev: MIPS ASE Instruction Generation Overrides, Up: MIPS-Dependent
  12267. 9.27.13 Directives to override floating-point options
  12268. -----------------------------------------------------
  12269. The directives '.set softfloat' and '.set hardfloat' provide finer
  12270. control of disabling and enabling float-point instructions. These
  12271. directives always override the default (that hard-float instructions are
  12272. accepted) or the command-line options ('-msoft-float' and
  12273. '-mhard-float').
  12274. The directives '.set singlefloat' and '.set doublefloat' provide
  12275. finer control of disabling and enabling double-precision float-point
  12276. operations. These directives always override the default (that
  12277. double-precision operations are accepted) or the command-line options
  12278. ('-msingle-float' and '-mdouble-float').
  12279. Traditional MIPS assemblers do not support these directives.
  12280. 
  12281. File: as.info, Node: MIPS Syntax, Prev: MIPS Floating-Point, Up: MIPS-Dependent
  12282. 9.27.14 Syntactical considerations for the MIPS assembler
  12283. ---------------------------------------------------------
  12284. * Menu:
  12285. * MIPS-Chars:: Special Characters
  12286. 
  12287. File: as.info, Node: MIPS-Chars, Up: MIPS Syntax
  12288. 9.27.14.1 Special Characters
  12289. ............................
  12290. The presence of a '#' on a line indicates the start of a comment that
  12291. extends to the end of the current line.
  12292. If a '#' appears as the first character of a line, the whole line is
  12293. treated as a comment, but in this case the line can also be a logical
  12294. line number directive (*note Comments::) or a preprocessor control
  12295. command (*note Preprocessing::).
  12296. The ';' character can be used to separate statements on the same
  12297. line.
  12298. 
  12299. File: as.info, Node: MMIX-Dependent, Next: MSP430-Dependent, Prev: MIPS-Dependent, Up: Machine Dependencies
  12300. 9.28 MMIX Dependent Features
  12301. ============================
  12302. * Menu:
  12303. * MMIX-Opts:: Command-line Options
  12304. * MMIX-Expand:: Instruction expansion
  12305. * MMIX-Syntax:: Syntax
  12306. * MMIX-mmixal:: Differences to 'mmixal' syntax and semantics
  12307. 
  12308. File: as.info, Node: MMIX-Opts, Next: MMIX-Expand, Up: MMIX-Dependent
  12309. 9.28.1 Command-line Options
  12310. ---------------------------
  12311. The MMIX version of 'as' has some machine-dependent options.
  12312. When '--fixed-special-register-names' is specified, only the register
  12313. names specified in *note MMIX-Regs:: are recognized in the instructions
  12314. 'PUT' and 'GET'.
  12315. You can use the '--globalize-symbols' to make all symbols global.
  12316. This option is useful when splitting up a 'mmixal' program into several
  12317. files.
  12318. The '--gnu-syntax' turns off most syntax compatibility with 'mmixal'.
  12319. Its usability is currently doubtful.
  12320. The '--relax' option is not fully supported, but will eventually make
  12321. the object file prepared for linker relaxation.
  12322. If you want to avoid inadvertently calling a predefined symbol and
  12323. would rather get an error, for example when using 'as' with a compiler
  12324. or other machine-generated code, specify '--no-predefined-syms'. This
  12325. turns off built-in predefined definitions of all such symbols, including
  12326. rounding-mode symbols, segment symbols, 'BIT' symbols, and 'TRAP'
  12327. symbols used in 'mmix' "system calls". It also turns off predefined
  12328. special-register names, except when used in 'PUT' and 'GET'
  12329. instructions.
  12330. By default, some instructions are expanded to fit the size of the
  12331. operand or an external symbol (*note MMIX-Expand::). By passing
  12332. '--no-expand', no such expansion will be done, instead causing errors at
  12333. link time if the operand does not fit.
  12334. The 'mmixal' documentation (*note mmixsite::) specifies that global
  12335. registers allocated with the 'GREG' directive (*note MMIX-greg::) and
  12336. initialized to the same non-zero value, will refer to the same global
  12337. register. This isn't strictly enforceable in 'as' since the final
  12338. addresses aren't known until link-time, but it will do an effort unless
  12339. the '--no-merge-gregs' option is specified. (Register merging isn't yet
  12340. implemented in 'ld'.)
  12341. 'as' will warn every time it expands an instruction to fit an operand
  12342. unless the option '-x' is specified. It is believed that this behaviour
  12343. is more useful than just mimicking 'mmixal''s behaviour, in which
  12344. instructions are only expanded if the '-x' option is specified, and
  12345. assembly fails otherwise, when an instruction needs to be expanded. It
  12346. needs to be kept in mind that 'mmixal' is both an assembler and linker,
  12347. while 'as' will expand instructions that at link stage can be
  12348. contracted. (Though linker relaxation isn't yet implemented in 'ld'.)
  12349. The option '-x' also implies '--linker-allocated-gregs'.
  12350. If instruction expansion is enabled, 'as' can expand a 'PUSHJ'
  12351. instruction into a series of instructions. The shortest expansion is to
  12352. not expand it, but just mark the call as redirectable to a stub, which
  12353. 'ld' creates at link-time, but only if the original 'PUSHJ' instruction
  12354. is found not to reach the target. The stub consists of the necessary
  12355. instructions to form a jump to the target. This happens if 'as' can
  12356. assert that the 'PUSHJ' instruction can reach such a stub. The option
  12357. '--no-pushj-stubs' disables this shorter expansion, and the longer
  12358. series of instructions is then created at assembly-time. The option
  12359. '--no-stubs' is a synonym, intended for compatibility with future
  12360. releases, where generation of stubs for other instructions may be
  12361. implemented.
  12362. Usually a two-operand-expression (*note GREG-base::) without a
  12363. matching 'GREG' directive is treated as an error by 'as'. When the
  12364. option '--linker-allocated-gregs' is in effect, they are instead passed
  12365. through to the linker, which will allocate as many global registers as
  12366. is needed.
  12367. 
  12368. File: as.info, Node: MMIX-Expand, Next: MMIX-Syntax, Prev: MMIX-Opts, Up: MMIX-Dependent
  12369. 9.28.2 Instruction expansion
  12370. ----------------------------
  12371. When 'as' encounters an instruction with an operand that is either not
  12372. known or does not fit the operand size of the instruction, 'as' (and
  12373. 'ld') will expand the instruction into a sequence of instructions
  12374. semantically equivalent to the operand fitting the instruction.
  12375. Expansion will take place for the following instructions:
  12376. 'GETA'
  12377. Expands to a sequence of four instructions: 'SETL', 'INCML',
  12378. 'INCMH' and 'INCH'. The operand must be a multiple of four.
  12379. Conditional branches
  12380. A branch instruction is turned into a branch with the complemented
  12381. condition and prediction bit over five instructions; four
  12382. instructions setting '$255' to the operand value, which like with
  12383. 'GETA' must be a multiple of four, and a final 'GO $255,$255,0'.
  12384. 'PUSHJ'
  12385. Similar to expansion for conditional branches; four instructions
  12386. set '$255' to the operand value, followed by a 'PUSHGO
  12387. $255,$255,0'.
  12388. 'JMP'
  12389. Similar to conditional branches and 'PUSHJ'. The final instruction
  12390. is 'GO $255,$255,0'.
  12391. The linker 'ld' is expected to shrink these expansions for code
  12392. assembled with '--relax' (though not currently implemented).
  12393. 
  12394. File: as.info, Node: MMIX-Syntax, Next: MMIX-mmixal, Prev: MMIX-Expand, Up: MMIX-Dependent
  12395. 9.28.3 Syntax
  12396. -------------
  12397. The assembly syntax is supposed to be upward compatible with that
  12398. described in Sections 1.3 and 1.4 of 'The Art of Computer Programming,
  12399. Volume 1'. Draft versions of those chapters as well as other MMIX
  12400. information is located at
  12401. <http://www-cs-faculty.stanford.edu/~knuth/mmix-news.html>. Most code
  12402. examples from the mmixal package located there should work unmodified
  12403. when assembled and linked as single files, with a few noteworthy
  12404. exceptions (*note MMIX-mmixal::).
  12405. Before an instruction is emitted, the current location is aligned to
  12406. the next four-byte boundary. If a label is defined at the beginning of
  12407. the line, its value will be the aligned value.
  12408. In addition to the traditional hex-prefix '0x', a hexadecimal number
  12409. can also be specified by the prefix character '#'.
  12410. After all operands to an MMIX instruction or directive have been
  12411. specified, the rest of the line is ignored, treated as a comment.
  12412. * Menu:
  12413. * MMIX-Chars:: Special Characters
  12414. * MMIX-Symbols:: Symbols
  12415. * MMIX-Regs:: Register Names
  12416. * MMIX-Pseudos:: Assembler Directives
  12417. 
  12418. File: as.info, Node: MMIX-Chars, Next: MMIX-Symbols, Up: MMIX-Syntax
  12419. 9.28.3.1 Special Characters
  12420. ...........................
  12421. The characters '*' and '#' are line comment characters; each start a
  12422. comment at the beginning of a line, but only at the beginning of a line.
  12423. A '#' prefixes a hexadecimal number if found elsewhere on a line. If a
  12424. '#' appears at the start of a line the whole line is treated as a
  12425. comment, but the line can also act as a logical line number directive
  12426. (*note Comments::) or a preprocessor control command (*note
  12427. Preprocessing::).
  12428. Two other characters, '%' and '!', each start a comment anywhere on
  12429. the line. Thus you can't use the 'modulus' and 'not' operators in
  12430. expressions normally associated with these two characters.
  12431. A ';' is a line separator, treated as a new-line, so separate
  12432. instructions can be specified on a single line.
  12433. 
  12434. File: as.info, Node: MMIX-Symbols, Next: MMIX-Regs, Prev: MMIX-Chars, Up: MMIX-Syntax
  12435. 9.28.3.2 Symbols
  12436. ................
  12437. The character ':' is permitted in identifiers. There are two exceptions
  12438. to it being treated as any other symbol character: if a symbol begins
  12439. with ':', it means that the symbol is in the global namespace and that
  12440. the current prefix should not be prepended to that symbol (*note
  12441. MMIX-prefix::). The ':' is then not considered part of the symbol. For
  12442. a symbol in the label position (first on a line), a ':' at the end of a
  12443. symbol is silently stripped off. A label is permitted, but not
  12444. required, to be followed by a ':', as with many other assembly formats.
  12445. The character '@' in an expression, is a synonym for '.', the current
  12446. location.
  12447. In addition to the common forward and backward local symbol formats
  12448. (*note Symbol Names::), they can be specified with upper-case 'B' and
  12449. 'F', as in '8B' and '9F'. A local label defined for the current
  12450. position is written with a 'H' appended to the number:
  12451. 3H LDB $0,$1,2
  12452. This and traditional local-label formats cannot be mixed: a label
  12453. must be defined and referred to using the same format.
  12454. There's a minor caveat: just as for the ordinary local symbols, the
  12455. local symbols are translated into ordinary symbols using control
  12456. characters are to hide the ordinal number of the symbol. Unfortunately,
  12457. these symbols are not translated back in error messages. Thus you may
  12458. see confusing error messages when local symbols are used. Control
  12459. characters '\003' (control-C) and '\004' (control-D) are used for the
  12460. MMIX-specific local-symbol syntax.
  12461. The symbol 'Main' is handled specially; it is always global.
  12462. By defining the symbols '__.MMIX.start..text' and
  12463. '__.MMIX.start..data', the address of respectively the '.text' and
  12464. '.data' segments of the final program can be defined, though when
  12465. linking more than one object file, the code or data in the object file
  12466. containing the symbol is not guaranteed to be start at that position;
  12467. just the final executable. *Note MMIX-loc::.
  12468. 
  12469. File: as.info, Node: MMIX-Regs, Next: MMIX-Pseudos, Prev: MMIX-Symbols, Up: MMIX-Syntax
  12470. 9.28.3.3 Register names
  12471. .......................
  12472. Local and global registers are specified as '$0' to '$255'. The
  12473. recognized special register names are 'rJ', 'rA', 'rB', 'rC', 'rD',
  12474. 'rE', 'rF', 'rG', 'rH', 'rI', 'rK', 'rL', 'rM', 'rN', 'rO', 'rP', 'rQ',
  12475. 'rR', 'rS', 'rT', 'rU', 'rV', 'rW', 'rX', 'rY', 'rZ', 'rBB', 'rTT',
  12476. 'rWW', 'rXX', 'rYY' and 'rZZ'. A leading ':' is optional for special
  12477. register names.
  12478. Local and global symbols can be equated to register names and used in
  12479. place of ordinary registers.
  12480. Similarly for special registers, local and global symbols can be
  12481. used. Also, symbols equated from numbers and constant expressions are
  12482. allowed in place of a special register, except when either of the
  12483. options '--no-predefined-syms' and '--fixed-special-register-names' are
  12484. specified. Then only the special register names above are allowed for
  12485. the instructions having a special register operand; 'GET' and 'PUT'.
  12486. 
  12487. File: as.info, Node: MMIX-Pseudos, Prev: MMIX-Regs, Up: MMIX-Syntax
  12488. 9.28.3.4 Assembler Directives
  12489. .............................
  12490. 'LOC'
  12491. The 'LOC' directive sets the current location to the value of the
  12492. operand field, which may include changing sections. If the operand
  12493. is a constant, the section is set to either '.data' if the value is
  12494. '0x2000000000000000' or larger, else it is set to '.text'. Within
  12495. a section, the current location may only be changed to
  12496. monotonically higher addresses. A LOC expression must be a
  12497. previously defined symbol or a "pure" constant.
  12498. An example, which sets the label PREV to the current location, and
  12499. updates the current location to eight bytes forward:
  12500. prev LOC @+8
  12501. When a LOC has a constant as its operand, a symbol
  12502. '__.MMIX.start..text' or '__.MMIX.start..data' is defined depending
  12503. on the address as mentioned above. Each such symbol is interpreted
  12504. as special by the linker, locating the section at that address.
  12505. Note that if multiple files are linked, the first object file with
  12506. that section will be mapped to that address (not necessarily the
  12507. file with the LOC definition).
  12508. 'LOCAL'
  12509. Example:
  12510. LOCAL external_symbol
  12511. LOCAL 42
  12512. .local asymbol
  12513. This directive-operation generates a link-time assertion that the
  12514. operand does not correspond to a global register. The operand is
  12515. an expression that at link-time resolves to a register symbol or a
  12516. number. A number is treated as the register having that number.
  12517. There is one restriction on the use of this directive: the
  12518. pseudo-directive must be placed in a section with contents, code or
  12519. data.
  12520. 'IS'
  12521. The 'IS' directive:
  12522. asymbol IS an_expression
  12523. sets the symbol 'asymbol' to 'an_expression'. A symbol may not be
  12524. set more than once using this directive. Local labels may be set
  12525. using this directive, for example:
  12526. 5H IS @+4
  12527. 'GREG'
  12528. This directive reserves a global register, gives it an initial
  12529. value and optionally gives it a symbolic name. Some examples:
  12530. areg GREG
  12531. breg GREG data_value
  12532. GREG data_buffer
  12533. .greg creg, another_data_value
  12534. The symbolic register name can be used in place of a (non-special)
  12535. register. If a value isn't provided, it defaults to zero. Unless
  12536. the option '--no-merge-gregs' is specified, non-zero registers
  12537. allocated with this directive may be eliminated by 'as'; another
  12538. register with the same value used in its place. Any of the
  12539. instructions 'CSWAP', 'GO', 'LDA', 'LDBU', 'LDB', 'LDHT', 'LDOU',
  12540. 'LDO', 'LDSF', 'LDTU', 'LDT', 'LDUNC', 'LDVTS', 'LDWU', 'LDW',
  12541. 'PREGO', 'PRELD', 'PREST', 'PUSHGO', 'STBU', 'STB', 'STCO', 'STHT',
  12542. 'STOU', 'STSF', 'STTU', 'STT', 'STUNC', 'SYNCD', 'SYNCID', can have
  12543. a value nearby an initial value in place of its second and third
  12544. operands. Here, "nearby" is defined as within the range 0...255
  12545. from the initial value of such an allocated register.
  12546. buffer1 BYTE 0,0,0,0,0
  12547. buffer2 BYTE 0,0,0,0,0
  12548. ...
  12549. GREG buffer1
  12550. LDOU $42,buffer2
  12551. In the example above, the 'Y' field of the 'LDOUI' instruction
  12552. (LDOU with a constant Z) will be replaced with the global register
  12553. allocated for 'buffer1', and the 'Z' field will have the value 5,
  12554. the offset from 'buffer1' to 'buffer2'. The result is equivalent
  12555. to this code:
  12556. buffer1 BYTE 0,0,0,0,0
  12557. buffer2 BYTE 0,0,0,0,0
  12558. ...
  12559. tmpreg GREG buffer1
  12560. LDOU $42,tmpreg,(buffer2-buffer1)
  12561. Global registers allocated with this directive are allocated in
  12562. order higher-to-lower within a file. Other than that, the exact
  12563. order of register allocation and elimination is undefined. For
  12564. example, the order is undefined when more than one file with such
  12565. directives are linked together. With the options '-x' and
  12566. '--linker-allocated-gregs', 'GREG' directives for two-operand cases
  12567. like the one mentioned above can be omitted. Sufficient global
  12568. registers will then be allocated by the linker.
  12569. 'BYTE'
  12570. The 'BYTE' directive takes a series of operands separated by a
  12571. comma. If an operand is a string (*note Strings::), each character
  12572. of that string is emitted as a byte. Other operands must be
  12573. constant expressions without forward references, in the range
  12574. 0...255. If you need operands having expressions with forward
  12575. references, use '.byte' (*note Byte::). An operand can be omitted,
  12576. defaulting to a zero value.
  12577. 'WYDE'
  12578. 'TETRA'
  12579. 'OCTA'
  12580. The directives 'WYDE', 'TETRA' and 'OCTA' emit constants of two,
  12581. four and eight bytes size respectively. Before anything else
  12582. happens for the directive, the current location is aligned to the
  12583. respective constant-size boundary. If a label is defined at the
  12584. beginning of the line, its value will be that after the alignment.
  12585. A single operand can be omitted, defaulting to a zero value emitted
  12586. for the directive. Operands can be expressed as strings (*note
  12587. Strings::), in which case each character in the string is emitted
  12588. as a separate constant of the size indicated by the directive.
  12589. 'PREFIX'
  12590. The 'PREFIX' directive sets a symbol name prefix to be prepended to
  12591. all symbols (except local symbols, *note MMIX-Symbols::), that are
  12592. not prefixed with ':', until the next 'PREFIX' directive. Such
  12593. prefixes accumulate. For example,
  12594. PREFIX a
  12595. PREFIX b
  12596. c IS 0
  12597. defines a symbol 'abc' with the value 0.
  12598. 'BSPEC'
  12599. 'ESPEC'
  12600. A pair of 'BSPEC' and 'ESPEC' directives delimit a section of
  12601. special contents (without specified semantics). Example:
  12602. BSPEC 42
  12603. TETRA 1,2,3
  12604. ESPEC
  12605. The single operand to 'BSPEC' must be number in the range 0...255.
  12606. The 'BSPEC' number 80 is used by the GNU binutils implementation.
  12607. 
  12608. File: as.info, Node: MMIX-mmixal, Prev: MMIX-Syntax, Up: MMIX-Dependent
  12609. 9.28.4 Differences to 'mmixal'
  12610. ------------------------------
  12611. The binutils 'as' and 'ld' combination has a few differences in function
  12612. compared to 'mmixal' (*note mmixsite::).
  12613. The replacement of a symbol with a GREG-allocated register (*note
  12614. GREG-base::) is not handled the exactly same way in 'as' as in 'mmixal'.
  12615. This is apparent in the 'mmixal' example file 'inout.mms', where
  12616. different registers with different offsets, eventually yielding the same
  12617. address, are used in the first instruction. This type of difference
  12618. should however not affect the function of any program unless it has
  12619. specific assumptions about the allocated register number.
  12620. Line numbers (in the 'mmo' object format) are currently not
  12621. supported.
  12622. Expression operator precedence is not that of mmixal: operator
  12623. precedence is that of the C programming language. It's recommended to
  12624. use parentheses to explicitly specify wanted operator precedence
  12625. whenever more than one type of operators are used.
  12626. The serialize unary operator '&', the fractional division operator
  12627. '//', the logical not operator '!' and the modulus operator '%' are not
  12628. available.
  12629. Symbols are not global by default, unless the option
  12630. '--globalize-symbols' is passed. Use the '.global' directive to
  12631. globalize symbols (*note Global::).
  12632. Operand syntax is a bit stricter with 'as' than 'mmixal'. For
  12633. example, you can't say 'addu 1,2,3', instead you must write 'addu
  12634. $1,$2,3'.
  12635. You can't LOC to a lower address than those already visited (i.e.,
  12636. "backwards").
  12637. A LOC directive must come before any emitted code.
  12638. Predefined symbols are visible as file-local symbols after use. (In
  12639. the ELF file, that is--the linked mmo file has no notion of a file-local
  12640. symbol.)
  12641. Some mapping of constant expressions to sections in LOC expressions
  12642. is attempted, but that functionality is easily confused and should be
  12643. avoided unless compatibility with 'mmixal' is required. A LOC
  12644. expression to '0x2000000000000000' or higher, maps to the '.data'
  12645. section and lower addresses map to the '.text' section (*note
  12646. MMIX-loc::).
  12647. The code and data areas are each contiguous. Sparse programs with
  12648. far-away LOC directives will take up the same amount of space as a
  12649. contiguous program with zeros filled in the gaps between the LOC
  12650. directives. If you need sparse programs, you might try and get the
  12651. wanted effect with a linker script and splitting up the code parts into
  12652. sections (*note Section::). Assembly code for this, to be compatible
  12653. with 'mmixal', would look something like:
  12654. .if 0
  12655. LOC away_expression
  12656. .else
  12657. .section away,"ax"
  12658. .fi
  12659. 'as' will not execute the LOC directive and 'mmixal' ignores the
  12660. lines with '.'. This construct can be used generally to help
  12661. compatibility.
  12662. Symbols can't be defined twice-not even to the same value.
  12663. Instruction mnemonics are recognized case-insensitive, though the
  12664. 'IS' and 'GREG' pseudo-operations must be specified in upper-case
  12665. characters.
  12666. There's no unicode support.
  12667. The following is a list of programs in 'mmix.tar.gz', available at
  12668. <http://www-cs-faculty.stanford.edu/~knuth/mmix-news.html>, last checked
  12669. with the version dated 2001-08-25 (md5sum
  12670. c393470cfc86fac040487d22d2bf0172) that assemble with 'mmixal' but do not
  12671. assemble with 'as':
  12672. 'silly.mms'
  12673. LOC to a previous address.
  12674. 'sim.mms'
  12675. Redefines symbol 'Done'.
  12676. 'test.mms'
  12677. Uses the serial operator '&'.
  12678. 
  12679. File: as.info, Node: MSP430-Dependent, Next: NDS32-Dependent, Prev: MMIX-Dependent, Up: Machine Dependencies
  12680. 9.29 MSP 430 Dependent Features
  12681. ===============================
  12682. * Menu:
  12683. * MSP430 Options:: Options
  12684. * MSP430 Syntax:: Syntax
  12685. * MSP430 Floating Point:: Floating Point
  12686. * MSP430 Directives:: MSP 430 Machine Directives
  12687. * MSP430 Opcodes:: Opcodes
  12688. * MSP430 Profiling Capability:: Profiling Capability
  12689. 
  12690. File: as.info, Node: MSP430 Options, Next: MSP430 Syntax, Up: MSP430-Dependent
  12691. 9.29.1 Options
  12692. --------------
  12693. '-mmcu'
  12694. selects the mcu architecture. If the architecture is 430Xv2 then
  12695. this also enables NOP generation unless the '-mN' is also
  12696. specified.
  12697. '-mcpu'
  12698. selects the cpu architecture. If the architecture is 430Xv2 then
  12699. this also enables NOP generation unless the '-mN' is also
  12700. specified.
  12701. '-msilicon-errata=NAME[,NAME...]'
  12702. Implements a fixup for named silicon errata. Multiple silicon
  12703. errata can be specified by multiple uses of the '-msilicon-errata'
  12704. option and/or by including the errata names, separated by commas,
  12705. on an individual '-msilicon-errata' option. Errata names currently
  12706. recognised by the assembler are:
  12707. 'cpu4'
  12708. 'PUSH #4' and 'PUSH #8' need longer encodings on the MSP430.
  12709. This option is enabled by default, and cannot be disabled.
  12710. 'cpu8'
  12711. Do not set the 'SP' to an odd value.
  12712. 'cpu11'
  12713. Do not update the 'SR' and the 'PC' in the same instruction.
  12714. 'cpu12'
  12715. Do not use the 'PC' in a 'CMP' or 'BIT' instruction.
  12716. 'cpu13'
  12717. Do not use an arithmetic instruction to modify the 'SR'.
  12718. 'cpu19'
  12719. Insert 'NOP' after 'CPUOFF'.
  12720. '-msilicon-errata-warn=NAME[,NAME...]'
  12721. Like the '-msilicon-errata' option except that instead of fixing
  12722. the specified errata, a warning message is issued instead. This
  12723. option can be used alongside '-msilicon-errata' to generate
  12724. messages whenever a problem is fixed, or on its own in order to
  12725. inspect code for potential problems.
  12726. '-mP'
  12727. enables polymorph instructions handler.
  12728. '-mQ'
  12729. enables relaxation at assembly time. DANGEROUS!
  12730. '-ml'
  12731. indicates that the input uses the large code model.
  12732. '-mn'
  12733. enables the generation of a NOP instruction following any
  12734. instruction that might change the interrupts enabled/disabled
  12735. state. The pipelined nature of the MSP430 core means that any
  12736. instruction that changes the interrupt state ('EINT', 'DINT', 'BIC
  12737. #8, SR', 'BIS #8, SR' or 'MOV.W <>, SR') must be followed by a NOP
  12738. instruction in order to ensure the correct processing of
  12739. interrupts. By default it is up to the programmer to supply these
  12740. NOP instructions, but this command-line option enables the
  12741. automatic insertion by the assembler, if they are missing.
  12742. '-mN'
  12743. disables the generation of a NOP instruction following any
  12744. instruction that might change the interrupts enabled/disabled
  12745. state. This is the default behaviour.
  12746. '-my'
  12747. tells the assembler to generate a warning message if a NOP does not
  12748. immediately follow an instruction that enables or disables
  12749. interrupts. This is the default.
  12750. Note that this option can be stacked with the '-mn' option so that
  12751. the assembler will both warn about missing NOP instructions and
  12752. then insert them automatically.
  12753. '-mY'
  12754. disables warnings about missing NOP instructions.
  12755. '-md'
  12756. mark the object file as one that requires data to copied from ROM
  12757. to RAM at execution startup. Disabled by default.
  12758. '-mdata-region=REGION'
  12759. Select the region data will be placed in. Region placement is
  12760. performed by the compiler and linker. The only effect this option
  12761. will have on the assembler is that if UPPER or EITHER is selected,
  12762. then the symbols to initialise high data and bss will be defined.
  12763. Valid REGION values are:
  12764. 'none'
  12765. 'lower'
  12766. 'upper'
  12767. 'either'
  12768. 
  12769. File: as.info, Node: MSP430 Syntax, Next: MSP430 Floating Point, Prev: MSP430 Options, Up: MSP430-Dependent
  12770. 9.29.2 Syntax
  12771. -------------
  12772. * Menu:
  12773. * MSP430-Macros:: Macros
  12774. * MSP430-Chars:: Special Characters
  12775. * MSP430-Regs:: Register Names
  12776. * MSP430-Ext:: Assembler Extensions
  12777. 
  12778. File: as.info, Node: MSP430-Macros, Next: MSP430-Chars, Up: MSP430 Syntax
  12779. 9.29.2.1 Macros
  12780. ...............
  12781. The macro syntax used on the MSP 430 is like that described in the MSP
  12782. 430 Family Assembler Specification. Normal 'as' macros should still
  12783. work.
  12784. Additional built-in macros are:
  12785. 'llo(exp)'
  12786. Extracts least significant word from 32-bit expression 'exp'.
  12787. 'lhi(exp)'
  12788. Extracts most significant word from 32-bit expression 'exp'.
  12789. 'hlo(exp)'
  12790. Extracts 3rd word from 64-bit expression 'exp'.
  12791. 'hhi(exp)'
  12792. Extracts 4rd word from 64-bit expression 'exp'.
  12793. They normally being used as an immediate source operand.
  12794. mov #llo(1), r10 ; == mov #1, r10
  12795. mov #lhi(1), r10 ; == mov #0, r10
  12796. 
  12797. File: as.info, Node: MSP430-Chars, Next: MSP430-Regs, Prev: MSP430-Macros, Up: MSP430 Syntax
  12798. 9.29.2.2 Special Characters
  12799. ...........................
  12800. A semicolon (';') appearing anywhere on a line starts a comment that
  12801. extends to the end of that line.
  12802. If a '#' appears as the first character of a line then the whole line
  12803. is treated as a comment, but it can also be a logical line number
  12804. directive (*note Comments::) or a preprocessor control command (*note
  12805. Preprocessing::).
  12806. Multiple statements can appear on the same line provided that they
  12807. are separated by the '{' character.
  12808. The character '$' in jump instructions indicates current location and
  12809. implemented only for TI syntax compatibility.
  12810. 
  12811. File: as.info, Node: MSP430-Regs, Next: MSP430-Ext, Prev: MSP430-Chars, Up: MSP430 Syntax
  12812. 9.29.2.3 Register Names
  12813. .......................
  12814. General-purpose registers are represented by predefined symbols of the
  12815. form 'rN' (for global registers), where N represents a number between
  12816. '0' and '15'. The leading letters may be in either upper or lower case;
  12817. for example, 'r13' and 'R7' are both valid register names.
  12818. Register names 'PC', 'SP' and 'SR' cannot be used as register names
  12819. and will be treated as variables. Use 'r0', 'r1', and 'r2' instead.
  12820. 
  12821. File: as.info, Node: MSP430-Ext, Prev: MSP430-Regs, Up: MSP430 Syntax
  12822. 9.29.2.4 Assembler Extensions
  12823. .............................
  12824. '@rN'
  12825. As destination operand being treated as '0(rn)'
  12826. '0(rN)'
  12827. As source operand being treated as '@rn'
  12828. 'jCOND +N'
  12829. Skips next N bytes followed by jump instruction and equivalent to
  12830. 'jCOND $+N+2'
  12831. Also, there are some instructions, which cannot be found in other
  12832. assemblers. These are branch instructions, which has different opcodes
  12833. upon jump distance. They all got PC relative addressing mode.
  12834. 'beq label'
  12835. A polymorph instruction which is 'jeq label' in case if jump
  12836. distance within allowed range for cpu's jump instruction. If not,
  12837. this unrolls into a sequence of
  12838. jne $+6
  12839. br label
  12840. 'bne label'
  12841. A polymorph instruction which is 'jne label' or 'jeq +4; br label'
  12842. 'blt label'
  12843. A polymorph instruction which is 'jl label' or 'jge +4; br label'
  12844. 'bltn label'
  12845. A polymorph instruction which is 'jn label' or 'jn +2; jmp +4; br
  12846. label'
  12847. 'bltu label'
  12848. A polymorph instruction which is 'jlo label' or 'jhs +2; br label'
  12849. 'bge label'
  12850. A polymorph instruction which is 'jge label' or 'jl +4; br label'
  12851. 'bgeu label'
  12852. A polymorph instruction which is 'jhs label' or 'jlo +4; br label'
  12853. 'bgt label'
  12854. A polymorph instruction which is 'jeq +2; jge label' or 'jeq +6; jl
  12855. +4; br label'
  12856. 'bgtu label'
  12857. A polymorph instruction which is 'jeq +2; jhs label' or 'jeq +6;
  12858. jlo +4; br label'
  12859. 'bleu label'
  12860. A polymorph instruction which is 'jeq label; jlo label' or 'jeq +2;
  12861. jhs +4; br label'
  12862. 'ble label'
  12863. A polymorph instruction which is 'jeq label; jl label' or 'jeq +2;
  12864. jge +4; br label'
  12865. 'jump label'
  12866. A polymorph instruction which is 'jmp label' or 'br label'
  12867. 
  12868. File: as.info, Node: MSP430 Floating Point, Next: MSP430 Directives, Prev: MSP430 Syntax, Up: MSP430-Dependent
  12869. 9.29.3 Floating Point
  12870. ---------------------
  12871. The MSP 430 family uses IEEE 32-bit floating-point numbers.
  12872. 
  12873. File: as.info, Node: MSP430 Directives, Next: MSP430 Opcodes, Prev: MSP430 Floating Point, Up: MSP430-Dependent
  12874. 9.29.4 MSP 430 Machine Directives
  12875. ---------------------------------
  12876. '.file'
  12877. This directive is ignored; it is accepted for compatibility with
  12878. other MSP 430 assemblers.
  12879. _Warning:_ in other versions of the GNU assembler, '.file' is
  12880. used for the directive called '.app-file' in the MSP 430
  12881. support.
  12882. '.line'
  12883. This directive is ignored; it is accepted for compatibility with
  12884. other MSP 430 assemblers.
  12885. '.arch'
  12886. Sets the target microcontroller in the same way as the '-mmcu'
  12887. command-line option.
  12888. '.cpu'
  12889. Sets the target architecture in the same way as the '-mcpu'
  12890. command-line option.
  12891. '.profiler'
  12892. This directive instructs assembler to add new profile entry to the
  12893. object file.
  12894. '.refsym'
  12895. This directive instructs assembler to add an undefined reference to
  12896. the symbol following the directive. The maximum symbol name length
  12897. is 1023 characters. No relocation is created for this symbol; it
  12898. will exist purely for pulling in object files from archives. Note
  12899. that this reloc is not sufficient to prevent garbage collection;
  12900. use a KEEP() directive in the linker file to preserve such objects.
  12901. 
  12902. File: as.info, Node: MSP430 Opcodes, Next: MSP430 Profiling Capability, Prev: MSP430 Directives, Up: MSP430-Dependent
  12903. 9.29.5 Opcodes
  12904. --------------
  12905. 'as' implements all the standard MSP 430 opcodes. No additional
  12906. pseudo-instructions are needed on this family.
  12907. For information on the 430 machine instruction set, see 'MSP430
  12908. User's Manual, document slau049d', Texas Instrument, Inc.
  12909. 
  12910. File: as.info, Node: MSP430 Profiling Capability, Prev: MSP430 Opcodes, Up: MSP430-Dependent
  12911. 9.29.6 Profiling Capability
  12912. ---------------------------
  12913. It is a performance hit to use gcc's profiling approach for this tiny
  12914. target. Even more - jtag hardware facility does not perform any
  12915. profiling functions. However we've got gdb's built-in simulator where
  12916. we can do anything.
  12917. We define new section '.profiler' which holds all profiling
  12918. information. We define new pseudo operation '.profiler' which will
  12919. instruct assembler to add new profile entry to the object file. Profile
  12920. should take place at the present address.
  12921. Pseudo operation format:
  12922. '.profiler flags,function_to_profile [, cycle_corrector, extra]'
  12923. where:
  12924. 'flags' is a combination of the following characters:
  12925. 's'
  12926. function entry
  12927. 'x'
  12928. function exit
  12929. 'i'
  12930. function is in init section
  12931. 'f'
  12932. function is in fini section
  12933. 'l'
  12934. library call
  12935. 'c'
  12936. libc standard call
  12937. 'd'
  12938. stack value demand
  12939. 'I'
  12940. interrupt service routine
  12941. 'P'
  12942. prologue start
  12943. 'p'
  12944. prologue end
  12945. 'E'
  12946. epilogue start
  12947. 'e'
  12948. epilogue end
  12949. 'j'
  12950. long jump / sjlj unwind
  12951. 'a'
  12952. an arbitrary code fragment
  12953. 't'
  12954. extra parameter saved (a constant value like frame size)
  12955. 'function_to_profile'
  12956. a function address
  12957. 'cycle_corrector'
  12958. a value which should be added to the cycle counter, zero if
  12959. omitted.
  12960. 'extra'
  12961. any extra parameter, zero if omitted.
  12962. For example:
  12963. .global fxx
  12964. .type fxx,@function
  12965. fxx:
  12966. .LFrameOffset_fxx=0x08
  12967. .profiler "scdP", fxx ; function entry.
  12968. ; we also demand stack value to be saved
  12969. push r11
  12970. push r10
  12971. push r9
  12972. push r8
  12973. .profiler "cdpt",fxx,0, .LFrameOffset_fxx ; check stack value at this point
  12974. ; (this is a prologue end)
  12975. ; note, that spare var filled with
  12976. ; the farme size
  12977. mov r15,r8
  12978. ...
  12979. .profiler cdE,fxx ; check stack
  12980. pop r8
  12981. pop r9
  12982. pop r10
  12983. pop r11
  12984. .profiler xcde,fxx,3 ; exit adds 3 to the cycle counter
  12985. ret ; cause 'ret' insn takes 3 cycles
  12986. 
  12987. File: as.info, Node: NDS32-Dependent, Next: NiosII-Dependent, Prev: MSP430-Dependent, Up: Machine Dependencies
  12988. 9.30 NDS32 Dependent Features
  12989. =============================
  12990. The NDS32 processors family includes high-performance and low-power
  12991. 32-bit processors for high-end to low-end. GNU 'as' for NDS32
  12992. architectures supports NDS32 ISA version 3. For detail about NDS32
  12993. instruction set, please see the AndeStar ISA User Manual which is
  12994. available at http://www.andestech.com/en/index/index.htm
  12995. * Menu:
  12996. * NDS32 Options:: Assembler options
  12997. * NDS32 Syntax:: High-level assembly macros
  12998. 
  12999. File: as.info, Node: NDS32 Options, Next: NDS32 Syntax, Up: NDS32-Dependent
  13000. 9.30.1 NDS32 Options
  13001. --------------------
  13002. The NDS32 configurations of GNU 'as' support these special options:
  13003. '-O1'
  13004. Optimize for performance.
  13005. '-Os'
  13006. Optimize for space.
  13007. '-EL'
  13008. Produce little endian data output.
  13009. '-EB'
  13010. Produce little endian data output.
  13011. '-mpic'
  13012. Generate PIC.
  13013. '-mno-fp-as-gp-relax'
  13014. Suppress fp-as-gp relaxation for this file.
  13015. '-mb2bb-relax'
  13016. Back-to-back branch optimization.
  13017. '-mno-all-relax'
  13018. Suppress all relaxation for this file.
  13019. '-march=<arch name>'
  13020. Assemble for architecture <arch name> which could be v3, v3j, v3m,
  13021. v3f, v3s, v2, v2j, v2f, v2s.
  13022. '-mbaseline=<baseline>'
  13023. Assemble for baseline <baseline> which could be v2, v3, v3m.
  13024. '-mfpu-freg=FREG'
  13025. Specify a FPU configuration.
  13026. '0 8 SP / 4 DP registers'
  13027. '1 16 SP / 8 DP registers'
  13028. '2 32 SP / 16 DP registers'
  13029. '3 32 SP / 32 DP registers'
  13030. '-mabi=ABI'
  13031. Specify a abi version <abi> could be v1, v2, v2fp, v2fpp.
  13032. '-m[no-]mac'
  13033. Enable/Disable Multiply instructions support.
  13034. '-m[no-]div'
  13035. Enable/Disable Divide instructions support.
  13036. '-m[no-]16bit-ext'
  13037. Enable/Disable 16-bit extension
  13038. '-m[no-]dx-regs'
  13039. Enable/Disable d0/d1 registers
  13040. '-m[no-]perf-ext'
  13041. Enable/Disable Performance extension
  13042. '-m[no-]perf2-ext'
  13043. Enable/Disable Performance extension 2
  13044. '-m[no-]string-ext'
  13045. Enable/Disable String extension
  13046. '-m[no-]reduced-regs'
  13047. Enable/Disable Reduced Register configuration (GPR16) option
  13048. '-m[no-]audio-isa-ext'
  13049. Enable/Disable AUDIO ISA extension
  13050. '-m[no-]fpu-sp-ext'
  13051. Enable/Disable FPU SP extension
  13052. '-m[no-]fpu-dp-ext'
  13053. Enable/Disable FPU DP extension
  13054. '-m[no-]fpu-fma'
  13055. Enable/Disable FPU fused-multiply-add instructions
  13056. '-mall-ext'
  13057. Turn on all extensions and instructions support
  13058. 
  13059. File: as.info, Node: NDS32 Syntax, Prev: NDS32 Options, Up: NDS32-Dependent
  13060. 9.30.2 Syntax
  13061. -------------
  13062. * Menu:
  13063. * NDS32-Chars:: Special Characters
  13064. * NDS32-Regs:: Register Names
  13065. * NDS32-Ops:: Pseudo Instructions
  13066. 
  13067. File: as.info, Node: NDS32-Chars, Next: NDS32-Regs, Up: NDS32 Syntax
  13068. 9.30.2.1 Special Characters
  13069. ...........................
  13070. Use '#' at column 1 and '!' anywhere in the line except inside quotes.
  13071. Multiple instructions in a line are allowed though not recommended
  13072. and should be separated by ';'.
  13073. Assembler is not case-sensitive in general except user defined label.
  13074. For example, 'jral F1' is different from 'jral f1' while it is the same
  13075. as 'JRAL F1'.
  13076. 
  13077. File: as.info, Node: NDS32-Regs, Next: NDS32-Ops, Prev: NDS32-Chars, Up: NDS32 Syntax
  13078. 9.30.2.2 Register Names
  13079. .......................
  13080. 'General purpose registers (GPR)'
  13081. There are 32 32-bit general purpose registers $r0 to $r31.
  13082. 'Accumulators d0 and d1'
  13083. 64-bit accumulators: $d0.hi, $d0.lo, $d1.hi, and $d1.lo.
  13084. 'Assembler reserved register $ta'
  13085. Register $ta ($r15) is reserved for assembler using.
  13086. 'Operating system reserved registers $p0 and $p1'
  13087. Registers $p0 ($r26) and $p1 ($r27) are used by operating system as
  13088. scratch registers.
  13089. 'Frame pointer $fp'
  13090. Register $r28 is regarded as the frame pointer.
  13091. 'Global pointer'
  13092. Register $r29 is regarded as the global pointer.
  13093. 'Link pointer'
  13094. Register $r30 is regarded as the link pointer.
  13095. 'Stack pointer'
  13096. Register $r31 is regarded as the stack pointer.
  13097. 
  13098. File: as.info, Node: NDS32-Ops, Prev: NDS32-Regs, Up: NDS32 Syntax
  13099. 9.30.2.3 Pseudo Instructions
  13100. ............................
  13101. 'li rt5,imm32'
  13102. load 32-bit integer into register rt5. 'sethi rt5,hi20(imm32)' and
  13103. then 'ori rt5,reg,lo12(imm32)'.
  13104. 'la rt5,var'
  13105. Load 32-bit address of var into register rt5. 'sethi
  13106. rt5,hi20(var)' and then 'ori reg,rt5,lo12(var)'
  13107. 'l.[bhw] rt5,var'
  13108. Load value of var into register rt5. 'sethi $ta,hi20(var)' and
  13109. then 'l[bhw]i rt5,[$ta+lo12(var)]'
  13110. 'l.[bh]s rt5,var'
  13111. Load value of var into register rt5. 'sethi $ta,hi20(var)' and
  13112. then 'l[bh]si rt5,[$ta+lo12(var)]'
  13113. 'l.[bhw]p rt5,var,inc'
  13114. Load value of var into register rt5 and increment $ta by amount
  13115. inc. 'la $ta,var' and then 'l[bhw]i.bi rt5,[$ta],inc'
  13116. 'l.[bhw]pc rt5,inc'
  13117. Continue loading value of var into register rt5 and increment $ta
  13118. by amount inc. 'l[bhw]i.bi rt5,[$ta],inc.'
  13119. 'l.[bh]sp rt5,var,inc'
  13120. Load value of var into register rt5 and increment $ta by amount
  13121. inc. 'la $ta,var' and then 'l[bh]si.bi rt5,[$ta],inc'
  13122. 'l.[bh]spc rt5,inc'
  13123. Continue loading value of var into register rt5 and increment $ta
  13124. by amount inc. 'l[bh]si.bi rt5,[$ta],inc.'
  13125. 's.[bhw] rt5,var'
  13126. Store register rt5 to var. 'sethi $ta,hi20(var)' and then 's[bhw]i
  13127. rt5,[$ta+lo12(var)]'
  13128. 's.[bhw]p rt5,var,inc'
  13129. Store register rt5 to var and increment $ta by amount inc. 'la
  13130. $ta,var' and then 's[bhw]i.bi rt5,[$ta],inc'
  13131. 's.[bhw]pc rt5,inc'
  13132. Continue storing register rt5 to var and increment $ta by amount
  13133. inc. 's[bhw]i.bi rt5,[$ta],inc.'
  13134. 'not rt5,ra5'
  13135. Alias of 'nor rt5,ra5,ra5'.
  13136. 'neg rt5,ra5'
  13137. Alias of 'subri rt5,ra5,0'.
  13138. 'br rb5'
  13139. Depending on how it is assembled, it is translated into 'r5 rb5' or
  13140. 'jr rb5'.
  13141. 'b label'
  13142. Branch to label depending on how it is assembled, it is translated
  13143. into 'j8 label', 'j label', or "'la $ta,label' 'br $ta'".
  13144. 'bral rb5'
  13145. Alias of jral br5 depending on how it is assembled, it is
  13146. translated into 'jral5 rb5' or 'jral rb5'.
  13147. 'bal fname'
  13148. Alias of jal fname depending on how it is assembled, it is
  13149. translated into 'jal fname' or "'la $ta,fname' 'bral $ta'".
  13150. 'call fname'
  13151. Call function fname same as 'jal fname'.
  13152. 'move rt5,ra5'
  13153. For 16-bit, this is 'mov55 rt5,ra5'. For no 16-bit, this is 'ori
  13154. rt5,ra5,0'.
  13155. 'move rt5,var'
  13156. This is the same as 'l.w rt5,var'.
  13157. 'move rt5,imm32'
  13158. This is the same as 'li rt5,imm32'.
  13159. 'pushm ra5,rb5'
  13160. Push contents of registers from ra5 to rb5 into stack.
  13161. 'push ra5'
  13162. Push content of register ra5 into stack. (same 'pushm ra5,ra5').
  13163. 'push.d var'
  13164. Push value of double-word variable var into stack.
  13165. 'push.w var'
  13166. Push value of word variable var into stack.
  13167. 'push.h var'
  13168. Push value of half-word variable var into stack.
  13169. 'push.b var'
  13170. Push value of byte variable var into stack.
  13171. 'pusha var'
  13172. Push 32-bit address of variable var into stack.
  13173. 'pushi imm32'
  13174. Push 32-bit immediate value into stack.
  13175. 'popm ra5,rb5'
  13176. Pop top of stack values into registers ra5 to rb5.
  13177. 'pop rt5'
  13178. Pop top of stack value into register. (same as 'popm rt5,rt5'.)
  13179. 'pop.d var,ra5'
  13180. Pop value of double-word variable var from stack using register ra5
  13181. as 2nd scratch register. (1st is $ta)
  13182. 'pop.w var,ra5'
  13183. Pop value of word variable var from stack using register ra5.
  13184. 'pop.h var,ra5'
  13185. Pop value of half-word variable var from stack using register ra5.
  13186. 'pop.b var,ra5'
  13187. Pop value of byte variable var from stack using register ra5.
  13188. 
  13189. File: as.info, Node: NiosII-Dependent, Next: NS32K-Dependent, Prev: NDS32-Dependent, Up: Machine Dependencies
  13190. 9.31 Nios II Dependent Features
  13191. ===============================
  13192. * Menu:
  13193. * Nios II Options:: Options
  13194. * Nios II Syntax:: Syntax
  13195. * Nios II Relocations:: Relocations
  13196. * Nios II Directives:: Nios II Machine Directives
  13197. * Nios II Opcodes:: Opcodes
  13198. 
  13199. File: as.info, Node: Nios II Options, Next: Nios II Syntax, Up: NiosII-Dependent
  13200. 9.31.1 Options
  13201. --------------
  13202. '-relax-section'
  13203. Replace identified out-of-range branches with PC-relative 'jmp'
  13204. sequences when possible. The generated code sequences are suitable
  13205. for use in position-independent code, but there is a practical
  13206. limit on the extended branch range because of the length of the
  13207. sequences. This option is the default.
  13208. '-relax-all'
  13209. Replace branch instructions not determinable to be in range and all
  13210. call instructions with 'jmp' and 'callr' sequences (respectively).
  13211. This option generates absolute relocations against the target
  13212. symbols and is not appropriate for position-independent code.
  13213. '-no-relax'
  13214. Do not replace any branches or calls.
  13215. '-EB'
  13216. Generate big-endian output.
  13217. '-EL'
  13218. Generate little-endian output. This is the default.
  13219. '-march=ARCHITECTURE'
  13220. This option specifies the target architecture. The assembler
  13221. issues an error message if an attempt is made to assemble an
  13222. instruction which will not execute on the target architecture. The
  13223. following architecture names are recognized: 'r1', 'r2'. The
  13224. default is 'r1'.
  13225. 
  13226. File: as.info, Node: Nios II Syntax, Next: Nios II Relocations, Prev: Nios II Options, Up: NiosII-Dependent
  13227. 9.31.2 Syntax
  13228. -------------
  13229. * Menu:
  13230. * Nios II Chars:: Special Characters
  13231. 
  13232. File: as.info, Node: Nios II Chars, Up: Nios II Syntax
  13233. 9.31.2.1 Special Characters
  13234. ...........................
  13235. '#' is the line comment character. ';' is the line separator character.
  13236. 
  13237. File: as.info, Node: Nios II Relocations, Next: Nios II Directives, Prev: Nios II Syntax, Up: NiosII-Dependent
  13238. 9.31.3 Nios II Machine Relocations
  13239. ----------------------------------
  13240. '%hiadj(EXPRESSION)'
  13241. Extract the upper 16 bits of EXPRESSION and add one if the 15th bit
  13242. is set.
  13243. The value of '%hiadj(EXPRESSION)' is:
  13244. ((EXPRESSION >> 16) & 0xffff) + ((EXPRESSION >> 15) & 0x01)
  13245. The '%hiadj' relocation is intended to be used with the 'addi',
  13246. 'ld' or 'st' instructions along with a '%lo', in order to load a
  13247. 32-bit constant.
  13248. movhi r2, %hiadj(symbol)
  13249. addi r2, r2, %lo(symbol)
  13250. '%hi(EXPRESSION)'
  13251. Extract the upper 16 bits of EXPRESSION.
  13252. '%lo(EXPRESSION)'
  13253. Extract the lower 16 bits of EXPRESSION.
  13254. '%gprel(EXPRESSION)'
  13255. Subtract the value of the symbol '_gp' from EXPRESSION.
  13256. The intention of the '%gprel' relocation is to have a fast small
  13257. area of memory which only takes a 16-bit immediate to access.
  13258. .section .sdata
  13259. fastint:
  13260. .int 123
  13261. .section .text
  13262. ldw r4, %gprel(fastint)(gp)
  13263. '%call(EXPRESSION)'
  13264. '%call_lo(EXPRESSION)'
  13265. '%call_hiadj(EXPRESSION)'
  13266. '%got(EXPRESSION)'
  13267. '%got_lo(EXPRESSION)'
  13268. '%got_hiadj(EXPRESSION)'
  13269. '%gotoff(EXPRESSION)'
  13270. '%gotoff_lo(EXPRESSION)'
  13271. '%gotoff_hiadj(EXPRESSION)'
  13272. '%tls_gd(EXPRESSION)'
  13273. '%tls_ie(EXPRESSION)'
  13274. '%tls_le(EXPRESSION)'
  13275. '%tls_ldm(EXPRESSION)'
  13276. '%tls_ldo(EXPRESSION)'
  13277. These relocations support the ABI for Linux Systems documented in
  13278. the 'Nios II Processor Reference Handbook'.
  13279. 
  13280. File: as.info, Node: Nios II Directives, Next: Nios II Opcodes, Prev: Nios II Relocations, Up: NiosII-Dependent
  13281. 9.31.4 Nios II Machine Directives
  13282. ---------------------------------
  13283. '.align EXPRESSION [, EXPRESSION]'
  13284. This is the generic '.align' directive, however this aligns to a
  13285. power of two.
  13286. '.half EXPRESSION'
  13287. Create an aligned constant 2 bytes in size.
  13288. '.word EXPRESSION'
  13289. Create an aligned constant 4 bytes in size.
  13290. '.dword EXPRESSION'
  13291. Create an aligned constant 8 bytes in size.
  13292. '.2byte EXPRESSION'
  13293. Create an unaligned constant 2 bytes in size.
  13294. '.4byte EXPRESSION'
  13295. Create an unaligned constant 4 bytes in size.
  13296. '.8byte EXPRESSION'
  13297. Create an unaligned constant 8 bytes in size.
  13298. '.16byte EXPRESSION'
  13299. Create an unaligned constant 16 bytes in size.
  13300. '.set noat'
  13301. Allows assembly code to use 'at' register without warning. Macro
  13302. or relaxation expansions generate warnings.
  13303. '.set at'
  13304. Assembly code using 'at' register generates warnings, and macro
  13305. expansion and relaxation are enabled.
  13306. '.set nobreak'
  13307. Allows assembly code to use 'ba' and 'bt' registers without
  13308. warning.
  13309. '.set break'
  13310. Turns warnings back on for using 'ba' and 'bt' registers.
  13311. '.set norelax'
  13312. Do not replace any branches or calls.
  13313. '.set relaxsection'
  13314. Replace identified out-of-range branches with 'jmp' sequences
  13315. (default).
  13316. '.set relaxsection'
  13317. Replace all branch and call instructions with 'jmp' and 'callr'
  13318. sequences.
  13319. '.set ...'
  13320. All other '.set' are the normal use.
  13321. 
  13322. File: as.info, Node: Nios II Opcodes, Prev: Nios II Directives, Up: NiosII-Dependent
  13323. 9.31.5 Opcodes
  13324. --------------
  13325. 'as' implements all the standard Nios II opcodes documented in the 'Nios
  13326. II Processor Reference Handbook', including the assembler
  13327. pseudo-instructions.
  13328. 
  13329. File: as.info, Node: NS32K-Dependent, Next: OpenRISC-Dependent, Prev: NiosII-Dependent, Up: Machine Dependencies
  13330. 9.32 NS32K Dependent Features
  13331. =============================
  13332. * Menu:
  13333. * NS32K Syntax:: Syntax
  13334. 
  13335. File: as.info, Node: NS32K Syntax, Up: NS32K-Dependent
  13336. 9.32.1 Syntax
  13337. -------------
  13338. * Menu:
  13339. * NS32K-Chars:: Special Characters
  13340. 
  13341. File: as.info, Node: NS32K-Chars, Up: NS32K Syntax
  13342. 9.32.1.1 Special Characters
  13343. ...........................
  13344. The presence of a '#' appearing anywhere on a line indicates the start
  13345. of a comment that extends to the end of that line.
  13346. If a '#' appears as the first character of a line then the whole line
  13347. is treated as a comment, but in this case the line can also be a logical
  13348. line number directive (*note Comments::) or a preprocessor control
  13349. command (*note Preprocessing::).
  13350. If Sequent compatibility has been configured into the assembler then
  13351. the '|' character appearing as the first character on a line will also
  13352. indicate the start of a line comment.
  13353. The ';' character can be used to separate statements on the same
  13354. line.
  13355. 
  13356. File: as.info, Node: OpenRISC-Dependent, Next: PDP-11-Dependent, Prev: NS32K-Dependent, Up: Machine Dependencies
  13357. 9.33 OPENRISC Dependent Features
  13358. ================================
  13359. * Menu:
  13360. * OpenRISC-Syntax:: Syntax
  13361. * OpenRISC-Float:: Floating Point
  13362. * OpenRISC-Directives:: OpenRISC Machine Directives
  13363. * OpenRISC-Opcodes:: Opcodes
  13364. 
  13365. File: as.info, Node: OpenRISC-Syntax, Next: OpenRISC-Float, Up: OpenRISC-Dependent
  13366. 9.33.1 OpenRISC Syntax
  13367. ----------------------
  13368. The assembler syntax follows the OpenRISC 1000 Architecture Manual.
  13369. * Menu:
  13370. * OpenRISC-Chars:: Special Characters
  13371. * OpenRISC-Regs:: Register Names
  13372. * OpenRISC-Relocs:: Relocations
  13373. 
  13374. File: as.info, Node: OpenRISC-Chars, Next: OpenRISC-Regs, Up: OpenRISC-Syntax
  13375. 9.33.1.1 Special Characters
  13376. ...........................
  13377. A '#' character appearing anywhere on a line indicates the start of a
  13378. comment that extends to the end of that line.
  13379. ';' can be used instead of a newline to separate statements.
  13380. 
  13381. File: as.info, Node: OpenRISC-Regs, Next: OpenRISC-Relocs, Prev: OpenRISC-Chars, Up: OpenRISC-Syntax
  13382. 9.33.1.2 Register Names
  13383. .......................
  13384. The OpenRISC register file contains 32 general pupose registers.
  13385. * The 32 general purpose registers are referred to as 'rN'.
  13386. * The stack pointer register 'r1' can be referenced using the alias
  13387. 'sp'.
  13388. * The frame pointer register 'r2' can be referenced using the alias
  13389. 'fp'.
  13390. * The link register 'r9' can be referenced using the alias 'lr'.
  13391. Floating point operations use the same general purpose registers.
  13392. The instructions 'lf.itof.s' (single precision) and 'lf.itof.d' (double
  13393. precision) can be used to convert integer values to floating point.
  13394. Likewise, instructions 'lf.ftoi.s' (single precision) and 'lf.ftoi.d'
  13395. (double precision) can be used to convert floating point to integer.
  13396. OpenRISC also contains privileged special purpose registers (SPRs).
  13397. The SPRs are accessed using the 'l.mfspr' and 'l.mtspr' instructions.
  13398. 
  13399. File: as.info, Node: OpenRISC-Relocs, Prev: OpenRISC-Regs, Up: OpenRISC-Syntax
  13400. 9.33.1.3 Relocations
  13401. ....................
  13402. ELF relocations are available as defined in the OpenRISC architecture
  13403. specification.
  13404. 'R_OR1K_HI_16_IN_INSN' is obtained using 'hi' and
  13405. 'R_OR1K_LO_16_IN_INSN' and 'R_OR1K_SLO16' are obtained using 'lo'. For
  13406. signed offsets 'R_OR1K_AHI16' is obtained from 'ha'. For example:
  13407. l.movhi r5, hi(symbol)
  13408. l.ori r5, r5, lo(symbol)
  13409. l.movhi r5, ha(symbol)
  13410. l.addi r5, r5, lo(symbol)
  13411. These "high" mnemonics extract bits 31:16 of their operand, and the
  13412. "low" mnemonics extract bits 15:0 of their operand.
  13413. The PC relative relocation 'R_OR1K_GOTPC_HI16' can be obtained by
  13414. enclosing an operand inside of 'gotpchi'. Likewise, the
  13415. 'R_OR1K_GOTPC_LO16' relocation can be obtained using 'gotpclo'. These
  13416. are mostly used when assembling PIC code. For example, the standard PIC
  13417. sequence on OpenRISC to get the base of the global offset table, PC
  13418. relative, into a register, can be performed as:
  13419. l.jal 0x8
  13420. l.movhi r17, gotpchi(_GLOBAL_OFFSET_TABLE_-4)
  13421. l.ori r17, r17, gotpclo(_GLOBAL_OFFSET_TABLE_+0)
  13422. l.add r17, r17, r9
  13423. Several relocations exist to allow the link editor to perform GOT
  13424. data references. The 'R_OR1K_GOT16' relocation can obtained by
  13425. enclosing an operand inside of 'got'. For example, assuming the GOT
  13426. base is in register 'r17'.
  13427. l.lwz r19, got(a)(r17)
  13428. l.lwz r21, 0(r19)
  13429. Also, several relocations exist for local GOT references. The
  13430. 'R_OR1K_GOTOFF_AHI16' relocation can obtained by enclosing an operand
  13431. inside of 'gotoffha'. Likewise, 'R_OR1K_GOTOFF_LO16' and
  13432. 'R_OR1K_GOTOFF_SLO16' can be obtained by enclosing an operand inside of
  13433. 'gotofflo'. For example, assuming the GOT base is in register 'rl7':
  13434. l.movhi r19, gotoffha(symbol)
  13435. l.add r19, r19, r17
  13436. l.lwz r19, gotofflo(symbol)(r19)
  13437. The above PC relative relocations use a 'l.jal' (jump) instruction
  13438. and reading of the link register to load the PC. OpenRISC also supports
  13439. page offset PC relative locations without a jump instruction using the
  13440. 'l.adrp' instruction. By default the 'l.adrp' instruction will create
  13441. an 'R_OR1K_PCREL_PG21' relocation. Likewise, 'BFD_RELOC_OR1K_LO13' and
  13442. 'BFD_RELOC_OR1K_SLO13' can be obtained by enclosing an operand inside of
  13443. 'po'. For example:
  13444. l.adrp r3, symbol
  13445. l.ori r4, r3, po(symbol)
  13446. l.lbz r5, po(symbol)(r3)
  13447. l.sb po(symbol)(r3), r6
  13448. Likewise the page offset relocations can be used with GOT references.
  13449. The relocation 'R_OR1K_GOT_PG21' can be obtained by enclosing an
  13450. 'l.adrp' immediate operand inside of 'got'. Likewise, 'R_OR1K_GOT_LO13'
  13451. can be obtained by enclosing an operand inside of 'gotpo'. For example
  13452. to load the value of a GOT symbol into register 'r5' we can do:
  13453. l.adrp r17, got(_GLOBAL_OFFSET_TABLE_)
  13454. l.lwz r5, gotpo(symbol)(r17)
  13455. There are many relocations that can be requested for access to thread
  13456. local storage variables. All of the OpenRISC TLS mnemonics are
  13457. supported:
  13458. * 'R_OR1K_TLS_GD_HI16' is requested using 'tlsgdhi'.
  13459. * 'R_OR1K_TLS_GD_LO16' is requested using 'tlsgdlo'.
  13460. * 'R_OR1K_TLS_GD_PG21' is requested using 'tldgd'.
  13461. * 'R_OR1K_TLS_GD_LO13' is requested using 'tlsgdpo'.
  13462. * 'R_OR1K_TLS_LDM_HI16' is requested using 'tlsldmhi'.
  13463. * 'R_OR1K_TLS_LDM_LO16' is requested using 'tlsldmlo'.
  13464. * 'R_OR1K_TLS_LDM_PG21' is requested using 'tldldm'.
  13465. * 'R_OR1K_TLS_LDM_LO13' is requested using 'tlsldmpo'.
  13466. * 'R_OR1K_TLS_LDO_HI16' is requested using 'dtpoffhi'.
  13467. * 'R_OR1K_TLS_LDO_LO16' is requested using 'dtpofflo'.
  13468. * 'R_OR1K_TLS_IE_HI16' is requested using 'gottpoffhi'.
  13469. * 'R_OR1K_TLS_IE_AHI16' is requested using 'gottpoffha'.
  13470. * 'R_OR1K_TLS_IE_LO16' is requested using 'gottpofflo'.
  13471. * 'R_OR1K_TLS_IE_PG21' is requested using 'gottp'.
  13472. * 'R_OR1K_TLS_IE_LO13' is requested using 'gottppo'.
  13473. * 'R_OR1K_TLS_LE_HI16' is requested using 'tpoffhi'.
  13474. * 'R_OR1K_TLS_LE_AHI16' is requested using 'tpoffha'.
  13475. * 'R_OR1K_TLS_LE_LO16' is requested using 'tpofflo'.
  13476. * 'R_OR1K_TLS_LE_SLO16' also is requested using 'tpofflo' depending
  13477. on the instruction format.
  13478. Here are some example TLS model sequences.
  13479. First, General Dynamic:
  13480. l.movhi r17, tlsgdhi(symbol)
  13481. l.ori r17, r17, tlsgdlo(symbol)
  13482. l.add r17, r17, r16
  13483. l.or r3, r17, r17
  13484. l.jal plt(__tls_get_addr)
  13485. l.nop
  13486. Initial Exec:
  13487. l.movhi r17, gottpoffhi(symbol)
  13488. l.add r17, r17, r16
  13489. l.lwz r17, gottpofflo(symbol)(r17)
  13490. l.add r17, r17, r10
  13491. l.lbs r17, 0(r17)
  13492. And finally, Local Exec:
  13493. l.movhi r17, tpoffha(symbol)
  13494. l.add r17, r17, r10
  13495. l.addi r17, r17, tpofflo(symbol)
  13496. l.lbs r17, 0(r17)
  13497. 
  13498. File: as.info, Node: OpenRISC-Float, Next: OpenRISC-Directives, Prev: OpenRISC-Syntax, Up: OpenRISC-Dependent
  13499. 9.33.2 Floating Point
  13500. ---------------------
  13501. OpenRISC uses IEEE floating-point numbers.
  13502. 
  13503. File: as.info, Node: OpenRISC-Directives, Next: OpenRISC-Opcodes, Prev: OpenRISC-Float, Up: OpenRISC-Dependent
  13504. 9.33.3 OpenRISC Machine Directives
  13505. ----------------------------------
  13506. The OpenRISC version of 'as' supports the following additional machine
  13507. directives:
  13508. '.align'
  13509. This must be followed by the desired alignment in bytes.
  13510. '.word'
  13511. On the OpenRISC, the '.word' directive produces a 32 bit value.
  13512. '.nodelay'
  13513. On the OpenRISC, the '.nodelay' directive sets a flag in elf
  13514. binaries indicating that the binary is generated catering for no
  13515. delay slots.
  13516. '.proc'
  13517. This directive is ignored. Any text following it on the same line
  13518. is also ignored.
  13519. '.endproc'
  13520. This directive is ignored. Any text following it on the same line
  13521. is also ignored.
  13522. 
  13523. File: as.info, Node: OpenRISC-Opcodes, Prev: OpenRISC-Directives, Up: OpenRISC-Dependent
  13524. 9.33.4 Opcodes
  13525. --------------
  13526. For detailed information on the OpenRISC machine instruction set, see
  13527. <http://www.openrisc.io/architecture/>.
  13528. 'as' implements all the standard OpenRISC opcodes.
  13529. 
  13530. File: as.info, Node: PDP-11-Dependent, Next: PJ-Dependent, Prev: OpenRISC-Dependent, Up: Machine Dependencies
  13531. 9.34 PDP-11 Dependent Features
  13532. ==============================
  13533. * Menu:
  13534. * PDP-11-Options:: Options
  13535. * PDP-11-Pseudos:: Assembler Directives
  13536. * PDP-11-Syntax:: DEC Syntax versus BSD Syntax
  13537. * PDP-11-Mnemonics:: Instruction Naming
  13538. * PDP-11-Synthetic:: Synthetic Instructions
  13539. 
  13540. File: as.info, Node: PDP-11-Options, Next: PDP-11-Pseudos, Up: PDP-11-Dependent
  13541. 9.34.1 Options
  13542. --------------
  13543. The PDP-11 version of 'as' has a rich set of machine dependent options.
  13544. 9.34.1.1 Code Generation Options
  13545. ................................
  13546. '-mpic | -mno-pic'
  13547. Generate position-independent (or position-dependent) code.
  13548. The default is to generate position-independent code.
  13549. 9.34.1.2 Instruction Set Extension Options
  13550. ..........................................
  13551. These options enables or disables the use of extensions over the base
  13552. line instruction set as introduced by the first PDP-11 CPU: the KA11.
  13553. Most options come in two variants: a '-m'EXTENSION that enables
  13554. EXTENSION, and a '-mno-'EXTENSION that disables EXTENSION.
  13555. The default is to enable all extensions.
  13556. '-mall | -mall-extensions'
  13557. Enable all instruction set extensions.
  13558. '-mno-extensions'
  13559. Disable all instruction set extensions.
  13560. '-mcis | -mno-cis'
  13561. Enable (or disable) the use of the commercial instruction set,
  13562. which consists of these instructions: 'ADDNI', 'ADDN', 'ADDPI',
  13563. 'ADDP', 'ASHNI', 'ASHN', 'ASHPI', 'ASHP', 'CMPCI', 'CMPC', 'CMPNI',
  13564. 'CMPN', 'CMPPI', 'CMPP', 'CVTLNI', 'CVTLN', 'CVTLPI', 'CVTLP',
  13565. 'CVTNLI', 'CVTNL', 'CVTNPI', 'CVTNP', 'CVTPLI', 'CVTPL', 'CVTPNI',
  13566. 'CVTPN', 'DIVPI', 'DIVP', 'L2DR', 'L3DR', 'LOCCI', 'LOCC', 'MATCI',
  13567. 'MATC', 'MOVCI', 'MOVC', 'MOVRCI', 'MOVRC', 'MOVTCI', 'MOVTC',
  13568. 'MULPI', 'MULP', 'SCANCI', 'SCANC', 'SKPCI', 'SKPC', 'SPANCI',
  13569. 'SPANC', 'SUBNI', 'SUBN', 'SUBPI', and 'SUBP'.
  13570. '-mcsm | -mno-csm'
  13571. Enable (or disable) the use of the 'CSM' instruction.
  13572. '-meis | -mno-eis'
  13573. Enable (or disable) the use of the extended instruction set, which
  13574. consists of these instructions: 'ASHC', 'ASH', 'DIV', 'MARK',
  13575. 'MUL', 'RTT', 'SOB' 'SXT', and 'XOR'.
  13576. '-mfis | -mkev11'
  13577. '-mno-fis | -mno-kev11'
  13578. Enable (or disable) the use of the KEV11 floating-point
  13579. instructions: 'FADD', 'FDIV', 'FMUL', and 'FSUB'.
  13580. '-mfpp | -mfpu | -mfp-11'
  13581. '-mno-fpp | -mno-fpu | -mno-fp-11'
  13582. Enable (or disable) the use of FP-11 floating-point instructions:
  13583. 'ABSF', 'ADDF', 'CFCC', 'CLRF', 'CMPF', 'DIVF', 'LDCFF', 'LDCIF',
  13584. 'LDEXP', 'LDF', 'LDFPS', 'MODF', 'MULF', 'NEGF', 'SETD', 'SETF',
  13585. 'SETI', 'SETL', 'STCFF', 'STCFI', 'STEXP', 'STF', 'STFPS', 'STST',
  13586. 'SUBF', and 'TSTF'.
  13587. '-mlimited-eis | -mno-limited-eis'
  13588. Enable (or disable) the use of the limited extended instruction
  13589. set: 'MARK', 'RTT', 'SOB', 'SXT', and 'XOR'.
  13590. The -mno-limited-eis options also implies -mno-eis.
  13591. '-mmfpt | -mno-mfpt'
  13592. Enable (or disable) the use of the 'MFPT' instruction.
  13593. '-mmultiproc | -mno-multiproc'
  13594. Enable (or disable) the use of multiprocessor instructions:
  13595. 'TSTSET' and 'WRTLCK'.
  13596. '-mmxps | -mno-mxps'
  13597. Enable (or disable) the use of the 'MFPS' and 'MTPS' instructions.
  13598. '-mspl | -mno-spl'
  13599. Enable (or disable) the use of the 'SPL' instruction.
  13600. Enable (or disable) the use of the microcode instructions: 'LDUB',
  13601. 'MED', and 'XFC'.
  13602. 9.34.1.3 CPU Model Options
  13603. ..........................
  13604. These options enable the instruction set extensions supported by a
  13605. particular CPU, and disables all other extensions.
  13606. '-mka11'
  13607. KA11 CPU. Base line instruction set only.
  13608. '-mkb11'
  13609. KB11 CPU. Enable extended instruction set and 'SPL'.
  13610. '-mkd11a'
  13611. KD11-A CPU. Enable limited extended instruction set.
  13612. '-mkd11b'
  13613. KD11-B CPU. Base line instruction set only.
  13614. '-mkd11d'
  13615. KD11-D CPU. Base line instruction set only.
  13616. '-mkd11e'
  13617. KD11-E CPU. Enable extended instruction set, 'MFPS', and 'MTPS'.
  13618. '-mkd11f | -mkd11h | -mkd11q'
  13619. KD11-F, KD11-H, or KD11-Q CPU. Enable limited extended instruction
  13620. set, 'MFPS', and 'MTPS'.
  13621. '-mkd11k'
  13622. KD11-K CPU. Enable extended instruction set, 'LDUB', 'MED', 'MFPS',
  13623. 'MFPT', 'MTPS', and 'XFC'.
  13624. '-mkd11z'
  13625. KD11-Z CPU. Enable extended instruction set, 'CSM', 'MFPS', 'MFPT',
  13626. 'MTPS', and 'SPL'.
  13627. '-mf11'
  13628. F11 CPU. Enable extended instruction set, 'MFPS', 'MFPT', and
  13629. 'MTPS'.
  13630. '-mj11'
  13631. J11 CPU. Enable extended instruction set, 'CSM', 'MFPS', 'MFPT',
  13632. 'MTPS', 'SPL', 'TSTSET', and 'WRTLCK'.
  13633. '-mt11'
  13634. T11 CPU. Enable limited extended instruction set, 'MFPS', and
  13635. 'MTPS'.
  13636. 9.34.1.4 Machine Model Options
  13637. ..............................
  13638. These options enable the instruction set extensions supported by a
  13639. particular machine model, and disables all other extensions.
  13640. '-m11/03'
  13641. Same as '-mkd11f'.
  13642. '-m11/04'
  13643. Same as '-mkd11d'.
  13644. '-m11/05 | -m11/10'
  13645. Same as '-mkd11b'.
  13646. '-m11/15 | -m11/20'
  13647. Same as '-mka11'.
  13648. '-m11/21'
  13649. Same as '-mt11'.
  13650. '-m11/23 | -m11/24'
  13651. Same as '-mf11'.
  13652. '-m11/34'
  13653. Same as '-mkd11e'.
  13654. '-m11/34a'
  13655. Ame as '-mkd11e' '-mfpp'.
  13656. '-m11/35 | -m11/40'
  13657. Same as '-mkd11a'.
  13658. '-m11/44'
  13659. Same as '-mkd11z'.
  13660. '-m11/45 | -m11/50 | -m11/55 | -m11/70'
  13661. Same as '-mkb11'.
  13662. '-m11/53 | -m11/73 | -m11/83 | -m11/84 | -m11/93 | -m11/94'
  13663. Same as '-mj11'.
  13664. '-m11/60'
  13665. Same as '-mkd11k'.
  13666. 
  13667. File: as.info, Node: PDP-11-Pseudos, Next: PDP-11-Syntax, Prev: PDP-11-Options, Up: PDP-11-Dependent
  13668. 9.34.2 Assembler Directives
  13669. ---------------------------
  13670. The PDP-11 version of 'as' has a few machine dependent assembler
  13671. directives.
  13672. '.bss'
  13673. Switch to the 'bss' section.
  13674. '.even'
  13675. Align the location counter to an even number.
  13676. 
  13677. File: as.info, Node: PDP-11-Syntax, Next: PDP-11-Mnemonics, Prev: PDP-11-Pseudos, Up: PDP-11-Dependent
  13678. 9.34.3 PDP-11 Assembly Language Syntax
  13679. --------------------------------------
  13680. 'as' supports both DEC syntax and BSD syntax. The only difference is
  13681. that in DEC syntax, a '#' character is used to denote an immediate
  13682. constants, while in BSD syntax the character for this purpose is '$'.
  13683. general-purpose registers are named 'r0' through 'r7'. Mnemonic
  13684. alternatives for 'r6' and 'r7' are 'sp' and 'pc', respectively.
  13685. Floating-point registers are named 'ac0' through 'ac3', or
  13686. alternatively 'fr0' through 'fr3'.
  13687. Comments are started with a '#' or a '/' character, and extend to the
  13688. end of the line. (FIXME: clash with immediates?)
  13689. Multiple statements on the same line can be separated by the ';'
  13690. character.
  13691. 
  13692. File: as.info, Node: PDP-11-Mnemonics, Next: PDP-11-Synthetic, Prev: PDP-11-Syntax, Up: PDP-11-Dependent
  13693. 9.34.4 Instruction Naming
  13694. -------------------------
  13695. Some instructions have alternative names.
  13696. 'BCC'
  13697. 'BHIS'
  13698. 'BCS'
  13699. 'BLO'
  13700. 'L2DR'
  13701. 'L2D'
  13702. 'L3DR'
  13703. 'L3D'
  13704. 'SYS'
  13705. 'TRAP'
  13706. 
  13707. File: as.info, Node: PDP-11-Synthetic, Prev: PDP-11-Mnemonics, Up: PDP-11-Dependent
  13708. 9.34.5 Synthetic Instructions
  13709. -----------------------------
  13710. The 'JBR' and 'J'CC synthetic instructions are not supported yet.
  13711. 
  13712. File: as.info, Node: PJ-Dependent, Next: PPC-Dependent, Prev: PDP-11-Dependent, Up: Machine Dependencies
  13713. 9.35 picoJava Dependent Features
  13714. ================================
  13715. * Menu:
  13716. * PJ Options:: Options
  13717. * PJ Syntax:: PJ Syntax
  13718. 
  13719. File: as.info, Node: PJ Options, Next: PJ Syntax, Up: PJ-Dependent
  13720. 9.35.1 Options
  13721. --------------
  13722. 'as' has two additional command-line options for the picoJava
  13723. architecture.
  13724. '-ml'
  13725. This option selects little endian data output.
  13726. '-mb'
  13727. This option selects big endian data output.
  13728. 
  13729. File: as.info, Node: PJ Syntax, Prev: PJ Options, Up: PJ-Dependent
  13730. 9.35.2 PJ Syntax
  13731. ----------------
  13732. * Menu:
  13733. * PJ-Chars:: Special Characters
  13734. 
  13735. File: as.info, Node: PJ-Chars, Up: PJ Syntax
  13736. 9.35.2.1 Special Characters
  13737. ...........................
  13738. The presence of a '!' or '/' on a line indicates the start of a comment
  13739. that extends to the end of the current line.
  13740. If a '#' appears as the first character of a line then the whole line
  13741. is treated as a comment, but in this case the line could also be a
  13742. logical line number directive (*note Comments::) or a preprocessor
  13743. control command (*note Preprocessing::).
  13744. The ';' character can be used to separate statements on the same
  13745. line.
  13746. 
  13747. File: as.info, Node: PPC-Dependent, Next: PRU-Dependent, Prev: PJ-Dependent, Up: Machine Dependencies
  13748. 9.36 PowerPC Dependent Features
  13749. ===============================
  13750. * Menu:
  13751. * PowerPC-Opts:: Options
  13752. * PowerPC-Pseudo:: PowerPC Assembler Directives
  13753. * PowerPC-Syntax:: PowerPC Syntax
  13754. 
  13755. File: as.info, Node: PowerPC-Opts, Next: PowerPC-Pseudo, Up: PPC-Dependent
  13756. 9.36.1 Options
  13757. --------------
  13758. The PowerPC chip family includes several successive levels, using the
  13759. same core instruction set, but including a few additional instructions
  13760. at each level. There are exceptions to this however. For details on
  13761. what instructions each variant supports, please see the chip's
  13762. architecture reference manual.
  13763. The following table lists all available PowerPC options.
  13764. '-a32'
  13765. Generate ELF32 or XCOFF32.
  13766. '-a64'
  13767. Generate ELF64 or XCOFF64.
  13768. '-K PIC'
  13769. Set EF_PPC_RELOCATABLE_LIB in ELF flags.
  13770. '-mpwrx | -mpwr2'
  13771. Generate code for POWER/2 (RIOS2).
  13772. '-mpwr'
  13773. Generate code for POWER (RIOS1)
  13774. '-m601'
  13775. Generate code for PowerPC 601.
  13776. '-mppc, -mppc32, -m603, -m604'
  13777. Generate code for PowerPC 603/604.
  13778. '-m403, -m405'
  13779. Generate code for PowerPC 403/405.
  13780. '-m440'
  13781. Generate code for PowerPC 440. BookE and some 405 instructions.
  13782. '-m464'
  13783. Generate code for PowerPC 464.
  13784. '-m476'
  13785. Generate code for PowerPC 476.
  13786. '-m7400, -m7410, -m7450, -m7455'
  13787. Generate code for PowerPC 7400/7410/7450/7455.
  13788. '-m750cl, -mgekko, -mbroadway'
  13789. Generate code for PowerPC 750CL/Gekko/Broadway.
  13790. '-m821, -m850, -m860'
  13791. Generate code for PowerPC 821/850/860.
  13792. '-mppc64, -m620'
  13793. Generate code for PowerPC 620/625/630.
  13794. '-me500, -me500x2'
  13795. Generate code for Motorola e500 core complex.
  13796. '-me500mc'
  13797. Generate code for Freescale e500mc core complex.
  13798. '-me500mc64'
  13799. Generate code for Freescale e500mc64 core complex.
  13800. '-me5500'
  13801. Generate code for Freescale e5500 core complex.
  13802. '-me6500'
  13803. Generate code for Freescale e6500 core complex.
  13804. '-mspe'
  13805. Generate code for Motorola SPE instructions.
  13806. '-mspe2'
  13807. Generate code for Freescale SPE2 instructions.
  13808. '-mtitan'
  13809. Generate code for AppliedMicro Titan core complex.
  13810. '-mppc64bridge'
  13811. Generate code for PowerPC 64, including bridge insns.
  13812. '-mbooke'
  13813. Generate code for 32-bit BookE.
  13814. '-ma2'
  13815. Generate code for A2 architecture.
  13816. '-me300'
  13817. Generate code for PowerPC e300 family.
  13818. '-maltivec'
  13819. Generate code for processors with AltiVec instructions.
  13820. '-mvle'
  13821. Generate code for Freescale PowerPC VLE instructions.
  13822. '-mvsx'
  13823. Generate code for processors with Vector-Scalar (VSX) instructions.
  13824. '-mhtm'
  13825. Generate code for processors with Hardware Transactional Memory
  13826. instructions.
  13827. '-mpower4, -mpwr4'
  13828. Generate code for Power4 architecture.
  13829. '-mpower5, -mpwr5, -mpwr5x'
  13830. Generate code for Power5 architecture.
  13831. '-mpower6, -mpwr6'
  13832. Generate code for Power6 architecture.
  13833. '-mpower7, -mpwr7'
  13834. Generate code for Power7 architecture.
  13835. '-mpower8, -mpwr8'
  13836. Generate code for Power8 architecture.
  13837. '-mpower9, -mpwr9'
  13838. Generate code for Power9 architecture.
  13839. '-mcell'
  13840. '-mcell'
  13841. Generate code for Cell Broadband Engine architecture.
  13842. '-mcom'
  13843. Generate code Power/PowerPC common instructions.
  13844. '-many'
  13845. Generate code for any architecture (PWR/PWRX/PPC).
  13846. '-mregnames'
  13847. Allow symbolic names for registers.
  13848. '-mno-regnames'
  13849. Do not allow symbolic names for registers.
  13850. '-mrelocatable'
  13851. Support for GCC's -mrelocatable option.
  13852. '-mrelocatable-lib'
  13853. Support for GCC's -mrelocatable-lib option.
  13854. '-memb'
  13855. Set PPC_EMB bit in ELF flags.
  13856. '-mlittle, -mlittle-endian, -le'
  13857. Generate code for a little endian machine.
  13858. '-mbig, -mbig-endian, -be'
  13859. Generate code for a big endian machine.
  13860. '-msolaris'
  13861. Generate code for Solaris.
  13862. '-mno-solaris'
  13863. Do not generate code for Solaris.
  13864. '-nops=COUNT'
  13865. If an alignment directive inserts more than COUNT nops, put a
  13866. branch at the beginning to skip execution of the nops.
  13867. 
  13868. File: as.info, Node: PowerPC-Pseudo, Next: PowerPC-Syntax, Prev: PowerPC-Opts, Up: PPC-Dependent
  13869. 9.36.2 PowerPC Assembler Directives
  13870. -----------------------------------
  13871. A number of assembler directives are available for PowerPC. The
  13872. following table is far from complete.
  13873. '.machine "string"'
  13874. This directive allows you to change the machine for which code is
  13875. generated. '"string"' may be any of the -m cpu selection options
  13876. (without the -m) enclosed in double quotes, '"push"', or '"pop"'.
  13877. '.machine "push"' saves the currently selected cpu, which may be
  13878. restored with '.machine "pop"'.
  13879. 
  13880. File: as.info, Node: PowerPC-Syntax, Prev: PowerPC-Pseudo, Up: PPC-Dependent
  13881. 9.36.3 PowerPC Syntax
  13882. ---------------------
  13883. * Menu:
  13884. * PowerPC-Chars:: Special Characters
  13885. 
  13886. File: as.info, Node: PowerPC-Chars, Up: PowerPC-Syntax
  13887. 9.36.3.1 Special Characters
  13888. ...........................
  13889. The presence of a '#' on a line indicates the start of a comment that
  13890. extends to the end of the current line.
  13891. If a '#' appears as the first character of a line then the whole line
  13892. is treated as a comment, but in this case the line could also be a
  13893. logical line number directive (*note Comments::) or a preprocessor
  13894. control command (*note Preprocessing::).
  13895. If the assembler has been configured for the ppc-*-solaris* target
  13896. then the '!' character also acts as a line comment character. This can
  13897. be disabled via the '-mno-solaris' command-line option.
  13898. The ';' character can be used to separate statements on the same
  13899. line.
  13900. 
  13901. File: as.info, Node: PRU-Dependent, Next: RISC-V-Dependent, Prev: PPC-Dependent, Up: Machine Dependencies
  13902. 9.37 PRU Dependent Features
  13903. ===========================
  13904. * Menu:
  13905. * PRU Options:: Options
  13906. * PRU Syntax:: Syntax
  13907. * PRU Relocations:: Relocations
  13908. * PRU Directives:: PRU Machine Directives
  13909. * PRU Opcodes:: Opcodes
  13910. 
  13911. File: as.info, Node: PRU Options, Next: PRU Syntax, Up: PRU-Dependent
  13912. 9.37.1 Options
  13913. --------------
  13914. '-mlink-relax'
  13915. Assume that LD would optimize LDI32 instructions by checking the
  13916. upper 16 bits of the EXPRESSION. If they are all zeros, then LD
  13917. would shorten the LDI32 instruction to a single LDI. In such case
  13918. 'as' will output DIFF relocations for diff expressions.
  13919. '-mno-link-relax'
  13920. Assume that LD would not optimize LDI32 instructions. As a
  13921. consequence, DIFF relocations will not be emitted.
  13922. '-mno-warn-regname-label'
  13923. Do not warn if a label name matches a register name. Usually
  13924. assembler programmers will want this warning to be emitted. C
  13925. compilers may want to turn this off.
  13926. 
  13927. File: as.info, Node: PRU Syntax, Next: PRU Relocations, Prev: PRU Options, Up: PRU-Dependent
  13928. 9.37.2 Syntax
  13929. -------------
  13930. * Menu:
  13931. * PRU Chars:: Special Characters
  13932. 
  13933. File: as.info, Node: PRU Chars, Up: PRU Syntax
  13934. 9.37.2.1 Special Characters
  13935. ...........................
  13936. '#' and ';' are the line comment characters.
  13937. 
  13938. File: as.info, Node: PRU Relocations, Next: PRU Directives, Prev: PRU Syntax, Up: PRU-Dependent
  13939. 9.37.3 PRU Machine Relocations
  13940. ------------------------------
  13941. '%pmem(EXPRESSION)'
  13942. Convert EXPRESSION from byte-address to a word-address. In other
  13943. words, shift right by two.
  13944. '%label(EXPRESSION)'
  13945. Mark the given operand as a label. This is useful if you need to
  13946. jump to a label that matches a register name.
  13947. r1:
  13948. jmp r1 ; Will jump to register R1
  13949. jmp %label(r1) ; Will jump to label r1
  13950. 
  13951. File: as.info, Node: PRU Directives, Next: PRU Opcodes, Prev: PRU Relocations, Up: PRU-Dependent
  13952. 9.37.4 PRU Machine Directives
  13953. -----------------------------
  13954. '.align EXPRESSION [, EXPRESSION]'
  13955. This is the generic '.align' directive, however this aligns to a
  13956. power of two.
  13957. '.word EXPRESSION'
  13958. Create an aligned constant 4 bytes in size.
  13959. '.dword EXPRESSION'
  13960. Create an aligned constant 8 bytes in size.
  13961. '.2byte EXPRESSION'
  13962. Create an unaligned constant 2 bytes in size.
  13963. '.4byte EXPRESSION'
  13964. Create an unaligned constant 4 bytes in size.
  13965. '.8byte EXPRESSION'
  13966. Create an unaligned constant 8 bytes in size.
  13967. '.16byte EXPRESSION'
  13968. Create an unaligned constant 16 bytes in size.
  13969. '.set no_warn_regname_label'
  13970. Do not output warnings when a label name matches a register name.
  13971. Equivalent to passing the '-mno-warn-regname-label' command-line
  13972. option.
  13973. 
  13974. File: as.info, Node: PRU Opcodes, Prev: PRU Directives, Up: PRU-Dependent
  13975. 9.37.5 Opcodes
  13976. --------------
  13977. 'as' implements all the standard PRU core V3 opcodes in the original
  13978. pasm assembler. Older cores are not supported by 'as'.
  13979. GAS also implements the LDI32 pseudo instruction for loading a 32-bit
  13980. immediate value into a register.
  13981. ldi32 sp, __stack_top
  13982. ldi32 r14, 0x12345678
  13983. 
  13984. File: as.info, Node: RISC-V-Dependent, Next: RL78-Dependent, Prev: PRU-Dependent, Up: Machine Dependencies
  13985. 9.38 RISC-V Dependent Features
  13986. ==============================
  13987. * Menu:
  13988. * RISC-V-Options:: RISC-V Options
  13989. * RISC-V-Directives:: RISC-V Directives
  13990. * RISC-V-Formats:: RISC-V Instruction Formats
  13991. * RISC-V-ATTRIBUTE:: RISC-V Object Attribute
  13992. 
  13993. File: as.info, Node: RISC-V-Options, Next: RISC-V-Directives, Up: RISC-V-Dependent
  13994. 9.38.1 RISC-V Options
  13995. ---------------------
  13996. The following table lists all available RISC-V specific options.
  13997. '-fpic'
  13998. '-fPIC'
  13999. Generate position-independent code
  14000. '-fno-pic'
  14001. Don't generate position-independent code (default)
  14002. '-march=ISA'
  14003. Select the base isa, as specified by ISA. For example
  14004. -march=rv32ima.
  14005. '-mabi=ABI'
  14006. Selects the ABI, which is either "ilp32" or "lp64", optionally
  14007. followed by "f", "d", or "q" to indicate single-precision,
  14008. double-precision, or quad-precision floating-point calling
  14009. convention, or none to indicate the soft-float calling convention.
  14010. Also, "ilp32" can optionally be followed by "e" to indicate the RVE
  14011. ABI, which is always soft-float.
  14012. '-mrelax'
  14013. Take advantage of linker relaxations to reduce the number of
  14014. instructions required to materialize symbol addresses. (default)
  14015. '-mno-relax'
  14016. Don't do linker relaxations.
  14017. 
  14018. File: as.info, Node: RISC-V-Directives, Next: RISC-V-Formats, Prev: RISC-V-Options, Up: RISC-V-Dependent
  14019. 9.38.2 RISC-V Directives
  14020. ------------------------
  14021. The following table lists all available RISC-V specific directives.
  14022. '.align SIZE-LOG-2'
  14023. Align to the given boundary, with the size given as log2 the number
  14024. of bytes to align to.
  14025. '.half VALUE'
  14026. '.word VALUE'
  14027. '.dword VALUE'
  14028. Emits a half-word, word, or double-word value at the current
  14029. position.
  14030. '.dtprelword VALUE'
  14031. '.dtpreldword VALUE'
  14032. Emits a DTP-relative word (or double-word) at the current position.
  14033. This is meant to be used by the compiler in shared libraries for
  14034. DWARF debug info for thread local variables.
  14035. '.bss'
  14036. Sets the current section to the BSS section.
  14037. '.uleb128 VALUE'
  14038. '.sleb128 VALUE'
  14039. Emits a signed or unsigned LEB128 value at the current position.
  14040. This only accepts constant expressions, because symbol addresses
  14041. can change with relaxation, and we don't support relocations to
  14042. modify LEB128 values at link time.
  14043. '.option ARGUMENT'
  14044. Modifies RISC-V specific assembler options inline with the assembly
  14045. code. This is used when particular instruction sequences must be
  14046. assembled with a specific set of options. For example, since we
  14047. relax addressing sequences to shorter GP-relative sequences when
  14048. possible the initial load of GP must not be relaxed and should be
  14049. emitted as something like
  14050. .option push
  14051. .option norelax
  14052. la gp, __global_pointer$
  14053. .option pop
  14054. in order to produce after linker relaxation the expected
  14055. auipc gp, %pcrel_hi(__global_pointer$)
  14056. addi gp, gp, %pcrel_lo(__global_pointer$)
  14057. instead of just
  14058. addi gp, gp, 0
  14059. It's not expected that options are changed in this manner during
  14060. regular use, but there are a handful of esoteric cases like the one
  14061. above where users need to disable particular features of the
  14062. assembler for particular code sequences. The complete list of
  14063. option arguments is shown below:
  14064. 'push'
  14065. 'pop'
  14066. Pushes or pops the current option stack. These should be used
  14067. whenever changing an option in line with assembly code in
  14068. order to ensure the user's command-line options are respected
  14069. for the bulk of the file being assembled.
  14070. 'rvc'
  14071. 'norvc'
  14072. Enables or disables the generation of compressed instructions.
  14073. Instructions are opportunistically compressed by the RISC-V
  14074. assembler when possible, but sometimes this behavior is not
  14075. desirable.
  14076. 'pic'
  14077. 'nopic'
  14078. Enables or disables position-independent code generation.
  14079. Unless you really know what you're doing, this should only be
  14080. at the top of a file.
  14081. 'relax'
  14082. 'norelax'
  14083. Enables or disables relaxation. The RISC-V assembler and
  14084. linker opportunistically relax some code sequences, but
  14085. sometimes this behavior is not desirable.
  14086. '.insn VALUE'
  14087. '.insn VALUE'
  14088. This directive permits the numeric representation of an
  14089. instructions and makes the assembler insert the operands according
  14090. to one of the instruction formats for '.insn' (*note
  14091. RISC-V-Formats::). For example, the instruction 'add a0, a1, a2'
  14092. could be written as '.insn r 0x33, 0, 0, a0, a1, a2'.
  14093. '.attribute TAG, VALUE'
  14094. Set the object attribute TAG to VALUE.
  14095. The TAG is either an attribute number, or one of the following:
  14096. 'Tag_RISCV_arch', 'Tag_RISCV_stack_align',
  14097. 'Tag_RISCV_unaligned_access', 'Tag_RISCV_priv_spec',
  14098. 'Tag_RISCV_priv_spec_minor', 'Tag_RISCV_priv_spec_revision'.
  14099. 
  14100. File: as.info, Node: RISC-V-Formats, Next: RISC-V-ATTRIBUTE, Prev: RISC-V-Directives, Up: RISC-V-Dependent
  14101. 9.38.3 Instruction Formats
  14102. --------------------------
  14103. The RISC-V Instruction Set Manual Volume I: User-Level ISA lists 12
  14104. instruction formats where some of the formats have multiple variants.
  14105. For the '.insn' pseudo directive the assembler recognizes some of the
  14106. formats. Typically, the most general variant of the instruction format
  14107. is used by the '.insn' directive.
  14108. The following table lists the abbreviations used in the table of
  14109. instruction formats:
  14110. opcode Unsigned immediate or opcode name for 7-bits opcode.
  14111. opcode2 Unsigned immediate or opcode name for 2-bits opcode.
  14112. func7 Unsigned immediate for 7-bits function code.
  14113. func6 Unsigned immediate for 6-bits function code.
  14114. func4 Unsigned immediate for 4-bits function code.
  14115. func3 Unsigned immediate for 3-bits function code.
  14116. func2 Unsigned immediate for 2-bits function code.
  14117. rd Destination register number for operand x, can be GPR or FPR.
  14118. rd' Destination register number for operand x,
  14119. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14120. rs1 First source register number for operand x, can be GPR or FPR.
  14121. rs1' First source register number for operand x,
  14122. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14123. rs2 Second source register number for operand x, can be GPR or FPR.
  14124. rs2' Second source register number for operand x,
  14125. only accept s0-s1, a0-a5, fs0-fs1 and fa0-fa5.
  14126. simm12 Sign-extended 12-bit immediate for operand x.
  14127. simm20 Sign-extended 20-bit immediate for operand x.
  14128. simm6 Sign-extended 6-bit immediate for operand x.
  14129. uimm8 Unsigned 8-bit immediate for operand x.
  14130. symbol Symbol or lable reference for operand x.
  14131. The following table lists all available opcode name:
  14132. 'C0'
  14133. 'C1'
  14134. 'C2'
  14135. Opcode space for compressed instructions.
  14136. 'LOAD'
  14137. Opcode space for load instructions.
  14138. 'LOAD_FP'
  14139. Opcode space for floating-point load instructions.
  14140. 'STORE'
  14141. Opcode space for store instructions.
  14142. 'STORE_FP'
  14143. Opcode space for floating-point store instructions.
  14144. 'AUIPC'
  14145. Opcode space for auipc instruction.
  14146. 'LUI'
  14147. Opcode space for lui instruction.
  14148. 'BRANCH'
  14149. Opcode space for branch instructions.
  14150. 'JAL'
  14151. Opcode space for jal instruction.
  14152. 'JALR'
  14153. Opcode space for jalr instruction.
  14154. 'OP'
  14155. Opcode space for ALU instructions.
  14156. 'OP_32'
  14157. Opcode space for 32-bits ALU instructions.
  14158. 'OP_IMM'
  14159. Opcode space for ALU with immediate instructions.
  14160. 'OP_IMM_32'
  14161. Opcode space for 32-bits ALU with immediate instructions.
  14162. 'OP_FP'
  14163. Opcode space for floating-point operation instructions.
  14164. 'MADD'
  14165. Opcode space for madd instruction.
  14166. 'MSUB'
  14167. Opcode space for msub instruction.
  14168. 'NMADD'
  14169. Opcode space for nmadd instruction.
  14170. 'NMSUB'
  14171. Opcode space for msub instruction.
  14172. 'AMO'
  14173. Opcode space for atomic memory operation instructions.
  14174. 'MISC_MEM'
  14175. Opcode space for misc instructions.
  14176. 'SYSTEM'
  14177. Opcode space for system instructions.
  14178. 'CUSTOM_0'
  14179. 'CUSTOM_1'
  14180. 'CUSTOM_2'
  14181. 'CUSTOM_3'
  14182. Opcode space for customize instructions.
  14183. An instruction is two or four bytes in length and must be aligned on
  14184. a 2 byte boundary. The first two bits of the instruction specify the
  14185. length of the instruction, 00, 01 and 10 indicates a two byte
  14186. instruction, 11 indicates a four byte instruction.
  14187. The following table lists the RISC-V instruction formats that are
  14188. available with the '.insn' pseudo directive:
  14189. 'R type: .insn r opcode, func3, func7, rd, rs1, rs2'
  14190. +-------+-----+-----+-------+----+-------------+
  14191. | func7 | rs2 | rs1 | func3 | rd | opcode |
  14192. +-------+-----+-----+-------+----+-------------+
  14193. 31 25 20 15 12 7 0
  14194. 'R type with 4 register operands: .insn r opcode, func3, func2, rd, rs1, rs2, rs3'
  14195. 'R4 type: .insn r4 opcode, func3, func2, rd, rs1, rs2, rs3'
  14196. +-----+-------+-----+-----+-------+----+-------------+
  14197. | rs3 | func2 | rs2 | rs1 | func3 | rd | opcode |
  14198. +-----+-------+-----+-----+-------+----+-------------+
  14199. 31 27 25 20 15 12 7 0
  14200. 'I type: .insn i opcode, func3, rd, rs1, simm12'
  14201. +-------------+-----+-------+----+-------------+
  14202. | simm12 | rs1 | func3 | rd | opcode |
  14203. +-------------+-----+-------+----+-------------+
  14204. 31 20 15 12 7 0
  14205. 'S type: .insn s opcode, func3, rd, rs1, simm12'
  14206. +--------------+-----+-----+-------+-------------+-------------+
  14207. | simm12[11:5] | rs2 | rs1 | func3 | simm12[4:0] | opcode |
  14208. +--------------+-----+-----+-------+-------------+-------------+
  14209. 31 25 20 15 12 7 0
  14210. 'SB type: .insn sb opcode, func3, rd, rs1, symbol'
  14211. 'SB type: .insn sb opcode, func3, rd, simm12(rs1)'
  14212. 'B type: .insn s opcode, func3, rd, rs1, symbol'
  14213. 'B type: .insn s opcode, func3, rd, simm12(rs1)'
  14214. +------------+--------------+-----+-----+-------+-------------+-------------+--------+
  14215. | simm12[12] | simm12[10:5] | rs2 | rs1 | func3 | simm12[4:1] | simm12[11]] | opcode |
  14216. +------------+--------------+-----+-----+-------+-------------+-------------+--------+
  14217. 31 30 25 20 15 12 7 0
  14218. 'U type: .insn u opcode, rd, simm20'
  14219. +---------------------------+----+-------------+
  14220. | simm20 | rd | opcode |
  14221. +---------------------------+----+-------------+
  14222. 31 12 7 0
  14223. 'UJ type: .insn uj opcode, rd, symbol'
  14224. 'J type: .insn j opcode, rd, symbol'
  14225. +------------+--------------+------------+---------------+----+-------------+
  14226. | simm20[20] | simm20[10:1] | simm20[11] | simm20[19:12] | rd | opcode |
  14227. +------------+--------------+------------+---------------+----+-------------+
  14228. 31 30 21 20 12 7 0
  14229. 'CR type: .insn cr opcode2, func4, rd, rs2'
  14230. +---------+--------+-----+---------+
  14231. | func4 | rd/rs1 | rs2 | opcode2 |
  14232. +---------+--------+-----+---------+
  14233. 15 12 7 2 0
  14234. 'CI type: .insn ci opcode2, func3, rd, simm6'
  14235. +---------+-----+--------+-----+---------+
  14236. | func3 | imm | rd/rs1 | imm | opcode2 |
  14237. +---------+-----+--------+-----+---------+
  14238. 15 13 12 7 2 0
  14239. 'CIW type: .insn ciw opcode2, func3, rd, uimm8'
  14240. +---------+--------------+-----+---------+
  14241. | func3 | imm | rd' | opcode2 |
  14242. +---------+--------------+-----+---------+
  14243. 15 13 7 2 0
  14244. 'CA type: .insn ca opcode2, func6, func2, rd, rs2'
  14245. +---------+----------+-------+------+--------+
  14246. | func6 | rd'/rs1' | func2 | rs2' | opcode |
  14247. +---------+----------+-------+------+--------+
  14248. 15 10 7 5 2 0
  14249. 'CB type: .insn cb opcode2, func3, rs1, symbol'
  14250. +---------+--------+------+--------+---------+
  14251. | func3 | offset | rs1' | offset | opcode2 |
  14252. +---------+--------+------+--------+---------+
  14253. 15 13 10 7 2 0
  14254. 'CJ type: .insn cj opcode2, symbol'
  14255. +---------+--------------------+---------+
  14256. | func3 | jump target | opcode2 |
  14257. +---------+--------------------+---------+
  14258. 15 13 7 2 0
  14259. For the complete list of all instruction format variants see The
  14260. RISC-V Instruction Set Manual Volume I: User-Level ISA.
  14261. 
  14262. File: as.info, Node: RISC-V-ATTRIBUTE, Prev: RISC-V-Formats, Up: RISC-V-Dependent
  14263. 9.38.4 RISC-V Object Attribute
  14264. ------------------------------
  14265. RISC-V attributes have a string value if the tag number is odd and an
  14266. integer value if the tag number is even.
  14267. Tag_RISCV_stack_align (4)
  14268. Tag_RISCV_strict_align records the N-byte stack alignment for this
  14269. object. The default value is 16 for RV32I or RV64I, and 4 for
  14270. RV32E.
  14271. The smallest value will be used if object files with different
  14272. Tag_RISCV_stack_align values are merged.
  14273. Tag_RISCV_arch (5)
  14274. Tag_RISCV_arch contains a string for the target architecture taken
  14275. from the option '-march'. Different architectures will be
  14276. integrated into a superset when object files are merged.
  14277. Note that the version information of the target architecture must
  14278. be presented explicitly in the attribute and abbreviations must be
  14279. expanded. The version information, if not given by '-march', must
  14280. be in accordance with the default specified by the tool. For
  14281. example, the architecture 'RV32I' has to be recorded in the
  14282. attribute as 'RV32I2P0' in which '2P0' stands for the default
  14283. version of its base ISA. On the other hand, the architecture
  14284. 'RV32G' has to be presented as 'RV32I2P0_M2P0_A2P0_F2P0_D2P0' in
  14285. which the abbreviation 'G' is expanded to the 'IMAFD' combination
  14286. with default versions of the standard extensions.
  14287. Tag_RISCV_unaligned_access (6)
  14288. Tag_RISCV_unaligned_access is 0 for files that do not allow any
  14289. unaligned memory accesses, and 1 for files that do allow unaligned
  14290. memory accesses.
  14291. Tag_RISCV_priv_spec (8)
  14292. Tag_RISCV_priv_spec_minor (10)
  14293. Tag_RISCV_priv_spec_revision (12)
  14294. Tag_RISCV_priv_spec contains the major/minor/revision version
  14295. information of the privileged specification. It will report errors
  14296. if object files of different privileged specification versions are
  14297. merged.
  14298. 
  14299. File: as.info, Node: RL78-Dependent, Next: RX-Dependent, Prev: RISC-V-Dependent, Up: Machine Dependencies
  14300. 9.39 RL78 Dependent Features
  14301. ============================
  14302. * Menu:
  14303. * RL78-Opts:: RL78 Assembler Command-line Options
  14304. * RL78-Modifiers:: Symbolic Operand Modifiers
  14305. * RL78-Directives:: Assembler Directives
  14306. * RL78-Syntax:: Syntax
  14307. 
  14308. File: as.info, Node: RL78-Opts, Next: RL78-Modifiers, Up: RL78-Dependent
  14309. 9.39.1 RL78 Options
  14310. -------------------
  14311. 'relax'
  14312. Enable support for link-time relaxation.
  14313. 'norelax'
  14314. Disable support for link-time relaxation (default).
  14315. 'mg10'
  14316. Mark the generated binary as targeting the G10 variant of the RL78
  14317. architecture.
  14318. 'mg13'
  14319. Mark the generated binary as targeting the G13 variant of the RL78
  14320. architecture.
  14321. 'mg14'
  14322. 'mrl78'
  14323. Mark the generated binary as targeting the G14 variant of the RL78
  14324. architecture. This is the default.
  14325. 'm32bit-doubles'
  14326. Mark the generated binary as one that uses 32-bits to hold the
  14327. 'double' floating point type. This is the default.
  14328. 'm64bit-doubles'
  14329. Mark the generated binary as one that uses 64-bits to hold the
  14330. 'double' floating point type.
  14331. 
  14332. File: as.info, Node: RL78-Modifiers, Next: RL78-Directives, Prev: RL78-Opts, Up: RL78-Dependent
  14333. 9.39.2 Symbolic Operand Modifiers
  14334. ---------------------------------
  14335. The RL78 has three modifiers that adjust the relocations used by the
  14336. linker:
  14337. '%lo16()'
  14338. When loading a 20-bit (or wider) address into registers, this
  14339. modifier selects the 16 least significant bits.
  14340. movw ax,#%lo16(_sym)
  14341. '%hi16()'
  14342. When loading a 20-bit (or wider) address into registers, this
  14343. modifier selects the 16 most significant bits.
  14344. movw ax,#%hi16(_sym)
  14345. '%hi8()'
  14346. When loading a 20-bit (or wider) address into registers, this
  14347. modifier selects the 8 bits that would go into CS or ES (i.e. bits
  14348. 23..16).
  14349. mov es, #%hi8(_sym)
  14350. 
  14351. File: as.info, Node: RL78-Directives, Next: RL78-Syntax, Prev: RL78-Modifiers, Up: RL78-Dependent
  14352. 9.39.3 Assembler Directives
  14353. ---------------------------
  14354. In addition to the common directives, the RL78 adds these:
  14355. '.double'
  14356. Output a constant in "double" format, which is either a 32-bit or a
  14357. 64-bit floating point value, depending upon the setting of the
  14358. '-m32bit-doubles'|'-m64bit-doubles' command-line option.
  14359. '.bss'
  14360. Select the BSS section.
  14361. '.3byte'
  14362. Output a constant value in a three byte format.
  14363. '.int'
  14364. '.word'
  14365. Output a constant value in a four byte format.
  14366. 
  14367. File: as.info, Node: RL78-Syntax, Prev: RL78-Directives, Up: RL78-Dependent
  14368. 9.39.4 Syntax for the RL78
  14369. --------------------------
  14370. * Menu:
  14371. * RL78-Chars:: Special Characters
  14372. 
  14373. File: as.info, Node: RL78-Chars, Up: RL78-Syntax
  14374. 9.39.4.1 Special Characters
  14375. ...........................
  14376. The presence of a ';' appearing anywhere on a line indicates the start
  14377. of a comment that extends to the end of that line.
  14378. If a '#' appears as the first character of a line then the whole line
  14379. is treated as a comment, but in this case the line can also be a logical
  14380. line number directive (*note Comments::) or a preprocessor control
  14381. command (*note Preprocessing::).
  14382. The '|' character can be used to separate statements on the same
  14383. line.
  14384. 
  14385. File: as.info, Node: RX-Dependent, Next: S/390-Dependent, Prev: RL78-Dependent, Up: Machine Dependencies
  14386. 9.40 RX Dependent Features
  14387. ==========================
  14388. * Menu:
  14389. * RX-Opts:: RX Assembler Command-line Options
  14390. * RX-Modifiers:: Symbolic Operand Modifiers
  14391. * RX-Directives:: Assembler Directives
  14392. * RX-Float:: Floating Point
  14393. * RX-Syntax:: Syntax
  14394. 
  14395. File: as.info, Node: RX-Opts, Next: RX-Modifiers, Up: RX-Dependent
  14396. 9.40.1 RX Options
  14397. -----------------
  14398. The Renesas RX port of 'as' has a few target specific command-line
  14399. options:
  14400. '-m32bit-doubles'
  14401. This option controls the ABI and indicates to use a 32-bit float
  14402. ABI. It has no effect on the assembled instructions, but it does
  14403. influence the behaviour of the '.double' pseudo-op. This is the
  14404. default.
  14405. '-m64bit-doubles'
  14406. This option controls the ABI and indicates to use a 64-bit float
  14407. ABI. It has no effect on the assembled instructions, but it does
  14408. influence the behaviour of the '.double' pseudo-op.
  14409. '-mbig-endian'
  14410. This option controls the ABI and indicates to use a big-endian data
  14411. ABI. It has no effect on the assembled instructions, but it does
  14412. influence the behaviour of the '.short', '.hword', '.int', '.word',
  14413. '.long', '.quad' and '.octa' pseudo-ops.
  14414. '-mlittle-endian'
  14415. This option controls the ABI and indicates to use a little-endian
  14416. data ABI. It has no effect on the assembled instructions, but it
  14417. does influence the behaviour of the '.short', '.hword', '.int',
  14418. '.word', '.long', '.quad' and '.octa' pseudo-ops. This is the
  14419. default.
  14420. '-muse-conventional-section-names'
  14421. This option controls the default names given to the code (.text),
  14422. initialised data (.data) and uninitialised data sections (.bss).
  14423. '-muse-renesas-section-names'
  14424. This option controls the default names given to the code (.P),
  14425. initialised data (.D_1) and uninitialised data sections (.B_1).
  14426. This is the default.
  14427. '-msmall-data-limit'
  14428. This option tells the assembler that the small data limit feature
  14429. of the RX port of GCC is being used. This results in the assembler
  14430. generating an undefined reference to a symbol called '__gp' for use
  14431. by the relocations that are needed to support the small data limit
  14432. feature. This option is not enabled by default as it would
  14433. otherwise pollute the symbol table.
  14434. '-mpid'
  14435. This option tells the assembler that the position independent data
  14436. of the RX port of GCC is being used. This results in the assembler
  14437. generating an undefined reference to a symbol called '__pid_base',
  14438. and also setting the RX_PID flag bit in the e_flags field of the
  14439. ELF header of the object file.
  14440. '-mint-register=NUM'
  14441. This option tells the assembler how many registers have been
  14442. reserved for use by interrupt handlers. This is needed in order to
  14443. compute the correct values for the '%gpreg' and '%pidreg' meta
  14444. registers.
  14445. '-mgcc-abi'
  14446. This option tells the assembler that the old GCC ABI is being used
  14447. by the assembled code. With this version of the ABI function
  14448. arguments that are passed on the stack are aligned to a 32-bit
  14449. boundary.
  14450. '-mrx-abi'
  14451. This option tells the assembler that the official RX ABI is being
  14452. used by the assembled code. With this version of the ABI function
  14453. arguments that are passed on the stack are aligned to their natural
  14454. alignments. This option is the default.
  14455. '-mcpu=NAME'
  14456. This option tells the assembler the target CPU type. Currently the
  14457. 'rx100', 'rx200', 'rx600', 'rx610', 'rxv2', 'rxv3' and 'rxv3-dfpu'
  14458. are recognised as valid cpu names. Attempting to assemble an
  14459. instructionnot supported by the indicated cpu type will result in
  14460. an error message being generated.
  14461. '-mno-allow-string-insns'
  14462. This option tells the assembler to mark the object file that it is
  14463. building as one that does not use the string instructions 'SMOVF',
  14464. 'SCMPU', 'SMOVB', 'SMOVU', 'SUNTIL' 'SWHILE' or the 'RMPA'
  14465. instruction. In addition the mark tells the linker to complain if
  14466. an attempt is made to link the binary with another one that does
  14467. use any of these instructions.
  14468. Note - the inverse of this option, '-mallow-string-insns', is not
  14469. needed. The assembler automatically detects the use of the the
  14470. instructions in the source code and labels the resulting object
  14471. file appropriately. If no string instructions are detected then
  14472. the object file is labelled as being one that can be linked with
  14473. either string-using or string-banned object files.
  14474. 
  14475. File: as.info, Node: RX-Modifiers, Next: RX-Directives, Prev: RX-Opts, Up: RX-Dependent
  14476. 9.40.2 Symbolic Operand Modifiers
  14477. ---------------------------------
  14478. The assembler supports one modifier when using symbol addresses in RX
  14479. instruction operands. The general syntax is the following:
  14480. %gp(symbol)
  14481. The modifier returns the offset from the __GP symbol to the specified
  14482. symbol as a 16-bit value. The intent is that this offset should be used
  14483. in a register+offset move instruction when generating references to
  14484. small data. Ie, like this:
  14485. mov.W %gp(_foo)[%gpreg], r1
  14486. The assembler also supports two meta register names which can be used
  14487. to refer to registers whose values may not be known to the programmer.
  14488. These meta register names are:
  14489. '%gpreg'
  14490. The small data address register.
  14491. '%pidreg'
  14492. The PID base address register.
  14493. Both registers normally have the value r13, but this can change if
  14494. some registers have been reserved for use by interrupt handlers or if
  14495. both the small data limit and position independent data features are
  14496. being used at the same time.
  14497. 
  14498. File: as.info, Node: RX-Directives, Next: RX-Float, Prev: RX-Modifiers, Up: RX-Dependent
  14499. 9.40.3 Assembler Directives
  14500. ---------------------------
  14501. The RX version of 'as' has the following specific assembler directives:
  14502. '.3byte'
  14503. Inserts a 3-byte value into the output file at the current
  14504. location.
  14505. '.fetchalign'
  14506. If the next opcode following this directive spans a fetch line
  14507. boundary (8 byte boundary), the opcode is aligned to that boundary.
  14508. If the next opcode does not span a fetch line, this directive has
  14509. no effect. Note that one or more labels may be between this
  14510. directive and the opcode; those labels are aligned as well. Any
  14511. inserted bytes due to alignment will form a NOP opcode.
  14512. 
  14513. File: as.info, Node: RX-Float, Next: RX-Syntax, Prev: RX-Directives, Up: RX-Dependent
  14514. 9.40.4 Floating Point
  14515. ---------------------
  14516. The floating point formats generated by directives are these.
  14517. '.float'
  14518. 'Single' precision (32-bit) floating point constants.
  14519. '.double'
  14520. If the '-m64bit-doubles' command-line option has been specified
  14521. then then 'double' directive generates 'double' precision (64-bit)
  14522. floating point constants, otherwise it generates 'single' precision
  14523. (32-bit) floating point constants. To force the generation of
  14524. 64-bit floating point constants used the 'dc.d' directive instead.
  14525. 
  14526. File: as.info, Node: RX-Syntax, Prev: RX-Float, Up: RX-Dependent
  14527. 9.40.5 Syntax for the RX
  14528. ------------------------
  14529. * Menu:
  14530. * RX-Chars:: Special Characters
  14531. 
  14532. File: as.info, Node: RX-Chars, Up: RX-Syntax
  14533. 9.40.5.1 Special Characters
  14534. ...........................
  14535. The presence of a ';' appearing anywhere on a line indicates the start
  14536. of a comment that extends to the end of that line.
  14537. If a '#' appears as the first character of a line then the whole line
  14538. is treated as a comment, but in this case the line can also be a logical
  14539. line number directive (*note Comments::) or a preprocessor control
  14540. command (*note Preprocessing::).
  14541. The '!' character can be used to separate statements on the same
  14542. line.
  14543. 
  14544. File: as.info, Node: S/390-Dependent, Next: SCORE-Dependent, Prev: RX-Dependent, Up: Machine Dependencies
  14545. 9.41 IBM S/390 Dependent Features
  14546. =================================
  14547. The s390 version of 'as' supports two architectures modes and eleven
  14548. chip levels. The architecture modes are the Enterprise System
  14549. Architecture (ESA) and the newer z/Architecture mode. The chip levels
  14550. are g5 (or arch3), g6, z900 (or arch5), z990 (or arch6), z9-109, z9-ec
  14551. (or arch7), z10 (or arch8), z196 (or arch9), zEC12 (or arch10), z13 (or
  14552. arch11), z14 (or arch12), and arch13.
  14553. * Menu:
  14554. * s390 Options:: Command-line Options.
  14555. * s390 Characters:: Special Characters.
  14556. * s390 Syntax:: Assembler Instruction syntax.
  14557. * s390 Directives:: Assembler Directives.
  14558. * s390 Floating Point:: Floating Point.
  14559. 
  14560. File: as.info, Node: s390 Options, Next: s390 Characters, Up: S/390-Dependent
  14561. 9.41.1 Options
  14562. --------------
  14563. The following table lists all available s390 specific options:
  14564. '-m31 | -m64'
  14565. Select 31- or 64-bit ABI implying a word size of 32- or 64-bit.
  14566. These options are only available with the ELF object file format,
  14567. and require that the necessary BFD support has been included (on a
  14568. 31-bit platform you must add -enable-64-bit-bfd on the call to the
  14569. configure script to enable 64-bit usage and use s390x as target
  14570. platform).
  14571. '-mesa | -mzarch'
  14572. Select the architecture mode, either the Enterprise System
  14573. Architecture (esa) mode or the z/Architecture mode (zarch).
  14574. The 64-bit instructions are only available with the z/Architecture
  14575. mode. The combination of '-m64' and '-mesa' results in a warning
  14576. message.
  14577. '-march=CPU'
  14578. This option specifies the target processor. The following
  14579. processor names are recognized: 'g5' (or 'arch3'), 'g6', 'z900' (or
  14580. 'arch5'), 'z990' (or 'arch6'), 'z9-109', 'z9-ec' (or 'arch7'),
  14581. 'z10' (or 'arch8'), 'z196' (or 'arch9'), 'zEC12' (or 'arch10'),
  14582. 'z13' (or 'arch11'), 'z14' (or 'arch12'), and 'arch13').
  14583. Assembling an instruction that is not supported on the target
  14584. processor results in an error message.
  14585. The processor names starting with 'arch' refer to the edition
  14586. number in the Principle of Operations manual. They can be used as
  14587. alternate processor names and have been added for compatibility
  14588. with the IBM XL compiler.
  14589. 'arch3', 'g5' and 'g6' cannot be used with the '-mzarch' option
  14590. since the z/Architecture mode is not supported on these processor
  14591. levels.
  14592. There is no 'arch4' option supported. 'arch4' matches
  14593. '-march=arch5 -mesa'.
  14594. '-mregnames'
  14595. Allow symbolic names for registers.
  14596. '-mno-regnames'
  14597. Do not allow symbolic names for registers.
  14598. '-mwarn-areg-zero'
  14599. Warn whenever the operand for a base or index register has been
  14600. specified but evaluates to zero. This can indicate the misuse of
  14601. general purpose register 0 as an address register.
  14602. 
  14603. File: as.info, Node: s390 Characters, Next: s390 Syntax, Prev: s390 Options, Up: S/390-Dependent
  14604. 9.41.2 Special Characters
  14605. -------------------------
  14606. '#' is the line comment character.
  14607. If a '#' appears as the first character of a line then the whole line
  14608. is treated as a comment, but in this case the line could also be a
  14609. logical line number directive (*note Comments::) or a preprocessor
  14610. control command (*note Preprocessing::).
  14611. The ';' character can be used instead of a newline to separate
  14612. statements.
  14613. 
  14614. File: as.info, Node: s390 Syntax, Next: s390 Directives, Prev: s390 Characters, Up: S/390-Dependent
  14615. 9.41.3 Instruction syntax
  14616. -------------------------
  14617. The assembler syntax closely follows the syntax outlined in Enterprise
  14618. Systems Architecture/390 Principles of Operation (SA22-7201) and the
  14619. z/Architecture Principles of Operation (SA22-7832).
  14620. Each instruction has two major parts, the instruction mnemonic and
  14621. the instruction operands. The instruction format varies.
  14622. * Menu:
  14623. * s390 Register:: Register Naming
  14624. * s390 Mnemonics:: Instruction Mnemonics
  14625. * s390 Operands:: Instruction Operands
  14626. * s390 Formats:: Instruction Formats
  14627. * s390 Aliases:: Instruction Aliases
  14628. * s390 Operand Modifier:: Instruction Operand Modifier
  14629. * s390 Instruction Marker:: Instruction Marker
  14630. * s390 Literal Pool Entries:: Literal Pool Entries
  14631. 
  14632. File: as.info, Node: s390 Register, Next: s390 Mnemonics, Up: s390 Syntax
  14633. 9.41.3.1 Register naming
  14634. ........................
  14635. The 'as' recognizes a number of predefined symbols for the various
  14636. processor registers. A register specification in one of the instruction
  14637. formats is an unsigned integer between 0 and 15. The specific
  14638. instruction and the position of the register in the instruction format
  14639. denotes the type of the register. The register symbols are prefixed
  14640. with '%':
  14641. %rN the 16 general purpose registers, 0 <= N <= 15
  14642. %fN the 16 floating point registers, 0 <= N <= 15
  14643. %aN the 16 access registers, 0 <= N <= 15
  14644. %cN the 16 control registers, 0 <= N <= 15
  14645. %lit an alias for the general purpose register %r13
  14646. %sp an alias for the general purpose register %r15
  14647. 
  14648. File: as.info, Node: s390 Mnemonics, Next: s390 Operands, Prev: s390 Register, Up: s390 Syntax
  14649. 9.41.3.2 Instruction Mnemonics
  14650. ..............................
  14651. All instructions documented in the Principles of Operation are supported
  14652. with the mnemonic and order of operands as described. The instruction
  14653. mnemonic identifies the instruction format (*note s390 Formats::) and
  14654. the specific operation code for the instruction. For example, the 'lr'
  14655. mnemonic denotes the instruction format 'RR' with the operation code
  14656. '0x18'.
  14657. The definition of the various mnemonics follows a scheme, where the
  14658. first character usually hint at the type of the instruction:
  14659. a add instruction, for example 'al' for add logical 32-bit
  14660. b branch instruction, for example 'bc' for branch on condition
  14661. c compare or convert instruction, for example 'cr' for compare
  14662. register 32-bit
  14663. d divide instruction, for example 'dlr' devide logical register
  14664. 64-bit to 32-bit
  14665. i insert instruction, for example 'ic' insert character
  14666. l load instruction, for example 'ltr' load and test register
  14667. mv move instruction, for example 'mvc' move character
  14668. m multiply instruction, for example 'mh' multiply halfword
  14669. n and instruction, for example 'ni' and immediate
  14670. o or instruction, for example 'oc' or character
  14671. sla, sll shift left single instruction
  14672. sra, srl shift right single instruction
  14673. st store instruction, for example 'stm' store multiple
  14674. s subtract instruction, for example 'slr' subtract
  14675. logical 32-bit
  14676. t test or translate instruction, of example 'tm' test under mask
  14677. x exclusive or instruction, for example 'xc' exclusive or
  14678. character
  14679. Certain characters at the end of the mnemonic may describe a property
  14680. of the instruction:
  14681. c the instruction uses a 8-bit character operand
  14682. f the instruction extends a 32-bit operand to 64 bit
  14683. g the operands are treated as 64-bit values
  14684. h the operand uses a 16-bit halfword operand
  14685. i the instruction uses an immediate operand
  14686. l the instruction uses unsigned, logical operands
  14687. m the instruction uses a mask or operates on multiple values
  14688. r if r is the last character, the instruction operates on registers
  14689. y the instruction uses 20-bit displacements
  14690. There are many exceptions to the scheme outlined in the above lists,
  14691. in particular for the privileged instructions. For non-privileged
  14692. instruction it works quite well, for example the instruction 'clgfr' c:
  14693. compare instruction, l: unsigned operands, g: 64-bit operands, f: 32- to
  14694. 64-bit extension, r: register operands. The instruction compares an
  14695. 64-bit value in a register with the zero extended 32-bit value from a
  14696. second register. For a complete list of all mnemonics see appendix B in
  14697. the Principles of Operation.
  14698. 
  14699. File: as.info, Node: s390 Operands, Next: s390 Formats, Prev: s390 Mnemonics, Up: s390 Syntax
  14700. 9.41.3.3 Instruction Operands
  14701. .............................
  14702. Instruction operands can be grouped into three classes, operands located
  14703. in registers, immediate operands, and operands in storage.
  14704. A register operand can be located in general, floating-point, access,
  14705. or control register. The register is identified by a four-bit field.
  14706. The field containing the register operand is called the R field.
  14707. Immediate operands are contained within the instruction and can have
  14708. 8, 16 or 32 bits. The field containing the immediate operand is called
  14709. the I field. Dependent on the instruction the I field is either signed
  14710. or unsigned.
  14711. A storage operand consists of an address and a length. The address
  14712. of a storage operands can be specified in any of these ways:
  14713. * The content of a single general R
  14714. * The sum of the content of a general register called the base
  14715. register B plus the content of a displacement field D
  14716. * The sum of the contents of two general registers called the index
  14717. register X and the base register B plus the content of a
  14718. displacement field
  14719. * The sum of the current instruction address and a 32-bit signed
  14720. immediate field multiplied by two.
  14721. The length of a storage operand can be:
  14722. * Implied by the instruction
  14723. * Specified by a bitmask
  14724. * Specified by a four-bit or eight-bit length field L
  14725. * Specified by the content of a general register
  14726. The notation for storage operand addresses formed from multiple
  14727. fields is as follows:
  14728. 'Dn(Bn)'
  14729. the address for operand number n is formed from the content of
  14730. general register Bn called the base register and the displacement
  14731. field Dn.
  14732. 'Dn(Xn,Bn)'
  14733. the address for operand number n is formed from the content of
  14734. general register Xn called the index register, general register Bn
  14735. called the base register and the displacement field Dn.
  14736. 'Dn(Ln,Bn)'
  14737. the address for operand number n is formed from the content of
  14738. general register Bn called the base register and the displacement
  14739. field Dn. The length of the operand n is specified by the field
  14740. Ln.
  14741. The base registers Bn and the index registers Xn of a storage operand
  14742. can be skipped. If Bn and Xn are skipped, a zero will be stored to the
  14743. operand field. The notation changes as follows:
  14744. full notation short notation
  14745. ----------------------------------------------
  14746. Dn(0,Bn) Dn(Bn)
  14747. Dn(0,0) Dn
  14748. Dn(0) Dn
  14749. Dn(Ln,0) Dn(Ln)
  14750. 
  14751. File: as.info, Node: s390 Formats, Next: s390 Aliases, Prev: s390 Operands, Up: s390 Syntax
  14752. 9.41.3.4 Instruction Formats
  14753. ............................
  14754. The Principles of Operation manuals lists 26 instruction formats where
  14755. some of the formats have multiple variants. For the '.insn' pseudo
  14756. directive the assembler recognizes some of the formats. Typically, the
  14757. most general variant of the instruction format is used by the '.insn'
  14758. directive.
  14759. The following table lists the abbreviations used in the table of
  14760. instruction formats:
  14761. OpCode / OpCd Part of the op code.
  14762. Bx Base register number for operand x.
  14763. Dx Displacement for operand x.
  14764. DLx Displacement lower 12 bits for operand x.
  14765. DHx Displacement higher 8-bits for operand x.
  14766. Rx Register number for operand x.
  14767. Xx Index register number for operand x.
  14768. Ix Signed immediate for operand x.
  14769. Ux Unsigned immediate for operand x.
  14770. An instruction is two, four, or six bytes in length and must be
  14771. aligned on a 2 byte boundary. The first two bits of the instruction
  14772. specify the length of the instruction, 00 indicates a two byte
  14773. instruction, 01 and 10 indicates a four byte instruction, and 11
  14774. indicates a six byte instruction.
  14775. The following table lists the s390 instruction formats that are
  14776. available with the '.insn' pseudo directive:
  14777. 'E format'
  14778. +-------------+
  14779. | OpCode |
  14780. +-------------+
  14781. 0 15
  14782. 'RI format: <insn> R1,I2'
  14783. +--------+----+----+------------------+
  14784. | OpCode | R1 |OpCd| I2 |
  14785. +--------+----+----+------------------+
  14786. 0 8 12 16 31
  14787. 'RIE format: <insn> R1,R3,I2'
  14788. +--------+----+----+------------------+--------+--------+
  14789. | OpCode | R1 | R3 | I2 |////////| OpCode |
  14790. +--------+----+----+------------------+--------+--------+
  14791. 0 8 12 16 32 40 47
  14792. 'RIL format: <insn> R1,I2'
  14793. +--------+----+----+------------------------------------+
  14794. | OpCode | R1 |OpCd| I2 |
  14795. +--------+----+----+------------------------------------+
  14796. 0 8 12 16 47
  14797. 'RILU format: <insn> R1,U2'
  14798. +--------+----+----+------------------------------------+
  14799. | OpCode | R1 |OpCd| U2 |
  14800. +--------+----+----+------------------------------------+
  14801. 0 8 12 16 47
  14802. 'RIS format: <insn> R1,I2,M3,D4(B4)'
  14803. +--------+----+----+----+-------------+--------+--------+
  14804. | OpCode | R1 | M3 | B4 | D4 | I2 | Opcode |
  14805. +--------+----+----+----+-------------+--------+--------+
  14806. 0 8 12 16 20 32 36 47
  14807. 'RR format: <insn> R1,R2'
  14808. +--------+----+----+
  14809. | OpCode | R1 | R2 |
  14810. +--------+----+----+
  14811. 0 8 12 15
  14812. 'RRE format: <insn> R1,R2'
  14813. +------------------+--------+----+----+
  14814. | OpCode |////////| R1 | R2 |
  14815. +------------------+--------+----+----+
  14816. 0 16 24 28 31
  14817. 'RRF format: <insn> R1,R2,R3,M4'
  14818. +------------------+----+----+----+----+
  14819. | OpCode | R3 | M4 | R1 | R2 |
  14820. +------------------+----+----+----+----+
  14821. 0 16 20 24 28 31
  14822. 'RRS format: <insn> R1,R2,M3,D4(B4)'
  14823. +--------+----+----+----+-------------+----+----+--------+
  14824. | OpCode | R1 | R3 | B4 | D4 | M3 |////| OpCode |
  14825. +--------+----+----+----+-------------+----+----+--------+
  14826. 0 8 12 16 20 32 36 40 47
  14827. 'RS format: <insn> R1,R3,D2(B2)'
  14828. +--------+----+----+----+-------------+
  14829. | OpCode | R1 | R3 | B2 | D2 |
  14830. +--------+----+----+----+-------------+
  14831. 0 8 12 16 20 31
  14832. 'RSE format: <insn> R1,R3,D2(B2)'
  14833. +--------+----+----+----+-------------+--------+--------+
  14834. | OpCode | R1 | R3 | B2 | D2 |////////| OpCode |
  14835. +--------+----+----+----+-------------+--------+--------+
  14836. 0 8 12 16 20 32 40 47
  14837. 'RSI format: <insn> R1,R3,I2'
  14838. +--------+----+----+------------------------------------+
  14839. | OpCode | R1 | R3 | I2 |
  14840. +--------+----+----+------------------------------------+
  14841. 0 8 12 16 47
  14842. 'RSY format: <insn> R1,R3,D2(B2)'
  14843. +--------+----+----+----+-------------+--------+--------+
  14844. | OpCode | R1 | R3 | B2 | DL2 | DH2 | OpCode |
  14845. +--------+----+----+----+-------------+--------+--------+
  14846. 0 8 12 16 20 32 40 47
  14847. 'RX format: <insn> R1,D2(X2,B2)'
  14848. +--------+----+----+----+-------------+
  14849. | OpCode | R1 | X2 | B2 | D2 |
  14850. +--------+----+----+----+-------------+
  14851. 0 8 12 16 20 31
  14852. 'RXE format: <insn> R1,D2(X2,B2)'
  14853. +--------+----+----+----+-------------+--------+--------+
  14854. | OpCode | R1 | X2 | B2 | D2 |////////| OpCode |
  14855. +--------+----+----+----+-------------+--------+--------+
  14856. 0 8 12 16 20 32 40 47
  14857. 'RXF format: <insn> R1,R3,D2(X2,B2)'
  14858. +--------+----+----+----+-------------+----+---+--------+
  14859. | OpCode | R3 | X2 | B2 | D2 | R1 |///| OpCode |
  14860. +--------+----+----+----+-------------+----+---+--------+
  14861. 0 8 12 16 20 32 36 40 47
  14862. 'RXY format: <insn> R1,D2(X2,B2)'
  14863. +--------+----+----+----+-------------+--------+--------+
  14864. | OpCode | R1 | X2 | B2 | DL2 | DH2 | OpCode |
  14865. +--------+----+----+----+-------------+--------+--------+
  14866. 0 8 12 16 20 32 36 40 47
  14867. 'S format: <insn> D2(B2)'
  14868. +------------------+----+-------------+
  14869. | OpCode | B2 | D2 |
  14870. +------------------+----+-------------+
  14871. 0 16 20 31
  14872. 'SI format: <insn> D1(B1),I2'
  14873. +--------+---------+----+-------------+
  14874. | OpCode | I2 | B1 | D1 |
  14875. +--------+---------+----+-------------+
  14876. 0 8 16 20 31
  14877. 'SIY format: <insn> D1(B1),U2'
  14878. +--------+---------+----+-------------+--------+--------+
  14879. | OpCode | I2 | B1 | DL1 | DH1 | OpCode |
  14880. +--------+---------+----+-------------+--------+--------+
  14881. 0 8 16 20 32 36 40 47
  14882. 'SIL format: <insn> D1(B1),I2'
  14883. +------------------+----+-------------+-----------------+
  14884. | OpCode | B1 | D1 | I2 |
  14885. +------------------+----+-------------+-----------------+
  14886. 0 16 20 32 47
  14887. 'SS format: <insn> D1(R1,B1),D2(B3),R3'
  14888. +--------+----+----+----+-------------+----+------------+
  14889. | OpCode | R1 | R3 | B1 | D1 | B2 | D2 |
  14890. +--------+----+----+----+-------------+----+------------+
  14891. 0 8 12 16 20 32 36 47
  14892. 'SSE format: <insn> D1(B1),D2(B2)'
  14893. +------------------+----+-------------+----+------------+
  14894. | OpCode | B1 | D1 | B2 | D2 |
  14895. +------------------+----+-------------+----+------------+
  14896. 0 8 12 16 20 32 36 47
  14897. 'SSF format: <insn> D1(B1),D2(B2),R3'
  14898. +--------+----+----+----+-------------+----+------------+
  14899. | OpCode | R3 |OpCd| B1 | D1 | B2 | D2 |
  14900. +--------+----+----+----+-------------+----+------------+
  14901. 0 8 12 16 20 32 36 47
  14902. For the complete list of all instruction format variants see the
  14903. Principles of Operation manuals.
  14904. 
  14905. File: as.info, Node: s390 Aliases, Next: s390 Operand Modifier, Prev: s390 Formats, Up: s390 Syntax
  14906. 9.41.3.5 Instruction Aliases
  14907. ............................
  14908. A specific bit pattern can have multiple mnemonics, for example the bit
  14909. pattern '0xa7000000' has the mnemonics 'tmh' and 'tmlh'. In addition,
  14910. there are a number of mnemonics recognized by 'as' that are not present
  14911. in the Principles of Operation. These are the short forms of the branch
  14912. instructions, where the condition code mask operand is encoded in the
  14913. mnemonic. This is relevant for the branch instructions, the compare and
  14914. branch instructions, and the compare and trap instructions.
  14915. For the branch instructions there are 20 condition code strings that
  14916. can be used as part of the mnemonic in place of a mask operand in the
  14917. instruction format:
  14918. instruction short form
  14919. ----------------------------------------------
  14920. bcr M1,R2 b<m>r R2
  14921. bc M1,D2(X2,B2) b<m> D2(X2,B2)
  14922. brc M1,I2 j<m> I2
  14923. brcl M1,I2 jg<m> I2
  14924. In the mnemonic for a branch instruction the condition code string
  14925. <m> can be any of the following:
  14926. o jump on overflow / if ones
  14927. h jump on A high
  14928. p jump on plus
  14929. nle jump on not low or equal
  14930. l jump on A low
  14931. m jump on minus
  14932. nhe jump on not high or equal
  14933. lh jump on low or high
  14934. ne jump on A not equal B
  14935. nz jump on not zero / if not zeros
  14936. e jump on A equal B
  14937. z jump on zero / if zeroes
  14938. nlh jump on not low or high
  14939. he jump on high or equal
  14940. nl jump on A not low
  14941. nm jump on not minus / if not mixed
  14942. le jump on low or equal
  14943. nh jump on A not high
  14944. np jump on not plus
  14945. no jump on not overflow / if not ones
  14946. For the compare and branch, and compare and trap instructions there
  14947. are 12 condition code strings that can be used as part of the mnemonic
  14948. in place of a mask operand in the instruction format:
  14949. instruction short form
  14950. ------------------------------------------------------------
  14951. crb R1,R2,M3,D4(B4) crb<m> R1,R2,D4(B4)
  14952. cgrb R1,R2,M3,D4(B4) cgrb<m> R1,R2,D4(B4)
  14953. crj R1,R2,M3,I4 crj<m> R1,R2,I4
  14954. cgrj R1,R2,M3,I4 cgrj<m> R1,R2,I4
  14955. cib R1,I2,M3,D4(B4) cib<m> R1,I2,D4(B4)
  14956. cgib R1,I2,M3,D4(B4) cgib<m> R1,I2,D4(B4)
  14957. cij R1,I2,M3,I4 cij<m> R1,I2,I4
  14958. cgij R1,I2,M3,I4 cgij<m> R1,I2,I4
  14959. crt R1,R2,M3 crt<m> R1,R2
  14960. cgrt R1,R2,M3 cgrt<m> R1,R2
  14961. cit R1,I2,M3 cit<m> R1,I2
  14962. cgit R1,I2,M3 cgit<m> R1,I2
  14963. clrb R1,R2,M3,D4(B4) clrb<m> R1,R2,D4(B4)
  14964. clgrb R1,R2,M3,D4(B4) clgrb<m> R1,R2,D4(B4)
  14965. clrj R1,R2,M3,I4 clrj<m> R1,R2,I4
  14966. clgrj R1,R2,M3,I4 clgrj<m> R1,R2,I4
  14967. clib R1,I2,M3,D4(B4) clib<m> R1,I2,D4(B4)
  14968. clgib R1,I2,M3,D4(B4) clgib<m> R1,I2,D4(B4)
  14969. clij R1,I2,M3,I4 clij<m> R1,I2,I4
  14970. clgij R1,I2,M3,I4 clgij<m> R1,I2,I4
  14971. clrt R1,R2,M3 clrt<m> R1,R2
  14972. clgrt R1,R2,M3 clgrt<m> R1,R2
  14973. clfit R1,I2,M3 clfit<m> R1,I2
  14974. clgit R1,I2,M3 clgit<m> R1,I2
  14975. In the mnemonic for a compare and branch and compare and trap
  14976. instruction the condition code string <m> can be any of the following:
  14977. h jump on A high
  14978. nle jump on not low or equal
  14979. l jump on A low
  14980. nhe jump on not high or equal
  14981. ne jump on A not equal B
  14982. lh jump on low or high
  14983. e jump on A equal B
  14984. nlh jump on not low or high
  14985. nl jump on A not low
  14986. he jump on high or equal
  14987. nh jump on A not high
  14988. le jump on low or equal
  14989. 
  14990. File: as.info, Node: s390 Operand Modifier, Next: s390 Instruction Marker, Prev: s390 Aliases, Up: s390 Syntax
  14991. 9.41.3.6 Instruction Operand Modifier
  14992. .....................................
  14993. If a symbol modifier is attached to a symbol in an expression for an
  14994. instruction operand field, the symbol term is replaced with a reference
  14995. to an object in the global offset table (GOT) or the procedure linkage
  14996. table (PLT). The following expressions are allowed: 'symbol@modifier +
  14997. constant', 'symbol@modifier + label + constant', and 'symbol@modifier -
  14998. label + constant'. The term 'symbol' is the symbol that will be entered
  14999. into the GOT or PLT, 'label' is a local label, and 'constant' is an
  15000. arbitrary expression that the assembler can evaluate to a constant
  15001. value.
  15002. The term '(symbol + constant1)@modifier +/- label + constant2' is
  15003. also accepted but a warning message is printed and the term is converted
  15004. to 'symbol@modifier +/- label + constant1 + constant2'.
  15005. '@got'
  15006. '@got12'
  15007. The @got modifier can be used for displacement fields, 16-bit
  15008. immediate fields and 32-bit pc-relative immediate fields. The
  15009. @got12 modifier is synonym to @got. The symbol is added to the
  15010. GOT. For displacement fields and 16-bit immediate fields the symbol
  15011. term is replaced with the offset from the start of the GOT to the
  15012. GOT slot for the symbol. For a 32-bit pc-relative field the
  15013. pc-relative offset to the GOT slot from the current instruction
  15014. address is used.
  15015. '@gotent'
  15016. The @gotent modifier can be used for 32-bit pc-relative immediate
  15017. fields. The symbol is added to the GOT and the symbol term is
  15018. replaced with the pc-relative offset from the current instruction
  15019. to the GOT slot for the symbol.
  15020. '@gotoff'
  15021. The @gotoff modifier can be used for 16-bit immediate fields. The
  15022. symbol term is replaced with the offset from the start of the GOT
  15023. to the address of the symbol.
  15024. '@gotplt'
  15025. The @gotplt modifier can be used for displacement fields, 16-bit
  15026. immediate fields, and 32-bit pc-relative immediate fields. A
  15027. procedure linkage table entry is generated for the symbol and a
  15028. jump slot for the symbol is added to the GOT. For displacement
  15029. fields and 16-bit immediate fields the symbol term is replaced with
  15030. the offset from the start of the GOT to the jump slot for the
  15031. symbol. For a 32-bit pc-relative field the pc-relative offset to
  15032. the jump slot from the current instruction address is used.
  15033. '@plt'
  15034. The @plt modifier can be used for 16-bit and 32-bit pc-relative
  15035. immediate fields. A procedure linkage table entry is generated for
  15036. the symbol. The symbol term is replaced with the relative offset
  15037. from the current instruction to the PLT entry for the symbol.
  15038. '@pltoff'
  15039. The @pltoff modifier can be used for 16-bit immediate fields. The
  15040. symbol term is replaced with the offset from the start of the PLT
  15041. to the address of the symbol.
  15042. '@gotntpoff'
  15043. The @gotntpoff modifier can be used for displacement fields. The
  15044. symbol is added to the static TLS block and the negated offset to
  15045. the symbol in the static TLS block is added to the GOT. The symbol
  15046. term is replaced with the offset to the GOT slot from the start of
  15047. the GOT.
  15048. '@indntpoff'
  15049. The @indntpoff modifier can be used for 32-bit pc-relative
  15050. immediate fields. The symbol is added to the static TLS block and
  15051. the negated offset to the symbol in the static TLS block is added
  15052. to the GOT. The symbol term is replaced with the pc-relative offset
  15053. to the GOT slot from the current instruction address.
  15054. For more information about the thread local storage modifiers
  15055. 'gotntpoff' and 'indntpoff' see the ELF extension documentation 'ELF
  15056. Handling For Thread-Local Storage'.
  15057. 
  15058. File: as.info, Node: s390 Instruction Marker, Next: s390 Literal Pool Entries, Prev: s390 Operand Modifier, Up: s390 Syntax
  15059. 9.41.3.7 Instruction Marker
  15060. ...........................
  15061. The thread local storage instruction markers are used by the linker to
  15062. perform code optimization.
  15063. ':tls_load'
  15064. The :tls_load marker is used to flag the load instruction in the
  15065. initial exec TLS model that retrieves the offset from the thread
  15066. pointer to a thread local storage variable from the GOT.
  15067. ':tls_gdcall'
  15068. The :tls_gdcall marker is used to flag the branch-and-save
  15069. instruction to the __tls_get_offset function in the global dynamic
  15070. TLS model.
  15071. ':tls_ldcall'
  15072. The :tls_ldcall marker is used to flag the branch-and-save
  15073. instruction to the __tls_get_offset function in the local dynamic
  15074. TLS model.
  15075. For more information about the thread local storage instruction
  15076. marker and the linker optimizations see the ELF extension documentation
  15077. 'ELF Handling For Thread-Local Storage'.
  15078. 
  15079. File: as.info, Node: s390 Literal Pool Entries, Prev: s390 Instruction Marker, Up: s390 Syntax
  15080. 9.41.3.8 Literal Pool Entries
  15081. .............................
  15082. A literal pool is a collection of values. To access the values a
  15083. pointer to the literal pool is loaded to a register, the literal pool
  15084. register. Usually, register %r13 is used as the literal pool register
  15085. (*note s390 Register::). Literal pool entries are created by adding the
  15086. suffix :lit1, :lit2, :lit4, or :lit8 to the end of an expression for an
  15087. instruction operand. The expression is added to the literal pool and
  15088. the operand is replaced with the offset to the literal in the literal
  15089. pool.
  15090. ':lit1'
  15091. The literal pool entry is created as an 8-bit value. An operand
  15092. modifier must not be used for the original expression.
  15093. ':lit2'
  15094. The literal pool entry is created as a 16 bit value. The operand
  15095. modifier @got may be used in the original expression. The term
  15096. 'x@got:lit2' will put the got offset for the global symbol x to the
  15097. literal pool as 16 bit value.
  15098. ':lit4'
  15099. The literal pool entry is created as a 32-bit value. The operand
  15100. modifier @got and @plt may be used in the original expression. The
  15101. term 'x@got:lit4' will put the got offset for the global symbol x
  15102. to the literal pool as a 32-bit value. The term 'x@plt:lit4' will
  15103. put the plt offset for the global symbol x to the literal pool as a
  15104. 32-bit value.
  15105. ':lit8'
  15106. The literal pool entry is created as a 64-bit value. The operand
  15107. modifier @got and @plt may be used in the original expression. The
  15108. term 'x@got:lit8' will put the got offset for the global symbol x
  15109. to the literal pool as a 64-bit value. The term 'x@plt:lit8' will
  15110. put the plt offset for the global symbol x to the literal pool as a
  15111. 64-bit value.
  15112. The assembler directive '.ltorg' is used to emit all literal pool
  15113. entries to the current position.
  15114. 
  15115. File: as.info, Node: s390 Directives, Next: s390 Floating Point, Prev: s390 Syntax, Up: S/390-Dependent
  15116. 9.41.4 Assembler Directives
  15117. ---------------------------
  15118. 'as' for s390 supports all of the standard ELF assembler directives as
  15119. outlined in the main part of this document. Some directives have been
  15120. extended and there are some additional directives, which are only
  15121. available for the s390 'as'.
  15122. '.insn'
  15123. This directive permits the numeric representation of an
  15124. instructions and makes the assembler insert the operands according
  15125. to one of the instructions formats for '.insn' (*note s390
  15126. Formats::). For example, the instruction 'l %r1,24(%r15)' could be
  15127. written as '.insn rx,0x58000000,%r1,24(%r15)'.
  15128. '.short'
  15129. '.long'
  15130. '.quad'
  15131. This directive places one or more 16-bit (.short), 32-bit (.long),
  15132. or 64-bit (.quad) values into the current section. If an ELF or
  15133. TLS modifier is used only the following expressions are allowed:
  15134. 'symbol@modifier + constant', 'symbol@modifier + label + constant',
  15135. and 'symbol@modifier - label + constant'. The following modifiers
  15136. are available:
  15137. '@got'
  15138. '@got12'
  15139. The @got modifier can be used for .short, .long and .quad.
  15140. The @got12 modifier is synonym to @got. The symbol is added
  15141. to the GOT. The symbol term is replaced with offset from the
  15142. start of the GOT to the GOT slot for the symbol.
  15143. '@gotoff'
  15144. The @gotoff modifier can be used for .short, .long and .quad.
  15145. The symbol term is replaced with the offset from the start of
  15146. the GOT to the address of the symbol.
  15147. '@gotplt'
  15148. The @gotplt modifier can be used for .long and .quad. A
  15149. procedure linkage table entry is generated for the symbol and
  15150. a jump slot for the symbol is added to the GOT. The symbol
  15151. term is replaced with the offset from the start of the GOT to
  15152. the jump slot for the symbol.
  15153. '@plt'
  15154. The @plt modifier can be used for .long and .quad. A
  15155. procedure linkage table entry us generated for the symbol.
  15156. The symbol term is replaced with the address of the PLT entry
  15157. for the symbol.
  15158. '@pltoff'
  15159. The @pltoff modifier can be used for .short, .long and .quad.
  15160. The symbol term is replaced with the offset from the start of
  15161. the PLT to the address of the symbol.
  15162. '@tlsgd'
  15163. '@tlsldm'
  15164. The @tlsgd and @tlsldm modifier can be used for .long and
  15165. .quad. A tls_index structure for the symbol is added to the
  15166. GOT. The symbol term is replaced with the offset from the
  15167. start of the GOT to the tls_index structure.
  15168. '@gotntpoff'
  15169. '@indntpoff'
  15170. The @gotntpoff and @indntpoff modifier can be used for .long
  15171. and .quad. The symbol is added to the static TLS block and
  15172. the negated offset to the symbol in the static TLS block is
  15173. added to the GOT. For @gotntpoff the symbol term is replaced
  15174. with the offset from the start of the GOT to the GOT slot, for
  15175. @indntpoff the symbol term is replaced with the address of the
  15176. GOT slot.
  15177. '@dtpoff'
  15178. The @dtpoff modifier can be used for .long and .quad. The
  15179. symbol term is replaced with the offset of the symbol relative
  15180. to the start of the TLS block it is contained in.
  15181. '@ntpoff'
  15182. The @ntpoff modifier can be used for .long and .quad. The
  15183. symbol term is replaced with the offset of the symbol relative
  15184. to the TCB pointer.
  15185. For more information about the thread local storage modifiers see
  15186. the ELF extension documentation 'ELF Handling For Thread-Local
  15187. Storage'.
  15188. '.ltorg'
  15189. This directive causes the current contents of the literal pool to
  15190. be dumped to the current location (*note s390 Literal Pool
  15191. Entries::).
  15192. '.machine STRING[+EXTENSION]...'
  15193. This directive allows changing the machine for which code is
  15194. generated. 'string' may be any of the '-march=' selection options,
  15195. or 'push', or 'pop'. '.machine push' saves the currently selected
  15196. cpu, which may be restored with '.machine pop'. Be aware that the
  15197. cpu string has to be put into double quotes in case it contains
  15198. characters not appropriate for identifiers. So you have to write
  15199. '"z9-109"' instead of just 'z9-109'. Extensions can be specified
  15200. after the cpu name, separated by plus characters. Valid extensions
  15201. are: 'htm', 'nohtm', 'vx', 'novx'. They extend the basic
  15202. instruction set with features from a higher cpu level, or remove
  15203. support for a feature from the given cpu level.
  15204. Example: 'z13+nohtm' allows all instructions of the z13 cpu except
  15205. instructions from the HTM facility.
  15206. '.machinemode string'
  15207. This directive allows to change the architecture mode for which
  15208. code is being generated. 'string' may be 'esa', 'zarch',
  15209. 'zarch_nohighgprs', 'push', or 'pop'. '.machinemode
  15210. zarch_nohighgprs' can be used to prevent the 'highgprs' flag from
  15211. being set in the ELF header of the output file. This is useful in
  15212. situations where the code is gated with a runtime check which makes
  15213. sure that the code is only executed on kernels providing the
  15214. 'highgprs' feature. '.machinemode push' saves the currently
  15215. selected mode, which may be restored with '.machinemode pop'.
  15216. 
  15217. File: as.info, Node: s390 Floating Point, Prev: s390 Directives, Up: S/390-Dependent
  15218. 9.41.5 Floating Point
  15219. ---------------------
  15220. The assembler recognizes both the IEEE floating-point instruction and
  15221. the hexadecimal floating-point instructions. The floating-point
  15222. constructors '.float', '.single', and '.double' always emit the IEEE
  15223. format. To assemble hexadecimal floating-point constants the '.long'
  15224. and '.quad' directives must be used.
  15225. 
  15226. File: as.info, Node: SCORE-Dependent, Next: SH-Dependent, Prev: S/390-Dependent, Up: Machine Dependencies
  15227. 9.42 SCORE Dependent Features
  15228. =============================
  15229. * Menu:
  15230. * SCORE-Opts:: Assembler options
  15231. * SCORE-Pseudo:: SCORE Assembler Directives
  15232. * SCORE-Syntax:: Syntax
  15233. 
  15234. File: as.info, Node: SCORE-Opts, Next: SCORE-Pseudo, Up: SCORE-Dependent
  15235. 9.42.1 Options
  15236. --------------
  15237. The following table lists all available SCORE options.
  15238. '-G NUM'
  15239. This option sets the largest size of an object that can be
  15240. referenced implicitly with the 'gp' register. The default value is
  15241. 8.
  15242. '-EB'
  15243. Assemble code for a big-endian cpu
  15244. '-EL'
  15245. Assemble code for a little-endian cpu
  15246. '-FIXDD'
  15247. Assemble code for fix data dependency
  15248. '-NWARN'
  15249. Assemble code for no warning message for fix data dependency
  15250. '-SCORE5'
  15251. Assemble code for target is SCORE5
  15252. '-SCORE5U'
  15253. Assemble code for target is SCORE5U
  15254. '-SCORE7'
  15255. Assemble code for target is SCORE7, this is default setting
  15256. '-SCORE3'
  15257. Assemble code for target is SCORE3
  15258. '-march=score7'
  15259. Assemble code for target is SCORE7, this is default setting
  15260. '-march=score3'
  15261. Assemble code for target is SCORE3
  15262. '-USE_R1'
  15263. Assemble code for no warning message when using temp register r1
  15264. '-KPIC'
  15265. Generate code for PIC. This option tells the assembler to generate
  15266. score position-independent macro expansions. It also tells the
  15267. assembler to mark the output file as PIC.
  15268. '-O0'
  15269. Assembler will not perform any optimizations
  15270. '-V'
  15271. Sunplus release version
  15272. 
  15273. File: as.info, Node: SCORE-Pseudo, Next: SCORE-Syntax, Prev: SCORE-Opts, Up: SCORE-Dependent
  15274. 9.42.2 SCORE Assembler Directives
  15275. ---------------------------------
  15276. A number of assembler directives are available for SCORE. The following
  15277. table is far from complete.
  15278. '.set nwarn'
  15279. Let the assembler not to generate warnings if the source machine
  15280. language instructions happen data dependency.
  15281. '.set fixdd'
  15282. Let the assembler to insert bubbles (32 bit nop instruction / 16
  15283. bit nop! Instruction) if the source machine language instructions
  15284. happen data dependency.
  15285. '.set nofixdd'
  15286. Let the assembler to generate warnings if the source machine
  15287. language instructions happen data dependency. (Default)
  15288. '.set r1'
  15289. Let the assembler not to generate warnings if the source program
  15290. uses r1. allow user to use r1
  15291. 'set nor1'
  15292. Let the assembler to generate warnings if the source program uses
  15293. r1. (Default)
  15294. '.sdata'
  15295. Tell the assembler to add subsequent data into the sdata section
  15296. '.rdata'
  15297. Tell the assembler to add subsequent data into the rdata section
  15298. '.frame "frame-register", "offset", "return-pc-register"'
  15299. Describe a stack frame. "frame-register" is the frame register,
  15300. "offset" is the distance from the frame register to the virtual
  15301. frame pointer, "return-pc-register" is the return program register.
  15302. You must use ".ent" before ".frame" and only one ".frame" can be
  15303. used per ".ent".
  15304. '.mask "bitmask", "frameoffset"'
  15305. Indicate which of the integer registers are saved in the current
  15306. function's stack frame, this is for the debugger to explain the
  15307. frame chain.
  15308. '.ent "proc-name"'
  15309. Set the beginning of the procedure "proc_name". Use this directive
  15310. when you want to generate information for the debugger.
  15311. '.end proc-name'
  15312. Set the end of a procedure. Use this directive to generate
  15313. information for the debugger.
  15314. '.bss'
  15315. Switch the destination of following statements into the bss
  15316. section, which is used for data that is uninitialized anywhere.
  15317. 
  15318. File: as.info, Node: SCORE-Syntax, Prev: SCORE-Pseudo, Up: SCORE-Dependent
  15319. 9.42.3 SCORE Syntax
  15320. -------------------
  15321. * Menu:
  15322. * SCORE-Chars:: Special Characters
  15323. 
  15324. File: as.info, Node: SCORE-Chars, Up: SCORE-Syntax
  15325. 9.42.3.1 Special Characters
  15326. ...........................
  15327. The presence of a '#' appearing anywhere on a line indicates the start
  15328. of a comment that extends to the end of that line.
  15329. If a '#' appears as the first character of a line then the whole line
  15330. is treated as a comment, but in this case the line can also be a logical
  15331. line number directive (*note Comments::) or a preprocessor control
  15332. command (*note Preprocessing::).
  15333. The ';' character can be used to separate statements on the same
  15334. line.
  15335. 
  15336. File: as.info, Node: SH-Dependent, Next: Sparc-Dependent, Prev: SCORE-Dependent, Up: Machine Dependencies
  15337. 9.43 Renesas / SuperH SH Dependent Features
  15338. ===========================================
  15339. * Menu:
  15340. * SH Options:: Options
  15341. * SH Syntax:: Syntax
  15342. * SH Floating Point:: Floating Point
  15343. * SH Directives:: SH Machine Directives
  15344. * SH Opcodes:: Opcodes
  15345. 
  15346. File: as.info, Node: SH Options, Next: SH Syntax, Up: SH-Dependent
  15347. 9.43.1 Options
  15348. --------------
  15349. 'as' has following command-line options for the Renesas (formerly
  15350. Hitachi) / SuperH SH family.
  15351. '--little'
  15352. Generate little endian code.
  15353. '--big'
  15354. Generate big endian code.
  15355. '--relax'
  15356. Alter jump instructions for long displacements.
  15357. '--small'
  15358. Align sections to 4 byte boundaries, not 16.
  15359. '--dsp'
  15360. Enable sh-dsp insns, and disable sh3e / sh4 insns.
  15361. '--renesas'
  15362. Disable optimization with section symbol for compatibility with
  15363. Renesas assembler.
  15364. '--allow-reg-prefix'
  15365. Allow '$' as a register name prefix.
  15366. '--fdpic'
  15367. Generate an FDPIC object file.
  15368. '--isa=sh4 | sh4a'
  15369. Specify the sh4 or sh4a instruction set.
  15370. '--isa=dsp'
  15371. Enable sh-dsp insns, and disable sh3e / sh4 insns.
  15372. '--isa=fp'
  15373. Enable sh2e, sh3e, sh4, and sh4a insn sets.
  15374. '--isa=all'
  15375. Enable sh1, sh2, sh2e, sh3, sh3e, sh4, sh4a, and sh-dsp insn sets.
  15376. '-h-tick-hex'
  15377. Support H'00 style hex constants in addition to 0x00 style.
  15378. 
  15379. File: as.info, Node: SH Syntax, Next: SH Floating Point, Prev: SH Options, Up: SH-Dependent
  15380. 9.43.2 Syntax
  15381. -------------
  15382. * Menu:
  15383. * SH-Chars:: Special Characters
  15384. * SH-Regs:: Register Names
  15385. * SH-Addressing:: Addressing Modes
  15386. 
  15387. File: as.info, Node: SH-Chars, Next: SH-Regs, Up: SH Syntax
  15388. 9.43.2.1 Special Characters
  15389. ...........................
  15390. '!' is the line comment character.
  15391. You can use ';' instead of a newline to separate statements.
  15392. If a '#' appears as the first character of a line then the whole line
  15393. is treated as a comment, but in this case the line could also be a
  15394. logical line number directive (*note Comments::) or a preprocessor
  15395. control command (*note Preprocessing::).
  15396. Since '$' has no special meaning, you may use it in symbol names.
  15397. 
  15398. File: as.info, Node: SH-Regs, Next: SH-Addressing, Prev: SH-Chars, Up: SH Syntax
  15399. 9.43.2.2 Register Names
  15400. .......................
  15401. You can use the predefined symbols 'r0', 'r1', 'r2', 'r3', 'r4', 'r5',
  15402. 'r6', 'r7', 'r8', 'r9', 'r10', 'r11', 'r12', 'r13', 'r14', and 'r15' to
  15403. refer to the SH registers.
  15404. The SH also has these control registers:
  15405. 'pr'
  15406. procedure register (holds return address)
  15407. 'pc'
  15408. program counter
  15409. 'mach'
  15410. 'macl'
  15411. high and low multiply accumulator registers
  15412. 'sr'
  15413. status register
  15414. 'gbr'
  15415. global base register
  15416. 'vbr'
  15417. vector base register (for interrupt vectors)
  15418. 
  15419. File: as.info, Node: SH-Addressing, Prev: SH-Regs, Up: SH Syntax
  15420. 9.43.2.3 Addressing Modes
  15421. .........................
  15422. 'as' understands the following addressing modes for the SH. 'RN' in the
  15423. following refers to any of the numbered registers, but _not_ the control
  15424. registers.
  15425. 'RN'
  15426. Register direct
  15427. '@RN'
  15428. Register indirect
  15429. '@-RN'
  15430. Register indirect with pre-decrement
  15431. '@RN+'
  15432. Register indirect with post-increment
  15433. '@(DISP, RN)'
  15434. Register indirect with displacement
  15435. '@(R0, RN)'
  15436. Register indexed
  15437. '@(DISP, GBR)'
  15438. 'GBR' offset
  15439. '@(R0, GBR)'
  15440. GBR indexed
  15441. 'ADDR'
  15442. '@(DISP, PC)'
  15443. PC relative address (for branch or for addressing memory). The
  15444. 'as' implementation allows you to use the simpler form ADDR
  15445. anywhere a PC relative address is called for; the alternate form is
  15446. supported for compatibility with other assemblers.
  15447. '#IMM'
  15448. Immediate data
  15449. 
  15450. File: as.info, Node: SH Floating Point, Next: SH Directives, Prev: SH Syntax, Up: SH-Dependent
  15451. 9.43.3 Floating Point
  15452. ---------------------
  15453. SH2E, SH3E and SH4 groups have on-chip floating-point unit (FPU). Other
  15454. SH groups can use '.float' directive to generate IEEE floating-point
  15455. numbers.
  15456. SH2E and SH3E support single-precision floating point calculations as
  15457. well as entirely PCAPI compatible emulation of double-precision floating
  15458. point calculations. SH2E and SH3E instructions are a subset of the
  15459. floating point calculations conforming to the IEEE754 standard.
  15460. In addition to single-precision and double-precision floating-point
  15461. operation capability, the on-chip FPU of SH4 has a 128-bit graphic
  15462. engine that enables 32-bit floating-point data to be processed 128 bits
  15463. at a time. It also supports 4 * 4 array operations and inner product
  15464. operations. Also, a superscalar architecture is employed that enables
  15465. simultaneous execution of two instructions (including FPU instructions),
  15466. providing performance of up to twice that of conventional architectures
  15467. at the same frequency.
  15468. 
  15469. File: as.info, Node: SH Directives, Next: SH Opcodes, Prev: SH Floating Point, Up: SH-Dependent
  15470. 9.43.4 SH Machine Directives
  15471. ----------------------------
  15472. 'uaword'
  15473. 'ualong'
  15474. 'uaquad'
  15475. 'as' will issue a warning when a misaligned '.word', '.long', or
  15476. '.quad' directive is used. You may use '.uaword', '.ualong', or
  15477. '.uaquad' to indicate that the value is intentionally misaligned.
  15478. 
  15479. File: as.info, Node: SH Opcodes, Prev: SH Directives, Up: SH-Dependent
  15480. 9.43.5 Opcodes
  15481. --------------
  15482. For detailed information on the SH machine instruction set, see
  15483. 'SH-Microcomputer User's Manual' (Renesas) or 'SH-4 32-bit CPU Core
  15484. Architecture' (SuperH) and 'SuperH (SH) 64-Bit RISC Series' (SuperH).
  15485. 'as' implements all the standard SH opcodes. No additional
  15486. pseudo-instructions are needed on this family. Note, however, that
  15487. because 'as' supports a simpler form of PC-relative addressing, you may
  15488. simply write (for example)
  15489. mov.l bar,r0
  15490. where other assemblers might require an explicit displacement to 'bar'
  15491. from the program counter:
  15492. mov.l @(DISP, PC)
  15493. Here is a summary of SH opcodes:
  15494. Legend:
  15495. Rn a numbered register
  15496. Rm another numbered register
  15497. #imm immediate data
  15498. disp displacement
  15499. disp8 8-bit displacement
  15500. disp12 12-bit displacement
  15501. add #imm,Rn lds.l @Rn+,PR
  15502. add Rm,Rn mac.w @Rm+,@Rn+
  15503. addc Rm,Rn mov #imm,Rn
  15504. addv Rm,Rn mov Rm,Rn
  15505. and #imm,R0 mov.b Rm,@(R0,Rn)
  15506. and Rm,Rn mov.b Rm,@-Rn
  15507. and.b #imm,@(R0,GBR) mov.b Rm,@Rn
  15508. bf disp8 mov.b @(disp,Rm),R0
  15509. bra disp12 mov.b @(disp,GBR),R0
  15510. bsr disp12 mov.b @(R0,Rm),Rn
  15511. bt disp8 mov.b @Rm+,Rn
  15512. clrmac mov.b @Rm,Rn
  15513. clrt mov.b R0,@(disp,Rm)
  15514. cmp/eq #imm,R0 mov.b R0,@(disp,GBR)
  15515. cmp/eq Rm,Rn mov.l Rm,@(disp,Rn)
  15516. cmp/ge Rm,Rn mov.l Rm,@(R0,Rn)
  15517. cmp/gt Rm,Rn mov.l Rm,@-Rn
  15518. cmp/hi Rm,Rn mov.l Rm,@Rn
  15519. cmp/hs Rm,Rn mov.l @(disp,Rn),Rm
  15520. cmp/pl Rn mov.l @(disp,GBR),R0
  15521. cmp/pz Rn mov.l @(disp,PC),Rn
  15522. cmp/str Rm,Rn mov.l @(R0,Rm),Rn
  15523. div0s Rm,Rn mov.l @Rm+,Rn
  15524. div0u mov.l @Rm,Rn
  15525. div1 Rm,Rn mov.l R0,@(disp,GBR)
  15526. exts.b Rm,Rn mov.w Rm,@(R0,Rn)
  15527. exts.w Rm,Rn mov.w Rm,@-Rn
  15528. extu.b Rm,Rn mov.w Rm,@Rn
  15529. extu.w Rm,Rn mov.w @(disp,Rm),R0
  15530. jmp @Rn mov.w @(disp,GBR),R0
  15531. jsr @Rn mov.w @(disp,PC),Rn
  15532. ldc Rn,GBR mov.w @(R0,Rm),Rn
  15533. ldc Rn,SR mov.w @Rm+,Rn
  15534. ldc Rn,VBR mov.w @Rm,Rn
  15535. ldc.l @Rn+,GBR mov.w R0,@(disp,Rm)
  15536. ldc.l @Rn+,SR mov.w R0,@(disp,GBR)
  15537. ldc.l @Rn+,VBR mova @(disp,PC),R0
  15538. lds Rn,MACH movt Rn
  15539. lds Rn,MACL muls Rm,Rn
  15540. lds Rn,PR mulu Rm,Rn
  15541. lds.l @Rn+,MACH neg Rm,Rn
  15542. lds.l @Rn+,MACL negc Rm,Rn
  15543. nop stc VBR,Rn
  15544. not Rm,Rn stc.l GBR,@-Rn
  15545. or #imm,R0 stc.l SR,@-Rn
  15546. or Rm,Rn stc.l VBR,@-Rn
  15547. or.b #imm,@(R0,GBR) sts MACH,Rn
  15548. rotcl Rn sts MACL,Rn
  15549. rotcr Rn sts PR,Rn
  15550. rotl Rn sts.l MACH,@-Rn
  15551. rotr Rn sts.l MACL,@-Rn
  15552. rte sts.l PR,@-Rn
  15553. rts sub Rm,Rn
  15554. sett subc Rm,Rn
  15555. shal Rn subv Rm,Rn
  15556. shar Rn swap.b Rm,Rn
  15557. shll Rn swap.w Rm,Rn
  15558. shll16 Rn tas.b @Rn
  15559. shll2 Rn trapa #imm
  15560. shll8 Rn tst #imm,R0
  15561. shlr Rn tst Rm,Rn
  15562. shlr16 Rn tst.b #imm,@(R0,GBR)
  15563. shlr2 Rn xor #imm,R0
  15564. shlr8 Rn xor Rm,Rn
  15565. sleep xor.b #imm,@(R0,GBR)
  15566. stc GBR,Rn xtrct Rm,Rn
  15567. stc SR,Rn
  15568. 
  15569. File: as.info, Node: Sparc-Dependent, Next: TIC54X-Dependent, Prev: SH-Dependent, Up: Machine Dependencies
  15570. 9.44 SPARC Dependent Features
  15571. =============================
  15572. * Menu:
  15573. * Sparc-Opts:: Options
  15574. * Sparc-Aligned-Data:: Option to enforce aligned data
  15575. * Sparc-Syntax:: Syntax
  15576. * Sparc-Float:: Floating Point
  15577. * Sparc-Directives:: Sparc Machine Directives
  15578. 
  15579. File: as.info, Node: Sparc-Opts, Next: Sparc-Aligned-Data, Up: Sparc-Dependent
  15580. 9.44.1 Options
  15581. --------------
  15582. The SPARC chip family includes several successive versions, using the
  15583. same core instruction set, but including a few additional instructions
  15584. at each version. There are exceptions to this however. For details on
  15585. what instructions each variant supports, please see the chip's
  15586. architecture reference manual.
  15587. By default, 'as' assumes the core instruction set (SPARC v6), but
  15588. "bumps" the architecture level as needed: it switches to successively
  15589. higher architectures as it encounters instructions that only exist in
  15590. the higher levels.
  15591. If not configured for SPARC v9 ('sparc64-*-*') GAS will not bump past
  15592. sparclite by default, an option must be passed to enable the v9
  15593. instructions.
  15594. GAS treats sparclite as being compatible with v8, unless an
  15595. architecture is explicitly requested. SPARC v9 is always incompatible
  15596. with sparclite.
  15597. '-Av6 | -Av7 | -Av8 | -Aleon | -Asparclet | -Asparclite'
  15598. '-Av8plus | -Av8plusa | -Av8plusb | -Av8plusc | -Av8plusd |'
  15599. '-Av8plusv | -Av8plusm | -Av8plusm8'
  15600. '-Av9 | -Av9a | -Av9b | -Av9c | -Av9d | -Av9e | -Av9v | -Av9m | -Av9m8'
  15601. '-Asparc | -Asparcvis | -Asparcvis2 | -Asparcfmaf | -Asparcima'
  15602. '-Asparcvis3 | -Asparcvis3r | -Asparc5 | -Asparc6'
  15603. Use one of the '-A' options to select one of the SPARC
  15604. architectures explicitly. If you select an architecture
  15605. explicitly, 'as' reports a fatal error if it encounters an
  15606. instruction or feature requiring an incompatible or higher level.
  15607. '-Av8plus', '-Av8plusa', '-Av8plusb', '-Av8plusc', '-Av8plusd', and
  15608. '-Av8plusv' select a 32 bit environment.
  15609. '-Av9', '-Av9a', '-Av9b', '-Av9c', '-Av9d', '-Av9e', '-Av9v' and
  15610. '-Av9m' select a 64 bit environment and are not available unless
  15611. GAS is explicitly configured with 64 bit environment support.
  15612. '-Av8plusa' and '-Av9a' enable the SPARC V9 instruction set with
  15613. UltraSPARC VIS 1.0 extensions.
  15614. '-Av8plusb' and '-Av9b' enable the UltraSPARC VIS 2.0 instructions,
  15615. as well as the instructions enabled by '-Av8plusa' and '-Av9a'.
  15616. '-Av8plusc' and '-Av9c' enable the UltraSPARC Niagara instructions,
  15617. as well as the instructions enabled by '-Av8plusb' and '-Av9b'.
  15618. '-Av8plusd' and '-Av9d' enable the floating point fused
  15619. multiply-add, VIS 3.0, and HPC extension instructions, as well as
  15620. the instructions enabled by '-Av8plusc' and '-Av9c'.
  15621. '-Av8pluse' and '-Av9e' enable the cryptographic instructions, as
  15622. well as the instructions enabled by '-Av8plusd' and '-Av9d'.
  15623. '-Av8plusv' and '-Av9v' enable floating point unfused multiply-add,
  15624. and integer multiply-add, as well as the instructions enabled by
  15625. '-Av8pluse' and '-Av9e'.
  15626. '-Av8plusm' and '-Av9m' enable the VIS 4.0, subtract extended,
  15627. xmpmul, xmontmul and xmontsqr instructions, as well as the
  15628. instructions enabled by '-Av8plusv' and '-Av9v'.
  15629. '-Av8plusm8' and '-Av9m8' enable the instructions introduced in the
  15630. Oracle SPARC Architecture 2017 and the M8 processor, as well as the
  15631. instructions enabled by '-Av8plusm' and '-Av9m'.
  15632. '-Asparc' specifies a v9 environment. It is equivalent to '-Av9'
  15633. if the word size is 64-bit, and '-Av8plus' otherwise.
  15634. '-Asparcvis' specifies a v9a environment. It is equivalent to
  15635. '-Av9a' if the word size is 64-bit, and '-Av8plusa' otherwise.
  15636. '-Asparcvis2' specifies a v9b environment. It is equivalent to
  15637. '-Av9b' if the word size is 64-bit, and '-Av8plusb' otherwise.
  15638. '-Asparcfmaf' specifies a v9b environment with the floating point
  15639. fused multiply-add instructions enabled.
  15640. '-Asparcima' specifies a v9b environment with the integer
  15641. multiply-add instructions enabled.
  15642. '-Asparcvis3' specifies a v9b environment with the VIS 3.0, HPC ,
  15643. and floating point fused multiply-add instructions enabled.
  15644. '-Asparcvis3r' specifies a v9b environment with the VIS 3.0, HPC,
  15645. and floating point unfused multiply-add instructions enabled.
  15646. '-Asparc5' is equivalent to '-Av9m'.
  15647. '-Asparc6' is equivalent to '-Av9m8'.
  15648. '-xarch=v8plus | -xarch=v8plusa | -xarch=v8plusb | -xarch=v8plusc'
  15649. '-xarch=v8plusd | -xarch=v8plusv | -xarch=v8plusm |'
  15650. '-xarch=v8plusm8 | -xarch=v9 | -xarch=v9a | -xarch=v9b'
  15651. '-xarch=v9c | -xarch=v9d | -xarch=v9e | -xarch=v9v'
  15652. '-xarch=v9m | -xarch=v9m8'
  15653. '-xarch=sparc | -xarch=sparcvis | -xarch=sparcvis2'
  15654. '-xarch=sparcfmaf | -xarch=sparcima | -xarch=sparcvis3'
  15655. '-xarch=sparcvis3r | -xarch=sparc5 | -xarch=sparc6'
  15656. For compatibility with the SunOS v9 assembler. These options are
  15657. equivalent to -Av8plus, -Av8plusa, -Av8plusb, -Av8plusc, -Av8plusd,
  15658. -Av8plusv, -Av8plusm, -Av8plusm8, -Av9, -Av9a, -Av9b, -Av9c, -Av9d,
  15659. -Av9e, -Av9v, -Av9m, -Av9m8, -Asparc, -Asparcvis, -Asparcvis2,
  15660. -Asparcfmaf, -Asparcima, -Asparcvis3, -Asparcvis3r, -Asparc5 and
  15661. -Asparc6 respectively.
  15662. '-bump'
  15663. Warn whenever it is necessary to switch to another level. If an
  15664. architecture level is explicitly requested, GAS will not issue
  15665. warnings until that level is reached, and will then bump the level
  15666. as required (except between incompatible levels).
  15667. '-32 | -64'
  15668. Select the word size, either 32 bits or 64 bits. These options are
  15669. only available with the ELF object file format, and require that
  15670. the necessary BFD support has been included.
  15671. '--dcti-couples-detect'
  15672. Warn if a DCTI (delayed control transfer instruction) couple is
  15673. found when generating code for a variant of the SPARC architecture
  15674. in which the execution of the couple is unpredictable, or very
  15675. slow. This is disabled by default.
  15676. 
  15677. File: as.info, Node: Sparc-Aligned-Data, Next: Sparc-Syntax, Prev: Sparc-Opts, Up: Sparc-Dependent
  15678. 9.44.2 Enforcing aligned data
  15679. -----------------------------
  15680. SPARC GAS normally permits data to be misaligned. For example, it
  15681. permits the '.long' pseudo-op to be used on a byte boundary. However,
  15682. the native SunOS assemblers issue an error when they see misaligned
  15683. data.
  15684. You can use the '--enforce-aligned-data' option to make SPARC GAS
  15685. also issue an error about misaligned data, just as the SunOS assemblers
  15686. do.
  15687. The '--enforce-aligned-data' option is not the default because gcc
  15688. issues misaligned data pseudo-ops when it initializes certain packed
  15689. data structures (structures defined using the 'packed' attribute). You
  15690. may have to assemble with GAS in order to initialize packed data
  15691. structures in your own code.
  15692. 
  15693. File: as.info, Node: Sparc-Syntax, Next: Sparc-Float, Prev: Sparc-Aligned-Data, Up: Sparc-Dependent
  15694. 9.44.3 Sparc Syntax
  15695. -------------------
  15696. The assembler syntax closely follows The Sparc Architecture Manual,
  15697. versions 8 and 9, as well as most extensions defined by Sun for their
  15698. UltraSPARC and Niagara line of processors.
  15699. * Menu:
  15700. * Sparc-Chars:: Special Characters
  15701. * Sparc-Regs:: Register Names
  15702. * Sparc-Constants:: Constant Names
  15703. * Sparc-Relocs:: Relocations
  15704. * Sparc-Size-Translations:: Size Translations
  15705. 
  15706. File: as.info, Node: Sparc-Chars, Next: Sparc-Regs, Up: Sparc-Syntax
  15707. 9.44.3.1 Special Characters
  15708. ...........................
  15709. A '!' character appearing anywhere on a line indicates the start of a
  15710. comment that extends to the end of that line.
  15711. If a '#' appears as the first character of a line then the whole line
  15712. is treated as a comment, but in this case the line could also be a
  15713. logical line number directive (*note Comments::) or a preprocessor
  15714. control command (*note Preprocessing::).
  15715. ';' can be used instead of a newline to separate statements.
  15716. 
  15717. File: as.info, Node: Sparc-Regs, Next: Sparc-Constants, Prev: Sparc-Chars, Up: Sparc-Syntax
  15718. 9.44.3.2 Register Names
  15719. .......................
  15720. The Sparc integer register file is broken down into global, outgoing,
  15721. local, and incoming.
  15722. * The 8 global registers are referred to as '%gN'.
  15723. * The 8 outgoing registers are referred to as '%oN'.
  15724. * The 8 local registers are referred to as '%lN'.
  15725. * The 8 incoming registers are referred to as '%iN'.
  15726. * The frame pointer register '%i6' can be referenced using the alias
  15727. '%fp'.
  15728. * The stack pointer register '%o6' can be referenced using the alias
  15729. '%sp'.
  15730. Floating point registers are simply referred to as '%fN'. When
  15731. assembling for pre-V9, only 32 floating point registers are available.
  15732. For V9 and later there are 64, but there are restrictions when
  15733. referencing the upper 32 registers. They can only be accessed as double
  15734. or quad, and thus only even or quad numbered accesses are allowed. For
  15735. example, '%f34' is a legal floating point register, but '%f35' is not.
  15736. Floating point registers accessed as double can also be referred
  15737. using the '%dN' notation, where N is even. Similarly, floating point
  15738. registers accessed as quad can be referred using the '%qN' notation,
  15739. where N is a multiple of 4. For example, '%f4' can be denoted as both
  15740. '%d4' and '%q4'. On the other hand, '%f2' can be denoted as '%d2' but
  15741. not as '%q2'.
  15742. Certain V9 instructions allow access to ancillary state registers.
  15743. Most simply they can be referred to as '%asrN' where N can be from 16 to
  15744. 31. However, there are some aliases defined to reference ASR registers
  15745. defined for various UltraSPARC processors:
  15746. * The tick compare register is referred to as '%tick_cmpr'.
  15747. * The system tick register is referred to as '%stick'. An alias,
  15748. '%sys_tick', exists but is deprecated and should not be used by new
  15749. software.
  15750. * The system tick compare register is referred to as '%stick_cmpr'.
  15751. An alias, '%sys_tick_cmpr', exists but is deprecated and should not
  15752. be used by new software.
  15753. * The software interrupt register is referred to as '%softint'.
  15754. * The set software interrupt register is referred to as
  15755. '%set_softint'. The mnemonic '%softint_set' is provided as an
  15756. alias.
  15757. * The clear software interrupt register is referred to as
  15758. '%clear_softint'. The mnemonic '%softint_clear' is provided as an
  15759. alias.
  15760. * The performance instrumentation counters register is referred to as
  15761. '%pic'.
  15762. * The performance control register is referred to as '%pcr'.
  15763. * The graphics status register is referred to as '%gsr'.
  15764. * The V9 dispatch control register is referred to as '%dcr'.
  15765. Various V9 branch and conditional move instructions allow
  15766. specification of which set of integer condition codes to test. These
  15767. are referred to as '%xcc' and '%icc'.
  15768. Additionally, GAS supports the so-called "natural" condition codes;
  15769. these are referred to as '%ncc' and reference to '%icc' if the word size
  15770. is 32, '%xcc' if the word size is 64.
  15771. In V9, there are 4 sets of floating point condition codes which are
  15772. referred to as '%fccN'.
  15773. Several special privileged and non-privileged registers exist:
  15774. * The V9 address space identifier register is referred to as '%asi'.
  15775. * The V9 restorable windows register is referred to as '%canrestore'.
  15776. * The V9 savable windows register is referred to as '%cansave'.
  15777. * The V9 clean windows register is referred to as '%cleanwin'.
  15778. * The V9 current window pointer register is referred to as '%cwp'.
  15779. * The floating-point queue register is referred to as '%fq'.
  15780. * The V8 co-processor queue register is referred to as '%cq'.
  15781. * The floating point status register is referred to as '%fsr'.
  15782. * The other windows register is referred to as '%otherwin'.
  15783. * The V9 program counter register is referred to as '%pc'.
  15784. * The V9 next program counter register is referred to as '%npc'.
  15785. * The V9 processor interrupt level register is referred to as '%pil'.
  15786. * The V9 processor state register is referred to as '%pstate'.
  15787. * The trap base address register is referred to as '%tba'.
  15788. * The V9 tick register is referred to as '%tick'.
  15789. * The V9 trap level is referred to as '%tl'.
  15790. * The V9 trap program counter is referred to as '%tpc'.
  15791. * The V9 trap next program counter is referred to as '%tnpc'.
  15792. * The V9 trap state is referred to as '%tstate'.
  15793. * The V9 trap type is referred to as '%tt'.
  15794. * The V9 condition codes is referred to as '%ccr'.
  15795. * The V9 floating-point registers state is referred to as '%fprs'.
  15796. * The V9 version register is referred to as '%ver'.
  15797. * The V9 window state register is referred to as '%wstate'.
  15798. * The Y register is referred to as '%y'.
  15799. * The V8 window invalid mask register is referred to as '%wim'.
  15800. * The V8 processor state register is referred to as '%psr'.
  15801. * The V9 global register level register is referred to as '%gl'.
  15802. Several special register names exist for hypervisor mode code:
  15803. * The hyperprivileged processor state register is referred to as
  15804. '%hpstate'.
  15805. * The hyperprivileged trap state register is referred to as
  15806. '%htstate'.
  15807. * The hyperprivileged interrupt pending register is referred to as
  15808. '%hintp'.
  15809. * The hyperprivileged trap base address register is referred to as
  15810. '%htba'.
  15811. * The hyperprivileged implementation version register is referred to
  15812. as '%hver'.
  15813. * The hyperprivileged system tick offset register is referred to as
  15814. '%hstick_offset'. Note that there is no '%hstick' register, the
  15815. normal '%stick' is used.
  15816. * The hyperprivileged system tick enable register is referred to as
  15817. '%hstick_enable'.
  15818. * The hyperprivileged system tick compare register is referred to as
  15819. '%hstick_cmpr'.
  15820. 
  15821. File: as.info, Node: Sparc-Constants, Next: Sparc-Relocs, Prev: Sparc-Regs, Up: Sparc-Syntax
  15822. 9.44.3.3 Constants
  15823. ..................
  15824. Several Sparc instructions take an immediate operand field for which
  15825. mnemonic names exist. Two such examples are 'membar' and 'prefetch'.
  15826. Another example are the set of V9 memory access instruction that allow
  15827. specification of an address space identifier.
  15828. The 'membar' instruction specifies a memory barrier that is the
  15829. defined by the operand which is a bitmask. The supported mask mnemonics
  15830. are:
  15831. * '#Sync' requests that all operations (including nonmemory reference
  15832. operations) appearing prior to the 'membar' must have been
  15833. performed and the effects of any exceptions become visible before
  15834. any instructions after the 'membar' may be initiated. This
  15835. corresponds to 'membar' cmask field bit 2.
  15836. * '#MemIssue' requests that all memory reference operations appearing
  15837. prior to the 'membar' must have been performed before any memory
  15838. operation after the 'membar' may be initiated. This corresponds to
  15839. 'membar' cmask field bit 1.
  15840. * '#Lookaside' requests that a store appearing prior to the 'membar'
  15841. must complete before any load following the 'membar' referencing
  15842. the same address can be initiated. This corresponds to 'membar'
  15843. cmask field bit 0.
  15844. * '#StoreStore' defines that the effects of all stores appearing
  15845. prior to the 'membar' instruction must be visible to all processors
  15846. before the effect of any stores following the 'membar'. Equivalent
  15847. to the deprecated 'stbar' instruction. This corresponds to
  15848. 'membar' mmask field bit 3.
  15849. * '#LoadStore' defines all loads appearing prior to the 'membar'
  15850. instruction must have been performed before the effect of any
  15851. stores following the 'membar' is visible to any other processor.
  15852. This corresponds to 'membar' mmask field bit 2.
  15853. * '#StoreLoad' defines that the effects of all stores appearing prior
  15854. to the 'membar' instruction must be visible to all processors
  15855. before loads following the 'membar' may be performed. This
  15856. corresponds to 'membar' mmask field bit 1.
  15857. * '#LoadLoad' defines that all loads appearing prior to the 'membar'
  15858. instruction must have been performed before any loads following the
  15859. 'membar' may be performed. This corresponds to 'membar' mmask
  15860. field bit 0.
  15861. These values can be ored together, for example:
  15862. membar #Sync
  15863. membar #StoreLoad | #LoadLoad
  15864. membar #StoreLoad | #StoreStore
  15865. The 'prefetch' and 'prefetcha' instructions take a prefetch function
  15866. code. The following prefetch function code constant mnemonics are
  15867. available:
  15868. * '#n_reads' requests a prefetch for several reads, and corresponds
  15869. to a prefetch function code of 0.
  15870. '#one_read' requests a prefetch for one read, and corresponds to a
  15871. prefetch function code of 1.
  15872. '#n_writes' requests a prefetch for several writes (and possibly
  15873. reads), and corresponds to a prefetch function code of 2.
  15874. '#one_write' requests a prefetch for one write, and corresponds to
  15875. a prefetch function code of 3.
  15876. '#page' requests a prefetch page, and corresponds to a prefetch
  15877. function code of 4.
  15878. '#invalidate' requests a prefetch invalidate, and corresponds to a
  15879. prefetch function code of 16.
  15880. '#unified' requests a prefetch to the nearest unified cache, and
  15881. corresponds to a prefetch function code of 17.
  15882. '#n_reads_strong' requests a strong prefetch for several reads, and
  15883. corresponds to a prefetch function code of 20.
  15884. '#one_read_strong' requests a strong prefetch for one read, and
  15885. corresponds to a prefetch function code of 21.
  15886. '#n_writes_strong' requests a strong prefetch for several writes,
  15887. and corresponds to a prefetch function code of 22.
  15888. '#one_write_strong' requests a strong prefetch for one write, and
  15889. corresponds to a prefetch function code of 23.
  15890. Onle one prefetch code may be specified. Here are some examples:
  15891. prefetch [%l0 + %l2], #one_read
  15892. prefetch [%g2 + 8], #n_writes
  15893. prefetcha [%g1] 0x8, #unified
  15894. prefetcha [%o0 + 0x10] %asi, #n_reads
  15895. The actual behavior of a given prefetch function code is processor
  15896. specific. If a processor does not implement a given prefetch
  15897. function code, it will treat the prefetch instruction as a nop.
  15898. For instructions that accept an immediate address space identifier,
  15899. 'as' provides many mnemonics corresponding to V9 defined as well as
  15900. UltraSPARC and Niagara extended values. For example, '#ASI_P' and
  15901. '#ASI_BLK_INIT_QUAD_LDD_AIUS'. See the V9 and processor specific
  15902. manuals for details.
  15903. 
  15904. File: as.info, Node: Sparc-Relocs, Next: Sparc-Size-Translations, Prev: Sparc-Constants, Up: Sparc-Syntax
  15905. 9.44.3.4 Relocations
  15906. ....................
  15907. ELF relocations are available as defined in the 32-bit and 64-bit Sparc
  15908. ELF specifications.
  15909. 'R_SPARC_HI22' is obtained using '%hi' and 'R_SPARC_LO10' is obtained
  15910. using '%lo'. Likewise 'R_SPARC_HIX22' is obtained from '%hix' and
  15911. 'R_SPARC_LOX10' is obtained using '%lox'. For example:
  15912. sethi %hi(symbol), %g1
  15913. or %g1, %lo(symbol), %g1
  15914. sethi %hix(symbol), %g1
  15915. xor %g1, %lox(symbol), %g1
  15916. These "high" mnemonics extract bits 31:10 of their operand, and the
  15917. "low" mnemonics extract bits 9:0 of their operand.
  15918. V9 code model relocations can be requested as follows:
  15919. * 'R_SPARC_HH22' is requested using '%hh'. It can also be generated
  15920. using '%uhi'.
  15921. * 'R_SPARC_HM10' is requested using '%hm'. It can also be generated
  15922. using '%ulo'.
  15923. * 'R_SPARC_LM22' is requested using '%lm'.
  15924. * 'R_SPARC_H44' is requested using '%h44'.
  15925. * 'R_SPARC_M44' is requested using '%m44'.
  15926. * 'R_SPARC_L44' is requested using '%l44' or '%l34'.
  15927. * 'R_SPARC_H34' is requested using '%h34'.
  15928. The '%l34' generates a 'R_SPARC_L44' relocation because it calculates
  15929. the necessary value, and therefore no explicit 'R_SPARC_L34' relocation
  15930. needed to be created for this purpose.
  15931. The '%h34' and '%l34' relocations are used for the abs34 code model.
  15932. Here is an example abs34 address generation sequence:
  15933. sethi %h34(symbol), %g1
  15934. sllx %g1, 2, %g1
  15935. or %g1, %l34(symbol), %g1
  15936. The PC relative relocation 'R_SPARC_PC22' can be obtained by
  15937. enclosing an operand inside of '%pc22'. Likewise, the 'R_SPARC_PC10'
  15938. relocation can be obtained using '%pc10'. These are mostly used when
  15939. assembling PIC code. For example, the standard PIC sequence on Sparc to
  15940. get the base of the global offset table, PC relative, into a register,
  15941. can be performed as:
  15942. sethi %pc22(_GLOBAL_OFFSET_TABLE_-4), %l7
  15943. add %l7, %pc10(_GLOBAL_OFFSET_TABLE_+4), %l7
  15944. Several relocations exist to allow the link editor to potentially
  15945. optimize GOT data references. The 'R_SPARC_GOTDATA_OP_HIX22' relocation
  15946. can obtained by enclosing an operand inside of '%gdop_hix22'. The
  15947. 'R_SPARC_GOTDATA_OP_LOX10' relocation can obtained by enclosing an
  15948. operand inside of '%gdop_lox10'. Likewise, 'R_SPARC_GOTDATA_OP' can be
  15949. obtained by enclosing an operand inside of '%gdop'. For example,
  15950. assuming the GOT base is in register '%l7':
  15951. sethi %gdop_hix22(symbol), %l1
  15952. xor %l1, %gdop_lox10(symbol), %l1
  15953. ld [%l7 + %l1], %l2, %gdop(symbol)
  15954. There are many relocations that can be requested for access to thread
  15955. local storage variables. All of the Sparc TLS mnemonics are supported:
  15956. * 'R_SPARC_TLS_GD_HI22' is requested using '%tgd_hi22'.
  15957. * 'R_SPARC_TLS_GD_LO10' is requested using '%tgd_lo10'.
  15958. * 'R_SPARC_TLS_GD_ADD' is requested using '%tgd_add'.
  15959. * 'R_SPARC_TLS_GD_CALL' is requested using '%tgd_call'.
  15960. * 'R_SPARC_TLS_LDM_HI22' is requested using '%tldm_hi22'.
  15961. * 'R_SPARC_TLS_LDM_LO10' is requested using '%tldm_lo10'.
  15962. * 'R_SPARC_TLS_LDM_ADD' is requested using '%tldm_add'.
  15963. * 'R_SPARC_TLS_LDM_CALL' is requested using '%tldm_call'.
  15964. * 'R_SPARC_TLS_LDO_HIX22' is requested using '%tldo_hix22'.
  15965. * 'R_SPARC_TLS_LDO_LOX10' is requested using '%tldo_lox10'.
  15966. * 'R_SPARC_TLS_LDO_ADD' is requested using '%tldo_add'.
  15967. * 'R_SPARC_TLS_IE_HI22' is requested using '%tie_hi22'.
  15968. * 'R_SPARC_TLS_IE_LO10' is requested using '%tie_lo10'.
  15969. * 'R_SPARC_TLS_IE_LD' is requested using '%tie_ld'.
  15970. * 'R_SPARC_TLS_IE_LDX' is requested using '%tie_ldx'.
  15971. * 'R_SPARC_TLS_IE_ADD' is requested using '%tie_add'.
  15972. * 'R_SPARC_TLS_LE_HIX22' is requested using '%tle_hix22'.
  15973. * 'R_SPARC_TLS_LE_LOX10' is requested using '%tle_lox10'.
  15974. Here are some example TLS model sequences.
  15975. First, General Dynamic:
  15976. sethi %tgd_hi22(symbol), %l1
  15977. add %l1, %tgd_lo10(symbol), %l1
  15978. add %l7, %l1, %o0, %tgd_add(symbol)
  15979. call __tls_get_addr, %tgd_call(symbol)
  15980. nop
  15981. Local Dynamic:
  15982. sethi %tldm_hi22(symbol), %l1
  15983. add %l1, %tldm_lo10(symbol), %l1
  15984. add %l7, %l1, %o0, %tldm_add(symbol)
  15985. call __tls_get_addr, %tldm_call(symbol)
  15986. nop
  15987. sethi %tldo_hix22(symbol), %l1
  15988. xor %l1, %tldo_lox10(symbol), %l1
  15989. add %o0, %l1, %l1, %tldo_add(symbol)
  15990. Initial Exec:
  15991. sethi %tie_hi22(symbol), %l1
  15992. add %l1, %tie_lo10(symbol), %l1
  15993. ld [%l7 + %l1], %o0, %tie_ld(symbol)
  15994. add %g7, %o0, %o0, %tie_add(symbol)
  15995. sethi %tie_hi22(symbol), %l1
  15996. add %l1, %tie_lo10(symbol), %l1
  15997. ldx [%l7 + %l1], %o0, %tie_ldx(symbol)
  15998. add %g7, %o0, %o0, %tie_add(symbol)
  15999. And finally, Local Exec:
  16000. sethi %tle_hix22(symbol), %l1
  16001. add %l1, %tle_lox10(symbol), %l1
  16002. add %g7, %l1, %l1
  16003. When assembling for 64-bit, and a secondary constant addend is
  16004. specified in an address expression that would normally generate an
  16005. 'R_SPARC_LO10' relocation, the assembler will emit an 'R_SPARC_OLO10'
  16006. instead.
  16007. 
  16008. File: as.info, Node: Sparc-Size-Translations, Prev: Sparc-Relocs, Up: Sparc-Syntax
  16009. 9.44.3.5 Size Translations
  16010. ..........................
  16011. Often it is desirable to write code in an operand size agnostic manner.
  16012. 'as' provides support for this via operand size opcode translations.
  16013. Translations are supported for loads, stores, shifts, compare-and-swap
  16014. atomics, and the 'clr' synthetic instruction.
  16015. If generating 32-bit code, 'as' will generate the 32-bit opcode.
  16016. Whereas if 64-bit code is being generated, the 64-bit opcode will be
  16017. emitted. For example 'ldn' will be transformed into 'ld' for 32-bit
  16018. code and 'ldx' for 64-bit code.
  16019. Here is an example meant to demonstrate all the supported opcode
  16020. translations:
  16021. ldn [%o0], %o1
  16022. ldna [%o0] %asi, %o2
  16023. stn %o1, [%o0]
  16024. stna %o2, [%o0] %asi
  16025. slln %o3, 3, %o3
  16026. srln %o4, 8, %o4
  16027. sran %o5, 12, %o5
  16028. casn [%o0], %o1, %o2
  16029. casna [%o0] %asi, %o1, %o2
  16030. clrn %g1
  16031. In 32-bit mode 'as' will emit:
  16032. ld [%o0], %o1
  16033. lda [%o0] %asi, %o2
  16034. st %o1, [%o0]
  16035. sta %o2, [%o0] %asi
  16036. sll %o3, 3, %o3
  16037. srl %o4, 8, %o4
  16038. sra %o5, 12, %o5
  16039. cas [%o0], %o1, %o2
  16040. casa [%o0] %asi, %o1, %o2
  16041. clr %g1
  16042. And in 64-bit mode 'as' will emit:
  16043. ldx [%o0], %o1
  16044. ldxa [%o0] %asi, %o2
  16045. stx %o1, [%o0]
  16046. stxa %o2, [%o0] %asi
  16047. sllx %o3, 3, %o3
  16048. srlx %o4, 8, %o4
  16049. srax %o5, 12, %o5
  16050. casx [%o0], %o1, %o2
  16051. casxa [%o0] %asi, %o1, %o2
  16052. clrx %g1
  16053. Finally, the '.nword' translating directive is supported as well. It
  16054. is documented in the section on Sparc machine directives.
  16055. 
  16056. File: as.info, Node: Sparc-Float, Next: Sparc-Directives, Prev: Sparc-Syntax, Up: Sparc-Dependent
  16057. 9.44.4 Floating Point
  16058. ---------------------
  16059. The Sparc uses IEEE floating-point numbers.
  16060. 
  16061. File: as.info, Node: Sparc-Directives, Prev: Sparc-Float, Up: Sparc-Dependent
  16062. 9.44.5 Sparc Machine Directives
  16063. -------------------------------
  16064. The Sparc version of 'as' supports the following additional machine
  16065. directives:
  16066. '.align'
  16067. This must be followed by the desired alignment in bytes.
  16068. '.common'
  16069. This must be followed by a symbol name, a positive number, and
  16070. '"bss"'. This behaves somewhat like '.comm', but the syntax is
  16071. different.
  16072. '.half'
  16073. This is functionally identical to '.short'.
  16074. '.nword'
  16075. On the Sparc, the '.nword' directive produces native word sized
  16076. value, ie. if assembling with -32 it is equivalent to '.word', if
  16077. assembling with -64 it is equivalent to '.xword'.
  16078. '.proc'
  16079. This directive is ignored. Any text following it on the same line
  16080. is also ignored.
  16081. '.register'
  16082. This directive declares use of a global application or system
  16083. register. It must be followed by a register name %g2, %g3, %g6 or
  16084. %g7, comma and the symbol name for that register. If symbol name
  16085. is '#scratch', it is a scratch register, if it is '#ignore', it
  16086. just suppresses any errors about using undeclared global register,
  16087. but does not emit any information about it into the object file.
  16088. This can be useful e.g. if you save the register before use and
  16089. restore it after.
  16090. '.reserve'
  16091. This must be followed by a symbol name, a positive number, and
  16092. '"bss"'. This behaves somewhat like '.lcomm', but the syntax is
  16093. different.
  16094. '.seg'
  16095. This must be followed by '"text"', '"data"', or '"data1"'. It
  16096. behaves like '.text', '.data', or '.data 1'.
  16097. '.skip'
  16098. This is functionally identical to the '.space' directive.
  16099. '.word'
  16100. On the Sparc, the '.word' directive produces 32 bit values, instead
  16101. of the 16 bit values it produces on many other machines.
  16102. '.xword'
  16103. On the Sparc V9 processor, the '.xword' directive produces 64 bit
  16104. values.
  16105. 
  16106. File: as.info, Node: TIC54X-Dependent, Next: TIC6X-Dependent, Prev: Sparc-Dependent, Up: Machine Dependencies
  16107. 9.45 TIC54X Dependent Features
  16108. ==============================
  16109. * Menu:
  16110. * TIC54X-Opts:: Command-line Options
  16111. * TIC54X-Block:: Blocking
  16112. * TIC54X-Env:: Environment Settings
  16113. * TIC54X-Constants:: Constants Syntax
  16114. * TIC54X-Subsyms:: String Substitution
  16115. * TIC54X-Locals:: Local Label Syntax
  16116. * TIC54X-Builtins:: Builtin Assembler Math Functions
  16117. * TIC54X-Ext:: Extended Addressing Support
  16118. * TIC54X-Directives:: Directives
  16119. * TIC54X-Macros:: Macro Features
  16120. * TIC54X-MMRegs:: Memory-mapped Registers
  16121. * TIC54X-Syntax:: Syntax
  16122. 
  16123. File: as.info, Node: TIC54X-Opts, Next: TIC54X-Block, Up: TIC54X-Dependent
  16124. 9.45.1 Options
  16125. --------------
  16126. The TMS320C54X version of 'as' has a few machine-dependent options.
  16127. You can use the '-mfar-mode' option to enable extended addressing
  16128. mode. All addresses will be assumed to be > 16 bits, and the
  16129. appropriate relocation types will be used. This option is equivalent to
  16130. using the '.far_mode' directive in the assembly code. If you do not use
  16131. the '-mfar-mode' option, all references will be assumed to be 16 bits.
  16132. This option may be abbreviated to '-mf'.
  16133. You can use the '-mcpu' option to specify a particular CPU. This
  16134. option is equivalent to using the '.version' directive in the assembly
  16135. code. For recognized CPU codes, see *Note '.version':
  16136. TIC54X-Directives. The default CPU version is '542'.
  16137. You can use the '-merrors-to-file' option to redirect error output to
  16138. a file (this provided for those deficient environments which don't
  16139. provide adequate output redirection). This option may be abbreviated to
  16140. '-me'.
  16141. 
  16142. File: as.info, Node: TIC54X-Block, Next: TIC54X-Env, Prev: TIC54X-Opts, Up: TIC54X-Dependent
  16143. 9.45.2 Blocking
  16144. ---------------
  16145. A blocked section or memory block is guaranteed not to cross the
  16146. blocking boundary (usually a page, or 128 words) if it is smaller than
  16147. the blocking size, or to start on a page boundary if it is larger than
  16148. the blocking size.
  16149. 
  16150. File: as.info, Node: TIC54X-Env, Next: TIC54X-Constants, Prev: TIC54X-Block, Up: TIC54X-Dependent
  16151. 9.45.3 Environment Settings
  16152. ---------------------------
  16153. 'C54XDSP_DIR' and 'A_DIR' are semicolon-separated paths which are added
  16154. to the list of directories normally searched for source and include
  16155. files. 'C54XDSP_DIR' will override 'A_DIR'.
  16156. 
  16157. File: as.info, Node: TIC54X-Constants, Next: TIC54X-Subsyms, Prev: TIC54X-Env, Up: TIC54X-Dependent
  16158. 9.45.4 Constants Syntax
  16159. -----------------------
  16160. The TIC54X version of 'as' allows the following additional constant
  16161. formats, using a suffix to indicate the radix:
  16162. Binary 000000B, 011000b
  16163. Octal 10Q, 224q
  16164. Hexadecimal 45h, 0FH
  16165. 
  16166. File: as.info, Node: TIC54X-Subsyms, Next: TIC54X-Locals, Prev: TIC54X-Constants, Up: TIC54X-Dependent
  16167. 9.45.5 String Substitution
  16168. --------------------------
  16169. A subset of allowable symbols (which we'll call subsyms) may be assigned
  16170. arbitrary string values. This is roughly equivalent to C preprocessor
  16171. #define macros. When 'as' encounters one of these symbols, the symbol
  16172. is replaced in the input stream by its string value. Subsym names
  16173. *must* begin with a letter.
  16174. Subsyms may be defined using the '.asg' and '.eval' directives (*Note
  16175. '.asg': TIC54X-Directives, *Note '.eval': TIC54X-Directives.
  16176. Expansion is recursive until a previously encountered symbol is seen,
  16177. at which point substitution stops.
  16178. In this example, x is replaced with SYM2; SYM2 is replaced with SYM1,
  16179. and SYM1 is replaced with x. At this point, x has already been
  16180. encountered and the substitution stops.
  16181. .asg "x",SYM1
  16182. .asg "SYM1",SYM2
  16183. .asg "SYM2",x
  16184. add x,a ; final code assembled is "add x, a"
  16185. Macro parameters are converted to subsyms; a side effect of this is
  16186. the normal 'as' '\ARG' dereferencing syntax is unnecessary. Subsyms
  16187. defined within a macro will have global scope, unless the '.var'
  16188. directive is used to identify the subsym as a local macro variable *note
  16189. '.var': TIC54X-Directives.
  16190. Substitution may be forced in situations where replacement might be
  16191. ambiguous by placing colons on either side of the subsym. The following
  16192. code:
  16193. .eval "10",x
  16194. LAB:X: add #x, a
  16195. When assembled becomes:
  16196. LAB10 add #10, a
  16197. Smaller parts of the string assigned to a subsym may be accessed with
  16198. the following syntax:
  16199. ':SYMBOL(CHAR_INDEX):'
  16200. Evaluates to a single-character string, the character at
  16201. CHAR_INDEX.
  16202. ':SYMBOL(START,LENGTH):'
  16203. Evaluates to a substring of SYMBOL beginning at START with length
  16204. LENGTH.
  16205. 
  16206. File: as.info, Node: TIC54X-Locals, Next: TIC54X-Builtins, Prev: TIC54X-Subsyms, Up: TIC54X-Dependent
  16207. 9.45.6 Local Labels
  16208. -------------------
  16209. Local labels may be defined in two ways:
  16210. * $N, where N is a decimal number between 0 and 9
  16211. * LABEL?, where LABEL is any legal symbol name.
  16212. Local labels thus defined may be redefined or automatically
  16213. generated. The scope of a local label is based on when it may be
  16214. undefined or reset. This happens when one of the following situations
  16215. is encountered:
  16216. * .newblock directive *note '.newblock': TIC54X-Directives.
  16217. * The current section is changed (.sect, .text, or .data)
  16218. * Entering or leaving an included file
  16219. * The macro scope where the label was defined is exited
  16220. 
  16221. File: as.info, Node: TIC54X-Builtins, Next: TIC54X-Ext, Prev: TIC54X-Locals, Up: TIC54X-Dependent
  16222. 9.45.7 Math Builtins
  16223. --------------------
  16224. The following built-in functions may be used to generate a
  16225. floating-point value. All return a floating-point value except '$cvi',
  16226. '$int', and '$sgn', which return an integer value.
  16227. '$acos(EXPR)'
  16228. Returns the floating point arccosine of EXPR.
  16229. '$asin(EXPR)'
  16230. Returns the floating point arcsine of EXPR.
  16231. '$atan(EXPR)'
  16232. Returns the floating point arctangent of EXPR.
  16233. '$atan2(EXPR1,EXPR2)'
  16234. Returns the floating point arctangent of EXPR1 / EXPR2.
  16235. '$ceil(EXPR)'
  16236. Returns the smallest integer not less than EXPR as floating point.
  16237. '$cosh(EXPR)'
  16238. Returns the floating point hyperbolic cosine of EXPR.
  16239. '$cos(EXPR)'
  16240. Returns the floating point cosine of EXPR.
  16241. '$cvf(EXPR)'
  16242. Returns the integer value EXPR converted to floating-point.
  16243. '$cvi(EXPR)'
  16244. Returns the floating point value EXPR converted to integer.
  16245. '$exp(EXPR)'
  16246. Returns the floating point value e ^ EXPR.
  16247. '$fabs(EXPR)'
  16248. Returns the floating point absolute value of EXPR.
  16249. '$floor(EXPR)'
  16250. Returns the largest integer that is not greater than EXPR as
  16251. floating point.
  16252. '$fmod(EXPR1,EXPR2)'
  16253. Returns the floating point remainder of EXPR1 / EXPR2.
  16254. '$int(EXPR)'
  16255. Returns 1 if EXPR evaluates to an integer, zero otherwise.
  16256. '$ldexp(EXPR1,EXPR2)'
  16257. Returns the floating point value EXPR1 * 2 ^ EXPR2.
  16258. '$log10(EXPR)'
  16259. Returns the base 10 logarithm of EXPR.
  16260. '$log(EXPR)'
  16261. Returns the natural logarithm of EXPR.
  16262. '$max(EXPR1,EXPR2)'
  16263. Returns the floating point maximum of EXPR1 and EXPR2.
  16264. '$min(EXPR1,EXPR2)'
  16265. Returns the floating point minimum of EXPR1 and EXPR2.
  16266. '$pow(EXPR1,EXPR2)'
  16267. Returns the floating point value EXPR1 ^ EXPR2.
  16268. '$round(EXPR)'
  16269. Returns the nearest integer to EXPR as a floating point number.
  16270. '$sgn(EXPR)'
  16271. Returns -1, 0, or 1 based on the sign of EXPR.
  16272. '$sin(EXPR)'
  16273. Returns the floating point sine of EXPR.
  16274. '$sinh(EXPR)'
  16275. Returns the floating point hyperbolic sine of EXPR.
  16276. '$sqrt(EXPR)'
  16277. Returns the floating point square root of EXPR.
  16278. '$tan(EXPR)'
  16279. Returns the floating point tangent of EXPR.
  16280. '$tanh(EXPR)'
  16281. Returns the floating point hyperbolic tangent of EXPR.
  16282. '$trunc(EXPR)'
  16283. Returns the integer value of EXPR truncated towards zero as
  16284. floating point.
  16285. 
  16286. File: as.info, Node: TIC54X-Ext, Next: TIC54X-Directives, Prev: TIC54X-Builtins, Up: TIC54X-Dependent
  16287. 9.45.8 Extended Addressing
  16288. --------------------------
  16289. The 'LDX' pseudo-op is provided for loading the extended addressing bits
  16290. of a label or address. For example, if an address '_label' resides in
  16291. extended program memory, the value of '_label' may be loaded as follows:
  16292. ldx #_label,16,a ; loads extended bits of _label
  16293. or #_label,a ; loads lower 16 bits of _label
  16294. bacc a ; full address is in accumulator A
  16295. 
  16296. File: as.info, Node: TIC54X-Directives, Next: TIC54X-Macros, Prev: TIC54X-Ext, Up: TIC54X-Dependent
  16297. 9.45.9 Directives
  16298. -----------------
  16299. '.align [SIZE]'
  16300. '.even'
  16301. Align the section program counter on the next boundary, based on
  16302. SIZE. SIZE may be any power of 2. '.even' is equivalent to
  16303. '.align' with a SIZE of 2.
  16304. '1'
  16305. Align SPC to word boundary
  16306. '2'
  16307. Align SPC to longword boundary (same as .even)
  16308. '128'
  16309. Align SPC to page boundary
  16310. '.asg STRING, NAME'
  16311. Assign NAME the string STRING. String replacement is performed on
  16312. STRING before assignment.
  16313. '.eval STRING, NAME'
  16314. Evaluate the contents of string STRING and assign the result as a
  16315. string to the subsym NAME. String replacement is performed on
  16316. STRING before assignment.
  16317. '.bss SYMBOL, SIZE [, [BLOCKING_FLAG] [,ALIGNMENT_FLAG]]'
  16318. Reserve space for SYMBOL in the .bss section. SIZE is in words.
  16319. If present, BLOCKING_FLAG indicates the allocated space should be
  16320. aligned on a page boundary if it would otherwise cross a page
  16321. boundary. If present, ALIGNMENT_FLAG causes the assembler to
  16322. allocate SIZE on a long word boundary.
  16323. '.byte VALUE [,...,VALUE_N]'
  16324. '.ubyte VALUE [,...,VALUE_N]'
  16325. '.char VALUE [,...,VALUE_N]'
  16326. '.uchar VALUE [,...,VALUE_N]'
  16327. Place one or more bytes into consecutive words of the current
  16328. section. The upper 8 bits of each word is zero-filled. If a label
  16329. is used, it points to the word allocated for the first byte
  16330. encountered.
  16331. '.clink ["SECTION_NAME"]'
  16332. Set STYP_CLINK flag for this section, which indicates to the linker
  16333. that if no symbols from this section are referenced, the section
  16334. should not be included in the link. If SECTION_NAME is omitted,
  16335. the current section is used.
  16336. '.c_mode'
  16337. TBD.
  16338. '.copy "FILENAME" | FILENAME'
  16339. '.include "FILENAME" | FILENAME'
  16340. Read source statements from FILENAME. The normal include search
  16341. path is used. Normally .copy will cause statements from the
  16342. included file to be printed in the assembly listing and .include
  16343. will not, but this distinction is not currently implemented.
  16344. '.data'
  16345. Begin assembling code into the .data section.
  16346. '.double VALUE [,...,VALUE_N]'
  16347. '.ldouble VALUE [,...,VALUE_N]'
  16348. '.float VALUE [,...,VALUE_N]'
  16349. '.xfloat VALUE [,...,VALUE_N]'
  16350. Place an IEEE single-precision floating-point representation of one
  16351. or more floating-point values into the current section. All but
  16352. '.xfloat' align the result on a longword boundary. Values are
  16353. stored most-significant word first.
  16354. '.drlist'
  16355. '.drnolist'
  16356. Control printing of directives to the listing file. Ignored.
  16357. '.emsg STRING'
  16358. '.mmsg STRING'
  16359. '.wmsg STRING'
  16360. Emit a user-defined error, message, or warning, respectively.
  16361. '.far_mode'
  16362. Use extended addressing when assembling statements. This should
  16363. appear only once per file, and is equivalent to the -mfar-mode
  16364. option *note '-mfar-mode': TIC54X-Opts.
  16365. '.fclist'
  16366. '.fcnolist'
  16367. Control printing of false conditional blocks to the listing file.
  16368. '.field VALUE [,SIZE]'
  16369. Initialize a bitfield of SIZE bits in the current section. If
  16370. VALUE is relocatable, then SIZE must be 16. SIZE defaults to 16
  16371. bits. If VALUE does not fit into SIZE bits, the value will be
  16372. truncated. Successive '.field' directives will pack starting at
  16373. the current word, filling the most significant bits first, and
  16374. aligning to the start of the next word if the field size does not
  16375. fit into the space remaining in the current word. A '.align'
  16376. directive with an operand of 1 will force the next '.field'
  16377. directive to begin packing into a new word. If a label is used, it
  16378. points to the word that contains the specified field.
  16379. '.global SYMBOL [,...,SYMBOL_N]'
  16380. '.def SYMBOL [,...,SYMBOL_N]'
  16381. '.ref SYMBOL [,...,SYMBOL_N]'
  16382. '.def' nominally identifies a symbol defined in the current file
  16383. and available to other files. '.ref' identifies a symbol used in
  16384. the current file but defined elsewhere. Both map to the standard
  16385. '.global' directive.
  16386. '.half VALUE [,...,VALUE_N]'
  16387. '.uhalf VALUE [,...,VALUE_N]'
  16388. '.short VALUE [,...,VALUE_N]'
  16389. '.ushort VALUE [,...,VALUE_N]'
  16390. '.int VALUE [,...,VALUE_N]'
  16391. '.uint VALUE [,...,VALUE_N]'
  16392. '.word VALUE [,...,VALUE_N]'
  16393. '.uword VALUE [,...,VALUE_N]'
  16394. Place one or more values into consecutive words of the current
  16395. section. If a label is used, it points to the word allocated for
  16396. the first value encountered.
  16397. '.label SYMBOL'
  16398. Define a special SYMBOL to refer to the load time address of the
  16399. current section program counter.
  16400. '.length'
  16401. '.width'
  16402. Set the page length and width of the output listing file. Ignored.
  16403. '.list'
  16404. '.nolist'
  16405. Control whether the source listing is printed. Ignored.
  16406. '.long VALUE [,...,VALUE_N]'
  16407. '.ulong VALUE [,...,VALUE_N]'
  16408. '.xlong VALUE [,...,VALUE_N]'
  16409. Place one or more 32-bit values into consecutive words in the
  16410. current section. The most significant word is stored first.
  16411. '.long' and '.ulong' align the result on a longword boundary;
  16412. 'xlong' does not.
  16413. '.loop [COUNT]'
  16414. '.break [CONDITION]'
  16415. '.endloop'
  16416. Repeatedly assemble a block of code. '.loop' begins the block, and
  16417. '.endloop' marks its termination. COUNT defaults to 1024, and
  16418. indicates the number of times the block should be repeated.
  16419. '.break' terminates the loop so that assembly begins after the
  16420. '.endloop' directive. The optional CONDITION will cause the loop
  16421. to terminate only if it evaluates to zero.
  16422. 'MACRO_NAME .macro [PARAM1][,...PARAM_N]'
  16423. '[.mexit]'
  16424. '.endm'
  16425. See the section on macros for more explanation (*Note
  16426. TIC54X-Macros::.
  16427. '.mlib "FILENAME" | FILENAME'
  16428. Load the macro library FILENAME. FILENAME must be an archived
  16429. library (BFD ar-compatible) of text files, expected to contain only
  16430. macro definitions. The standard include search path is used.
  16431. '.mlist'
  16432. '.mnolist'
  16433. Control whether to include macro and loop block expansions in the
  16434. listing output. Ignored.
  16435. '.mmregs'
  16436. Define global symbolic names for the 'c54x registers. Supposedly
  16437. equivalent to executing '.set' directives for each register with
  16438. its memory-mapped value, but in reality is provided only for
  16439. compatibility and does nothing.
  16440. '.newblock'
  16441. This directive resets any TIC54X local labels currently defined.
  16442. Normal 'as' local labels are unaffected.
  16443. '.option OPTION_LIST'
  16444. Set listing options. Ignored.
  16445. '.sblock "SECTION_NAME" | SECTION_NAME [,"NAME_N" | NAME_N]'
  16446. Designate SECTION_NAME for blocking. Blocking guarantees that a
  16447. section will start on a page boundary (128 words) if it would
  16448. otherwise cross a page boundary. Only initialized sections may be
  16449. designated with this directive. See also *Note TIC54X-Block::.
  16450. '.sect "SECTION_NAME"'
  16451. Define a named initialized section and make it the current section.
  16452. 'SYMBOL .set "VALUE"'
  16453. 'SYMBOL .equ "VALUE"'
  16454. Equate a constant VALUE to a SYMBOL, which is placed in the symbol
  16455. table. SYMBOL may not be previously defined.
  16456. '.space SIZE_IN_BITS'
  16457. '.bes SIZE_IN_BITS'
  16458. Reserve the given number of bits in the current section and
  16459. zero-fill them. If a label is used with '.space', it points to the
  16460. *first* word reserved. With '.bes', the label points to the *last*
  16461. word reserved.
  16462. '.sslist'
  16463. '.ssnolist'
  16464. Controls the inclusion of subsym replacement in the listing output.
  16465. Ignored.
  16466. '.string "STRING" [,...,"STRING_N"]'
  16467. '.pstring "STRING" [,...,"STRING_N"]'
  16468. Place 8-bit characters from STRING into the current section.
  16469. '.string' zero-fills the upper 8 bits of each word, while
  16470. '.pstring' puts two characters into each word, filling the
  16471. most-significant bits first. Unused space is zero-filled. If a
  16472. label is used, it points to the first word initialized.
  16473. '[STAG] .struct [OFFSET]'
  16474. '[NAME_1] element [COUNT_1]'
  16475. '[NAME_2] element [COUNT_2]'
  16476. '[TNAME] .tag STAGX [TCOUNT]'
  16477. '...'
  16478. '[NAME_N] element [COUNT_N]'
  16479. '[SSIZE] .endstruct'
  16480. 'LABEL .tag [STAG]'
  16481. Assign symbolic offsets to the elements of a structure. STAG
  16482. defines a symbol to use to reference the structure. OFFSET
  16483. indicates a starting value to use for the first element
  16484. encountered; otherwise it defaults to zero. Each element can have
  16485. a named offset, NAME, which is a symbol assigned the value of the
  16486. element's offset into the structure. If STAG is missing, these
  16487. become global symbols. COUNT adjusts the offset that many times,
  16488. as if 'element' were an array. 'element' may be one of '.byte',
  16489. '.word', '.long', '.float', or any equivalent of those, and the
  16490. structure offset is adjusted accordingly. '.field' and '.string'
  16491. are also allowed; the size of '.field' is one bit, and '.string' is
  16492. considered to be one word in size. Only element descriptors,
  16493. structure/union tags, '.align' and conditional assembly directives
  16494. are allowed within '.struct'/'.endstruct'. '.align' aligns member
  16495. offsets to word boundaries only. SSIZE, if provided, will always
  16496. be assigned the size of the structure.
  16497. The '.tag' directive, in addition to being used to define a
  16498. structure/union element within a structure, may be used to apply a
  16499. structure to a symbol. Once applied to LABEL, the individual
  16500. structure elements may be applied to LABEL to produce the desired
  16501. offsets using LABEL as the structure base.
  16502. '.tab'
  16503. Set the tab size in the output listing. Ignored.
  16504. '[UTAG] .union'
  16505. '[NAME_1] element [COUNT_1]'
  16506. '[NAME_2] element [COUNT_2]'
  16507. '[TNAME] .tag UTAGX[,TCOUNT]'
  16508. '...'
  16509. '[NAME_N] element [COUNT_N]'
  16510. '[USIZE] .endstruct'
  16511. 'LABEL .tag [UTAG]'
  16512. Similar to '.struct', but the offset after each element is reset to
  16513. zero, and the USIZE is set to the maximum of all defined elements.
  16514. Starting offset for the union is always zero.
  16515. '[SYMBOL] .usect "SECTION_NAME", SIZE, [,[BLOCKING_FLAG] [,ALIGNMENT_FLAG]]'
  16516. Reserve space for variables in a named, uninitialized section
  16517. (similar to .bss). '.usect' allows definitions sections
  16518. independent of .bss. SYMBOL points to the first location reserved
  16519. by this allocation. The symbol may be used as a variable name.
  16520. SIZE is the allocated size in words. BLOCKING_FLAG indicates
  16521. whether to block this section on a page boundary (128 words) (*note
  16522. TIC54X-Block::). ALIGNMENT FLAG indicates whether the section
  16523. should be longword-aligned.
  16524. '.var SYM[,..., SYM_N]'
  16525. Define a subsym to be a local variable within a macro. See *Note
  16526. TIC54X-Macros::.
  16527. '.version VERSION'
  16528. Set which processor to build instructions for. Though the
  16529. following values are accepted, the op is ignored.
  16530. '541'
  16531. '542'
  16532. '543'
  16533. '545'
  16534. '545LP'
  16535. '546LP'
  16536. '548'
  16537. '549'
  16538. 
  16539. File: as.info, Node: TIC54X-Macros, Next: TIC54X-MMRegs, Prev: TIC54X-Directives, Up: TIC54X-Dependent
  16540. 9.45.10 Macros
  16541. --------------
  16542. Macros do not require explicit dereferencing of arguments (i.e., \ARG).
  16543. During macro expansion, the macro parameters are converted to
  16544. subsyms. If the number of arguments passed the macro invocation exceeds
  16545. the number of parameters defined, the last parameter is assigned the
  16546. string equivalent of all remaining arguments. If fewer arguments are
  16547. given than parameters, the missing parameters are assigned empty
  16548. strings. To include a comma in an argument, you must enclose the
  16549. argument in quotes.
  16550. The following built-in subsym functions allow examination of the
  16551. string value of subsyms (or ordinary strings). The arguments are
  16552. strings unless otherwise indicated (subsyms passed as args will be
  16553. replaced by the strings they represent).
  16554. '$symlen(STR)'
  16555. Returns the length of STR.
  16556. '$symcmp(STR1,STR2)'
  16557. Returns 0 if STR1 == STR2, non-zero otherwise.
  16558. '$firstch(STR,CH)'
  16559. Returns index of the first occurrence of character constant CH in
  16560. STR.
  16561. '$lastch(STR,CH)'
  16562. Returns index of the last occurrence of character constant CH in
  16563. STR.
  16564. '$isdefed(SYMBOL)'
  16565. Returns zero if the symbol SYMBOL is not in the symbol table,
  16566. non-zero otherwise.
  16567. '$ismember(SYMBOL,LIST)'
  16568. Assign the first member of comma-separated string LIST to SYMBOL;
  16569. LIST is reassigned the remainder of the list. Returns zero if LIST
  16570. is a null string. Both arguments must be subsyms.
  16571. '$iscons(EXPR)'
  16572. Returns 1 if string EXPR is binary, 2 if octal, 3 if hexadecimal, 4
  16573. if a character, 5 if decimal, and zero if not an integer.
  16574. '$isname(NAME)'
  16575. Returns 1 if NAME is a valid symbol name, zero otherwise.
  16576. '$isreg(REG)'
  16577. Returns 1 if REG is a valid predefined register name (AR0-AR7
  16578. only).
  16579. '$structsz(STAG)'
  16580. Returns the size of the structure or union represented by STAG.
  16581. '$structacc(STAG)'
  16582. Returns the reference point of the structure or union represented
  16583. by STAG. Always returns zero.
  16584. 
  16585. File: as.info, Node: TIC54X-MMRegs, Next: TIC54X-Syntax, Prev: TIC54X-Macros, Up: TIC54X-Dependent
  16586. 9.45.11 Memory-mapped Registers
  16587. -------------------------------
  16588. The following symbols are recognized as memory-mapped registers:
  16589. 
  16590. File: as.info, Node: TIC54X-Syntax, Prev: TIC54X-MMRegs, Up: TIC54X-Dependent
  16591. 9.45.12 TIC54X Syntax
  16592. ---------------------
  16593. * Menu:
  16594. * TIC54X-Chars:: Special Characters
  16595. 
  16596. File: as.info, Node: TIC54X-Chars, Up: TIC54X-Syntax
  16597. 9.45.12.1 Special Characters
  16598. ............................
  16599. The presence of a ';' appearing anywhere on a line indicates the start
  16600. of a comment that extends to the end of that line.
  16601. If a '#' appears as the first character of a line then the whole line
  16602. is treated as a comment, but in this case the line can also be a logical
  16603. line number directive (*note Comments::) or a preprocessor control
  16604. command (*note Preprocessing::).
  16605. The presence of an asterisk ('*') at the start of a line also
  16606. indicates a comment that extends to the end of that line.
  16607. The TIC54X assembler does not currently support a line separator
  16608. character.
  16609. 
  16610. File: as.info, Node: TIC6X-Dependent, Next: TILE-Gx-Dependent, Prev: TIC54X-Dependent, Up: Machine Dependencies
  16611. 9.46 TIC6X Dependent Features
  16612. =============================
  16613. * Menu:
  16614. * TIC6X Options:: Options
  16615. * TIC6X Syntax:: Syntax
  16616. * TIC6X Directives:: Directives
  16617. 
  16618. File: as.info, Node: TIC6X Options, Next: TIC6X Syntax, Up: TIC6X-Dependent
  16619. 9.46.1 TIC6X Options
  16620. --------------------
  16621. '-march=ARCH'
  16622. Enable (only) instructions from architecture ARCH. By default, all
  16623. instructions are permitted.
  16624. The following values of ARCH are accepted: 'c62x', 'c64x', 'c64x+',
  16625. 'c67x', 'c67x+', 'c674x'.
  16626. '-mdsbt'
  16627. '-mno-dsbt'
  16628. The '-mdsbt' option causes the assembler to generate the
  16629. 'Tag_ABI_DSBT' attribute with a value of 1, indicating that the
  16630. code is using DSBT addressing. The '-mno-dsbt' option, the
  16631. default, causes the tag to have a value of 0, indicating that the
  16632. code does not use DSBT addressing. The linker will emit a warning
  16633. if objects of different type (DSBT and non-DSBT) are linked
  16634. together.
  16635. '-mpid=no'
  16636. '-mpid=near'
  16637. '-mpid=far'
  16638. The '-mpid=' option causes the assembler to generate the
  16639. 'Tag_ABI_PID' attribute with a value indicating the form of data
  16640. addressing used by the code. '-mpid=no', the default, indicates
  16641. position-dependent data addressing, '-mpid=near' indicates
  16642. position-independent addressing with GOT accesses using near DP
  16643. addressing, and '-mpid=far' indicates position-independent
  16644. addressing with GOT accesses using far DP addressing. The linker
  16645. will emit a warning if objects built with different settings of
  16646. this option are linked together.
  16647. '-mpic'
  16648. '-mno-pic'
  16649. The '-mpic' option causes the assembler to generate the
  16650. 'Tag_ABI_PIC' attribute with a value of 1, indicating that the code
  16651. is using position-independent code addressing, The '-mno-pic'
  16652. option, the default, causes the tag to have a value of 0,
  16653. indicating position-dependent code addressing. The linker will
  16654. emit a warning if objects of different type (position-dependent and
  16655. position-independent) are linked together.
  16656. '-mbig-endian'
  16657. '-mlittle-endian'
  16658. Generate code for the specified endianness. The default is
  16659. little-endian.
  16660. 
  16661. File: as.info, Node: TIC6X Syntax, Next: TIC6X Directives, Prev: TIC6X Options, Up: TIC6X-Dependent
  16662. 9.46.2 TIC6X Syntax
  16663. -------------------
  16664. The presence of a ';' on a line indicates the start of a comment that
  16665. extends to the end of the current line. If a '#' or '*' appears as the
  16666. first character of a line, the whole line is treated as a comment. Note
  16667. that if a line starts with a '#' character then it can also be a logical
  16668. line number directive (*note Comments::) or a preprocessor control
  16669. command (*note Preprocessing::).
  16670. The '@' character can be used instead of a newline to separate
  16671. statements.
  16672. Instruction, register and functional unit names are case-insensitive.
  16673. 'as' requires fully-specified functional unit names, such as '.S1',
  16674. '.L1X' or '.D1T2', on all instructions using a functional unit.
  16675. For some instructions, there may be syntactic ambiguity between
  16676. register or functional unit names and the names of labels or other
  16677. symbols. To avoid this, enclose the ambiguous symbol name in
  16678. parentheses; register and functional unit names may not be enclosed in
  16679. parentheses.
  16680. 
  16681. File: as.info, Node: TIC6X Directives, Prev: TIC6X Syntax, Up: TIC6X-Dependent
  16682. 9.46.3 TIC6X Directives
  16683. -----------------------
  16684. Directives controlling the set of instructions accepted by the assembler
  16685. have effect for instructions between the directive and any subsequent
  16686. directive overriding it.
  16687. '.arch ARCH'
  16688. This has the same effect as '-march=ARCH'.
  16689. '.cantunwind'
  16690. Prevents unwinding through the current function. No personality
  16691. routine or exception table data is required or permitted.
  16692. If this is not specified then frame unwinding information will be
  16693. constructed from CFI directives. *note CFI directives::.
  16694. '.c6xabi_attribute TAG, VALUE'
  16695. Set the C6000 EABI build attribute TAG to VALUE.
  16696. The TAG is either an attribute number or one of 'Tag_ISA',
  16697. 'Tag_ABI_wchar_t', 'Tag_ABI_stack_align_needed',
  16698. 'Tag_ABI_stack_align_preserved', 'Tag_ABI_DSBT', 'Tag_ABI_PID',
  16699. 'Tag_ABI_PIC', 'TAG_ABI_array_object_alignment',
  16700. 'TAG_ABI_array_object_align_expected', 'Tag_ABI_compatibility' and
  16701. 'Tag_ABI_conformance'. The VALUE is either a 'number', '"string"',
  16702. or 'number, "string"' depending on the tag.
  16703. '.ehtype SYMBOL'
  16704. Output an exception type table reference to SYMBOL.
  16705. '.endp'
  16706. Marks the end of and exception table or function. If preceded by a
  16707. '.handlerdata' directive then this also switched back to the
  16708. previous text section.
  16709. '.handlerdata'
  16710. Marks the end of the current function, and the start of the
  16711. exception table entry for that function. Anything between this
  16712. directive and the '.endp' directive will be added to the exception
  16713. table entry.
  16714. Must be preceded by a CFI block containing a '.cfi_lsda' directive.
  16715. '.nocmp'
  16716. Disallow use of C64x+ compact instructions in the current text
  16717. section.
  16718. '.personalityindex INDEX'
  16719. Sets the personality routine for the current function to the ABI
  16720. specified compact routine number INDEX
  16721. '.personality NAME'
  16722. Sets the personality routine for the current function to NAME.
  16723. '.scomm SYMBOL, SIZE, ALIGN'
  16724. Like '.comm', creating a common symbol SYMBOL with size SIZE and
  16725. alignment ALIGN, but unlike when using '.comm', this symbol will be
  16726. placed into the small BSS section by the linker.
  16727. 
  16728. File: as.info, Node: TILE-Gx-Dependent, Next: TILEPro-Dependent, Prev: TIC6X-Dependent, Up: Machine Dependencies
  16729. 9.47 TILE-Gx Dependent Features
  16730. ===============================
  16731. * Menu:
  16732. * TILE-Gx Options:: TILE-Gx Options
  16733. * TILE-Gx Syntax:: TILE-Gx Syntax
  16734. * TILE-Gx Directives:: TILE-Gx Directives
  16735. 
  16736. File: as.info, Node: TILE-Gx Options, Next: TILE-Gx Syntax, Up: TILE-Gx-Dependent
  16737. 9.47.1 Options
  16738. --------------
  16739. The following table lists all available TILE-Gx specific options:
  16740. '-m32 | -m64'
  16741. Select the word size, either 32 bits or 64 bits.
  16742. '-EB | -EL'
  16743. Select the endianness, either big-endian (-EB) or little-endian
  16744. (-EL).
  16745. 
  16746. File: as.info, Node: TILE-Gx Syntax, Next: TILE-Gx Directives, Prev: TILE-Gx Options, Up: TILE-Gx-Dependent
  16747. 9.47.2 Syntax
  16748. -------------
  16749. Block comments are delimited by '/*' and '*/'. End of line comments may
  16750. be introduced by '#'.
  16751. Instructions consist of a leading opcode or macro name followed by
  16752. whitespace and an optional comma-separated list of operands:
  16753. OPCODE [OPERAND, ...]
  16754. Instructions must be separated by a newline or semicolon.
  16755. There are two ways to write code: either write naked instructions,
  16756. which the assembler is free to combine into VLIW bundles, or specify the
  16757. VLIW bundles explicitly.
  16758. Bundles are specified using curly braces:
  16759. { ADD r3,r4,r5 ; ADD r7,r8,r9 ; LW r10,r11 }
  16760. A bundle can span multiple lines. If you want to put multiple
  16761. instructions on a line, whether in a bundle or not, you need to separate
  16762. them with semicolons as in this example.
  16763. A bundle may contain one or more instructions, up to the limit
  16764. specified by the ISA (currently three). If fewer instructions are
  16765. specified than the hardware supports in a bundle, the assembler inserts
  16766. 'fnop' instructions automatically.
  16767. The assembler will prefer to preserve the ordering of instructions
  16768. within the bundle, putting the first instruction in a lower-numbered
  16769. pipeline than the next one, etc. This fact, combined with the optional
  16770. use of explicit 'fnop' or 'nop' instructions, allows precise control
  16771. over which pipeline executes each instruction.
  16772. If the instructions cannot be bundled in the listed order, the
  16773. assembler will automatically try to find a valid pipeline assignment.
  16774. If there is no way to bundle the instructions together, the assembler
  16775. reports an error.
  16776. The assembler does not yet auto-bundle (automatically combine
  16777. multiple instructions into one bundle), but it reserves the right to do
  16778. so in the future. If you want to force an instruction to run by itself,
  16779. put it in a bundle explicitly with curly braces and use 'nop'
  16780. instructions (not 'fnop') to fill the remaining pipeline slots in that
  16781. bundle.
  16782. * Menu:
  16783. * TILE-Gx Opcodes:: Opcode Naming Conventions.
  16784. * TILE-Gx Registers:: Register Naming.
  16785. * TILE-Gx Modifiers:: Symbolic Operand Modifiers.
  16786. 
  16787. File: as.info, Node: TILE-Gx Opcodes, Next: TILE-Gx Registers, Up: TILE-Gx Syntax
  16788. 9.47.2.1 Opcode Names
  16789. .....................
  16790. For a complete list of opcodes and descriptions of their semantics, see
  16791. 'TILE-Gx Instruction Set Architecture', available upon request at
  16792. www.tilera.com.
  16793. 
  16794. File: as.info, Node: TILE-Gx Registers, Next: TILE-Gx Modifiers, Prev: TILE-Gx Opcodes, Up: TILE-Gx Syntax
  16795. 9.47.2.2 Register Names
  16796. .......................
  16797. General-purpose registers are represented by predefined symbols of the
  16798. form 'rN', where N represents a number between '0' and '63'. However,
  16799. the following registers have canonical names that must be used instead:
  16800. 'r54'
  16801. sp
  16802. 'r55'
  16803. lr
  16804. 'r56'
  16805. sn
  16806. 'r57'
  16807. idn0
  16808. 'r58'
  16809. idn1
  16810. 'r59'
  16811. udn0
  16812. 'r60'
  16813. udn1
  16814. 'r61'
  16815. udn2
  16816. 'r62'
  16817. udn3
  16818. 'r63'
  16819. zero
  16820. The assembler will emit a warning if a numeric name is used instead
  16821. of the non-numeric name. The '.no_require_canonical_reg_names'
  16822. assembler pseudo-op turns off this warning.
  16823. '.require_canonical_reg_names' turns it back on.
  16824. 
  16825. File: as.info, Node: TILE-Gx Modifiers, Prev: TILE-Gx Registers, Up: TILE-Gx Syntax
  16826. 9.47.2.3 Symbolic Operand Modifiers
  16827. ...................................
  16828. The assembler supports several modifiers when using symbol addresses in
  16829. TILE-Gx instruction operands. The general syntax is the following:
  16830. modifier(symbol)
  16831. The following modifiers are supported:
  16832. 'hw0'
  16833. This modifier is used to load bits 0-15 of the symbol's address.
  16834. 'hw1'
  16835. This modifier is used to load bits 16-31 of the symbol's address.
  16836. 'hw2'
  16837. This modifier is used to load bits 32-47 of the symbol's address.
  16838. 'hw3'
  16839. This modifier is used to load bits 48-63 of the symbol's address.
  16840. 'hw0_last'
  16841. This modifier yields the same value as 'hw0', but it also checks
  16842. that the value does not overflow.
  16843. 'hw1_last'
  16844. This modifier yields the same value as 'hw1', but it also checks
  16845. that the value does not overflow.
  16846. 'hw2_last'
  16847. This modifier yields the same value as 'hw2', but it also checks
  16848. that the value does not overflow.
  16849. A 48-bit symbolic value is constructed by using the following
  16850. idiom:
  16851. moveli r0, hw2_last(sym)
  16852. shl16insli r0, r0, hw1(sym)
  16853. shl16insli r0, r0, hw0(sym)
  16854. 'hw0_got'
  16855. This modifier is used to load bits 0-15 of the symbol's offset in
  16856. the GOT entry corresponding to the symbol.
  16857. 'hw0_last_got'
  16858. This modifier yields the same value as 'hw0_got', but it also
  16859. checks that the value does not overflow.
  16860. 'hw1_last_got'
  16861. This modifier is used to load bits 16-31 of the symbol's offset in
  16862. the GOT entry corresponding to the symbol, and it also checks that
  16863. the value does not overflow.
  16864. 'plt'
  16865. This modifier is used for function symbols. It causes a _procedure
  16866. linkage table_, an array of code stubs, to be created at the time
  16867. the shared object is created or linked against, together with a
  16868. global offset table entry. The value is a pc-relative offset to
  16869. the corresponding stub code in the procedure linkage table. This
  16870. arrangement causes the run-time symbol resolver to be called to
  16871. look up and set the value of the symbol the first time the function
  16872. is called (at latest; depending environment variables). It is only
  16873. safe to leave the symbol unresolved this way if all references are
  16874. function calls.
  16875. 'hw0_plt'
  16876. This modifier is used to load bits 0-15 of the pc-relative address
  16877. of a plt entry.
  16878. 'hw1_plt'
  16879. This modifier is used to load bits 16-31 of the pc-relative address
  16880. of a plt entry.
  16881. 'hw1_last_plt'
  16882. This modifier yields the same value as 'hw1_plt', but it also
  16883. checks that the value does not overflow.
  16884. 'hw2_last_plt'
  16885. This modifier is used to load bits 32-47 of the pc-relative address
  16886. of a plt entry, and it also checks that the value does not
  16887. overflow.
  16888. 'hw0_tls_gd'
  16889. This modifier is used to load bits 0-15 of the offset of the GOT
  16890. entry of the symbol's TLS descriptor, to be used for
  16891. general-dynamic TLS accesses.
  16892. 'hw0_last_tls_gd'
  16893. This modifier yields the same value as 'hw0_tls_gd', but it also
  16894. checks that the value does not overflow.
  16895. 'hw1_last_tls_gd'
  16896. This modifier is used to load bits 16-31 of the offset of the GOT
  16897. entry of the symbol's TLS descriptor, to be used for
  16898. general-dynamic TLS accesses. It also checks that the value does
  16899. not overflow.
  16900. 'hw0_tls_ie'
  16901. This modifier is used to load bits 0-15 of the offset of the GOT
  16902. entry containing the offset of the symbol's address from the TCB,
  16903. to be used for initial-exec TLS accesses.
  16904. 'hw0_last_tls_ie'
  16905. This modifier yields the same value as 'hw0_tls_ie', but it also
  16906. checks that the value does not overflow.
  16907. 'hw1_last_tls_ie'
  16908. This modifier is used to load bits 16-31 of the offset of the GOT
  16909. entry containing the offset of the symbol's address from the TCB,
  16910. to be used for initial-exec TLS accesses. It also checks that the
  16911. value does not overflow.
  16912. 'hw0_tls_le'
  16913. This modifier is used to load bits 0-15 of the offset of the
  16914. symbol's address from the TCB, to be used for local-exec TLS
  16915. accesses.
  16916. 'hw0_last_tls_le'
  16917. This modifier yields the same value as 'hw0_tls_le', but it also
  16918. checks that the value does not overflow.
  16919. 'hw1_last_tls_le'
  16920. This modifier is used to load bits 16-31 of the offset of the
  16921. symbol's address from the TCB, to be used for local-exec TLS
  16922. accesses. It also checks that the value does not overflow.
  16923. 'tls_gd_call'
  16924. This modifier is used to tag an instruction as the "call" part of a
  16925. calling sequence for a TLS GD reference of its operand.
  16926. 'tls_gd_add'
  16927. This modifier is used to tag an instruction as the "add" part of a
  16928. calling sequence for a TLS GD reference of its operand.
  16929. 'tls_ie_load'
  16930. This modifier is used to tag an instruction as the "load" part of a
  16931. calling sequence for a TLS IE reference of its operand.
  16932. 
  16933. File: as.info, Node: TILE-Gx Directives, Prev: TILE-Gx Syntax, Up: TILE-Gx-Dependent
  16934. 9.47.3 TILE-Gx Directives
  16935. -------------------------
  16936. '.align EXPRESSION [, EXPRESSION]'
  16937. This is the generic .ALIGN directive. The first argument is the
  16938. requested alignment in bytes.
  16939. '.allow_suspicious_bundles'
  16940. Turns on error checking for combinations of instructions in a
  16941. bundle that probably indicate a programming error. This is on by
  16942. default.
  16943. '.no_allow_suspicious_bundles'
  16944. Turns off error checking for combinations of instructions in a
  16945. bundle that probably indicate a programming error.
  16946. '.require_canonical_reg_names'
  16947. Require that canonical register names be used, and emit a warning
  16948. if the numeric names are used. This is on by default.
  16949. '.no_require_canonical_reg_names'
  16950. Permit the use of numeric names for registers that have canonical
  16951. names.
  16952. 
  16953. File: as.info, Node: TILEPro-Dependent, Next: V850-Dependent, Prev: TILE-Gx-Dependent, Up: Machine Dependencies
  16954. 9.48 TILEPro Dependent Features
  16955. ===============================
  16956. * Menu:
  16957. * TILEPro Options:: TILEPro Options
  16958. * TILEPro Syntax:: TILEPro Syntax
  16959. * TILEPro Directives:: TILEPro Directives
  16960. 
  16961. File: as.info, Node: TILEPro Options, Next: TILEPro Syntax, Up: TILEPro-Dependent
  16962. 9.48.1 Options
  16963. --------------
  16964. 'as' has no machine-dependent command-line options for TILEPro.
  16965. 
  16966. File: as.info, Node: TILEPro Syntax, Next: TILEPro Directives, Prev: TILEPro Options, Up: TILEPro-Dependent
  16967. 9.48.2 Syntax
  16968. -------------
  16969. Block comments are delimited by '/*' and '*/'. End of line comments may
  16970. be introduced by '#'.
  16971. Instructions consist of a leading opcode or macro name followed by
  16972. whitespace and an optional comma-separated list of operands:
  16973. OPCODE [OPERAND, ...]
  16974. Instructions must be separated by a newline or semicolon.
  16975. There are two ways to write code: either write naked instructions,
  16976. which the assembler is free to combine into VLIW bundles, or specify the
  16977. VLIW bundles explicitly.
  16978. Bundles are specified using curly braces:
  16979. { ADD r3,r4,r5 ; ADD r7,r8,r9 ; LW r10,r11 }
  16980. A bundle can span multiple lines. If you want to put multiple
  16981. instructions on a line, whether in a bundle or not, you need to separate
  16982. them with semicolons as in this example.
  16983. A bundle may contain one or more instructions, up to the limit
  16984. specified by the ISA (currently three). If fewer instructions are
  16985. specified than the hardware supports in a bundle, the assembler inserts
  16986. 'fnop' instructions automatically.
  16987. The assembler will prefer to preserve the ordering of instructions
  16988. within the bundle, putting the first instruction in a lower-numbered
  16989. pipeline than the next one, etc. This fact, combined with the optional
  16990. use of explicit 'fnop' or 'nop' instructions, allows precise control
  16991. over which pipeline executes each instruction.
  16992. If the instructions cannot be bundled in the listed order, the
  16993. assembler will automatically try to find a valid pipeline assignment.
  16994. If there is no way to bundle the instructions together, the assembler
  16995. reports an error.
  16996. The assembler does not yet auto-bundle (automatically combine
  16997. multiple instructions into one bundle), but it reserves the right to do
  16998. so in the future. If you want to force an instruction to run by itself,
  16999. put it in a bundle explicitly with curly braces and use 'nop'
  17000. instructions (not 'fnop') to fill the remaining pipeline slots in that
  17001. bundle.
  17002. * Menu:
  17003. * TILEPro Opcodes:: Opcode Naming Conventions.
  17004. * TILEPro Registers:: Register Naming.
  17005. * TILEPro Modifiers:: Symbolic Operand Modifiers.
  17006. 
  17007. File: as.info, Node: TILEPro Opcodes, Next: TILEPro Registers, Up: TILEPro Syntax
  17008. 9.48.2.1 Opcode Names
  17009. .....................
  17010. For a complete list of opcodes and descriptions of their semantics, see
  17011. 'TILE Processor User Architecture Manual', available upon request at
  17012. www.tilera.com.
  17013. 
  17014. File: as.info, Node: TILEPro Registers, Next: TILEPro Modifiers, Prev: TILEPro Opcodes, Up: TILEPro Syntax
  17015. 9.48.2.2 Register Names
  17016. .......................
  17017. General-purpose registers are represented by predefined symbols of the
  17018. form 'rN', where N represents a number between '0' and '63'. However,
  17019. the following registers have canonical names that must be used instead:
  17020. 'r54'
  17021. sp
  17022. 'r55'
  17023. lr
  17024. 'r56'
  17025. sn
  17026. 'r57'
  17027. idn0
  17028. 'r58'
  17029. idn1
  17030. 'r59'
  17031. udn0
  17032. 'r60'
  17033. udn1
  17034. 'r61'
  17035. udn2
  17036. 'r62'
  17037. udn3
  17038. 'r63'
  17039. zero
  17040. The assembler will emit a warning if a numeric name is used instead
  17041. of the canonical name. The '.no_require_canonical_reg_names' assembler
  17042. pseudo-op turns off this warning. '.require_canonical_reg_names' turns
  17043. it back on.
  17044. 
  17045. File: as.info, Node: TILEPro Modifiers, Prev: TILEPro Registers, Up: TILEPro Syntax
  17046. 9.48.2.3 Symbolic Operand Modifiers
  17047. ...................................
  17048. The assembler supports several modifiers when using symbol addresses in
  17049. TILEPro instruction operands. The general syntax is the following:
  17050. modifier(symbol)
  17051. The following modifiers are supported:
  17052. 'lo16'
  17053. This modifier is used to load the low 16 bits of the symbol's
  17054. address, sign-extended to a 32-bit value (sign-extension allows it
  17055. to be range-checked against signed 16 bit immediate operands
  17056. without complaint).
  17057. 'hi16'
  17058. This modifier is used to load the high 16 bits of the symbol's
  17059. address, also sign-extended to a 32-bit value.
  17060. 'ha16'
  17061. 'ha16(N)' is identical to 'hi16(N)', except if 'lo16(N)' is
  17062. negative it adds one to the 'hi16(N)' value. This way 'lo16' and
  17063. 'ha16' can be added to create any 32-bit value using 'auli'. For
  17064. example, here is how you move an arbitrary 32-bit address into r3:
  17065. moveli r3, lo16(sym)
  17066. auli r3, r3, ha16(sym)
  17067. 'got'
  17068. This modifier is used to load the offset of the GOT entry
  17069. corresponding to the symbol.
  17070. 'got_lo16'
  17071. This modifier is used to load the sign-extended low 16 bits of the
  17072. offset of the GOT entry corresponding to the symbol.
  17073. 'got_hi16'
  17074. This modifier is used to load the sign-extended high 16 bits of the
  17075. offset of the GOT entry corresponding to the symbol.
  17076. 'got_ha16'
  17077. This modifier is like 'got_hi16', but it adds one if 'got_lo16' of
  17078. the input value is negative.
  17079. 'plt'
  17080. This modifier is used for function symbols. It causes a _procedure
  17081. linkage table_, an array of code stubs, to be created at the time
  17082. the shared object is created or linked against, together with a
  17083. global offset table entry. The value is a pc-relative offset to
  17084. the corresponding stub code in the procedure linkage table. This
  17085. arrangement causes the run-time symbol resolver to be called to
  17086. look up and set the value of the symbol the first time the function
  17087. is called (at latest; depending environment variables). It is only
  17088. safe to leave the symbol unresolved this way if all references are
  17089. function calls.
  17090. 'tls_gd'
  17091. This modifier is used to load the offset of the GOT entry of the
  17092. symbol's TLS descriptor, to be used for general-dynamic TLS
  17093. accesses.
  17094. 'tls_gd_lo16'
  17095. This modifier is used to load the sign-extended low 16 bits of the
  17096. offset of the GOT entry of the symbol's TLS descriptor, to be used
  17097. for general dynamic TLS accesses.
  17098. 'tls_gd_hi16'
  17099. This modifier is used to load the sign-extended high 16 bits of the
  17100. offset of the GOT entry of the symbol's TLS descriptor, to be used
  17101. for general dynamic TLS accesses.
  17102. 'tls_gd_ha16'
  17103. This modifier is like 'tls_gd_hi16', but it adds one to the value
  17104. if 'tls_gd_lo16' of the input value is negative.
  17105. 'tls_ie'
  17106. This modifier is used to load the offset of the GOT entry
  17107. containing the offset of the symbol's address from the TCB, to be
  17108. used for initial-exec TLS accesses.
  17109. 'tls_ie_lo16'
  17110. This modifier is used to load the low 16 bits of the offset of the
  17111. GOT entry containing the offset of the symbol's address from the
  17112. TCB, to be used for initial-exec TLS accesses.
  17113. 'tls_ie_hi16'
  17114. This modifier is used to load the high 16 bits of the offset of the
  17115. GOT entry containing the offset of the symbol's address from the
  17116. TCB, to be used for initial-exec TLS accesses.
  17117. 'tls_ie_ha16'
  17118. This modifier is like 'tls_ie_hi16', but it adds one to the value
  17119. if 'tls_ie_lo16' of the input value is negative.
  17120. 'tls_le'
  17121. This modifier is used to load the offset of the symbol's address
  17122. from the TCB, to be used for local-exec TLS accesses.
  17123. 'tls_le_lo16'
  17124. This modifier is used to load the low 16 bits of the offset of the
  17125. symbol's address from the TCB, to be used for local-exec TLS
  17126. accesses.
  17127. 'tls_le_hi16'
  17128. This modifier is used to load the high 16 bits of the offset of the
  17129. symbol's address from the TCB, to be used for local-exec TLS
  17130. accesses.
  17131. 'tls_le_ha16'
  17132. This modifier is like 'tls_le_hi16', but it adds one to the value
  17133. if 'tls_le_lo16' of the input value is negative.
  17134. 'tls_gd_call'
  17135. This modifier is used to tag an instruction as the "call" part of a
  17136. calling sequence for a TLS GD reference of its operand.
  17137. 'tls_gd_add'
  17138. This modifier is used to tag an instruction as the "add" part of a
  17139. calling sequence for a TLS GD reference of its operand.
  17140. 'tls_ie_load'
  17141. This modifier is used to tag an instruction as the "load" part of a
  17142. calling sequence for a TLS IE reference of its operand.
  17143. 
  17144. File: as.info, Node: TILEPro Directives, Prev: TILEPro Syntax, Up: TILEPro-Dependent
  17145. 9.48.3 TILEPro Directives
  17146. -------------------------
  17147. '.align EXPRESSION [, EXPRESSION]'
  17148. This is the generic .ALIGN directive. The first argument is the
  17149. requested alignment in bytes.
  17150. '.allow_suspicious_bundles'
  17151. Turns on error checking for combinations of instructions in a
  17152. bundle that probably indicate a programming error. This is on by
  17153. default.
  17154. '.no_allow_suspicious_bundles'
  17155. Turns off error checking for combinations of instructions in a
  17156. bundle that probably indicate a programming error.
  17157. '.require_canonical_reg_names'
  17158. Require that canonical register names be used, and emit a warning
  17159. if the numeric names are used. This is on by default.
  17160. '.no_require_canonical_reg_names'
  17161. Permit the use of numeric names for registers that have canonical
  17162. names.
  17163. 
  17164. File: as.info, Node: V850-Dependent, Next: Vax-Dependent, Prev: TILEPro-Dependent, Up: Machine Dependencies
  17165. 9.49 v850 Dependent Features
  17166. ============================
  17167. * Menu:
  17168. * V850 Options:: Options
  17169. * V850 Syntax:: Syntax
  17170. * V850 Floating Point:: Floating Point
  17171. * V850 Directives:: V850 Machine Directives
  17172. * V850 Opcodes:: Opcodes
  17173. 
  17174. File: as.info, Node: V850 Options, Next: V850 Syntax, Up: V850-Dependent
  17175. 9.49.1 Options
  17176. --------------
  17177. 'as' supports the following additional command-line options for the V850
  17178. processor family:
  17179. '-wsigned_overflow'
  17180. Causes warnings to be produced when signed immediate values
  17181. overflow the space available for then within their opcodes. By
  17182. default this option is disabled as it is possible to receive
  17183. spurious warnings due to using exact bit patterns as immediate
  17184. constants.
  17185. '-wunsigned_overflow'
  17186. Causes warnings to be produced when unsigned immediate values
  17187. overflow the space available for then within their opcodes. By
  17188. default this option is disabled as it is possible to receive
  17189. spurious warnings due to using exact bit patterns as immediate
  17190. constants.
  17191. '-mv850'
  17192. Specifies that the assembled code should be marked as being
  17193. targeted at the V850 processor. This allows the linker to detect
  17194. attempts to link such code with code assembled for other
  17195. processors.
  17196. '-mv850e'
  17197. Specifies that the assembled code should be marked as being
  17198. targeted at the V850E processor. This allows the linker to detect
  17199. attempts to link such code with code assembled for other
  17200. processors.
  17201. '-mv850e1'
  17202. Specifies that the assembled code should be marked as being
  17203. targeted at the V850E1 processor. This allows the linker to detect
  17204. attempts to link such code with code assembled for other
  17205. processors.
  17206. '-mv850any'
  17207. Specifies that the assembled code should be marked as being
  17208. targeted at the V850 processor but support instructions that are
  17209. specific to the extended variants of the process. This allows the
  17210. production of binaries that contain target specific code, but which
  17211. are also intended to be used in a generic fashion. For example
  17212. libgcc.a contains generic routines used by the code produced by GCC
  17213. for all versions of the v850 architecture, together with support
  17214. routines only used by the V850E architecture.
  17215. '-mv850e2'
  17216. Specifies that the assembled code should be marked as being
  17217. targeted at the V850E2 processor. This allows the linker to detect
  17218. attempts to link such code with code assembled for other
  17219. processors.
  17220. '-mv850e2v3'
  17221. Specifies that the assembled code should be marked as being
  17222. targeted at the V850E2V3 processor. This allows the linker to
  17223. detect attempts to link such code with code assembled for other
  17224. processors.
  17225. '-mv850e2v4'
  17226. This is an alias for '-mv850e3v5'.
  17227. '-mv850e3v5'
  17228. Specifies that the assembled code should be marked as being
  17229. targeted at the V850E3V5 processor. This allows the linker to
  17230. detect attempts to link such code with code assembled for other
  17231. processors.
  17232. '-mrelax'
  17233. Enables relaxation. This allows the .longcall and .longjump pseudo
  17234. ops to be used in the assembler source code. These ops label
  17235. sections of code which are either a long function call or a long
  17236. branch. The assembler will then flag these sections of code and
  17237. the linker will attempt to relax them.
  17238. '-mgcc-abi'
  17239. Marks the generated object file as supporting the old GCC ABI.
  17240. '-mrh850-abi'
  17241. Marks the generated object file as supporting the RH850 ABI. This
  17242. is the default.
  17243. '-m8byte-align'
  17244. Marks the generated object file as supporting a maximum 64-bits of
  17245. alignment for variables defined in the source code.
  17246. '-m4byte-align'
  17247. Marks the generated object file as supporting a maximum 32-bits of
  17248. alignment for variables defined in the source code. This is the
  17249. default.
  17250. '-msoft-float'
  17251. Marks the generated object file as not using any floating point
  17252. instructions - and hence can be linked with other V850 binaries
  17253. that do or do not use floating point. This is the default for
  17254. binaries for architectures earlier than the 'e2v3'.
  17255. '-mhard-float'
  17256. Marks the generated object file as one that uses floating point
  17257. instructions - and hence can only be linked with other V850
  17258. binaries that use the same kind of floating point instructions, or
  17259. with binaries that do not use floating point at all. This is the
  17260. default for binaries the 'e2v3' and later architectures.
  17261. 
  17262. File: as.info, Node: V850 Syntax, Next: V850 Floating Point, Prev: V850 Options, Up: V850-Dependent
  17263. 9.49.2 Syntax
  17264. -------------
  17265. * Menu:
  17266. * V850-Chars:: Special Characters
  17267. * V850-Regs:: Register Names
  17268. 
  17269. File: as.info, Node: V850-Chars, Next: V850-Regs, Up: V850 Syntax
  17270. 9.49.2.1 Special Characters
  17271. ...........................
  17272. '#' is the line comment character. If a '#' appears as the first
  17273. character of a line, the whole line is treated as a comment, but in this
  17274. case the line can also be a logical line number directive (*note
  17275. Comments::) or a preprocessor control command (*note Preprocessing::).
  17276. Two dashes ('--') can also be used to start a line comment.
  17277. The ';' character can be used to separate statements on the same
  17278. line.
  17279. 
  17280. File: as.info, Node: V850-Regs, Prev: V850-Chars, Up: V850 Syntax
  17281. 9.49.2.2 Register Names
  17282. .......................
  17283. 'as' supports the following names for registers:
  17284. 'general register 0'
  17285. r0, zero
  17286. 'general register 1'
  17287. r1
  17288. 'general register 2'
  17289. r2, hp
  17290. 'general register 3'
  17291. r3, sp
  17292. 'general register 4'
  17293. r4, gp
  17294. 'general register 5'
  17295. r5, tp
  17296. 'general register 6'
  17297. r6
  17298. 'general register 7'
  17299. r7
  17300. 'general register 8'
  17301. r8
  17302. 'general register 9'
  17303. r9
  17304. 'general register 10'
  17305. r10
  17306. 'general register 11'
  17307. r11
  17308. 'general register 12'
  17309. r12
  17310. 'general register 13'
  17311. r13
  17312. 'general register 14'
  17313. r14
  17314. 'general register 15'
  17315. r15
  17316. 'general register 16'
  17317. r16
  17318. 'general register 17'
  17319. r17
  17320. 'general register 18'
  17321. r18
  17322. 'general register 19'
  17323. r19
  17324. 'general register 20'
  17325. r20
  17326. 'general register 21'
  17327. r21
  17328. 'general register 22'
  17329. r22
  17330. 'general register 23'
  17331. r23
  17332. 'general register 24'
  17333. r24
  17334. 'general register 25'
  17335. r25
  17336. 'general register 26'
  17337. r26
  17338. 'general register 27'
  17339. r27
  17340. 'general register 28'
  17341. r28
  17342. 'general register 29'
  17343. r29
  17344. 'general register 30'
  17345. r30, ep
  17346. 'general register 31'
  17347. r31, lp
  17348. 'system register 0'
  17349. eipc
  17350. 'system register 1'
  17351. eipsw
  17352. 'system register 2'
  17353. fepc
  17354. 'system register 3'
  17355. fepsw
  17356. 'system register 4'
  17357. ecr
  17358. 'system register 5'
  17359. psw
  17360. 'system register 16'
  17361. ctpc
  17362. 'system register 17'
  17363. ctpsw
  17364. 'system register 18'
  17365. dbpc
  17366. 'system register 19'
  17367. dbpsw
  17368. 'system register 20'
  17369. ctbp
  17370. 
  17371. File: as.info, Node: V850 Floating Point, Next: V850 Directives, Prev: V850 Syntax, Up: V850-Dependent
  17372. 9.49.3 Floating Point
  17373. ---------------------
  17374. The V850 family uses IEEE floating-point numbers.
  17375. 
  17376. File: as.info, Node: V850 Directives, Next: V850 Opcodes, Prev: V850 Floating Point, Up: V850-Dependent
  17377. 9.49.4 V850 Machine Directives
  17378. ------------------------------
  17379. '.offset <EXPRESSION>'
  17380. Moves the offset into the current section to the specified amount.
  17381. '.section "name", <type>'
  17382. This is an extension to the standard .section directive. It sets
  17383. the current section to be <type> and creates an alias for this
  17384. section called "name".
  17385. '.v850'
  17386. Specifies that the assembled code should be marked as being
  17387. targeted at the V850 processor. This allows the linker to detect
  17388. attempts to link such code with code assembled for other
  17389. processors.
  17390. '.v850e'
  17391. Specifies that the assembled code should be marked as being
  17392. targeted at the V850E processor. This allows the linker to detect
  17393. attempts to link such code with code assembled for other
  17394. processors.
  17395. '.v850e1'
  17396. Specifies that the assembled code should be marked as being
  17397. targeted at the V850E1 processor. This allows the linker to detect
  17398. attempts to link such code with code assembled for other
  17399. processors.
  17400. '.v850e2'
  17401. Specifies that the assembled code should be marked as being
  17402. targeted at the V850E2 processor. This allows the linker to detect
  17403. attempts to link such code with code assembled for other
  17404. processors.
  17405. '.v850e2v3'
  17406. Specifies that the assembled code should be marked as being
  17407. targeted at the V850E2V3 processor. This allows the linker to
  17408. detect attempts to link such code with code assembled for other
  17409. processors.
  17410. '.v850e2v4'
  17411. Specifies that the assembled code should be marked as being
  17412. targeted at the V850E3V5 processor. This allows the linker to
  17413. detect attempts to link such code with code assembled for other
  17414. processors.
  17415. '.v850e3v5'
  17416. Specifies that the assembled code should be marked as being
  17417. targeted at the V850E3V5 processor. This allows the linker to
  17418. detect attempts to link such code with code assembled for other
  17419. processors.
  17420. 
  17421. File: as.info, Node: V850 Opcodes, Prev: V850 Directives, Up: V850-Dependent
  17422. 9.49.5 Opcodes
  17423. --------------
  17424. 'as' implements all the standard V850 opcodes.
  17425. 'as' also implements the following pseudo ops:
  17426. 'hi0()'
  17427. Computes the higher 16 bits of the given expression and stores it
  17428. into the immediate operand field of the given instruction. For
  17429. example:
  17430. 'mulhi hi0(here - there), r5, r6'
  17431. computes the difference between the address of labels 'here' and
  17432. 'there', takes the upper 16 bits of this difference, shifts it down
  17433. 16 bits and then multiplies it by the lower 16 bits in register 5,
  17434. putting the result into register 6.
  17435. 'lo()'
  17436. Computes the lower 16 bits of the given expression and stores it
  17437. into the immediate operand field of the given instruction. For
  17438. example:
  17439. 'addi lo(here - there), r5, r6'
  17440. computes the difference between the address of labels 'here' and
  17441. 'there', takes the lower 16 bits of this difference and adds it to
  17442. register 5, putting the result into register 6.
  17443. 'hi()'
  17444. Computes the higher 16 bits of the given expression and then adds
  17445. the value of the most significant bit of the lower 16 bits of the
  17446. expression and stores the result into the immediate operand field
  17447. of the given instruction. For example the following code can be
  17448. used to compute the address of the label 'here' and store it into
  17449. register 6:
  17450. 'movhi hi(here), r0, r6' 'movea lo(here), r6, r6'
  17451. The reason for this special behaviour is that movea performs a sign
  17452. extension on its immediate operand. So for example if the address
  17453. of 'here' was 0xFFFFFFFF then without the special behaviour of the
  17454. hi() pseudo-op the movhi instruction would put 0xFFFF0000 into r6,
  17455. then the movea instruction would takes its immediate operand,
  17456. 0xFFFF, sign extend it to 32 bits, 0xFFFFFFFF, and then add it into
  17457. r6 giving 0xFFFEFFFF which is wrong (the fifth nibble is E). With
  17458. the hi() pseudo op adding in the top bit of the lo() pseudo op, the
  17459. movhi instruction actually stores 0 into r6 (0xFFFF + 1 = 0x0000),
  17460. so that the movea instruction stores 0xFFFFFFFF into r6 - the right
  17461. value.
  17462. 'hilo()'
  17463. Computes the 32 bit value of the given expression and stores it
  17464. into the immediate operand field of the given instruction (which
  17465. must be a mov instruction). For example:
  17466. 'mov hilo(here), r6'
  17467. computes the absolute address of label 'here' and puts the result
  17468. into register 6.
  17469. 'sdaoff()'
  17470. Computes the offset of the named variable from the start of the
  17471. Small Data Area (whose address is held in register 4, the GP
  17472. register) and stores the result as a 16 bit signed value in the
  17473. immediate operand field of the given instruction. For example:
  17474. 'ld.w sdaoff(_a_variable)[gp],r6'
  17475. loads the contents of the location pointed to by the label
  17476. '_a_variable' into register 6, provided that the label is located
  17477. somewhere within +/- 32K of the address held in the GP register.
  17478. [Note the linker assumes that the GP register contains a fixed
  17479. address set to the address of the label called '__gp'. This can
  17480. either be set up automatically by the linker, or specifically set
  17481. by using the '--defsym __gp=<value>' command-line option].
  17482. 'tdaoff()'
  17483. Computes the offset of the named variable from the start of the
  17484. Tiny Data Area (whose address is held in register 30, the EP
  17485. register) and stores the result as a 4,5, 7 or 8 bit unsigned value
  17486. in the immediate operand field of the given instruction. For
  17487. example:
  17488. 'sld.w tdaoff(_a_variable)[ep],r6'
  17489. loads the contents of the location pointed to by the label
  17490. '_a_variable' into register 6, provided that the label is located
  17491. somewhere within +256 bytes of the address held in the EP register.
  17492. [Note the linker assumes that the EP register contains a fixed
  17493. address set to the address of the label called '__ep'. This can
  17494. either be set up automatically by the linker, or specifically set
  17495. by using the '--defsym __ep=<value>' command-line option].
  17496. 'zdaoff()'
  17497. Computes the offset of the named variable from address 0 and stores
  17498. the result as a 16 bit signed value in the immediate operand field
  17499. of the given instruction. For example:
  17500. 'movea zdaoff(_a_variable),zero,r6'
  17501. puts the address of the label '_a_variable' into register 6,
  17502. assuming that the label is somewhere within the first 32K of
  17503. memory. (Strictly speaking it also possible to access the last 32K
  17504. of memory as well, as the offsets are signed).
  17505. 'ctoff()'
  17506. Computes the offset of the named variable from the start of the
  17507. Call Table Area (whose address is held in system register 20, the
  17508. CTBP register) and stores the result a 6 or 16 bit unsigned value
  17509. in the immediate field of then given instruction or piece of data.
  17510. For example:
  17511. 'callt ctoff(table_func1)'
  17512. will put the call the function whose address is held in the call
  17513. table at the location labeled 'table_func1'.
  17514. '.longcall name'
  17515. Indicates that the following sequence of instructions is a long
  17516. call to function 'name'. The linker will attempt to shorten this
  17517. call sequence if 'name' is within a 22bit offset of the call. Only
  17518. valid if the '-mrelax' command-line switch has been enabled.
  17519. '.longjump name'
  17520. Indicates that the following sequence of instructions is a long
  17521. jump to label 'name'. The linker will attempt to shorten this code
  17522. sequence if 'name' is within a 22bit offset of the jump. Only
  17523. valid if the '-mrelax' command-line switch has been enabled.
  17524. For information on the V850 instruction set, see 'V850 Family
  17525. 32-/16-Bit single-Chip Microcontroller Architecture Manual' from NEC.
  17526. Ltd.
  17527. 
  17528. File: as.info, Node: Vax-Dependent, Next: Visium-Dependent, Prev: V850-Dependent, Up: Machine Dependencies
  17529. 9.50 VAX Dependent Features
  17530. ===========================
  17531. * Menu:
  17532. * VAX-Opts:: VAX Command-Line Options
  17533. * VAX-float:: VAX Floating Point
  17534. * VAX-directives:: Vax Machine Directives
  17535. * VAX-opcodes:: VAX Opcodes
  17536. * VAX-branch:: VAX Branch Improvement
  17537. * VAX-operands:: VAX Operands
  17538. * VAX-no:: Not Supported on VAX
  17539. * VAX-Syntax:: VAX Syntax
  17540. 
  17541. File: as.info, Node: VAX-Opts, Next: VAX-float, Up: Vax-Dependent
  17542. 9.50.1 VAX Command-Line Options
  17543. -------------------------------
  17544. The Vax version of 'as' accepts any of the following options, gives a
  17545. warning message that the option was ignored and proceeds. These options
  17546. are for compatibility with scripts designed for other people's
  17547. assemblers.
  17548. '-D (Debug)'
  17549. '-S (Symbol Table)'
  17550. '-T (Token Trace)'
  17551. These are obsolete options used to debug old assemblers.
  17552. '-d (Displacement size for JUMPs)'
  17553. This option expects a number following the '-d'. Like options that
  17554. expect filenames, the number may immediately follow the '-d' (old
  17555. standard) or constitute the whole of the command-line argument that
  17556. follows '-d' (GNU standard).
  17557. '-V (Virtualize Interpass Temporary File)'
  17558. Some other assemblers use a temporary file. This option commanded
  17559. them to keep the information in active memory rather than in a disk
  17560. file. 'as' always does this, so this option is redundant.
  17561. '-J (JUMPify Longer Branches)'
  17562. Many 32-bit computers permit a variety of branch instructions to do
  17563. the same job. Some of these instructions are short (and fast) but
  17564. have a limited range; others are long (and slow) but can branch
  17565. anywhere in virtual memory. Often there are 3 flavors of branch:
  17566. short, medium and long. Some other assemblers would emit short and
  17567. medium branches, unless told by this option to emit short and long
  17568. branches.
  17569. '-t (Temporary File Directory)'
  17570. Some other assemblers may use a temporary file, and this option
  17571. takes a filename being the directory to site the temporary file.
  17572. Since 'as' does not use a temporary disk file, this option makes no
  17573. difference. '-t' needs exactly one filename.
  17574. The Vax version of the assembler accepts additional options when
  17575. compiled for VMS:
  17576. '-h N'
  17577. External symbol or section (used for global variables) names are
  17578. not case sensitive on VAX/VMS and always mapped to upper case.
  17579. This is contrary to the C language definition which explicitly
  17580. distinguishes upper and lower case. To implement a standard
  17581. conforming C compiler, names must be changed (mapped) to preserve
  17582. the case information. The default mapping is to convert all lower
  17583. case characters to uppercase and adding an underscore followed by a
  17584. 6 digit hex value, representing a 24 digit binary value. The one
  17585. digits in the binary value represent which characters are uppercase
  17586. in the original symbol name.
  17587. The '-h N' option determines how we map names. This takes several
  17588. values. No '-h' switch at all allows case hacking as described
  17589. above. A value of zero ('-h0') implies names should be upper case,
  17590. and inhibits the case hack. A value of 2 ('-h2') implies names
  17591. should be all lower case, with no case hack. A value of 3 ('-h3')
  17592. implies that case should be preserved. The value 1 is unused. The
  17593. '-H' option directs 'as' to display every mapped symbol during
  17594. assembly.
  17595. Symbols whose names include a dollar sign '$' are exceptions to the
  17596. general name mapping. These symbols are normally only used to
  17597. reference VMS library names. Such symbols are always mapped to
  17598. upper case.
  17599. '-+'
  17600. The '-+' option causes 'as' to truncate any symbol name larger than
  17601. 31 characters. The '-+' option also prevents some code following
  17602. the '_main' symbol normally added to make the object file
  17603. compatible with Vax-11 "C".
  17604. '-1'
  17605. This option is ignored for backward compatibility with 'as' version
  17606. 1.x.
  17607. '-H'
  17608. The '-H' option causes 'as' to print every symbol which was changed
  17609. by case mapping.
  17610. 
  17611. File: as.info, Node: VAX-float, Next: VAX-directives, Prev: VAX-Opts, Up: Vax-Dependent
  17612. 9.50.2 VAX Floating Point
  17613. -------------------------
  17614. Conversion of flonums to floating point is correct, and compatible with
  17615. previous assemblers. Rounding is towards zero if the remainder is
  17616. exactly half the least significant bit.
  17617. 'D', 'F', 'G' and 'H' floating point formats are understood.
  17618. Immediate floating literals (_e.g._ 'S`$6.9') are rendered
  17619. correctly. Again, rounding is towards zero in the boundary case.
  17620. The '.float' directive produces 'f' format numbers. The '.double'
  17621. directive produces 'd' format numbers.
  17622. 
  17623. File: as.info, Node: VAX-directives, Next: VAX-opcodes, Prev: VAX-float, Up: Vax-Dependent
  17624. 9.50.3 Vax Machine Directives
  17625. -----------------------------
  17626. The Vax version of the assembler supports four directives for generating
  17627. Vax floating point constants. They are described in the table below.
  17628. '.dfloat'
  17629. This expects zero or more flonums, separated by commas, and
  17630. assembles Vax 'd' format 64-bit floating point constants.
  17631. '.ffloat'
  17632. This expects zero or more flonums, separated by commas, and
  17633. assembles Vax 'f' format 32-bit floating point constants.
  17634. '.gfloat'
  17635. This expects zero or more flonums, separated by commas, and
  17636. assembles Vax 'g' format 64-bit floating point constants.
  17637. '.hfloat'
  17638. This expects zero or more flonums, separated by commas, and
  17639. assembles Vax 'h' format 128-bit floating point constants.
  17640. 
  17641. File: as.info, Node: VAX-opcodes, Next: VAX-branch, Prev: VAX-directives, Up: Vax-Dependent
  17642. 9.50.4 VAX Opcodes
  17643. ------------------
  17644. All DEC mnemonics are supported. Beware that 'case...' instructions
  17645. have exactly 3 operands. The dispatch table that follows the 'case...'
  17646. instruction should be made with '.word' statements. This is compatible
  17647. with all unix assemblers we know of.
  17648. 
  17649. File: as.info, Node: VAX-branch, Next: VAX-operands, Prev: VAX-opcodes, Up: Vax-Dependent
  17650. 9.50.5 VAX Branch Improvement
  17651. -----------------------------
  17652. Certain pseudo opcodes are permitted. They are for branch instructions.
  17653. They expand to the shortest branch instruction that reaches the target.
  17654. Generally these mnemonics are made by substituting 'j' for 'b' at the
  17655. start of a DEC mnemonic. This feature is included both for
  17656. compatibility and to help compilers. If you do not need this feature,
  17657. avoid these opcodes. Here are the mnemonics, and the code they can
  17658. expand into.
  17659. 'jbsb'
  17660. 'Jsb' is already an instruction mnemonic, so we chose 'jbsb'.
  17661. (byte displacement)
  17662. 'bsbb ...'
  17663. (word displacement)
  17664. 'bsbw ...'
  17665. (long displacement)
  17666. 'jsb ...'
  17667. 'jbr'
  17668. 'jr'
  17669. Unconditional branch.
  17670. (byte displacement)
  17671. 'brb ...'
  17672. (word displacement)
  17673. 'brw ...'
  17674. (long displacement)
  17675. 'jmp ...'
  17676. 'jCOND'
  17677. COND may be any one of the conditional branches 'neq', 'nequ',
  17678. 'eql', 'eqlu', 'gtr', 'geq', 'lss', 'gtru', 'lequ', 'vc', 'vs',
  17679. 'gequ', 'cc', 'lssu', 'cs'. COND may also be one of the bit tests
  17680. 'bs', 'bc', 'bss', 'bcs', 'bsc', 'bcc', 'bssi', 'bcci', 'lbs',
  17681. 'lbc'. NOTCOND is the opposite condition to COND.
  17682. (byte displacement)
  17683. 'bCOND ...'
  17684. (word displacement)
  17685. 'bNOTCOND foo ; brw ... ; foo:'
  17686. (long displacement)
  17687. 'bNOTCOND foo ; jmp ... ; foo:'
  17688. 'jacbX'
  17689. X may be one of 'b d f g h l w'.
  17690. (word displacement)
  17691. 'OPCODE ...'
  17692. (long displacement)
  17693. OPCODE ..., foo ;
  17694. brb bar ;
  17695. foo: jmp ... ;
  17696. bar:
  17697. 'jaobYYY'
  17698. YYY may be one of 'lss leq'.
  17699. 'jsobZZZ'
  17700. ZZZ may be one of 'geq gtr'.
  17701. (byte displacement)
  17702. 'OPCODE ...'
  17703. (word displacement)
  17704. OPCODE ..., foo ;
  17705. brb bar ;
  17706. foo: brw DESTINATION ;
  17707. bar:
  17708. (long displacement)
  17709. OPCODE ..., foo ;
  17710. brb bar ;
  17711. foo: jmp DESTINATION ;
  17712. bar:
  17713. 'aobleq'
  17714. 'aoblss'
  17715. 'sobgeq'
  17716. 'sobgtr'
  17717. (byte displacement)
  17718. 'OPCODE ...'
  17719. (word displacement)
  17720. OPCODE ..., foo ;
  17721. brb bar ;
  17722. foo: brw DESTINATION ;
  17723. bar:
  17724. (long displacement)
  17725. OPCODE ..., foo ;
  17726. brb bar ;
  17727. foo: jmp DESTINATION ;
  17728. bar:
  17729. 
  17730. File: as.info, Node: VAX-operands, Next: VAX-no, Prev: VAX-branch, Up: Vax-Dependent
  17731. 9.50.6 VAX Operands
  17732. -------------------
  17733. The immediate character is '$' for Unix compatibility, not '#' as DEC
  17734. writes it.
  17735. The indirect character is '*' for Unix compatibility, not '@' as DEC
  17736. writes it.
  17737. The displacement sizing character is '`' (an accent grave) for Unix
  17738. compatibility, not '^' as DEC writes it. The letter preceding '`' may
  17739. have either case. 'G' is not understood, but all other letters ('b i l
  17740. s w') are understood.
  17741. Register names understood are 'r0 r1 r2 ... r15 ap fp sp pc'. Upper
  17742. and lower case letters are equivalent.
  17743. For instance
  17744. tstb *w`$4(r5)
  17745. Any expression is permitted in an operand. Operands are comma
  17746. separated.
  17747. 
  17748. File: as.info, Node: VAX-no, Next: VAX-Syntax, Prev: VAX-operands, Up: Vax-Dependent
  17749. 9.50.7 Not Supported on VAX
  17750. ---------------------------
  17751. Vax bit fields can not be assembled with 'as'. Someone can add the
  17752. required code if they really need it.
  17753. 
  17754. File: as.info, Node: VAX-Syntax, Prev: VAX-no, Up: Vax-Dependent
  17755. 9.50.8 VAX Syntax
  17756. -----------------
  17757. * Menu:
  17758. * VAX-Chars:: Special Characters
  17759. 
  17760. File: as.info, Node: VAX-Chars, Up: VAX-Syntax
  17761. 9.50.8.1 Special Characters
  17762. ...........................
  17763. The presence of a '#' appearing anywhere on a line indicates the start
  17764. of a comment that extends to the end of that line.
  17765. If a '#' appears as the first character of a line then the whole line
  17766. is treated as a comment, but in this case the line can also be a logical
  17767. line number directive (*note Comments::) or a preprocessor control
  17768. command (*note Preprocessing::).
  17769. The ';' character can be used to separate statements on the same
  17770. line.
  17771. 
  17772. File: as.info, Node: Visium-Dependent, Next: WebAssembly-Dependent, Prev: Vax-Dependent, Up: Machine Dependencies
  17773. 9.51 Visium Dependent Features
  17774. ==============================
  17775. * Menu:
  17776. * Visium Options:: Options
  17777. * Visium Syntax:: Syntax
  17778. * Visium Opcodes:: Opcodes
  17779. 
  17780. File: as.info, Node: Visium Options, Next: Visium Syntax, Up: Visium-Dependent
  17781. 9.51.1 Options
  17782. --------------
  17783. The Visium assembler implements one machine-specific option:
  17784. '-mtune=ARCH'
  17785. This option specifies the target architecture. If an attempt is
  17786. made to assemble an instruction that will not execute on the target
  17787. architecture, the assembler will issue an error message.
  17788. The following names are recognized: 'mcm24' 'mcm' 'gr5' 'gr6'
  17789. 
  17790. File: as.info, Node: Visium Syntax, Next: Visium Opcodes, Prev: Visium Options, Up: Visium-Dependent
  17791. 9.51.2 Syntax
  17792. -------------
  17793. * Menu:
  17794. * Visium Characters:: Special Characters
  17795. * Visium Registers:: Register Names
  17796. 
  17797. File: as.info, Node: Visium Characters, Next: Visium Registers, Up: Visium Syntax
  17798. 9.51.2.1 Special Characters
  17799. ...........................
  17800. Line comments are introduced either by the '!' character or by the ';'
  17801. character appearing anywhere on a line.
  17802. A hash character ('#') as the first character on a line also marks
  17803. the start of a line comment, but in this case it could also be a logical
  17804. line number directive (*note Comments::) or a preprocessor control
  17805. command (*note Preprocessing::).
  17806. The Visium assembler does not currently support a line separator
  17807. character.
  17808. 
  17809. File: as.info, Node: Visium Registers, Prev: Visium Characters, Up: Visium Syntax
  17810. 9.51.2.2 Register Names
  17811. .......................
  17812. Registers can be specified either by using their canonical mnemonic
  17813. names or by using their alias if they have one, for example 'sp'.
  17814. 
  17815. File: as.info, Node: Visium Opcodes, Prev: Visium Syntax, Up: Visium-Dependent
  17816. 9.51.3 Opcodes
  17817. --------------
  17818. All the standard opcodes of the architecture are implemented, along with
  17819. the following three pseudo-instructions: 'cmp', 'cmpc', 'move'.
  17820. In addition, the following two illegal opcodes are implemented and
  17821. used by the simulation:
  17822. stop 5-bit immediate, SourceA
  17823. trace 5-bit immediate, SourceA
  17824. 
  17825. File: as.info, Node: WebAssembly-Dependent, Next: XGATE-Dependent, Prev: Visium-Dependent, Up: Machine Dependencies
  17826. 9.52 WebAssembly Dependent Features
  17827. ===================================
  17828. * Menu:
  17829. * WebAssembly-Notes:: Notes
  17830. * WebAssembly-Syntax:: Syntax
  17831. * WebAssembly-Floating-Point:: Floating Point
  17832. * WebAssembly-Opcodes:: Opcodes
  17833. * WebAssembly-module-layout:: Module Layout
  17834. 
  17835. File: as.info, Node: WebAssembly-Notes, Next: WebAssembly-Syntax, Up: WebAssembly-Dependent
  17836. 9.52.1 Notes
  17837. ------------
  17838. While WebAssembly provides its own module format for executables, this
  17839. documentation describes how to use 'as' to produce intermediate ELF
  17840. object format files.
  17841. 
  17842. File: as.info, Node: WebAssembly-Syntax, Next: WebAssembly-Floating-Point, Prev: WebAssembly-Notes, Up: WebAssembly-Dependent
  17843. 9.52.2 Syntax
  17844. -------------
  17845. The assembler syntax directly encodes sequences of opcodes as defined in
  17846. the WebAssembly binary encoding specification at
  17847. https://github.com/webassembly/spec/BinaryEncoding.md. Structured
  17848. sexp-style expressions are not supported as input.
  17849. * Menu:
  17850. * WebAssembly-Chars:: Special Characters
  17851. * WebAssembly-Relocs:: Relocations
  17852. * WebAssembly-Signatures:: Signatures
  17853. 
  17854. File: as.info, Node: WebAssembly-Chars, Next: WebAssembly-Relocs, Up: WebAssembly-Syntax
  17855. 9.52.2.1 Special Characters
  17856. ...........................
  17857. '#' and ';' are the line comment characters. Note that if '#' is the
  17858. first character on a line then it can also be a logical line number
  17859. directive (*note Comments::) or a preprocessor control command (*note
  17860. Preprocessing::).
  17861. 
  17862. File: as.info, Node: WebAssembly-Relocs, Next: WebAssembly-Signatures, Prev: WebAssembly-Chars, Up: WebAssembly-Syntax
  17863. 9.52.2.2 Relocations
  17864. ....................
  17865. Special relocations are available by using the '@PLT', '@GOT', or '@GOT'
  17866. suffixes after a constant expression, which correspond to the
  17867. R_ASMJS_LEB128_PLT, R_ASMJS_LEB128_GOT, and R_ASMJS_LEB128_GOT_CODE
  17868. relocations, respectively.
  17869. The '@PLT' suffix is followed by a symbol name in braces; the symbol
  17870. value is used to determine the function signature for which a PLT stub
  17871. is generated. Currently, the symbol _name_ is parsed from its last 'F'
  17872. character to determine the argument count of the function, which is also
  17873. necessary for generating a PLT stub.
  17874. 
  17875. File: as.info, Node: WebAssembly-Signatures, Prev: WebAssembly-Relocs, Up: WebAssembly-Syntax
  17876. 9.52.2.3 Signatures
  17877. ...................
  17878. Function signatures are specified with the 'signature' pseudo-opcode,
  17879. followed by a simple function signature imitating a C++-mangled function
  17880. type: 'F' followed by an optional 'v', then a sequence of 'i', 'l', 'f',
  17881. and 'd' characters to mark i32, i64, f32, and f64 parameters,
  17882. respectively; followed by a final 'E' to mark the end of the function
  17883. signature.
  17884. 
  17885. File: as.info, Node: WebAssembly-Floating-Point, Next: WebAssembly-Opcodes, Prev: WebAssembly-Syntax, Up: WebAssembly-Dependent
  17886. 9.52.3 Floating Point
  17887. ---------------------
  17888. WebAssembly uses little-endian IEEE floating-point numbers.
  17889. 
  17890. File: as.info, Node: WebAssembly-Opcodes, Next: WebAssembly-module-layout, Prev: WebAssembly-Floating-Point, Up: WebAssembly-Dependent
  17891. 9.52.4 Regular Opcodes
  17892. ----------------------
  17893. Ordinary instructions are encoded with the WebAssembly mnemonics as
  17894. listed at:
  17895. <https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md>.
  17896. Opcodes are written directly in the order in which they are encoded,
  17897. without going through an intermediate sexp-style expression as in the
  17898. 'was' format.
  17899. For "typed" opcodes (block, if, etc.), the type of the block is
  17900. specified in square brackets following the opcode: 'if[i]', 'if[]'.
  17901. 
  17902. File: as.info, Node: WebAssembly-module-layout, Prev: WebAssembly-Opcodes, Up: WebAssembly-Dependent
  17903. 9.52.5 WebAssembly Module Layout
  17904. --------------------------------
  17905. 'as' will only produce ELF output, not a valid WebAssembly module. It
  17906. is possible to make 'as' produce output in a single ELF section which
  17907. becomes a valid WebAssembly module, but a linker script to do so may be
  17908. preferrable, as it doesn't require running the entire module through the
  17909. assembler at once.
  17910. 
  17911. File: as.info, Node: XGATE-Dependent, Next: XSTORMY16-Dependent, Prev: WebAssembly-Dependent, Up: Machine Dependencies
  17912. 9.53 XGATE Dependent Features
  17913. =============================
  17914. * Menu:
  17915. * XGATE-Opts:: XGATE Options
  17916. * XGATE-Syntax:: Syntax
  17917. * XGATE-Directives:: Assembler Directives
  17918. * XGATE-Float:: Floating Point
  17919. * XGATE-opcodes:: Opcodes
  17920. 
  17921. File: as.info, Node: XGATE-Opts, Next: XGATE-Syntax, Up: XGATE-Dependent
  17922. 9.53.1 XGATE Options
  17923. --------------------
  17924. The Freescale XGATE version of 'as' has a few machine dependent options.
  17925. '-mshort'
  17926. This option controls the ABI and indicates to use a 16-bit integer
  17927. ABI. It has no effect on the assembled instructions. This is the
  17928. default.
  17929. '-mlong'
  17930. This option controls the ABI and indicates to use a 32-bit integer
  17931. ABI.
  17932. '-mshort-double'
  17933. This option controls the ABI and indicates to use a 32-bit float
  17934. ABI. This is the default.
  17935. '-mlong-double'
  17936. This option controls the ABI and indicates to use a 64-bit float
  17937. ABI.
  17938. '--print-insn-syntax'
  17939. You can use the '--print-insn-syntax' option to obtain the syntax
  17940. description of the instruction when an error is detected.
  17941. '--print-opcodes'
  17942. The '--print-opcodes' option prints the list of all the
  17943. instructions with their syntax. Once the list is printed 'as'
  17944. exits.
  17945. 
  17946. File: as.info, Node: XGATE-Syntax, Next: XGATE-Directives, Prev: XGATE-Opts, Up: XGATE-Dependent
  17947. 9.53.2 Syntax
  17948. -------------
  17949. In XGATE RISC syntax, the instruction name comes first and it may be
  17950. followed by up to three operands. Operands are separated by commas
  17951. (','). 'as' will complain if too many operands are specified for a
  17952. given instruction. The same will happen if you specified too few
  17953. operands.
  17954. nop
  17955. ldl #23
  17956. CMP R1, R2
  17957. The presence of a ';' character or a '!' character anywhere on a line
  17958. indicates the start of a comment that extends to the end of that line.
  17959. A '*' or a '#' character at the start of a line also introduces a
  17960. line comment, but these characters do not work elsewhere on the line.
  17961. If the first character of the line is a '#' then as well as starting a
  17962. comment, the line could also be logical line number directive (*note
  17963. Comments::) or a preprocessor control command (*note Preprocessing::).
  17964. The XGATE assembler does not currently support a line separator
  17965. character.
  17966. The following addressing modes are understood for XGATE:
  17967. "Inherent"
  17968. ''
  17969. "Immediate 3 Bit Wide"
  17970. '#NUMBER'
  17971. "Immediate 4 Bit Wide"
  17972. '#NUMBER'
  17973. "Immediate 8 Bit Wide"
  17974. '#NUMBER'
  17975. "Monadic Addressing"
  17976. 'REG'
  17977. "Dyadic Addressing"
  17978. 'REG, REG'
  17979. "Triadic Addressing"
  17980. 'REG, REG, REG'
  17981. "Relative Addressing 9 Bit Wide"
  17982. '*SYMBOL'
  17983. "Relative Addressing 10 Bit Wide"
  17984. '*SYMBOL'
  17985. "Index Register plus Immediate Offset"
  17986. 'REG, (REG, #NUMBER)'
  17987. "Index Register plus Register Offset"
  17988. 'REG, REG, REG'
  17989. "Index Register plus Register Offset with Post-increment"
  17990. 'REG, REG, REG+'
  17991. "Index Register plus Register Offset with Pre-decrement"
  17992. 'REG, REG, -REG'
  17993. The register can be either 'R0', 'R1', 'R2', 'R3', 'R4', 'R5', 'R6'
  17994. or 'R7'.
  17995. Convene macro opcodes to deal with 16-bit values have been added.
  17996. "Immediate 16 Bit Wide"
  17997. '#NUMBER', or '*SYMBOL'
  17998. For example:
  17999. ldw R1, #1024
  18000. ldw R3, timer
  18001. ldw R1, (R1, #0)
  18002. COM R1
  18003. stw R2, (R1, #0)
  18004. 
  18005. File: as.info, Node: XGATE-Directives, Next: XGATE-Float, Prev: XGATE-Syntax, Up: XGATE-Dependent
  18006. 9.53.3 Assembler Directives
  18007. ---------------------------
  18008. The XGATE version of 'as' have the following specific assembler
  18009. directives:
  18010. 
  18011. File: as.info, Node: XGATE-Float, Next: XGATE-opcodes, Prev: XGATE-Directives, Up: XGATE-Dependent
  18012. 9.53.4 Floating Point
  18013. ---------------------
  18014. Packed decimal (P) format floating literals are not supported(yet).
  18015. The floating point formats generated by directives are these.
  18016. '.float'
  18017. 'Single' precision floating point constants.
  18018. '.double'
  18019. 'Double' precision floating point constants.
  18020. '.extend'
  18021. '.ldouble'
  18022. 'Extended' precision ('long double') floating point constants.
  18023. 
  18024. File: as.info, Node: XGATE-opcodes, Prev: XGATE-Float, Up: XGATE-Dependent
  18025. 9.53.5 Opcodes
  18026. --------------
  18027. 
  18028. File: as.info, Node: XSTORMY16-Dependent, Next: Xtensa-Dependent, Prev: XGATE-Dependent, Up: Machine Dependencies
  18029. 9.54 XStormy16 Dependent Features
  18030. =================================
  18031. * Menu:
  18032. * XStormy16 Syntax:: Syntax
  18033. * XStormy16 Directives:: Machine Directives
  18034. * XStormy16 Opcodes:: Pseudo-Opcodes
  18035. 
  18036. File: as.info, Node: XStormy16 Syntax, Next: XStormy16 Directives, Up: XSTORMY16-Dependent
  18037. 9.54.1 Syntax
  18038. -------------
  18039. * Menu:
  18040. * XStormy16-Chars:: Special Characters
  18041. 
  18042. File: as.info, Node: XStormy16-Chars, Up: XStormy16 Syntax
  18043. 9.54.1.1 Special Characters
  18044. ...........................
  18045. '#' is the line comment character. If a '#' appears as the first
  18046. character of a line, the whole line is treated as a comment, but in this
  18047. case the line can also be a logical line number directive (*note
  18048. Comments::) or a preprocessor control command (*note Preprocessing::).
  18049. A semicolon (';') can be used to start a comment that extends from
  18050. wherever the character appears on the line up to the end of the line.
  18051. The '|' character can be used to separate statements on the same
  18052. line.
  18053. 
  18054. File: as.info, Node: XStormy16 Directives, Next: XStormy16 Opcodes, Prev: XStormy16 Syntax, Up: XSTORMY16-Dependent
  18055. 9.54.2 XStormy16 Machine Directives
  18056. -----------------------------------
  18057. '.16bit_pointers'
  18058. Like the '--16bit-pointers' command-line option this directive
  18059. indicates that the assembly code makes use of 16-bit pointers.
  18060. '.32bit_pointers'
  18061. Like the '--32bit-pointers' command-line option this directive
  18062. indicates that the assembly code makes use of 32-bit pointers.
  18063. '.no_pointers'
  18064. Like the '--no-pointers' command-line option this directive
  18065. indicates that the assembly code does not makes use pointers.
  18066. 
  18067. File: as.info, Node: XStormy16 Opcodes, Prev: XStormy16 Directives, Up: XSTORMY16-Dependent
  18068. 9.54.3 XStormy16 Pseudo-Opcodes
  18069. -------------------------------
  18070. 'as' implements all the standard XStormy16 opcodes.
  18071. 'as' also implements the following pseudo ops:
  18072. '@lo()'
  18073. Computes the lower 16 bits of the given expression and stores it
  18074. into the immediate operand field of the given instruction. For
  18075. example:
  18076. 'add r6, @lo(here - there)'
  18077. computes the difference between the address of labels 'here' and
  18078. 'there', takes the lower 16 bits of this difference and adds it to
  18079. register 6.
  18080. '@hi()'
  18081. Computes the higher 16 bits of the given expression and stores it
  18082. into the immediate operand field of the given instruction. For
  18083. example:
  18084. 'addc r7, @hi(here - there)'
  18085. computes the difference between the address of labels 'here' and
  18086. 'there', takes the upper 16 bits of this difference, shifts it down
  18087. 16 bits and then adds it, along with the carry bit, to the value in
  18088. register 7.
  18089. 
  18090. File: as.info, Node: Xtensa-Dependent, Next: Z80-Dependent, Prev: XSTORMY16-Dependent, Up: Machine Dependencies
  18091. 9.55 Xtensa Dependent Features
  18092. ==============================
  18093. This chapter covers features of the GNU assembler that are specific to
  18094. the Xtensa architecture. For details about the Xtensa instruction set,
  18095. please consult the 'Xtensa Instruction Set Architecture (ISA) Reference
  18096. Manual'.
  18097. * Menu:
  18098. * Xtensa Options:: Command-line Options.
  18099. * Xtensa Syntax:: Assembler Syntax for Xtensa Processors.
  18100. * Xtensa Optimizations:: Assembler Optimizations.
  18101. * Xtensa Relaxation:: Other Automatic Transformations.
  18102. * Xtensa Directives:: Directives for Xtensa Processors.
  18103. 
  18104. File: as.info, Node: Xtensa Options, Next: Xtensa Syntax, Up: Xtensa-Dependent
  18105. 9.55.1 Command-line Options
  18106. ---------------------------
  18107. '--text-section-literals | --no-text-section-literals'
  18108. Control the treatment of literal pools. The default is
  18109. '--no-text-section-literals', which places literals in separate
  18110. sections in the output file. This allows the literal pool to be
  18111. placed in a data RAM/ROM. With '--text-section-literals', the
  18112. literals are interspersed in the text section in order to keep them
  18113. as close as possible to their references. This may be necessary
  18114. for large assembly files, where the literals would otherwise be out
  18115. of range of the 'L32R' instructions in the text section. Literals
  18116. are grouped into pools following '.literal_position' directives or
  18117. preceding 'ENTRY' instructions. These options only affect literals
  18118. referenced via PC-relative 'L32R' instructions; literals for
  18119. absolute mode 'L32R' instructions are handled separately. *Note
  18120. literal: Literal Directive.
  18121. '--auto-litpools | --no-auto-litpools'
  18122. Control the treatment of literal pools. The default is
  18123. '--no-auto-litpools', which in the absence of
  18124. '--text-section-literals' places literals in separate sections in
  18125. the output file. This allows the literal pool to be placed in a
  18126. data RAM/ROM. With '--auto-litpools', the literals are interspersed
  18127. in the text section in order to keep them as close as possible to
  18128. their references, explicit '.literal_position' directives are not
  18129. required. This may be necessary for very large functions, where
  18130. single literal pool at the beginning of the function may not be
  18131. reachable by 'L32R' instructions at the end. These options only
  18132. affect literals referenced via PC-relative 'L32R' instructions;
  18133. literals for absolute mode 'L32R' instructions are handled
  18134. separately. When used together with '--text-section-literals',
  18135. '--auto-litpools' takes precedence. *Note literal: Literal
  18136. Directive.
  18137. '--absolute-literals | --no-absolute-literals'
  18138. Indicate to the assembler whether 'L32R' instructions use absolute
  18139. or PC-relative addressing. If the processor includes the absolute
  18140. addressing option, the default is to use absolute 'L32R'
  18141. relocations. Otherwise, only the PC-relative 'L32R' relocations
  18142. can be used.
  18143. '--target-align | --no-target-align'
  18144. Enable or disable automatic alignment to reduce branch penalties at
  18145. some expense in code size. *Note Automatic Instruction Alignment:
  18146. Xtensa Automatic Alignment. This optimization is enabled by
  18147. default. Note that the assembler will always align instructions
  18148. like 'LOOP' that have fixed alignment requirements.
  18149. '--longcalls | --no-longcalls'
  18150. Enable or disable transformation of call instructions to allow
  18151. calls across a greater range of addresses. *Note Function Call
  18152. Relaxation: Xtensa Call Relaxation. This option should be used
  18153. when call targets can potentially be out of range. It may degrade
  18154. both code size and performance, but the linker can generally
  18155. optimize away the unnecessary overhead when a call ends up within
  18156. range. The default is '--no-longcalls'.
  18157. '--transform | --no-transform'
  18158. Enable or disable all assembler transformations of Xtensa
  18159. instructions, including both relaxation and optimization. The
  18160. default is '--transform'; '--no-transform' should only be used in
  18161. the rare cases when the instructions must be exactly as specified
  18162. in the assembly source. Using '--no-transform' causes out of range
  18163. instruction operands to be errors.
  18164. '--rename-section OLDNAME=NEWNAME'
  18165. Rename the OLDNAME section to NEWNAME. This option can be used
  18166. multiple times to rename multiple sections.
  18167. '--trampolines | --no-trampolines'
  18168. Enable or disable transformation of jump instructions to allow
  18169. jumps across a greater range of addresses. *Note Jump Trampolines:
  18170. Xtensa Jump Relaxation. This option should be used when jump
  18171. targets can potentially be out of range. In the absence of such
  18172. jumps this option does not affect code size or performance. The
  18173. default is '--trampolines'.
  18174. 
  18175. File: as.info, Node: Xtensa Syntax, Next: Xtensa Optimizations, Prev: Xtensa Options, Up: Xtensa-Dependent
  18176. 9.55.2 Assembler Syntax
  18177. -----------------------
  18178. Block comments are delimited by '/*' and '*/'. End of line comments may
  18179. be introduced with either '#' or '//'.
  18180. If a '#' appears as the first character of a line then the whole line
  18181. is treated as a comment, but in this case the line could also be a
  18182. logical line number directive (*note Comments::) or a preprocessor
  18183. control command (*note Preprocessing::).
  18184. Instructions consist of a leading opcode or macro name followed by
  18185. whitespace and an optional comma-separated list of operands:
  18186. OPCODE [OPERAND, ...]
  18187. Instructions must be separated by a newline or semicolon (';').
  18188. FLIX instructions, which bundle multiple opcodes together in a single
  18189. instruction, are specified by enclosing the bundled opcodes inside
  18190. braces:
  18191. {
  18192. [FORMAT]
  18193. OPCODE0 [OPERANDS]
  18194. OPCODE1 [OPERANDS]
  18195. OPCODE2 [OPERANDS]
  18196. ...
  18197. }
  18198. The opcodes in a FLIX instruction are listed in the same order as the
  18199. corresponding instruction slots in the TIE format declaration.
  18200. Directives and labels are not allowed inside the braces of a FLIX
  18201. instruction. A particular TIE format name can optionally be specified
  18202. immediately after the opening brace, but this is usually unnecessary.
  18203. The assembler will automatically search for a format that can encode the
  18204. specified opcodes, so the format name need only be specified in rare
  18205. cases where there is more than one applicable format and where it
  18206. matters which of those formats is used. A FLIX instruction can also be
  18207. specified on a single line by separating the opcodes with semicolons:
  18208. { [FORMAT;] OPCODE0 [OPERANDS]; OPCODE1 [OPERANDS]; OPCODE2 [OPERANDS]; ... }
  18209. If an opcode can only be encoded in a FLIX instruction but is not
  18210. specified as part of a FLIX bundle, the assembler will choose the
  18211. smallest format where the opcode can be encoded and will fill unused
  18212. instruction slots with no-ops.
  18213. * Menu:
  18214. * Xtensa Opcodes:: Opcode Naming Conventions.
  18215. * Xtensa Registers:: Register Naming.
  18216. 
  18217. File: as.info, Node: Xtensa Opcodes, Next: Xtensa Registers, Up: Xtensa Syntax
  18218. 9.55.2.1 Opcode Names
  18219. .....................
  18220. See the 'Xtensa Instruction Set Architecture (ISA) Reference Manual' for
  18221. a complete list of opcodes and descriptions of their semantics.
  18222. If an opcode name is prefixed with an underscore character ('_'),
  18223. 'as' will not transform that instruction in any way. The underscore
  18224. prefix disables both optimization (*note Xtensa Optimizations: Xtensa
  18225. Optimizations.) and relaxation (*note Xtensa Relaxation: Xtensa
  18226. Relaxation.) for that particular instruction. Only use the underscore
  18227. prefix when it is essential to select the exact opcode produced by the
  18228. assembler. Using this feature unnecessarily makes the code less
  18229. efficient by disabling assembler optimization and less flexible by
  18230. disabling relaxation.
  18231. Note that this special handling of underscore prefixes only applies
  18232. to Xtensa opcodes, not to either built-in macros or user-defined macros.
  18233. When an underscore prefix is used with a macro (e.g., '_MOV'), it refers
  18234. to a different macro. The assembler generally provides built-in macros
  18235. both with and without the underscore prefix, where the underscore
  18236. versions behave as if the underscore carries through to the instructions
  18237. in the macros. For example, '_MOV' may expand to '_MOV.N'.
  18238. The underscore prefix only applies to individual instructions, not to
  18239. series of instructions. For example, if a series of instructions have
  18240. underscore prefixes, the assembler will not transform the individual
  18241. instructions, but it may insert other instructions between them (e.g.,
  18242. to align a 'LOOP' instruction). To prevent the assembler from modifying
  18243. a series of instructions as a whole, use the 'no-transform' directive.
  18244. *Note transform: Transform Directive.
  18245. 
  18246. File: as.info, Node: Xtensa Registers, Prev: Xtensa Opcodes, Up: Xtensa Syntax
  18247. 9.55.2.2 Register Names
  18248. .......................
  18249. The assembly syntax for a register file entry is the "short" name for a
  18250. TIE register file followed by the index into that register file. For
  18251. example, the general-purpose 'AR' register file has a short name of 'a',
  18252. so these registers are named 'a0'...'a15'. As a special feature, 'sp'
  18253. is also supported as a synonym for 'a1'. Additional registers may be
  18254. added by processor configuration options and by designer-defined TIE
  18255. extensions. An initial '$' character is optional in all register names.
  18256. 
  18257. File: as.info, Node: Xtensa Optimizations, Next: Xtensa Relaxation, Prev: Xtensa Syntax, Up: Xtensa-Dependent
  18258. 9.55.3 Xtensa Optimizations
  18259. ---------------------------
  18260. The optimizations currently supported by 'as' are generation of density
  18261. instructions where appropriate and automatic branch target alignment.
  18262. * Menu:
  18263. * Density Instructions:: Using Density Instructions.
  18264. * Xtensa Automatic Alignment:: Automatic Instruction Alignment.
  18265. 
  18266. File: as.info, Node: Density Instructions, Next: Xtensa Automatic Alignment, Up: Xtensa Optimizations
  18267. 9.55.3.1 Using Density Instructions
  18268. ...................................
  18269. The Xtensa instruction set has a code density option that provides
  18270. 16-bit versions of some of the most commonly used opcodes. Use of these
  18271. opcodes can significantly reduce code size. When possible, the
  18272. assembler automatically translates instructions from the core Xtensa
  18273. instruction set into equivalent instructions from the Xtensa code
  18274. density option. This translation can be disabled by using underscore
  18275. prefixes (*note Opcode Names: Xtensa Opcodes.), by using the
  18276. '--no-transform' command-line option (*note Command Line Options: Xtensa
  18277. Options.), or by using the 'no-transform' directive (*note transform:
  18278. Transform Directive.).
  18279. It is a good idea _not_ to use the density instructions directly.
  18280. The assembler will automatically select dense instructions where
  18281. possible. If you later need to use an Xtensa processor without the code
  18282. density option, the same assembly code will then work without
  18283. modification.
  18284. 
  18285. File: as.info, Node: Xtensa Automatic Alignment, Prev: Density Instructions, Up: Xtensa Optimizations
  18286. 9.55.3.2 Automatic Instruction Alignment
  18287. ........................................
  18288. The Xtensa assembler will automatically align certain instructions, both
  18289. to optimize performance and to satisfy architectural requirements.
  18290. As an optimization to improve performance, the assembler attempts to
  18291. align branch targets so they do not cross instruction fetch boundaries.
  18292. (Xtensa processors can be configured with either 32-bit or 64-bit
  18293. instruction fetch widths.) An instruction immediately following a call
  18294. is treated as a branch target in this context, because it will be the
  18295. target of a return from the call. This alignment has the potential to
  18296. reduce branch penalties at some expense in code size. This optimization
  18297. is enabled by default. You can disable it with the '--no-target-align'
  18298. command-line option (*note Command-line Options: Xtensa Options.).
  18299. The target alignment optimization is done without adding instructions
  18300. that could increase the execution time of the program. If there are
  18301. density instructions in the code preceding a target, the assembler can
  18302. change the target alignment by widening some of those instructions to
  18303. the equivalent 24-bit instructions. Extra bytes of padding can be
  18304. inserted immediately following unconditional jump and return
  18305. instructions. This approach is usually successful in aligning many, but
  18306. not all, branch targets.
  18307. The 'LOOP' family of instructions must be aligned such that the first
  18308. instruction in the loop body does not cross an instruction fetch
  18309. boundary (e.g., with a 32-bit fetch width, a 'LOOP' instruction must be
  18310. on either a 1 or 2 mod 4 byte boundary). The assembler knows about this
  18311. restriction and inserts the minimal number of 2 or 3 byte no-op
  18312. instructions to satisfy it. When no-op instructions are added, any
  18313. label immediately preceding the original loop will be moved in order to
  18314. refer to the loop instruction, not the newly generated no-op
  18315. instruction. To preserve binary compatibility across processors with
  18316. different fetch widths, the assembler conservatively assumes a 32-bit
  18317. fetch width when aligning 'LOOP' instructions (except if the first
  18318. instruction in the loop is a 64-bit instruction).
  18319. Previous versions of the assembler automatically aligned 'ENTRY'
  18320. instructions to 4-byte boundaries, but that alignment is now the
  18321. programmer's responsibility.
  18322. 
  18323. File: as.info, Node: Xtensa Relaxation, Next: Xtensa Directives, Prev: Xtensa Optimizations, Up: Xtensa-Dependent
  18324. 9.55.4 Xtensa Relaxation
  18325. ------------------------
  18326. When an instruction operand is outside the range allowed for that
  18327. particular instruction field, 'as' can transform the code to use a
  18328. functionally-equivalent instruction or sequence of instructions. This
  18329. process is known as "relaxation". This is typically done for branch
  18330. instructions because the distance of the branch targets is not known
  18331. until assembly-time. The Xtensa assembler offers branch relaxation and
  18332. also extends this concept to function calls, 'MOVI' instructions and
  18333. other instructions with immediate fields.
  18334. * Menu:
  18335. * Xtensa Branch Relaxation:: Relaxation of Branches.
  18336. * Xtensa Call Relaxation:: Relaxation of Function Calls.
  18337. * Xtensa Jump Relaxation:: Relaxation of Jumps.
  18338. * Xtensa Immediate Relaxation:: Relaxation of other Immediate Fields.
  18339. 
  18340. File: as.info, Node: Xtensa Branch Relaxation, Next: Xtensa Call Relaxation, Up: Xtensa Relaxation
  18341. 9.55.4.1 Conditional Branch Relaxation
  18342. ......................................
  18343. When the target of a branch is too far away from the branch itself,
  18344. i.e., when the offset from the branch to the target is too large to fit
  18345. in the immediate field of the branch instruction, it may be necessary to
  18346. replace the branch with a branch around a jump. For example,
  18347. beqz a2, L
  18348. may result in:
  18349. bnez.n a2, M
  18350. j L
  18351. M:
  18352. (The 'BNEZ.N' instruction would be used in this example only if the
  18353. density option is available. Otherwise, 'BNEZ' would be used.)
  18354. This relaxation works well because the unconditional jump instruction
  18355. has a much larger offset range than the various conditional branches.
  18356. However, an error will occur if a branch target is beyond the range of a
  18357. jump instruction. 'as' cannot relax unconditional jumps. Similarly, an
  18358. error will occur if the original input contains an unconditional jump to
  18359. a target that is out of range.
  18360. Branch relaxation is enabled by default. It can be disabled by using
  18361. underscore prefixes (*note Opcode Names: Xtensa Opcodes.), the
  18362. '--no-transform' command-line option (*note Command-line Options: Xtensa
  18363. Options.), or the 'no-transform' directive (*note transform: Transform
  18364. Directive.).
  18365. 
  18366. File: as.info, Node: Xtensa Call Relaxation, Next: Xtensa Jump Relaxation, Prev: Xtensa Branch Relaxation, Up: Xtensa Relaxation
  18367. 9.55.4.2 Function Call Relaxation
  18368. .................................
  18369. Function calls may require relaxation because the Xtensa immediate call
  18370. instructions ('CALL0', 'CALL4', 'CALL8' and 'CALL12') provide a
  18371. PC-relative offset of only 512 Kbytes in either direction. For larger
  18372. programs, it may be necessary to use indirect calls ('CALLX0', 'CALLX4',
  18373. 'CALLX8' and 'CALLX12') where the target address is specified in a
  18374. register. The Xtensa assembler can automatically relax immediate call
  18375. instructions into indirect call instructions. This relaxation is done
  18376. by loading the address of the called function into the callee's return
  18377. address register and then using a 'CALLX' instruction. So, for example:
  18378. call8 func
  18379. might be relaxed to:
  18380. .literal .L1, func
  18381. l32r a8, .L1
  18382. callx8 a8
  18383. Because the addresses of targets of function calls are not generally
  18384. known until link-time, the assembler must assume the worst and relax all
  18385. the calls to functions in other source files, not just those that really
  18386. will be out of range. The linker can recognize calls that were
  18387. unnecessarily relaxed, and it will remove the overhead introduced by the
  18388. assembler for those cases where direct calls are sufficient.
  18389. Call relaxation is disabled by default because it can have a negative
  18390. effect on both code size and performance, although the linker can
  18391. usually eliminate the unnecessary overhead. If a program is too large
  18392. and some of the calls are out of range, function call relaxation can be
  18393. enabled using the '--longcalls' command-line option or the 'longcalls'
  18394. directive (*note longcalls: Longcalls Directive.).
  18395. 
  18396. File: as.info, Node: Xtensa Jump Relaxation, Next: Xtensa Immediate Relaxation, Prev: Xtensa Call Relaxation, Up: Xtensa Relaxation
  18397. 9.55.4.3 Jump Relaxation
  18398. ........................
  18399. Jump instruction may require relaxation because the Xtensa jump
  18400. instruction ('J') provide a PC-relative offset of only 128 Kbytes in
  18401. either direction. One option is to use jump long ('J.L') instruction,
  18402. which depending on jump distance may be assembled as jump ('J') or
  18403. indirect jump ('JX'). However it needs a free register. When there's
  18404. no spare register it is possible to plant intermediate jump sites
  18405. (trampolines) between the jump instruction and its target. These sites
  18406. may be located in areas unreachable by normal code execution flow, in
  18407. that case they only contain intermediate jumps, or they may be inserted
  18408. in the middle of code block, in which case there's an additional jump
  18409. from the beginning of the trampoline to the instruction past its end.
  18410. So, for example:
  18411. j 1f
  18412. ...
  18413. retw
  18414. ...
  18415. mov a10, a2
  18416. call8 func
  18417. ...
  18418. 1:
  18419. ...
  18420. might be relaxed to:
  18421. j .L0_TR_1
  18422. ...
  18423. retw
  18424. .L0_TR_1:
  18425. j 1f
  18426. ...
  18427. mov a10, a2
  18428. call8 func
  18429. ...
  18430. 1:
  18431. ...
  18432. or to:
  18433. j .L0_TR_1
  18434. ...
  18435. retw
  18436. ...
  18437. mov a10, a2
  18438. j .L0_TR_0
  18439. .L0_TR_1:
  18440. j 1f
  18441. .L0_TR_0:
  18442. call8 func
  18443. ...
  18444. 1:
  18445. ...
  18446. The Xtensa assembler uses trampolines with jump around only when it
  18447. cannot find suitable unreachable trampoline. There may be multiple
  18448. trampolines between the jump instruction and its target.
  18449. This relaxation does not apply to jumps to undefined symbols,
  18450. assuming they will reach their targets once resolved.
  18451. Jump relaxation is enabled by default because it does not affect code
  18452. size or performance while the code itself is small. This relaxation may
  18453. be disabled completely with '--no-trampolines' or '--no-transform'
  18454. command-line options (*note Command-line Options: Xtensa Options.).
  18455. 
  18456. File: as.info, Node: Xtensa Immediate Relaxation, Prev: Xtensa Jump Relaxation, Up: Xtensa Relaxation
  18457. 9.55.4.4 Other Immediate Field Relaxation
  18458. .........................................
  18459. The assembler normally performs the following other relaxations. They
  18460. can be disabled by using underscore prefixes (*note Opcode Names: Xtensa
  18461. Opcodes.), the '--no-transform' command-line option (*note Command-line
  18462. Options: Xtensa Options.), or the 'no-transform' directive (*note
  18463. transform: Transform Directive.).
  18464. The 'MOVI' machine instruction can only materialize values in the
  18465. range from -2048 to 2047. Values outside this range are best
  18466. materialized with 'L32R' instructions. Thus:
  18467. movi a0, 100000
  18468. is assembled into the following machine code:
  18469. .literal .L1, 100000
  18470. l32r a0, .L1
  18471. The 'L8UI' machine instruction can only be used with immediate
  18472. offsets in the range from 0 to 255. The 'L16SI' and 'L16UI' machine
  18473. instructions can only be used with offsets from 0 to 510. The 'L32I'
  18474. machine instruction can only be used with offsets from 0 to 1020. A
  18475. load offset outside these ranges can be materialized with an 'L32R'
  18476. instruction if the destination register of the load is different than
  18477. the source address register. For example:
  18478. l32i a1, a0, 2040
  18479. is translated to:
  18480. .literal .L1, 2040
  18481. l32r a1, .L1
  18482. add a1, a0, a1
  18483. l32i a1, a1, 0
  18484. If the load destination and source address register are the same, an
  18485. out-of-range offset causes an error.
  18486. The Xtensa 'ADDI' instruction only allows immediate operands in the
  18487. range from -128 to 127. There are a number of alternate instruction
  18488. sequences for the 'ADDI' operation. First, if the immediate is 0, the
  18489. 'ADDI' will be turned into a 'MOV.N' instruction (or the equivalent 'OR'
  18490. instruction if the code density option is not available). If the 'ADDI'
  18491. immediate is outside of the range -128 to 127, but inside the range
  18492. -32896 to 32639, an 'ADDMI' instruction or 'ADDMI'/'ADDI' sequence will
  18493. be used. Finally, if the immediate is outside of this range and a free
  18494. register is available, an 'L32R'/'ADD' sequence will be used with a
  18495. literal allocated from the literal pool.
  18496. For example:
  18497. addi a5, a6, 0
  18498. addi a5, a6, 512
  18499. addi a5, a6, 513
  18500. addi a5, a6, 50000
  18501. is assembled into the following:
  18502. .literal .L1, 50000
  18503. mov.n a5, a6
  18504. addmi a5, a6, 0x200
  18505. addmi a5, a6, 0x200
  18506. addi a5, a5, 1
  18507. l32r a5, .L1
  18508. add a5, a6, a5
  18509. 
  18510. File: as.info, Node: Xtensa Directives, Prev: Xtensa Relaxation, Up: Xtensa-Dependent
  18511. 9.55.5 Directives
  18512. -----------------
  18513. The Xtensa assembler supports a region-based directive syntax:
  18514. .begin DIRECTIVE [OPTIONS]
  18515. ...
  18516. .end DIRECTIVE
  18517. All the Xtensa-specific directives that apply to a region of code use
  18518. this syntax.
  18519. The directive applies to code between the '.begin' and the '.end'.
  18520. The state of the option after the '.end' reverts to what it was before
  18521. the '.begin'. A nested '.begin'/'.end' region can further change the
  18522. state of the directive without having to be aware of its outer state.
  18523. For example, consider:
  18524. .begin no-transform
  18525. L: add a0, a1, a2
  18526. .begin transform
  18527. M: add a0, a1, a2
  18528. .end transform
  18529. N: add a0, a1, a2
  18530. .end no-transform
  18531. The 'ADD' opcodes at 'L' and 'N' in the outer 'no-transform' region
  18532. both result in 'ADD' machine instructions, but the assembler selects an
  18533. 'ADD.N' instruction for the 'ADD' at 'M' in the inner 'transform'
  18534. region.
  18535. The advantage of this style is that it works well inside macros which
  18536. can preserve the context of their callers.
  18537. The following directives are available:
  18538. * Menu:
  18539. * Schedule Directive:: Enable instruction scheduling.
  18540. * Longcalls Directive:: Use Indirect Calls for Greater Range.
  18541. * Transform Directive:: Disable All Assembler Transformations.
  18542. * Literal Directive:: Intermix Literals with Instructions.
  18543. * Literal Position Directive:: Specify Inline Literal Pool Locations.
  18544. * Literal Prefix Directive:: Specify Literal Section Name Prefix.
  18545. * Absolute Literals Directive:: Control PC-Relative vs. Absolute Literals.
  18546. 
  18547. File: as.info, Node: Schedule Directive, Next: Longcalls Directive, Up: Xtensa Directives
  18548. 9.55.5.1 schedule
  18549. .................
  18550. The 'schedule' directive is recognized only for compatibility with
  18551. Tensilica's assembler.
  18552. .begin [no-]schedule
  18553. .end [no-]schedule
  18554. This directive is ignored and has no effect on 'as'.
  18555. 
  18556. File: as.info, Node: Longcalls Directive, Next: Transform Directive, Prev: Schedule Directive, Up: Xtensa Directives
  18557. 9.55.5.2 longcalls
  18558. ..................
  18559. The 'longcalls' directive enables or disables function call relaxation.
  18560. *Note Function Call Relaxation: Xtensa Call Relaxation.
  18561. .begin [no-]longcalls
  18562. .end [no-]longcalls
  18563. Call relaxation is disabled by default unless the '--longcalls'
  18564. command-line option is specified. The 'longcalls' directive overrides
  18565. the default determined by the command-line options.
  18566. 
  18567. File: as.info, Node: Transform Directive, Next: Literal Directive, Prev: Longcalls Directive, Up: Xtensa Directives
  18568. 9.55.5.3 transform
  18569. ..................
  18570. This directive enables or disables all assembler transformation,
  18571. including relaxation (*note Xtensa Relaxation: Xtensa Relaxation.) and
  18572. optimization (*note Xtensa Optimizations: Xtensa Optimizations.).
  18573. .begin [no-]transform
  18574. .end [no-]transform
  18575. Transformations are enabled by default unless the '--no-transform'
  18576. option is used. The 'transform' directive overrides the default
  18577. determined by the command-line options. An underscore opcode prefix,
  18578. disabling transformation of that opcode, always takes precedence over
  18579. both directives and command-line flags.
  18580. 
  18581. File: as.info, Node: Literal Directive, Next: Literal Position Directive, Prev: Transform Directive, Up: Xtensa Directives
  18582. 9.55.5.4 literal
  18583. ................
  18584. The '.literal' directive is used to define literal pool data, i.e.,
  18585. read-only 32-bit data accessed via 'L32R' instructions.
  18586. .literal LABEL, VALUE[, VALUE...]
  18587. This directive is similar to the standard '.word' directive, except
  18588. that the actual location of the literal data is determined by the
  18589. assembler and linker, not by the position of the '.literal' directive.
  18590. Using this directive gives the assembler freedom to locate the literal
  18591. data in the most appropriate place and possibly to combine identical
  18592. literals. For example, the code:
  18593. entry sp, 40
  18594. .literal .L1, sym
  18595. l32r a4, .L1
  18596. can be used to load a pointer to the symbol 'sym' into register 'a4'.
  18597. The value of 'sym' will not be placed between the 'ENTRY' and 'L32R'
  18598. instructions; instead, the assembler puts the data in a literal pool.
  18599. Literal pools are placed by default in separate literal sections;
  18600. however, when using the '--text-section-literals' option (*note
  18601. Command-line Options: Xtensa Options.), the literal pools for
  18602. PC-relative mode 'L32R' instructions are placed in the current
  18603. section.(1) These text section literal pools are created automatically
  18604. before 'ENTRY' instructions and manually after '.literal_position'
  18605. directives (*note literal_position: Literal Position Directive.). If
  18606. there are no preceding 'ENTRY' instructions, explicit
  18607. '.literal_position' directives must be used to place the text section
  18608. literal pools; otherwise, 'as' will report an error.
  18609. When literals are placed in separate sections, the literal section
  18610. names are derived from the names of the sections where the literals are
  18611. defined. The base literal section names are '.literal' for PC-relative
  18612. mode 'L32R' instructions and '.lit4' for absolute mode 'L32R'
  18613. instructions (*note absolute-literals: Absolute Literals Directive.).
  18614. These base names are used for literals defined in the default '.text'
  18615. section. For literals defined in other sections or within the scope of
  18616. a 'literal_prefix' directive (*note literal_prefix: Literal Prefix
  18617. Directive.), the following rules determine the literal section name:
  18618. 1. If the current section is a member of a section group, the literal
  18619. section name includes the group name as a suffix to the base
  18620. '.literal' or '.lit4' name, with a period to separate the base name
  18621. and group name. The literal section is also made a member of the
  18622. group.
  18623. 2. If the current section name (or 'literal_prefix' value) begins with
  18624. "'.gnu.linkonce.KIND.'", the literal section name is formed by
  18625. replacing "'.KIND'" with the base '.literal' or '.lit4' name. For
  18626. example, for literals defined in a section named
  18627. '.gnu.linkonce.t.func', the literal section will be
  18628. '.gnu.linkonce.literal.func' or '.gnu.linkonce.lit4.func'.
  18629. 3. If the current section name (or 'literal_prefix' value) ends with
  18630. '.text', the literal section name is formed by replacing that
  18631. suffix with the base '.literal' or '.lit4' name. For example, for
  18632. literals defined in a section named '.iram0.text', the literal
  18633. section will be '.iram0.literal' or '.iram0.lit4'.
  18634. 4. If none of the preceding conditions apply, the literal section name
  18635. is formed by adding the base '.literal' or '.lit4' name as a suffix
  18636. to the current section name (or 'literal_prefix' value).
  18637. ---------- Footnotes ----------
  18638. (1) Literals for the '.init' and '.fini' sections are always placed
  18639. in separate sections, even when '--text-section-literals' is enabled.
  18640. 
  18641. File: as.info, Node: Literal Position Directive, Next: Literal Prefix Directive, Prev: Literal Directive, Up: Xtensa Directives
  18642. 9.55.5.5 literal_position
  18643. .........................
  18644. When using '--text-section-literals' to place literals inline in the
  18645. section being assembled, the '.literal_position' directive can be used
  18646. to mark a potential location for a literal pool.
  18647. .literal_position
  18648. The '.literal_position' directive is ignored when the
  18649. '--text-section-literals' option is not used or when 'L32R' instructions
  18650. use the absolute addressing mode.
  18651. The assembler will automatically place text section literal pools
  18652. before 'ENTRY' instructions, so the '.literal_position' directive is
  18653. only needed to specify some other location for a literal pool. You may
  18654. need to add an explicit jump instruction to skip over an inline literal
  18655. pool.
  18656. For example, an interrupt vector does not begin with an 'ENTRY'
  18657. instruction so the assembler will be unable to automatically find a good
  18658. place to put a literal pool. Moreover, the code for the interrupt
  18659. vector must be at a specific starting address, so the literal pool
  18660. cannot come before the start of the code. The literal pool for the
  18661. vector must be explicitly positioned in the middle of the vector (before
  18662. any uses of the literals, due to the negative offsets used by
  18663. PC-relative 'L32R' instructions). The '.literal_position' directive can
  18664. be used to do this. In the following code, the literal for 'M' will
  18665. automatically be aligned correctly and is placed after the unconditional
  18666. jump.
  18667. .global M
  18668. code_start:
  18669. j continue
  18670. .literal_position
  18671. .align 4
  18672. continue:
  18673. movi a4, M
  18674. 
  18675. File: as.info, Node: Literal Prefix Directive, Next: Absolute Literals Directive, Prev: Literal Position Directive, Up: Xtensa Directives
  18676. 9.55.5.6 literal_prefix
  18677. .......................
  18678. The 'literal_prefix' directive allows you to override the default
  18679. literal section names, which are derived from the names of the sections
  18680. where the literals are defined.
  18681. .begin literal_prefix [NAME]
  18682. .end literal_prefix
  18683. For literals defined within the delimited region, the literal section
  18684. names are derived from the NAME argument instead of the name of the
  18685. current section. The rules used to derive the literal section names do
  18686. not change. *Note literal: Literal Directive. If the NAME argument is
  18687. omitted, the literal sections revert to the defaults. This directive
  18688. has no effect when using the '--text-section-literals' option (*note
  18689. Command-line Options: Xtensa Options.).
  18690. 
  18691. File: as.info, Node: Absolute Literals Directive, Prev: Literal Prefix Directive, Up: Xtensa Directives
  18692. 9.55.5.7 absolute-literals
  18693. ..........................
  18694. The 'absolute-literals' and 'no-absolute-literals' directives control
  18695. the absolute vs. PC-relative mode for 'L32R' instructions. These are
  18696. relevant only for Xtensa configurations that include the absolute
  18697. addressing option for 'L32R' instructions.
  18698. .begin [no-]absolute-literals
  18699. .end [no-]absolute-literals
  18700. These directives do not change the 'L32R' mode--they only cause the
  18701. assembler to emit the appropriate kind of relocation for 'L32R'
  18702. instructions and to place the literal values in the appropriate section.
  18703. To change the 'L32R' mode, the program must write the 'LITBASE' special
  18704. register. It is the programmer's responsibility to keep track of the
  18705. mode and indicate to the assembler which mode is used in each region of
  18706. code.
  18707. If the Xtensa configuration includes the absolute 'L32R' addressing
  18708. option, the default is to assume absolute 'L32R' addressing unless the
  18709. '--no-absolute-literals' command-line option is specified. Otherwise,
  18710. the default is to assume PC-relative 'L32R' addressing. The
  18711. 'absolute-literals' directive can then be used to override the default
  18712. determined by the command-line options.
  18713. 
  18714. File: as.info, Node: Z80-Dependent, Next: Z8000-Dependent, Prev: Xtensa-Dependent, Up: Machine Dependencies
  18715. 9.56 Z80 Dependent Features
  18716. ===========================
  18717. * Menu:
  18718. * Z80 Options:: Options
  18719. * Z80 Syntax:: Syntax
  18720. * Z80 Floating Point:: Floating Point
  18721. * Z80 Directives:: Z80 Machine Directives
  18722. * Z80 Opcodes:: Opcodes
  18723. 
  18724. File: as.info, Node: Z80 Options, Next: Z80 Syntax, Up: Z80-Dependent
  18725. 9.56.1 Options
  18726. --------------
  18727. The Zilog Z80 and Ascii R800 version of 'as' have a few machine
  18728. dependent options.
  18729. '-z80'
  18730. Produce code for the Z80 processor. There are additional options
  18731. to request warnings and error messages for undocumented
  18732. instructions.
  18733. '-ignore-undocumented-instructions'
  18734. '-Wnud'
  18735. Silently assemble undocumented Z80-instructions that have been
  18736. adopted as documented R800-instructions.
  18737. '-ignore-unportable-instructions'
  18738. '-Wnup'
  18739. Silently assemble all undocumented Z80-instructions.
  18740. '-warn-undocumented-instructions'
  18741. '-Wud'
  18742. Issue warnings for undocumented Z80-instructions that work on R800,
  18743. do not assemble other undocumented instructions without warning.
  18744. '-warn-unportable-instructions'
  18745. '-Wup'
  18746. Issue warnings for other undocumented Z80-instructions, do not
  18747. treat any undocumented instructions as errors.
  18748. '-forbid-undocumented-instructions'
  18749. '-Fud'
  18750. Treat all undocumented z80-instructions as errors.
  18751. '-forbid-unportable-instructions'
  18752. '-Fup'
  18753. Treat undocumented z80-instructions that do not work on R800 as
  18754. errors.
  18755. '-r800'
  18756. Produce code for the R800 processor. The assembler does not
  18757. support undocumented instructions for the R800. In line with
  18758. common practice, 'as' uses Z80 instruction names for the R800
  18759. processor, as far as they exist.
  18760. 
  18761. File: as.info, Node: Z80 Syntax, Next: Z80 Floating Point, Prev: Z80 Options, Up: Z80-Dependent
  18762. 9.56.2 Syntax
  18763. -------------
  18764. The assembler syntax closely follows the 'Z80 family CPU User Manual' by
  18765. Zilog. In expressions a single '=' may be used as "is equal to"
  18766. comparison operator.
  18767. Suffices can be used to indicate the radix of integer constants; 'H'
  18768. or 'h' for hexadecimal, 'D' or 'd' for decimal, 'Q', 'O', 'q' or 'o' for
  18769. octal, and 'B' for binary.
  18770. The suffix 'b' denotes a backreference to local label.
  18771. * Menu:
  18772. * Z80-Chars:: Special Characters
  18773. * Z80-Regs:: Register Names
  18774. * Z80-Case:: Case Sensitivity
  18775. 
  18776. File: as.info, Node: Z80-Chars, Next: Z80-Regs, Up: Z80 Syntax
  18777. 9.56.2.1 Special Characters
  18778. ...........................
  18779. The semicolon ';' is the line comment character;
  18780. If a '#' appears as the first character of a line then the whole line
  18781. is treated as a comment, but in this case the line could also be a
  18782. logical line number directive (*note Comments::) or a preprocessor
  18783. control command (*note Preprocessing::).
  18784. The Z80 assembler does not support a line separator character.
  18785. The dollar sign '$' can be used as a prefix for hexadecimal numbers
  18786. and as a symbol denoting the current location counter.
  18787. A backslash '\' is an ordinary character for the Z80 assembler.
  18788. The single quote ''' must be followed by a closing quote. If there
  18789. is one character in between, it is a character constant, otherwise it is
  18790. a string constant.
  18791. 
  18792. File: as.info, Node: Z80-Regs, Next: Z80-Case, Prev: Z80-Chars, Up: Z80 Syntax
  18793. 9.56.2.2 Register Names
  18794. .......................
  18795. The registers are referred to with the letters assigned to them by
  18796. Zilog. In addition 'as' recognizes 'ixl' and 'ixh' as the least and
  18797. most significant octet in 'ix', and similarly 'iyl' and 'iyh' as parts
  18798. of 'iy'.
  18799. 
  18800. File: as.info, Node: Z80-Case, Prev: Z80-Regs, Up: Z80 Syntax
  18801. 9.56.2.3 Case Sensitivity
  18802. .........................
  18803. Upper and lower case are equivalent in register names, opcodes,
  18804. condition codes and assembler directives. The case of letters is
  18805. significant in labels and symbol names. The case is also important to
  18806. distinguish the suffix 'b' for a backward reference to a local label
  18807. from the suffix 'B' for a number in binary notation.
  18808. 
  18809. File: as.info, Node: Z80 Floating Point, Next: Z80 Directives, Prev: Z80 Syntax, Up: Z80-Dependent
  18810. 9.56.3 Floating Point
  18811. ---------------------
  18812. Floating-point numbers are not supported.
  18813. 
  18814. File: as.info, Node: Z80 Directives, Next: Z80 Opcodes, Prev: Z80 Floating Point, Up: Z80-Dependent
  18815. 9.56.4 Z80 Assembler Directives
  18816. -------------------------------
  18817. 'as' for the Z80 supports some additional directives for compatibility
  18818. with other assemblers.
  18819. These are the additional directives in 'as' for the Z80:
  18820. 'db EXPRESSION|STRING[,EXPRESSION|STRING...]'
  18821. 'defb EXPRESSION|STRING[,EXPRESSION|STRING...]'
  18822. For each STRING the characters are copied to the object file, for
  18823. each other EXPRESSION the value is stored in one byte. A warning
  18824. is issued in case of an overflow.
  18825. 'dw EXPRESSION[,EXPRESSION...]'
  18826. 'defw EXPRESSION[,EXPRESSION...]'
  18827. For each EXPRESSION the value is stored in two bytes, ignoring
  18828. overflow.
  18829. 'd24 EXPRESSION[,EXPRESSION...]'
  18830. 'def24 EXPRESSION[,EXPRESSION...]'
  18831. For each EXPRESSION the value is stored in three bytes, ignoring
  18832. overflow.
  18833. 'd32 EXPRESSION[,EXPRESSION...]'
  18834. 'def32 EXPRESSION[,EXPRESSION...]'
  18835. For each EXPRESSION the value is stored in four bytes, ignoring
  18836. overflow.
  18837. 'ds COUNT[, VALUE]'
  18838. 'defs COUNT[, VALUE]'
  18839. Fill COUNT bytes in the object file with VALUE, if VALUE is omitted
  18840. it defaults to zero.
  18841. 'SYMBOL equ EXPRESSION'
  18842. 'SYMBOL defl EXPRESSION'
  18843. These directives set the value of SYMBOL to EXPRESSION. If 'equ'
  18844. is used, it is an error if SYMBOL is already defined. Symbols
  18845. defined with 'equ' are not protected from redefinition.
  18846. 'set'
  18847. This is a normal instruction on Z80, and not an assembler
  18848. directive.
  18849. 'psect NAME'
  18850. A synonym for *Note Section::, no second argument should be given.
  18851. 
  18852. File: as.info, Node: Z80 Opcodes, Prev: Z80 Directives, Up: Z80-Dependent
  18853. 9.56.5 Opcodes
  18854. --------------
  18855. In line with common practice, Z80 mnemonics are used for both the Z80
  18856. and the R800.
  18857. In many instructions it is possible to use one of the half index
  18858. registers ('ixl','ixh','iyl','iyh') in stead of an 8-bit general purpose
  18859. register. This yields instructions that are documented on the R800 and
  18860. undocumented on the Z80. Similarly 'in f,(c)' is documented on the R800
  18861. and undocumented on the Z80.
  18862. The assembler also supports the following undocumented
  18863. Z80-instructions, that have not been adopted in the R800 instruction
  18864. set:
  18865. 'out (c),0'
  18866. Sends zero to the port pointed to by register c.
  18867. 'sli M'
  18868. Equivalent to 'M = (M<<1)+1', the operand M can be any operand that
  18869. is valid for 'sla'. One can use 'sll' as a synonym for 'sli'.
  18870. 'OP (ix+D), R'
  18871. This is equivalent to
  18872. ld R, (ix+D)
  18873. OPC R
  18874. ld (ix+D), R
  18875. The operation 'OPC' may be any of 'res B,', 'set B,', 'rl', 'rlc',
  18876. 'rr', 'rrc', 'sla', 'sli', 'sra' and 'srl', and the register 'R'
  18877. may be any of 'a', 'b', 'c', 'd', 'e', 'h' and 'l'.
  18878. 'OPC (iy+D), R'
  18879. As above, but with 'iy' instead of 'ix'.
  18880. The web site at <http://www.z80.info> is a good starting place to
  18881. find more information on programming the Z80.
  18882. 
  18883. File: as.info, Node: Z8000-Dependent, Prev: Z80-Dependent, Up: Machine Dependencies
  18884. 9.57 Z8000 Dependent Features
  18885. =============================
  18886. The Z8000 as supports both members of the Z8000 family: the unsegmented
  18887. Z8002, with 16 bit addresses, and the segmented Z8001 with 24 bit
  18888. addresses.
  18889. When the assembler is in unsegmented mode (specified with the
  18890. 'unsegm' directive), an address takes up one word (16 bit) sized
  18891. register. When the assembler is in segmented mode (specified with the
  18892. 'segm' directive), a 24-bit address takes up a long (32 bit) register.
  18893. *Note Assembler Directives for the Z8000: Z8000 Directives, for a list
  18894. of other Z8000 specific assembler directives.
  18895. * Menu:
  18896. * Z8000 Options:: Command-line options for the Z8000
  18897. * Z8000 Syntax:: Assembler syntax for the Z8000
  18898. * Z8000 Directives:: Special directives for the Z8000
  18899. * Z8000 Opcodes:: Opcodes
  18900. 
  18901. File: as.info, Node: Z8000 Options, Next: Z8000 Syntax, Up: Z8000-Dependent
  18902. 9.57.1 Options
  18903. --------------
  18904. '-z8001'
  18905. Generate segmented code by default.
  18906. '-z8002'
  18907. Generate unsegmented code by default.
  18908. 
  18909. File: as.info, Node: Z8000 Syntax, Next: Z8000 Directives, Prev: Z8000 Options, Up: Z8000-Dependent
  18910. 9.57.2 Syntax
  18911. -------------
  18912. * Menu:
  18913. * Z8000-Chars:: Special Characters
  18914. * Z8000-Regs:: Register Names
  18915. * Z8000-Addressing:: Addressing Modes
  18916. 
  18917. File: as.info, Node: Z8000-Chars, Next: Z8000-Regs, Up: Z8000 Syntax
  18918. 9.57.2.1 Special Characters
  18919. ...........................
  18920. '!' is the line comment character.
  18921. If a '#' appears as the first character of a line then the whole line
  18922. is treated as a comment, but in this case the line could also be a
  18923. logical line number directive (*note Comments::) or a preprocessor
  18924. control command (*note Preprocessing::).
  18925. You can use ';' instead of a newline to separate statements.
  18926. 
  18927. File: as.info, Node: Z8000-Regs, Next: Z8000-Addressing, Prev: Z8000-Chars, Up: Z8000 Syntax
  18928. 9.57.2.2 Register Names
  18929. .......................
  18930. The Z8000 has sixteen 16 bit registers, numbered 0 to 15. You can refer
  18931. to different sized groups of registers by register number, with the
  18932. prefix 'r' for 16 bit registers, 'rr' for 32 bit registers and 'rq' for
  18933. 64 bit registers. You can also refer to the contents of the first eight
  18934. (of the sixteen 16 bit registers) by bytes. They are named 'rlN' and
  18935. 'rhN'.
  18936. _byte registers_
  18937. rl0 rh0 rl1 rh1 rl2 rh2 rl3 rh3
  18938. rl4 rh4 rl5 rh5 rl6 rh6 rl7 rh7
  18939. _word registers_
  18940. r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15
  18941. _long word registers_
  18942. rr0 rr2 rr4 rr6 rr8 rr10 rr12 rr14
  18943. _quad word registers_
  18944. rq0 rq4 rq8 rq12
  18945. 
  18946. File: as.info, Node: Z8000-Addressing, Prev: Z8000-Regs, Up: Z8000 Syntax
  18947. 9.57.2.3 Addressing Modes
  18948. .........................
  18949. as understands the following addressing modes for the Z8000:
  18950. 'rlN'
  18951. 'rhN'
  18952. 'rN'
  18953. 'rrN'
  18954. 'rqN'
  18955. Register direct: 8bit, 16bit, 32bit, and 64bit registers.
  18956. '@rN'
  18957. '@rrN'
  18958. Indirect register: @rrN in segmented mode, @rN in unsegmented mode.
  18959. 'ADDR'
  18960. Direct: the 16 bit or 24 bit address (depending on whether the
  18961. assembler is in segmented or unsegmented mode) of the operand is in
  18962. the instruction.
  18963. 'address(rN)'
  18964. Indexed: the 16 or 24 bit address is added to the 16 bit register
  18965. to produce the final address in memory of the operand.
  18966. 'rN(#IMM)'
  18967. 'rrN(#IMM)'
  18968. Base Address: the 16 or 24 bit register is added to the 16 bit sign
  18969. extended immediate displacement to produce the final address in
  18970. memory of the operand.
  18971. 'rN(rM)'
  18972. 'rrN(rM)'
  18973. Base Index: the 16 or 24 bit register rN or rrN is added to the
  18974. sign extended 16 bit index register rM to produce the final address
  18975. in memory of the operand.
  18976. '#XX'
  18977. Immediate data XX.
  18978. 
  18979. File: as.info, Node: Z8000 Directives, Next: Z8000 Opcodes, Prev: Z8000 Syntax, Up: Z8000-Dependent
  18980. 9.57.3 Assembler Directives for the Z8000
  18981. -----------------------------------------
  18982. The Z8000 port of as includes additional assembler directives, for
  18983. compatibility with other Z8000 assemblers. These do not begin with '.'
  18984. (unlike the ordinary as directives).
  18985. 'segm'
  18986. '.z8001'
  18987. Generate code for the segmented Z8001.
  18988. 'unsegm'
  18989. '.z8002'
  18990. Generate code for the unsegmented Z8002.
  18991. 'name'
  18992. Synonym for '.file'
  18993. 'global'
  18994. Synonym for '.global'
  18995. 'wval'
  18996. Synonym for '.word'
  18997. 'lval'
  18998. Synonym for '.long'
  18999. 'bval'
  19000. Synonym for '.byte'
  19001. 'sval'
  19002. Assemble a string. 'sval' expects one string literal, delimited by
  19003. single quotes. It assembles each byte of the string into
  19004. consecutive addresses. You can use the escape sequence '%XX'
  19005. (where XX represents a two-digit hexadecimal number) to represent
  19006. the character whose ASCII value is XX. Use this feature to
  19007. describe single quote and other characters that may not appear in
  19008. string literals as themselves. For example, the C statement
  19009. 'char *a = "he said \"it's 50% off\"";' is represented in Z8000
  19010. assembly language (shown with the assembler output in hex at the
  19011. left) as
  19012. 68652073 sval 'he said %22it%27s 50%25 off%22%00'
  19013. 61696420
  19014. 22697427
  19015. 73203530
  19016. 25206F66
  19017. 662200
  19018. 'rsect'
  19019. synonym for '.section'
  19020. 'block'
  19021. synonym for '.space'
  19022. 'even'
  19023. special case of '.align'; aligns output to even byte boundary.
  19024. 
  19025. File: as.info, Node: Z8000 Opcodes, Prev: Z8000 Directives, Up: Z8000-Dependent
  19026. 9.57.4 Opcodes
  19027. --------------
  19028. For detailed information on the Z8000 machine instruction set, see
  19029. 'Z8000 Technical Manual'.
  19030. The following table summarizes the opcodes and their arguments:
  19031. rs 16 bit source register
  19032. rd 16 bit destination register
  19033. rbs 8 bit source register
  19034. rbd 8 bit destination register
  19035. rrs 32 bit source register
  19036. rrd 32 bit destination register
  19037. rqs 64 bit source register
  19038. rqd 64 bit destination register
  19039. addr 16/24 bit address
  19040. imm immediate data
  19041. adc rd,rs clrb addr cpsir @rd,@rs,rr,cc
  19042. adcb rbd,rbs clrb addr(rd) cpsirb @rd,@rs,rr,cc
  19043. add rd,@rs clrb rbd dab rbd
  19044. add rd,addr com @rd dbjnz rbd,disp7
  19045. add rd,addr(rs) com addr dec @rd,imm4m1
  19046. add rd,imm16 com addr(rd) dec addr(rd),imm4m1
  19047. add rd,rs com rd dec addr,imm4m1
  19048. addb rbd,@rs comb @rd dec rd,imm4m1
  19049. addb rbd,addr comb addr decb @rd,imm4m1
  19050. addb rbd,addr(rs) comb addr(rd) decb addr(rd),imm4m1
  19051. addb rbd,imm8 comb rbd decb addr,imm4m1
  19052. addb rbd,rbs comflg flags decb rbd,imm4m1
  19053. addl rrd,@rs cp @rd,imm16 di i2
  19054. addl rrd,addr cp addr(rd),imm16 div rrd,@rs
  19055. addl rrd,addr(rs) cp addr,imm16 div rrd,addr
  19056. addl rrd,imm32 cp rd,@rs div rrd,addr(rs)
  19057. addl rrd,rrs cp rd,addr div rrd,imm16
  19058. and rd,@rs cp rd,addr(rs) div rrd,rs
  19059. and rd,addr cp rd,imm16 divl rqd,@rs
  19060. and rd,addr(rs) cp rd,rs divl rqd,addr
  19061. and rd,imm16 cpb @rd,imm8 divl rqd,addr(rs)
  19062. and rd,rs cpb addr(rd),imm8 divl rqd,imm32
  19063. andb rbd,@rs cpb addr,imm8 divl rqd,rrs
  19064. andb rbd,addr cpb rbd,@rs djnz rd,disp7
  19065. andb rbd,addr(rs) cpb rbd,addr ei i2
  19066. andb rbd,imm8 cpb rbd,addr(rs) ex rd,@rs
  19067. andb rbd,rbs cpb rbd,imm8 ex rd,addr
  19068. bit @rd,imm4 cpb rbd,rbs ex rd,addr(rs)
  19069. bit addr(rd),imm4 cpd rd,@rs,rr,cc ex rd,rs
  19070. bit addr,imm4 cpdb rbd,@rs,rr,cc exb rbd,@rs
  19071. bit rd,imm4 cpdr rd,@rs,rr,cc exb rbd,addr
  19072. bit rd,rs cpdrb rbd,@rs,rr,cc exb rbd,addr(rs)
  19073. bitb @rd,imm4 cpi rd,@rs,rr,cc exb rbd,rbs
  19074. bitb addr(rd),imm4 cpib rbd,@rs,rr,cc ext0e imm8
  19075. bitb addr,imm4 cpir rd,@rs,rr,cc ext0f imm8
  19076. bitb rbd,imm4 cpirb rbd,@rs,rr,cc ext8e imm8
  19077. bitb rbd,rs cpl rrd,@rs ext8f imm8
  19078. bpt cpl rrd,addr exts rrd
  19079. call @rd cpl rrd,addr(rs) extsb rd
  19080. call addr cpl rrd,imm32 extsl rqd
  19081. call addr(rd) cpl rrd,rrs halt
  19082. calr disp12 cpsd @rd,@rs,rr,cc in rd,@rs
  19083. clr @rd cpsdb @rd,@rs,rr,cc in rd,imm16
  19084. clr addr cpsdr @rd,@rs,rr,cc inb rbd,@rs
  19085. clr addr(rd) cpsdrb @rd,@rs,rr,cc inb rbd,imm16
  19086. clr rd cpsi @rd,@rs,rr,cc inc @rd,imm4m1
  19087. clrb @rd cpsib @rd,@rs,rr,cc inc addr(rd),imm4m1
  19088. inc addr,imm4m1 ldb rbd,rs(rx) mult rrd,addr(rs)
  19089. inc rd,imm4m1 ldb rd(imm16),rbs mult rrd,imm16
  19090. incb @rd,imm4m1 ldb rd(rx),rbs mult rrd,rs
  19091. incb addr(rd),imm4m1 ldctl ctrl,rs multl rqd,@rs
  19092. incb addr,imm4m1 ldctl rd,ctrl multl rqd,addr
  19093. incb rbd,imm4m1 ldd @rs,@rd,rr multl rqd,addr(rs)
  19094. ind @rd,@rs,ra lddb @rs,@rd,rr multl rqd,imm32
  19095. indb @rd,@rs,rba lddr @rs,@rd,rr multl rqd,rrs
  19096. inib @rd,@rs,ra lddrb @rs,@rd,rr neg @rd
  19097. inibr @rd,@rs,ra ldi @rd,@rs,rr neg addr
  19098. iret ldib @rd,@rs,rr neg addr(rd)
  19099. jp cc,@rd ldir @rd,@rs,rr neg rd
  19100. jp cc,addr ldirb @rd,@rs,rr negb @rd
  19101. jp cc,addr(rd) ldk rd,imm4 negb addr
  19102. jr cc,disp8 ldl @rd,rrs negb addr(rd)
  19103. ld @rd,imm16 ldl addr(rd),rrs negb rbd
  19104. ld @rd,rs ldl addr,rrs nop
  19105. ld addr(rd),imm16 ldl rd(imm16),rrs or rd,@rs
  19106. ld addr(rd),rs ldl rd(rx),rrs or rd,addr
  19107. ld addr,imm16 ldl rrd,@rs or rd,addr(rs)
  19108. ld addr,rs ldl rrd,addr or rd,imm16
  19109. ld rd(imm16),rs ldl rrd,addr(rs) or rd,rs
  19110. ld rd(rx),rs ldl rrd,imm32 orb rbd,@rs
  19111. ld rd,@rs ldl rrd,rrs orb rbd,addr
  19112. ld rd,addr ldl rrd,rs(imm16) orb rbd,addr(rs)
  19113. ld rd,addr(rs) ldl rrd,rs(rx) orb rbd,imm8
  19114. ld rd,imm16 ldm @rd,rs,n orb rbd,rbs
  19115. ld rd,rs ldm addr(rd),rs,n out @rd,rs
  19116. ld rd,rs(imm16) ldm addr,rs,n out imm16,rs
  19117. ld rd,rs(rx) ldm rd,@rs,n outb @rd,rbs
  19118. lda rd,addr ldm rd,addr(rs),n outb imm16,rbs
  19119. lda rd,addr(rs) ldm rd,addr,n outd @rd,@rs,ra
  19120. lda rd,rs(imm16) ldps @rs outdb @rd,@rs,rba
  19121. lda rd,rs(rx) ldps addr outib @rd,@rs,ra
  19122. ldar rd,disp16 ldps addr(rs) outibr @rd,@rs,ra
  19123. ldb @rd,imm8 ldr disp16,rs pop @rd,@rs
  19124. ldb @rd,rbs ldr rd,disp16 pop addr(rd),@rs
  19125. ldb addr(rd),imm8 ldrb disp16,rbs pop addr,@rs
  19126. ldb addr(rd),rbs ldrb rbd,disp16 pop rd,@rs
  19127. ldb addr,imm8 ldrl disp16,rrs popl @rd,@rs
  19128. ldb addr,rbs ldrl rrd,disp16 popl addr(rd),@rs
  19129. ldb rbd,@rs mbit popl addr,@rs
  19130. ldb rbd,addr mreq rd popl rrd,@rs
  19131. ldb rbd,addr(rs) mres push @rd,@rs
  19132. ldb rbd,imm8 mset push @rd,addr
  19133. ldb rbd,rbs mult rrd,@rs push @rd,addr(rs)
  19134. ldb rbd,rs(imm16) mult rrd,addr push @rd,imm16
  19135. push @rd,rs set addr,imm4 subl rrd,imm32
  19136. pushl @rd,@rs set rd,imm4 subl rrd,rrs
  19137. pushl @rd,addr set rd,rs tcc cc,rd
  19138. pushl @rd,addr(rs) setb @rd,imm4 tccb cc,rbd
  19139. pushl @rd,rrs setb addr(rd),imm4 test @rd
  19140. res @rd,imm4 setb addr,imm4 test addr
  19141. res addr(rd),imm4 setb rbd,imm4 test addr(rd)
  19142. res addr,imm4 setb rbd,rs test rd
  19143. res rd,imm4 setflg imm4 testb @rd
  19144. res rd,rs sinb rbd,imm16 testb addr
  19145. resb @rd,imm4 sinb rd,imm16 testb addr(rd)
  19146. resb addr(rd),imm4 sind @rd,@rs,ra testb rbd
  19147. resb addr,imm4 sindb @rd,@rs,rba testl @rd
  19148. resb rbd,imm4 sinib @rd,@rs,ra testl addr
  19149. resb rbd,rs sinibr @rd,@rs,ra testl addr(rd)
  19150. resflg imm4 sla rd,imm8 testl rrd
  19151. ret cc slab rbd,imm8 trdb @rd,@rs,rba
  19152. rl rd,imm1or2 slal rrd,imm8 trdrb @rd,@rs,rba
  19153. rlb rbd,imm1or2 sll rd,imm8 trib @rd,@rs,rbr
  19154. rlc rd,imm1or2 sllb rbd,imm8 trirb @rd,@rs,rbr
  19155. rlcb rbd,imm1or2 slll rrd,imm8 trtdrb @ra,@rb,rbr
  19156. rldb rbb,rba sout imm16,rs trtib @ra,@rb,rr
  19157. rr rd,imm1or2 soutb imm16,rbs trtirb @ra,@rb,rbr
  19158. rrb rbd,imm1or2 soutd @rd,@rs,ra trtrb @ra,@rb,rbr
  19159. rrc rd,imm1or2 soutdb @rd,@rs,rba tset @rd
  19160. rrcb rbd,imm1or2 soutib @rd,@rs,ra tset addr
  19161. rrdb rbb,rba soutibr @rd,@rs,ra tset addr(rd)
  19162. rsvd36 sra rd,imm8 tset rd
  19163. rsvd38 srab rbd,imm8 tsetb @rd
  19164. rsvd78 sral rrd,imm8 tsetb addr
  19165. rsvd7e srl rd,imm8 tsetb addr(rd)
  19166. rsvd9d srlb rbd,imm8 tsetb rbd
  19167. rsvd9f srll rrd,imm8 xor rd,@rs
  19168. rsvdb9 sub rd,@rs xor rd,addr
  19169. rsvdbf sub rd,addr xor rd,addr(rs)
  19170. sbc rd,rs sub rd,addr(rs) xor rd,imm16
  19171. sbcb rbd,rbs sub rd,imm16 xor rd,rs
  19172. sc imm8 sub rd,rs xorb rbd,@rs
  19173. sda rd,rs subb rbd,@rs xorb rbd,addr
  19174. sdab rbd,rs subb rbd,addr xorb rbd,addr(rs)
  19175. sdal rrd,rs subb rbd,addr(rs) xorb rbd,imm8
  19176. sdl rd,rs subb rbd,imm8 xorb rbd,rbs
  19177. sdlb rbd,rs subb rbd,rbs xorb rbd,rbs
  19178. sdll rrd,rs subl rrd,@rs
  19179. set @rd,imm4 subl rrd,addr
  19180. set addr(rd),imm4 subl rrd,addr(rs)
  19181. 
  19182. File: as.info, Node: Reporting Bugs, Next: Acknowledgements, Prev: Machine Dependencies, Up: Top
  19183. 10 Reporting Bugs
  19184. *****************
  19185. Your bug reports play an essential role in making 'as' reliable.
  19186. Reporting a bug may help you by bringing a solution to your problem,
  19187. or it may not. But in any case the principal function of a bug report
  19188. is to help the entire community by making the next version of 'as' work
  19189. better. Bug reports are your contribution to the maintenance of 'as'.
  19190. In order for a bug report to serve its purpose, you must include the
  19191. information that enables us to fix the bug.
  19192. * Menu:
  19193. * Bug Criteria:: Have you found a bug?
  19194. * Bug Reporting:: How to report bugs
  19195. 
  19196. File: as.info, Node: Bug Criteria, Next: Bug Reporting, Up: Reporting Bugs
  19197. 10.1 Have You Found a Bug?
  19198. ==========================
  19199. If you are not sure whether you have found a bug, here are some
  19200. guidelines:
  19201. * If the assembler gets a fatal signal, for any input whatever, that
  19202. is a 'as' bug. Reliable assemblers never crash.
  19203. * If 'as' produces an error message for valid input, that is a bug.
  19204. * If 'as' does not produce an error message for invalid input, that
  19205. is a bug. However, you should note that your idea of "invalid
  19206. input" might be our idea of "an extension" or "support for
  19207. traditional practice".
  19208. * If you are an experienced user of assemblers, your suggestions for
  19209. improvement of 'as' are welcome in any case.
  19210. 
  19211. File: as.info, Node: Bug Reporting, Prev: Bug Criteria, Up: Reporting Bugs
  19212. 10.2 How to Report Bugs
  19213. =======================
  19214. A number of companies and individuals offer support for GNU products.
  19215. If you obtained 'as' from a support organization, we recommend you
  19216. contact that organization first.
  19217. You can find contact information for many support companies and
  19218. individuals in the file 'etc/SERVICE' in the GNU Emacs distribution.
  19219. In any event, we also recommend that you send bug reports for 'as' to
  19220. <http://www.sourceware.org/bugzilla/>.
  19221. The fundamental principle of reporting bugs usefully is this: *report
  19222. all the facts*. If you are not sure whether to state a fact or leave it
  19223. out, state it!
  19224. Often people omit facts because they think they know what causes the
  19225. problem and assume that some details do not matter. Thus, you might
  19226. assume that the name of a symbol you use in an example does not matter.
  19227. Well, probably it does not, but one cannot be sure. Perhaps the bug is
  19228. a stray memory reference which happens to fetch from the location where
  19229. that name is stored in memory; perhaps, if the name were different, the
  19230. contents of that location would fool the assembler into doing the right
  19231. thing despite the bug. Play it safe and give a specific, complete
  19232. example. That is the easiest thing for you to do, and the most helpful.
  19233. Keep in mind that the purpose of a bug report is to enable us to fix
  19234. the bug if it is new to us. Therefore, always write your bug reports on
  19235. the assumption that the bug has not been reported previously.
  19236. Sometimes people give a few sketchy facts and ask, "Does this ring a
  19237. bell?" This cannot help us fix a bug, so it is basically useless. We
  19238. respond by asking for enough details to enable us to investigate. You
  19239. might as well expedite matters by sending them to begin with.
  19240. To enable us to fix the bug, you should include all these things:
  19241. * The version of 'as'. 'as' announces it if you start it with the
  19242. '--version' argument.
  19243. Without this, we will not know whether there is any point in
  19244. looking for the bug in the current version of 'as'.
  19245. * Any patches you may have applied to the 'as' source.
  19246. * The type of machine you are using, and the operating system name
  19247. and version number.
  19248. * What compiler (and its version) was used to compile 'as'--e.g.
  19249. "'gcc-2.7'".
  19250. * The command arguments you gave the assembler to assemble your
  19251. example and observe the bug. To guarantee you will not omit
  19252. something important, list them all. A copy of the Makefile (or the
  19253. output from make) is sufficient.
  19254. If we were to try to guess the arguments, we would probably guess
  19255. wrong and then we might not encounter the bug.
  19256. * A complete input file that will reproduce the bug. If the bug is
  19257. observed when the assembler is invoked via a compiler, send the
  19258. assembler source, not the high level language source. Most
  19259. compilers will produce the assembler source when run with the '-S'
  19260. option. If you are using 'gcc', use the options '-v --save-temps';
  19261. this will save the assembler source in a file with an extension of
  19262. '.s', and also show you exactly how 'as' is being run.
  19263. * A description of what behavior you observe that you believe is
  19264. incorrect. For example, "It gets a fatal signal."
  19265. Of course, if the bug is that 'as' gets a fatal signal, then we
  19266. will certainly notice it. But if the bug is incorrect output, we
  19267. might not notice unless it is glaringly wrong. You might as well
  19268. not give us a chance to make a mistake.
  19269. Even if the problem you experience is a fatal signal, you should
  19270. still say so explicitly. Suppose something strange is going on,
  19271. such as, your copy of 'as' is out of sync, or you have encountered
  19272. a bug in the C library on your system. (This has happened!) Your
  19273. copy might crash and ours would not. If you told us to expect a
  19274. crash, then when ours fails to crash, we would know that the bug
  19275. was not happening for us. If you had not told us to expect a
  19276. crash, then we would not be able to draw any conclusion from our
  19277. observations.
  19278. * If you wish to suggest changes to the 'as' source, send us context
  19279. diffs, as generated by 'diff' with the '-u', '-c', or '-p' option.
  19280. Always send diffs from the old file to the new file. If you even
  19281. discuss something in the 'as' source, refer to it by context, not
  19282. by line number.
  19283. The line numbers in our development sources will not match those in
  19284. your sources. Your line numbers would convey no useful information
  19285. to us.
  19286. Here are some things that are not necessary:
  19287. * A description of the envelope of the bug.
  19288. Often people who encounter a bug spend a lot of time investigating
  19289. which changes to the input file will make the bug go away and which
  19290. changes will not affect it.
  19291. This is often time consuming and not very useful, because the way
  19292. we will find the bug is by running a single example under the
  19293. debugger with breakpoints, not by pure deduction from a series of
  19294. examples. We recommend that you save your time for something else.
  19295. Of course, if you can find a simpler example to report _instead_ of
  19296. the original one, that is a convenience for us. Errors in the
  19297. output will be easier to spot, running under the debugger will take
  19298. less time, and so on.
  19299. However, simplification is not vital; if you do not want to do
  19300. this, report the bug anyway and send us the entire test case you
  19301. used.
  19302. * A patch for the bug.
  19303. A patch for the bug does help us if it is a good one. But do not
  19304. omit the necessary information, such as the test case, on the
  19305. assumption that a patch is all we need. We might see problems with
  19306. your patch and decide to fix the problem another way, or we might
  19307. not understand it at all.
  19308. Sometimes with a program as complicated as 'as' it is very hard to
  19309. construct an example that will make the program follow a certain
  19310. path through the code. If you do not send us the example, we will
  19311. not be able to construct one, so we will not be able to verify that
  19312. the bug is fixed.
  19313. And if we cannot understand what bug you are trying to fix, or why
  19314. your patch should be an improvement, we will not install it. A
  19315. test case will help us to understand.
  19316. * A guess about what the bug is or what it depends on.
  19317. Such guesses are usually wrong. Even we cannot guess right about
  19318. such things without first using the debugger to find the facts.
  19319. 
  19320. File: as.info, Node: Acknowledgements, Next: GNU Free Documentation License, Prev: Reporting Bugs, Up: Top
  19321. 11 Acknowledgements
  19322. *******************
  19323. If you have contributed to GAS and your name isn't listed here, it is
  19324. not meant as a slight. We just don't know about it. Send mail to the
  19325. maintainer, and we'll correct the situation. Currently the maintainer
  19326. is Nick Clifton (email address 'nickc@redhat.com').
  19327. Dean Elsner wrote the original GNU assembler for the VAX.(1)
  19328. Jay Fenlason maintained GAS for a while, adding support for
  19329. GDB-specific debug information and the 68k series machines, most of the
  19330. preprocessing pass, and extensive changes in 'messages.c',
  19331. 'input-file.c', 'write.c'.
  19332. K. Richard Pixley maintained GAS for a while, adding various
  19333. enhancements and many bug fixes, including merging support for several
  19334. processors, breaking GAS up to handle multiple object file format back
  19335. ends (including heavy rewrite, testing, an integration of the coff and
  19336. b.out back ends), adding configuration including heavy testing and
  19337. verification of cross assemblers and file splits and renaming, converted
  19338. GAS to strictly ANSI C including full prototypes, added support for
  19339. m680[34]0 and cpu32, did considerable work on i960 including a COFF port
  19340. (including considerable amounts of reverse engineering), a SPARC opcode
  19341. file rewrite, DECstation, rs6000, and hp300hpux host ports, updated
  19342. "know" assertions and made them work, much other reorganization,
  19343. cleanup, and lint.
  19344. Ken Raeburn wrote the high-level BFD interface code to replace most
  19345. of the code in format-specific I/O modules.
  19346. The original VMS support was contributed by David L. Kashtan. Eric
  19347. Youngdale has done much work with it since.
  19348. The Intel 80386 machine description was written by Eliot Dresselhaus.
  19349. Minh Tran-Le at IntelliCorp contributed some AIX 386 support.
  19350. The Motorola 88k machine description was contributed by Devon Bowen
  19351. of Buffalo University and Torbjorn Granlund of the Swedish Institute of
  19352. Computer Science.
  19353. Keith Knowles at the Open Software Foundation wrote the original MIPS
  19354. back end ('tc-mips.c', 'tc-mips.h'), and contributed Rose format support
  19355. (which hasn't been merged in yet). Ralph Campbell worked with the MIPS
  19356. code to support a.out format.
  19357. Support for the Zilog Z8k and Renesas H8/300 processors (tc-z8k,
  19358. tc-h8300), and IEEE 695 object file format (obj-ieee), was written by
  19359. Steve Chamberlain of Cygnus Support. Steve also modified the COFF back
  19360. end to use BFD for some low-level operations, for use with the H8/300
  19361. and AMD 29k targets.
  19362. John Gilmore built the AMD 29000 support, added '.include' support,
  19363. and simplified the configuration of which versions accept which
  19364. directives. He updated the 68k machine description so that Motorola's
  19365. opcodes always produced fixed-size instructions (e.g., 'jsr'), while
  19366. synthetic instructions remained shrinkable ('jbsr'). John fixed many
  19367. bugs, including true tested cross-compilation support, and one bug in
  19368. relaxation that took a week and required the proverbial one-bit fix.
  19369. Ian Lance Taylor of Cygnus Support merged the Motorola and MIT syntax
  19370. for the 68k, completed support for some COFF targets (68k, i386 SVR3,
  19371. and SCO Unix), added support for MIPS ECOFF and ELF targets, wrote the
  19372. initial RS/6000 and PowerPC assembler, and made a few other minor
  19373. patches.
  19374. Steve Chamberlain made GAS able to generate listings.
  19375. Hewlett-Packard contributed support for the HP9000/300.
  19376. Jeff Law wrote GAS and BFD support for the native HPPA object format
  19377. (SOM) along with a fairly extensive HPPA testsuite (for both SOM and ELF
  19378. object formats). This work was supported by both the Center for
  19379. Software Science at the University of Utah and Cygnus Support.
  19380. Support for ELF format files has been worked on by Mark Eichin of
  19381. Cygnus Support (original, incomplete implementation for SPARC), Pete
  19382. Hoogenboom and Jeff Law at the University of Utah (HPPA mainly), Michael
  19383. Meissner of the Open Software Foundation (i386 mainly), and Ken Raeburn
  19384. of Cygnus Support (sparc, and some initial 64-bit support).
  19385. Linas Vepstas added GAS support for the ESA/390 "IBM 370"
  19386. architecture.
  19387. Richard Henderson rewrote the Alpha assembler. Klaus Kaempf wrote
  19388. GAS and BFD support for openVMS/Alpha.
  19389. Timothy Wall, Michael Hayes, and Greg Smart contributed to the
  19390. various tic* flavors.
  19391. David Heine, Sterling Augustine, Bob Wilson and John Ruttenberg from
  19392. Tensilica, Inc. added support for Xtensa processors.
  19393. Several engineers at Cygnus Support have also provided many small bug
  19394. fixes and configuration enhancements.
  19395. Jon Beniston added support for the Lattice Mico32 architecture.
  19396. Many others have contributed large or small bugfixes and
  19397. enhancements. If you have contributed significant work and are not
  19398. mentioned on this list, and want to be, let us know. Some of the
  19399. history has been lost; we are not intentionally leaving anyone out.
  19400. ---------- Footnotes ----------
  19401. (1) Any more details?
  19402. 
  19403. File: as.info, Node: GNU Free Documentation License, Next: AS Index, Prev: Acknowledgements, Up: Top
  19404. Appendix A GNU Free Documentation License
  19405. *****************************************
  19406. Version 1.3, 3 November 2008
  19407. Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
  19408. <http://fsf.org/>
  19409. Everyone is permitted to copy and distribute verbatim copies
  19410. of this license document, but changing it is not allowed.
  19411. 0. PREAMBLE
  19412. The purpose of this License is to make a manual, textbook, or other
  19413. functional and useful document "free" in the sense of freedom: to
  19414. assure everyone the effective freedom to copy and redistribute it,
  19415. with or without modifying it, either commercially or
  19416. noncommercially. Secondarily, this License preserves for the
  19417. author and publisher a way to get credit for their work, while not
  19418. being considered responsible for modifications made by others.
  19419. This License is a kind of "copyleft", which means that derivative
  19420. works of the document must themselves be free in the same sense.
  19421. It complements the GNU General Public License, which is a copyleft
  19422. license designed for free software.
  19423. We have designed this License in order to use it for manuals for
  19424. free software, because free software needs free documentation: a
  19425. free program should come with manuals providing the same freedoms
  19426. that the software does. But this License is not limited to
  19427. software manuals; it can be used for any textual work, regardless
  19428. of subject matter or whether it is published as a printed book. We
  19429. recommend this License principally for works whose purpose is
  19430. instruction or reference.
  19431. 1. APPLICABILITY AND DEFINITIONS
  19432. This License applies to any manual or other work, in any medium,
  19433. that contains a notice placed by the copyright holder saying it can
  19434. be distributed under the terms of this License. Such a notice
  19435. grants a world-wide, royalty-free license, unlimited in duration,
  19436. to use that work under the conditions stated herein. The
  19437. "Document", below, refers to any such manual or work. Any member
  19438. of the public is a licensee, and is addressed as "you". You accept
  19439. the license if you copy, modify or distribute the work in a way
  19440. requiring permission under copyright law.
  19441. A "Modified Version" of the Document means any work containing the
  19442. Document or a portion of it, either copied verbatim, or with
  19443. modifications and/or translated into another language.
  19444. A "Secondary Section" is a named appendix or a front-matter section
  19445. of the Document that deals exclusively with the relationship of the
  19446. publishers or authors of the Document to the Document's overall
  19447. subject (or to related matters) and contains nothing that could
  19448. fall directly within that overall subject. (Thus, if the Document
  19449. is in part a textbook of mathematics, a Secondary Section may not
  19450. explain any mathematics.) The relationship could be a matter of
  19451. historical connection with the subject or with related matters, or
  19452. of legal, commercial, philosophical, ethical or political position
  19453. regarding them.
  19454. The "Invariant Sections" are certain Secondary Sections whose
  19455. titles are designated, as being those of Invariant Sections, in the
  19456. notice that says that the Document is released under this License.
  19457. If a section does not fit the above definition of Secondary then it
  19458. is not allowed to be designated as Invariant. The Document may
  19459. contain zero Invariant Sections. If the Document does not identify
  19460. any Invariant Sections then there are none.
  19461. The "Cover Texts" are certain short passages of text that are
  19462. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  19463. that says that the Document is released under this License. A
  19464. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  19465. be at most 25 words.
  19466. A "Transparent" copy of the Document means a machine-readable copy,
  19467. represented in a format whose specification is available to the
  19468. general public, that is suitable for revising the document
  19469. straightforwardly with generic text editors or (for images composed
  19470. of pixels) generic paint programs or (for drawings) some widely
  19471. available drawing editor, and that is suitable for input to text
  19472. formatters or for automatic translation to a variety of formats
  19473. suitable for input to text formatters. A copy made in an otherwise
  19474. Transparent file format whose markup, or absence of markup, has
  19475. been arranged to thwart or discourage subsequent modification by
  19476. readers is not Transparent. An image format is not Transparent if
  19477. used for any substantial amount of text. A copy that is not
  19478. "Transparent" is called "Opaque".
  19479. Examples of suitable formats for Transparent copies include plain
  19480. ASCII without markup, Texinfo input format, LaTeX input format,
  19481. SGML or XML using a publicly available DTD, and standard-conforming
  19482. simple HTML, PostScript or PDF designed for human modification.
  19483. Examples of transparent image formats include PNG, XCF and JPG.
  19484. Opaque formats include proprietary formats that can be read and
  19485. edited only by proprietary word processors, SGML or XML for which
  19486. the DTD and/or processing tools are not generally available, and
  19487. the machine-generated HTML, PostScript or PDF produced by some word
  19488. processors for output purposes only.
  19489. The "Title Page" means, for a printed book, the title page itself,
  19490. plus such following pages as are needed to hold, legibly, the
  19491. material this License requires to appear in the title page. For
  19492. works in formats which do not have any title page as such, "Title
  19493. Page" means the text near the most prominent appearance of the
  19494. work's title, preceding the beginning of the body of the text.
  19495. The "publisher" means any person or entity that distributes copies
  19496. of the Document to the public.
  19497. A section "Entitled XYZ" means a named subunit of the Document
  19498. whose title either is precisely XYZ or contains XYZ in parentheses
  19499. following text that translates XYZ in another language. (Here XYZ
  19500. stands for a specific section name mentioned below, such as
  19501. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  19502. To "Preserve the Title" of such a section when you modify the
  19503. Document means that it remains a section "Entitled XYZ" according
  19504. to this definition.
  19505. The Document may include Warranty Disclaimers next to the notice
  19506. which states that this License applies to the Document. These
  19507. Warranty Disclaimers are considered to be included by reference in
  19508. this License, but only as regards disclaiming warranties: any other
  19509. implication that these Warranty Disclaimers may have is void and
  19510. has no effect on the meaning of this License.
  19511. 2. VERBATIM COPYING
  19512. You may copy and distribute the Document in any medium, either
  19513. commercially or noncommercially, provided that this License, the
  19514. copyright notices, and the license notice saying this License
  19515. applies to the Document are reproduced in all copies, and that you
  19516. add no other conditions whatsoever to those of this License. You
  19517. may not use technical measures to obstruct or control the reading
  19518. or further copying of the copies you make or distribute. However,
  19519. you may accept compensation in exchange for copies. If you
  19520. distribute a large enough number of copies you must also follow the
  19521. conditions in section 3.
  19522. You may also lend copies, under the same conditions stated above,
  19523. and you may publicly display copies.
  19524. 3. COPYING IN QUANTITY
  19525. If you publish printed copies (or copies in media that commonly
  19526. have printed covers) of the Document, numbering more than 100, and
  19527. the Document's license notice requires Cover Texts, you must
  19528. enclose the copies in covers that carry, clearly and legibly, all
  19529. these Cover Texts: Front-Cover Texts on the front cover, and
  19530. Back-Cover Texts on the back cover. Both covers must also clearly
  19531. and legibly identify you as the publisher of these copies. The
  19532. front cover must present the full title with all words of the title
  19533. equally prominent and visible. You may add other material on the
  19534. covers in addition. Copying with changes limited to the covers, as
  19535. long as they preserve the title of the Document and satisfy these
  19536. conditions, can be treated as verbatim copying in other respects.
  19537. If the required texts for either cover are too voluminous to fit
  19538. legibly, you should put the first ones listed (as many as fit
  19539. reasonably) on the actual cover, and continue the rest onto
  19540. adjacent pages.
  19541. If you publish or distribute Opaque copies of the Document
  19542. numbering more than 100, you must either include a machine-readable
  19543. Transparent copy along with each Opaque copy, or state in or with
  19544. each Opaque copy a computer-network location from which the general
  19545. network-using public has access to download using public-standard
  19546. network protocols a complete Transparent copy of the Document, free
  19547. of added material. If you use the latter option, you must take
  19548. reasonably prudent steps, when you begin distribution of Opaque
  19549. copies in quantity, to ensure that this Transparent copy will
  19550. remain thus accessible at the stated location until at least one
  19551. year after the last time you distribute an Opaque copy (directly or
  19552. through your agents or retailers) of that edition to the public.
  19553. It is requested, but not required, that you contact the authors of
  19554. the Document well before redistributing any large number of copies,
  19555. to give them a chance to provide you with an updated version of the
  19556. Document.
  19557. 4. MODIFICATIONS
  19558. You may copy and distribute a Modified Version of the Document
  19559. under the conditions of sections 2 and 3 above, provided that you
  19560. release the Modified Version under precisely this License, with the
  19561. Modified Version filling the role of the Document, thus licensing
  19562. distribution and modification of the Modified Version to whoever
  19563. possesses a copy of it. In addition, you must do these things in
  19564. the Modified Version:
  19565. A. Use in the Title Page (and on the covers, if any) a title
  19566. distinct from that of the Document, and from those of previous
  19567. versions (which should, if there were any, be listed in the
  19568. History section of the Document). You may use the same title
  19569. as a previous version if the original publisher of that
  19570. version gives permission.
  19571. B. List on the Title Page, as authors, one or more persons or
  19572. entities responsible for authorship of the modifications in
  19573. the Modified Version, together with at least five of the
  19574. principal authors of the Document (all of its principal
  19575. authors, if it has fewer than five), unless they release you
  19576. from this requirement.
  19577. C. State on the Title page the name of the publisher of the
  19578. Modified Version, as the publisher.
  19579. D. Preserve all the copyright notices of the Document.
  19580. E. Add an appropriate copyright notice for your modifications
  19581. adjacent to the other copyright notices.
  19582. F. Include, immediately after the copyright notices, a license
  19583. notice giving the public permission to use the Modified
  19584. Version under the terms of this License, in the form shown in
  19585. the Addendum below.
  19586. G. Preserve in that license notice the full lists of Invariant
  19587. Sections and required Cover Texts given in the Document's
  19588. license notice.
  19589. H. Include an unaltered copy of this License.
  19590. I. Preserve the section Entitled "History", Preserve its Title,
  19591. and add to it an item stating at least the title, year, new
  19592. authors, and publisher of the Modified Version as given on the
  19593. Title Page. If there is no section Entitled "History" in the
  19594. Document, create one stating the title, year, authors, and
  19595. publisher of the Document as given on its Title Page, then add
  19596. an item describing the Modified Version as stated in the
  19597. previous sentence.
  19598. J. Preserve the network location, if any, given in the Document
  19599. for public access to a Transparent copy of the Document, and
  19600. likewise the network locations given in the Document for
  19601. previous versions it was based on. These may be placed in the
  19602. "History" section. You may omit a network location for a work
  19603. that was published at least four years before the Document
  19604. itself, or if the original publisher of the version it refers
  19605. to gives permission.
  19606. K. For any section Entitled "Acknowledgements" or "Dedications",
  19607. Preserve the Title of the section, and preserve in the section
  19608. all the substance and tone of each of the contributor
  19609. acknowledgements and/or dedications given therein.
  19610. L. Preserve all the Invariant Sections of the Document, unaltered
  19611. in their text and in their titles. Section numbers or the
  19612. equivalent are not considered part of the section titles.
  19613. M. Delete any section Entitled "Endorsements". Such a section
  19614. may not be included in the Modified Version.
  19615. N. Do not retitle any existing section to be Entitled
  19616. "Endorsements" or to conflict in title with any Invariant
  19617. Section.
  19618. O. Preserve any Warranty Disclaimers.
  19619. If the Modified Version includes new front-matter sections or
  19620. appendices that qualify as Secondary Sections and contain no
  19621. material copied from the Document, you may at your option designate
  19622. some or all of these sections as invariant. To do this, add their
  19623. titles to the list of Invariant Sections in the Modified Version's
  19624. license notice. These titles must be distinct from any other
  19625. section titles.
  19626. You may add a section Entitled "Endorsements", provided it contains
  19627. nothing but endorsements of your Modified Version by various
  19628. parties--for example, statements of peer review or that the text
  19629. has been approved by an organization as the authoritative
  19630. definition of a standard.
  19631. You may add a passage of up to five words as a Front-Cover Text,
  19632. and a passage of up to 25 words as a Back-Cover Text, to the end of
  19633. the list of Cover Texts in the Modified Version. Only one passage
  19634. of Front-Cover Text and one of Back-Cover Text may be added by (or
  19635. through arrangements made by) any one entity. If the Document
  19636. already includes a cover text for the same cover, previously added
  19637. by you or by arrangement made by the same entity you are acting on
  19638. behalf of, you may not add another; but you may replace the old
  19639. one, on explicit permission from the previous publisher that added
  19640. the old one.
  19641. The author(s) and publisher(s) of the Document do not by this
  19642. License give permission to use their names for publicity for or to
  19643. assert or imply endorsement of any Modified Version.
  19644. 5. COMBINING DOCUMENTS
  19645. You may combine the Document with other documents released under
  19646. this License, under the terms defined in section 4 above for
  19647. modified versions, provided that you include in the combination all
  19648. of the Invariant Sections of all of the original documents,
  19649. unmodified, and list them all as Invariant Sections of your
  19650. combined work in its license notice, and that you preserve all
  19651. their Warranty Disclaimers.
  19652. The combined work need only contain one copy of this License, and
  19653. multiple identical Invariant Sections may be replaced with a single
  19654. copy. If there are multiple Invariant Sections with the same name
  19655. but different contents, make the title of each such section unique
  19656. by adding at the end of it, in parentheses, the name of the
  19657. original author or publisher of that section if known, or else a
  19658. unique number. Make the same adjustment to the section titles in
  19659. the list of Invariant Sections in the license notice of the
  19660. combined work.
  19661. In the combination, you must combine any sections Entitled
  19662. "History" in the various original documents, forming one section
  19663. Entitled "History"; likewise combine any sections Entitled
  19664. "Acknowledgements", and any sections Entitled "Dedications". You
  19665. must delete all sections Entitled "Endorsements."
  19666. 6. COLLECTIONS OF DOCUMENTS
  19667. You may make a collection consisting of the Document and other
  19668. documents released under this License, and replace the individual
  19669. copies of this License in the various documents with a single copy
  19670. that is included in the collection, provided that you follow the
  19671. rules of this License for verbatim copying of each of the documents
  19672. in all other respects.
  19673. You may extract a single document from such a collection, and
  19674. distribute it individually under this License, provided you insert
  19675. a copy of this License into the extracted document, and follow this
  19676. License in all other respects regarding verbatim copying of that
  19677. document.
  19678. 7. AGGREGATION WITH INDEPENDENT WORKS
  19679. A compilation of the Document or its derivatives with other
  19680. separate and independent documents or works, in or on a volume of a
  19681. storage or distribution medium, is called an "aggregate" if the
  19682. copyright resulting from the compilation is not used to limit the
  19683. legal rights of the compilation's users beyond what the individual
  19684. works permit. When the Document is included in an aggregate, this
  19685. License does not apply to the other works in the aggregate which
  19686. are not themselves derivative works of the Document.
  19687. If the Cover Text requirement of section 3 is applicable to these
  19688. copies of the Document, then if the Document is less than one half
  19689. of the entire aggregate, the Document's Cover Texts may be placed
  19690. on covers that bracket the Document within the aggregate, or the
  19691. electronic equivalent of covers if the Document is in electronic
  19692. form. Otherwise they must appear on printed covers that bracket
  19693. the whole aggregate.
  19694. 8. TRANSLATION
  19695. Translation is considered a kind of modification, so you may
  19696. distribute translations of the Document under the terms of section
  19697. 4. Replacing Invariant Sections with translations requires special
  19698. permission from their copyright holders, but you may include
  19699. translations of some or all Invariant Sections in addition to the
  19700. original versions of these Invariant Sections. You may include a
  19701. translation of this License, and all the license notices in the
  19702. Document, and any Warranty Disclaimers, provided that you also
  19703. include the original English version of this License and the
  19704. original versions of those notices and disclaimers. In case of a
  19705. disagreement between the translation and the original version of
  19706. this License or a notice or disclaimer, the original version will
  19707. prevail.
  19708. If a section in the Document is Entitled "Acknowledgements",
  19709. "Dedications", or "History", the requirement (section 4) to
  19710. Preserve its Title (section 1) will typically require changing the
  19711. actual title.
  19712. 9. TERMINATION
  19713. You may not copy, modify, sublicense, or distribute the Document
  19714. except as expressly provided under this License. Any attempt
  19715. otherwise to copy, modify, sublicense, or distribute it is void,
  19716. and will automatically terminate your rights under this License.
  19717. However, if you cease all violation of this License, then your
  19718. license from a particular copyright holder is reinstated (a)
  19719. provisionally, unless and until the copyright holder explicitly and
  19720. finally terminates your license, and (b) permanently, if the
  19721. copyright holder fails to notify you of the violation by some
  19722. reasonable means prior to 60 days after the cessation.
  19723. Moreover, your license from a particular copyright holder is
  19724. reinstated permanently if the copyright holder notifies you of the
  19725. violation by some reasonable means, this is the first time you have
  19726. received notice of violation of this License (for any work) from
  19727. that copyright holder, and you cure the violation prior to 30 days
  19728. after your receipt of the notice.
  19729. Termination of your rights under this section does not terminate
  19730. the licenses of parties who have received copies or rights from you
  19731. under this License. If your rights have been terminated and not
  19732. permanently reinstated, receipt of a copy of some or all of the
  19733. same material does not give you any rights to use it.
  19734. 10. FUTURE REVISIONS OF THIS LICENSE
  19735. The Free Software Foundation may publish new, revised versions of
  19736. the GNU Free Documentation License from time to time. Such new
  19737. versions will be similar in spirit to the present version, but may
  19738. differ in detail to address new problems or concerns. See
  19739. <http://www.gnu.org/copyleft/>.
  19740. Each version of the License is given a distinguishing version
  19741. number. If the Document specifies that a particular numbered
  19742. version of this License "or any later version" applies to it, you
  19743. have the option of following the terms and conditions either of
  19744. that specified version or of any later version that has been
  19745. published (not as a draft) by the Free Software Foundation. If the
  19746. Document does not specify a version number of this License, you may
  19747. choose any version ever published (not as a draft) by the Free
  19748. Software Foundation. If the Document specifies that a proxy can
  19749. decide which future versions of this License can be used, that
  19750. proxy's public statement of acceptance of a version permanently
  19751. authorizes you to choose that version for the Document.
  19752. 11. RELICENSING
  19753. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  19754. World Wide Web server that publishes copyrightable works and also
  19755. provides prominent facilities for anybody to edit those works. A
  19756. public wiki that anybody can edit is an example of such a server.
  19757. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  19758. site means any set of copyrightable works thus published on the MMC
  19759. site.
  19760. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  19761. license published by Creative Commons Corporation, a not-for-profit
  19762. corporation with a principal place of business in San Francisco,
  19763. California, as well as future copyleft versions of that license
  19764. published by that same organization.
  19765. "Incorporate" means to publish or republish a Document, in whole or
  19766. in part, as part of another Document.
  19767. An MMC is "eligible for relicensing" if it is licensed under this
  19768. License, and if all works that were first published under this
  19769. License somewhere other than this MMC, and subsequently
  19770. incorporated in whole or in part into the MMC, (1) had no cover
  19771. texts or invariant sections, and (2) were thus incorporated prior
  19772. to November 1, 2008.
  19773. The operator of an MMC Site may republish an MMC contained in the
  19774. site under CC-BY-SA on the same site at any time before August 1,
  19775. 2009, provided the MMC is eligible for relicensing.
  19776. ADDENDUM: How to use this License for your documents
  19777. ====================================================
  19778. To use this License in a document you have written, include a copy of
  19779. the License in the document and put the following copyright and license
  19780. notices just after the title page:
  19781. Copyright (C) YEAR YOUR NAME.
  19782. Permission is granted to copy, distribute and/or modify this document
  19783. under the terms of the GNU Free Documentation License, Version 1.3
  19784. or any later version published by the Free Software Foundation;
  19785. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  19786. Texts. A copy of the license is included in the section entitled ``GNU
  19787. Free Documentation License''.
  19788. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  19789. Texts, replace the "with...Texts." line with this:
  19790. with the Invariant Sections being LIST THEIR TITLES, with
  19791. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  19792. being LIST.
  19793. If you have Invariant Sections without Cover Texts, or some other
  19794. combination of the three, merge those two alternatives to suit the
  19795. situation.
  19796. If your document contains nontrivial examples of program code, we
  19797. recommend releasing these examples in parallel under your choice of free
  19798. software license, such as the GNU General Public License, to permit
  19799. their use in free software.
  19800. 
  19801. File: as.info, Node: AS Index, Prev: GNU Free Documentation License, Up: Top
  19802. AS Index
  19803. ********
  19804. �[index�]
  19805. * Menu:
  19806. * \" (doublequote character): Strings. (line 43)
  19807. * \b (backspace character): Strings. (line 15)
  19808. * \DDD (octal character code): Strings. (line 30)
  19809. * \f (formfeed character): Strings. (line 18)
  19810. * \n (newline character): Strings. (line 21)
  19811. * \r (carriage return character): Strings. (line 24)
  19812. * \t (tab): Strings. (line 27)
  19813. * \XD... (hex character code): Strings. (line 36)
  19814. * \\ (\ character): Strings. (line 40)
  19815. * #: Comments. (line 33)
  19816. * #APP: Preprocessing. (line 26)
  19817. * #NO_APP: Preprocessing. (line 26)
  19818. * $ in symbol names: D10V-Chars. (line 46)
  19819. * $ in symbol names <1>: D30V-Chars. (line 70)
  19820. * $ in symbol names <2>: Meta-Chars. (line 10)
  19821. * $ in symbol names <3>: SH-Chars. (line 15)
  19822. * $a: ARM Mapping Symbols.
  19823. (line 9)
  19824. * $acos math builtin, TIC54X: TIC54X-Builtins. (line 10)
  19825. * $asin math builtin, TIC54X: TIC54X-Builtins. (line 13)
  19826. * $atan math builtin, TIC54X: TIC54X-Builtins. (line 16)
  19827. * $atan2 math builtin, TIC54X: TIC54X-Builtins. (line 19)
  19828. * $ceil math builtin, TIC54X: TIC54X-Builtins. (line 22)
  19829. * $cos math builtin, TIC54X: TIC54X-Builtins. (line 28)
  19830. * $cosh math builtin, TIC54X: TIC54X-Builtins. (line 25)
  19831. * $cvf math builtin, TIC54X: TIC54X-Builtins. (line 31)
  19832. * $cvi math builtin, TIC54X: TIC54X-Builtins. (line 34)
  19833. * $d: AArch64 Mapping Symbols.
  19834. (line 12)
  19835. * $d <1>: ARM Mapping Symbols.
  19836. (line 15)
  19837. * $exp math builtin, TIC54X: TIC54X-Builtins. (line 37)
  19838. * $fabs math builtin, TIC54X: TIC54X-Builtins. (line 40)
  19839. * $firstch subsym builtin, TIC54X: TIC54X-Macros. (line 26)
  19840. * $floor math builtin, TIC54X: TIC54X-Builtins. (line 43)
  19841. * $fmod math builtin, TIC54X: TIC54X-Builtins. (line 47)
  19842. * $int math builtin, TIC54X: TIC54X-Builtins. (line 50)
  19843. * $iscons subsym builtin, TIC54X: TIC54X-Macros. (line 43)
  19844. * $isdefed subsym builtin, TIC54X: TIC54X-Macros. (line 34)
  19845. * $ismember subsym builtin, TIC54X: TIC54X-Macros. (line 38)
  19846. * $isname subsym builtin, TIC54X: TIC54X-Macros. (line 47)
  19847. * $isreg subsym builtin, TIC54X: TIC54X-Macros. (line 50)
  19848. * $lastch subsym builtin, TIC54X: TIC54X-Macros. (line 30)
  19849. * $ldexp math builtin, TIC54X: TIC54X-Builtins. (line 53)
  19850. * $log math builtin, TIC54X: TIC54X-Builtins. (line 59)
  19851. * $log10 math builtin, TIC54X: TIC54X-Builtins. (line 56)
  19852. * $max math builtin, TIC54X: TIC54X-Builtins. (line 62)
  19853. * $min math builtin, TIC54X: TIC54X-Builtins. (line 65)
  19854. * $pow math builtin, TIC54X: TIC54X-Builtins. (line 68)
  19855. * $round math builtin, TIC54X: TIC54X-Builtins. (line 71)
  19856. * $sgn math builtin, TIC54X: TIC54X-Builtins. (line 74)
  19857. * $sin math builtin, TIC54X: TIC54X-Builtins. (line 77)
  19858. * $sinh math builtin, TIC54X: TIC54X-Builtins. (line 80)
  19859. * $sqrt math builtin, TIC54X: TIC54X-Builtins. (line 83)
  19860. * $structacc subsym builtin, TIC54X: TIC54X-Macros. (line 57)
  19861. * $structsz subsym builtin, TIC54X: TIC54X-Macros. (line 54)
  19862. * $symcmp subsym builtin, TIC54X: TIC54X-Macros. (line 23)
  19863. * $symlen subsym builtin, TIC54X: TIC54X-Macros. (line 20)
  19864. * $t: ARM Mapping Symbols.
  19865. (line 12)
  19866. * $tan math builtin, TIC54X: TIC54X-Builtins. (line 86)
  19867. * $tanh math builtin, TIC54X: TIC54X-Builtins. (line 89)
  19868. * $trunc math builtin, TIC54X: TIC54X-Builtins. (line 92)
  19869. * $x: AArch64 Mapping Symbols.
  19870. (line 9)
  19871. * %gp: RX-Modifiers. (line 6)
  19872. * %gpreg: RX-Modifiers. (line 22)
  19873. * %pidreg: RX-Modifiers. (line 25)
  19874. * -+ option, VAX/VMS: VAX-Opts. (line 71)
  19875. * --: Command Line. (line 10)
  19876. * --32 option, i386: i386-Options. (line 8)
  19877. * --32 option, x86-64: i386-Options. (line 8)
  19878. * --64 option, i386: i386-Options. (line 8)
  19879. * --64 option, x86-64: i386-Options. (line 8)
  19880. * --absolute-literals: Xtensa Options. (line 39)
  19881. * --allow-reg-prefix: SH Options. (line 9)
  19882. * --alternate: alternate. (line 6)
  19883. * --auto-litpools: Xtensa Options. (line 22)
  19884. * --base-size-default-16: M68K-Opts. (line 66)
  19885. * --base-size-default-32: M68K-Opts. (line 66)
  19886. * --big: SH Options. (line 9)
  19887. * --bitwise-or option, M680x0: M68K-Opts. (line 59)
  19888. * --compress-debug-sections= option: Overview. (line 377)
  19889. * --disp-size-default-16: M68K-Opts. (line 75)
  19890. * --disp-size-default-32: M68K-Opts. (line 75)
  19891. * --divide option, i386: i386-Options. (line 25)
  19892. * --dsp: SH Options. (line 9)
  19893. * --emulation=crisaout command-line option, CRIS: CRIS-Opts. (line 9)
  19894. * --emulation=criself command-line option, CRIS: CRIS-Opts. (line 9)
  19895. * --enforce-aligned-data: Sparc-Aligned-Data. (line 11)
  19896. * --fatal-warnings: W. (line 16)
  19897. * --fdpic: SH Options. (line 31)
  19898. * --fix-v4bx command-line option, ARM: ARM Options. (line 368)
  19899. * --fixed-special-register-names command-line option, MMIX: MMIX-Opts.
  19900. (line 8)
  19901. * --force-long-branches: M68HC11-Opts. (line 81)
  19902. * --generate-example: M68HC11-Opts. (line 98)
  19903. * --globalize-symbols command-line option, MMIX: MMIX-Opts. (line 12)
  19904. * --gnu-syntax command-line option, MMIX: MMIX-Opts. (line 16)
  19905. * --linker-allocated-gregs command-line option, MMIX: MMIX-Opts.
  19906. (line 67)
  19907. * --listing-cont-lines: listing. (line 34)
  19908. * --listing-lhs-width: listing. (line 16)
  19909. * --listing-lhs-width2: listing. (line 21)
  19910. * --listing-rhs-width: listing. (line 28)
  19911. * --little: SH Options. (line 9)
  19912. * --longcalls: Xtensa Options. (line 53)
  19913. * --march=ARCHITECTURE command-line option, CRIS: CRIS-Opts. (line 34)
  19914. * --MD: MD. (line 6)
  19915. * --mul-bug-abort command-line option, CRIS: CRIS-Opts. (line 63)
  19916. * --no-absolute-literals: Xtensa Options. (line 39)
  19917. * --no-auto-litpools: Xtensa Options. (line 22)
  19918. * --no-expand command-line option, MMIX: MMIX-Opts. (line 31)
  19919. * --no-longcalls: Xtensa Options. (line 53)
  19920. * --no-merge-gregs command-line option, MMIX: MMIX-Opts. (line 36)
  19921. * --no-mul-bug-abort command-line option, CRIS: CRIS-Opts. (line 63)
  19922. * --no-pad-sections: no-pad-sections. (line 6)
  19923. * --no-predefined-syms command-line option, MMIX: MMIX-Opts. (line 22)
  19924. * --no-pushj-stubs command-line option, MMIX: MMIX-Opts. (line 54)
  19925. * --no-stubs command-line option, MMIX: MMIX-Opts. (line 54)
  19926. * --no-target-align: Xtensa Options. (line 46)
  19927. * --no-text-section-literals: Xtensa Options. (line 7)
  19928. * --no-trampolines: Xtensa Options. (line 74)
  19929. * --no-transform: Xtensa Options. (line 62)
  19930. * --no-underscore command-line option, CRIS: CRIS-Opts. (line 15)
  19931. * --no-warn: W. (line 11)
  19932. * --pcrel: M68K-Opts. (line 87)
  19933. * --pic command-line option, CRIS: CRIS-Opts. (line 27)
  19934. * --print-insn-syntax: M68HC11-Opts. (line 87)
  19935. * --print-insn-syntax <1>: XGATE-Opts. (line 25)
  19936. * --print-opcodes: M68HC11-Opts. (line 91)
  19937. * --print-opcodes <1>: XGATE-Opts. (line 29)
  19938. * --register-prefix-optional option, M680x0: M68K-Opts. (line 46)
  19939. * --relax: SH Options. (line 9)
  19940. * --relax command-line option, MMIX: MMIX-Opts. (line 19)
  19941. * --rename-section: Xtensa Options. (line 70)
  19942. * --renesas: SH Options. (line 9)
  19943. * --sectname-subst: Section. (line 71)
  19944. * --short-branches: M68HC11-Opts. (line 67)
  19945. * --small: SH Options. (line 9)
  19946. * --statistics: statistics. (line 6)
  19947. * --strict-direct-mode: M68HC11-Opts. (line 57)
  19948. * --target-align: Xtensa Options. (line 46)
  19949. * --text-section-literals: Xtensa Options. (line 7)
  19950. * --traditional-format: traditional-format. (line 6)
  19951. * --trampolines: Xtensa Options. (line 74)
  19952. * --transform: Xtensa Options. (line 62)
  19953. * --underscore command-line option, CRIS: CRIS-Opts. (line 15)
  19954. * --warn: W. (line 19)
  19955. * --x32 option, i386: i386-Options. (line 8)
  19956. * --x32 option, x86-64: i386-Options. (line 8)
  19957. * --xgate-ramoffset: M68HC11-Opts. (line 36)
  19958. * -1 option, VAX/VMS: VAX-Opts. (line 77)
  19959. * -32addr command-line option, Alpha: Alpha Options. (line 57)
  19960. * -a: a. (line 6)
  19961. * -ac: a. (line 6)
  19962. * -ad: a. (line 6)
  19963. * -ag: a. (line 6)
  19964. * -ah: a. (line 6)
  19965. * -al: a. (line 6)
  19966. * -Aleon: Sparc-Opts. (line 25)
  19967. * -an: a. (line 6)
  19968. * -as: a. (line 6)
  19969. * -Asparc: Sparc-Opts. (line 25)
  19970. * -Asparcfmaf: Sparc-Opts. (line 25)
  19971. * -Asparcima: Sparc-Opts. (line 25)
  19972. * -Asparclet: Sparc-Opts. (line 25)
  19973. * -Asparclite: Sparc-Opts. (line 25)
  19974. * -Asparcvis: Sparc-Opts. (line 25)
  19975. * -Asparcvis2: Sparc-Opts. (line 25)
  19976. * -Asparcvis3: Sparc-Opts. (line 25)
  19977. * -Asparcvis3r: Sparc-Opts. (line 25)
  19978. * -Av6: Sparc-Opts. (line 25)
  19979. * -Av7: Sparc-Opts. (line 25)
  19980. * -Av8: Sparc-Opts. (line 25)
  19981. * -Av9: Sparc-Opts. (line 25)
  19982. * -Av9a: Sparc-Opts. (line 25)
  19983. * -Av9b: Sparc-Opts. (line 25)
  19984. * -Av9c: Sparc-Opts. (line 25)
  19985. * -Av9d: Sparc-Opts. (line 25)
  19986. * -Av9e: Sparc-Opts. (line 25)
  19987. * -Av9m: Sparc-Opts. (line 25)
  19988. * -Av9v: Sparc-Opts. (line 25)
  19989. * -big option, M32R: M32R-Opts. (line 35)
  19990. * -D: D. (line 6)
  19991. * -D, ignored on VAX: VAX-Opts. (line 11)
  19992. * -d, VAX option: VAX-Opts. (line 16)
  19993. * -eabi= command-line option, ARM: ARM Options. (line 344)
  19994. * -EB command-line option, AArch64: AArch64 Options. (line 6)
  19995. * -EB command-line option, ARC: ARC Options. (line 84)
  19996. * -EB command-line option, ARM: ARM Options. (line 349)
  19997. * -EB command-line option, BPF: BPF Options. (line 6)
  19998. * -EB option (MIPS): MIPS Options. (line 13)
  19999. * -EB option, M32R: M32R-Opts. (line 39)
  20000. * -EB option, TILE-Gx: TILE-Gx Options. (line 11)
  20001. * -EL command-line option, AArch64: AArch64 Options. (line 10)
  20002. * -EL command-line option, ARC: ARC Options. (line 88)
  20003. * -EL command-line option, ARM: ARM Options. (line 360)
  20004. * -EL command-line option, BPF: BPF Options. (line 10)
  20005. * -EL option (MIPS): MIPS Options. (line 13)
  20006. * -EL option, M32R: M32R-Opts. (line 32)
  20007. * -EL option, TILE-Gx: TILE-Gx Options. (line 11)
  20008. * -f: f. (line 6)
  20009. * -F command-line option, Alpha: Alpha Options. (line 57)
  20010. * -fno-pic option, RISC-V: RISC-V-Options. (line 12)
  20011. * -fpic option, RISC-V: RISC-V-Options. (line 8)
  20012. * -g command-line option, Alpha: Alpha Options. (line 47)
  20013. * -G command-line option, Alpha: Alpha Options. (line 53)
  20014. * -G option (MIPS): MIPS Options. (line 8)
  20015. * -h option, VAX/VMS: VAX-Opts. (line 45)
  20016. * -H option, VAX/VMS: VAX-Opts. (line 81)
  20017. * -I PATH: I. (line 6)
  20018. * -ignore-parallel-conflicts option, M32RX: M32R-Opts. (line 87)
  20019. * -Ip option, M32RX: M32R-Opts. (line 97)
  20020. * -J, ignored on VAX: VAX-Opts. (line 27)
  20021. * -K: K. (line 6)
  20022. * -k command-line option, ARM: ARM Options. (line 364)
  20023. * -KPIC option, M32R: M32R-Opts. (line 42)
  20024. * -KPIC option, MIPS: MIPS Options. (line 21)
  20025. * -L: L. (line 6)
  20026. * -l option, M680x0: M68K-Opts. (line 34)
  20027. * -little option, M32R: M32R-Opts. (line 27)
  20028. * -M: M. (line 6)
  20029. * -m11/03: PDP-11-Options. (line 140)
  20030. * -m11/04: PDP-11-Options. (line 143)
  20031. * -m11/05: PDP-11-Options. (line 146)
  20032. * -m11/10: PDP-11-Options. (line 146)
  20033. * -m11/15: PDP-11-Options. (line 149)
  20034. * -m11/20: PDP-11-Options. (line 149)
  20035. * -m11/21: PDP-11-Options. (line 152)
  20036. * -m11/23: PDP-11-Options. (line 155)
  20037. * -m11/24: PDP-11-Options. (line 155)
  20038. * -m11/34: PDP-11-Options. (line 158)
  20039. * -m11/34a: PDP-11-Options. (line 161)
  20040. * -m11/35: PDP-11-Options. (line 164)
  20041. * -m11/40: PDP-11-Options. (line 164)
  20042. * -m11/44: PDP-11-Options. (line 167)
  20043. * -m11/45: PDP-11-Options. (line 170)
  20044. * -m11/50: PDP-11-Options. (line 170)
  20045. * -m11/53: PDP-11-Options. (line 173)
  20046. * -m11/55: PDP-11-Options. (line 170)
  20047. * -m11/60: PDP-11-Options. (line 176)
  20048. * -m11/70: PDP-11-Options. (line 170)
  20049. * -m11/73: PDP-11-Options. (line 173)
  20050. * -m11/83: PDP-11-Options. (line 173)
  20051. * -m11/84: PDP-11-Options. (line 173)
  20052. * -m11/93: PDP-11-Options. (line 173)
  20053. * -m11/94: PDP-11-Options. (line 173)
  20054. * -m16c option, M16C: M32C-Opts. (line 12)
  20055. * -m31 option, s390: s390 Options. (line 8)
  20056. * -m32 option, TILE-Gx: TILE-Gx Options. (line 8)
  20057. * -m32bit-doubles: RX-Opts. (line 9)
  20058. * -m32c option, M32C: M32C-Opts. (line 9)
  20059. * -m32r option, M32R: M32R-Opts. (line 21)
  20060. * -m32rx option, M32R2: M32R-Opts. (line 17)
  20061. * -m32rx option, M32RX: M32R-Opts. (line 9)
  20062. * -m4byte-align command-line option, V850: V850 Options. (line 90)
  20063. * -m64 option, s390: s390 Options. (line 8)
  20064. * -m64 option, TILE-Gx: TILE-Gx Options. (line 8)
  20065. * -m64bit-doubles: RX-Opts. (line 15)
  20066. * -m68000 and related options: M68K-Opts. (line 99)
  20067. * -m68hc11: M68HC11-Opts. (line 9)
  20068. * -m68hc12: M68HC11-Opts. (line 14)
  20069. * -m68hcs12: M68HC11-Opts. (line 21)
  20070. * -m8byte-align command-line option, V850: V850 Options. (line 86)
  20071. * -mabi= command-line option, AArch64: AArch64 Options. (line 14)
  20072. * -mabi=ABI option, RISC-V: RISC-V-Options. (line 19)
  20073. * -madd-bnd-prefix option, i386: i386-Options. (line 153)
  20074. * -madd-bnd-prefix option, x86-64: i386-Options. (line 153)
  20075. * -mall: PDP-11-Options. (line 26)
  20076. * -mall-enabled command-line option, LM32: LM32 Options. (line 30)
  20077. * -mall-extensions: PDP-11-Options. (line 26)
  20078. * -mall-opcodes command-line option, AVR: AVR Options. (line 111)
  20079. * -mamd64 option, x86-64: i386-Options. (line 216)
  20080. * -mapcs-26 command-line option, ARM: ARM Options. (line 316)
  20081. * -mapcs-32 command-line option, ARM: ARM Options. (line 316)
  20082. * -mapcs-float command-line option, ARM: ARM Options. (line 330)
  20083. * -mapcs-reentrant command-line option, ARM: ARM Options. (line 335)
  20084. * -march= command-line option, AArch64: AArch64 Options. (line 42)
  20085. * -march= command-line option, ARM: ARM Options. (line 82)
  20086. * -march= command-line option, M680x0: M68K-Opts. (line 8)
  20087. * -march= command-line option, TIC6X: TIC6X Options. (line 6)
  20088. * -march= option, i386: i386-Options. (line 32)
  20089. * -march= option, s390: s390 Options. (line 25)
  20090. * -march= option, x86-64: i386-Options. (line 32)
  20091. * -march=ISA option, RISC-V: RISC-V-Options. (line 15)
  20092. * -matpcs command-line option, ARM: ARM Options. (line 322)
  20093. * -mavxscalar= option, i386: i386-Options. (line 98)
  20094. * -mavxscalar= option, x86-64: i386-Options. (line 98)
  20095. * -mbarrel-shift-enabled command-line option, LM32: LM32 Options.
  20096. (line 12)
  20097. * -mbig-endian: RX-Opts. (line 20)
  20098. * -mbig-obj option, x86-64: i386-Options. (line 167)
  20099. * -mbreak-enabled command-line option, LM32: LM32 Options. (line 27)
  20100. * -mccs command-line option, ARM: ARM Options. (line 377)
  20101. * -mcis: PDP-11-Options. (line 32)
  20102. * -mcode-density command-line option, ARC: ARC Options. (line 93)
  20103. * -mconstant-gp command-line option, IA-64: IA-64 Options. (line 6)
  20104. * -mCPU command-line option, Alpha: Alpha Options. (line 6)
  20105. * -mcpu option, cpu: TIC54X-Opts. (line 15)
  20106. * -mcpu=: RX-Opts. (line 75)
  20107. * -mcpu= command-line option, AArch64: AArch64 Options. (line 19)
  20108. * -mcpu= command-line option, ARM: ARM Options. (line 6)
  20109. * -mcpu= command-line option, Blackfin: Blackfin Options. (line 6)
  20110. * -mcpu= command-line option, M680x0: M68K-Opts. (line 14)
  20111. * -mcpu=CPU command-line option, ARC: ARC Options. (line 10)
  20112. * -mcsm: PDP-11-Options. (line 43)
  20113. * -mdcache-enabled command-line option, LM32: LM32 Options. (line 24)
  20114. * -mdebug command-line option, Alpha: Alpha Options. (line 25)
  20115. * -mdivide-enabled command-line option, LM32: LM32 Options. (line 9)
  20116. * -mdollar-hex option, dollar-hex: S12Z Options. (line 17)
  20117. * -mdpfp command-line option, ARC: ARC Options. (line 108)
  20118. * -mdsbt command-line option, TIC6X: TIC6X Options. (line 13)
  20119. * -me option, stderr redirect: TIC54X-Opts. (line 20)
  20120. * -meis: PDP-11-Options. (line 46)
  20121. * -mepiphany command-line option, Epiphany: Epiphany Options.
  20122. (line 9)
  20123. * -mepiphany16 command-line option, Epiphany: Epiphany Options.
  20124. (line 13)
  20125. * -merrors-to-file option, stderr redirect: TIC54X-Opts. (line 20)
  20126. * -mesa option, s390: s390 Options. (line 17)
  20127. * -mevexlig= option, i386: i386-Options. (line 119)
  20128. * -mevexlig= option, x86-64: i386-Options. (line 119)
  20129. * -mevexrcig= option, i386: i386-Options. (line 206)
  20130. * -mevexrcig= option, x86-64: i386-Options. (line 206)
  20131. * -mevexwig= option, i386: i386-Options. (line 129)
  20132. * -mevexwig= option, x86-64: i386-Options. (line 129)
  20133. * -mf option, far-mode: TIC54X-Opts. (line 8)
  20134. * -mf11: PDP-11-Options. (line 122)
  20135. * -mfar-mode option, far-mode: TIC54X-Opts. (line 8)
  20136. * -mfdpic command-line option, Blackfin: Blackfin Options. (line 19)
  20137. * -mfence-as-lock-add= option, i386: i386-Options. (line 180)
  20138. * -mfence-as-lock-add= option, x86-64: i386-Options. (line 180)
  20139. * -mfis: PDP-11-Options. (line 51)
  20140. * -mfloat-abi= command-line option, ARM: ARM Options. (line 339)
  20141. * -mfp-11: PDP-11-Options. (line 56)
  20142. * -mfp16-format= command-line option: ARM Options. (line 277)
  20143. * -mfpp: PDP-11-Options. (line 56)
  20144. * -mfpu: PDP-11-Options. (line 56)
  20145. * -mfpu= command-line option, ARM: ARM Options. (line 253)
  20146. * -mfpuda command-line option, ARC: ARC Options. (line 111)
  20147. * -mgcc-abi: RX-Opts. (line 63)
  20148. * -mgcc-abi command-line option, V850: V850 Options. (line 79)
  20149. * -mgcc-isr command-line option, AVR: AVR Options. (line 132)
  20150. * -mhard-float command-line option, V850: V850 Options. (line 101)
  20151. * -micache-enabled command-line option, LM32: LM32 Options. (line 21)
  20152. * -mimplicit-it command-line option, ARM: ARM Options. (line 300)
  20153. * -mint-register: RX-Opts. (line 57)
  20154. * -mintel64 option, x86-64: i386-Options. (line 216)
  20155. * -mip2022 option, IP2K: IP2K-Opts. (line 14)
  20156. * -mip2022ext option, IP2022: IP2K-Opts. (line 9)
  20157. * -mj11: PDP-11-Options. (line 126)
  20158. * -mka11: PDP-11-Options. (line 92)
  20159. * -mkb11: PDP-11-Options. (line 95)
  20160. * -mkd11a: PDP-11-Options. (line 98)
  20161. * -mkd11b: PDP-11-Options. (line 101)
  20162. * -mkd11d: PDP-11-Options. (line 104)
  20163. * -mkd11e: PDP-11-Options. (line 107)
  20164. * -mkd11f: PDP-11-Options. (line 110)
  20165. * -mkd11h: PDP-11-Options. (line 110)
  20166. * -mkd11k: PDP-11-Options. (line 114)
  20167. * -mkd11q: PDP-11-Options. (line 110)
  20168. * -mkd11z: PDP-11-Options. (line 118)
  20169. * -mkev11: PDP-11-Options. (line 51)
  20170. * -mkev11 <1>: PDP-11-Options. (line 51)
  20171. * -mlimited-eis: PDP-11-Options. (line 64)
  20172. * -mlink-relax command-line option, AVR: AVR Options. (line 123)
  20173. * -mlittle-endian: RX-Opts. (line 26)
  20174. * -mlong: M68HC11-Opts. (line 45)
  20175. * -mlong <1>: XGATE-Opts. (line 13)
  20176. * -mlong-double: M68HC11-Opts. (line 53)
  20177. * -mlong-double <1>: XGATE-Opts. (line 21)
  20178. * -mm9s12x: M68HC11-Opts. (line 27)
  20179. * -mm9s12xg: M68HC11-Opts. (line 32)
  20180. * -mmcu= command-line option, AVR: AVR Options. (line 6)
  20181. * -mmfpt: PDP-11-Options. (line 70)
  20182. * -mmicrocode: PDP-11-Options. (line 83)
  20183. * -mmnemonic= option, i386: i386-Options. (line 136)
  20184. * -mmnemonic= option, x86-64: i386-Options. (line 136)
  20185. * -mmultiply-enabled command-line option, LM32: LM32 Options.
  20186. (line 6)
  20187. * -mmutiproc: PDP-11-Options. (line 73)
  20188. * -mmxps: PDP-11-Options. (line 77)
  20189. * -mnaked-reg option, i386: i386-Options. (line 148)
  20190. * -mnaked-reg option, x86-64: i386-Options. (line 148)
  20191. * -mnan= command-line option, MIPS: MIPS Options. (line 439)
  20192. * -mno-allow-string-insns: RX-Opts. (line 82)
  20193. * -mno-cis: PDP-11-Options. (line 32)
  20194. * -mno-csm: PDP-11-Options. (line 43)
  20195. * -mno-dsbt command-line option, TIC6X: TIC6X Options. (line 13)
  20196. * -mno-eis: PDP-11-Options. (line 46)
  20197. * -mno-extensions: PDP-11-Options. (line 29)
  20198. * -mno-fdpic command-line option, Blackfin: Blackfin Options.
  20199. (line 22)
  20200. * -mno-fis: PDP-11-Options. (line 51)
  20201. * -mno-fp-11: PDP-11-Options. (line 56)
  20202. * -mno-fpp: PDP-11-Options. (line 56)
  20203. * -mno-fpu: PDP-11-Options. (line 56)
  20204. * -mno-kev11: PDP-11-Options. (line 51)
  20205. * -mno-limited-eis: PDP-11-Options. (line 64)
  20206. * -mno-link-relax command-line option, AVR: AVR Options. (line 127)
  20207. * -mno-mfpt: PDP-11-Options. (line 70)
  20208. * -mno-microcode: PDP-11-Options. (line 83)
  20209. * -mno-mutiproc: PDP-11-Options. (line 73)
  20210. * -mno-mxps: PDP-11-Options. (line 77)
  20211. * -mno-pic: PDP-11-Options. (line 11)
  20212. * -mno-pic command-line option, TIC6X: TIC6X Options. (line 36)
  20213. * -mno-regnames option, s390: s390 Options. (line 50)
  20214. * -mno-relax option, RISC-V: RISC-V-Options. (line 31)
  20215. * -mno-skip-bug command-line option, AVR: AVR Options. (line 114)
  20216. * -mno-spl: PDP-11-Options. (line 80)
  20217. * -mno-sym32: MIPS Options. (line 348)
  20218. * -mno-verbose-error command-line option, AArch64: AArch64 Options.
  20219. (line 62)
  20220. * -mno-wrap command-line option, AVR: AVR Options. (line 117)
  20221. * -mnopic command-line option, Blackfin: Blackfin Options. (line 22)
  20222. * -mnps400 command-line option, ARC: ARC Options. (line 102)
  20223. * -momit-lock-prefix= option, i386: i386-Options. (line 171)
  20224. * -momit-lock-prefix= option, x86-64: i386-Options. (line 171)
  20225. * -mpic: PDP-11-Options. (line 11)
  20226. * -mpic command-line option, TIC6X: TIC6X Options. (line 36)
  20227. * -mpid: RX-Opts. (line 50)
  20228. * -mpid= command-line option, TIC6X: TIC6X Options. (line 23)
  20229. * -mreg-prefix=PREFIX option, reg-prefix: S12Z Options. (line 9)
  20230. * -mregnames option, s390: s390 Options. (line 47)
  20231. * -mrelax command-line option, ARC: ARC Options. (line 97)
  20232. * -mrelax command-line option, V850: V850 Options. (line 72)
  20233. * -mrelax option, RISC-V: RISC-V-Options. (line 27)
  20234. * -mrelax-relocations= option, i386: i386-Options. (line 189)
  20235. * -mrelax-relocations= option, x86-64: i386-Options. (line 189)
  20236. * -mrh850-abi command-line option, V850: V850 Options. (line 82)
  20237. * -mrmw command-line option, AVR: AVR Options. (line 120)
  20238. * -mrx-abi: RX-Opts. (line 69)
  20239. * -mshared option, i386: i386-Options. (line 158)
  20240. * -mshared option, x86-64: i386-Options. (line 158)
  20241. * -mshort: M68HC11-Opts. (line 40)
  20242. * -mshort <1>: XGATE-Opts. (line 8)
  20243. * -mshort-double: M68HC11-Opts. (line 49)
  20244. * -mshort-double <1>: XGATE-Opts. (line 17)
  20245. * -msign-extend-enabled command-line option, LM32: LM32 Options.
  20246. (line 15)
  20247. * -msmall-data-limit: RX-Opts. (line 42)
  20248. * -msoft-float command-line option, V850: V850 Options. (line 95)
  20249. * -mspfp command-line option, ARC: ARC Options. (line 105)
  20250. * -mspl: PDP-11-Options. (line 80)
  20251. * -msse-check= option, i386: i386-Options. (line 88)
  20252. * -msse-check= option, x86-64: i386-Options. (line 88)
  20253. * -msse2avx option, i386: i386-Options. (line 84)
  20254. * -msse2avx option, x86-64: i386-Options. (line 84)
  20255. * -msym32: MIPS Options. (line 348)
  20256. * -msyntax= option, i386: i386-Options. (line 142)
  20257. * -msyntax= option, x86-64: i386-Options. (line 142)
  20258. * -mt11: PDP-11-Options. (line 130)
  20259. * -mthumb command-line option, ARM: ARM Options. (line 290)
  20260. * -mthumb-interwork command-line option, ARM: ARM Options. (line 295)
  20261. * -mtune= option, i386: i386-Options. (line 76)
  20262. * -mtune= option, x86-64: i386-Options. (line 76)
  20263. * -mtune=ARCH command-line option, Visium: Visium Options. (line 8)
  20264. * -muse-conventional-section-names: RX-Opts. (line 33)
  20265. * -muse-renesas-section-names: RX-Opts. (line 37)
  20266. * -muser-enabled command-line option, LM32: LM32 Options. (line 18)
  20267. * -mv850 command-line option, V850: V850 Options. (line 23)
  20268. * -mv850any command-line option, V850: V850 Options. (line 41)
  20269. * -mv850e command-line option, V850: V850 Options. (line 29)
  20270. * -mv850e1 command-line option, V850: V850 Options. (line 35)
  20271. * -mv850e2 command-line option, V850: V850 Options. (line 51)
  20272. * -mv850e2v3 command-line option, V850: V850 Options. (line 57)
  20273. * -mv850e2v4 command-line option, V850: V850 Options. (line 63)
  20274. * -mv850e3v5 command-line option, V850: V850 Options. (line 66)
  20275. * -mverbose-error command-line option, AArch64: AArch64 Options.
  20276. (line 58)
  20277. * -mvexwig= option, i386: i386-Options. (line 109)
  20278. * -mvexwig= option, x86-64: i386-Options. (line 109)
  20279. * -mvxworks-pic option, MIPS: MIPS Options. (line 26)
  20280. * -mwarn-areg-zero option, s390: s390 Options. (line 53)
  20281. * -mwarn-deprecated command-line option, ARM: ARM Options. (line 372)
  20282. * -mwarn-syms command-line option, ARM: ARM Options. (line 380)
  20283. * -mx86-used-note= option, i386: i386-Options. (line 199)
  20284. * -mx86-used-note= option, x86-64: i386-Options. (line 199)
  20285. * -mzarch option, s390: s390 Options. (line 17)
  20286. * -m[no-]68851 command-line option, M680x0: M68K-Opts. (line 21)
  20287. * -m[no-]68881 command-line option, M680x0: M68K-Opts. (line 21)
  20288. * -m[no-]div command-line option, M680x0: M68K-Opts. (line 21)
  20289. * -m[no-]emac command-line option, M680x0: M68K-Opts. (line 21)
  20290. * -m[no-]float command-line option, M680x0: M68K-Opts. (line 21)
  20291. * -m[no-]mac command-line option, M680x0: M68K-Opts. (line 21)
  20292. * -m[no-]usp command-line option, M680x0: M68K-Opts. (line 21)
  20293. * -N command-line option, CRIS: CRIS-Opts. (line 59)
  20294. * -nIp option, M32RX: M32R-Opts. (line 101)
  20295. * -no-bitinst, M32R2: M32R-Opts. (line 54)
  20296. * -no-ignore-parallel-conflicts option, M32RX: M32R-Opts. (line 93)
  20297. * -no-mdebug command-line option, Alpha: Alpha Options. (line 25)
  20298. * -no-parallel option, M32RX: M32R-Opts. (line 51)
  20299. * -no-warn-explicit-parallel-conflicts option, M32RX: M32R-Opts.
  20300. (line 79)
  20301. * -no-warn-unmatched-high option, M32R: M32R-Opts. (line 111)
  20302. * -nocpp ignored (MIPS): MIPS Options. (line 351)
  20303. * -noreplace command-line option, Alpha: Alpha Options. (line 40)
  20304. * -o: o. (line 6)
  20305. * -O option, i386: i386-Options. (line 221)
  20306. * -O option, M32RX: M32R-Opts. (line 59)
  20307. * -O option, x86-64: i386-Options. (line 221)
  20308. * -O0 option, i386: i386-Options. (line 221)
  20309. * -O0 option, x86-64: i386-Options. (line 221)
  20310. * -O1 option, i386: i386-Options. (line 221)
  20311. * -O1 option, x86-64: i386-Options. (line 221)
  20312. * -O2 option, i386: i386-Options. (line 221)
  20313. * -O2 option, x86-64: i386-Options. (line 221)
  20314. * -Os option, i386: i386-Options. (line 221)
  20315. * -Os option, x86-64: i386-Options. (line 221)
  20316. * -parallel option, M32RX: M32R-Opts. (line 46)
  20317. * -R: R. (line 6)
  20318. * -r800 command-line option, Z80: Z80 Options. (line 35)
  20319. * -relax command-line option, Alpha: Alpha Options. (line 32)
  20320. * -replace command-line option, Alpha: Alpha Options. (line 40)
  20321. * -S, ignored on VAX: VAX-Opts. (line 11)
  20322. * -T, ignored on VAX: VAX-Opts. (line 11)
  20323. * -t, ignored on VAX: VAX-Opts. (line 36)
  20324. * -v: v. (line 6)
  20325. * -V, redundant on VAX: VAX-Opts. (line 22)
  20326. * -version: v. (line 6)
  20327. * -W: W. (line 11)
  20328. * -warn-explicit-parallel-conflicts option, M32RX: M32R-Opts.
  20329. (line 65)
  20330. * -warn-unmatched-high option, M32R: M32R-Opts. (line 105)
  20331. * -Wnp option, M32RX: M32R-Opts. (line 83)
  20332. * -Wnuh option, M32RX: M32R-Opts. (line 117)
  20333. * -Wp option, M32RX: M32R-Opts. (line 75)
  20334. * -wsigned_overflow command-line option, V850: V850 Options. (line 9)
  20335. * -Wuh option, M32RX: M32R-Opts. (line 114)
  20336. * -wunsigned_overflow command-line option, V850: V850 Options.
  20337. (line 16)
  20338. * -x command-line option, MMIX: MMIX-Opts. (line 44)
  20339. * -z80 command-line option, Z80: Z80 Options. (line 8)
  20340. * -z8001 command-line option, Z8000: Z8000 Options. (line 6)
  20341. * -z8002 command-line option, Z8000: Z8000 Options. (line 9)
  20342. * . (symbol): Dot. (line 6)
  20343. * .align directive, ARM: ARM Directives. (line 6)
  20344. * .align directive, TILE-Gx: TILE-Gx Directives. (line 6)
  20345. * .align directive, TILEPro: TILEPro Directives. (line 6)
  20346. * .allow_suspicious_bundles directive, TILE-Gx: TILE-Gx Directives.
  20347. (line 10)
  20348. * .allow_suspicious_bundles directive, TILEPro: TILEPro Directives.
  20349. (line 10)
  20350. * .arch directive, AArch64: AArch64 Directives. (line 6)
  20351. * .arch directive, ARM: ARM Directives. (line 13)
  20352. * .arch directive, TIC6X: TIC6X Directives. (line 10)
  20353. * .arch_extension directive, AArch64: AArch64 Directives. (line 13)
  20354. * .arch_extension directive, ARM: ARM Directives. (line 21)
  20355. * .arc_attribute directive, ARC: ARC Directives. (line 240)
  20356. * .arm directive, ARM: ARM Directives. (line 30)
  20357. * .attribute directive, RISC-V: RISC-V-Directives. (line 96)
  20358. * .big directive, M32RX: M32R-Directives. (line 88)
  20359. * .bss directive, AArch64: AArch64 Directives. (line 21)
  20360. * .bss directive, ARM: ARM Directives. (line 33)
  20361. * .c6xabi_attribute directive, TIC6X: TIC6X Directives. (line 20)
  20362. * .cantunwind directive, ARM: ARM Directives. (line 36)
  20363. * .cantunwind directive, TIC6X: TIC6X Directives. (line 13)
  20364. * .cfi_b_key_frame directive, AArch64: AArch64 Directives. (line 99)
  20365. * .code directive, ARM: ARM Directives. (line 40)
  20366. * .cpu directive, AArch64: AArch64 Directives. (line 24)
  20367. * .cpu directive, ARM: ARM Directives. (line 44)
  20368. * .dn and .qn directives, ARM: ARM Directives. (line 52)
  20369. * .dword directive, AArch64: AArch64 Directives. (line 28)
  20370. * .eabi_attribute directive, ARM: ARM Directives. (line 76)
  20371. * .ehtype directive, TIC6X: TIC6X Directives. (line 31)
  20372. * .endp directive, TIC6X: TIC6X Directives. (line 34)
  20373. * .even directive, AArch64: AArch64 Directives. (line 31)
  20374. * .even directive, ARM: ARM Directives. (line 105)
  20375. * .extend directive, ARM: ARM Directives. (line 108)
  20376. * .float16 directive, AArch64: AArch64 Directives. (line 35)
  20377. * .float16 directive, ARM: ARM Directives. (line 114)
  20378. * .float16_format directive, ARM: ARM Directives. (line 122)
  20379. * .fnend directive, ARM: ARM Directives. (line 129)
  20380. * .fnstart directive, ARM: ARM Directives. (line 137)
  20381. * .force_thumb directive, ARM: ARM Directives. (line 140)
  20382. * .fpu directive, ARM: ARM Directives. (line 144)
  20383. * .global: MIPS insn. (line 12)
  20384. * .gnu_attribute 4, N directive, MIPS: MIPS FP ABI History.
  20385. (line 6)
  20386. * .gnu_attribute Tag_GNU_MIPS_ABI_FP, N directive, MIPS: MIPS FP ABI History.
  20387. (line 6)
  20388. * .handlerdata directive, ARM: ARM Directives. (line 148)
  20389. * .handlerdata directive, TIC6X: TIC6X Directives. (line 39)
  20390. * .insn: MIPS insn. (line 6)
  20391. * .insn directive, s390: s390 Directives. (line 11)
  20392. * .inst directive, AArch64: AArch64 Directives. (line 41)
  20393. * .inst directive, ARM: ARM Directives. (line 157)
  20394. * .ldouble directive, ARM: ARM Directives. (line 108)
  20395. * .little directive, M32RX: M32R-Directives. (line 82)
  20396. * .long directive, s390: s390 Directives. (line 16)
  20397. * .ltorg directive, AArch64: AArch64 Directives. (line 45)
  20398. * .ltorg directive, ARM: ARM Directives. (line 167)
  20399. * .ltorg directive, s390: s390 Directives. (line 79)
  20400. * .m32r directive, M32R: M32R-Directives. (line 66)
  20401. * .m32r2 directive, M32R2: M32R-Directives. (line 77)
  20402. * .m32rx directive, M32RX: M32R-Directives. (line 72)
  20403. * .machine directive, s390: s390 Directives. (line 84)
  20404. * .machinemode directive, s390: s390 Directives. (line 101)
  20405. * .module: MIPS assembly options.
  20406. (line 6)
  20407. * .module fp=NN directive, MIPS: MIPS FP ABI Selection.
  20408. (line 6)
  20409. * .movsp directive, ARM: ARM Directives. (line 181)
  20410. * .nan directive, MIPS: MIPS NaN Encodings. (line 6)
  20411. * .nocmp directive, TIC6X: TIC6X Directives. (line 47)
  20412. * .no_pointers directive, XStormy16: XStormy16 Directives.
  20413. (line 14)
  20414. * .o: Object. (line 6)
  20415. * .object_arch directive, ARM: ARM Directives. (line 186)
  20416. * .packed directive, ARM: ARM Directives. (line 192)
  20417. * .pad directive, ARM: ARM Directives. (line 197)
  20418. * .param on HPPA: HPPA Directives. (line 19)
  20419. * .personality directive, ARM: ARM Directives. (line 202)
  20420. * .personality directive, TIC6X: TIC6X Directives. (line 55)
  20421. * .personalityindex directive, ARM: ARM Directives. (line 205)
  20422. * .personalityindex directive, TIC6X: TIC6X Directives. (line 51)
  20423. * .pool directive, AArch64: AArch64 Directives. (line 59)
  20424. * .pool directive, ARM: ARM Directives. (line 209)
  20425. * .quad directive, s390: s390 Directives. (line 16)
  20426. * .req directive, AArch64: AArch64 Directives. (line 62)
  20427. * .req directive, ARM: ARM Directives. (line 212)
  20428. * .require_canonical_reg_names directive, TILE-Gx: TILE-Gx Directives.
  20429. (line 19)
  20430. * .require_canonical_reg_names directive, TILEPro: TILEPro Directives.
  20431. (line 19)
  20432. * .save directive, ARM: ARM Directives. (line 217)
  20433. * .scomm directive, TIC6X: TIC6X Directives. (line 58)
  20434. * .secrel32 directive, ARM: ARM Directives. (line 255)
  20435. * .set arch=CPU: MIPS ISA. (line 18)
  20436. * .set at: MIPS Macros. (line 41)
  20437. * .set at=REG: MIPS Macros. (line 35)
  20438. * .set autoextend: MIPS autoextend. (line 6)
  20439. * .set crc: MIPS ASE Instruction Generation Overrides.
  20440. (line 68)
  20441. * .set doublefloat: MIPS Floating-Point.
  20442. (line 12)
  20443. * .set dsp: MIPS ASE Instruction Generation Overrides.
  20444. (line 21)
  20445. * .set dspr2: MIPS ASE Instruction Generation Overrides.
  20446. (line 26)
  20447. * .set dspr3: MIPS ASE Instruction Generation Overrides.
  20448. (line 31)
  20449. * .set ginv: MIPS ASE Instruction Generation Overrides.
  20450. (line 72)
  20451. * .set hardfloat: MIPS Floating-Point.
  20452. (line 6)
  20453. * .set insn32: MIPS assembly options.
  20454. (line 18)
  20455. * .set loongson-cam: MIPS ASE Instruction Generation Overrides.
  20456. (line 81)
  20457. * .set loongson-ext: MIPS ASE Instruction Generation Overrides.
  20458. (line 86)
  20459. * .set loongson-ext2: MIPS ASE Instruction Generation Overrides.
  20460. (line 91)
  20461. * .set loongson-mmi: MIPS ASE Instruction Generation Overrides.
  20462. (line 76)
  20463. * .set macro: MIPS Macros. (line 30)
  20464. * .set mcu: MIPS ASE Instruction Generation Overrides.
  20465. (line 42)
  20466. * .set mdmx: MIPS ASE Instruction Generation Overrides.
  20467. (line 16)
  20468. * .set mips16e2: MIPS ASE Instruction Generation Overrides.
  20469. (line 61)
  20470. * .set mips3d: MIPS ASE Instruction Generation Overrides.
  20471. (line 6)
  20472. * .set mipsN: MIPS ISA. (line 6)
  20473. * .set msa: MIPS ASE Instruction Generation Overrides.
  20474. (line 47)
  20475. * .set mt: MIPS ASE Instruction Generation Overrides.
  20476. (line 37)
  20477. * .set noat: MIPS Macros. (line 41)
  20478. * .set noautoextend: MIPS autoextend. (line 6)
  20479. * .set nocrc: MIPS ASE Instruction Generation Overrides.
  20480. (line 68)
  20481. * .set nodsp: MIPS ASE Instruction Generation Overrides.
  20482. (line 21)
  20483. * .set nodspr2: MIPS ASE Instruction Generation Overrides.
  20484. (line 26)
  20485. * .set nodspr3: MIPS ASE Instruction Generation Overrides.
  20486. (line 31)
  20487. * .set noginv: MIPS ASE Instruction Generation Overrides.
  20488. (line 72)
  20489. * .set noinsn32: MIPS assembly options.
  20490. (line 18)
  20491. * .set noloongson-cam: MIPS ASE Instruction Generation Overrides.
  20492. (line 81)
  20493. * .set noloongson-ext: MIPS ASE Instruction Generation Overrides.
  20494. (line 86)
  20495. * .set noloongson-ext2: MIPS ASE Instruction Generation Overrides.
  20496. (line 91)
  20497. * .set noloongson-mmi: MIPS ASE Instruction Generation Overrides.
  20498. (line 76)
  20499. * .set nomacro: MIPS Macros. (line 30)
  20500. * .set nomcu: MIPS ASE Instruction Generation Overrides.
  20501. (line 42)
  20502. * .set nomdmx: MIPS ASE Instruction Generation Overrides.
  20503. (line 16)
  20504. * .set nomips16e2: MIPS ASE Instruction Generation Overrides.
  20505. (line 61)
  20506. * .set nomips3d: MIPS ASE Instruction Generation Overrides.
  20507. (line 6)
  20508. * .set nomsa: MIPS ASE Instruction Generation Overrides.
  20509. (line 47)
  20510. * .set nomt: MIPS ASE Instruction Generation Overrides.
  20511. (line 37)
  20512. * .set nosmartmips: MIPS ASE Instruction Generation Overrides.
  20513. (line 11)
  20514. * .set nosym32: MIPS Symbol Sizes. (line 6)
  20515. * .set novirt: MIPS ASE Instruction Generation Overrides.
  20516. (line 52)
  20517. * .set noxpa: MIPS ASE Instruction Generation Overrides.
  20518. (line 57)
  20519. * .set pop: MIPS Option Stack. (line 6)
  20520. * .set push: MIPS Option Stack. (line 6)
  20521. * .set singlefloat: MIPS Floating-Point.
  20522. (line 12)
  20523. * .set smartmips: MIPS ASE Instruction Generation Overrides.
  20524. (line 11)
  20525. * .set softfloat: MIPS Floating-Point.
  20526. (line 6)
  20527. * .set sym32: MIPS Symbol Sizes. (line 6)
  20528. * .set virt: MIPS ASE Instruction Generation Overrides.
  20529. (line 52)
  20530. * .set xpa: MIPS ASE Instruction Generation Overrides.
  20531. (line 57)
  20532. * .setfp directive, ARM: ARM Directives. (line 241)
  20533. * .short directive, s390: s390 Directives. (line 16)
  20534. * .syntax directive, ARM: ARM Directives. (line 260)
  20535. * .thumb directive, ARM: ARM Directives. (line 264)
  20536. * .thumb_func directive, ARM: ARM Directives. (line 267)
  20537. * .thumb_set directive, ARM: ARM Directives. (line 278)
  20538. * .tlsdescadd directive, AArch64: AArch64 Directives. (line 70)
  20539. * .tlsdesccall directive, AArch64: AArch64 Directives. (line 73)
  20540. * .tlsdescldr directive, AArch64: AArch64 Directives. (line 76)
  20541. * .tlsdescseq directive, ARM: ARM Directives. (line 285)
  20542. * .unreq directive, AArch64: AArch64 Directives. (line 79)
  20543. * .unreq directive, ARM: ARM Directives. (line 290)
  20544. * .unwind_raw directive, ARM: ARM Directives. (line 301)
  20545. * .v850 directive, V850: V850 Directives. (line 14)
  20546. * .v850e directive, V850: V850 Directives. (line 20)
  20547. * .v850e1 directive, V850: V850 Directives. (line 26)
  20548. * .v850e2 directive, V850: V850 Directives. (line 32)
  20549. * .v850e2v3 directive, V850: V850 Directives. (line 38)
  20550. * .v850e2v4 directive, V850: V850 Directives. (line 44)
  20551. * .v850e3v5 directive, V850: V850 Directives. (line 50)
  20552. * .variant_pcs directive, AArch64: AArch64 Directives. (line 90)
  20553. * .vsave directive, ARM: ARM Directives. (line 308)
  20554. * .xword directive, AArch64: AArch64 Directives. (line 95)
  20555. * .z8001: Z8000 Directives. (line 11)
  20556. * .z8002: Z8000 Directives. (line 15)
  20557. * 16-bit code, i386: i386-16bit. (line 6)
  20558. * 16bit_pointers directive, XStormy16: XStormy16 Directives.
  20559. (line 6)
  20560. * 16byte directive, Nios II: Nios II Directives. (line 28)
  20561. * 16byte directive, PRU: PRU Directives. (line 25)
  20562. * 2byte directive: 2byte. (line 6)
  20563. * 2byte directive, Nios II: Nios II Directives. (line 19)
  20564. * 2byte directive, PRU: PRU Directives. (line 16)
  20565. * 32bit_pointers directive, XStormy16: XStormy16 Directives.
  20566. (line 10)
  20567. * 3DNow!, i386: i386-SIMD. (line 6)
  20568. * 3DNow!, x86-64: i386-SIMD. (line 6)
  20569. * 430 support: MSP430-Dependent. (line 6)
  20570. * 4byte directive: 4byte. (line 6)
  20571. * 4byte directive, Nios II: Nios II Directives. (line 22)
  20572. * 4byte directive, PRU: PRU Directives. (line 19)
  20573. * 8byte directive: 8byte. (line 6)
  20574. * 8byte directive, Nios II: Nios II Directives. (line 25)
  20575. * 8byte directive, PRU: PRU Directives. (line 22)
  20576. * : (label): Statements. (line 31)
  20577. * @gotoff(SYMBOL), ARC modifier: ARC Modifiers. (line 20)
  20578. * @gotpc(SYMBOL), ARC modifier: ARC Modifiers. (line 16)
  20579. * @hi pseudo-op, XStormy16: XStormy16 Opcodes. (line 21)
  20580. * @lo pseudo-op, XStormy16: XStormy16 Opcodes. (line 10)
  20581. * @pcl(SYMBOL), ARC modifier: ARC Modifiers. (line 12)
  20582. * @plt(SYMBOL), ARC modifier: ARC Modifiers. (line 23)
  20583. * @sda(SYMBOL), ARC modifier: ARC Modifiers. (line 28)
  20584. * @word modifier, D10V: D10V-Word. (line 6)
  20585. * _ opcode prefix: Xtensa Opcodes. (line 9)
  20586. * __DYNAMIC__, ARC pre-defined symbol: ARC Symbols. (line 14)
  20587. * __GLOBAL_OFFSET_TABLE__, ARC pre-defined symbol: ARC Symbols.
  20588. (line 11)
  20589. * a.out: Object. (line 6)
  20590. * a.out symbol attributes: a.out Symbols. (line 6)
  20591. * AArch64 floating point (IEEE): AArch64 Floating Point.
  20592. (line 6)
  20593. * AArch64 immediate character: AArch64-Chars. (line 13)
  20594. * AArch64 line comment character: AArch64-Chars. (line 6)
  20595. * AArch64 line separator: AArch64-Chars. (line 10)
  20596. * AArch64 machine directives: AArch64 Directives. (line 6)
  20597. * AArch64 opcodes: AArch64 Opcodes. (line 6)
  20598. * AArch64 options (none): AArch64 Options. (line 6)
  20599. * AArch64 register names: AArch64-Regs. (line 6)
  20600. * AArch64 relocations: AArch64-Relocations.
  20601. (line 6)
  20602. * AArch64 support: AArch64-Dependent. (line 6)
  20603. * abort directive: Abort. (line 6)
  20604. * ABORT directive: ABORT (COFF). (line 6)
  20605. * absolute section: Ld Sections. (line 29)
  20606. * absolute-literals directive: Absolute Literals Directive.
  20607. (line 6)
  20608. * ADDI instructions, relaxation: Xtensa Immediate Relaxation.
  20609. (line 43)
  20610. * addition, permitted arguments: Infix Ops. (line 45)
  20611. * addresses: Expressions. (line 6)
  20612. * addresses, format of: Secs Background. (line 65)
  20613. * addressing modes, D10V: D10V-Addressing. (line 6)
  20614. * addressing modes, D30V: D30V-Addressing. (line 6)
  20615. * addressing modes, H8/300: H8/300-Addressing. (line 6)
  20616. * addressing modes, M680x0: M68K-Syntax. (line 21)
  20617. * addressing modes, M68HC11: M68HC11-Syntax. (line 29)
  20618. * addressing modes, S12Z: S12Z Addressing Modes.
  20619. (line 6)
  20620. * addressing modes, SH: SH-Addressing. (line 6)
  20621. * addressing modes, XGATE: XGATE-Syntax. (line 28)
  20622. * addressing modes, Z8000: Z8000-Addressing. (line 6)
  20623. * ADR reg,<label> pseudo op, ARM: ARM Opcodes. (line 25)
  20624. * ADRL reg,<label> pseudo op, ARM: ARM Opcodes. (line 43)
  20625. * ADRP, ADD, LDR/STR group relocations, AArch64: AArch64-Relocations.
  20626. (line 14)
  20627. * advancing location counter: Org. (line 6)
  20628. * align directive: Align. (line 6)
  20629. * align directive <1>: RISC-V-Directives. (line 8)
  20630. * align directive, Nios II: Nios II Directives. (line 6)
  20631. * align directive, OpenRISC: OpenRISC-Directives.
  20632. (line 9)
  20633. * align directive, PRU: PRU Directives. (line 6)
  20634. * align directive, SPARC: Sparc-Directives. (line 9)
  20635. * align directive, TIC54X: TIC54X-Directives. (line 6)
  20636. * aligned instruction bundle: Bundle directives. (line 9)
  20637. * alignment for NEON instructions: ARM-Neon-Alignment. (line 6)
  20638. * alignment of branch targets: Xtensa Automatic Alignment.
  20639. (line 6)
  20640. * alignment of LOOP instructions: Xtensa Automatic Alignment.
  20641. (line 6)
  20642. * Alpha floating point (IEEE): Alpha Floating Point.
  20643. (line 6)
  20644. * Alpha line comment character: Alpha-Chars. (line 6)
  20645. * Alpha line separator: Alpha-Chars. (line 11)
  20646. * Alpha notes: Alpha Notes. (line 6)
  20647. * Alpha options: Alpha Options. (line 6)
  20648. * Alpha registers: Alpha-Regs. (line 6)
  20649. * Alpha relocations: Alpha-Relocs. (line 6)
  20650. * Alpha support: Alpha-Dependent. (line 6)
  20651. * Alpha Syntax: Alpha Options. (line 60)
  20652. * Alpha-only directives: Alpha Directives. (line 9)
  20653. * Altera Nios II support: NiosII-Dependent. (line 6)
  20654. * altered difference tables: Word. (line 12)
  20655. * alternate syntax for the 680x0: M68K-Moto-Syntax. (line 6)
  20656. * ARC Branch Target Address: ARC-Regs. (line 60)
  20657. * ARC BTA saved on exception entry: ARC-Regs. (line 79)
  20658. * ARC Build configuration for: BTA Registers: ARC-Regs. (line 89)
  20659. * ARC Build configuration for: Core Registers: ARC-Regs. (line 97)
  20660. * ARC Build configuration for: Interrupts: ARC-Regs. (line 93)
  20661. * ARC Build Configuration Registers Version: ARC-Regs. (line 85)
  20662. * ARC C preprocessor macro separator: ARC-Chars. (line 31)
  20663. * ARC core general registers: ARC-Regs. (line 10)
  20664. * ARC DCCM RAM Configuration Register: ARC-Regs. (line 101)
  20665. * ARC Exception Cause Register: ARC-Regs. (line 63)
  20666. * ARC Exception Return Address: ARC-Regs. (line 76)
  20667. * ARC extension core registers: ARC-Regs. (line 38)
  20668. * ARC frame pointer: ARC-Regs. (line 17)
  20669. * ARC global pointer: ARC-Regs. (line 14)
  20670. * ARC interrupt link register: ARC-Regs. (line 27)
  20671. * ARC Interrupt Vector Base address: ARC-Regs. (line 66)
  20672. * ARC level 1 interrupt link register: ARC-Regs. (line 23)
  20673. * ARC level 2 interrupt link register: ARC-Regs. (line 31)
  20674. * ARC line comment character: ARC-Chars. (line 11)
  20675. * ARC line separator: ARC-Chars. (line 27)
  20676. * ARC link register: ARC-Regs. (line 35)
  20677. * ARC loop counter: ARC-Regs. (line 41)
  20678. * ARC machine directives: ARC Directives. (line 6)
  20679. * ARC opcodes: ARC Opcodes. (line 6)
  20680. * ARC options: ARC Options. (line 6)
  20681. * ARC Processor Identification register: ARC-Regs. (line 51)
  20682. * ARC Program Counter: ARC-Regs. (line 54)
  20683. * ARC register name prefix character: ARC-Chars. (line 7)
  20684. * ARC register names: ARC-Regs. (line 6)
  20685. * ARC Saved User Stack Pointer: ARC-Regs. (line 73)
  20686. * ARC stack pointer: ARC-Regs. (line 20)
  20687. * ARC Status register: ARC-Regs. (line 57)
  20688. * ARC STATUS32 saved on exception: ARC-Regs. (line 82)
  20689. * ARC Stored STATUS32 register on entry to level P0 interrupts: ARC-Regs.
  20690. (line 69)
  20691. * ARC support: ARC-Dependent. (line 6)
  20692. * ARC symbol prefix character: ARC-Chars. (line 20)
  20693. * ARC word aligned program counter: ARC-Regs. (line 44)
  20694. * arch directive, i386: i386-Arch. (line 6)
  20695. * arch directive, M680x0: M68K-Directives. (line 22)
  20696. * arch directive, MSP 430: MSP430 Directives. (line 18)
  20697. * arch directive, x86-64: i386-Arch. (line 6)
  20698. * architecture options, IP2022: IP2K-Opts. (line 9)
  20699. * architecture options, IP2K: IP2K-Opts. (line 14)
  20700. * architecture options, M16C: M32C-Opts. (line 12)
  20701. * architecture options, M32C: M32C-Opts. (line 9)
  20702. * architecture options, M32R: M32R-Opts. (line 21)
  20703. * architecture options, M32R2: M32R-Opts. (line 17)
  20704. * architecture options, M32RX: M32R-Opts. (line 9)
  20705. * architecture options, M680x0: M68K-Opts. (line 99)
  20706. * Architecture variant option, CRIS: CRIS-Opts. (line 34)
  20707. * architectures, Meta: Meta Options. (line 6)
  20708. * architectures, PowerPC: PowerPC-Opts. (line 6)
  20709. * architectures, SCORE: SCORE-Opts. (line 6)
  20710. * architectures, SPARC: Sparc-Opts. (line 6)
  20711. * arguments for addition: Infix Ops. (line 45)
  20712. * arguments for subtraction: Infix Ops. (line 50)
  20713. * arguments in expressions: Arguments. (line 6)
  20714. * arithmetic functions: Operators. (line 6)
  20715. * arithmetic operands: Arguments. (line 6)
  20716. * ARM data relocations: ARM-Relocations. (line 6)
  20717. * ARM floating point (IEEE): ARM Floating Point. (line 6)
  20718. * ARM identifiers: ARM-Chars. (line 19)
  20719. * ARM immediate character: ARM-Chars. (line 17)
  20720. * ARM line comment character: ARM-Chars. (line 6)
  20721. * ARM line separator: ARM-Chars. (line 14)
  20722. * ARM machine directives: ARM Directives. (line 6)
  20723. * ARM opcodes: ARM Opcodes. (line 6)
  20724. * ARM options (none): ARM Options. (line 6)
  20725. * ARM register names: ARM-Regs. (line 6)
  20726. * ARM support: ARM-Dependent. (line 6)
  20727. * ascii directive: Ascii. (line 6)
  20728. * asciz directive: Asciz. (line 6)
  20729. * asg directive, TIC54X: TIC54X-Directives. (line 18)
  20730. * assembler bugs, reporting: Bug Reporting. (line 6)
  20731. * assembler crash: Bug Criteria. (line 9)
  20732. * assembler directive .3byte, RX: RX-Directives. (line 9)
  20733. * assembler directive .arch, CRIS: CRIS-Pseudos. (line 50)
  20734. * assembler directive .dword, CRIS: CRIS-Pseudos. (line 12)
  20735. * assembler directive .far, M68HC11: M68HC11-Directives. (line 20)
  20736. * assembler directive .fetchalign, RX: RX-Directives. (line 13)
  20737. * assembler directive .interrupt, M68HC11: M68HC11-Directives.
  20738. (line 26)
  20739. * assembler directive .mode, M68HC11: M68HC11-Directives. (line 16)
  20740. * assembler directive .relax, M68HC11: M68HC11-Directives. (line 10)
  20741. * assembler directive .syntax, CRIS: CRIS-Pseudos. (line 18)
  20742. * assembler directive .xrefb, M68HC11: M68HC11-Directives. (line 31)
  20743. * assembler directive BSPEC, MMIX: MMIX-Pseudos. (line 137)
  20744. * assembler directive BYTE, MMIX: MMIX-Pseudos. (line 101)
  20745. * assembler directive ESPEC, MMIX: MMIX-Pseudos. (line 137)
  20746. * assembler directive GREG, MMIX: MMIX-Pseudos. (line 53)
  20747. * assembler directive IS, MMIX: MMIX-Pseudos. (line 44)
  20748. * assembler directive LOC, MMIX: MMIX-Pseudos. (line 7)
  20749. * assembler directive LOCAL, MMIX: MMIX-Pseudos. (line 29)
  20750. * assembler directive OCTA, MMIX: MMIX-Pseudos. (line 113)
  20751. * assembler directive PREFIX, MMIX: MMIX-Pseudos. (line 125)
  20752. * assembler directive TETRA, MMIX: MMIX-Pseudos. (line 113)
  20753. * assembler directive WYDE, MMIX: MMIX-Pseudos. (line 113)
  20754. * assembler directives, CRIS: CRIS-Pseudos. (line 6)
  20755. * assembler directives, M68HC11: M68HC11-Directives. (line 6)
  20756. * assembler directives, M68HC12: M68HC11-Directives. (line 6)
  20757. * assembler directives, MMIX: MMIX-Pseudos. (line 6)
  20758. * assembler directives, RL78: RL78-Directives. (line 6)
  20759. * assembler directives, RX: RX-Directives. (line 6)
  20760. * assembler directives, XGATE: XGATE-Directives. (line 6)
  20761. * assembler internal logic error: As Sections. (line 13)
  20762. * assembler version: v. (line 6)
  20763. * assembler, and linker: Secs Background. (line 10)
  20764. * assembly listings, enabling: a. (line 6)
  20765. * assigning values to symbols: Setting Symbols. (line 6)
  20766. * assigning values to symbols <1>: Equ. (line 6)
  20767. * at register, MIPS: MIPS Macros. (line 35)
  20768. * attributes, symbol: Symbol Attributes. (line 6)
  20769. * att_syntax pseudo op, i386: i386-Variations. (line 6)
  20770. * att_syntax pseudo op, x86-64: i386-Variations. (line 6)
  20771. * auxiliary attributes, COFF symbols: COFF Symbols. (line 19)
  20772. * auxiliary symbol information, COFF: Dim. (line 6)
  20773. * AVR line comment character: AVR-Chars. (line 6)
  20774. * AVR line separator: AVR-Chars. (line 14)
  20775. * AVR modifiers: AVR-Modifiers. (line 6)
  20776. * AVR opcode summary: AVR Opcodes. (line 6)
  20777. * AVR options (none): AVR Options. (line 6)
  20778. * AVR register names: AVR-Regs. (line 6)
  20779. * AVR support: AVR-Dependent. (line 6)
  20780. * A_DIR environment variable, TIC54X: TIC54X-Env. (line 6)
  20781. * backslash (\\): Strings. (line 40)
  20782. * backspace (\b): Strings. (line 15)
  20783. * balign directive: Balign. (line 6)
  20784. * balignl directive: Balign. (line 27)
  20785. * balignw directive: Balign. (line 27)
  20786. * bes directive, TIC54X: TIC54X-Directives. (line 194)
  20787. * big endian output, MIPS: Overview. (line 840)
  20788. * big endian output, PJ: Overview. (line 744)
  20789. * big-endian output, MIPS: MIPS Options. (line 13)
  20790. * big-endian output, TIC6X: TIC6X Options. (line 46)
  20791. * bignums: Bignums. (line 6)
  20792. * binary constants, TIC54X: TIC54X-Constants. (line 8)
  20793. * binary files, including: Incbin. (line 6)
  20794. * binary integers: Integers. (line 6)
  20795. * bit names, IA-64: IA-64-Bits. (line 6)
  20796. * bitfields, not supported on VAX: VAX-no. (line 6)
  20797. * Blackfin directives: Blackfin Directives.
  20798. (line 6)
  20799. * Blackfin options (none): Blackfin Options. (line 6)
  20800. * Blackfin support: Blackfin-Dependent. (line 6)
  20801. * Blackfin syntax: Blackfin Syntax. (line 6)
  20802. * block: Z8000 Directives. (line 55)
  20803. * BMI, i386: i386-BMI. (line 6)
  20804. * BMI, x86-64: i386-BMI. (line 6)
  20805. * BPF line comment character: BPF-Chars. (line 6)
  20806. * BPF opcodes: BPF Opcodes. (line 6)
  20807. * BPF options (none): BPF Options. (line 6)
  20808. * BPF register names: BPF-Regs. (line 6)
  20809. * BPF support: BPF-Dependent. (line 6)
  20810. * branch improvement, M680x0: M68K-Branch. (line 6)
  20811. * branch improvement, M68HC11: M68HC11-Branch. (line 6)
  20812. * branch improvement, VAX: VAX-branch. (line 6)
  20813. * branch instructions, relaxation: Xtensa Branch Relaxation.
  20814. (line 6)
  20815. * Branch Target Address, ARC: ARC-Regs. (line 60)
  20816. * branch target alignment: Xtensa Automatic Alignment.
  20817. (line 6)
  20818. * break directive, TIC54X: TIC54X-Directives. (line 141)
  20819. * BSD syntax: PDP-11-Syntax. (line 6)
  20820. * BSS directive: RISC-V-Directives. (line 24)
  20821. * bss directive, TIC54X: TIC54X-Directives. (line 27)
  20822. * bss section: Ld Sections. (line 20)
  20823. * bss section <1>: bss. (line 6)
  20824. * BTA saved on exception entry, ARC: ARC-Regs. (line 79)
  20825. * bug criteria: Bug Criteria. (line 6)
  20826. * bug reports: Bug Reporting. (line 6)
  20827. * bugs in assembler: Reporting Bugs. (line 6)
  20828. * Build configuration for: BTA Registers, ARC: ARC-Regs. (line 89)
  20829. * Build configuration for: Core Registers, ARC: ARC-Regs. (line 97)
  20830. * Build configuration for: Interrupts, ARC: ARC-Regs. (line 93)
  20831. * Build Configuration Registers Version, ARC: ARC-Regs. (line 85)
  20832. * Built-in symbols, CRIS: CRIS-Symbols. (line 6)
  20833. * builtin math functions, TIC54X: TIC54X-Builtins. (line 6)
  20834. * builtin subsym functions, TIC54X: TIC54X-Macros. (line 16)
  20835. * bundle: Bundle directives. (line 9)
  20836. * bundle-locked: Bundle directives. (line 39)
  20837. * bundle_align_mode directive: Bundle directives. (line 9)
  20838. * bundle_lock directive: Bundle directives. (line 31)
  20839. * bundle_unlock directive: Bundle directives. (line 31)
  20840. * bus lock prefixes, i386: i386-Prefixes. (line 36)
  20841. * bval: Z8000 Directives. (line 30)
  20842. * byte directive: Byte. (line 6)
  20843. * byte directive, TIC54X: TIC54X-Directives. (line 34)
  20844. * C preprocessor macro separator, ARC: ARC-Chars. (line 31)
  20845. * C-SKY options: C-SKY Options. (line 6)
  20846. * C-SKY support: C-SKY-Dependent. (line 6)
  20847. * C54XDSP_DIR environment variable, TIC54X: TIC54X-Env. (line 6)
  20848. * call directive, Nios II: Nios II Relocations.
  20849. (line 38)
  20850. * call instructions, i386: i386-Mnemonics. (line 75)
  20851. * call instructions, relaxation: Xtensa Call Relaxation.
  20852. (line 6)
  20853. * call instructions, x86-64: i386-Mnemonics. (line 75)
  20854. * call_hiadj directive, Nios II: Nios II Relocations.
  20855. (line 38)
  20856. * call_lo directive, Nios II: Nios II Relocations.
  20857. (line 38)
  20858. * carriage return (backslash-r): Strings. (line 24)
  20859. * case sensitivity, Z80: Z80-Case. (line 6)
  20860. * cfi_endproc directive: CFI directives. (line 40)
  20861. * cfi_fde_data directive: CFI directives. (line 66)
  20862. * cfi_personality directive: CFI directives. (line 47)
  20863. * cfi_personality_id directive: CFI directives. (line 59)
  20864. * cfi_sections directive: CFI directives. (line 9)
  20865. * cfi_startproc directive: CFI directives. (line 30)
  20866. * char directive, TIC54X: TIC54X-Directives. (line 34)
  20867. * character constant, Z80: Z80-Chars. (line 20)
  20868. * character constants: Characters. (line 6)
  20869. * character escape codes: Strings. (line 15)
  20870. * character escapes, Z80: Z80-Chars. (line 18)
  20871. * character, single: Chars. (line 6)
  20872. * characters used in symbols: Symbol Intro. (line 6)
  20873. * clink directive, TIC54X: TIC54X-Directives. (line 43)
  20874. * code16 directive, i386: i386-16bit. (line 6)
  20875. * code16gcc directive, i386: i386-16bit. (line 6)
  20876. * code32 directive, i386: i386-16bit. (line 6)
  20877. * code64 directive, i386: i386-16bit. (line 6)
  20878. * code64 directive, x86-64: i386-16bit. (line 6)
  20879. * COFF auxiliary symbol information: Dim. (line 6)
  20880. * COFF structure debugging: Tag. (line 6)
  20881. * COFF symbol attributes: COFF Symbols. (line 6)
  20882. * COFF symbol descriptor: Desc. (line 6)
  20883. * COFF symbol storage class: Scl. (line 6)
  20884. * COFF symbol type: Type. (line 11)
  20885. * COFF symbols, debugging: Def. (line 6)
  20886. * COFF value attribute: Val. (line 6)
  20887. * COMDAT: Linkonce. (line 6)
  20888. * comm directive: Comm. (line 6)
  20889. * command line conventions: Command Line. (line 6)
  20890. * command-line options ignored, VAX: VAX-Opts. (line 6)
  20891. * command-line options, V850: V850 Options. (line 9)
  20892. * comment character, XStormy16: XStormy16-Chars. (line 11)
  20893. * comments: Comments. (line 6)
  20894. * comments, M680x0: M68K-Chars. (line 6)
  20895. * comments, removed by preprocessor: Preprocessing. (line 11)
  20896. * common directive, SPARC: Sparc-Directives. (line 12)
  20897. * common sections: Linkonce. (line 6)
  20898. * common variable storage: bss. (line 6)
  20899. * comparison expressions: Infix Ops. (line 56)
  20900. * conditional assembly: If. (line 6)
  20901. * constant, single character: Chars. (line 6)
  20902. * constants: Constants. (line 6)
  20903. * constants, bignum: Bignums. (line 6)
  20904. * constants, character: Characters. (line 6)
  20905. * constants, converted by preprocessor: Preprocessing. (line 14)
  20906. * constants, floating point: Flonums. (line 6)
  20907. * constants, integer: Integers. (line 6)
  20908. * constants, number: Numbers. (line 6)
  20909. * constants, Sparc: Sparc-Constants. (line 6)
  20910. * constants, string: Strings. (line 6)
  20911. * constants, TIC54X: TIC54X-Constants. (line 6)
  20912. * conversion instructions, i386: i386-Mnemonics. (line 56)
  20913. * conversion instructions, x86-64: i386-Mnemonics. (line 56)
  20914. * coprocessor wait, i386: i386-Prefixes. (line 40)
  20915. * copy directive, TIC54X: TIC54X-Directives. (line 52)
  20916. * core general registers, ARC: ARC-Regs. (line 10)
  20917. * cpu directive, ARC: ARC Directives. (line 27)
  20918. * cpu directive, M680x0: M68K-Directives. (line 30)
  20919. * cpu directive, MSP 430: MSP430 Directives. (line 22)
  20920. * CR16 line comment character: CR16-Chars. (line 6)
  20921. * CR16 line separator: CR16-Chars. (line 12)
  20922. * CR16 Operand Qualifiers: CR16 Operand Qualifiers.
  20923. (line 6)
  20924. * CR16 support: CR16-Dependent. (line 6)
  20925. * crash of assembler: Bug Criteria. (line 9)
  20926. * CRIS --emulation=crisaout command-line option: CRIS-Opts. (line 9)
  20927. * CRIS --emulation=criself command-line option: CRIS-Opts. (line 9)
  20928. * CRIS --march=ARCHITECTURE command-line option: CRIS-Opts. (line 34)
  20929. * CRIS --mul-bug-abort command-line option: CRIS-Opts. (line 63)
  20930. * CRIS --no-mul-bug-abort command-line option: CRIS-Opts. (line 63)
  20931. * CRIS --no-underscore command-line option: CRIS-Opts. (line 15)
  20932. * CRIS --pic command-line option: CRIS-Opts. (line 27)
  20933. * CRIS --underscore command-line option: CRIS-Opts. (line 15)
  20934. * CRIS -N command-line option: CRIS-Opts. (line 59)
  20935. * CRIS architecture variant option: CRIS-Opts. (line 34)
  20936. * CRIS assembler directive .arch: CRIS-Pseudos. (line 50)
  20937. * CRIS assembler directive .dword: CRIS-Pseudos. (line 12)
  20938. * CRIS assembler directive .syntax: CRIS-Pseudos. (line 18)
  20939. * CRIS assembler directives: CRIS-Pseudos. (line 6)
  20940. * CRIS built-in symbols: CRIS-Symbols. (line 6)
  20941. * CRIS instruction expansion: CRIS-Expand. (line 6)
  20942. * CRIS line comment characters: CRIS-Chars. (line 6)
  20943. * CRIS options: CRIS-Opts. (line 6)
  20944. * CRIS position-independent code: CRIS-Opts. (line 27)
  20945. * CRIS pseudo-op .arch: CRIS-Pseudos. (line 50)
  20946. * CRIS pseudo-op .dword: CRIS-Pseudos. (line 12)
  20947. * CRIS pseudo-op .syntax: CRIS-Pseudos. (line 18)
  20948. * CRIS pseudo-ops: CRIS-Pseudos. (line 6)
  20949. * CRIS register names: CRIS-Regs. (line 6)
  20950. * CRIS support: CRIS-Dependent. (line 6)
  20951. * CRIS symbols in position-independent code: CRIS-Pic. (line 6)
  20952. * ctbp register, V850: V850-Regs. (line 90)
  20953. * ctoff pseudo-op, V850: V850 Opcodes. (line 110)
  20954. * ctpc register, V850: V850-Regs. (line 82)
  20955. * ctpsw register, V850: V850-Regs. (line 84)
  20956. * current address: Dot. (line 6)
  20957. * current address, advancing: Org. (line 6)
  20958. * c_mode directive, TIC54X: TIC54X-Directives. (line 49)
  20959. * D10V @word modifier: D10V-Word. (line 6)
  20960. * D10V addressing modes: D10V-Addressing. (line 6)
  20961. * D10V floating point: D10V-Float. (line 6)
  20962. * D10V line comment character: D10V-Chars. (line 6)
  20963. * D10V opcode summary: D10V-Opcodes. (line 6)
  20964. * D10V optimization: Overview. (line 623)
  20965. * D10V options: D10V-Opts. (line 6)
  20966. * D10V registers: D10V-Regs. (line 6)
  20967. * D10V size modifiers: D10V-Size. (line 6)
  20968. * D10V sub-instruction ordering: D10V-Chars. (line 14)
  20969. * D10V sub-instructions: D10V-Subs. (line 6)
  20970. * D10V support: D10V-Dependent. (line 6)
  20971. * D10V syntax: D10V-Syntax. (line 6)
  20972. * D30V addressing modes: D30V-Addressing. (line 6)
  20973. * D30V floating point: D30V-Float. (line 6)
  20974. * D30V Guarded Execution: D30V-Guarded. (line 6)
  20975. * D30V line comment character: D30V-Chars. (line 6)
  20976. * D30V nops: Overview. (line 631)
  20977. * D30V nops after 32-bit multiply: Overview. (line 634)
  20978. * D30V opcode summary: D30V-Opcodes. (line 6)
  20979. * D30V optimization: Overview. (line 628)
  20980. * D30V options: D30V-Opts. (line 6)
  20981. * D30V registers: D30V-Regs. (line 6)
  20982. * D30V size modifiers: D30V-Size. (line 6)
  20983. * D30V sub-instruction ordering: D30V-Chars. (line 14)
  20984. * D30V sub-instructions: D30V-Subs. (line 6)
  20985. * D30V support: D30V-Dependent. (line 6)
  20986. * D30V syntax: D30V-Syntax. (line 6)
  20987. * data alignment on SPARC: Sparc-Aligned-Data. (line 6)
  20988. * data and text sections, joining: R. (line 6)
  20989. * data directive: Data. (line 6)
  20990. * data directive, TIC54X: TIC54X-Directives. (line 59)
  20991. * Data directives: RISC-V-Directives. (line 12)
  20992. * data relocations, ARM: ARM-Relocations. (line 6)
  20993. * data section: Ld Sections. (line 9)
  20994. * data1 directive, M680x0: M68K-Directives. (line 9)
  20995. * data2 directive, M680x0: M68K-Directives. (line 12)
  20996. * dbpc register, V850: V850-Regs. (line 86)
  20997. * dbpsw register, V850: V850-Regs. (line 88)
  20998. * dc directive: Dc. (line 6)
  20999. * dcb directive: Dcb. (line 6)
  21000. * DCCM RAM Configuration Register, ARC: ARC-Regs. (line 101)
  21001. * debuggers, and symbol order: Symbols. (line 10)
  21002. * debugging COFF symbols: Def. (line 6)
  21003. * DEC syntax: PDP-11-Syntax. (line 6)
  21004. * decimal integers: Integers. (line 12)
  21005. * def directive: Def. (line 6)
  21006. * def directive, TIC54X: TIC54X-Directives. (line 101)
  21007. * density instructions: Density Instructions.
  21008. (line 6)
  21009. * dependency tracking: MD. (line 6)
  21010. * deprecated directives: Deprecated. (line 6)
  21011. * desc directive: Desc. (line 6)
  21012. * descriptor, of a.out symbol: Symbol Desc. (line 6)
  21013. * dfloat directive, VAX: VAX-directives. (line 9)
  21014. * difference tables altered: Word. (line 12)
  21015. * difference tables, warning: K. (line 6)
  21016. * differences, mmixal: MMIX-mmixal. (line 6)
  21017. * dim directive: Dim. (line 6)
  21018. * directives and instructions: Statements. (line 20)
  21019. * directives for PowerPC: PowerPC-Pseudo. (line 6)
  21020. * directives for SCORE: SCORE-Pseudo. (line 6)
  21021. * directives, Blackfin: Blackfin Directives.
  21022. (line 6)
  21023. * directives, M32R: M32R-Directives. (line 6)
  21024. * directives, M680x0: M68K-Directives. (line 6)
  21025. * directives, machine independent: Pseudo Ops. (line 6)
  21026. * directives, Xtensa: Xtensa Directives. (line 6)
  21027. * directives, Z8000: Z8000 Directives. (line 6)
  21028. * Disable floating-point instructions: MIPS Floating-Point.
  21029. (line 6)
  21030. * Disable single-precision floating-point operations: MIPS Floating-Point.
  21031. (line 12)
  21032. * displacement sizing character, VAX: VAX-operands. (line 12)
  21033. * dollar local symbols: Symbol Names. (line 113)
  21034. * dot (symbol): Dot. (line 6)
  21035. * double directive: Double. (line 6)
  21036. * double directive, i386: i386-Float. (line 14)
  21037. * double directive, M680x0: M68K-Float. (line 14)
  21038. * double directive, M68HC11: M68HC11-Float. (line 14)
  21039. * double directive, RX: RX-Float. (line 11)
  21040. * double directive, TIC54X: TIC54X-Directives. (line 62)
  21041. * double directive, VAX: VAX-float. (line 15)
  21042. * double directive, x86-64: i386-Float. (line 14)
  21043. * double directive, XGATE: XGATE-Float. (line 13)
  21044. * doublequote (\"): Strings. (line 43)
  21045. * drlist directive, TIC54X: TIC54X-Directives. (line 71)
  21046. * drnolist directive, TIC54X: TIC54X-Directives. (line 71)
  21047. * ds directive: Ds. (line 6)
  21048. * DTP-relative data directives: RISC-V-Directives. (line 18)
  21049. * dword directive, BPF: BPF Directives. (line 15)
  21050. * dword directive, Nios II: Nios II Directives. (line 16)
  21051. * dword directive, PRU: PRU Directives. (line 13)
  21052. * EB command-line option, C-SKY: C-SKY Options. (line 18)
  21053. * EB command-line option, Nios II: Nios II Options. (line 22)
  21054. * ecr register, V850: V850-Regs. (line 78)
  21055. * eight-byte integer: Quad. (line 9)
  21056. * eight-byte integer <1>: 8byte. (line 6)
  21057. * eipc register, V850: V850-Regs. (line 70)
  21058. * eipsw register, V850: V850-Regs. (line 72)
  21059. * eject directive: Eject. (line 6)
  21060. * EL command-line option, C-SKY: C-SKY Options. (line 14)
  21061. * EL command-line option, Nios II: Nios II Options. (line 25)
  21062. * ELF symbol type: Type. (line 22)
  21063. * else directive: Else. (line 6)
  21064. * elseif directive: Elseif. (line 6)
  21065. * empty expressions: Empty Exprs. (line 6)
  21066. * emsg directive, TIC54X: TIC54X-Directives. (line 75)
  21067. * emulation: Overview. (line 1094)
  21068. * encoding options, i386: i386-Mnemonics. (line 34)
  21069. * encoding options, x86-64: i386-Mnemonics. (line 34)
  21070. * end directive: End. (line 6)
  21071. * endef directive: Endef. (line 6)
  21072. * endfunc directive: Endfunc. (line 6)
  21073. * endianness, MIPS: Overview. (line 840)
  21074. * endianness, PJ: Overview. (line 744)
  21075. * endif directive: Endif. (line 6)
  21076. * endloop directive, TIC54X: TIC54X-Directives. (line 141)
  21077. * endm directive: Macro. (line 137)
  21078. * endm directive, TIC54X: TIC54X-Directives. (line 151)
  21079. * endproc directive, OpenRISC: OpenRISC-Directives.
  21080. (line 24)
  21081. * endstruct directive, TIC54X: TIC54X-Directives. (line 214)
  21082. * endunion directive, TIC54X: TIC54X-Directives. (line 248)
  21083. * environment settings, TIC54X: TIC54X-Env. (line 6)
  21084. * EOF, newline must precede: Statements. (line 14)
  21085. * ep register, V850: V850-Regs. (line 66)
  21086. * Epiphany line comment character: Epiphany-Chars. (line 6)
  21087. * Epiphany line separator: Epiphany-Chars. (line 14)
  21088. * Epiphany options: Epiphany Options. (line 6)
  21089. * Epiphany support: Epiphany-Dependent. (line 6)
  21090. * equ directive: Equ. (line 6)
  21091. * equ directive, TIC54X: TIC54X-Directives. (line 189)
  21092. * equiv directive: Equiv. (line 6)
  21093. * eqv directive: Eqv. (line 6)
  21094. * err directive: Err. (line 6)
  21095. * error directive: Error. (line 6)
  21096. * error messages: Errors. (line 6)
  21097. * error on valid input: Bug Criteria. (line 12)
  21098. * errors, caused by warnings: W. (line 16)
  21099. * errors, continuing after: Z. (line 6)
  21100. * escape codes, character: Strings. (line 15)
  21101. * eval directive, TIC54X: TIC54X-Directives. (line 22)
  21102. * even: Z8000 Directives. (line 58)
  21103. * even directive, M680x0: M68K-Directives. (line 15)
  21104. * even directive, TIC54X: TIC54X-Directives. (line 6)
  21105. * Exception Cause Register, ARC: ARC-Regs. (line 63)
  21106. * Exception Return Address, ARC: ARC-Regs. (line 76)
  21107. * exitm directive: Macro. (line 140)
  21108. * expr (internal section): As Sections. (line 17)
  21109. * expression arguments: Arguments. (line 6)
  21110. * expressions: Expressions. (line 6)
  21111. * expressions, comparison: Infix Ops. (line 56)
  21112. * expressions, empty: Empty Exprs. (line 6)
  21113. * expressions, integer: Integer Exprs. (line 6)
  21114. * extAuxRegister directive, ARC: ARC Directives. (line 105)
  21115. * extCondCode directive, ARC: ARC Directives. (line 126)
  21116. * extCoreRegister directive, ARC: ARC Directives. (line 137)
  21117. * extend directive M680x0: M68K-Float. (line 17)
  21118. * extend directive M68HC11: M68HC11-Float. (line 17)
  21119. * extend directive XGATE: XGATE-Float. (line 16)
  21120. * extension core registers, ARC: ARC-Regs. (line 38)
  21121. * extern directive: Extern. (line 6)
  21122. * extInstruction directive, ARC: ARC Directives. (line 164)
  21123. * fail directive: Fail. (line 6)
  21124. * far_mode directive, TIC54X: TIC54X-Directives. (line 80)
  21125. * faster processing (-f): f. (line 6)
  21126. * fatal signal: Bug Criteria. (line 9)
  21127. * fclist directive, TIC54X: TIC54X-Directives. (line 85)
  21128. * fcnolist directive, TIC54X: TIC54X-Directives. (line 85)
  21129. * fepc register, V850: V850-Regs. (line 74)
  21130. * fepsw register, V850: V850-Regs. (line 76)
  21131. * ffloat directive, VAX: VAX-directives. (line 13)
  21132. * field directive, TIC54X: TIC54X-Directives. (line 89)
  21133. * file directive: File. (line 6)
  21134. * file directive, MSP 430: MSP430 Directives. (line 6)
  21135. * file name, logical: File. (line 13)
  21136. * file names and line numbers, in warnings/errors: Errors. (line 16)
  21137. * files, including: Include. (line 6)
  21138. * files, input: Input Files. (line 6)
  21139. * fill directive: Fill. (line 6)
  21140. * filling memory: Skip. (line 6)
  21141. * filling memory <1>: Space. (line 6)
  21142. * filling memory with no-op instructions: Nops. (line 6)
  21143. * filling memory with zero bytes: Zero. (line 6)
  21144. * FLIX syntax: Xtensa Syntax. (line 6)
  21145. * float directive: Float. (line 6)
  21146. * float directive, i386: i386-Float. (line 14)
  21147. * float directive, M680x0: M68K-Float. (line 11)
  21148. * float directive, M68HC11: M68HC11-Float. (line 11)
  21149. * float directive, RX: RX-Float. (line 8)
  21150. * float directive, TIC54X: TIC54X-Directives. (line 62)
  21151. * float directive, VAX: VAX-float. (line 15)
  21152. * float directive, x86-64: i386-Float. (line 14)
  21153. * float directive, XGATE: XGATE-Float. (line 10)
  21154. * floating point numbers: Flonums. (line 6)
  21155. * floating point numbers (double): Double. (line 6)
  21156. * floating point numbers (single): Float. (line 6)
  21157. * floating point numbers (single) <1>: Single. (line 6)
  21158. * floating point, AArch64 (IEEE): AArch64 Floating Point.
  21159. (line 6)
  21160. * floating point, Alpha (IEEE): Alpha Floating Point.
  21161. (line 6)
  21162. * floating point, ARM (IEEE): ARM Floating Point. (line 6)
  21163. * floating point, D10V: D10V-Float. (line 6)
  21164. * floating point, D30V: D30V-Float. (line 6)
  21165. * floating point, H8/300 (IEEE): H8/300 Floating Point.
  21166. (line 6)
  21167. * floating point, HPPA (IEEE): HPPA Floating Point.
  21168. (line 6)
  21169. * floating point, i386: i386-Float. (line 6)
  21170. * floating point, M680x0: M68K-Float. (line 6)
  21171. * floating point, M68HC11: M68HC11-Float. (line 6)
  21172. * floating point, MSP 430 (IEEE): MSP430 Floating Point.
  21173. (line 6)
  21174. * floating point, OPENRISC (IEEE): OpenRISC-Float. (line 6)
  21175. * floating point, RX: RX-Float. (line 6)
  21176. * floating point, s390: s390 Floating Point.
  21177. (line 6)
  21178. * floating point, SH (IEEE): SH Floating Point. (line 6)
  21179. * floating point, SPARC (IEEE): Sparc-Float. (line 6)
  21180. * floating point, V850 (IEEE): V850 Floating Point.
  21181. (line 6)
  21182. * floating point, VAX: VAX-float. (line 6)
  21183. * floating point, WebAssembly (IEEE): WebAssembly-Floating-Point.
  21184. (line 6)
  21185. * floating point, x86-64: i386-Float. (line 6)
  21186. * floating point, XGATE: XGATE-Float. (line 6)
  21187. * floating point, Z80: Z80 Floating Point. (line 6)
  21188. * flonums: Flonums. (line 6)
  21189. * force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21190. * format of error messages: Errors. (line 38)
  21191. * format of warning messages: Errors. (line 12)
  21192. * formfeed (\f): Strings. (line 18)
  21193. * four-byte integer: 4byte. (line 6)
  21194. * fpic command-line option, C-SKY: C-SKY Options. (line 22)
  21195. * frame pointer, ARC: ARC-Regs. (line 17)
  21196. * func directive: Func. (line 6)
  21197. * functions, in expressions: Operators. (line 6)
  21198. * gfloat directive, VAX: VAX-directives. (line 17)
  21199. * global: Z8000 Directives. (line 21)
  21200. * global directive: Global. (line 6)
  21201. * global directive, TIC54X: TIC54X-Directives. (line 101)
  21202. * global pointer, ARC: ARC-Regs. (line 14)
  21203. * got directive, Nios II: Nios II Relocations.
  21204. (line 38)
  21205. * gotoff directive, Nios II: Nios II Relocations.
  21206. (line 38)
  21207. * gotoff_hiadj directive, Nios II: Nios II Relocations.
  21208. (line 38)
  21209. * gotoff_lo directive, Nios II: Nios II Relocations.
  21210. (line 38)
  21211. * got_hiadj directive, Nios II: Nios II Relocations.
  21212. (line 38)
  21213. * got_lo directive, Nios II: Nios II Relocations.
  21214. (line 38)
  21215. * gp register, MIPS: MIPS Small Data. (line 6)
  21216. * gp register, V850: V850-Regs. (line 14)
  21217. * gprel directive, Nios II: Nios II Relocations.
  21218. (line 26)
  21219. * grouping data: Sub-Sections. (line 6)
  21220. * H8/300 addressing modes: H8/300-Addressing. (line 6)
  21221. * H8/300 floating point (IEEE): H8/300 Floating Point.
  21222. (line 6)
  21223. * H8/300 line comment character: H8/300-Chars. (line 6)
  21224. * H8/300 line separator: H8/300-Chars. (line 8)
  21225. * H8/300 machine directives (none): H8/300 Directives. (line 6)
  21226. * H8/300 opcode summary: H8/300 Opcodes. (line 6)
  21227. * H8/300 options: H8/300 Options. (line 6)
  21228. * H8/300 registers: H8/300-Regs. (line 6)
  21229. * H8/300 size suffixes: H8/300 Opcodes. (line 160)
  21230. * H8/300 support: H8/300-Dependent. (line 6)
  21231. * H8/300H, assembling for: H8/300 Directives. (line 8)
  21232. * half directive, BPF: BPF Directives. (line 9)
  21233. * half directive, Nios II: Nios II Directives. (line 10)
  21234. * half directive, SPARC: Sparc-Directives. (line 17)
  21235. * half directive, TIC54X: TIC54X-Directives. (line 109)
  21236. * hex character code (\XD...): Strings. (line 36)
  21237. * hexadecimal integers: Integers. (line 15)
  21238. * hexadecimal prefix, S12Z: S12Z Options. (line 17)
  21239. * hexadecimal prefix, Z80: Z80-Chars. (line 15)
  21240. * hfloat directive, VAX: VAX-directives. (line 21)
  21241. * hi directive, Nios II: Nios II Relocations.
  21242. (line 20)
  21243. * hi pseudo-op, V850: V850 Opcodes. (line 33)
  21244. * hi0 pseudo-op, V850: V850 Opcodes. (line 10)
  21245. * hiadj directive, Nios II: Nios II Relocations.
  21246. (line 6)
  21247. * hidden directive: Hidden. (line 6)
  21248. * high directive, M32R: M32R-Directives. (line 18)
  21249. * hilo pseudo-op, V850: V850 Opcodes. (line 55)
  21250. * HPPA directives not supported: HPPA Directives. (line 11)
  21251. * HPPA floating point (IEEE): HPPA Floating Point.
  21252. (line 6)
  21253. * HPPA Syntax: HPPA Options. (line 7)
  21254. * HPPA-only directives: HPPA Directives. (line 24)
  21255. * hword directive: hword. (line 6)
  21256. * i386 16-bit code: i386-16bit. (line 6)
  21257. * i386 arch directive: i386-Arch. (line 6)
  21258. * i386 att_syntax pseudo op: i386-Variations. (line 6)
  21259. * i386 conversion instructions: i386-Mnemonics. (line 56)
  21260. * i386 floating point: i386-Float. (line 6)
  21261. * i386 immediate operands: i386-Variations. (line 15)
  21262. * i386 instruction naming: i386-Mnemonics. (line 9)
  21263. * i386 instruction prefixes: i386-Prefixes. (line 6)
  21264. * i386 intel_syntax pseudo op: i386-Variations. (line 6)
  21265. * i386 jump optimization: i386-Jumps. (line 6)
  21266. * i386 jump, call, return: i386-Variations. (line 45)
  21267. * i386 jump/call operands: i386-Variations. (line 15)
  21268. * i386 line comment character: i386-Chars. (line 6)
  21269. * i386 line separator: i386-Chars. (line 18)
  21270. * i386 memory references: i386-Memory. (line 6)
  21271. * i386 mnemonic compatibility: i386-Mnemonics. (line 81)
  21272. * i386 mul, imul instructions: i386-Notes. (line 6)
  21273. * i386 options: i386-Options. (line 6)
  21274. * i386 register operands: i386-Variations. (line 15)
  21275. * i386 registers: i386-Regs. (line 6)
  21276. * i386 sections: i386-Variations. (line 51)
  21277. * i386 size suffixes: i386-Variations. (line 28)
  21278. * i386 source, destination operands: i386-Variations. (line 21)
  21279. * i386 support: i386-Dependent. (line 6)
  21280. * i386 syntax compatibility: i386-Variations. (line 6)
  21281. * i80386 support: i386-Dependent. (line 6)
  21282. * IA-64 line comment character: IA-64-Chars. (line 6)
  21283. * IA-64 line separator: IA-64-Chars. (line 8)
  21284. * IA-64 options: IA-64 Options. (line 6)
  21285. * IA-64 Processor-status-Register bit names: IA-64-Bits. (line 6)
  21286. * IA-64 registers: IA-64-Regs. (line 6)
  21287. * IA-64 relocations: IA-64-Relocs. (line 6)
  21288. * IA-64 support: IA-64-Dependent. (line 6)
  21289. * IA-64 Syntax: IA-64 Options. (line 85)
  21290. * ident directive: Ident. (line 6)
  21291. * identifiers, ARM: ARM-Chars. (line 19)
  21292. * identifiers, MSP 430: MSP430-Chars. (line 17)
  21293. * if directive: If. (line 6)
  21294. * ifb directive: If. (line 21)
  21295. * ifc directive: If. (line 25)
  21296. * ifdef directive: If. (line 16)
  21297. * ifeq directive: If. (line 33)
  21298. * ifeqs directive: If. (line 36)
  21299. * ifge directive: If. (line 40)
  21300. * ifgt directive: If. (line 44)
  21301. * ifle directive: If. (line 48)
  21302. * iflt directive: If. (line 52)
  21303. * ifnb directive: If. (line 56)
  21304. * ifnc directive: If. (line 61)
  21305. * ifndef directive: If. (line 65)
  21306. * ifne directive: If. (line 72)
  21307. * ifnes directive: If. (line 76)
  21308. * ifnotdef directive: If. (line 65)
  21309. * immediate character, AArch64: AArch64-Chars. (line 13)
  21310. * immediate character, ARM: ARM-Chars. (line 17)
  21311. * immediate character, M680x0: M68K-Chars. (line 13)
  21312. * immediate character, VAX: VAX-operands. (line 6)
  21313. * immediate fields, relaxation: Xtensa Immediate Relaxation.
  21314. (line 6)
  21315. * immediate operands, i386: i386-Variations. (line 15)
  21316. * immediate operands, x86-64: i386-Variations. (line 15)
  21317. * imul instruction, i386: i386-Notes. (line 6)
  21318. * imul instruction, x86-64: i386-Notes. (line 6)
  21319. * incbin directive: Incbin. (line 6)
  21320. * include directive: Include. (line 6)
  21321. * include directive search path: I. (line 6)
  21322. * indirect character, VAX: VAX-operands. (line 9)
  21323. * infix operators: Infix Ops. (line 6)
  21324. * inhibiting interrupts, i386: i386-Prefixes. (line 36)
  21325. * input: Input Files. (line 6)
  21326. * input file linenumbers: Input Files. (line 35)
  21327. * INSN directives: RISC-V-Directives. (line 88)
  21328. * instruction aliases, s390: s390 Aliases. (line 6)
  21329. * instruction bundle: Bundle directives. (line 9)
  21330. * instruction expansion, CRIS: CRIS-Expand. (line 6)
  21331. * instruction expansion, MMIX: MMIX-Expand. (line 6)
  21332. * instruction formats, risc-v: RISC-V-Formats. (line 6)
  21333. * instruction formats, s390: s390 Formats. (line 6)
  21334. * instruction marker, s390: s390 Instruction Marker.
  21335. (line 6)
  21336. * instruction mnemonics, s390: s390 Mnemonics. (line 6)
  21337. * instruction naming, i386: i386-Mnemonics. (line 9)
  21338. * instruction naming, x86-64: i386-Mnemonics. (line 9)
  21339. * instruction operand modifier, s390: s390 Operand Modifier.
  21340. (line 6)
  21341. * instruction operands, s390: s390 Operands. (line 6)
  21342. * instruction prefixes, i386: i386-Prefixes. (line 6)
  21343. * instruction set, M680x0: M68K-opcodes. (line 6)
  21344. * instruction set, M68HC11: M68HC11-opcodes. (line 6)
  21345. * instruction set, XGATE: XGATE-opcodes. (line 5)
  21346. * instruction summary, AVR: AVR Opcodes. (line 6)
  21347. * instruction summary, D10V: D10V-Opcodes. (line 6)
  21348. * instruction summary, D30V: D30V-Opcodes. (line 6)
  21349. * instruction summary, H8/300: H8/300 Opcodes. (line 6)
  21350. * instruction summary, LM32: LM32 Opcodes. (line 6)
  21351. * instruction summary, LM32 <1>: OpenRISC-Opcodes. (line 6)
  21352. * instruction summary, SH: SH Opcodes. (line 6)
  21353. * instruction summary, Z8000: Z8000 Opcodes. (line 6)
  21354. * instruction syntax, s390: s390 Syntax. (line 6)
  21355. * instructions and directives: Statements. (line 20)
  21356. * int directive: Int. (line 6)
  21357. * int directive, H8/300: H8/300 Directives. (line 6)
  21358. * int directive, i386: i386-Float. (line 21)
  21359. * int directive, TIC54X: TIC54X-Directives. (line 109)
  21360. * int directive, x86-64: i386-Float. (line 21)
  21361. * integer expressions: Integer Exprs. (line 6)
  21362. * integer, 16-byte: Octa. (line 6)
  21363. * integer, 2-byte: 2byte. (line 6)
  21364. * integer, 4-byte: 4byte. (line 6)
  21365. * integer, 8-byte: Quad. (line 9)
  21366. * integer, 8-byte <1>: 8byte. (line 6)
  21367. * integers: Integers. (line 6)
  21368. * integers, 16-bit: hword. (line 6)
  21369. * integers, 32-bit: Int. (line 6)
  21370. * integers, binary: Integers. (line 6)
  21371. * integers, decimal: Integers. (line 12)
  21372. * integers, hexadecimal: Integers. (line 15)
  21373. * integers, octal: Integers. (line 9)
  21374. * integers, one byte: Byte. (line 6)
  21375. * intel_syntax pseudo op, i386: i386-Variations. (line 6)
  21376. * intel_syntax pseudo op, x86-64: i386-Variations. (line 6)
  21377. * internal assembler sections: As Sections. (line 6)
  21378. * internal directive: Internal. (line 6)
  21379. * interrupt link register, ARC: ARC-Regs. (line 27)
  21380. * Interrupt Vector Base address, ARC: ARC-Regs. (line 66)
  21381. * invalid input: Bug Criteria. (line 14)
  21382. * invocation summary: Overview. (line 6)
  21383. * IP2K architecture options: IP2K-Opts. (line 9)
  21384. * IP2K architecture options <1>: IP2K-Opts. (line 14)
  21385. * IP2K line comment character: IP2K-Chars. (line 6)
  21386. * IP2K line separator: IP2K-Chars. (line 14)
  21387. * IP2K options: IP2K-Opts. (line 6)
  21388. * IP2K support: IP2K-Dependent. (line 6)
  21389. * irp directive: Irp. (line 6)
  21390. * irpc directive: Irpc. (line 6)
  21391. * joining text and data sections: R. (line 6)
  21392. * jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  21393. * jump instructions, i386: i386-Mnemonics. (line 75)
  21394. * jump instructions, relaxation: Xtensa Jump Relaxation.
  21395. (line 6)
  21396. * jump instructions, x86-64: i386-Mnemonics. (line 75)
  21397. * jump optimization, i386: i386-Jumps. (line 6)
  21398. * jump optimization, x86-64: i386-Jumps. (line 6)
  21399. * jump/call operands, i386: i386-Variations. (line 15)
  21400. * jump/call operands, x86-64: i386-Variations. (line 15)
  21401. * L16SI instructions, relaxation: Xtensa Immediate Relaxation.
  21402. (line 23)
  21403. * L16UI instructions, relaxation: Xtensa Immediate Relaxation.
  21404. (line 23)
  21405. * L32I instructions, relaxation: Xtensa Immediate Relaxation.
  21406. (line 23)
  21407. * L8UI instructions, relaxation: Xtensa Immediate Relaxation.
  21408. (line 23)
  21409. * label (:): Statements. (line 31)
  21410. * label directive, TIC54X: TIC54X-Directives. (line 121)
  21411. * labels: Labels. (line 6)
  21412. * largecomm directive, ELF: i386-Directives. (line 17)
  21413. * lcomm directive: Lcomm. (line 6)
  21414. * lcomm directive <1>: ARC Directives. (line 9)
  21415. * lcomm directive, COFF: i386-Directives. (line 6)
  21416. * lcommon directive, ARC: ARC Directives. (line 24)
  21417. * ld: Object. (line 15)
  21418. * ldouble directive M680x0: M68K-Float. (line 17)
  21419. * ldouble directive M68HC11: M68HC11-Float. (line 17)
  21420. * ldouble directive XGATE: XGATE-Float. (line 16)
  21421. * ldouble directive, TIC54X: TIC54X-Directives. (line 62)
  21422. * LDR reg,=<expr> pseudo op, AArch64: AArch64 Opcodes. (line 9)
  21423. * LDR reg,=<label> pseudo op, ARM: ARM Opcodes. (line 15)
  21424. * LEB128 directives: RISC-V-Directives. (line 27)
  21425. * length directive, TIC54X: TIC54X-Directives. (line 125)
  21426. * length of symbols: Symbol Intro. (line 19)
  21427. * level 1 interrupt link register, ARC: ARC-Regs. (line 23)
  21428. * level 2 interrupt link register, ARC: ARC-Regs. (line 31)
  21429. * lflags directive (ignored): Lflags. (line 6)
  21430. * line: ARC-Chars. (line 30)
  21431. * line comment character: Comments. (line 19)
  21432. * line comment character, AArch64: AArch64-Chars. (line 6)
  21433. * line comment character, Alpha: Alpha-Chars. (line 6)
  21434. * line comment character, ARC: ARC-Chars. (line 11)
  21435. * line comment character, ARM: ARM-Chars. (line 6)
  21436. * line comment character, AVR: AVR-Chars. (line 6)
  21437. * line comment character, BPF: BPF-Chars. (line 6)
  21438. * line comment character, CR16: CR16-Chars. (line 6)
  21439. * line comment character, D10V: D10V-Chars. (line 6)
  21440. * line comment character, D30V: D30V-Chars. (line 6)
  21441. * line comment character, Epiphany: Epiphany-Chars. (line 6)
  21442. * line comment character, H8/300: H8/300-Chars. (line 6)
  21443. * line comment character, i386: i386-Chars. (line 6)
  21444. * line comment character, IA-64: IA-64-Chars. (line 6)
  21445. * line comment character, IP2K: IP2K-Chars. (line 6)
  21446. * line comment character, LM32: LM32-Chars. (line 6)
  21447. * line comment character, M32C: M32C-Chars. (line 6)
  21448. * line comment character, M680x0: M68K-Chars. (line 6)
  21449. * line comment character, M68HC11: M68HC11-Syntax. (line 17)
  21450. * line comment character, Meta: Meta-Chars. (line 6)
  21451. * line comment character, MicroBlaze: MicroBlaze-Chars. (line 6)
  21452. * line comment character, MIPS: MIPS-Chars. (line 6)
  21453. * line comment character, MSP 430: MSP430-Chars. (line 6)
  21454. * line comment character, Nios II: Nios II Chars. (line 6)
  21455. * line comment character, NS32K: NS32K-Chars. (line 6)
  21456. * line comment character, OpenRISC: OpenRISC-Chars. (line 6)
  21457. * line comment character, PJ: PJ-Chars. (line 6)
  21458. * line comment character, PowerPC: PowerPC-Chars. (line 6)
  21459. * line comment character, PRU: PRU Chars. (line 6)
  21460. * line comment character, RL78: RL78-Chars. (line 6)
  21461. * line comment character, RX: RX-Chars. (line 6)
  21462. * line comment character, S12Z: S12Z Syntax Overview.
  21463. (line 32)
  21464. * line comment character, s390: s390 Characters. (line 6)
  21465. * line comment character, SCORE: SCORE-Chars. (line 6)
  21466. * line comment character, SH: SH-Chars. (line 6)
  21467. * line comment character, Sparc: Sparc-Chars. (line 6)
  21468. * line comment character, TIC54X: TIC54X-Chars. (line 6)
  21469. * line comment character, TIC6X: TIC6X Syntax. (line 6)
  21470. * line comment character, V850: V850-Chars. (line 6)
  21471. * line comment character, VAX: VAX-Chars. (line 6)
  21472. * line comment character, Visium: Visium Characters. (line 6)
  21473. * line comment character, WebAssembly: WebAssembly-Chars. (line 6)
  21474. * line comment character, XGATE: XGATE-Syntax. (line 16)
  21475. * line comment character, XStormy16: XStormy16-Chars. (line 6)
  21476. * line comment character, Z80: Z80-Chars. (line 6)
  21477. * line comment character, Z8000: Z8000-Chars. (line 6)
  21478. * line comment characters, CRIS: CRIS-Chars. (line 6)
  21479. * line comment characters, MMIX: MMIX-Chars. (line 6)
  21480. * line directive: Line. (line 6)
  21481. * line directive, MSP 430: MSP430 Directives. (line 14)
  21482. * line numbers, in input files: Input Files. (line 35)
  21483. * line separator character: Statements. (line 6)
  21484. * line separator character, Nios II: Nios II Chars. (line 6)
  21485. * line separator, AArch64: AArch64-Chars. (line 10)
  21486. * line separator, Alpha: Alpha-Chars. (line 11)
  21487. * line separator, ARC: ARC-Chars. (line 27)
  21488. * line separator, ARM: ARM-Chars. (line 14)
  21489. * line separator, AVR: AVR-Chars. (line 14)
  21490. * line separator, CR16: CR16-Chars. (line 12)
  21491. * line separator, Epiphany: Epiphany-Chars. (line 14)
  21492. * line separator, H8/300: H8/300-Chars. (line 8)
  21493. * line separator, i386: i386-Chars. (line 18)
  21494. * line separator, IA-64: IA-64-Chars. (line 8)
  21495. * line separator, IP2K: IP2K-Chars. (line 14)
  21496. * line separator, LM32: LM32-Chars. (line 12)
  21497. * line separator, M32C: M32C-Chars. (line 14)
  21498. * line separator, M680x0: M68K-Chars. (line 20)
  21499. * line separator, M68HC11: M68HC11-Syntax. (line 26)
  21500. * line separator, Meta: Meta-Chars. (line 8)
  21501. * line separator, MicroBlaze: MicroBlaze-Chars. (line 14)
  21502. * line separator, MIPS: MIPS-Chars. (line 14)
  21503. * line separator, MSP 430: MSP430-Chars. (line 14)
  21504. * line separator, NS32K: NS32K-Chars. (line 18)
  21505. * line separator, OpenRISC: OpenRISC-Chars. (line 9)
  21506. * line separator, PJ: PJ-Chars. (line 14)
  21507. * line separator, PowerPC: PowerPC-Chars. (line 18)
  21508. * line separator, RL78: RL78-Chars. (line 14)
  21509. * line separator, RX: RX-Chars. (line 14)
  21510. * line separator, S12Z: S12Z Syntax Overview.
  21511. (line 41)
  21512. * line separator, s390: s390 Characters. (line 13)
  21513. * line separator, SCORE: SCORE-Chars. (line 14)
  21514. * line separator, SH: SH-Chars. (line 8)
  21515. * line separator, Sparc: Sparc-Chars. (line 14)
  21516. * line separator, TIC54X: TIC54X-Chars. (line 17)
  21517. * line separator, TIC6X: TIC6X Syntax. (line 13)
  21518. * line separator, V850: V850-Chars. (line 13)
  21519. * line separator, VAX: VAX-Chars. (line 14)
  21520. * line separator, Visium: Visium Characters. (line 14)
  21521. * line separator, XGATE: XGATE-Syntax. (line 25)
  21522. * line separator, XStormy16: XStormy16-Chars. (line 14)
  21523. * line separator, Z80: Z80-Chars. (line 13)
  21524. * line separator, Z8000: Z8000-Chars. (line 13)
  21525. * lines starting with #: Comments. (line 33)
  21526. * link register, ARC: ARC-Regs. (line 35)
  21527. * linker: Object. (line 15)
  21528. * linker, and assembler: Secs Background. (line 10)
  21529. * linkonce directive: Linkonce. (line 6)
  21530. * list directive: List. (line 6)
  21531. * list directive, TIC54X: TIC54X-Directives. (line 129)
  21532. * listing control, turning off: Nolist. (line 6)
  21533. * listing control, turning on: List. (line 6)
  21534. * listing control: new page: Eject. (line 6)
  21535. * listing control: paper size: Psize. (line 6)
  21536. * listing control: subtitle: Sbttl. (line 6)
  21537. * listing control: title line: Title. (line 6)
  21538. * listings, enabling: a. (line 6)
  21539. * literal directive: Literal Directive. (line 6)
  21540. * literal pool entries, s390: s390 Literal Pool Entries.
  21541. (line 6)
  21542. * literal_position directive: Literal Position Directive.
  21543. (line 6)
  21544. * literal_prefix directive: Literal Prefix Directive.
  21545. (line 6)
  21546. * little endian output, MIPS: Overview. (line 843)
  21547. * little endian output, PJ: Overview. (line 747)
  21548. * little-endian output, MIPS: MIPS Options. (line 13)
  21549. * little-endian output, TIC6X: TIC6X Options. (line 46)
  21550. * LM32 line comment character: LM32-Chars. (line 6)
  21551. * LM32 line separator: LM32-Chars. (line 12)
  21552. * LM32 modifiers: LM32-Modifiers. (line 6)
  21553. * LM32 opcode summary: LM32 Opcodes. (line 6)
  21554. * LM32 options (none): LM32 Options. (line 6)
  21555. * LM32 register names: LM32-Regs. (line 6)
  21556. * LM32 support: LM32-Dependent. (line 6)
  21557. * ln directive: Ln. (line 6)
  21558. * lo directive, Nios II: Nios II Relocations.
  21559. (line 23)
  21560. * lo pseudo-op, V850: V850 Opcodes. (line 22)
  21561. * loc directive: Loc. (line 6)
  21562. * local common symbols: Lcomm. (line 6)
  21563. * local directive: Local. (line 6)
  21564. * local labels: Symbol Names. (line 43)
  21565. * local symbol names: Symbol Names. (line 30)
  21566. * local symbols, retaining in output: L. (line 6)
  21567. * location counter: Dot. (line 6)
  21568. * location counter, advancing: Org. (line 6)
  21569. * location counter, Z80: Z80-Chars. (line 15)
  21570. * loc_mark_labels directive: Loc_mark_labels. (line 6)
  21571. * logical file name: File. (line 13)
  21572. * logical line number: Line. (line 6)
  21573. * logical line numbers: Comments. (line 33)
  21574. * long directive: Long. (line 6)
  21575. * long directive, i386: i386-Float. (line 21)
  21576. * long directive, TIC54X: TIC54X-Directives. (line 133)
  21577. * long directive, x86-64: i386-Float. (line 21)
  21578. * longcall pseudo-op, V850: V850 Opcodes. (line 122)
  21579. * longcalls directive: Longcalls Directive.
  21580. (line 6)
  21581. * longjump pseudo-op, V850: V850 Opcodes. (line 128)
  21582. * Loongson Content Address Memory (CAM) generation override: MIPS ASE Instruction Generation Overrides.
  21583. (line 81)
  21584. * Loongson EXTensions (EXT) instructions generation override: MIPS ASE Instruction Generation Overrides.
  21585. (line 86)
  21586. * Loongson EXTensions R2 (EXT2) instructions generation override: MIPS ASE Instruction Generation Overrides.
  21587. (line 91)
  21588. * Loongson MultiMedia extensions Instructions (MMI) generation override: MIPS ASE Instruction Generation Overrides.
  21589. (line 76)
  21590. * loop counter, ARC: ARC-Regs. (line 41)
  21591. * loop directive, TIC54X: TIC54X-Directives. (line 141)
  21592. * LOOP instructions, alignment: Xtensa Automatic Alignment.
  21593. (line 6)
  21594. * low directive, M32R: M32R-Directives. (line 9)
  21595. * lp register, V850: V850-Regs. (line 68)
  21596. * lval: Z8000 Directives. (line 27)
  21597. * LWP, i386: i386-LWP. (line 6)
  21598. * LWP, x86-64: i386-LWP. (line 6)
  21599. * M16C architecture option: M32C-Opts. (line 12)
  21600. * M32C architecture option: M32C-Opts. (line 9)
  21601. * M32C line comment character: M32C-Chars. (line 6)
  21602. * M32C line separator: M32C-Chars. (line 14)
  21603. * M32C modifiers: M32C-Modifiers. (line 6)
  21604. * M32C options: M32C-Opts. (line 6)
  21605. * M32C support: M32C-Dependent. (line 6)
  21606. * M32R architecture options: M32R-Opts. (line 9)
  21607. * M32R architecture options <1>: M32R-Opts. (line 17)
  21608. * M32R architecture options <2>: M32R-Opts. (line 21)
  21609. * M32R directives: M32R-Directives. (line 6)
  21610. * M32R options: M32R-Opts. (line 6)
  21611. * M32R support: M32R-Dependent. (line 6)
  21612. * M32R warnings: M32R-Warnings. (line 6)
  21613. * M680x0 addressing modes: M68K-Syntax. (line 21)
  21614. * M680x0 architecture options: M68K-Opts. (line 99)
  21615. * M680x0 branch improvement: M68K-Branch. (line 6)
  21616. * M680x0 directives: M68K-Directives. (line 6)
  21617. * M680x0 floating point: M68K-Float. (line 6)
  21618. * M680x0 immediate character: M68K-Chars. (line 13)
  21619. * M680x0 line comment character: M68K-Chars. (line 6)
  21620. * M680x0 line separator: M68K-Chars. (line 20)
  21621. * M680x0 opcodes: M68K-opcodes. (line 6)
  21622. * M680x0 options: M68K-Opts. (line 6)
  21623. * M680x0 pseudo-opcodes: M68K-Branch. (line 6)
  21624. * M680x0 size modifiers: M68K-Syntax. (line 8)
  21625. * M680x0 support: M68K-Dependent. (line 6)
  21626. * M680x0 syntax: M68K-Syntax. (line 8)
  21627. * M68HC11 addressing modes: M68HC11-Syntax. (line 29)
  21628. * M68HC11 and M68HC12 support: M68HC11-Dependent. (line 6)
  21629. * M68HC11 assembler directive .far: M68HC11-Directives. (line 20)
  21630. * M68HC11 assembler directive .interrupt: M68HC11-Directives.
  21631. (line 26)
  21632. * M68HC11 assembler directive .mode: M68HC11-Directives. (line 16)
  21633. * M68HC11 assembler directive .relax: M68HC11-Directives. (line 10)
  21634. * M68HC11 assembler directive .xrefb: M68HC11-Directives. (line 31)
  21635. * M68HC11 assembler directives: M68HC11-Directives. (line 6)
  21636. * M68HC11 branch improvement: M68HC11-Branch. (line 6)
  21637. * M68HC11 floating point: M68HC11-Float. (line 6)
  21638. * M68HC11 line comment character: M68HC11-Syntax. (line 17)
  21639. * M68HC11 line separator: M68HC11-Syntax. (line 26)
  21640. * M68HC11 modifiers: M68HC11-Modifiers. (line 6)
  21641. * M68HC11 opcodes: M68HC11-opcodes. (line 6)
  21642. * M68HC11 options: M68HC11-Opts. (line 6)
  21643. * M68HC11 pseudo-opcodes: M68HC11-Branch. (line 6)
  21644. * M68HC11 syntax: M68HC11-Syntax. (line 6)
  21645. * M68HC12 assembler directives: M68HC11-Directives. (line 6)
  21646. * mA6 command-line option, ARC: ARC Options. (line 14)
  21647. * mA7 command-line option, ARC: ARC Options. (line 39)
  21648. * machine dependencies: Machine Dependencies.
  21649. (line 6)
  21650. * machine directives, AArch64: AArch64 Directives. (line 6)
  21651. * machine directives, ARC: ARC Directives. (line 6)
  21652. * machine directives, ARM: ARM Directives. (line 6)
  21653. * machine directives, BPF: BPF Directives. (line 6)
  21654. * machine directives, H8/300 (none): H8/300 Directives. (line 6)
  21655. * machine directives, MSP 430: MSP430 Directives. (line 6)
  21656. * machine directives, Nios II: Nios II Directives. (line 6)
  21657. * machine directives, OPENRISC: OpenRISC-Directives.
  21658. (line 6)
  21659. * machine directives, PRU: PRU Directives. (line 6)
  21660. * machine directives, RISC-V: RISC-V-Directives. (line 6)
  21661. * machine directives, SH: SH Directives. (line 6)
  21662. * machine directives, SPARC: Sparc-Directives. (line 6)
  21663. * machine directives, TIC54X: TIC54X-Directives. (line 6)
  21664. * machine directives, TIC6X: TIC6X Directives. (line 6)
  21665. * machine directives, TILE-Gx: TILE-Gx Directives. (line 6)
  21666. * machine directives, TILEPro: TILEPro Directives. (line 6)
  21667. * machine directives, V850: V850 Directives. (line 6)
  21668. * machine directives, VAX: VAX-directives. (line 6)
  21669. * machine directives, x86: i386-Directives. (line 6)
  21670. * machine directives, XStormy16: XStormy16 Directives.
  21671. (line 6)
  21672. * machine independent directives: Pseudo Ops. (line 6)
  21673. * machine instructions (not covered): Manual. (line 14)
  21674. * machine relocations, Nios II: Nios II Relocations.
  21675. (line 6)
  21676. * machine relocations, PRU: PRU Relocations. (line 6)
  21677. * machine-independent syntax: Syntax. (line 6)
  21678. * macro directive: Macro. (line 28)
  21679. * macro directive, TIC54X: TIC54X-Directives. (line 151)
  21680. * macros: Macro. (line 6)
  21681. * macros, count executed: Macro. (line 142)
  21682. * Macros, MSP 430: MSP430-Macros. (line 6)
  21683. * macros, TIC54X: TIC54X-Macros. (line 6)
  21684. * make rules: MD. (line 6)
  21685. * manual, structure and purpose: Manual. (line 6)
  21686. * marc600 command-line option, ARC: ARC Options. (line 14)
  21687. * mARC601 command-line option, ARC: ARC Options. (line 27)
  21688. * mARC700 command-line option, ARC: ARC Options. (line 39)
  21689. * march command-line option, C-SKY: C-SKY Options. (line 6)
  21690. * march command-line option, Nios II: Nios II Options. (line 28)
  21691. * math builtins, TIC54X: TIC54X-Builtins. (line 6)
  21692. * Maximum number of continuation lines: listing. (line 34)
  21693. * mbig-endian command-line option, C-SKY: C-SKY Options. (line 18)
  21694. * mbranch-stub command-line option, C-SKY: C-SKY Options. (line 34)
  21695. * mcache command-line option, C-SKY: C-SKY Options. (line 100)
  21696. * mcp command-line option, C-SKY: C-SKY Options. (line 97)
  21697. * mcpu command-line option, C-SKY: C-SKY Options. (line 10)
  21698. * mdsp command-line option, C-SKY: C-SKY Options. (line 109)
  21699. * medsp command-line option, C-SKY: C-SKY Options. (line 112)
  21700. * melrw command-line option, C-SKY: C-SKY Options. (line 64)
  21701. * mEM command-line option, ARC: ARC Options. (line 42)
  21702. * memory references, i386: i386-Memory. (line 6)
  21703. * memory references, x86-64: i386-Memory. (line 6)
  21704. * memory-mapped registers, TIC54X: TIC54X-MMRegs. (line 6)
  21705. * merging text and data sections: R. (line 6)
  21706. * messages from assembler: Errors. (line 6)
  21707. * Meta architectures: Meta Options. (line 6)
  21708. * Meta line comment character: Meta-Chars. (line 6)
  21709. * Meta line separator: Meta-Chars. (line 8)
  21710. * Meta options: Meta Options. (line 6)
  21711. * Meta registers: Meta-Regs. (line 6)
  21712. * Meta support: Meta-Dependent. (line 6)
  21713. * mforce2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21714. * mhard-float command-line option, C-SKY: C-SKY Options. (line 91)
  21715. * mHS command-line option, ARC: ARC Options. (line 64)
  21716. * MicroBlaze architectures: MicroBlaze-Dependent.
  21717. (line 6)
  21718. * MicroBlaze directives: MicroBlaze Directives.
  21719. (line 6)
  21720. * MicroBlaze line comment character: MicroBlaze-Chars. (line 6)
  21721. * MicroBlaze line separator: MicroBlaze-Chars. (line 14)
  21722. * MicroBlaze support: MicroBlaze-Dependent.
  21723. (line 12)
  21724. * minus, permitted arguments: Infix Ops. (line 50)
  21725. * MIPS 32-bit microMIPS instruction generation override: MIPS assembly options.
  21726. (line 18)
  21727. * MIPS architecture options: MIPS Options. (line 29)
  21728. * MIPS big-endian output: MIPS Options. (line 13)
  21729. * MIPS CPU override: MIPS ISA. (line 18)
  21730. * MIPS cyclic redundancy check (CRC) instruction generation override: MIPS ASE Instruction Generation Overrides.
  21731. (line 68)
  21732. * MIPS directives to override command-line options: MIPS assembly options.
  21733. (line 6)
  21734. * MIPS DSP Release 1 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21735. (line 21)
  21736. * MIPS DSP Release 2 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21737. (line 26)
  21738. * MIPS DSP Release 3 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21739. (line 31)
  21740. * MIPS endianness: Overview. (line 840)
  21741. * MIPS eXtended Physical Address (XPA) instruction generation override: MIPS ASE Instruction Generation Overrides.
  21742. (line 57)
  21743. * MIPS Global INValidate (GINV) instruction generation override: MIPS ASE Instruction Generation Overrides.
  21744. (line 72)
  21745. * MIPS IEEE 754 NaN data encoding selection: MIPS NaN Encodings.
  21746. (line 6)
  21747. * MIPS ISA: Overview. (line 846)
  21748. * MIPS ISA override: MIPS ISA. (line 6)
  21749. * MIPS line comment character: MIPS-Chars. (line 6)
  21750. * MIPS line separator: MIPS-Chars. (line 14)
  21751. * MIPS little-endian output: MIPS Options. (line 13)
  21752. * MIPS MCU instruction generation override: MIPS ASE Instruction Generation Overrides.
  21753. (line 42)
  21754. * MIPS MDMX instruction generation override: MIPS ASE Instruction Generation Overrides.
  21755. (line 16)
  21756. * MIPS MIPS-3D instruction generation override: MIPS ASE Instruction Generation Overrides.
  21757. (line 6)
  21758. * MIPS MT instruction generation override: MIPS ASE Instruction Generation Overrides.
  21759. (line 37)
  21760. * MIPS option stack: MIPS Option Stack. (line 6)
  21761. * MIPS processor: MIPS-Dependent. (line 6)
  21762. * MIPS SIMD Architecture instruction generation override: MIPS ASE Instruction Generation Overrides.
  21763. (line 47)
  21764. * MIPS16e2 instruction generation override: MIPS ASE Instruction Generation Overrides.
  21765. (line 61)
  21766. * mistack command-line option, C-SKY: C-SKY Options. (line 82)
  21767. * MIT: M68K-Syntax. (line 6)
  21768. * mjsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  21769. * mlabr command-line option, C-SKY: C-SKY Options. (line 75)
  21770. * mlaf command-line option, C-SKY: C-SKY Options. (line 69)
  21771. * mlib directive, TIC54X: TIC54X-Directives. (line 157)
  21772. * mlink-relax command-line option, PRU: PRU Options. (line 6)
  21773. * mlist directive, TIC54X: TIC54X-Directives. (line 162)
  21774. * mliterals-after-br command-line option, C-SKY: C-SKY Options.
  21775. (line 75)
  21776. * mliterals-after-func command-line option, C-SKY: C-SKY Options.
  21777. (line 69)
  21778. * mlittle-endian command-line option, C-SKY: C-SKY Options. (line 14)
  21779. * mljump command-line option, C-SKY: C-SKY Options. (line 26)
  21780. * MMIX assembler directive BSPEC: MMIX-Pseudos. (line 137)
  21781. * MMIX assembler directive BYTE: MMIX-Pseudos. (line 101)
  21782. * MMIX assembler directive ESPEC: MMIX-Pseudos. (line 137)
  21783. * MMIX assembler directive GREG: MMIX-Pseudos. (line 53)
  21784. * MMIX assembler directive IS: MMIX-Pseudos. (line 44)
  21785. * MMIX assembler directive LOC: MMIX-Pseudos. (line 7)
  21786. * MMIX assembler directive LOCAL: MMIX-Pseudos. (line 29)
  21787. * MMIX assembler directive OCTA: MMIX-Pseudos. (line 113)
  21788. * MMIX assembler directive PREFIX: MMIX-Pseudos. (line 125)
  21789. * MMIX assembler directive TETRA: MMIX-Pseudos. (line 113)
  21790. * MMIX assembler directive WYDE: MMIX-Pseudos. (line 113)
  21791. * MMIX assembler directives: MMIX-Pseudos. (line 6)
  21792. * MMIX line comment characters: MMIX-Chars. (line 6)
  21793. * MMIX options: MMIX-Opts. (line 6)
  21794. * MMIX pseudo-op BSPEC: MMIX-Pseudos. (line 137)
  21795. * MMIX pseudo-op BYTE: MMIX-Pseudos. (line 101)
  21796. * MMIX pseudo-op ESPEC: MMIX-Pseudos. (line 137)
  21797. * MMIX pseudo-op GREG: MMIX-Pseudos. (line 53)
  21798. * MMIX pseudo-op IS: MMIX-Pseudos. (line 44)
  21799. * MMIX pseudo-op LOC: MMIX-Pseudos. (line 7)
  21800. * MMIX pseudo-op LOCAL: MMIX-Pseudos. (line 29)
  21801. * MMIX pseudo-op OCTA: MMIX-Pseudos. (line 113)
  21802. * MMIX pseudo-op PREFIX: MMIX-Pseudos. (line 125)
  21803. * MMIX pseudo-op TETRA: MMIX-Pseudos. (line 113)
  21804. * MMIX pseudo-op WYDE: MMIX-Pseudos. (line 113)
  21805. * MMIX pseudo-ops: MMIX-Pseudos. (line 6)
  21806. * MMIX register names: MMIX-Regs. (line 6)
  21807. * MMIX support: MMIX-Dependent. (line 6)
  21808. * mmixal differences: MMIX-mmixal. (line 6)
  21809. * mmp command-line option, C-SKY: C-SKY Options. (line 94)
  21810. * mmregs directive, TIC54X: TIC54X-Directives. (line 167)
  21811. * mmsg directive, TIC54X: TIC54X-Directives. (line 75)
  21812. * MMX, i386: i386-SIMD. (line 6)
  21813. * MMX, x86-64: i386-SIMD. (line 6)
  21814. * mnemonic compatibility, i386: i386-Mnemonics. (line 81)
  21815. * mnemonic suffixes, i386: i386-Variations. (line 28)
  21816. * mnemonic suffixes, x86-64: i386-Variations. (line 28)
  21817. * mnemonics for opcodes, VAX: VAX-opcodes. (line 6)
  21818. * mnemonics, AVR: AVR Opcodes. (line 6)
  21819. * mnemonics, D10V: D10V-Opcodes. (line 6)
  21820. * mnemonics, D30V: D30V-Opcodes. (line 6)
  21821. * mnemonics, H8/300: H8/300 Opcodes. (line 6)
  21822. * mnemonics, LM32: LM32 Opcodes. (line 6)
  21823. * mnemonics, OpenRISC: OpenRISC-Opcodes. (line 6)
  21824. * mnemonics, SH: SH Opcodes. (line 6)
  21825. * mnemonics, Z8000: Z8000 Opcodes. (line 6)
  21826. * mno-branch-stub command-line option, C-SKY: C-SKY Options. (line 34)
  21827. * mno-elrw command-line option, C-SKY: C-SKY Options. (line 64)
  21828. * mno-force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21829. * mno-istack command-line option, C-SKY: C-SKY Options. (line 82)
  21830. * mno-jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  21831. * mno-labr command-line option, C-SKY: C-SKY Options. (line 75)
  21832. * mno-laf command-line option, C-SKY: C-SKY Options. (line 69)
  21833. * mno-link-relax command-line option, PRU: PRU Options. (line 12)
  21834. * mno-literals-after-func command-line option, C-SKY: C-SKY Options.
  21835. (line 69)
  21836. * mno-ljump command-line option, C-SKY: C-SKY Options. (line 26)
  21837. * mno-lrw command-line option, C-SKY: C-SKY Options. (line 59)
  21838. * mno-warn-regname-label command-line option, PRU: PRU Options.
  21839. (line 16)
  21840. * mnolist directive, TIC54X: TIC54X-Directives. (line 162)
  21841. * mnoliterals-after-br command-line option, C-SKY: C-SKY Options.
  21842. (line 75)
  21843. * mnolrw command-line option, C-SKY: C-SKY Options. (line 59)
  21844. * mnps400 command-line option, ARC: ARC Options. (line 79)
  21845. * modifiers, M32C: M32C-Modifiers. (line 6)
  21846. * module layout, WebAssembly: WebAssembly-module-layout.
  21847. (line 6)
  21848. * Motorola syntax for the 680x0: M68K-Moto-Syntax. (line 6)
  21849. * MOVI instructions, relaxation: Xtensa Immediate Relaxation.
  21850. (line 12)
  21851. * MOVN, MOVZ and MOVK group relocations, AArch64: AArch64-Relocations.
  21852. (line 6)
  21853. * MOVW and MOVT relocations, ARM: ARM-Relocations. (line 21)
  21854. * MRI compatibility mode: M. (line 6)
  21855. * mri directive: MRI. (line 6)
  21856. * MRI mode, temporarily: MRI. (line 6)
  21857. * msecurity command-line option, C-SKY: C-SKY Options. (line 103)
  21858. * MSP 430 floating point (IEEE): MSP430 Floating Point.
  21859. (line 6)
  21860. * MSP 430 identifiers: MSP430-Chars. (line 17)
  21861. * MSP 430 line comment character: MSP430-Chars. (line 6)
  21862. * MSP 430 line separator: MSP430-Chars. (line 14)
  21863. * MSP 430 machine directives: MSP430 Directives. (line 6)
  21864. * MSP 430 macros: MSP430-Macros. (line 6)
  21865. * MSP 430 opcodes: MSP430 Opcodes. (line 6)
  21866. * MSP 430 options (none): MSP430 Options. (line 6)
  21867. * MSP 430 profiling capability: MSP430 Profiling Capability.
  21868. (line 6)
  21869. * MSP 430 register names: MSP430-Regs. (line 6)
  21870. * MSP 430 support: MSP430-Dependent. (line 6)
  21871. * MSP430 Assembler Extensions: MSP430-Ext. (line 6)
  21872. * mtrust command-line option, C-SKY: C-SKY Options. (line 106)
  21873. * mul instruction, i386: i386-Notes. (line 6)
  21874. * mul instruction, x86-64: i386-Notes. (line 6)
  21875. * mvdsp command-line option, C-SKY: C-SKY Options. (line 115)
  21876. * N32K support: NS32K-Dependent. (line 6)
  21877. * name: Z8000 Directives. (line 18)
  21878. * named section: Section. (line 6)
  21879. * named sections: Ld Sections. (line 8)
  21880. * names, symbol: Symbol Names. (line 6)
  21881. * naming object file: o. (line 6)
  21882. * NDS32 options: NDS32 Options. (line 6)
  21883. * NDS32 processor: NDS32-Dependent. (line 6)
  21884. * new page, in listings: Eject. (line 6)
  21885. * newblock directive, TIC54X: TIC54X-Directives. (line 173)
  21886. * newline (\n): Strings. (line 21)
  21887. * newline, required at file end: Statements. (line 14)
  21888. * Nios II line comment character: Nios II Chars. (line 6)
  21889. * Nios II line separator character: Nios II Chars. (line 6)
  21890. * Nios II machine directives: Nios II Directives. (line 6)
  21891. * Nios II machine relocations: Nios II Relocations.
  21892. (line 6)
  21893. * Nios II opcodes: Nios II Opcodes. (line 6)
  21894. * Nios II options: Nios II Options. (line 6)
  21895. * Nios II support: NiosII-Dependent. (line 6)
  21896. * Nios support: NiosII-Dependent. (line 6)
  21897. * no-absolute-literals directive: Absolute Literals Directive.
  21898. (line 6)
  21899. * no-force2bsr command-line option, C-SKY: C-SKY Options. (line 43)
  21900. * no-jsri2bsr command-line option, C-SKY: C-SKY Options. (line 52)
  21901. * no-longcalls directive: Longcalls Directive.
  21902. (line 6)
  21903. * no-relax command-line option, Nios II: Nios II Options. (line 19)
  21904. * no-schedule directive: Schedule Directive. (line 6)
  21905. * no-transform directive: Transform Directive.
  21906. (line 6)
  21907. * nodelay directive, OpenRISC: OpenRISC-Directives.
  21908. (line 15)
  21909. * nolist directive: Nolist. (line 6)
  21910. * nolist directive, TIC54X: TIC54X-Directives. (line 129)
  21911. * NOP pseudo op, ARM: ARM Opcodes. (line 9)
  21912. * nops directive: Nops. (line 6)
  21913. * notes for Alpha: Alpha Notes. (line 6)
  21914. * notes for WebAssembly: WebAssembly-Notes. (line 6)
  21915. * NS32K line comment character: NS32K-Chars. (line 6)
  21916. * NS32K line separator: NS32K-Chars. (line 18)
  21917. * null-terminated strings: Asciz. (line 6)
  21918. * number constants: Numbers. (line 6)
  21919. * number of macros executed: Macro. (line 142)
  21920. * numbered subsections: Sub-Sections. (line 6)
  21921. * numbers, 16-bit: hword. (line 6)
  21922. * numeric values: Expressions. (line 6)
  21923. * nword directive, SPARC: Sparc-Directives. (line 20)
  21924. * Object Attribute, RISC-V: RISC-V-ATTRIBUTE. (line 6)
  21925. * object attributes: Object Attributes. (line 6)
  21926. * object file: Object. (line 6)
  21927. * object file format: Object Formats. (line 6)
  21928. * object file name: o. (line 6)
  21929. * object file, after errors: Z. (line 6)
  21930. * obsolescent directives: Deprecated. (line 6)
  21931. * octa directive: Octa. (line 6)
  21932. * octal character code (\DDD): Strings. (line 30)
  21933. * octal integers: Integers. (line 9)
  21934. * offset directive: Offset. (line 6)
  21935. * offset directive, V850: V850 Directives. (line 6)
  21936. * opcode mnemonics, VAX: VAX-opcodes. (line 6)
  21937. * opcode names, TILE-Gx: TILE-Gx Opcodes. (line 6)
  21938. * opcode names, TILEPro: TILEPro Opcodes. (line 6)
  21939. * opcode names, Xtensa: Xtensa Opcodes. (line 6)
  21940. * opcode summary, AVR: AVR Opcodes. (line 6)
  21941. * opcode summary, D10V: D10V-Opcodes. (line 6)
  21942. * opcode summary, D30V: D30V-Opcodes. (line 6)
  21943. * opcode summary, H8/300: H8/300 Opcodes. (line 6)
  21944. * opcode summary, LM32: LM32 Opcodes. (line 6)
  21945. * opcode summary, OpenRISC: OpenRISC-Opcodes. (line 6)
  21946. * opcode summary, SH: SH Opcodes. (line 6)
  21947. * opcode summary, Z8000: Z8000 Opcodes. (line 6)
  21948. * opcodes for AArch64: AArch64 Opcodes. (line 6)
  21949. * opcodes for ARC: ARC Opcodes. (line 6)
  21950. * opcodes for ARM: ARM Opcodes. (line 6)
  21951. * opcodes for BPF: BPF Opcodes. (line 6)
  21952. * opcodes for MSP 430: MSP430 Opcodes. (line 6)
  21953. * opcodes for Nios II: Nios II Opcodes. (line 6)
  21954. * opcodes for PRU: PRU Opcodes. (line 6)
  21955. * opcodes for V850: V850 Opcodes. (line 6)
  21956. * opcodes, M680x0: M68K-opcodes. (line 6)
  21957. * opcodes, M68HC11: M68HC11-opcodes. (line 6)
  21958. * opcodes, WebAssembly: WebAssembly-Opcodes.
  21959. (line 6)
  21960. * OPENRISC floating point (IEEE): OpenRISC-Float. (line 6)
  21961. * OpenRISC line comment character: OpenRISC-Chars. (line 6)
  21962. * OpenRISC line separator: OpenRISC-Chars. (line 9)
  21963. * OPENRISC machine directives: OpenRISC-Directives.
  21964. (line 6)
  21965. * OpenRISC opcode summary: OpenRISC-Opcodes. (line 6)
  21966. * OpenRISC registers: OpenRISC-Regs. (line 6)
  21967. * OpenRISC relocations: OpenRISC-Relocs. (line 6)
  21968. * OPENRISC support: OpenRISC-Dependent. (line 6)
  21969. * OPENRISC syntax: OpenRISC-Dependent. (line 13)
  21970. * operand delimiters, i386: i386-Variations. (line 15)
  21971. * operand delimiters, x86-64: i386-Variations. (line 15)
  21972. * operand notation, VAX: VAX-operands. (line 6)
  21973. * operands in expressions: Arguments. (line 6)
  21974. * operator precedence: Infix Ops. (line 11)
  21975. * operators, in expressions: Operators. (line 6)
  21976. * operators, permitted arguments: Infix Ops. (line 6)
  21977. * optimization, D10V: Overview. (line 623)
  21978. * optimization, D30V: Overview. (line 628)
  21979. * optimizations: Xtensa Optimizations.
  21980. (line 6)
  21981. * Option directive: RISC-V-Directives. (line 34)
  21982. * option directive: RISC-V-Directives. (line 34)
  21983. * option directive, TIC54X: TIC54X-Directives. (line 177)
  21984. * option summary: Overview. (line 6)
  21985. * options for AArch64 (none): AArch64 Options. (line 6)
  21986. * options for Alpha: Alpha Options. (line 6)
  21987. * options for ARC: ARC Options. (line 6)
  21988. * options for ARM (none): ARM Options. (line 6)
  21989. * options for AVR (none): AVR Options. (line 6)
  21990. * options for Blackfin (none): Blackfin Options. (line 6)
  21991. * options for BPF (none): BPF Options. (line 6)
  21992. * options for C-SKY: C-SKY Options. (line 6)
  21993. * options for i386: i386-Options. (line 6)
  21994. * options for IA-64: IA-64 Options. (line 6)
  21995. * options for LM32 (none): LM32 Options. (line 6)
  21996. * options for Meta: Meta Options. (line 6)
  21997. * options for MSP430 (none): MSP430 Options. (line 6)
  21998. * options for NDS32: NDS32 Options. (line 6)
  21999. * options for Nios II: Nios II Options. (line 6)
  22000. * options for PDP-11: PDP-11-Options. (line 6)
  22001. * options for PowerPC: PowerPC-Opts. (line 6)
  22002. * options for PRU: PRU Options. (line 6)
  22003. * options for s390: s390 Options. (line 6)
  22004. * options for SCORE: SCORE-Opts. (line 6)
  22005. * options for SPARC: Sparc-Opts. (line 6)
  22006. * options for TIC6X: TIC6X Options. (line 6)
  22007. * options for V850 (none): V850 Options. (line 6)
  22008. * options for VAX/VMS: VAX-Opts. (line 42)
  22009. * options for Visium: Visium Options. (line 6)
  22010. * options for x86-64: i386-Options. (line 6)
  22011. * options for Z80: Z80 Options. (line 6)
  22012. * options, all versions of assembler: Invoking. (line 6)
  22013. * options, command line: Command Line. (line 13)
  22014. * options, CRIS: CRIS-Opts. (line 6)
  22015. * options, D10V: D10V-Opts. (line 6)
  22016. * options, D30V: D30V-Opts. (line 6)
  22017. * options, Epiphany: Epiphany Options. (line 6)
  22018. * options, H8/300: H8/300 Options. (line 6)
  22019. * options, IP2K: IP2K-Opts. (line 6)
  22020. * options, M32C: M32C-Opts. (line 6)
  22021. * options, M32R: M32R-Opts. (line 6)
  22022. * options, M680x0: M68K-Opts. (line 6)
  22023. * options, M68HC11: M68HC11-Opts. (line 6)
  22024. * options, MMIX: MMIX-Opts. (line 6)
  22025. * options, PJ: PJ Options. (line 6)
  22026. * options, RL78: RL78-Opts. (line 6)
  22027. * options, RX: RX-Opts. (line 6)
  22028. * options, S12Z: S12Z Options. (line 6)
  22029. * options, SH: SH Options. (line 6)
  22030. * options, TIC54X: TIC54X-Opts. (line 6)
  22031. * options, XGATE: XGATE-Opts. (line 6)
  22032. * options, Z8000: Z8000 Options. (line 6)
  22033. * org directive: Org. (line 6)
  22034. * other attribute, of a.out symbol: Symbol Other. (line 6)
  22035. * output file: Object. (line 6)
  22036. * output section padding: no-pad-sections. (line 6)
  22037. * p2align directive: P2align. (line 6)
  22038. * p2alignl directive: P2align. (line 28)
  22039. * p2alignw directive: P2align. (line 28)
  22040. * padding the location counter: Align. (line 6)
  22041. * padding the location counter given a power of two: P2align.
  22042. (line 6)
  22043. * padding the location counter given number of bytes: Balign.
  22044. (line 6)
  22045. * page, in listings: Eject. (line 6)
  22046. * paper size, for listings: Psize. (line 6)
  22047. * paths for .include: I. (line 6)
  22048. * patterns, writing in memory: Fill. (line 6)
  22049. * PDP-11 comments: PDP-11-Syntax. (line 16)
  22050. * PDP-11 floating-point register syntax: PDP-11-Syntax. (line 13)
  22051. * PDP-11 general-purpose register syntax: PDP-11-Syntax. (line 10)
  22052. * PDP-11 instruction naming: PDP-11-Mnemonics. (line 6)
  22053. * PDP-11 line separator: PDP-11-Syntax. (line 19)
  22054. * PDP-11 support: PDP-11-Dependent. (line 6)
  22055. * PDP-11 syntax: PDP-11-Syntax. (line 6)
  22056. * PIC code generation for ARM: ARM Options. (line 364)
  22057. * PIC code generation for M32R: M32R-Opts. (line 42)
  22058. * pic command-line option, C-SKY: C-SKY Options. (line 22)
  22059. * PIC selection, MIPS: MIPS Options. (line 21)
  22060. * PJ endianness: Overview. (line 744)
  22061. * PJ line comment character: PJ-Chars. (line 6)
  22062. * PJ line separator: PJ-Chars. (line 14)
  22063. * PJ options: PJ Options. (line 6)
  22064. * PJ support: PJ-Dependent. (line 6)
  22065. * plus, permitted arguments: Infix Ops. (line 45)
  22066. * pmem directive, PRU: PRU Relocations. (line 6)
  22067. * popsection directive: PopSection. (line 6)
  22068. * Position-independent code, CRIS: CRIS-Opts. (line 27)
  22069. * Position-independent code, symbols in, CRIS: CRIS-Pic. (line 6)
  22070. * PowerPC architectures: PowerPC-Opts. (line 6)
  22071. * PowerPC directives: PowerPC-Pseudo. (line 6)
  22072. * PowerPC line comment character: PowerPC-Chars. (line 6)
  22073. * PowerPC line separator: PowerPC-Chars. (line 18)
  22074. * PowerPC options: PowerPC-Opts. (line 6)
  22075. * PowerPC support: PPC-Dependent. (line 6)
  22076. * precedence of operators: Infix Ops. (line 11)
  22077. * precision, floating point: Flonums. (line 6)
  22078. * prefix operators: Prefix Ops. (line 6)
  22079. * prefixes, i386: i386-Prefixes. (line 6)
  22080. * preprocessing: Preprocessing. (line 6)
  22081. * preprocessing, turning on and off: Preprocessing. (line 26)
  22082. * previous directive: Previous. (line 6)
  22083. * primary attributes, COFF symbols: COFF Symbols. (line 13)
  22084. * print directive: Print. (line 6)
  22085. * proc directive, OpenRISC: OpenRISC-Directives.
  22086. (line 20)
  22087. * proc directive, SPARC: Sparc-Directives. (line 25)
  22088. * Processor Identification register, ARC: ARC-Regs. (line 51)
  22089. * profiler directive, MSP 430: MSP430 Directives. (line 26)
  22090. * profiling capability for MSP 430: MSP430 Profiling Capability.
  22091. (line 6)
  22092. * Program Counter, ARC: ARC-Regs. (line 54)
  22093. * protected directive: Protected. (line 6)
  22094. * PRU line comment character: PRU Chars. (line 6)
  22095. * PRU machine directives: PRU Directives. (line 6)
  22096. * PRU machine relocations: PRU Relocations. (line 6)
  22097. * PRU opcodes: PRU Opcodes. (line 6)
  22098. * PRU options: PRU Options. (line 6)
  22099. * PRU support: PRU-Dependent. (line 6)
  22100. * pseudo map fd, BPF: BPF-Pseudo-Maps. (line 6)
  22101. * pseudo-op .arch, CRIS: CRIS-Pseudos. (line 50)
  22102. * pseudo-op .dword, CRIS: CRIS-Pseudos. (line 12)
  22103. * pseudo-op .syntax, CRIS: CRIS-Pseudos. (line 18)
  22104. * pseudo-op BSPEC, MMIX: MMIX-Pseudos. (line 137)
  22105. * pseudo-op BYTE, MMIX: MMIX-Pseudos. (line 101)
  22106. * pseudo-op ESPEC, MMIX: MMIX-Pseudos. (line 137)
  22107. * pseudo-op GREG, MMIX: MMIX-Pseudos. (line 53)
  22108. * pseudo-op IS, MMIX: MMIX-Pseudos. (line 44)
  22109. * pseudo-op LOC, MMIX: MMIX-Pseudos. (line 7)
  22110. * pseudo-op LOCAL, MMIX: MMIX-Pseudos. (line 29)
  22111. * pseudo-op OCTA, MMIX: MMIX-Pseudos. (line 113)
  22112. * pseudo-op PREFIX, MMIX: MMIX-Pseudos. (line 125)
  22113. * pseudo-op TETRA, MMIX: MMIX-Pseudos. (line 113)
  22114. * pseudo-op WYDE, MMIX: MMIX-Pseudos. (line 113)
  22115. * pseudo-opcodes for XStormy16: XStormy16 Opcodes. (line 6)
  22116. * pseudo-opcodes, M680x0: M68K-Branch. (line 6)
  22117. * pseudo-opcodes, M68HC11: M68HC11-Branch. (line 6)
  22118. * pseudo-ops for branch, VAX: VAX-branch. (line 6)
  22119. * pseudo-ops, CRIS: CRIS-Pseudos. (line 6)
  22120. * pseudo-ops, machine independent: Pseudo Ops. (line 6)
  22121. * pseudo-ops, MMIX: MMIX-Pseudos. (line 6)
  22122. * psize directive: Psize. (line 6)
  22123. * PSR bits: IA-64-Bits. (line 6)
  22124. * pstring directive, TIC54X: TIC54X-Directives. (line 206)
  22125. * psw register, V850: V850-Regs. (line 80)
  22126. * purgem directive: Purgem. (line 6)
  22127. * purpose of GNU assembler: GNU Assembler. (line 12)
  22128. * pushsection directive: PushSection. (line 6)
  22129. * quad directive: Quad. (line 6)
  22130. * quad directive, i386: i386-Float. (line 21)
  22131. * quad directive, x86-64: i386-Float. (line 21)
  22132. * real-mode code, i386: i386-16bit. (line 6)
  22133. * ref directive, TIC54X: TIC54X-Directives. (line 101)
  22134. * refsym directive, MSP 430: MSP430 Directives. (line 30)
  22135. * register directive, SPARC: Sparc-Directives. (line 29)
  22136. * register name prefix character, ARC: ARC-Chars. (line 7)
  22137. * register names, AArch64: AArch64-Regs. (line 6)
  22138. * register names, Alpha: Alpha-Regs. (line 6)
  22139. * register names, ARC: ARC-Regs. (line 6)
  22140. * register names, ARM: ARM-Regs. (line 6)
  22141. * register names, AVR: AVR-Regs. (line 6)
  22142. * register names, BPF: BPF-Regs. (line 6)
  22143. * register names, CRIS: CRIS-Regs. (line 6)
  22144. * register names, H8/300: H8/300-Regs. (line 6)
  22145. * register names, IA-64: IA-64-Regs. (line 6)
  22146. * register names, LM32: LM32-Regs. (line 6)
  22147. * register names, MMIX: MMIX-Regs. (line 6)
  22148. * register names, MSP 430: MSP430-Regs. (line 6)
  22149. * register names, OpenRISC: OpenRISC-Regs. (line 6)
  22150. * register names, S12Z: S12Z Addressing Modes.
  22151. (line 28)
  22152. * register names, Sparc: Sparc-Regs. (line 6)
  22153. * register names, TILE-Gx: TILE-Gx Registers. (line 6)
  22154. * register names, TILEPro: TILEPro Registers. (line 6)
  22155. * register names, V850: V850-Regs. (line 6)
  22156. * register names, VAX: VAX-operands. (line 17)
  22157. * register names, Visium: Visium Registers. (line 6)
  22158. * register names, Xtensa: Xtensa Registers. (line 6)
  22159. * register names, Z80: Z80-Regs. (line 6)
  22160. * register naming, s390: s390 Register. (line 6)
  22161. * register notation, S12Z: S12Z Register Notation.
  22162. (line 6)
  22163. * register operands, i386: i386-Variations. (line 15)
  22164. * register operands, x86-64: i386-Variations. (line 15)
  22165. * registers, D10V: D10V-Regs. (line 6)
  22166. * registers, D30V: D30V-Regs. (line 6)
  22167. * registers, i386: i386-Regs. (line 6)
  22168. * registers, Meta: Meta-Regs. (line 6)
  22169. * registers, SH: SH-Regs. (line 6)
  22170. * registers, TIC54X memory-mapped: TIC54X-MMRegs. (line 6)
  22171. * registers, x86-64: i386-Regs. (line 6)
  22172. * registers, Z8000: Z8000-Regs. (line 6)
  22173. * relax-all command-line option, Nios II: Nios II Options. (line 13)
  22174. * relax-section command-line option, Nios II: Nios II Options.
  22175. (line 6)
  22176. * relaxation: Xtensa Relaxation. (line 6)
  22177. * relaxation of ADDI instructions: Xtensa Immediate Relaxation.
  22178. (line 43)
  22179. * relaxation of branch instructions: Xtensa Branch Relaxation.
  22180. (line 6)
  22181. * relaxation of call instructions: Xtensa Call Relaxation.
  22182. (line 6)
  22183. * relaxation of immediate fields: Xtensa Immediate Relaxation.
  22184. (line 6)
  22185. * relaxation of jump instructions: Xtensa Jump Relaxation.
  22186. (line 6)
  22187. * relaxation of L16SI instructions: Xtensa Immediate Relaxation.
  22188. (line 23)
  22189. * relaxation of L16UI instructions: Xtensa Immediate Relaxation.
  22190. (line 23)
  22191. * relaxation of L32I instructions: Xtensa Immediate Relaxation.
  22192. (line 23)
  22193. * relaxation of L8UI instructions: Xtensa Immediate Relaxation.
  22194. (line 23)
  22195. * relaxation of MOVI instructions: Xtensa Immediate Relaxation.
  22196. (line 12)
  22197. * reloc directive: Reloc. (line 6)
  22198. * relocation: Sections. (line 6)
  22199. * relocation example: Ld Sections. (line 40)
  22200. * relocations, AArch64: AArch64-Relocations.
  22201. (line 6)
  22202. * relocations, Alpha: Alpha-Relocs. (line 6)
  22203. * relocations, OpenRISC: OpenRISC-Relocs. (line 6)
  22204. * relocations, Sparc: Sparc-Relocs. (line 6)
  22205. * relocations, WebAssembly: WebAssembly-Relocs. (line 6)
  22206. * repeat prefixes, i386: i386-Prefixes. (line 44)
  22207. * reporting bugs in assembler: Reporting Bugs. (line 6)
  22208. * rept directive: Rept. (line 6)
  22209. * reserve directive, SPARC: Sparc-Directives. (line 39)
  22210. * return instructions, i386: i386-Variations. (line 45)
  22211. * return instructions, x86-64: i386-Variations. (line 45)
  22212. * REX prefixes, i386: i386-Prefixes. (line 46)
  22213. * RISC-V instruction formats: RISC-V-Formats. (line 6)
  22214. * RISC-V machine directives: RISC-V-Directives. (line 6)
  22215. * RISC-V support: RISC-V-Dependent. (line 6)
  22216. * RL78 assembler directives: RL78-Directives. (line 6)
  22217. * RL78 line comment character: RL78-Chars. (line 6)
  22218. * RL78 line separator: RL78-Chars. (line 14)
  22219. * RL78 modifiers: RL78-Modifiers. (line 6)
  22220. * RL78 options: RL78-Opts. (line 6)
  22221. * RL78 support: RL78-Dependent. (line 6)
  22222. * rsect: Z8000 Directives. (line 52)
  22223. * RX assembler directive .3byte: RX-Directives. (line 9)
  22224. * RX assembler directive .fetchalign: RX-Directives. (line 13)
  22225. * RX assembler directives: RX-Directives. (line 6)
  22226. * RX floating point: RX-Float. (line 6)
  22227. * RX line comment character: RX-Chars. (line 6)
  22228. * RX line separator: RX-Chars. (line 14)
  22229. * RX modifiers: RX-Modifiers. (line 6)
  22230. * RX options: RX-Opts. (line 6)
  22231. * RX support: RX-Dependent. (line 6)
  22232. * S12Z addressing modes: S12Z Addressing Modes.
  22233. (line 6)
  22234. * S12Z line separator: S12Z Syntax Overview.
  22235. (line 41)
  22236. * S12Z options: S12Z Options. (line 6)
  22237. * S12Z support: S12Z-Dependent. (line 8)
  22238. * S12Z syntax: S12Z Syntax. (line 12)
  22239. * s390 floating point: s390 Floating Point.
  22240. (line 6)
  22241. * s390 instruction aliases: s390 Aliases. (line 6)
  22242. * s390 instruction formats: s390 Formats. (line 6)
  22243. * s390 instruction marker: s390 Instruction Marker.
  22244. (line 6)
  22245. * s390 instruction mnemonics: s390 Mnemonics. (line 6)
  22246. * s390 instruction operand modifier: s390 Operand Modifier.
  22247. (line 6)
  22248. * s390 instruction operands: s390 Operands. (line 6)
  22249. * s390 instruction syntax: s390 Syntax. (line 6)
  22250. * s390 line comment character: s390 Characters. (line 6)
  22251. * s390 line separator: s390 Characters. (line 13)
  22252. * s390 literal pool entries: s390 Literal Pool Entries.
  22253. (line 6)
  22254. * s390 options: s390 Options. (line 6)
  22255. * s390 register naming: s390 Register. (line 6)
  22256. * s390 support: S/390-Dependent. (line 6)
  22257. * Saved User Stack Pointer, ARC: ARC-Regs. (line 73)
  22258. * sblock directive, TIC54X: TIC54X-Directives. (line 180)
  22259. * sbttl directive: Sbttl. (line 6)
  22260. * schedule directive: Schedule Directive. (line 6)
  22261. * scl directive: Scl. (line 6)
  22262. * SCORE architectures: SCORE-Opts. (line 6)
  22263. * SCORE directives: SCORE-Pseudo. (line 6)
  22264. * SCORE line comment character: SCORE-Chars. (line 6)
  22265. * SCORE line separator: SCORE-Chars. (line 14)
  22266. * SCORE options: SCORE-Opts. (line 6)
  22267. * SCORE processor: SCORE-Dependent. (line 6)
  22268. * sdaoff pseudo-op, V850: V850 Opcodes. (line 65)
  22269. * search path for .include: I. (line 6)
  22270. * sect directive, TIC54X: TIC54X-Directives. (line 186)
  22271. * section directive (COFF version): Section. (line 16)
  22272. * section directive (ELF version): Section. (line 67)
  22273. * section directive, V850: V850 Directives. (line 9)
  22274. * section name substitution: Section. (line 71)
  22275. * section override prefixes, i386: i386-Prefixes. (line 23)
  22276. * Section Stack: PopSection. (line 6)
  22277. * Section Stack <1>: Previous. (line 6)
  22278. * Section Stack <2>: PushSection. (line 6)
  22279. * Section Stack <3>: Section. (line 62)
  22280. * Section Stack <4>: SubSection. (line 6)
  22281. * section-relative addressing: Secs Background. (line 65)
  22282. * sections: Sections. (line 6)
  22283. * sections in messages, internal: As Sections. (line 6)
  22284. * sections, i386: i386-Variations. (line 51)
  22285. * sections, named: Ld Sections. (line 8)
  22286. * sections, x86-64: i386-Variations. (line 51)
  22287. * seg directive, SPARC: Sparc-Directives. (line 44)
  22288. * segm: Z8000 Directives. (line 10)
  22289. * set at directive, Nios II: Nios II Directives. (line 35)
  22290. * set break directive, Nios II: Nios II Directives. (line 43)
  22291. * set directive: Set. (line 6)
  22292. * set directive, Nios II: Nios II Directives. (line 57)
  22293. * set directive, TIC54X: TIC54X-Directives. (line 189)
  22294. * set noat directive, Nios II: Nios II Directives. (line 31)
  22295. * set nobreak directive, Nios II: Nios II Directives. (line 39)
  22296. * set norelax directive, Nios II: Nios II Directives. (line 46)
  22297. * set no_warn_regname_label directive, PRU: PRU Directives. (line 28)
  22298. * set relaxall directive, Nios II: Nios II Directives. (line 53)
  22299. * set relaxsection directive, Nios II: Nios II Directives. (line 49)
  22300. * SH addressing modes: SH-Addressing. (line 6)
  22301. * SH floating point (IEEE): SH Floating Point. (line 6)
  22302. * SH line comment character: SH-Chars. (line 6)
  22303. * SH line separator: SH-Chars. (line 8)
  22304. * SH machine directives: SH Directives. (line 6)
  22305. * SH opcode summary: SH Opcodes. (line 6)
  22306. * SH options: SH Options. (line 6)
  22307. * SH registers: SH-Regs. (line 6)
  22308. * SH support: SH-Dependent. (line 6)
  22309. * shigh directive, M32R: M32R-Directives. (line 26)
  22310. * short directive: Short. (line 6)
  22311. * short directive, TIC54X: TIC54X-Directives. (line 109)
  22312. * signatures, WebAssembly: WebAssembly-Signatures.
  22313. (line 6)
  22314. * SIMD, i386: i386-SIMD. (line 6)
  22315. * SIMD, x86-64: i386-SIMD. (line 6)
  22316. * single character constant: Chars. (line 6)
  22317. * single directive: Single. (line 6)
  22318. * single directive, i386: i386-Float. (line 14)
  22319. * single directive, x86-64: i386-Float. (line 14)
  22320. * single quote, Z80: Z80-Chars. (line 20)
  22321. * sixteen bit integers: hword. (line 6)
  22322. * sixteen byte integer: Octa. (line 6)
  22323. * size directive (COFF version): Size. (line 11)
  22324. * size directive (ELF version): Size. (line 19)
  22325. * size modifiers, D10V: D10V-Size. (line 6)
  22326. * size modifiers, D30V: D30V-Size. (line 6)
  22327. * size modifiers, M680x0: M68K-Syntax. (line 8)
  22328. * size prefixes, i386: i386-Prefixes. (line 27)
  22329. * size suffixes, H8/300: H8/300 Opcodes. (line 160)
  22330. * size, translations, Sparc: Sparc-Size-Translations.
  22331. (line 6)
  22332. * sizes operands, i386: i386-Variations. (line 28)
  22333. * sizes operands, x86-64: i386-Variations. (line 28)
  22334. * skip directive: Skip. (line 6)
  22335. * skip directive, M680x0: M68K-Directives. (line 19)
  22336. * skip directive, SPARC: Sparc-Directives. (line 48)
  22337. * sleb128 directive: Sleb128. (line 6)
  22338. * small data, MIPS: MIPS Small Data. (line 6)
  22339. * SmartMIPS instruction generation override: MIPS ASE Instruction Generation Overrides.
  22340. (line 11)
  22341. * SOM symbol attributes: SOM Symbols. (line 6)
  22342. * source program: Input Files. (line 6)
  22343. * source, destination operands; i386: i386-Variations. (line 21)
  22344. * source, destination operands; x86-64: i386-Variations. (line 21)
  22345. * sp register: Xtensa Registers. (line 6)
  22346. * sp register, V850: V850-Regs. (line 12)
  22347. * space directive: Space. (line 6)
  22348. * space directive, TIC54X: TIC54X-Directives. (line 194)
  22349. * space used, maximum for assembly: statistics. (line 6)
  22350. * SPARC architectures: Sparc-Opts. (line 6)
  22351. * Sparc constants: Sparc-Constants. (line 6)
  22352. * SPARC data alignment: Sparc-Aligned-Data. (line 6)
  22353. * SPARC floating point (IEEE): Sparc-Float. (line 6)
  22354. * Sparc line comment character: Sparc-Chars. (line 6)
  22355. * Sparc line separator: Sparc-Chars. (line 14)
  22356. * SPARC machine directives: Sparc-Directives. (line 6)
  22357. * SPARC options: Sparc-Opts. (line 6)
  22358. * Sparc registers: Sparc-Regs. (line 6)
  22359. * Sparc relocations: Sparc-Relocs. (line 6)
  22360. * Sparc size translations: Sparc-Size-Translations.
  22361. (line 6)
  22362. * SPARC support: Sparc-Dependent. (line 6)
  22363. * SPARC syntax: Sparc-Aligned-Data. (line 21)
  22364. * special characters, M680x0: M68K-Chars. (line 6)
  22365. * special purpose registers, MSP 430: MSP430-Regs. (line 11)
  22366. * sslist directive, TIC54X: TIC54X-Directives. (line 201)
  22367. * ssnolist directive, TIC54X: TIC54X-Directives. (line 201)
  22368. * stabd directive: Stab. (line 38)
  22369. * stabn directive: Stab. (line 49)
  22370. * stabs directive: Stab. (line 52)
  22371. * stabX directives: Stab. (line 6)
  22372. * stack pointer, ARC: ARC-Regs. (line 20)
  22373. * standard assembler sections: Secs Background. (line 27)
  22374. * standard input, as input file: Command Line. (line 10)
  22375. * statement separator character: Statements. (line 6)
  22376. * statement separator, AArch64: AArch64-Chars. (line 10)
  22377. * statement separator, Alpha: Alpha-Chars. (line 11)
  22378. * statement separator, ARC: ARC-Chars. (line 27)
  22379. * statement separator, ARM: ARM-Chars. (line 14)
  22380. * statement separator, AVR: AVR-Chars. (line 14)
  22381. * statement separator, BPF: BPF-Chars. (line 10)
  22382. * statement separator, CR16: CR16-Chars. (line 12)
  22383. * statement separator, Epiphany: Epiphany-Chars. (line 14)
  22384. * statement separator, H8/300: H8/300-Chars. (line 8)
  22385. * statement separator, i386: i386-Chars. (line 18)
  22386. * statement separator, IA-64: IA-64-Chars. (line 8)
  22387. * statement separator, IP2K: IP2K-Chars. (line 14)
  22388. * statement separator, LM32: LM32-Chars. (line 12)
  22389. * statement separator, M32C: M32C-Chars. (line 14)
  22390. * statement separator, M68HC11: M68HC11-Syntax. (line 26)
  22391. * statement separator, Meta: Meta-Chars. (line 8)
  22392. * statement separator, MicroBlaze: MicroBlaze-Chars. (line 14)
  22393. * statement separator, MIPS: MIPS-Chars. (line 14)
  22394. * statement separator, MSP 430: MSP430-Chars. (line 14)
  22395. * statement separator, NS32K: NS32K-Chars. (line 18)
  22396. * statement separator, OpenRISC: OpenRISC-Chars. (line 9)
  22397. * statement separator, PJ: PJ-Chars. (line 14)
  22398. * statement separator, PowerPC: PowerPC-Chars. (line 18)
  22399. * statement separator, RL78: RL78-Chars. (line 14)
  22400. * statement separator, RX: RX-Chars. (line 14)
  22401. * statement separator, S12Z: S12Z Syntax Overview.
  22402. (line 41)
  22403. * statement separator, s390: s390 Characters. (line 13)
  22404. * statement separator, SCORE: SCORE-Chars. (line 14)
  22405. * statement separator, SH: SH-Chars. (line 8)
  22406. * statement separator, Sparc: Sparc-Chars. (line 14)
  22407. * statement separator, TIC54X: TIC54X-Chars. (line 17)
  22408. * statement separator, TIC6X: TIC6X Syntax. (line 13)
  22409. * statement separator, V850: V850-Chars. (line 13)
  22410. * statement separator, VAX: VAX-Chars. (line 14)
  22411. * statement separator, Visium: Visium Characters. (line 14)
  22412. * statement separator, XGATE: XGATE-Syntax. (line 25)
  22413. * statement separator, XStormy16: XStormy16-Chars. (line 14)
  22414. * statement separator, Z80: Z80-Chars. (line 13)
  22415. * statement separator, Z8000: Z8000-Chars. (line 13)
  22416. * statements, structure of: Statements. (line 6)
  22417. * statistics, about assembly: statistics. (line 6)
  22418. * Status register, ARC: ARC-Regs. (line 57)
  22419. * STATUS32 saved on exception, ARC: ARC-Regs. (line 82)
  22420. * stopping the assembly: Abort. (line 6)
  22421. * Stored STATUS32 register on entry to level P0 interrupts, ARC: ARC-Regs.
  22422. (line 69)
  22423. * string constants: Strings. (line 6)
  22424. * string directive: String. (line 8)
  22425. * string directive on HPPA: HPPA Directives. (line 137)
  22426. * string directive, TIC54X: TIC54X-Directives. (line 206)
  22427. * string literals: Ascii. (line 6)
  22428. * string, copying to object file: String. (line 8)
  22429. * string16 directive: String. (line 8)
  22430. * string16, copying to object file: String. (line 8)
  22431. * string32 directive: String. (line 8)
  22432. * string32, copying to object file: String. (line 8)
  22433. * string64 directive: String. (line 8)
  22434. * string64, copying to object file: String. (line 8)
  22435. * string8 directive: String. (line 8)
  22436. * string8, copying to object file: String. (line 8)
  22437. * struct directive: Struct. (line 6)
  22438. * struct directive, TIC54X: TIC54X-Directives. (line 214)
  22439. * structure debugging, COFF: Tag. (line 6)
  22440. * sub-instruction ordering, D10V: D10V-Chars. (line 14)
  22441. * sub-instruction ordering, D30V: D30V-Chars. (line 14)
  22442. * sub-instructions, D10V: D10V-Subs. (line 6)
  22443. * sub-instructions, D30V: D30V-Subs. (line 6)
  22444. * subexpressions: Arguments. (line 24)
  22445. * subsection directive: SubSection. (line 6)
  22446. * subsym builtins, TIC54X: TIC54X-Macros. (line 16)
  22447. * subtitles for listings: Sbttl. (line 6)
  22448. * subtraction, permitted arguments: Infix Ops. (line 50)
  22449. * summary of options: Overview. (line 6)
  22450. * support: HPPA-Dependent. (line 6)
  22451. * supporting files, including: Include. (line 6)
  22452. * suppressing warnings: W. (line 11)
  22453. * sval: Z8000 Directives. (line 33)
  22454. * symbol attributes: Symbol Attributes. (line 6)
  22455. * symbol attributes, a.out: a.out Symbols. (line 6)
  22456. * symbol attributes, COFF: COFF Symbols. (line 6)
  22457. * symbol attributes, SOM: SOM Symbols. (line 6)
  22458. * symbol descriptor, COFF: Desc. (line 6)
  22459. * symbol modifiers: AVR-Modifiers. (line 12)
  22460. * symbol modifiers <1>: LM32-Modifiers. (line 12)
  22461. * symbol modifiers <2>: M32C-Modifiers. (line 11)
  22462. * symbol modifiers <3>: M68HC11-Modifiers. (line 12)
  22463. * symbol modifiers, TILE-Gx: TILE-Gx Modifiers. (line 6)
  22464. * symbol modifiers, TILEPro: TILEPro Modifiers. (line 6)
  22465. * symbol names: Symbol Names. (line 6)
  22466. * symbol names, $ in: D10V-Chars. (line 46)
  22467. * symbol names, $ in <1>: D30V-Chars. (line 70)
  22468. * symbol names, $ in <2>: Meta-Chars. (line 10)
  22469. * symbol names, $ in <3>: SH-Chars. (line 15)
  22470. * symbol names, local: Symbol Names. (line 30)
  22471. * symbol names, temporary: Symbol Names. (line 43)
  22472. * symbol prefix character, ARC: ARC-Chars. (line 20)
  22473. * symbol storage class (COFF): Scl. (line 6)
  22474. * symbol type: Symbol Type. (line 6)
  22475. * symbol type, COFF: Type. (line 11)
  22476. * symbol type, ELF: Type. (line 22)
  22477. * symbol value: Symbol Value. (line 6)
  22478. * symbol value, setting: Set. (line 6)
  22479. * symbol values, assigning: Setting Symbols. (line 6)
  22480. * symbol versioning: Symver. (line 6)
  22481. * symbol, common: Comm. (line 6)
  22482. * symbol, making visible to linker: Global. (line 6)
  22483. * symbolic debuggers, information for: Stab. (line 6)
  22484. * symbols: Symbols. (line 6)
  22485. * Symbols in position-independent code, CRIS: CRIS-Pic. (line 6)
  22486. * symbols with uppercase, VAX/VMS: VAX-Opts. (line 42)
  22487. * symbols, assigning values to: Equ. (line 6)
  22488. * Symbols, built-in, CRIS: CRIS-Symbols. (line 6)
  22489. * Symbols, CRIS, built-in: CRIS-Symbols. (line 6)
  22490. * symbols, local common: Lcomm. (line 6)
  22491. * symver directive: Symver. (line 6)
  22492. * syntax compatibility, i386: i386-Variations. (line 6)
  22493. * syntax compatibility, x86-64: i386-Variations. (line 6)
  22494. * syntax, AVR: AVR-Modifiers. (line 6)
  22495. * syntax, Blackfin: Blackfin Syntax. (line 6)
  22496. * syntax, D10V: D10V-Syntax. (line 6)
  22497. * syntax, D30V: D30V-Syntax. (line 6)
  22498. * syntax, LM32: LM32-Modifiers. (line 6)
  22499. * syntax, M680x0: M68K-Syntax. (line 8)
  22500. * syntax, M68HC11: M68HC11-Syntax. (line 6)
  22501. * syntax, M68HC11 <1>: M68HC11-Modifiers. (line 6)
  22502. * syntax, machine-independent: Syntax. (line 6)
  22503. * syntax, OPENRISC: OpenRISC-Dependent. (line 12)
  22504. * syntax, RL78: RL78-Modifiers. (line 6)
  22505. * syntax, RX: RX-Modifiers. (line 6)
  22506. * syntax, S12Z: S12Z Syntax. (line 11)
  22507. * syntax, SPARC: Sparc-Aligned-Data. (line 20)
  22508. * syntax, TILE-Gx: TILE-Gx Syntax. (line 6)
  22509. * syntax, TILEPro: TILEPro Syntax. (line 6)
  22510. * syntax, XGATE: XGATE-Syntax. (line 6)
  22511. * syntax, Xtensa assembler: Xtensa Syntax. (line 6)
  22512. * tab (\t): Strings. (line 27)
  22513. * tab directive, TIC54X: TIC54X-Directives. (line 245)
  22514. * tag directive: Tag. (line 6)
  22515. * tag directive, TIC54X: TIC54X-Directives. (line 214)
  22516. * tag directive, TIC54X <1>: TIC54X-Directives. (line 248)
  22517. * TBM, i386: i386-TBM. (line 6)
  22518. * TBM, x86-64: i386-TBM. (line 6)
  22519. * tdaoff pseudo-op, V850: V850 Opcodes. (line 81)
  22520. * temporary symbol names: Symbol Names. (line 43)
  22521. * text and data sections, joining: R. (line 6)
  22522. * text directive: Text. (line 6)
  22523. * text section: Ld Sections. (line 9)
  22524. * tfloat directive, i386: i386-Float. (line 14)
  22525. * tfloat directive, x86-64: i386-Float. (line 14)
  22526. * Thumb support: ARM-Dependent. (line 6)
  22527. * TIC54X builtin math functions: TIC54X-Builtins. (line 6)
  22528. * TIC54X line comment character: TIC54X-Chars. (line 6)
  22529. * TIC54X line separator: TIC54X-Chars. (line 17)
  22530. * TIC54X machine directives: TIC54X-Directives. (line 6)
  22531. * TIC54X memory-mapped registers: TIC54X-MMRegs. (line 6)
  22532. * TIC54X options: TIC54X-Opts. (line 6)
  22533. * TIC54X subsym builtins: TIC54X-Macros. (line 16)
  22534. * TIC54X support: TIC54X-Dependent. (line 6)
  22535. * TIC54X-specific macros: TIC54X-Macros. (line 6)
  22536. * TIC6X big-endian output: TIC6X Options. (line 46)
  22537. * TIC6X line comment character: TIC6X Syntax. (line 6)
  22538. * TIC6X line separator: TIC6X Syntax. (line 13)
  22539. * TIC6X little-endian output: TIC6X Options. (line 46)
  22540. * TIC6X machine directives: TIC6X Directives. (line 6)
  22541. * TIC6X options: TIC6X Options. (line 6)
  22542. * TIC6X support: TIC6X-Dependent. (line 6)
  22543. * TILE-Gx machine directives: TILE-Gx Directives. (line 6)
  22544. * TILE-Gx modifiers: TILE-Gx Modifiers. (line 6)
  22545. * TILE-Gx opcode names: TILE-Gx Opcodes. (line 6)
  22546. * TILE-Gx register names: TILE-Gx Registers. (line 6)
  22547. * TILE-Gx support: TILE-Gx-Dependent. (line 6)
  22548. * TILE-Gx syntax: TILE-Gx Syntax. (line 6)
  22549. * TILEPro machine directives: TILEPro Directives. (line 6)
  22550. * TILEPro modifiers: TILEPro Modifiers. (line 6)
  22551. * TILEPro opcode names: TILEPro Opcodes. (line 6)
  22552. * TILEPro register names: TILEPro Registers. (line 6)
  22553. * TILEPro support: TILEPro-Dependent. (line 6)
  22554. * TILEPro syntax: TILEPro Syntax. (line 6)
  22555. * time, total for assembly: statistics. (line 6)
  22556. * title directive: Title. (line 6)
  22557. * tls_gd directive, Nios II: Nios II Relocations.
  22558. (line 38)
  22559. * tls_ie directive, Nios II: Nios II Relocations.
  22560. (line 38)
  22561. * tls_ldm directive, Nios II: Nios II Relocations.
  22562. (line 38)
  22563. * tls_ldo directive, Nios II: Nios II Relocations.
  22564. (line 38)
  22565. * tls_le directive, Nios II: Nios II Relocations.
  22566. (line 38)
  22567. * TMS320C6X support: TIC6X-Dependent. (line 6)
  22568. * tp register, V850: V850-Regs. (line 16)
  22569. * transform directive: Transform Directive.
  22570. (line 6)
  22571. * trusted compiler: f. (line 6)
  22572. * turning preprocessing on and off: Preprocessing. (line 26)
  22573. * two-byte integer: 2byte. (line 6)
  22574. * type directive (COFF version): Type. (line 11)
  22575. * type directive (ELF version): Type. (line 22)
  22576. * type of a symbol: Symbol Type. (line 6)
  22577. * ualong directive, SH: SH Directives. (line 6)
  22578. * uaquad directive, SH: SH Directives. (line 6)
  22579. * uaword directive, SH: SH Directives. (line 6)
  22580. * ubyte directive, TIC54X: TIC54X-Directives. (line 34)
  22581. * uchar directive, TIC54X: TIC54X-Directives. (line 34)
  22582. * uhalf directive, TIC54X: TIC54X-Directives. (line 109)
  22583. * uint directive, TIC54X: TIC54X-Directives. (line 109)
  22584. * uleb128 directive: Uleb128. (line 6)
  22585. * ulong directive, TIC54X: TIC54X-Directives. (line 133)
  22586. * undefined section: Ld Sections. (line 36)
  22587. * union directive, TIC54X: TIC54X-Directives. (line 248)
  22588. * unsegm: Z8000 Directives. (line 14)
  22589. * usect directive, TIC54X: TIC54X-Directives. (line 260)
  22590. * ushort directive, TIC54X: TIC54X-Directives. (line 109)
  22591. * uword directive, TIC54X: TIC54X-Directives. (line 109)
  22592. * V850 command-line options: V850 Options. (line 9)
  22593. * V850 floating point (IEEE): V850 Floating Point.
  22594. (line 6)
  22595. * V850 line comment character: V850-Chars. (line 6)
  22596. * V850 line separator: V850-Chars. (line 13)
  22597. * V850 machine directives: V850 Directives. (line 6)
  22598. * V850 opcodes: V850 Opcodes. (line 6)
  22599. * V850 options (none): V850 Options. (line 6)
  22600. * V850 register names: V850-Regs. (line 6)
  22601. * V850 support: V850-Dependent. (line 6)
  22602. * val directive: Val. (line 6)
  22603. * value attribute, COFF: Val. (line 6)
  22604. * value directive: i386-Directives. (line 26)
  22605. * value of a symbol: Symbol Value. (line 6)
  22606. * var directive, TIC54X: TIC54X-Directives. (line 270)
  22607. * VAX bitfields not supported: VAX-no. (line 6)
  22608. * VAX branch improvement: VAX-branch. (line 6)
  22609. * VAX command-line options ignored: VAX-Opts. (line 6)
  22610. * VAX displacement sizing character: VAX-operands. (line 12)
  22611. * VAX floating point: VAX-float. (line 6)
  22612. * VAX immediate character: VAX-operands. (line 6)
  22613. * VAX indirect character: VAX-operands. (line 9)
  22614. * VAX line comment character: VAX-Chars. (line 6)
  22615. * VAX line separator: VAX-Chars. (line 14)
  22616. * VAX machine directives: VAX-directives. (line 6)
  22617. * VAX opcode mnemonics: VAX-opcodes. (line 6)
  22618. * VAX operand notation: VAX-operands. (line 6)
  22619. * VAX register names: VAX-operands. (line 17)
  22620. * VAX support: Vax-Dependent. (line 6)
  22621. * Vax-11 C compatibility: VAX-Opts. (line 42)
  22622. * VAX/VMS options: VAX-Opts. (line 42)
  22623. * version directive: Version. (line 6)
  22624. * version directive, TIC54X: TIC54X-Directives. (line 274)
  22625. * version of assembler: v. (line 6)
  22626. * versions of symbols: Symver. (line 6)
  22627. * Virtualization instruction generation override: MIPS ASE Instruction Generation Overrides.
  22628. (line 52)
  22629. * visibility: Hidden. (line 6)
  22630. * visibility <1>: Internal. (line 6)
  22631. * visibility <2>: Protected. (line 6)
  22632. * Visium line comment character: Visium Characters. (line 6)
  22633. * Visium line separator: Visium Characters. (line 14)
  22634. * Visium options: Visium Options. (line 6)
  22635. * Visium registers: Visium Registers. (line 6)
  22636. * Visium support: Visium-Dependent. (line 6)
  22637. * VMS (VAX) options: VAX-Opts. (line 42)
  22638. * vtable_entry directive: VTableEntry. (line 6)
  22639. * vtable_inherit directive: VTableInherit. (line 6)
  22640. * warning directive: Warning. (line 6)
  22641. * warning for altered difference tables: K. (line 6)
  22642. * warning messages: Errors. (line 6)
  22643. * warnings, causing error: W. (line 16)
  22644. * warnings, M32R: M32R-Warnings. (line 6)
  22645. * warnings, suppressing: W. (line 11)
  22646. * warnings, switching on: W. (line 19)
  22647. * weak directive: Weak. (line 6)
  22648. * weakref directive: Weakref. (line 6)
  22649. * WebAssembly floating point (IEEE): WebAssembly-Floating-Point.
  22650. (line 6)
  22651. * WebAssembly line comment character: WebAssembly-Chars. (line 6)
  22652. * WebAssembly module layout: WebAssembly-module-layout.
  22653. (line 6)
  22654. * WebAssembly notes: WebAssembly-Notes. (line 6)
  22655. * WebAssembly opcodes: WebAssembly-Opcodes.
  22656. (line 6)
  22657. * WebAssembly relocations: WebAssembly-Relocs. (line 6)
  22658. * WebAssembly signatures: WebAssembly-Signatures.
  22659. (line 6)
  22660. * WebAssembly support: WebAssembly-Dependent.
  22661. (line 6)
  22662. * WebAssembly Syntax: WebAssembly-Syntax. (line 6)
  22663. * whitespace: Whitespace. (line 6)
  22664. * whitespace, removed by preprocessor: Preprocessing. (line 7)
  22665. * wide floating point directives, VAX: VAX-directives. (line 9)
  22666. * width directive, TIC54X: TIC54X-Directives. (line 125)
  22667. * Width of continuation lines of disassembly output: listing.
  22668. (line 21)
  22669. * Width of first line disassembly output: listing. (line 16)
  22670. * Width of source line output: listing. (line 28)
  22671. * wmsg directive, TIC54X: TIC54X-Directives. (line 75)
  22672. * word aligned program counter, ARC: ARC-Regs. (line 44)
  22673. * word directive: Word. (line 6)
  22674. * word directive, BPF: BPF Directives. (line 12)
  22675. * word directive, H8/300: H8/300 Directives. (line 6)
  22676. * word directive, i386: i386-Float. (line 21)
  22677. * word directive, Nios II: Nios II Directives. (line 13)
  22678. * word directive, OpenRISC: OpenRISC-Directives.
  22679. (line 12)
  22680. * word directive, PRU: PRU Directives. (line 10)
  22681. * word directive, SPARC: Sparc-Directives. (line 51)
  22682. * word directive, TIC54X: TIC54X-Directives. (line 109)
  22683. * word directive, x86-64: i386-Float. (line 21)
  22684. * writing patterns in memory: Fill. (line 6)
  22685. * wval: Z8000 Directives. (line 24)
  22686. * x86 machine directives: i386-Directives. (line 6)
  22687. * x86-64 arch directive: i386-Arch. (line 6)
  22688. * x86-64 att_syntax pseudo op: i386-Variations. (line 6)
  22689. * x86-64 conversion instructions: i386-Mnemonics. (line 56)
  22690. * x86-64 floating point: i386-Float. (line 6)
  22691. * x86-64 immediate operands: i386-Variations. (line 15)
  22692. * x86-64 instruction naming: i386-Mnemonics. (line 9)
  22693. * x86-64 intel_syntax pseudo op: i386-Variations. (line 6)
  22694. * x86-64 jump optimization: i386-Jumps. (line 6)
  22695. * x86-64 jump, call, return: i386-Variations. (line 45)
  22696. * x86-64 jump/call operands: i386-Variations. (line 15)
  22697. * x86-64 memory references: i386-Memory. (line 6)
  22698. * x86-64 options: i386-Options. (line 6)
  22699. * x86-64 register operands: i386-Variations. (line 15)
  22700. * x86-64 registers: i386-Regs. (line 6)
  22701. * x86-64 sections: i386-Variations. (line 51)
  22702. * x86-64 size suffixes: i386-Variations. (line 28)
  22703. * x86-64 source, destination operands: i386-Variations. (line 21)
  22704. * x86-64 support: i386-Dependent. (line 6)
  22705. * x86-64 syntax compatibility: i386-Variations. (line 6)
  22706. * xfloat directive, TIC54X: TIC54X-Directives. (line 62)
  22707. * XGATE addressing modes: XGATE-Syntax. (line 28)
  22708. * XGATE assembler directives: XGATE-Directives. (line 6)
  22709. * XGATE floating point: XGATE-Float. (line 6)
  22710. * XGATE line comment character: XGATE-Syntax. (line 16)
  22711. * XGATE line separator: XGATE-Syntax. (line 25)
  22712. * XGATE opcodes: XGATE-opcodes. (line 6)
  22713. * XGATE options: XGATE-Opts. (line 6)
  22714. * XGATE support: XGATE-Dependent. (line 6)
  22715. * XGATE syntax: XGATE-Syntax. (line 6)
  22716. * xlong directive, TIC54X: TIC54X-Directives. (line 133)
  22717. * XStormy16 comment character: XStormy16-Chars. (line 11)
  22718. * XStormy16 line comment character: XStormy16-Chars. (line 6)
  22719. * XStormy16 line separator: XStormy16-Chars. (line 14)
  22720. * XStormy16 machine directives: XStormy16 Directives.
  22721. (line 6)
  22722. * XStormy16 pseudo-opcodes: XStormy16 Opcodes. (line 6)
  22723. * XStormy16 support: XSTORMY16-Dependent.
  22724. (line 6)
  22725. * Xtensa architecture: Xtensa-Dependent. (line 6)
  22726. * Xtensa assembler syntax: Xtensa Syntax. (line 6)
  22727. * Xtensa directives: Xtensa Directives. (line 6)
  22728. * Xtensa opcode names: Xtensa Opcodes. (line 6)
  22729. * Xtensa register names: Xtensa Registers. (line 6)
  22730. * xword directive, SPARC: Sparc-Directives. (line 55)
  22731. * Z80 $: Z80-Chars. (line 15)
  22732. * Z80 ': Z80-Chars. (line 20)
  22733. * Z80 floating point: Z80 Floating Point. (line 6)
  22734. * Z80 line comment character: Z80-Chars. (line 6)
  22735. * Z80 line separator: Z80-Chars. (line 13)
  22736. * Z80 options: Z80 Options. (line 6)
  22737. * Z80 registers: Z80-Regs. (line 6)
  22738. * Z80 support: Z80-Dependent. (line 6)
  22739. * Z80 Syntax: Z80 Options. (line 40)
  22740. * Z80, case sensitivity: Z80-Case. (line 6)
  22741. * Z80, \: Z80-Chars. (line 18)
  22742. * Z80-only directives: Z80 Directives. (line 9)
  22743. * Z800 addressing modes: Z8000-Addressing. (line 6)
  22744. * Z8000 directives: Z8000 Directives. (line 6)
  22745. * Z8000 line comment character: Z8000-Chars. (line 6)
  22746. * Z8000 line separator: Z8000-Chars. (line 13)
  22747. * Z8000 opcode summary: Z8000 Opcodes. (line 6)
  22748. * Z8000 options: Z8000 Options. (line 6)
  22749. * Z8000 registers: Z8000-Regs. (line 6)
  22750. * Z8000 support: Z8000-Dependent. (line 6)
  22751. * zdaoff pseudo-op, V850: V850 Opcodes. (line 98)
  22752. * zero directive: Zero. (line 6)
  22753. * zero register, V850: V850-Regs. (line 7)
  22754. * zero-terminated strings: Asciz. (line 6)
  22755. 
  22756. Tag Table:
  22757. Node: Top733
  22758. Node: Overview1745
  22759. Node: Manual43542
  22760. Node: GNU Assembler44486
  22761. Node: Object Formats45657
  22762. Node: Command Line46109
  22763. Node: Input Files47195
  22764. Node: Object49176
  22765. Node: Errors50072
  22766. Node: Invoking51634
  22767. Node: a53640
  22768. Node: alternate55551
  22769. Node: D55723
  22770. Node: f55956
  22771. Node: I56465
  22772. Node: K57009
  22773. Node: L57313
  22774. Node: listing58052
  22775. Node: M59711
  22776. Node: MD63548
  22777. Node: no-pad-sections63988
  22778. Node: o64363
  22779. Node: R64790
  22780. Node: statistics65820
  22781. Node: traditional-format66227
  22782. Node: v66700
  22783. Node: W66975
  22784. Node: Z67882
  22785. Node: Syntax68404
  22786. Node: Preprocessing68996
  22787. Node: Whitespace70560
  22788. Node: Comments70956
  22789. Node: Symbol Intro72967
  22790. Node: Statements73952
  22791. Node: Constants75940
  22792. Node: Characters76571
  22793. Node: Strings77073
  22794. Node: Chars79246
  22795. Node: Numbers80098
  22796. Node: Integers80638
  22797. Node: Bignums81294
  22798. Node: Flonums81650
  22799. Node: Sections83267
  22800. Node: Secs Background83645
  22801. Node: Ld Sections88678
  22802. Node: As Sections91062
  22803. Node: Sub-Sections91972
  22804. Node: bss95120
  22805. Node: Symbols96070
  22806. Node: Labels96718
  22807. Node: Setting Symbols97449
  22808. Node: Symbol Names98003
  22809. Node: Dot103470
  22810. Node: Symbol Attributes103917
  22811. Node: Symbol Value104650
  22812. Node: Symbol Type105695
  22813. Node: a.out Symbols106083
  22814. Node: Symbol Desc106345
  22815. Node: Symbol Other106641
  22816. Node: COFF Symbols106810
  22817. Node: SOM Symbols107483
  22818. Node: Expressions107925
  22819. Node: Empty Exprs108674
  22820. Node: Integer Exprs109021
  22821. Node: Arguments109416
  22822. Node: Operators110522
  22823. Node: Prefix Ops110857
  22824. Node: Infix Ops111184
  22825. Node: Pseudo Ops113578
  22826. Node: Abort119612
  22827. Node: ABORT (COFF)120025
  22828. Node: Align120233
  22829. Node: Altmacro122512
  22830. Node: Ascii123843
  22831. Node: Asciz124152
  22832. Node: Balign124397
  22833. Node: Bundle directives126273
  22834. Node: Byte129254
  22835. Node: CFI directives129513
  22836. Node: Comm138825
  22837. Ref: Comm-Footnote-1140425
  22838. Node: Data140787
  22839. Node: Dc141103
  22840. Node: Dcb142080
  22841. Node: Ds142873
  22842. Node: Def143703
  22843. Node: Desc143933
  22844. Node: Dim144433
  22845. Node: Double144690
  22846. Node: Eject145028
  22847. Node: Else145203
  22848. Node: Elseif145503
  22849. Node: End145797
  22850. Node: Endef146012
  22851. Node: Endfunc146189
  22852. Node: Endif146364
  22853. Node: Equ146625
  22854. Node: Equiv147140
  22855. Node: Eqv147696
  22856. Node: Err148060
  22857. Node: Error148371
  22858. Node: Exitm148816
  22859. Node: Extern148985
  22860. Node: Fail149246
  22861. Node: File149691
  22862. Node: Fill151020
  22863. Node: Float151984
  22864. Node: Func152326
  22865. Node: Global152916
  22866. Node: Gnu_attribute153673
  22867. Node: Hidden153898
  22868. Node: hword154484
  22869. Node: Ident154812
  22870. Node: If155386
  22871. Node: Incbin158447
  22872. Node: Include159141
  22873. Node: Int159692
  22874. Node: Internal160073
  22875. Node: Irp160720
  22876. Node: Irpc161599
  22877. Node: Lcomm162515
  22878. Node: Lflags163262
  22879. Node: Line163456
  22880. Node: Linkonce164372
  22881. Node: List165601
  22882. Node: Ln166208
  22883. Node: Loc166358
  22884. Node: Loc_mark_labels168550
  22885. Node: Local169034
  22886. Node: Long169646
  22887. Node: Macro169824
  22888. Node: MRI175755
  22889. Node: Noaltmacro176093
  22890. Node: Nolist176262
  22891. Node: Nops176691
  22892. Node: Octa177492
  22893. Node: Offset177827
  22894. Node: Org178154
  22895. Node: P2align179439
  22896. Node: PopSection181370
  22897. Node: Previous181878
  22898. Node: Print183290
  22899. Node: Protected183519
  22900. Node: Psize184166
  22901. Node: Purgem184850
  22902. Node: PushSection185071
  22903. Node: Quad185815
  22904. Node: Reloc186269
  22905. Node: Rept187030
  22906. Node: Sbttl187592
  22907. Node: Scl187957
  22908. Node: Section188298
  22909. Ref: Section Name Substitutions190356
  22910. Node: Set196465
  22911. Node: Short197547
  22912. Node: Single197868
  22913. Node: Size198213
  22914. Node: Skip198879
  22915. Node: Sleb128199203
  22916. Node: Space199525
  22917. Node: Stab200166
  22918. Node: String202169
  22919. Node: Struct203161
  22920. Node: SubSection203884
  22921. Node: Symver204445
  22922. Node: Tag206839
  22923. Node: Text207219
  22924. Node: Title207539
  22925. Node: Type207918
  22926. Node: Uleb128210379
  22927. Node: Val210701
  22928. Node: Version210951
  22929. Node: VTableEntry211225
  22930. Node: VTableInherit211515
  22931. Node: Warning211965
  22932. Node: Weak212199
  22933. Node: Weakref212868
  22934. Node: Word213833
  22935. Node: Zero215673
  22936. Node: 2byte216080
  22937. Node: 4byte217084
  22938. Node: 8byte217348
  22939. Node: Deprecated217625
  22940. Node: Object Attributes217860
  22941. Node: GNU Object Attributes219580
  22942. Node: Defining New Object Attributes223105
  22943. Node: Machine Dependencies223897
  22944. Node: AArch64-Dependent227932
  22945. Node: AArch64 Options228414
  22946. Node: AArch64 Extensions231254
  22947. Node: AArch64 Syntax236427
  22948. Node: AArch64-Chars236727
  22949. Node: AArch64-Regs237213
  22950. Node: AArch64-Relocations237507
  22951. Node: AArch64 Floating Point238581
  22952. Node: AArch64 Directives238806
  22953. Node: AArch64 Opcodes242733
  22954. Node: AArch64 Mapping Symbols243410
  22955. Node: Alpha-Dependent243791
  22956. Node: Alpha Notes244231
  22957. Node: Alpha Options244512
  22958. Node: Alpha Syntax246987
  22959. Node: Alpha-Chars247456
  22960. Node: Alpha-Regs247868
  22961. Node: Alpha-Relocs248255
  22962. Node: Alpha Floating Point254501
  22963. Node: Alpha Directives254723
  22964. Node: Alpha Opcodes260250
  22965. Node: ARC-Dependent260545
  22966. Node: ARC Options260990
  22967. Node: ARC Syntax264116
  22968. Node: ARC-Chars264344
  22969. Node: ARC-Regs265466
  22970. Node: ARC Directives268234
  22971. Node: ARC Modifiers276889
  22972. Node: ARC Symbols277899
  22973. Node: ARC Opcodes278453
  22974. Node: ARM-Dependent278699
  22975. Node: ARM Options279164
  22976. Node: ARM Syntax298512
  22977. Node: ARM-Instruction-Set298880
  22978. Node: ARM-Chars300095
  22979. Node: ARM-Regs300806
  22980. Node: ARM-Relocations301015
  22981. Node: ARM-Neon-Alignment302701
  22982. Node: ARM Floating Point303166
  22983. Node: ARM Directives303365
  22984. Ref: arm_fnend308524
  22985. Ref: arm_fnstart308843
  22986. Ref: arm_pad311251
  22987. Ref: arm_save311853
  22988. Ref: arm_setfp312554
  22989. Node: ARM Opcodes315840
  22990. Node: ARM Mapping Symbols318442
  22991. Node: ARM Unwinding Tutorial319251
  22992. Node: AVR-Dependent325451
  22993. Node: AVR Options325790
  22994. Node: AVR Syntax332108
  22995. Node: AVR-Chars332395
  22996. Node: AVR-Regs332954
  22997. Node: AVR-Modifiers333535
  22998. Node: AVR Opcodes335599
  22999. Node: AVR Pseudo Instructions340877
  23000. Node: Blackfin-Dependent342536
  23001. Node: Blackfin Options342847
  23002. Node: Blackfin Syntax343821
  23003. Node: Blackfin Directives350027
  23004. Node: BPF-Dependent350768
  23005. Node: BPF Options351085
  23006. Node: BPF Syntax351468
  23007. Node: BPF-Chars351736
  23008. Node: BPF-Regs352129
  23009. Node: BPF-Pseudo-Maps352641
  23010. Node: BPF Directives353061
  23011. Node: BPF Opcodes353475
  23012. Node: CR16-Dependent360033
  23013. Node: CR16 Operand Qualifiers360328
  23014. Node: CR16 Syntax363037
  23015. Node: CR16-Chars363223
  23016. Node: CRIS-Dependent363760
  23017. Node: CRIS-Opts364107
  23018. Ref: march-option365792
  23019. Node: CRIS-Expand367611
  23020. Node: CRIS-Symbols368794
  23021. Node: CRIS-Syntax369965
  23022. Node: CRIS-Chars370301
  23023. Node: CRIS-Pic370852
  23024. Ref: crispic371047
  23025. Node: CRIS-Regs374596
  23026. Node: CRIS-Pseudos375013
  23027. Ref: crisnous375790
  23028. Node: C-SKY-Dependent377078
  23029. Node: C-SKY Options377340
  23030. Node: C-SKY Syntax380325
  23031. Node: D10V-Dependent380570
  23032. Node: D10V-Opts380924
  23033. Node: D10V-Syntax381895
  23034. Node: D10V-Size382426
  23035. Node: D10V-Subs383399
  23036. Node: D10V-Chars384436
  23037. Node: D10V-Regs386249
  23038. Node: D10V-Addressing387278
  23039. Node: D10V-Word387958
  23040. Node: D10V-Float388475
  23041. Node: D10V-Opcodes388788
  23042. Node: D30V-Dependent389183
  23043. Node: D30V-Opts389540
  23044. Node: D30V-Syntax390218
  23045. Node: D30V-Size390752
  23046. Node: D30V-Subs391725
  23047. Node: D30V-Chars392762
  23048. Node: D30V-Guarded395372
  23049. Node: D30V-Regs396049
  23050. Node: D30V-Addressing397168
  23051. Node: D30V-Float397830
  23052. Node: D30V-Opcodes398143
  23053. Node: Epiphany-Dependent398538
  23054. Node: Epiphany Options398826
  23055. Node: Epiphany Syntax399225
  23056. Node: Epiphany-Chars399426
  23057. Node: H8/300-Dependent399980
  23058. Node: H8/300 Options400396
  23059. Node: H8/300 Syntax400836
  23060. Node: H8/300-Chars401137
  23061. Node: H8/300-Regs401436
  23062. Node: H8/300-Addressing402355
  23063. Node: H8/300 Floating Point403379
  23064. Node: H8/300 Directives403706
  23065. Node: H8/300 Opcodes404834
  23066. Node: HPPA-Dependent413153
  23067. Node: HPPA Notes413585
  23068. Node: HPPA Options414344
  23069. Node: HPPA Syntax414539
  23070. Node: HPPA Floating Point415809
  23071. Node: HPPA Directives416015
  23072. Node: HPPA Opcodes424697
  23073. Node: i386-Dependent424956
  23074. Node: i386-Options426281
  23075. Node: i386-Directives437618
  23076. Node: i386-Syntax438960
  23077. Node: i386-Variations439265
  23078. Node: i386-Chars442189
  23079. Node: i386-Mnemonics442918
  23080. Node: i386-Regs446717
  23081. Node: i386-Prefixes449547
  23082. Node: i386-Memory452307
  23083. Node: i386-Jumps455246
  23084. Node: i386-Float456369
  23085. Node: i386-SIMD458199
  23086. Node: i386-LWP459308
  23087. Node: i386-BMI460142
  23088. Node: i386-TBM460520
  23089. Node: i386-16bit461050
  23090. Node: i386-Arch463121
  23091. Node: i386-Bugs466564
  23092. Node: i386-Notes467315
  23093. Node: IA-64-Dependent468174
  23094. Node: IA-64 Options468475
  23095. Node: IA-64 Syntax471626
  23096. Node: IA-64-Chars472032
  23097. Node: IA-64-Regs472262
  23098. Node: IA-64-Bits473188
  23099. Node: IA-64-Relocs473718
  23100. Node: IA-64 Opcodes474189
  23101. Node: IP2K-Dependent474461
  23102. Node: IP2K-Opts474733
  23103. Node: IP2K-Syntax475232
  23104. Node: IP2K-Chars475406
  23105. Node: LM32-Dependent475949
  23106. Node: LM32 Options476244
  23107. Node: LM32 Syntax476877
  23108. Node: LM32-Regs477173
  23109. Node: LM32-Modifiers478114
  23110. Node: LM32-Chars479494
  23111. Node: LM32 Opcodes480002
  23112. Node: M32C-Dependent480306
  23113. Node: M32C-Opts480812
  23114. Node: M32C-Syntax481231
  23115. Node: M32C-Modifiers481466
  23116. Node: M32C-Chars483258
  23117. Node: M32R-Dependent483824
  23118. Node: M32R-Opts484145
  23119. Node: M32R-Directives488307
  23120. Node: M32R-Warnings492281
  23121. Node: M68K-Dependent495286
  23122. Node: M68K-Opts495753
  23123. Node: M68K-Syntax503175
  23124. Node: M68K-Moto-Syntax505015
  23125. Node: M68K-Float507599
  23126. Node: M68K-Directives508119
  23127. Node: M68K-opcodes509446
  23128. Node: M68K-Branch509672
  23129. Node: M68K-Chars513867
  23130. Node: M68HC11-Dependent514730
  23131. Node: M68HC11-Opts515261
  23132. Node: M68HC11-Syntax519573
  23133. Node: M68HC11-Modifiers522367
  23134. Node: M68HC11-Directives524194
  23135. Node: M68HC11-Float525568
  23136. Node: M68HC11-opcodes526096
  23137. Node: M68HC11-Branch526278
  23138. Node: S12Z-Dependent528728
  23139. Node: S12Z Options529071
  23140. Node: S12Z Syntax530055
  23141. Node: S12Z Syntax Overview530374
  23142. Node: S12Z Addressing Modes532036
  23143. Node: S12Z Register Notation535840
  23144. Node: Meta-Dependent537016
  23145. Node: Meta Options537298
  23146. Node: Meta Syntax537960
  23147. Node: Meta-Chars538172
  23148. Node: Meta-Regs538472
  23149. Node: MicroBlaze-Dependent538748
  23150. Node: MicroBlaze Directives539435
  23151. Node: MicroBlaze Syntax540826
  23152. Node: MicroBlaze-Chars541058
  23153. Node: MIPS-Dependent541610
  23154. Node: MIPS Options543044
  23155. Node: MIPS Macros562136
  23156. Ref: MIPS Macros-Footnote-1564850
  23157. Node: MIPS Symbol Sizes564993
  23158. Node: MIPS Small Data566665
  23159. Node: MIPS ISA568829
  23160. Node: MIPS assembly options570613
  23161. Node: MIPS autoextend571746
  23162. Node: MIPS insn572480
  23163. Node: MIPS FP ABIs573761
  23164. Node: MIPS FP ABI History574213
  23165. Node: MIPS FP ABI Variants574973
  23166. Node: MIPS FP ABI Selection577526
  23167. Node: MIPS FP ABI Compatibility578589
  23168. Node: MIPS NaN Encodings579399
  23169. Node: MIPS Option Stack581362
  23170. Node: MIPS ASE Instruction Generation Overrides582147
  23171. Node: MIPS Floating-Point586908
  23172. Node: MIPS Syntax587814
  23173. Node: MIPS-Chars588076
  23174. Node: MMIX-Dependent588618
  23175. Node: MMIX-Opts588998
  23176. Node: MMIX-Expand592604
  23177. Node: MMIX-Syntax593916
  23178. Ref: mmixsite594272
  23179. Node: MMIX-Chars595114
  23180. Node: MMIX-Symbols595987
  23181. Node: MMIX-Regs598058
  23182. Node: MMIX-Pseudos599083
  23183. Ref: MMIX-loc599225
  23184. Ref: MMIX-local600306
  23185. Ref: MMIX-is600839
  23186. Ref: MMIX-greg601111
  23187. Ref: GREG-base602029
  23188. Ref: MMIX-byte603348
  23189. Ref: MMIX-constants603820
  23190. Ref: MMIX-prefix604462
  23191. Ref: MMIX-spec604837
  23192. Node: MMIX-mmixal605171
  23193. Node: MSP430-Dependent608666
  23194. Node: MSP430 Options609135
  23195. Node: MSP430 Syntax612703
  23196. Node: MSP430-Macros613019
  23197. Node: MSP430-Chars613749
  23198. Node: MSP430-Regs614464
  23199. Node: MSP430-Ext615025
  23200. Node: MSP430 Floating Point616844
  23201. Node: MSP430 Directives617068
  23202. Node: MSP430 Opcodes618383
  23203. Node: MSP430 Profiling Capability618778
  23204. Node: NDS32-Dependent621106
  23205. Node: NDS32 Options621715
  23206. Node: NDS32 Syntax623598
  23207. Node: NDS32-Chars623866
  23208. Node: NDS32-Regs624333
  23209. Node: NDS32-Ops625187
  23210. Node: NiosII-Dependent628784
  23211. Node: Nios II Options629203
  23212. Node: Nios II Syntax630435
  23213. Node: Nios II Chars630641
  23214. Node: Nios II Relocations630832
  23215. Node: Nios II Directives632403
  23216. Node: Nios II Opcodes633965
  23217. Node: NS32K-Dependent634240
  23218. Node: NS32K Syntax634469
  23219. Node: NS32K-Chars634618
  23220. Node: OpenRISC-Dependent635358
  23221. Node: OpenRISC-Syntax635701
  23222. Node: OpenRISC-Chars636022
  23223. Node: OpenRISC-Regs636345
  23224. Node: OpenRISC-Relocs637358
  23225. Node: OpenRISC-Float642138
  23226. Node: OpenRISC-Directives642344
  23227. Node: OpenRISC-Opcodes643142
  23228. Node: PDP-11-Dependent643434
  23229. Node: PDP-11-Options643827
  23230. Node: PDP-11-Pseudos648886
  23231. Node: PDP-11-Syntax649231
  23232. Node: PDP-11-Mnemonics650063
  23233. Node: PDP-11-Synthetic650365
  23234. Node: PJ-Dependent650583
  23235. Node: PJ Options650846
  23236. Node: PJ Syntax651141
  23237. Node: PJ-Chars651306
  23238. Node: PPC-Dependent651855
  23239. Node: PowerPC-Opts652187
  23240. Node: PowerPC-Pseudo655911
  23241. Node: PowerPC-Syntax656532
  23242. Node: PowerPC-Chars656722
  23243. Node: PRU-Dependent657473
  23244. Node: PRU Options657856
  23245. Node: PRU Syntax658595
  23246. Node: PRU Chars658782
  23247. Node: PRU Relocations658937
  23248. Node: PRU Directives659488
  23249. Node: PRU Opcodes660391
  23250. Node: RISC-V-Dependent660808
  23251. Node: RISC-V-Options661183
  23252. Node: RISC-V-Directives662190
  23253. Node: RISC-V-Formats665915
  23254. Node: RISC-V-ATTRIBUTE673633
  23255. Node: RL78-Dependent675595
  23256. Node: RL78-Opts675996
  23257. Node: RL78-Modifiers676830
  23258. Node: RL78-Directives677609
  23259. Node: RL78-Syntax678213
  23260. Node: RL78-Chars678409
  23261. Node: RX-Dependent678965
  23262. Node: RX-Opts679396
  23263. Node: RX-Modifiers683660
  23264. Node: RX-Directives684763
  23265. Node: RX-Float685502
  23266. Node: RX-Syntax686137
  23267. Node: RX-Chars686316
  23268. Node: S/390-Dependent686868
  23269. Node: s390 Options687704
  23270. Node: s390 Characters689854
  23271. Node: s390 Syntax690375
  23272. Node: s390 Register691277
  23273. Node: s390 Mnemonics692093
  23274. Node: s390 Operands695113
  23275. Node: s390 Formats697744
  23276. Node: s390 Aliases705591
  23277. Node: s390 Operand Modifier709556
  23278. Node: s390 Instruction Marker713359
  23279. Node: s390 Literal Pool Entries714373
  23280. Node: s390 Directives716306
  23281. Node: s390 Floating Point721759
  23282. Node: SCORE-Dependent722207
  23283. Node: SCORE-Opts722509
  23284. Node: SCORE-Pseudo723796
  23285. Node: SCORE-Syntax725878
  23286. Node: SCORE-Chars726060
  23287. Node: SH-Dependent726618
  23288. Node: SH Options727030
  23289. Node: SH Syntax728081
  23290. Node: SH-Chars728354
  23291. Node: SH-Regs728897
  23292. Node: SH-Addressing729511
  23293. Node: SH Floating Point730419
  23294. Node: SH Directives731516
  23295. Node: SH Opcodes731917
  23296. Node: Sparc-Dependent736238
  23297. Node: Sparc-Opts736647
  23298. Node: Sparc-Aligned-Data742360
  23299. Node: Sparc-Syntax743192
  23300. Node: Sparc-Chars743766
  23301. Node: Sparc-Regs744329
  23302. Node: Sparc-Constants750177
  23303. Node: Sparc-Relocs754937
  23304. Node: Sparc-Size-Translations760055
  23305. Node: Sparc-Float761705
  23306. Node: Sparc-Directives761900
  23307. Node: TIC54X-Dependent763862
  23308. Node: TIC54X-Opts764625
  23309. Node: TIC54X-Block765666
  23310. Node: TIC54X-Env766026
  23311. Node: TIC54X-Constants766374
  23312. Node: TIC54X-Subsyms766771
  23313. Node: TIC54X-Locals768675
  23314. Node: TIC54X-Builtins769415
  23315. Node: TIC54X-Ext771829
  23316. Node: TIC54X-Directives772400
  23317. Node: TIC54X-Macros783308
  23318. Node: TIC54X-MMRegs785395
  23319. Node: TIC54X-Syntax785632
  23320. Node: TIC54X-Chars785822
  23321. Node: TIC6X-Dependent786513
  23322. Node: TIC6X Options786816
  23323. Node: TIC6X Syntax788815
  23324. Node: TIC6X Directives789918
  23325. Node: TILE-Gx-Dependent792202
  23326. Node: TILE-Gx Options792512
  23327. Node: TILE-Gx Syntax792861
  23328. Node: TILE-Gx Opcodes795097
  23329. Node: TILE-Gx Registers795385
  23330. Node: TILE-Gx Modifiers796156
  23331. Node: TILE-Gx Directives801155
  23332. Node: TILEPro-Dependent802058
  23333. Node: TILEPro Options802367
  23334. Node: TILEPro Syntax802551
  23335. Node: TILEPro Opcodes804787
  23336. Node: TILEPro Registers805078
  23337. Node: TILEPro Modifiers805848
  23338. Node: TILEPro Directives810637
  23339. Node: V850-Dependent811540
  23340. Node: V850 Options811936
  23341. Node: V850 Syntax816214
  23342. Node: V850-Chars816454
  23343. Node: V850-Regs816998
  23344. Node: V850 Floating Point818508
  23345. Node: V850 Directives818714
  23346. Node: V850 Opcodes820780
  23347. Node: Vax-Dependent826659
  23348. Node: VAX-Opts827243
  23349. Node: VAX-float830964
  23350. Node: VAX-directives831597
  23351. Node: VAX-opcodes832457
  23352. Node: VAX-branch832846
  23353. Node: VAX-operands835350
  23354. Node: VAX-no836113
  23355. Node: VAX-Syntax836369
  23356. Node: VAX-Chars836535
  23357. Node: Visium-Dependent837089
  23358. Node: Visium Options837402
  23359. Node: Visium Syntax837868
  23360. Node: Visium Characters838113
  23361. Node: Visium Registers838694
  23362. Node: Visium Opcodes838966
  23363. Node: WebAssembly-Dependent839392
  23364. Node: WebAssembly-Notes839833
  23365. Node: WebAssembly-Syntax840119
  23366. Node: WebAssembly-Chars840685
  23367. Node: WebAssembly-Relocs841064
  23368. Node: WebAssembly-Signatures841790
  23369. Node: WebAssembly-Floating-Point842291
  23370. Node: WebAssembly-Opcodes842532
  23371. Node: WebAssembly-module-layout843165
  23372. Node: XGATE-Dependent843645
  23373. Node: XGATE-Opts844072
  23374. Node: XGATE-Syntax845061
  23375. Node: XGATE-Directives847140
  23376. Node: XGATE-Float847379
  23377. Node: XGATE-opcodes847876
  23378. Node: XSTORMY16-Dependent847988
  23379. Node: XStormy16 Syntax848334
  23380. Node: XStormy16-Chars848524
  23381. Node: XStormy16 Directives849137
  23382. Node: XStormy16 Opcodes849791
  23383. Node: Xtensa-Dependent850846
  23384. Node: Xtensa Options851577
  23385. Node: Xtensa Syntax855844
  23386. Node: Xtensa Opcodes857988
  23387. Node: Xtensa Registers859781
  23388. Node: Xtensa Optimizations860414
  23389. Node: Density Instructions860866
  23390. Node: Xtensa Automatic Alignment861968
  23391. Node: Xtensa Relaxation864415
  23392. Node: Xtensa Branch Relaxation865380
  23393. Node: Xtensa Call Relaxation866752
  23394. Node: Xtensa Jump Relaxation868533
  23395. Node: Xtensa Immediate Relaxation870633
  23396. Node: Xtensa Directives873208
  23397. Node: Schedule Directive874916
  23398. Node: Longcalls Directive875256
  23399. Node: Transform Directive875800
  23400. Node: Literal Directive876542
  23401. Ref: Literal Directive-Footnote-1880081
  23402. Node: Literal Position Directive880223
  23403. Node: Literal Prefix Directive881922
  23404. Node: Absolute Literals Directive882820
  23405. Node: Z80-Dependent884127
  23406. Node: Z80 Options884515
  23407. Node: Z80 Syntax885934
  23408. Node: Z80-Chars886606
  23409. Node: Z80-Regs887457
  23410. Node: Z80-Case887809
  23411. Node: Z80 Floating Point888254
  23412. Node: Z80 Directives888448
  23413. Node: Z80 Opcodes890073
  23414. Node: Z8000-Dependent891419
  23415. Node: Z8000 Options892355
  23416. Node: Z8000 Syntax892572
  23417. Node: Z8000-Chars892862
  23418. Node: Z8000-Regs893344
  23419. Node: Z8000-Addressing894134
  23420. Node: Z8000 Directives895244
  23421. Node: Z8000 Opcodes896853
  23422. Node: Reporting Bugs906795
  23423. Node: Bug Criteria907521
  23424. Node: Bug Reporting908288
  23425. Node: Acknowledgements914932
  23426. Ref: Acknowledgements-Footnote-1919898
  23427. Node: GNU Free Documentation License919924
  23428. Node: AS Index945074
  23429. 
  23430. End Tag Table